Add Apple stuff
[freeradius.git] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.246 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be more Bourne compatible
15 DUALCASE=1; export DUALCASE # for MKS sh
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22   setopt NO_GLOB_SUBST
23 else
24   case `(set -o) 2>/dev/null` in
25   *posix*) set -o posix ;;
26 esac
27
28 fi
29
30
31
32
33 # PATH needs CR
34 # Avoid depending upon Character Ranges.
35 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38 as_cr_digits='0123456789'
39 as_cr_alnum=$as_cr_Letters$as_cr_digits
40
41 # The user is always right.
42 if test "${PATH_SEPARATOR+set}" != set; then
43   echo "#! /bin/sh" >conf$$.sh
44   echo  "exit 0"   >>conf$$.sh
45   chmod +x conf$$.sh
46   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
47     PATH_SEPARATOR=';'
48   else
49     PATH_SEPARATOR=:
50   fi
51   rm -f conf$$.sh
52 fi
53
54 # Support unset when possible.
55 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
56   as_unset=unset
57 else
58   as_unset=false
59 fi
60
61
62 # IFS
63 # We need space, tab and new line, in precisely that order.  Quoting is
64 # there to prevent editors from complaining about space-tab.
65 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
66 # splitting by setting IFS to empty value.)
67 as_nl='
68 '
69 IFS=" ""        $as_nl"
70
71 # Find who we are.  Look in the path if we contain no directory separator.
72 case $0 in
73   *[\\/]* ) as_myself=$0 ;;
74   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
75 for as_dir in $PATH
76 do
77   IFS=$as_save_IFS
78   test -z "$as_dir" && as_dir=.
79   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
80 done
81 IFS=$as_save_IFS
82
83      ;;
84 esac
85 # We did not find ourselves, most probably we were run as `sh COMMAND'
86 # in which case we are not to be found in the path.
87 if test "x$as_myself" = x; then
88   as_myself=$0
89 fi
90 if test ! -f "$as_myself"; then
91   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
92   { (exit 1); exit 1; }
93 fi
94
95 # Work around bugs in pre-3.0 UWIN ksh.
96 for as_var in ENV MAIL MAILPATH
97 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
98 done
99 PS1='$ '
100 PS2='> '
101 PS4='+ '
102
103 # NLS nuisances.
104 for as_var in \
105   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
106   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
107   LC_TELEPHONE LC_TIME
108 do
109   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
110     eval $as_var=C; export $as_var
111   else
112     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113   fi
114 done
115
116 # Required to use basename.
117 if expr a : '\(a\)' >/dev/null 2>&1 &&
118    test "X`expr 00001 : '.*\(...\)'`" = X001; then
119   as_expr=expr
120 else
121   as_expr=false
122 fi
123
124 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
125   as_basename=basename
126 else
127   as_basename=false
128 fi
129
130
131 # Name of the executable.
132 as_me=`$as_basename -- "$0" ||
133 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
134          X"$0" : 'X\(//\)$' \| \
135          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 echo X/"$0" |
137     sed '/^.*\/\([^/][^/]*\)\/*$/{
138             s//\1/
139             q
140           }
141           /^X\/\(\/\/\)$/{
142             s//\1/
143             q
144           }
145           /^X\/\(\/\).*/{
146             s//\1/
147             q
148           }
149           s/.*/./; q'`
150
151 # CDPATH.
152 $as_unset CDPATH
153
154
155 if test "x$CONFIG_SHELL" = x; then
156   if (eval ":") 2>/dev/null; then
157   as_have_required=yes
158 else
159   as_have_required=no
160 fi
161
162   if test $as_have_required = yes &&     (eval ":
163 (as_func_return () {
164   (exit \$1)
165 }
166 as_func_success () {
167   as_func_return 0
168 }
169 as_func_failure () {
170   as_func_return 1
171 }
172 as_func_ret_success () {
173   return 0
174 }
175 as_func_ret_failure () {
176   return 1
177 }
178
179 exitcode=0
180 if as_func_success; then
181   :
182 else
183   exitcode=1
184   echo as_func_success failed.
185 fi
186
187 if as_func_failure; then
188   exitcode=1
189   echo as_func_failure succeeded.
190 fi
191
192 if as_func_ret_success; then
193   :
194 else
195   exitcode=1
196   echo as_func_ret_success failed.
197 fi
198
199 if as_func_ret_failure; then
200   exitcode=1
201   echo as_func_ret_failure succeeded.
202 fi
203
204 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205   :
206 else
207   exitcode=1
208   echo positional parameters were not saved.
209 fi
210
211 test \$exitcode = 0) || { (exit 1); exit 1; }
212
213 (
214   as_lineno_1=\$LINENO
215   as_lineno_2=\$LINENO
216   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
217   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
218 ") 2> /dev/null; then
219   :
220 else
221   as_candidate_shells=
222     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
223 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 do
225   IFS=$as_save_IFS
226   test -z "$as_dir" && as_dir=.
227   case $as_dir in
228          /*)
229            for as_base in sh bash ksh sh5; do
230              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
231            done;;
232        esac
233 done
234 IFS=$as_save_IFS
235
236
237       for as_shell in $as_candidate_shells $SHELL; do
238          # Try only shells that exist, to save several forks.
239          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
240                 { ("$as_shell") 2> /dev/null <<\_ASEOF
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242   emulate sh
243   NULLCMD=:
244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245   # is contrary to our usage.  Disable this feature.
246   alias -g '${1+"$@"}'='"$@"'
247   setopt NO_GLOB_SUBST
248 else
249   case `(set -o) 2>/dev/null` in
250   *posix*) set -o posix ;;
251 esac
252
253 fi
254
255
256 :
257 _ASEOF
258 }; then
259   CONFIG_SHELL=$as_shell
260                as_have_required=yes
261                if { "$as_shell" 2> /dev/null <<\_ASEOF
262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
263   emulate sh
264   NULLCMD=:
265   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
266   # is contrary to our usage.  Disable this feature.
267   alias -g '${1+"$@"}'='"$@"'
268   setopt NO_GLOB_SUBST
269 else
270   case `(set -o) 2>/dev/null` in
271   *posix*) set -o posix ;;
272 esac
273
274 fi
275
276
277 :
278 (as_func_return () {
279   (exit $1)
280 }
281 as_func_success () {
282   as_func_return 0
283 }
284 as_func_failure () {
285   as_func_return 1
286 }
287 as_func_ret_success () {
288   return 0
289 }
290 as_func_ret_failure () {
291   return 1
292 }
293
294 exitcode=0
295 if as_func_success; then
296   :
297 else
298   exitcode=1
299   echo as_func_success failed.
300 fi
301
302 if as_func_failure; then
303   exitcode=1
304   echo as_func_failure succeeded.
305 fi
306
307 if as_func_ret_success; then
308   :
309 else
310   exitcode=1
311   echo as_func_ret_success failed.
312 fi
313
314 if as_func_ret_failure; then
315   exitcode=1
316   echo as_func_ret_failure succeeded.
317 fi
318
319 if ( set x; as_func_ret_success y && test x = "$1" ); then
320   :
321 else
322   exitcode=1
323   echo positional parameters were not saved.
324 fi
325
326 test $exitcode = 0) || { (exit 1); exit 1; }
327
328 (
329   as_lineno_1=$LINENO
330   as_lineno_2=$LINENO
331   test "x$as_lineno_1" != "x$as_lineno_2" &&
332   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333
334 _ASEOF
335 }; then
336   break
337 fi
338
339 fi
340
341       done
342
343       if test "x$CONFIG_SHELL" != x; then
344   for as_var in BASH_ENV ENV
345         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
346         done
347         export CONFIG_SHELL
348         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 fi
350
351
352     if test $as_have_required = no; then
353   echo This script requires a shell more modern than all the
354       echo shells that I found on your system.  Please install a
355       echo modern shell, or manually run the script under such a
356       echo shell if you do have one.
357       { (exit 1); exit 1; }
358 fi
359
360
361 fi
362
363 fi
364
365
366
367 (eval "as_func_return () {
368   (exit \$1)
369 }
370 as_func_success () {
371   as_func_return 0
372 }
373 as_func_failure () {
374   as_func_return 1
375 }
376 as_func_ret_success () {
377   return 0
378 }
379 as_func_ret_failure () {
380   return 1
381 }
382
383 exitcode=0
384 if as_func_success; then
385   :
386 else
387   exitcode=1
388   echo as_func_success failed.
389 fi
390
391 if as_func_failure; then
392   exitcode=1
393   echo as_func_failure succeeded.
394 fi
395
396 if as_func_ret_success; then
397   :
398 else
399   exitcode=1
400   echo as_func_ret_success failed.
401 fi
402
403 if as_func_ret_failure; then
404   exitcode=1
405   echo as_func_ret_failure succeeded.
406 fi
407
408 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409   :
410 else
411   exitcode=1
412   echo positional parameters were not saved.
413 fi
414
415 test \$exitcode = 0") || {
416   echo No shell found that supports shell functions.
417   echo Please tell autoconf@gnu.org about your system,
418   echo including any error possibly output before this
419   echo message
420 }
421
422
423
424   as_lineno_1=$LINENO
425   as_lineno_2=$LINENO
426   test "x$as_lineno_1" != "x$as_lineno_2" &&
427   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428
429   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
430   # uniformly replaced by the line number.  The first 'sed' inserts a
431   # line-number line after each line using $LINENO; the second 'sed'
432   # does the real work.  The second script uses 'N' to pair each
433   # line-number line with the line containing $LINENO, and appends
434   # trailing '-' during substitution so that $LINENO is not a special
435   # case at line end.
436   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
437   # scripts with optimization help from Paolo Bonzini.  Blame Lee
438   # E. McMahon (1931-1989) for sed's syntax.  :-)
439   sed -n '
440     p
441     /[$]LINENO/=
442   ' <$as_myself |
443     sed '
444       s/[$]LINENO.*/&-/
445       t lineno
446       b
447       :lineno
448       N
449       :loop
450       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451       t loop
452       s/-\n.*//
453     ' >$as_me.lineno &&
454   chmod +x "$as_me.lineno" ||
455     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
456    { (exit 1); exit 1; }; }
457
458   # Don't try to exec as it changes $[0], causing all sort of problems
459   # (the dirname of $[0] is not the place where we might find the
460   # original and so on.  Autoconf is especially sensitive to this).
461   . "./$as_me.lineno"
462   # Exit status is that of the last command.
463   exit
464 }
465
466
467 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
468   as_dirname=dirname
469 else
470   as_dirname=false
471 fi
472
473 ECHO_C= ECHO_N= ECHO_T=
474 case `echo -n x` in
475 -n*)
476   case `echo 'x\c'` in
477   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
478   *)   ECHO_C='\c';;
479   esac;;
480 *)
481   ECHO_N='-n';;
482 esac
483
484 if expr a : '\(a\)' >/dev/null 2>&1 &&
485    test "X`expr 00001 : '.*\(...\)'`" = X001; then
486   as_expr=expr
487 else
488   as_expr=false
489 fi
490
491 rm -f conf$$ conf$$.exe conf$$.file
492 if test -d conf$$.dir; then
493   rm -f conf$$.dir/conf$$.file
494 else
495   rm -f conf$$.dir
496   mkdir conf$$.dir
497 fi
498 echo >conf$$.file
499 if ln -s conf$$.file conf$$ 2>/dev/null; then
500   as_ln_s='ln -s'
501   # ... but there are two gotchas:
502   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
503   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
504   # In both cases, we have to default to `cp -p'.
505   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506     as_ln_s='cp -p'
507 elif ln conf$$.file conf$$ 2>/dev/null; then
508   as_ln_s=ln
509 else
510   as_ln_s='cp -p'
511 fi
512 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
513 rmdir conf$$.dir 2>/dev/null
514
515 if mkdir -p . 2>/dev/null; then
516   as_mkdir_p=:
517 else
518   test -d ./-p && rmdir ./-p
519   as_mkdir_p=false
520 fi
521
522 if test -x / >/dev/null 2>&1; then
523   as_test_x='test -x'
524 else
525   if ls -dL / >/dev/null 2>&1; then
526     as_ls_L_option=L
527   else
528     as_ls_L_option=
529   fi
530   as_test_x='
531     eval sh -c '\''
532       if test -d "$1"; then
533         test -d "$1/.";
534       else
535         case $1 in
536         -*)set "./$1";;
537         esac;
538         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
539         ???[sx]*):;;*)false;;esac;fi
540     '\'' sh
541   '
542 fi
543 as_executable_p=$as_test_x
544
545 # Sed expression to map a string onto a valid CPP name.
546 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547
548 # Sed expression to map a string onto a valid variable name.
549 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
550
551
552
553
554 # Check that we are running under the correct shell.
555 SHELL=${CONFIG_SHELL-/bin/sh}
556
557 case X$ECHO in
558 X*--fallback-echo)
559   # Remove one level of quotation (which was required for Make).
560   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
561   ;;
562 esac
563
564 echo=${ECHO-echo}
565 if test "X$1" = X--no-reexec; then
566   # Discard the --no-reexec flag, and continue.
567   shift
568 elif test "X$1" = X--fallback-echo; then
569   # Avoid inline document here, it may be left over
570   :
571 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
572   # Yippee, $echo works!
573   :
574 else
575   # Restart under the correct shell.
576   exec $SHELL "$0" --no-reexec ${1+"$@"}
577 fi
578
579 if test "X$1" = X--fallback-echo; then
580   # used as fallback echo
581   shift
582   cat <<EOF
583 $*
584 EOF
585   exit 0
586 fi
587
588 # The HP-UX ksh and POSIX shell print the target directory to stdout
589 # if CDPATH is set.
590 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591
592 if test -z "$ECHO"; then
593 if test "X${echo_test_string+set}" != Xset; then
594 # find a string as large as possible, as long as the shell can cope with it
595   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
596     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
597     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
598        echo_test_string=`eval $cmd` &&
599        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
600     then
601       break
602     fi
603   done
604 fi
605
606 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
607    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
608    test "X$echo_testing_string" = "X$echo_test_string"; then
609   :
610 else
611   # The Solaris, AIX, and Digital Unix default echo programs unquote
612   # backslashes.  This makes it impossible to quote backslashes using
613   #   echo "$something" | sed 's/\\/\\\\/g'
614   #
615   # So, first we look for a working echo in the user's PATH.
616
617   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
618   for dir in $PATH /usr/ucb; do
619     IFS="$lt_save_ifs"
620     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
621        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
622        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
623        test "X$echo_testing_string" = "X$echo_test_string"; then
624       echo="$dir/echo"
625       break
626     fi
627   done
628   IFS="$lt_save_ifs"
629
630   if test "X$echo" = Xecho; then
631     # We didn't find a better echo, so look for alternatives.
632     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
633        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
634        test "X$echo_testing_string" = "X$echo_test_string"; then
635       # This shell has a builtin print -r that does the trick.
636       echo='print -r'
637     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
638          test "X$CONFIG_SHELL" != X/bin/ksh; then
639       # If we have ksh, try running configure again with it.
640       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
641       export ORIGINAL_CONFIG_SHELL
642       CONFIG_SHELL=/bin/ksh
643       export CONFIG_SHELL
644       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
645     else
646       # Try using printf.
647       echo='printf %s\n'
648       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
649          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
650          test "X$echo_testing_string" = "X$echo_test_string"; then
651         # Cool, printf works
652         :
653       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
654            test "X$echo_testing_string" = 'X\t' &&
655            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
656            test "X$echo_testing_string" = "X$echo_test_string"; then
657         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
658         export CONFIG_SHELL
659         SHELL="$CONFIG_SHELL"
660         export SHELL
661         echo="$CONFIG_SHELL $0 --fallback-echo"
662       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
663            test "X$echo_testing_string" = 'X\t' &&
664            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
665            test "X$echo_testing_string" = "X$echo_test_string"; then
666         echo="$CONFIG_SHELL $0 --fallback-echo"
667       else
668         # maybe with a smaller string...
669         prev=:
670
671         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
672           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
673           then
674             break
675           fi
676           prev="$cmd"
677         done
678
679         if test "$prev" != 'sed 50q "$0"'; then
680           echo_test_string=`eval $prev`
681           export echo_test_string
682           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
683         else
684           # Oops.  We lost completely, so just stick with echo.
685           echo=echo
686         fi
687       fi
688     fi
689   fi
690 fi
691 fi
692
693 # Copy echo and quote the copy suitably for passing to libtool from
694 # the Makefile, instead of quoting the original, which is used later.
695 ECHO=$echo
696 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
697    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
698 fi
699
700
701
702
703 tagnames=${tagnames+${tagnames},}CXX
704
705 tagnames=${tagnames+${tagnames},}F77
706
707 exec 7<&0 </dev/null 6>&1
708
709 # Name of the host.
710 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
711 # so uname gets run too.
712 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
713
714 #
715 # Initializations.
716 #
717 ac_default_prefix=/usr/local
718 ac_clean_files=
719 ac_config_libobj_dir=.
720 LIBOBJS=
721 cross_compiling=no
722 subdirs=
723 MFLAGS=
724 MAKEFLAGS=
725 SHELL=${CONFIG_SHELL-/bin/sh}
726
727 # Identity of this package.
728 PACKAGE_NAME=
729 PACKAGE_TARNAME=
730 PACKAGE_VERSION=
731 PACKAGE_STRING=
732 PACKAGE_BUGREPORT=
733
734 ac_unique_file="src/main/radiusd.c"
735 # Factoring default headers for most tests.
736 ac_includes_default="\
737 #include <stdio.h>
738 #ifdef HAVE_SYS_TYPES_H
739 # include <sys/types.h>
740 #endif
741 #ifdef HAVE_SYS_STAT_H
742 # include <sys/stat.h>
743 #endif
744 #ifdef STDC_HEADERS
745 # include <stdlib.h>
746 # include <stddef.h>
747 #else
748 # ifdef HAVE_STDLIB_H
749 #  include <stdlib.h>
750 # endif
751 #endif
752 #ifdef HAVE_STRING_H
753 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
754 #  include <memory.h>
755 # endif
756 # include <string.h>
757 #endif
758 #ifdef HAVE_STRINGS_H
759 # include <strings.h>
760 #endif
761 #ifdef HAVE_INTTYPES_H
762 # include <inttypes.h>
763 #endif
764 #ifdef HAVE_STDINT_H
765 # include <stdint.h>
766 #endif
767 #ifdef HAVE_UNISTD_H
768 # include <unistd.h>
769 #endif"
770
771 ac_subst_vars='SHELL
772 PATH_SEPARATOR
773 PACKAGE_NAME
774 PACKAGE_TARNAME
775 PACKAGE_VERSION
776 PACKAGE_STRING
777 PACKAGE_BUGREPORT
778 exec_prefix
779 prefix
780 program_transform_name
781 bindir
782 sbindir
783 libexecdir
784 datarootdir
785 datadir
786 sysconfdir
787 sharedstatedir
788 localstatedir
789 includedir
790 oldincludedir
791 docdir
792 infodir
793 htmldir
794 dvidir
795 pdfdir
796 psdir
797 libdir
798 localedir
799 mandir
800 DEFS
801 ECHO_C
802 ECHO_N
803 ECHO_T
804 LIBS
805 build_alias
806 host_alias
807 target_alias
808 CC
809 CFLAGS
810 LDFLAGS
811 CPPFLAGS
812 ac_ct_CC
813 EXEEXT
814 OBJEXT
815 CXX
816 CXXFLAGS
817 ac_ct_CXX
818 CPP
819 GREP
820 EGREP
821 RANLIB
822 GMAKE
823 MAKE
824 LTDL_SUBDIRS
825 LIBTOOL
826 build
827 build_cpu
828 build_vendor
829 build_os
830 host
831 host_cpu
832 host_vendor
833 host_os
834 LN_S
835 ECHO
836 AR
837 STRIP
838 CXXCPP
839 F77
840 FFLAGS
841 ac_ct_F77
842 logdir
843 radacctdir
844 raddbdir
845 PERL
846 SNMPGET
847 SNMPWALK
848 RUSERS
849 ACLOCAL
850 AUTOCONF
851 AUTOHEADER
852 LOCATE
853 DIRNAME
854 REGEX
855 REGEX_EXTENDED
856 OPENSSL_INCLUDE
857 OPENSSL_LIBS
858 PCAP_LIBS
859 LIBPREFIX
860 CRYPTLIB
861 SNMP_LIBS
862 SNMP_INCLUDE
863 HOSTINFO
864 LIBLTDL
865 INCLTDL
866 subdirs
867 MODULES
868 INSTALLSTRIP
869 USE_SHARED_LIBS
870 USE_STATIC_LIBS
871 STATIC_MODULES
872 RADIUSD_MAJOR_VERSION
873 RADIUSD_MINOR_VERSION
874 RADIUSD_VERSION
875 LIBOBJS
876 LTLIBOBJS'
877 ac_subst_files=''
878       ac_precious_vars='build_alias
879 host_alias
880 target_alias
881 CC
882 CFLAGS
883 LDFLAGS
884 LIBS
885 CPPFLAGS
886 CXX
887 CXXFLAGS
888 CCC
889 CPP
890 CXXCPP
891 F77
892 FFLAGS'
893 ac_subdirs_all='$LTDL_SUBDIRS $mysubdirs'
894
895 # Initialize some variables set by options.
896 ac_init_help=
897 ac_init_version=false
898 # The variables have the same names as the options, with
899 # dashes changed to underlines.
900 cache_file=/dev/null
901 exec_prefix=NONE
902 no_create=
903 no_recursion=
904 prefix=NONE
905 program_prefix=NONE
906 program_suffix=NONE
907 program_transform_name=s,x,x,
908 silent=
909 site=
910 srcdir=
911 verbose=
912 x_includes=NONE
913 x_libraries=NONE
914
915 # Installation directory options.
916 # These are left unexpanded so users can "make install exec_prefix=/foo"
917 # and all the variables that are supposed to be based on exec_prefix
918 # by default will actually change.
919 # Use braces instead of parens because sh, perl, etc. also accept them.
920 # (The list follows the same order as the GNU Coding Standards.)
921 bindir='${exec_prefix}/bin'
922 sbindir='${exec_prefix}/sbin'
923 libexecdir='${exec_prefix}/libexec'
924 datarootdir='${prefix}/share'
925 datadir='${datarootdir}'
926 sysconfdir='${prefix}/etc'
927 sharedstatedir='${prefix}/com'
928 localstatedir='${prefix}/var'
929 includedir='${prefix}/include'
930 oldincludedir='/usr/include'
931 docdir='${datarootdir}/doc/${PACKAGE}'
932 infodir='${datarootdir}/info'
933 htmldir='${docdir}'
934 dvidir='${docdir}'
935 pdfdir='${docdir}'
936 psdir='${docdir}'
937 libdir='${exec_prefix}/lib'
938 localedir='${datarootdir}/locale'
939 mandir='${datarootdir}/man'
940
941 ac_prev=
942 ac_dashdash=
943 for ac_option
944 do
945   # If the previous option needs an argument, assign it.
946   if test -n "$ac_prev"; then
947     eval $ac_prev=\$ac_option
948     ac_prev=
949     continue
950   fi
951
952   case $ac_option in
953   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
954   *)    ac_optarg=yes ;;
955   esac
956
957   # Accept the important Cygnus configure options, so we can diagnose typos.
958
959   case $ac_dashdash$ac_option in
960   --)
961     ac_dashdash=yes ;;
962
963   -bindir | --bindir | --bindi | --bind | --bin | --bi)
964     ac_prev=bindir ;;
965   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
966     bindir=$ac_optarg ;;
967
968   -build | --build | --buil | --bui | --bu)
969     ac_prev=build_alias ;;
970   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
971     build_alias=$ac_optarg ;;
972
973   -cache-file | --cache-file | --cache-fil | --cache-fi \
974   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
975     ac_prev=cache_file ;;
976   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
977   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
978     cache_file=$ac_optarg ;;
979
980   --config-cache | -C)
981     cache_file=config.cache ;;
982
983   -datadir | --datadir | --datadi | --datad)
984     ac_prev=datadir ;;
985   -datadir=* | --datadir=* | --datadi=* | --datad=*)
986     datadir=$ac_optarg ;;
987
988   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
989   | --dataroo | --dataro | --datar)
990     ac_prev=datarootdir ;;
991   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
992   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
993     datarootdir=$ac_optarg ;;
994
995   -disable-* | --disable-*)
996     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
997     # Reject names that are not valid shell variable names.
998     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
999       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1000    { (exit 1); exit 1; }; }
1001     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1002     eval enable_$ac_feature=no ;;
1003
1004   -docdir | --docdir | --docdi | --doc | --do)
1005     ac_prev=docdir ;;
1006   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1007     docdir=$ac_optarg ;;
1008
1009   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1010     ac_prev=dvidir ;;
1011   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1012     dvidir=$ac_optarg ;;
1013
1014   -enable-* | --enable-*)
1015     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1016     # Reject names that are not valid shell variable names.
1017     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1018       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1019    { (exit 1); exit 1; }; }
1020     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1021     eval enable_$ac_feature=\$ac_optarg ;;
1022
1023   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1024   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1025   | --exec | --exe | --ex)
1026     ac_prev=exec_prefix ;;
1027   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1028   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1029   | --exec=* | --exe=* | --ex=*)
1030     exec_prefix=$ac_optarg ;;
1031
1032   -gas | --gas | --ga | --g)
1033     # Obsolete; use --with-gas.
1034     with_gas=yes ;;
1035
1036   -help | --help | --hel | --he | -h)
1037     ac_init_help=long ;;
1038   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1039     ac_init_help=recursive ;;
1040   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1041     ac_init_help=short ;;
1042
1043   -host | --host | --hos | --ho)
1044     ac_prev=host_alias ;;
1045   -host=* | --host=* | --hos=* | --ho=*)
1046     host_alias=$ac_optarg ;;
1047
1048   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1049     ac_prev=htmldir ;;
1050   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1051   | --ht=*)
1052     htmldir=$ac_optarg ;;
1053
1054   -includedir | --includedir | --includedi | --included | --include \
1055   | --includ | --inclu | --incl | --inc)
1056     ac_prev=includedir ;;
1057   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1058   | --includ=* | --inclu=* | --incl=* | --inc=*)
1059     includedir=$ac_optarg ;;
1060
1061   -infodir | --infodir | --infodi | --infod | --info | --inf)
1062     ac_prev=infodir ;;
1063   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1064     infodir=$ac_optarg ;;
1065
1066   -libdir | --libdir | --libdi | --libd)
1067     ac_prev=libdir ;;
1068   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1069     libdir=$ac_optarg ;;
1070
1071   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1072   | --libexe | --libex | --libe)
1073     ac_prev=libexecdir ;;
1074   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1075   | --libexe=* | --libex=* | --libe=*)
1076     libexecdir=$ac_optarg ;;
1077
1078   -localedir | --localedir | --localedi | --localed | --locale)
1079     ac_prev=localedir ;;
1080   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1081     localedir=$ac_optarg ;;
1082
1083   -localstatedir | --localstatedir | --localstatedi | --localstated \
1084   | --localstate | --localstat | --localsta | --localst | --locals)
1085     ac_prev=localstatedir ;;
1086   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1087   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1088     localstatedir=$ac_optarg ;;
1089
1090   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1091     ac_prev=mandir ;;
1092   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1093     mandir=$ac_optarg ;;
1094
1095   -nfp | --nfp | --nf)
1096     # Obsolete; use --without-fp.
1097     with_fp=no ;;
1098
1099   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1100   | --no-cr | --no-c | -n)
1101     no_create=yes ;;
1102
1103   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1104   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1105     no_recursion=yes ;;
1106
1107   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1108   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1109   | --oldin | --oldi | --old | --ol | --o)
1110     ac_prev=oldincludedir ;;
1111   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1112   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1113   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1114     oldincludedir=$ac_optarg ;;
1115
1116   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1117     ac_prev=prefix ;;
1118   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1119     prefix=$ac_optarg ;;
1120
1121   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1122   | --program-pre | --program-pr | --program-p)
1123     ac_prev=program_prefix ;;
1124   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1125   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1126     program_prefix=$ac_optarg ;;
1127
1128   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1129   | --program-suf | --program-su | --program-s)
1130     ac_prev=program_suffix ;;
1131   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1132   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1133     program_suffix=$ac_optarg ;;
1134
1135   -program-transform-name | --program-transform-name \
1136   | --program-transform-nam | --program-transform-na \
1137   | --program-transform-n | --program-transform- \
1138   | --program-transform | --program-transfor \
1139   | --program-transfo | --program-transf \
1140   | --program-trans | --program-tran \
1141   | --progr-tra | --program-tr | --program-t)
1142     ac_prev=program_transform_name ;;
1143   -program-transform-name=* | --program-transform-name=* \
1144   | --program-transform-nam=* | --program-transform-na=* \
1145   | --program-transform-n=* | --program-transform-=* \
1146   | --program-transform=* | --program-transfor=* \
1147   | --program-transfo=* | --program-transf=* \
1148   | --program-trans=* | --program-tran=* \
1149   | --progr-tra=* | --program-tr=* | --program-t=*)
1150     program_transform_name=$ac_optarg ;;
1151
1152   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1153     ac_prev=pdfdir ;;
1154   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1155     pdfdir=$ac_optarg ;;
1156
1157   -psdir | --psdir | --psdi | --psd | --ps)
1158     ac_prev=psdir ;;
1159   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1160     psdir=$ac_optarg ;;
1161
1162   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1163   | -silent | --silent | --silen | --sile | --sil)
1164     silent=yes ;;
1165
1166   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1167     ac_prev=sbindir ;;
1168   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1169   | --sbi=* | --sb=*)
1170     sbindir=$ac_optarg ;;
1171
1172   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1173   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1174   | --sharedst | --shareds | --shared | --share | --shar \
1175   | --sha | --sh)
1176     ac_prev=sharedstatedir ;;
1177   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1178   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1179   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1180   | --sha=* | --sh=*)
1181     sharedstatedir=$ac_optarg ;;
1182
1183   -site | --site | --sit)
1184     ac_prev=site ;;
1185   -site=* | --site=* | --sit=*)
1186     site=$ac_optarg ;;
1187
1188   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1189     ac_prev=srcdir ;;
1190   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1191     srcdir=$ac_optarg ;;
1192
1193   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1194   | --syscon | --sysco | --sysc | --sys | --sy)
1195     ac_prev=sysconfdir ;;
1196   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1197   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1198     sysconfdir=$ac_optarg ;;
1199
1200   -target | --target | --targe | --targ | --tar | --ta | --t)
1201     ac_prev=target_alias ;;
1202   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1203     target_alias=$ac_optarg ;;
1204
1205   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1206     verbose=yes ;;
1207
1208   -version | --version | --versio | --versi | --vers | -V)
1209     ac_init_version=: ;;
1210
1211   -with-* | --with-*)
1212     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1213     # Reject names that are not valid shell variable names.
1214     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1215       { echo "$as_me: error: invalid package name: $ac_package" >&2
1216    { (exit 1); exit 1; }; }
1217     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1218     eval with_$ac_package=\$ac_optarg ;;
1219
1220   -without-* | --without-*)
1221     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1222     # Reject names that are not valid shell variable names.
1223     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1224       { echo "$as_me: error: invalid package name: $ac_package" >&2
1225    { (exit 1); exit 1; }; }
1226     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1227     eval with_$ac_package=no ;;
1228
1229   --x)
1230     # Obsolete; use --with-x.
1231     with_x=yes ;;
1232
1233   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1234   | --x-incl | --x-inc | --x-in | --x-i)
1235     ac_prev=x_includes ;;
1236   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1237   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1238     x_includes=$ac_optarg ;;
1239
1240   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1241   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1242     ac_prev=x_libraries ;;
1243   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1244   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1245     x_libraries=$ac_optarg ;;
1246
1247   -*) { echo "$as_me: error: unrecognized option: $ac_option
1248 Try \`$0 --help' for more information." >&2
1249    { (exit 1); exit 1; }; }
1250     ;;
1251
1252   *=*)
1253     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1254     # Reject names that are not valid shell variable names.
1255     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1256       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1257    { (exit 1); exit 1; }; }
1258     eval $ac_envvar=\$ac_optarg
1259     export $ac_envvar ;;
1260
1261   *)
1262     # FIXME: should be removed in autoconf 3.0.
1263     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1264     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1265       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1266     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1267     ;;
1268
1269   esac
1270 done
1271
1272 if test -n "$ac_prev"; then
1273   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1274   { echo "$as_me: error: missing argument to $ac_option" >&2
1275    { (exit 1); exit 1; }; }
1276 fi
1277
1278 # Be sure to have absolute directory names.
1279 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1280                 datadir sysconfdir sharedstatedir localstatedir includedir \
1281                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1282                 libdir localedir mandir
1283 do
1284   eval ac_val=\$$ac_var
1285   case $ac_val in
1286     [\\/$]* | ?:[\\/]* )  continue;;
1287     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1288   esac
1289   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1290    { (exit 1); exit 1; }; }
1291 done
1292
1293 # There might be people who depend on the old broken behavior: `$host'
1294 # used to hold the argument of --host etc.
1295 # FIXME: To remove some day.
1296 build=$build_alias
1297 host=$host_alias
1298 target=$target_alias
1299
1300 # FIXME: To remove some day.
1301 if test "x$host_alias" != x; then
1302   if test "x$build_alias" = x; then
1303     cross_compiling=maybe
1304     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1305     If a cross compiler is detected then cross compile mode will be used." >&2
1306   elif test "x$build_alias" != "x$host_alias"; then
1307     cross_compiling=yes
1308   fi
1309 fi
1310
1311 ac_tool_prefix=
1312 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1313
1314 test "$silent" = yes && exec 6>/dev/null
1315
1316
1317 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1318 ac_ls_di=`ls -di .` &&
1319 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1320   { echo "$as_me: error: Working directory cannot be determined" >&2
1321    { (exit 1); exit 1; }; }
1322 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1323   { echo "$as_me: error: pwd does not report name of working directory" >&2
1324    { (exit 1); exit 1; }; }
1325
1326
1327 # Find the source files, if location was not specified.
1328 if test -z "$srcdir"; then
1329   ac_srcdir_defaulted=yes
1330   # Try the directory containing this script, then the parent directory.
1331   ac_confdir=`$as_dirname -- "$0" ||
1332 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1333          X"$0" : 'X\(//\)[^/]' \| \
1334          X"$0" : 'X\(//\)$' \| \
1335          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1336 echo X"$0" |
1337     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1338             s//\1/
1339             q
1340           }
1341           /^X\(\/\/\)[^/].*/{
1342             s//\1/
1343             q
1344           }
1345           /^X\(\/\/\)$/{
1346             s//\1/
1347             q
1348           }
1349           /^X\(\/\).*/{
1350             s//\1/
1351             q
1352           }
1353           s/.*/./; q'`
1354   srcdir=$ac_confdir
1355   if test ! -r "$srcdir/$ac_unique_file"; then
1356     srcdir=..
1357   fi
1358 else
1359   ac_srcdir_defaulted=no
1360 fi
1361 if test ! -r "$srcdir/$ac_unique_file"; then
1362   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1363   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1364    { (exit 1); exit 1; }; }
1365 fi
1366 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1367 ac_abs_confdir=`(
1368         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1369    { (exit 1); exit 1; }; }
1370         pwd)`
1371 # When building in place, set srcdir=.
1372 if test "$ac_abs_confdir" = "$ac_pwd"; then
1373   srcdir=.
1374 fi
1375 # Remove unnecessary trailing slashes from srcdir.
1376 # Double slashes in file names in object file debugging info
1377 # mess up M-x gdb in Emacs.
1378 case $srcdir in
1379 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1380 esac
1381 for ac_var in $ac_precious_vars; do
1382   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1383   eval ac_env_${ac_var}_value=\$${ac_var}
1384   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1385   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1386 done
1387
1388 #
1389 # Report the --help message.
1390 #
1391 if test "$ac_init_help" = "long"; then
1392   # Omit some internal or obsolete options to make the list less imposing.
1393   # This message is too long to be a string in the A/UX 3.1 sh.
1394   cat <<_ACEOF
1395 \`configure' configures this package to adapt to many kinds of systems.
1396
1397 Usage: $0 [OPTION]... [VAR=VALUE]...
1398
1399 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1400 VAR=VALUE.  See below for descriptions of some of the useful variables.
1401
1402 Defaults for the options are specified in brackets.
1403
1404 Configuration:
1405   -h, --help              display this help and exit
1406       --help=short        display options specific to this package
1407       --help=recursive    display the short help of all the included packages
1408   -V, --version           display version information and exit
1409   -q, --quiet, --silent   do not print \`checking...' messages
1410       --cache-file=FILE   cache test results in FILE [disabled]
1411   -C, --config-cache      alias for \`--cache-file=config.cache'
1412   -n, --no-create         do not create output files
1413       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1414
1415 Installation directories:
1416   --prefix=PREFIX         install architecture-independent files in PREFIX
1417                           [$ac_default_prefix]
1418   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1419                           [PREFIX]
1420
1421 By default, \`make install' will install all the files in
1422 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1423 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1424 for instance \`--prefix=\$HOME'.
1425
1426 For better control, use the options below.
1427
1428 Fine tuning of the installation directories:
1429   --bindir=DIR           user executables [EPREFIX/bin]
1430   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1431   --libexecdir=DIR       program executables [EPREFIX/libexec]
1432   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1433   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1434   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1435   --libdir=DIR           object code libraries [EPREFIX/lib]
1436   --includedir=DIR       C header files [PREFIX/include]
1437   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1438   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1439   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1440   --infodir=DIR          info documentation [DATAROOTDIR/info]
1441   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1442   --mandir=DIR           man documentation [DATAROOTDIR/man]
1443   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1444   --htmldir=DIR          html documentation [DOCDIR]
1445   --dvidir=DIR           dvi documentation [DOCDIR]
1446   --pdfdir=DIR           pdf documentation [DOCDIR]
1447   --psdir=DIR            ps documentation [DOCDIR]
1448 _ACEOF
1449
1450   cat <<\_ACEOF
1451
1452 System types:
1453   --build=BUILD     configure for building on BUILD [guessed]
1454   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1455 _ACEOF
1456 fi
1457
1458 if test -n "$ac_init_help"; then
1459
1460   cat <<\_ACEOF
1461
1462 Optional Features:
1463   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1464   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1465   --disable-largefile     omit support for large files
1466   --enable-shared[=PKGS]  build shared libraries [default=yes]
1467   --enable-static[=PKGS]  build static libraries [default=yes]
1468   --enable-fast-install[=PKGS]
1469                           optimize for fast installation [default=yes]
1470   --disable-libtool-lock  avoid locking (might break parallel builds)
1471   --enable-strict-dependencies  Fail configure on lack of module dependancy.
1472   --enable-developer               Enables features of interest to developers.
1473
1474 Optional Packages:
1475   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1476   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1477   --with-system-libtool              try to use libtool installed in your system default=use our own
1478   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1479   --with-pic              try to use only PIC/non-PIC objects [default=use
1480                           both]
1481   --with-tags[=TAGS]      include additional configurations [automatic]
1482   --with-docdir=DIR       Directory for documentation DATADIR/doc/freeradius
1483   --with-logdir=DIR       Directory for logfiles LOCALSTATEDIR/log/radius
1484   --with-radacctdir=DIR   Directory for detail files LOGDIR/radacct
1485   --with-raddbdir=DIR     Directory for config files SYSCONFDIR/raddb
1486   --with-ascend-binary    Include support for Ascend binary filter attributes (default=yes)
1487   --with-threads          Use threads, if available.  (default=yes)
1488   --with-snmp             Compile in SNMP support. (default=yes)
1489   --with-snmp-include-dir=DIR  Directory to look for include files used by SNMP
1490   --with-vmps             Compile in VMPS support. (default=yes)
1491   --with-static-modules=QUOTED-MODULE-LIST
1492  --with-modules=QUOTED-MODULE-LIST
1493   --with-experimental-modules      Use experimental and unstable modules. (default=no)
1494   --with-openssl                   Use OpenSSL. (default=yes)
1495   --with-openssl-includes=DIR      Directory to look for OpenSSL include files
1496   --with-openssl-libraries=DIR     Directory to look for OpenSSL library files
1497   --with-rlm-FOO-lib-dir=DIR       Directory to look for library files used by module FOO
1498   --with-rlm-FOO-include-dir=DIR   Directory to look for include files used by module FOO
1499   --with-udpfromto        Compile in UDPFROMTO support. (default=yes)
1500
1501 Some influential environment variables:
1502   CC          C compiler command
1503   CFLAGS      C compiler flags
1504   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1505               nonstandard directory <lib dir>
1506   LIBS        libraries to pass to the linker, e.g. -l<library>
1507   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1508               you have headers in a nonstandard directory <include dir>
1509   CXX         C++ compiler command
1510   CXXFLAGS    C++ compiler flags
1511   CPP         C preprocessor
1512   CXXCPP      C++ preprocessor
1513   F77         Fortran 77 compiler command
1514   FFLAGS      Fortran 77 compiler flags
1515
1516 Use these variables to override the choices made by `configure' or to help
1517 it to find libraries and programs with nonstandard names/locations.
1518
1519 _ACEOF
1520 ac_status=$?
1521 fi
1522
1523 if test "$ac_init_help" = "recursive"; then
1524   # If there are subdirs, report their specific --help.
1525   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1526     test -d "$ac_dir" || continue
1527     ac_builddir=.
1528
1529 case "$ac_dir" in
1530 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1531 *)
1532   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1533   # A ".." for each directory in $ac_dir_suffix.
1534   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1535   case $ac_top_builddir_sub in
1536   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1537   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1538   esac ;;
1539 esac
1540 ac_abs_top_builddir=$ac_pwd
1541 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1542 # for backward compatibility:
1543 ac_top_builddir=$ac_top_build_prefix
1544
1545 case $srcdir in
1546   .)  # We are building in place.
1547     ac_srcdir=.
1548     ac_top_srcdir=$ac_top_builddir_sub
1549     ac_abs_top_srcdir=$ac_pwd ;;
1550   [\\/]* | ?:[\\/]* )  # Absolute name.
1551     ac_srcdir=$srcdir$ac_dir_suffix;
1552     ac_top_srcdir=$srcdir
1553     ac_abs_top_srcdir=$srcdir ;;
1554   *) # Relative name.
1555     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1556     ac_top_srcdir=$ac_top_build_prefix$srcdir
1557     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1558 esac
1559 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1560
1561     cd "$ac_dir" || { ac_status=$?; continue; }
1562     # Check for guested configure.
1563     if test -f "$ac_srcdir/configure.gnu"; then
1564       echo &&
1565       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1566     elif test -f "$ac_srcdir/configure"; then
1567       echo &&
1568       $SHELL "$ac_srcdir/configure" --help=recursive
1569     else
1570       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1571     fi || ac_status=$?
1572     cd "$ac_pwd" || { ac_status=$?; break; }
1573   done
1574 fi
1575
1576 test -n "$ac_init_help" && exit $ac_status
1577 if $ac_init_version; then
1578   cat <<\_ACEOF
1579 configure
1580 generated by GNU Autoconf 2.61
1581
1582 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1583 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1584 This configure script is free software; the Free Software Foundation
1585 gives unlimited permission to copy, distribute and modify it.
1586 _ACEOF
1587   exit
1588 fi
1589 cat >config.log <<_ACEOF
1590 This file contains any messages produced by compilers while
1591 running configure, to aid debugging if configure makes a mistake.
1592
1593 It was created by $as_me, which was
1594 generated by GNU Autoconf 2.61.  Invocation command line was
1595
1596   $ $0 $@
1597
1598 _ACEOF
1599 exec 5>>config.log
1600 {
1601 cat <<_ASUNAME
1602 ## --------- ##
1603 ## Platform. ##
1604 ## --------- ##
1605
1606 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1607 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1608 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1609 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1610 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1611
1612 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1613 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1614
1615 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1616 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1617 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1618 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1619 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1620 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1621 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1622
1623 _ASUNAME
1624
1625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1626 for as_dir in $PATH
1627 do
1628   IFS=$as_save_IFS
1629   test -z "$as_dir" && as_dir=.
1630   echo "PATH: $as_dir"
1631 done
1632 IFS=$as_save_IFS
1633
1634 } >&5
1635
1636 cat >&5 <<_ACEOF
1637
1638
1639 ## ----------- ##
1640 ## Core tests. ##
1641 ## ----------- ##
1642
1643 _ACEOF
1644
1645
1646 # Keep a trace of the command line.
1647 # Strip out --no-create and --no-recursion so they do not pile up.
1648 # Strip out --silent because we don't want to record it for future runs.
1649 # Also quote any args containing shell meta-characters.
1650 # Make two passes to allow for proper duplicate-argument suppression.
1651 ac_configure_args=
1652 ac_configure_args0=
1653 ac_configure_args1=
1654 ac_must_keep_next=false
1655 for ac_pass in 1 2
1656 do
1657   for ac_arg
1658   do
1659     case $ac_arg in
1660     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1661     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1662     | -silent | --silent | --silen | --sile | --sil)
1663       continue ;;
1664     *\'*)
1665       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1666     esac
1667     case $ac_pass in
1668     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1669     2)
1670       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1671       if test $ac_must_keep_next = true; then
1672         ac_must_keep_next=false # Got value, back to normal.
1673       else
1674         case $ac_arg in
1675           *=* | --config-cache | -C | -disable-* | --disable-* \
1676           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1677           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1678           | -with-* | --with-* | -without-* | --without-* | --x)
1679             case "$ac_configure_args0 " in
1680               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1681             esac
1682             ;;
1683           -* ) ac_must_keep_next=true ;;
1684         esac
1685       fi
1686       ac_configure_args="$ac_configure_args '$ac_arg'"
1687       ;;
1688     esac
1689   done
1690 done
1691 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1692 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1693
1694 # When interrupted or exit'd, cleanup temporary files, and complete
1695 # config.log.  We remove comments because anyway the quotes in there
1696 # would cause problems or look ugly.
1697 # WARNING: Use '\'' to represent an apostrophe within the trap.
1698 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1699 trap 'exit_status=$?
1700   # Save into config.log some information that might help in debugging.
1701   {
1702     echo
1703
1704     cat <<\_ASBOX
1705 ## ---------------- ##
1706 ## Cache variables. ##
1707 ## ---------------- ##
1708 _ASBOX
1709     echo
1710     # The following way of writing the cache mishandles newlines in values,
1711 (
1712   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1713     eval ac_val=\$$ac_var
1714     case $ac_val in #(
1715     *${as_nl}*)
1716       case $ac_var in #(
1717       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1718 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1719       esac
1720       case $ac_var in #(
1721       _ | IFS | as_nl) ;; #(
1722       *) $as_unset $ac_var ;;
1723       esac ;;
1724     esac
1725   done
1726   (set) 2>&1 |
1727     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1728     *${as_nl}ac_space=\ *)
1729       sed -n \
1730         "s/'\''/'\''\\\\'\'''\''/g;
1731           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1732       ;; #(
1733     *)
1734       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1735       ;;
1736     esac |
1737     sort
1738 )
1739     echo
1740
1741     cat <<\_ASBOX
1742 ## ----------------- ##
1743 ## Output variables. ##
1744 ## ----------------- ##
1745 _ASBOX
1746     echo
1747     for ac_var in $ac_subst_vars
1748     do
1749       eval ac_val=\$$ac_var
1750       case $ac_val in
1751       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1752       esac
1753       echo "$ac_var='\''$ac_val'\''"
1754     done | sort
1755     echo
1756
1757     if test -n "$ac_subst_files"; then
1758       cat <<\_ASBOX
1759 ## ------------------- ##
1760 ## File substitutions. ##
1761 ## ------------------- ##
1762 _ASBOX
1763       echo
1764       for ac_var in $ac_subst_files
1765       do
1766         eval ac_val=\$$ac_var
1767         case $ac_val in
1768         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1769         esac
1770         echo "$ac_var='\''$ac_val'\''"
1771       done | sort
1772       echo
1773     fi
1774
1775     if test -s confdefs.h; then
1776       cat <<\_ASBOX
1777 ## ----------- ##
1778 ## confdefs.h. ##
1779 ## ----------- ##
1780 _ASBOX
1781       echo
1782       cat confdefs.h
1783       echo
1784     fi
1785     test "$ac_signal" != 0 &&
1786       echo "$as_me: caught signal $ac_signal"
1787     echo "$as_me: exit $exit_status"
1788   } >&5
1789   rm -f core *.core core.conftest.* &&
1790     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1791     exit $exit_status
1792 ' 0
1793 for ac_signal in 1 2 13 15; do
1794   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1795 done
1796 ac_signal=0
1797
1798 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1799 rm -f -r conftest* confdefs.h
1800
1801 # Predefined preprocessor variables.
1802
1803 cat >>confdefs.h <<_ACEOF
1804 #define PACKAGE_NAME "$PACKAGE_NAME"
1805 _ACEOF
1806
1807
1808 cat >>confdefs.h <<_ACEOF
1809 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1810 _ACEOF
1811
1812
1813 cat >>confdefs.h <<_ACEOF
1814 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1815 _ACEOF
1816
1817
1818 cat >>confdefs.h <<_ACEOF
1819 #define PACKAGE_STRING "$PACKAGE_STRING"
1820 _ACEOF
1821
1822
1823 cat >>confdefs.h <<_ACEOF
1824 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1825 _ACEOF
1826
1827
1828 # Let the site file select an alternate cache file if it wants to.
1829 # Prefer explicitly selected file to automatically selected ones.
1830 if test -n "$CONFIG_SITE"; then
1831   set x "$CONFIG_SITE"
1832 elif test "x$prefix" != xNONE; then
1833   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1834 else
1835   set x "$ac_default_prefix/share/config.site" \
1836         "$ac_default_prefix/etc/config.site"
1837 fi
1838 shift
1839 for ac_site_file
1840 do
1841   if test -r "$ac_site_file"; then
1842     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1843 echo "$as_me: loading site script $ac_site_file" >&6;}
1844     sed 's/^/| /' "$ac_site_file" >&5
1845     . "$ac_site_file"
1846   fi
1847 done
1848
1849 if test -r "$cache_file"; then
1850   # Some versions of bash will fail to source /dev/null (special
1851   # files actually), so we avoid doing that.
1852   if test -f "$cache_file"; then
1853     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1854 echo "$as_me: loading cache $cache_file" >&6;}
1855     case $cache_file in
1856       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1857       *)                      . "./$cache_file";;
1858     esac
1859   fi
1860 else
1861   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1862 echo "$as_me: creating cache $cache_file" >&6;}
1863   >$cache_file
1864 fi
1865
1866 # Check that the precious variables saved in the cache have kept the same
1867 # value.
1868 ac_cache_corrupted=false
1869 for ac_var in $ac_precious_vars; do
1870   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1871   eval ac_new_set=\$ac_env_${ac_var}_set
1872   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1873   eval ac_new_val=\$ac_env_${ac_var}_value
1874   case $ac_old_set,$ac_new_set in
1875     set,)
1876       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1877 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1878       ac_cache_corrupted=: ;;
1879     ,set)
1880       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1881 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1882       ac_cache_corrupted=: ;;
1883     ,);;
1884     *)
1885       if test "x$ac_old_val" != "x$ac_new_val"; then
1886         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1887 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1888         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1889 echo "$as_me:   former value:  $ac_old_val" >&2;}
1890         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1891 echo "$as_me:   current value: $ac_new_val" >&2;}
1892         ac_cache_corrupted=:
1893       fi;;
1894   esac
1895   # Pass precious variables to config.status.
1896   if test "$ac_new_set" = set; then
1897     case $ac_new_val in
1898     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1899     *) ac_arg=$ac_var=$ac_new_val ;;
1900     esac
1901     case " $ac_configure_args " in
1902       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1903       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1904     esac
1905   fi
1906 done
1907 if $ac_cache_corrupted; then
1908   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1909 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1910   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1911 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1912    { (exit 1); exit 1; }; }
1913 fi
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931 ac_ext=c
1932 ac_cpp='$CPP $CPPFLAGS'
1933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1936
1937
1938 ac_config_headers="$ac_config_headers src/include/autoconf.h"
1939
1940
1941 RADIUSD_MAJOR_VERSION=2
1942 RADIUSD_MINOR_VERSION=0.0-pre2
1943 RADIUSD_VERSION="${RADIUSD_MAJOR_VERSION}.${RADIUSD_MINOR_VERSION}"
1944 PACKAGE=freeradius
1945
1946
1947 ac_ext=c
1948 ac_cpp='$CPP $CPPFLAGS'
1949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1952 if test -n "$ac_tool_prefix"; then
1953   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1954 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1957 if test "${ac_cv_prog_CC+set}" = set; then
1958   echo $ECHO_N "(cached) $ECHO_C" >&6
1959 else
1960   if test -n "$CC"; then
1961   ac_cv_prog_CC="$CC" # Let the user override the test.
1962 else
1963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1964 for as_dir in $PATH
1965 do
1966   IFS=$as_save_IFS
1967   test -z "$as_dir" && as_dir=.
1968   for ac_exec_ext in '' $ac_executable_extensions; do
1969   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1970     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1971     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1972     break 2
1973   fi
1974 done
1975 done
1976 IFS=$as_save_IFS
1977
1978 fi
1979 fi
1980 CC=$ac_cv_prog_CC
1981 if test -n "$CC"; then
1982   { echo "$as_me:$LINENO: result: $CC" >&5
1983 echo "${ECHO_T}$CC" >&6; }
1984 else
1985   { echo "$as_me:$LINENO: result: no" >&5
1986 echo "${ECHO_T}no" >&6; }
1987 fi
1988
1989
1990 fi
1991 if test -z "$ac_cv_prog_CC"; then
1992   ac_ct_CC=$CC
1993   # Extract the first word of "gcc", so it can be a program name with args.
1994 set dummy gcc; ac_word=$2
1995 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1997 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1998   echo $ECHO_N "(cached) $ECHO_C" >&6
1999 else
2000   if test -n "$ac_ct_CC"; then
2001   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2002 else
2003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2004 for as_dir in $PATH
2005 do
2006   IFS=$as_save_IFS
2007   test -z "$as_dir" && as_dir=.
2008   for ac_exec_ext in '' $ac_executable_extensions; do
2009   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2010     ac_cv_prog_ac_ct_CC="gcc"
2011     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2012     break 2
2013   fi
2014 done
2015 done
2016 IFS=$as_save_IFS
2017
2018 fi
2019 fi
2020 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2021 if test -n "$ac_ct_CC"; then
2022   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2023 echo "${ECHO_T}$ac_ct_CC" >&6; }
2024 else
2025   { echo "$as_me:$LINENO: result: no" >&5
2026 echo "${ECHO_T}no" >&6; }
2027 fi
2028
2029   if test "x$ac_ct_CC" = x; then
2030     CC=""
2031   else
2032     case $cross_compiling:$ac_tool_warned in
2033 yes:)
2034 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2035 whose name does not start with the host triplet.  If you think this
2036 configuration is useful to you, please write to autoconf@gnu.org." >&5
2037 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2038 whose name does not start with the host triplet.  If you think this
2039 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2040 ac_tool_warned=yes ;;
2041 esac
2042     CC=$ac_ct_CC
2043   fi
2044 else
2045   CC="$ac_cv_prog_CC"
2046 fi
2047
2048 if test -z "$CC"; then
2049           if test -n "$ac_tool_prefix"; then
2050     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2051 set dummy ${ac_tool_prefix}cc; ac_word=$2
2052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2054 if test "${ac_cv_prog_CC+set}" = set; then
2055   echo $ECHO_N "(cached) $ECHO_C" >&6
2056 else
2057   if test -n "$CC"; then
2058   ac_cv_prog_CC="$CC" # Let the user override the test.
2059 else
2060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2061 for as_dir in $PATH
2062 do
2063   IFS=$as_save_IFS
2064   test -z "$as_dir" && as_dir=.
2065   for ac_exec_ext in '' $ac_executable_extensions; do
2066   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2067     ac_cv_prog_CC="${ac_tool_prefix}cc"
2068     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2069     break 2
2070   fi
2071 done
2072 done
2073 IFS=$as_save_IFS
2074
2075 fi
2076 fi
2077 CC=$ac_cv_prog_CC
2078 if test -n "$CC"; then
2079   { echo "$as_me:$LINENO: result: $CC" >&5
2080 echo "${ECHO_T}$CC" >&6; }
2081 else
2082   { echo "$as_me:$LINENO: result: no" >&5
2083 echo "${ECHO_T}no" >&6; }
2084 fi
2085
2086
2087   fi
2088 fi
2089 if test -z "$CC"; then
2090   # Extract the first word of "cc", so it can be a program name with args.
2091 set dummy cc; ac_word=$2
2092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2094 if test "${ac_cv_prog_CC+set}" = set; then
2095   echo $ECHO_N "(cached) $ECHO_C" >&6
2096 else
2097   if test -n "$CC"; then
2098   ac_cv_prog_CC="$CC" # Let the user override the test.
2099 else
2100   ac_prog_rejected=no
2101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2102 for as_dir in $PATH
2103 do
2104   IFS=$as_save_IFS
2105   test -z "$as_dir" && as_dir=.
2106   for ac_exec_ext in '' $ac_executable_extensions; do
2107   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2108     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2109        ac_prog_rejected=yes
2110        continue
2111      fi
2112     ac_cv_prog_CC="cc"
2113     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2114     break 2
2115   fi
2116 done
2117 done
2118 IFS=$as_save_IFS
2119
2120 if test $ac_prog_rejected = yes; then
2121   # We found a bogon in the path, so make sure we never use it.
2122   set dummy $ac_cv_prog_CC
2123   shift
2124   if test $# != 0; then
2125     # We chose a different compiler from the bogus one.
2126     # However, it has the same basename, so the bogon will be chosen
2127     # first if we set CC to just the basename; use the full file name.
2128     shift
2129     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2130   fi
2131 fi
2132 fi
2133 fi
2134 CC=$ac_cv_prog_CC
2135 if test -n "$CC"; then
2136   { echo "$as_me:$LINENO: result: $CC" >&5
2137 echo "${ECHO_T}$CC" >&6; }
2138 else
2139   { echo "$as_me:$LINENO: result: no" >&5
2140 echo "${ECHO_T}no" >&6; }
2141 fi
2142
2143
2144 fi
2145 if test -z "$CC"; then
2146   if test -n "$ac_tool_prefix"; then
2147   for ac_prog in cl.exe
2148   do
2149     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2150 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2151 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2153 if test "${ac_cv_prog_CC+set}" = set; then
2154   echo $ECHO_N "(cached) $ECHO_C" >&6
2155 else
2156   if test -n "$CC"; then
2157   ac_cv_prog_CC="$CC" # Let the user override the test.
2158 else
2159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2160 for as_dir in $PATH
2161 do
2162   IFS=$as_save_IFS
2163   test -z "$as_dir" && as_dir=.
2164   for ac_exec_ext in '' $ac_executable_extensions; do
2165   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2166     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2167     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2168     break 2
2169   fi
2170 done
2171 done
2172 IFS=$as_save_IFS
2173
2174 fi
2175 fi
2176 CC=$ac_cv_prog_CC
2177 if test -n "$CC"; then
2178   { echo "$as_me:$LINENO: result: $CC" >&5
2179 echo "${ECHO_T}$CC" >&6; }
2180 else
2181   { echo "$as_me:$LINENO: result: no" >&5
2182 echo "${ECHO_T}no" >&6; }
2183 fi
2184
2185
2186     test -n "$CC" && break
2187   done
2188 fi
2189 if test -z "$CC"; then
2190   ac_ct_CC=$CC
2191   for ac_prog in cl.exe
2192 do
2193   # Extract the first word of "$ac_prog", so it can be a program name with args.
2194 set dummy $ac_prog; ac_word=$2
2195 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2197 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2198   echo $ECHO_N "(cached) $ECHO_C" >&6
2199 else
2200   if test -n "$ac_ct_CC"; then
2201   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2202 else
2203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2204 for as_dir in $PATH
2205 do
2206   IFS=$as_save_IFS
2207   test -z "$as_dir" && as_dir=.
2208   for ac_exec_ext in '' $ac_executable_extensions; do
2209   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2210     ac_cv_prog_ac_ct_CC="$ac_prog"
2211     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2212     break 2
2213   fi
2214 done
2215 done
2216 IFS=$as_save_IFS
2217
2218 fi
2219 fi
2220 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2221 if test -n "$ac_ct_CC"; then
2222   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2223 echo "${ECHO_T}$ac_ct_CC" >&6; }
2224 else
2225   { echo "$as_me:$LINENO: result: no" >&5
2226 echo "${ECHO_T}no" >&6; }
2227 fi
2228
2229
2230   test -n "$ac_ct_CC" && break
2231 done
2232
2233   if test "x$ac_ct_CC" = x; then
2234     CC=""
2235   else
2236     case $cross_compiling:$ac_tool_warned in
2237 yes:)
2238 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2239 whose name does not start with the host triplet.  If you think this
2240 configuration is useful to you, please write to autoconf@gnu.org." >&5
2241 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2242 whose name does not start with the host triplet.  If you think this
2243 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2244 ac_tool_warned=yes ;;
2245 esac
2246     CC=$ac_ct_CC
2247   fi
2248 fi
2249
2250 fi
2251
2252
2253 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2254 See \`config.log' for more details." >&5
2255 echo "$as_me: error: no acceptable C compiler found in \$PATH
2256 See \`config.log' for more details." >&2;}
2257    { (exit 1); exit 1; }; }
2258
2259 # Provide some information about the compiler.
2260 echo "$as_me:$LINENO: checking for C compiler version" >&5
2261 ac_compiler=`set X $ac_compile; echo $2`
2262 { (ac_try="$ac_compiler --version >&5"
2263 case "(($ac_try" in
2264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2265   *) ac_try_echo=$ac_try;;
2266 esac
2267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2268   (eval "$ac_compiler --version >&5") 2>&5
2269   ac_status=$?
2270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271   (exit $ac_status); }
2272 { (ac_try="$ac_compiler -v >&5"
2273 case "(($ac_try" in
2274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2275   *) ac_try_echo=$ac_try;;
2276 esac
2277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2278   (eval "$ac_compiler -v >&5") 2>&5
2279   ac_status=$?
2280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281   (exit $ac_status); }
2282 { (ac_try="$ac_compiler -V >&5"
2283 case "(($ac_try" in
2284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2285   *) ac_try_echo=$ac_try;;
2286 esac
2287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2288   (eval "$ac_compiler -V >&5") 2>&5
2289   ac_status=$?
2290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291   (exit $ac_status); }
2292
2293 cat >conftest.$ac_ext <<_ACEOF
2294 /* confdefs.h.  */
2295 _ACEOF
2296 cat confdefs.h >>conftest.$ac_ext
2297 cat >>conftest.$ac_ext <<_ACEOF
2298 /* end confdefs.h.  */
2299
2300 int
2301 main ()
2302 {
2303
2304   ;
2305   return 0;
2306 }
2307 _ACEOF
2308 ac_clean_files_save=$ac_clean_files
2309 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2310 # Try to create an executable without -o first, disregard a.out.
2311 # It will help us diagnose broken compilers, and finding out an intuition
2312 # of exeext.
2313 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2314 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2315 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2316 #
2317 # List of possible output files, starting from the most likely.
2318 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2319 # only as a last resort.  b.out is created by i960 compilers.
2320 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2321 #
2322 # The IRIX 6 linker writes into existing files which may not be
2323 # executable, retaining their permissions.  Remove them first so a
2324 # subsequent execution test works.
2325 ac_rmfiles=
2326 for ac_file in $ac_files
2327 do
2328   case $ac_file in
2329     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2330     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2331   esac
2332 done
2333 rm -f $ac_rmfiles
2334
2335 if { (ac_try="$ac_link_default"
2336 case "(($ac_try" in
2337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2338   *) ac_try_echo=$ac_try;;
2339 esac
2340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2341   (eval "$ac_link_default") 2>&5
2342   ac_status=$?
2343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344   (exit $ac_status); }; then
2345   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2346 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2347 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2348 # so that the user can short-circuit this test for compilers unknown to
2349 # Autoconf.
2350 for ac_file in $ac_files ''
2351 do
2352   test -f "$ac_file" || continue
2353   case $ac_file in
2354     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2355         ;;
2356     [ab].out )
2357         # We found the default executable, but exeext='' is most
2358         # certainly right.
2359         break;;
2360     *.* )
2361         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2362         then :; else
2363            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2364         fi
2365         # We set ac_cv_exeext here because the later test for it is not
2366         # safe: cross compilers may not add the suffix if given an `-o'
2367         # argument, so we may need to know it at that point already.
2368         # Even if this section looks crufty: it has the advantage of
2369         # actually working.
2370         break;;
2371     * )
2372         break;;
2373   esac
2374 done
2375 test "$ac_cv_exeext" = no && ac_cv_exeext=
2376
2377 else
2378   ac_file=''
2379 fi
2380
2381 { echo "$as_me:$LINENO: result: $ac_file" >&5
2382 echo "${ECHO_T}$ac_file" >&6; }
2383 if test -z "$ac_file"; then
2384   echo "$as_me: failed program was:" >&5
2385 sed 's/^/| /' conftest.$ac_ext >&5
2386
2387 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2388 See \`config.log' for more details." >&5
2389 echo "$as_me: error: C compiler cannot create executables
2390 See \`config.log' for more details." >&2;}
2391    { (exit 77); exit 77; }; }
2392 fi
2393
2394 ac_exeext=$ac_cv_exeext
2395
2396 # Check that the compiler produces executables we can run.  If not, either
2397 # the compiler is broken, or we cross compile.
2398 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2399 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2400 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2401 # If not cross compiling, check that we can run a simple program.
2402 if test "$cross_compiling" != yes; then
2403   if { ac_try='./$ac_file'
2404   { (case "(($ac_try" in
2405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2406   *) ac_try_echo=$ac_try;;
2407 esac
2408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2409   (eval "$ac_try") 2>&5
2410   ac_status=$?
2411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412   (exit $ac_status); }; }; then
2413     cross_compiling=no
2414   else
2415     if test "$cross_compiling" = maybe; then
2416         cross_compiling=yes
2417     else
2418         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2419 If you meant to cross compile, use \`--host'.
2420 See \`config.log' for more details." >&5
2421 echo "$as_me: error: cannot run C compiled programs.
2422 If you meant to cross compile, use \`--host'.
2423 See \`config.log' for more details." >&2;}
2424    { (exit 1); exit 1; }; }
2425     fi
2426   fi
2427 fi
2428 { echo "$as_me:$LINENO: result: yes" >&5
2429 echo "${ECHO_T}yes" >&6; }
2430
2431 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2432 ac_clean_files=$ac_clean_files_save
2433 # Check that the compiler produces executables we can run.  If not, either
2434 # the compiler is broken, or we cross compile.
2435 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2436 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2437 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2438 echo "${ECHO_T}$cross_compiling" >&6; }
2439
2440 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2441 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2442 if { (ac_try="$ac_link"
2443 case "(($ac_try" in
2444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2445   *) ac_try_echo=$ac_try;;
2446 esac
2447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2448   (eval "$ac_link") 2>&5
2449   ac_status=$?
2450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451   (exit $ac_status); }; then
2452   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2453 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2454 # work properly (i.e., refer to `conftest.exe'), while it won't with
2455 # `rm'.
2456 for ac_file in conftest.exe conftest conftest.*; do
2457   test -f "$ac_file" || continue
2458   case $ac_file in
2459     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2460     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2461           break;;
2462     * ) break;;
2463   esac
2464 done
2465 else
2466   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2467 See \`config.log' for more details." >&5
2468 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2469 See \`config.log' for more details." >&2;}
2470    { (exit 1); exit 1; }; }
2471 fi
2472
2473 rm -f conftest$ac_cv_exeext
2474 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2475 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2476
2477 rm -f conftest.$ac_ext
2478 EXEEXT=$ac_cv_exeext
2479 ac_exeext=$EXEEXT
2480 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2481 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2482 if test "${ac_cv_objext+set}" = set; then
2483   echo $ECHO_N "(cached) $ECHO_C" >&6
2484 else
2485   cat >conftest.$ac_ext <<_ACEOF
2486 /* confdefs.h.  */
2487 _ACEOF
2488 cat confdefs.h >>conftest.$ac_ext
2489 cat >>conftest.$ac_ext <<_ACEOF
2490 /* end confdefs.h.  */
2491
2492 int
2493 main ()
2494 {
2495
2496   ;
2497   return 0;
2498 }
2499 _ACEOF
2500 rm -f conftest.o conftest.obj
2501 if { (ac_try="$ac_compile"
2502 case "(($ac_try" in
2503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2504   *) ac_try_echo=$ac_try;;
2505 esac
2506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2507   (eval "$ac_compile") 2>&5
2508   ac_status=$?
2509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510   (exit $ac_status); }; then
2511   for ac_file in conftest.o conftest.obj conftest.*; do
2512   test -f "$ac_file" || continue;
2513   case $ac_file in
2514     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2515     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2516        break;;
2517   esac
2518 done
2519 else
2520   echo "$as_me: failed program was:" >&5
2521 sed 's/^/| /' conftest.$ac_ext >&5
2522
2523 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2524 See \`config.log' for more details." >&5
2525 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2526 See \`config.log' for more details." >&2;}
2527    { (exit 1); exit 1; }; }
2528 fi
2529
2530 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2531 fi
2532 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2533 echo "${ECHO_T}$ac_cv_objext" >&6; }
2534 OBJEXT=$ac_cv_objext
2535 ac_objext=$OBJEXT
2536 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2537 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2538 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2539   echo $ECHO_N "(cached) $ECHO_C" >&6
2540 else
2541   cat >conftest.$ac_ext <<_ACEOF
2542 /* confdefs.h.  */
2543 _ACEOF
2544 cat confdefs.h >>conftest.$ac_ext
2545 cat >>conftest.$ac_ext <<_ACEOF
2546 /* end confdefs.h.  */
2547
2548 int
2549 main ()
2550 {
2551 #ifndef __GNUC__
2552        choke me
2553 #endif
2554
2555   ;
2556   return 0;
2557 }
2558 _ACEOF
2559 rm -f conftest.$ac_objext
2560 if { (ac_try="$ac_compile"
2561 case "(($ac_try" in
2562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2563   *) ac_try_echo=$ac_try;;
2564 esac
2565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2566   (eval "$ac_compile") 2>conftest.er1
2567   ac_status=$?
2568   grep -v '^ *+' conftest.er1 >conftest.err
2569   rm -f conftest.er1
2570   cat conftest.err >&5
2571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572   (exit $ac_status); } && {
2573          test -z "$ac_c_werror_flag" ||
2574          test ! -s conftest.err
2575        } && test -s conftest.$ac_objext; then
2576   ac_compiler_gnu=yes
2577 else
2578   echo "$as_me: failed program was:" >&5
2579 sed 's/^/| /' conftest.$ac_ext >&5
2580
2581         ac_compiler_gnu=no
2582 fi
2583
2584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2585 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2586
2587 fi
2588 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2589 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2590 GCC=`test $ac_compiler_gnu = yes && echo yes`
2591 ac_test_CFLAGS=${CFLAGS+set}
2592 ac_save_CFLAGS=$CFLAGS
2593 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2594 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2595 if test "${ac_cv_prog_cc_g+set}" = set; then
2596   echo $ECHO_N "(cached) $ECHO_C" >&6
2597 else
2598   ac_save_c_werror_flag=$ac_c_werror_flag
2599    ac_c_werror_flag=yes
2600    ac_cv_prog_cc_g=no
2601    CFLAGS="-g"
2602    cat >conftest.$ac_ext <<_ACEOF
2603 /* confdefs.h.  */
2604 _ACEOF
2605 cat confdefs.h >>conftest.$ac_ext
2606 cat >>conftest.$ac_ext <<_ACEOF
2607 /* end confdefs.h.  */
2608
2609 int
2610 main ()
2611 {
2612
2613   ;
2614   return 0;
2615 }
2616 _ACEOF
2617 rm -f conftest.$ac_objext
2618 if { (ac_try="$ac_compile"
2619 case "(($ac_try" in
2620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2621   *) ac_try_echo=$ac_try;;
2622 esac
2623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2624   (eval "$ac_compile") 2>conftest.er1
2625   ac_status=$?
2626   grep -v '^ *+' conftest.er1 >conftest.err
2627   rm -f conftest.er1
2628   cat conftest.err >&5
2629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630   (exit $ac_status); } && {
2631          test -z "$ac_c_werror_flag" ||
2632          test ! -s conftest.err
2633        } && test -s conftest.$ac_objext; then
2634   ac_cv_prog_cc_g=yes
2635 else
2636   echo "$as_me: failed program was:" >&5
2637 sed 's/^/| /' conftest.$ac_ext >&5
2638
2639         CFLAGS=""
2640       cat >conftest.$ac_ext <<_ACEOF
2641 /* confdefs.h.  */
2642 _ACEOF
2643 cat confdefs.h >>conftest.$ac_ext
2644 cat >>conftest.$ac_ext <<_ACEOF
2645 /* end confdefs.h.  */
2646
2647 int
2648 main ()
2649 {
2650
2651   ;
2652   return 0;
2653 }
2654 _ACEOF
2655 rm -f conftest.$ac_objext
2656 if { (ac_try="$ac_compile"
2657 case "(($ac_try" in
2658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2659   *) ac_try_echo=$ac_try;;
2660 esac
2661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2662   (eval "$ac_compile") 2>conftest.er1
2663   ac_status=$?
2664   grep -v '^ *+' conftest.er1 >conftest.err
2665   rm -f conftest.er1
2666   cat conftest.err >&5
2667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668   (exit $ac_status); } && {
2669          test -z "$ac_c_werror_flag" ||
2670          test ! -s conftest.err
2671        } && test -s conftest.$ac_objext; then
2672   :
2673 else
2674   echo "$as_me: failed program was:" >&5
2675 sed 's/^/| /' conftest.$ac_ext >&5
2676
2677         ac_c_werror_flag=$ac_save_c_werror_flag
2678          CFLAGS="-g"
2679          cat >conftest.$ac_ext <<_ACEOF
2680 /* confdefs.h.  */
2681 _ACEOF
2682 cat confdefs.h >>conftest.$ac_ext
2683 cat >>conftest.$ac_ext <<_ACEOF
2684 /* end confdefs.h.  */
2685
2686 int
2687 main ()
2688 {
2689
2690   ;
2691   return 0;
2692 }
2693 _ACEOF
2694 rm -f conftest.$ac_objext
2695 if { (ac_try="$ac_compile"
2696 case "(($ac_try" in
2697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2698   *) ac_try_echo=$ac_try;;
2699 esac
2700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2701   (eval "$ac_compile") 2>conftest.er1
2702   ac_status=$?
2703   grep -v '^ *+' conftest.er1 >conftest.err
2704   rm -f conftest.er1
2705   cat conftest.err >&5
2706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707   (exit $ac_status); } && {
2708          test -z "$ac_c_werror_flag" ||
2709          test ! -s conftest.err
2710        } && test -s conftest.$ac_objext; then
2711   ac_cv_prog_cc_g=yes
2712 else
2713   echo "$as_me: failed program was:" >&5
2714 sed 's/^/| /' conftest.$ac_ext >&5
2715
2716
2717 fi
2718
2719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2720 fi
2721
2722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2723 fi
2724
2725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2726    ac_c_werror_flag=$ac_save_c_werror_flag
2727 fi
2728 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2729 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2730 if test "$ac_test_CFLAGS" = set; then
2731   CFLAGS=$ac_save_CFLAGS
2732 elif test $ac_cv_prog_cc_g = yes; then
2733   if test "$GCC" = yes; then
2734     CFLAGS="-g -O2"
2735   else
2736     CFLAGS="-g"
2737   fi
2738 else
2739   if test "$GCC" = yes; then
2740     CFLAGS="-O2"
2741   else
2742     CFLAGS=
2743   fi
2744 fi
2745 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2746 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2747 if test "${ac_cv_prog_cc_c89+set}" = set; then
2748   echo $ECHO_N "(cached) $ECHO_C" >&6
2749 else
2750   ac_cv_prog_cc_c89=no
2751 ac_save_CC=$CC
2752 cat >conftest.$ac_ext <<_ACEOF
2753 /* confdefs.h.  */
2754 _ACEOF
2755 cat confdefs.h >>conftest.$ac_ext
2756 cat >>conftest.$ac_ext <<_ACEOF
2757 /* end confdefs.h.  */
2758 #include <stdarg.h>
2759 #include <stdio.h>
2760 #include <sys/types.h>
2761 #include <sys/stat.h>
2762 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2763 struct buf { int x; };
2764 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2765 static char *e (p, i)
2766      char **p;
2767      int i;
2768 {
2769   return p[i];
2770 }
2771 static char *f (char * (*g) (char **, int), char **p, ...)
2772 {
2773   char *s;
2774   va_list v;
2775   va_start (v,p);
2776   s = g (p, va_arg (v,int));
2777   va_end (v);
2778   return s;
2779 }
2780
2781 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2782    function prototypes and stuff, but not '\xHH' hex character constants.
2783    These don't provoke an error unfortunately, instead are silently treated
2784    as 'x'.  The following induces an error, until -std is added to get
2785    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2786    array size at least.  It's necessary to write '\x00'==0 to get something
2787    that's true only with -std.  */
2788 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2789
2790 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2791    inside strings and character constants.  */
2792 #define FOO(x) 'x'
2793 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2794
2795 int test (int i, double x);
2796 struct s1 {int (*f) (int a);};
2797 struct s2 {int (*f) (double a);};
2798 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2799 int argc;
2800 char **argv;
2801 int
2802 main ()
2803 {
2804 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2805   ;
2806   return 0;
2807 }
2808 _ACEOF
2809 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2810         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2811 do
2812   CC="$ac_save_CC $ac_arg"
2813   rm -f conftest.$ac_objext
2814 if { (ac_try="$ac_compile"
2815 case "(($ac_try" in
2816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2817   *) ac_try_echo=$ac_try;;
2818 esac
2819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2820   (eval "$ac_compile") 2>conftest.er1
2821   ac_status=$?
2822   grep -v '^ *+' conftest.er1 >conftest.err
2823   rm -f conftest.er1
2824   cat conftest.err >&5
2825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826   (exit $ac_status); } && {
2827          test -z "$ac_c_werror_flag" ||
2828          test ! -s conftest.err
2829        } && test -s conftest.$ac_objext; then
2830   ac_cv_prog_cc_c89=$ac_arg
2831 else
2832   echo "$as_me: failed program was:" >&5
2833 sed 's/^/| /' conftest.$ac_ext >&5
2834
2835
2836 fi
2837
2838 rm -f core conftest.err conftest.$ac_objext
2839   test "x$ac_cv_prog_cc_c89" != "xno" && break
2840 done
2841 rm -f conftest.$ac_ext
2842 CC=$ac_save_CC
2843
2844 fi
2845 # AC_CACHE_VAL
2846 case "x$ac_cv_prog_cc_c89" in
2847   x)
2848     { echo "$as_me:$LINENO: result: none needed" >&5
2849 echo "${ECHO_T}none needed" >&6; } ;;
2850   xno)
2851     { echo "$as_me:$LINENO: result: unsupported" >&5
2852 echo "${ECHO_T}unsupported" >&6; } ;;
2853   *)
2854     CC="$CC $ac_cv_prog_cc_c89"
2855     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2856 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2857 esac
2858
2859
2860 ac_ext=c
2861 ac_cpp='$CPP $CPPFLAGS'
2862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2865
2866 ac_ext=cpp
2867 ac_cpp='$CXXCPP $CPPFLAGS'
2868 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2869 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2870 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2871 if test -z "$CXX"; then
2872   if test -n "$CCC"; then
2873     CXX=$CCC
2874   else
2875     if test -n "$ac_tool_prefix"; then
2876   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2877   do
2878     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2879 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2880 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2882 if test "${ac_cv_prog_CXX+set}" = set; then
2883   echo $ECHO_N "(cached) $ECHO_C" >&6
2884 else
2885   if test -n "$CXX"; then
2886   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2887 else
2888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889 for as_dir in $PATH
2890 do
2891   IFS=$as_save_IFS
2892   test -z "$as_dir" && as_dir=.
2893   for ac_exec_ext in '' $ac_executable_extensions; do
2894   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2895     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2896     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2897     break 2
2898   fi
2899 done
2900 done
2901 IFS=$as_save_IFS
2902
2903 fi
2904 fi
2905 CXX=$ac_cv_prog_CXX
2906 if test -n "$CXX"; then
2907   { echo "$as_me:$LINENO: result: $CXX" >&5
2908 echo "${ECHO_T}$CXX" >&6; }
2909 else
2910   { echo "$as_me:$LINENO: result: no" >&5
2911 echo "${ECHO_T}no" >&6; }
2912 fi
2913
2914
2915     test -n "$CXX" && break
2916   done
2917 fi
2918 if test -z "$CXX"; then
2919   ac_ct_CXX=$CXX
2920   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2921 do
2922   # Extract the first word of "$ac_prog", so it can be a program name with args.
2923 set dummy $ac_prog; ac_word=$2
2924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2926 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2927   echo $ECHO_N "(cached) $ECHO_C" >&6
2928 else
2929   if test -n "$ac_ct_CXX"; then
2930   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2931 else
2932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933 for as_dir in $PATH
2934 do
2935   IFS=$as_save_IFS
2936   test -z "$as_dir" && as_dir=.
2937   for ac_exec_ext in '' $ac_executable_extensions; do
2938   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2939     ac_cv_prog_ac_ct_CXX="$ac_prog"
2940     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2941     break 2
2942   fi
2943 done
2944 done
2945 IFS=$as_save_IFS
2946
2947 fi
2948 fi
2949 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2950 if test -n "$ac_ct_CXX"; then
2951   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2952 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2953 else
2954   { echo "$as_me:$LINENO: result: no" >&5
2955 echo "${ECHO_T}no" >&6; }
2956 fi
2957
2958
2959   test -n "$ac_ct_CXX" && break
2960 done
2961
2962   if test "x$ac_ct_CXX" = x; then
2963     CXX="g++"
2964   else
2965     case $cross_compiling:$ac_tool_warned in
2966 yes:)
2967 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2968 whose name does not start with the host triplet.  If you think this
2969 configuration is useful to you, please write to autoconf@gnu.org." >&5
2970 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2971 whose name does not start with the host triplet.  If you think this
2972 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2973 ac_tool_warned=yes ;;
2974 esac
2975     CXX=$ac_ct_CXX
2976   fi
2977 fi
2978
2979   fi
2980 fi
2981 # Provide some information about the compiler.
2982 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2983 ac_compiler=`set X $ac_compile; echo $2`
2984 { (ac_try="$ac_compiler --version >&5"
2985 case "(($ac_try" in
2986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987   *) ac_try_echo=$ac_try;;
2988 esac
2989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2990   (eval "$ac_compiler --version >&5") 2>&5
2991   ac_status=$?
2992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993   (exit $ac_status); }
2994 { (ac_try="$ac_compiler -v >&5"
2995 case "(($ac_try" in
2996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2997   *) ac_try_echo=$ac_try;;
2998 esac
2999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3000   (eval "$ac_compiler -v >&5") 2>&5
3001   ac_status=$?
3002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003   (exit $ac_status); }
3004 { (ac_try="$ac_compiler -V >&5"
3005 case "(($ac_try" in
3006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3007   *) ac_try_echo=$ac_try;;
3008 esac
3009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3010   (eval "$ac_compiler -V >&5") 2>&5
3011   ac_status=$?
3012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013   (exit $ac_status); }
3014
3015 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3016 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3017 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3018   echo $ECHO_N "(cached) $ECHO_C" >&6
3019 else
3020   cat >conftest.$ac_ext <<_ACEOF
3021 /* confdefs.h.  */
3022 _ACEOF
3023 cat confdefs.h >>conftest.$ac_ext
3024 cat >>conftest.$ac_ext <<_ACEOF
3025 /* end confdefs.h.  */
3026
3027 int
3028 main ()
3029 {
3030 #ifndef __GNUC__
3031        choke me
3032 #endif
3033
3034   ;
3035   return 0;
3036 }
3037 _ACEOF
3038 rm -f conftest.$ac_objext
3039 if { (ac_try="$ac_compile"
3040 case "(($ac_try" in
3041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042   *) ac_try_echo=$ac_try;;
3043 esac
3044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045   (eval "$ac_compile") 2>conftest.er1
3046   ac_status=$?
3047   grep -v '^ *+' conftest.er1 >conftest.err
3048   rm -f conftest.er1
3049   cat conftest.err >&5
3050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051   (exit $ac_status); } && {
3052          test -z "$ac_cxx_werror_flag" ||
3053          test ! -s conftest.err
3054        } && test -s conftest.$ac_objext; then
3055   ac_compiler_gnu=yes
3056 else
3057   echo "$as_me: failed program was:" >&5
3058 sed 's/^/| /' conftest.$ac_ext >&5
3059
3060         ac_compiler_gnu=no
3061 fi
3062
3063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3064 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3065
3066 fi
3067 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3068 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3069 GXX=`test $ac_compiler_gnu = yes && echo yes`
3070 ac_test_CXXFLAGS=${CXXFLAGS+set}
3071 ac_save_CXXFLAGS=$CXXFLAGS
3072 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3073 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3074 if test "${ac_cv_prog_cxx_g+set}" = set; then
3075   echo $ECHO_N "(cached) $ECHO_C" >&6
3076 else
3077   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3078    ac_cxx_werror_flag=yes
3079    ac_cv_prog_cxx_g=no
3080    CXXFLAGS="-g"
3081    cat >conftest.$ac_ext <<_ACEOF
3082 /* confdefs.h.  */
3083 _ACEOF
3084 cat confdefs.h >>conftest.$ac_ext
3085 cat >>conftest.$ac_ext <<_ACEOF
3086 /* end confdefs.h.  */
3087
3088 int
3089 main ()
3090 {
3091
3092   ;
3093   return 0;
3094 }
3095 _ACEOF
3096 rm -f conftest.$ac_objext
3097 if { (ac_try="$ac_compile"
3098 case "(($ac_try" in
3099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100   *) ac_try_echo=$ac_try;;
3101 esac
3102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3103   (eval "$ac_compile") 2>conftest.er1
3104   ac_status=$?
3105   grep -v '^ *+' conftest.er1 >conftest.err
3106   rm -f conftest.er1
3107   cat conftest.err >&5
3108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109   (exit $ac_status); } && {
3110          test -z "$ac_cxx_werror_flag" ||
3111          test ! -s conftest.err
3112        } && test -s conftest.$ac_objext; then
3113   ac_cv_prog_cxx_g=yes
3114 else
3115   echo "$as_me: failed program was:" >&5
3116 sed 's/^/| /' conftest.$ac_ext >&5
3117
3118         CXXFLAGS=""
3119       cat >conftest.$ac_ext <<_ACEOF
3120 /* confdefs.h.  */
3121 _ACEOF
3122 cat confdefs.h >>conftest.$ac_ext
3123 cat >>conftest.$ac_ext <<_ACEOF
3124 /* end confdefs.h.  */
3125
3126 int
3127 main ()
3128 {
3129
3130   ;
3131   return 0;
3132 }
3133 _ACEOF
3134 rm -f conftest.$ac_objext
3135 if { (ac_try="$ac_compile"
3136 case "(($ac_try" in
3137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138   *) ac_try_echo=$ac_try;;
3139 esac
3140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3141   (eval "$ac_compile") 2>conftest.er1
3142   ac_status=$?
3143   grep -v '^ *+' conftest.er1 >conftest.err
3144   rm -f conftest.er1
3145   cat conftest.err >&5
3146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147   (exit $ac_status); } && {
3148          test -z "$ac_cxx_werror_flag" ||
3149          test ! -s conftest.err
3150        } && test -s conftest.$ac_objext; then
3151   :
3152 else
3153   echo "$as_me: failed program was:" >&5
3154 sed 's/^/| /' conftest.$ac_ext >&5
3155
3156         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3157          CXXFLAGS="-g"
3158          cat >conftest.$ac_ext <<_ACEOF
3159 /* confdefs.h.  */
3160 _ACEOF
3161 cat confdefs.h >>conftest.$ac_ext
3162 cat >>conftest.$ac_ext <<_ACEOF
3163 /* end confdefs.h.  */
3164
3165 int
3166 main ()
3167 {
3168
3169   ;
3170   return 0;
3171 }
3172 _ACEOF
3173 rm -f conftest.$ac_objext
3174 if { (ac_try="$ac_compile"
3175 case "(($ac_try" in
3176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177   *) ac_try_echo=$ac_try;;
3178 esac
3179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3180   (eval "$ac_compile") 2>conftest.er1
3181   ac_status=$?
3182   grep -v '^ *+' conftest.er1 >conftest.err
3183   rm -f conftest.er1
3184   cat conftest.err >&5
3185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186   (exit $ac_status); } && {
3187          test -z "$ac_cxx_werror_flag" ||
3188          test ! -s conftest.err
3189        } && test -s conftest.$ac_objext; then
3190   ac_cv_prog_cxx_g=yes
3191 else
3192   echo "$as_me: failed program was:" >&5
3193 sed 's/^/| /' conftest.$ac_ext >&5
3194
3195
3196 fi
3197
3198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3199 fi
3200
3201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202 fi
3203
3204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3205    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3206 fi
3207 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3208 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3209 if test "$ac_test_CXXFLAGS" = set; then
3210   CXXFLAGS=$ac_save_CXXFLAGS
3211 elif test $ac_cv_prog_cxx_g = yes; then
3212   if test "$GXX" = yes; then
3213     CXXFLAGS="-g -O2"
3214   else
3215     CXXFLAGS="-g"
3216   fi
3217 else
3218   if test "$GXX" = yes; then
3219     CXXFLAGS="-O2"
3220   else
3221     CXXFLAGS=
3222   fi
3223 fi
3224 ac_ext=c
3225 ac_cpp='$CPP $CPPFLAGS'
3226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3229
3230
3231
3232 ac_ext=c
3233 ac_cpp='$CPP $CPPFLAGS'
3234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3237 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3238 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3239 # On Suns, sometimes $CPP names a directory.
3240 if test -n "$CPP" && test -d "$CPP"; then
3241   CPP=
3242 fi
3243 if test -z "$CPP"; then
3244   if test "${ac_cv_prog_CPP+set}" = set; then
3245   echo $ECHO_N "(cached) $ECHO_C" >&6
3246 else
3247       # Double quotes because CPP needs to be expanded
3248     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3249     do
3250       ac_preproc_ok=false
3251 for ac_c_preproc_warn_flag in '' yes
3252 do
3253   # Use a header file that comes with gcc, so configuring glibc
3254   # with a fresh cross-compiler works.
3255   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3256   # <limits.h> exists even on freestanding compilers.
3257   # On the NeXT, cc -E runs the code through the compiler's parser,
3258   # not just through cpp. "Syntax error" is here to catch this case.
3259   cat >conftest.$ac_ext <<_ACEOF
3260 /* confdefs.h.  */
3261 _ACEOF
3262 cat confdefs.h >>conftest.$ac_ext
3263 cat >>conftest.$ac_ext <<_ACEOF
3264 /* end confdefs.h.  */
3265 #ifdef __STDC__
3266 # include <limits.h>
3267 #else
3268 # include <assert.h>
3269 #endif
3270                      Syntax error
3271 _ACEOF
3272 if { (ac_try="$ac_cpp conftest.$ac_ext"
3273 case "(($ac_try" in
3274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3275   *) ac_try_echo=$ac_try;;
3276 esac
3277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3278   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3279   ac_status=$?
3280   grep -v '^ *+' conftest.er1 >conftest.err
3281   rm -f conftest.er1
3282   cat conftest.err >&5
3283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284   (exit $ac_status); } >/dev/null && {
3285          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3286          test ! -s conftest.err
3287        }; then
3288   :
3289 else
3290   echo "$as_me: failed program was:" >&5
3291 sed 's/^/| /' conftest.$ac_ext >&5
3292
3293   # Broken: fails on valid input.
3294 continue
3295 fi
3296
3297 rm -f conftest.err conftest.$ac_ext
3298
3299   # OK, works on sane cases.  Now check whether nonexistent headers
3300   # can be detected and how.
3301   cat >conftest.$ac_ext <<_ACEOF
3302 /* confdefs.h.  */
3303 _ACEOF
3304 cat confdefs.h >>conftest.$ac_ext
3305 cat >>conftest.$ac_ext <<_ACEOF
3306 /* end confdefs.h.  */
3307 #include <ac_nonexistent.h>
3308 _ACEOF
3309 if { (ac_try="$ac_cpp conftest.$ac_ext"
3310 case "(($ac_try" in
3311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3312   *) ac_try_echo=$ac_try;;
3313 esac
3314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3315   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3316   ac_status=$?
3317   grep -v '^ *+' conftest.er1 >conftest.err
3318   rm -f conftest.er1
3319   cat conftest.err >&5
3320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321   (exit $ac_status); } >/dev/null && {
3322          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3323          test ! -s conftest.err
3324        }; then
3325   # Broken: success on invalid input.
3326 continue
3327 else
3328   echo "$as_me: failed program was:" >&5
3329 sed 's/^/| /' conftest.$ac_ext >&5
3330
3331   # Passes both tests.
3332 ac_preproc_ok=:
3333 break
3334 fi
3335
3336 rm -f conftest.err conftest.$ac_ext
3337
3338 done
3339 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3340 rm -f conftest.err conftest.$ac_ext
3341 if $ac_preproc_ok; then
3342   break
3343 fi
3344
3345     done
3346     ac_cv_prog_CPP=$CPP
3347
3348 fi
3349   CPP=$ac_cv_prog_CPP
3350 else
3351   ac_cv_prog_CPP=$CPP
3352 fi
3353 { echo "$as_me:$LINENO: result: $CPP" >&5
3354 echo "${ECHO_T}$CPP" >&6; }
3355 ac_preproc_ok=false
3356 for ac_c_preproc_warn_flag in '' yes
3357 do
3358   # Use a header file that comes with gcc, so configuring glibc
3359   # with a fresh cross-compiler works.
3360   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3361   # <limits.h> exists even on freestanding compilers.
3362   # On the NeXT, cc -E runs the code through the compiler's parser,
3363   # not just through cpp. "Syntax error" is here to catch this case.
3364   cat >conftest.$ac_ext <<_ACEOF
3365 /* confdefs.h.  */
3366 _ACEOF
3367 cat confdefs.h >>conftest.$ac_ext
3368 cat >>conftest.$ac_ext <<_ACEOF
3369 /* end confdefs.h.  */
3370 #ifdef __STDC__
3371 # include <limits.h>
3372 #else
3373 # include <assert.h>
3374 #endif
3375                      Syntax error
3376 _ACEOF
3377 if { (ac_try="$ac_cpp conftest.$ac_ext"
3378 case "(($ac_try" in
3379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380   *) ac_try_echo=$ac_try;;
3381 esac
3382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3383   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3384   ac_status=$?
3385   grep -v '^ *+' conftest.er1 >conftest.err
3386   rm -f conftest.er1
3387   cat conftest.err >&5
3388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389   (exit $ac_status); } >/dev/null && {
3390          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3391          test ! -s conftest.err
3392        }; then
3393   :
3394 else
3395   echo "$as_me: failed program was:" >&5
3396 sed 's/^/| /' conftest.$ac_ext >&5
3397
3398   # Broken: fails on valid input.
3399 continue
3400 fi
3401
3402 rm -f conftest.err conftest.$ac_ext
3403
3404   # OK, works on sane cases.  Now check whether nonexistent headers
3405   # can be detected and how.
3406   cat >conftest.$ac_ext <<_ACEOF
3407 /* confdefs.h.  */
3408 _ACEOF
3409 cat confdefs.h >>conftest.$ac_ext
3410 cat >>conftest.$ac_ext <<_ACEOF
3411 /* end confdefs.h.  */
3412 #include <ac_nonexistent.h>
3413 _ACEOF
3414 if { (ac_try="$ac_cpp conftest.$ac_ext"
3415 case "(($ac_try" in
3416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3417   *) ac_try_echo=$ac_try;;
3418 esac
3419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3420   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3421   ac_status=$?
3422   grep -v '^ *+' conftest.er1 >conftest.err
3423   rm -f conftest.er1
3424   cat conftest.err >&5
3425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426   (exit $ac_status); } >/dev/null && {
3427          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3428          test ! -s conftest.err
3429        }; then
3430   # Broken: success on invalid input.
3431 continue
3432 else
3433   echo "$as_me: failed program was:" >&5
3434 sed 's/^/| /' conftest.$ac_ext >&5
3435
3436   # Passes both tests.
3437 ac_preproc_ok=:
3438 break
3439 fi
3440
3441 rm -f conftest.err conftest.$ac_ext
3442
3443 done
3444 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3445 rm -f conftest.err conftest.$ac_ext
3446 if $ac_preproc_ok; then
3447   :
3448 else
3449   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3450 See \`config.log' for more details." >&5
3451 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3452 See \`config.log' for more details." >&2;}
3453    { (exit 1); exit 1; }; }
3454 fi
3455
3456 ac_ext=c
3457 ac_cpp='$CPP $CPPFLAGS'
3458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3461
3462
3463 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3464 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3465 if test "${ac_cv_path_GREP+set}" = set; then
3466   echo $ECHO_N "(cached) $ECHO_C" >&6
3467 else
3468   # Extract the first word of "grep ggrep" to use in msg output
3469 if test -z "$GREP"; then
3470 set dummy grep ggrep; ac_prog_name=$2
3471 if test "${ac_cv_path_GREP+set}" = set; then
3472   echo $ECHO_N "(cached) $ECHO_C" >&6
3473 else
3474   ac_path_GREP_found=false
3475 # Loop through the user's path and test for each of PROGNAME-LIST
3476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3477 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3478 do
3479   IFS=$as_save_IFS
3480   test -z "$as_dir" && as_dir=.
3481   for ac_prog in grep ggrep; do
3482   for ac_exec_ext in '' $ac_executable_extensions; do
3483     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3484     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3485     # Check for GNU ac_path_GREP and select it if it is found.
3486   # Check for GNU $ac_path_GREP
3487 case `"$ac_path_GREP" --version 2>&1` in
3488 *GNU*)
3489   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3490 *)
3491   ac_count=0
3492   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3493   while :
3494   do
3495     cat "conftest.in" "conftest.in" >"conftest.tmp"
3496     mv "conftest.tmp" "conftest.in"
3497     cp "conftest.in" "conftest.nl"
3498     echo 'GREP' >> "conftest.nl"
3499     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3500     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3501     ac_count=`expr $ac_count + 1`
3502     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3503       # Best one so far, save it but keep looking for a better one
3504       ac_cv_path_GREP="$ac_path_GREP"
3505       ac_path_GREP_max=$ac_count
3506     fi
3507     # 10*(2^10) chars as input seems more than enough
3508     test $ac_count -gt 10 && break
3509   done
3510   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3511 esac
3512
3513
3514     $ac_path_GREP_found && break 3
3515   done
3516 done
3517
3518 done
3519 IFS=$as_save_IFS
3520
3521
3522 fi
3523
3524 GREP="$ac_cv_path_GREP"
3525 if test -z "$GREP"; then
3526   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3527 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3528    { (exit 1); exit 1; }; }
3529 fi
3530
3531 else
3532   ac_cv_path_GREP=$GREP
3533 fi
3534
3535
3536 fi
3537 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3538 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3539  GREP="$ac_cv_path_GREP"
3540
3541
3542 { echo "$as_me:$LINENO: checking for egrep" >&5
3543 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3544 if test "${ac_cv_path_EGREP+set}" = set; then
3545   echo $ECHO_N "(cached) $ECHO_C" >&6
3546 else
3547   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3548    then ac_cv_path_EGREP="$GREP -E"
3549    else
3550      # Extract the first word of "egrep" to use in msg output
3551 if test -z "$EGREP"; then
3552 set dummy egrep; ac_prog_name=$2
3553 if test "${ac_cv_path_EGREP+set}" = set; then
3554   echo $ECHO_N "(cached) $ECHO_C" >&6
3555 else
3556   ac_path_EGREP_found=false
3557 # Loop through the user's path and test for each of PROGNAME-LIST
3558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3559 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3560 do
3561   IFS=$as_save_IFS
3562   test -z "$as_dir" && as_dir=.
3563   for ac_prog in egrep; do
3564   for ac_exec_ext in '' $ac_executable_extensions; do
3565     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3566     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3567     # Check for GNU ac_path_EGREP and select it if it is found.
3568   # Check for GNU $ac_path_EGREP
3569 case `"$ac_path_EGREP" --version 2>&1` in
3570 *GNU*)
3571   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3572 *)
3573   ac_count=0
3574   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3575   while :
3576   do
3577     cat "conftest.in" "conftest.in" >"conftest.tmp"
3578     mv "conftest.tmp" "conftest.in"
3579     cp "conftest.in" "conftest.nl"
3580     echo 'EGREP' >> "conftest.nl"
3581     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3582     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3583     ac_count=`expr $ac_count + 1`
3584     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3585       # Best one so far, save it but keep looking for a better one
3586       ac_cv_path_EGREP="$ac_path_EGREP"
3587       ac_path_EGREP_max=$ac_count
3588     fi
3589     # 10*(2^10) chars as input seems more than enough
3590     test $ac_count -gt 10 && break
3591   done
3592   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3593 esac
3594
3595
3596     $ac_path_EGREP_found && break 3
3597   done
3598 done
3599
3600 done
3601 IFS=$as_save_IFS
3602
3603
3604 fi
3605
3606 EGREP="$ac_cv_path_EGREP"
3607 if test -z "$EGREP"; then
3608   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3609 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3610    { (exit 1); exit 1; }; }
3611 fi
3612
3613 else
3614   ac_cv_path_EGREP=$EGREP
3615 fi
3616
3617
3618    fi
3619 fi
3620 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3621 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3622  EGREP="$ac_cv_path_EGREP"
3623
3624
3625
3626 { echo "$as_me:$LINENO: checking for AIX" >&5
3627 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3628 cat >conftest.$ac_ext <<_ACEOF
3629 /* confdefs.h.  */
3630 _ACEOF
3631 cat confdefs.h >>conftest.$ac_ext
3632 cat >>conftest.$ac_ext <<_ACEOF
3633 /* end confdefs.h.  */
3634 #ifdef _AIX
3635   yes
3636 #endif
3637
3638 _ACEOF
3639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3640   $EGREP "yes" >/dev/null 2>&1; then
3641   { echo "$as_me:$LINENO: result: yes" >&5
3642 echo "${ECHO_T}yes" >&6; }
3643 cat >>confdefs.h <<\_ACEOF
3644 #define _ALL_SOURCE 1
3645 _ACEOF
3646
3647 else
3648   { echo "$as_me:$LINENO: result: no" >&5
3649 echo "${ECHO_T}no" >&6; }
3650 fi
3651 rm -f conftest*
3652
3653
3654
3655 if test $ac_cv_c_compiler_gnu = yes; then
3656     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3657 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3658 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3659   echo $ECHO_N "(cached) $ECHO_C" >&6
3660 else
3661     ac_pattern="Autoconf.*'x'"
3662   cat >conftest.$ac_ext <<_ACEOF
3663 /* confdefs.h.  */
3664 _ACEOF
3665 cat confdefs.h >>conftest.$ac_ext
3666 cat >>conftest.$ac_ext <<_ACEOF
3667 /* end confdefs.h.  */
3668 #include <sgtty.h>
3669 Autoconf TIOCGETP
3670 _ACEOF
3671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3672   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3673   ac_cv_prog_gcc_traditional=yes
3674 else
3675   ac_cv_prog_gcc_traditional=no
3676 fi
3677 rm -f conftest*
3678
3679
3680   if test $ac_cv_prog_gcc_traditional = no; then
3681     cat >conftest.$ac_ext <<_ACEOF
3682 /* confdefs.h.  */
3683 _ACEOF
3684 cat confdefs.h >>conftest.$ac_ext
3685 cat >>conftest.$ac_ext <<_ACEOF
3686 /* end confdefs.h.  */
3687 #include <termio.h>
3688 Autoconf TCGETA
3689 _ACEOF
3690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3691   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3692   ac_cv_prog_gcc_traditional=yes
3693 fi
3694 rm -f conftest*
3695
3696   fi
3697 fi
3698 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3699 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3700   if test $ac_cv_prog_gcc_traditional = yes; then
3701     CC="$CC -traditional"
3702   fi
3703 fi
3704
3705 { echo "$as_me:$LINENO: checking whether we are using SUNPro C" >&5
3706 echo $ECHO_N "checking whether we are using SUNPro C... $ECHO_C" >&6; }
3707 if test "${ac_cv_prog_suncc+set}" = set; then
3708   echo $ECHO_N "(cached) $ECHO_C" >&6
3709 else
3710   cat > conftest.c <<EOF
3711 #ifdef __SUNPRO_C
3712   yes;
3713 #endif
3714 EOF
3715 if { ac_try='${CC-cc} -E conftest.c'
3716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3717   (eval $ac_try) 2>&5
3718   ac_status=$?
3719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720   (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3721   ac_cv_prog_suncc=yes
3722 else
3723   ac_cv_prog_suncc=no
3724 fi
3725 fi
3726 { echo "$as_me:$LINENO: result: $ac_cv_prog_suncc" >&5
3727 echo "${ECHO_T}$ac_cv_prog_suncc" >&6; }
3728 if test -n "$ac_tool_prefix"; then
3729   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3730 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3731 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3733 if test "${ac_cv_prog_RANLIB+set}" = set; then
3734   echo $ECHO_N "(cached) $ECHO_C" >&6
3735 else
3736   if test -n "$RANLIB"; then
3737   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3738 else
3739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3740 for as_dir in $PATH
3741 do
3742   IFS=$as_save_IFS
3743   test -z "$as_dir" && as_dir=.
3744   for ac_exec_ext in '' $ac_executable_extensions; do
3745   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3746     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3747     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3748     break 2
3749   fi
3750 done
3751 done
3752 IFS=$as_save_IFS
3753
3754 fi
3755 fi
3756 RANLIB=$ac_cv_prog_RANLIB
3757 if test -n "$RANLIB"; then
3758   { echo "$as_me:$LINENO: result: $RANLIB" >&5
3759 echo "${ECHO_T}$RANLIB" >&6; }
3760 else
3761   { echo "$as_me:$LINENO: result: no" >&5
3762 echo "${ECHO_T}no" >&6; }
3763 fi
3764
3765
3766 fi
3767 if test -z "$ac_cv_prog_RANLIB"; then
3768   ac_ct_RANLIB=$RANLIB
3769   # Extract the first word of "ranlib", so it can be a program name with args.
3770 set dummy ranlib; ac_word=$2
3771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3773 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3774   echo $ECHO_N "(cached) $ECHO_C" >&6
3775 else
3776   if test -n "$ac_ct_RANLIB"; then
3777   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3778 else
3779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3780 for as_dir in $PATH
3781 do
3782   IFS=$as_save_IFS
3783   test -z "$as_dir" && as_dir=.
3784   for ac_exec_ext in '' $ac_executable_extensions; do
3785   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3786     ac_cv_prog_ac_ct_RANLIB="ranlib"
3787     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3788     break 2
3789   fi
3790 done
3791 done
3792 IFS=$as_save_IFS
3793
3794 fi
3795 fi
3796 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3797 if test -n "$ac_ct_RANLIB"; then
3798   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3799 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3800 else
3801   { echo "$as_me:$LINENO: result: no" >&5
3802 echo "${ECHO_T}no" >&6; }
3803 fi
3804
3805   if test "x$ac_ct_RANLIB" = x; then
3806     RANLIB=":"
3807   else
3808     case $cross_compiling:$ac_tool_warned in
3809 yes:)
3810 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3811 whose name does not start with the host triplet.  If you think this
3812 configuration is useful to you, please write to autoconf@gnu.org." >&5
3813 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3814 whose name does not start with the host triplet.  If you think this
3815 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3816 ac_tool_warned=yes ;;
3817 esac
3818     RANLIB=$ac_ct_RANLIB
3819   fi
3820 else
3821   RANLIB="$ac_cv_prog_RANLIB"
3822 fi
3823
3824
3825 # Check whether --enable-largefile was given.
3826 if test "${enable_largefile+set}" = set; then
3827   enableval=$enable_largefile;
3828 fi
3829
3830 if test "$enable_largefile" != no; then
3831
3832   { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3833 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
3834 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3835   echo $ECHO_N "(cached) $ECHO_C" >&6
3836 else
3837   ac_cv_sys_largefile_CC=no
3838      if test "$GCC" != yes; then
3839        ac_save_CC=$CC
3840        while :; do
3841          # IRIX 6.2 and later do not support large files by default,
3842          # so use the C compiler's -n32 option if that helps.
3843          cat >conftest.$ac_ext <<_ACEOF
3844 /* confdefs.h.  */
3845 _ACEOF
3846 cat confdefs.h >>conftest.$ac_ext
3847 cat >>conftest.$ac_ext <<_ACEOF
3848 /* end confdefs.h.  */
3849 #include <sys/types.h>
3850  /* Check that off_t can represent 2**63 - 1 correctly.
3851     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3852     since some C++ compilers masquerading as C compilers
3853     incorrectly reject 9223372036854775807.  */
3854 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3855   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3856                        && LARGE_OFF_T % 2147483647 == 1)
3857                       ? 1 : -1];
3858 int
3859 main ()
3860 {
3861
3862   ;
3863   return 0;
3864 }
3865 _ACEOF
3866          rm -f conftest.$ac_objext
3867 if { (ac_try="$ac_compile"
3868 case "(($ac_try" in
3869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3870   *) ac_try_echo=$ac_try;;
3871 esac
3872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3873   (eval "$ac_compile") 2>conftest.er1
3874   ac_status=$?
3875   grep -v '^ *+' conftest.er1 >conftest.err
3876   rm -f conftest.er1
3877   cat conftest.err >&5
3878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879   (exit $ac_status); } && {
3880          test -z "$ac_c_werror_flag" ||
3881          test ! -s conftest.err
3882        } && test -s conftest.$ac_objext; then
3883   break
3884 else
3885   echo "$as_me: failed program was:" >&5
3886 sed 's/^/| /' conftest.$ac_ext >&5
3887
3888
3889 fi
3890
3891 rm -f core conftest.err conftest.$ac_objext
3892          CC="$CC -n32"
3893          rm -f conftest.$ac_objext
3894 if { (ac_try="$ac_compile"
3895 case "(($ac_try" in
3896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3897   *) ac_try_echo=$ac_try;;
3898 esac
3899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3900   (eval "$ac_compile") 2>conftest.er1
3901   ac_status=$?
3902   grep -v '^ *+' conftest.er1 >conftest.err
3903   rm -f conftest.er1
3904   cat conftest.err >&5
3905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906   (exit $ac_status); } && {
3907          test -z "$ac_c_werror_flag" ||
3908          test ! -s conftest.err
3909        } && test -s conftest.$ac_objext; then
3910   ac_cv_sys_largefile_CC=' -n32'; break
3911 else
3912   echo "$as_me: failed program was:" >&5
3913 sed 's/^/| /' conftest.$ac_ext >&5
3914
3915
3916 fi
3917
3918 rm -f core conftest.err conftest.$ac_objext
3919          break
3920        done
3921        CC=$ac_save_CC
3922        rm -f conftest.$ac_ext
3923     fi
3924 fi
3925 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3926 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
3927   if test "$ac_cv_sys_largefile_CC" != no; then
3928     CC=$CC$ac_cv_sys_largefile_CC
3929   fi
3930
3931   { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3932 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
3933 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3934   echo $ECHO_N "(cached) $ECHO_C" >&6
3935 else
3936   while :; do
3937   cat >conftest.$ac_ext <<_ACEOF
3938 /* confdefs.h.  */
3939 _ACEOF
3940 cat confdefs.h >>conftest.$ac_ext
3941 cat >>conftest.$ac_ext <<_ACEOF
3942 /* end confdefs.h.  */
3943 #include <sys/types.h>
3944  /* Check that off_t can represent 2**63 - 1 correctly.
3945     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3946     since some C++ compilers masquerading as C compilers
3947     incorrectly reject 9223372036854775807.  */
3948 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3949   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3950                        && LARGE_OFF_T % 2147483647 == 1)
3951                       ? 1 : -1];
3952 int
3953 main ()
3954 {
3955
3956   ;
3957   return 0;
3958 }
3959 _ACEOF
3960 rm -f conftest.$ac_objext
3961 if { (ac_try="$ac_compile"
3962 case "(($ac_try" in
3963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3964   *) ac_try_echo=$ac_try;;
3965 esac
3966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3967   (eval "$ac_compile") 2>conftest.er1
3968   ac_status=$?
3969   grep -v '^ *+' conftest.er1 >conftest.err
3970   rm -f conftest.er1
3971   cat conftest.err >&5
3972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973   (exit $ac_status); } && {
3974          test -z "$ac_c_werror_flag" ||
3975          test ! -s conftest.err
3976        } && test -s conftest.$ac_objext; then
3977   ac_cv_sys_file_offset_bits=no; break
3978 else
3979   echo "$as_me: failed program was:" >&5
3980 sed 's/^/| /' conftest.$ac_ext >&5
3981
3982
3983 fi
3984
3985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3986   cat >conftest.$ac_ext <<_ACEOF
3987 /* confdefs.h.  */
3988 _ACEOF
3989 cat confdefs.h >>conftest.$ac_ext
3990 cat >>conftest.$ac_ext <<_ACEOF
3991 /* end confdefs.h.  */
3992 #define _FILE_OFFSET_BITS 64
3993 #include <sys/types.h>
3994  /* Check that off_t can represent 2**63 - 1 correctly.
3995     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3996     since some C++ compilers masquerading as C compilers
3997     incorrectly reject 9223372036854775807.  */
3998 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3999   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4000                        && LARGE_OFF_T % 2147483647 == 1)
4001                       ? 1 : -1];
4002 int
4003 main ()
4004 {
4005
4006   ;
4007   return 0;
4008 }
4009 _ACEOF
4010 rm -f conftest.$ac_objext
4011 if { (ac_try="$ac_compile"
4012 case "(($ac_try" in
4013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4014   *) ac_try_echo=$ac_try;;
4015 esac
4016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4017   (eval "$ac_compile") 2>conftest.er1
4018   ac_status=$?
4019   grep -v '^ *+' conftest.er1 >conftest.err
4020   rm -f conftest.er1
4021   cat conftest.err >&5
4022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023   (exit $ac_status); } && {
4024          test -z "$ac_c_werror_flag" ||
4025          test ! -s conftest.err
4026        } && test -s conftest.$ac_objext; then
4027   ac_cv_sys_file_offset_bits=64; break
4028 else
4029   echo "$as_me: failed program was:" >&5
4030 sed 's/^/| /' conftest.$ac_ext >&5
4031
4032
4033 fi
4034
4035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4036   ac_cv_sys_file_offset_bits=unknown
4037   break
4038 done
4039 fi
4040 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4041 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
4042 case $ac_cv_sys_file_offset_bits in #(
4043   no | unknown) ;;
4044   *)
4045 cat >>confdefs.h <<_ACEOF
4046 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4047 _ACEOF
4048 ;;
4049 esac
4050 rm -f conftest*
4051   if test $ac_cv_sys_file_offset_bits = unknown; then
4052     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4053 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
4054 if test "${ac_cv_sys_large_files+set}" = set; then
4055   echo $ECHO_N "(cached) $ECHO_C" >&6
4056 else
4057   while :; do
4058   cat >conftest.$ac_ext <<_ACEOF
4059 /* confdefs.h.  */
4060 _ACEOF
4061 cat confdefs.h >>conftest.$ac_ext
4062 cat >>conftest.$ac_ext <<_ACEOF
4063 /* end confdefs.h.  */
4064 #include <sys/types.h>
4065  /* Check that off_t can represent 2**63 - 1 correctly.
4066     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4067     since some C++ compilers masquerading as C compilers
4068     incorrectly reject 9223372036854775807.  */
4069 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4070   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4071                        && LARGE_OFF_T % 2147483647 == 1)
4072                       ? 1 : -1];
4073 int
4074 main ()
4075 {
4076
4077   ;
4078   return 0;
4079 }
4080 _ACEOF
4081 rm -f conftest.$ac_objext
4082 if { (ac_try="$ac_compile"
4083 case "(($ac_try" in
4084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4085   *) ac_try_echo=$ac_try;;
4086 esac
4087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4088   (eval "$ac_compile") 2>conftest.er1
4089   ac_status=$?
4090   grep -v '^ *+' conftest.er1 >conftest.err
4091   rm -f conftest.er1
4092   cat conftest.err >&5
4093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094   (exit $ac_status); } && {
4095          test -z "$ac_c_werror_flag" ||
4096          test ! -s conftest.err
4097        } && test -s conftest.$ac_objext; then
4098   ac_cv_sys_large_files=no; break
4099 else
4100   echo "$as_me: failed program was:" >&5
4101 sed 's/^/| /' conftest.$ac_ext >&5
4102
4103
4104 fi
4105
4106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4107   cat >conftest.$ac_ext <<_ACEOF
4108 /* confdefs.h.  */
4109 _ACEOF
4110 cat confdefs.h >>conftest.$ac_ext
4111 cat >>conftest.$ac_ext <<_ACEOF
4112 /* end confdefs.h.  */
4113 #define _LARGE_FILES 1
4114 #include <sys/types.h>
4115  /* Check that off_t can represent 2**63 - 1 correctly.
4116     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4117     since some C++ compilers masquerading as C compilers
4118     incorrectly reject 9223372036854775807.  */
4119 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4120   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4121                        && LARGE_OFF_T % 2147483647 == 1)
4122                       ? 1 : -1];
4123 int
4124 main ()
4125 {
4126
4127   ;
4128   return 0;
4129 }
4130 _ACEOF
4131 rm -f conftest.$ac_objext
4132 if { (ac_try="$ac_compile"
4133 case "(($ac_try" in
4134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4135   *) ac_try_echo=$ac_try;;
4136 esac
4137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4138   (eval "$ac_compile") 2>conftest.er1
4139   ac_status=$?
4140   grep -v '^ *+' conftest.er1 >conftest.err
4141   rm -f conftest.er1
4142   cat conftest.err >&5
4143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144   (exit $ac_status); } && {
4145          test -z "$ac_c_werror_flag" ||
4146          test ! -s conftest.err
4147        } && test -s conftest.$ac_objext; then
4148   ac_cv_sys_large_files=1; break
4149 else
4150   echo "$as_me: failed program was:" >&5
4151 sed 's/^/| /' conftest.$ac_ext >&5
4152
4153
4154 fi
4155
4156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4157   ac_cv_sys_large_files=unknown
4158   break
4159 done
4160 fi
4161 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4162 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
4163 case $ac_cv_sys_large_files in #(
4164   no | unknown) ;;
4165   *)
4166 cat >>confdefs.h <<_ACEOF
4167 #define _LARGE_FILES $ac_cv_sys_large_files
4168 _ACEOF
4169 ;;
4170 esac
4171 rm -f conftest*
4172   fi
4173 fi
4174
4175
4176 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4177 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4178 if test "${ac_cv_header_stdc+set}" = set; then
4179   echo $ECHO_N "(cached) $ECHO_C" >&6
4180 else
4181   cat >conftest.$ac_ext <<_ACEOF
4182 /* confdefs.h.  */
4183 _ACEOF
4184 cat confdefs.h >>conftest.$ac_ext
4185 cat >>conftest.$ac_ext <<_ACEOF
4186 /* end confdefs.h.  */
4187 #include <stdlib.h>
4188 #include <stdarg.h>
4189 #include <string.h>
4190 #include <float.h>
4191
4192 int
4193 main ()
4194 {
4195
4196   ;
4197   return 0;
4198 }
4199 _ACEOF
4200 rm -f conftest.$ac_objext
4201 if { (ac_try="$ac_compile"
4202 case "(($ac_try" in
4203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4204   *) ac_try_echo=$ac_try;;
4205 esac
4206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4207   (eval "$ac_compile") 2>conftest.er1
4208   ac_status=$?
4209   grep -v '^ *+' conftest.er1 >conftest.err
4210   rm -f conftest.er1
4211   cat conftest.err >&5
4212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213   (exit $ac_status); } && {
4214          test -z "$ac_c_werror_flag" ||
4215          test ! -s conftest.err
4216        } && test -s conftest.$ac_objext; then
4217   ac_cv_header_stdc=yes
4218 else
4219   echo "$as_me: failed program was:" >&5
4220 sed 's/^/| /' conftest.$ac_ext >&5
4221
4222         ac_cv_header_stdc=no
4223 fi
4224
4225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4226
4227 if test $ac_cv_header_stdc = yes; then
4228   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4229   cat >conftest.$ac_ext <<_ACEOF
4230 /* confdefs.h.  */
4231 _ACEOF
4232 cat confdefs.h >>conftest.$ac_ext
4233 cat >>conftest.$ac_ext <<_ACEOF
4234 /* end confdefs.h.  */
4235 #include <string.h>
4236
4237 _ACEOF
4238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4239   $EGREP "memchr" >/dev/null 2>&1; then
4240   :
4241 else
4242   ac_cv_header_stdc=no
4243 fi
4244 rm -f conftest*
4245
4246 fi
4247
4248 if test $ac_cv_header_stdc = yes; then
4249   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4250   cat >conftest.$ac_ext <<_ACEOF
4251 /* confdefs.h.  */
4252 _ACEOF
4253 cat confdefs.h >>conftest.$ac_ext
4254 cat >>conftest.$ac_ext <<_ACEOF
4255 /* end confdefs.h.  */
4256 #include <stdlib.h>
4257
4258 _ACEOF
4259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4260   $EGREP "free" >/dev/null 2>&1; then
4261   :
4262 else
4263   ac_cv_header_stdc=no
4264 fi
4265 rm -f conftest*
4266
4267 fi
4268
4269 if test $ac_cv_header_stdc = yes; then
4270   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4271   if test "$cross_compiling" = yes; then
4272   :
4273 else
4274   cat >conftest.$ac_ext <<_ACEOF
4275 /* confdefs.h.  */
4276 _ACEOF
4277 cat confdefs.h >>conftest.$ac_ext
4278 cat >>conftest.$ac_ext <<_ACEOF
4279 /* end confdefs.h.  */
4280 #include <ctype.h>
4281 #include <stdlib.h>
4282 #if ((' ' & 0x0FF) == 0x020)
4283 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4284 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4285 #else
4286 # define ISLOWER(c) \
4287                    (('a' <= (c) && (c) <= 'i') \
4288                      || ('j' <= (c) && (c) <= 'r') \
4289                      || ('s' <= (c) && (c) <= 'z'))
4290 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4291 #endif
4292
4293 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4294 int
4295 main ()
4296 {
4297   int i;
4298   for (i = 0; i < 256; i++)
4299     if (XOR (islower (i), ISLOWER (i))
4300         || toupper (i) != TOUPPER (i))
4301       return 2;
4302   return 0;
4303 }
4304 _ACEOF
4305 rm -f conftest$ac_exeext
4306 if { (ac_try="$ac_link"
4307 case "(($ac_try" in
4308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4309   *) ac_try_echo=$ac_try;;
4310 esac
4311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4312   (eval "$ac_link") 2>&5
4313   ac_status=$?
4314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4316   { (case "(($ac_try" in
4317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4318   *) ac_try_echo=$ac_try;;
4319 esac
4320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4321   (eval "$ac_try") 2>&5
4322   ac_status=$?
4323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324   (exit $ac_status); }; }; then
4325   :
4326 else
4327   echo "$as_me: program exited with status $ac_status" >&5
4328 echo "$as_me: failed program was:" >&5
4329 sed 's/^/| /' conftest.$ac_ext >&5
4330
4331 ( exit $ac_status )
4332 ac_cv_header_stdc=no
4333 fi
4334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4335 fi
4336
4337
4338 fi
4339 fi
4340 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4341 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4342 if test $ac_cv_header_stdc = yes; then
4343
4344 cat >>confdefs.h <<\_ACEOF
4345 #define STDC_HEADERS 1
4346 _ACEOF
4347
4348 fi
4349
4350 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4361                   inttypes.h stdint.h unistd.h
4362 do
4363 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4364 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4367   echo $ECHO_N "(cached) $ECHO_C" >&6
4368 else
4369   cat >conftest.$ac_ext <<_ACEOF
4370 /* confdefs.h.  */
4371 _ACEOF
4372 cat confdefs.h >>conftest.$ac_ext
4373 cat >>conftest.$ac_ext <<_ACEOF
4374 /* end confdefs.h.  */
4375 $ac_includes_default
4376
4377 #include <$ac_header>
4378 _ACEOF
4379 rm -f conftest.$ac_objext
4380 if { (ac_try="$ac_compile"
4381 case "(($ac_try" in
4382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4383   *) ac_try_echo=$ac_try;;
4384 esac
4385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4386   (eval "$ac_compile") 2>conftest.er1
4387   ac_status=$?
4388   grep -v '^ *+' conftest.er1 >conftest.err
4389   rm -f conftest.er1
4390   cat conftest.err >&5
4391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392   (exit $ac_status); } && {
4393          test -z "$ac_c_werror_flag" ||
4394          test ! -s conftest.err
4395        } && test -s conftest.$ac_objext; then
4396   eval "$as_ac_Header=yes"
4397 else
4398   echo "$as_me: failed program was:" >&5
4399 sed 's/^/| /' conftest.$ac_ext >&5
4400
4401         eval "$as_ac_Header=no"
4402 fi
4403
4404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4405 fi
4406 ac_res=`eval echo '${'$as_ac_Header'}'`
4407                { echo "$as_me:$LINENO: result: $ac_res" >&5
4408 echo "${ECHO_T}$ac_res" >&6; }
4409 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4410   cat >>confdefs.h <<_ACEOF
4411 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4412 _ACEOF
4413
4414 fi
4415
4416 done
4417
4418
4419 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4420 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4421 if test "${ac_cv_c_bigendian+set}" = set; then
4422   echo $ECHO_N "(cached) $ECHO_C" >&6
4423 else
4424   # See if sys/param.h defines the BYTE_ORDER macro.
4425 cat >conftest.$ac_ext <<_ACEOF
4426 /* confdefs.h.  */
4427 _ACEOF
4428 cat confdefs.h >>conftest.$ac_ext
4429 cat >>conftest.$ac_ext <<_ACEOF
4430 /* end confdefs.h.  */
4431 #include <sys/types.h>
4432 #include <sys/param.h>
4433
4434 int
4435 main ()
4436 {
4437 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4438         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4439  bogus endian macros
4440 #endif
4441
4442   ;
4443   return 0;
4444 }
4445 _ACEOF
4446 rm -f conftest.$ac_objext
4447 if { (ac_try="$ac_compile"
4448 case "(($ac_try" in
4449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4450   *) ac_try_echo=$ac_try;;
4451 esac
4452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4453   (eval "$ac_compile") 2>conftest.er1
4454   ac_status=$?
4455   grep -v '^ *+' conftest.er1 >conftest.err
4456   rm -f conftest.er1
4457   cat conftest.err >&5
4458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459   (exit $ac_status); } && {
4460          test -z "$ac_c_werror_flag" ||
4461          test ! -s conftest.err
4462        } && test -s conftest.$ac_objext; then
4463   # It does; now see whether it defined to BIG_ENDIAN or not.
4464 cat >conftest.$ac_ext <<_ACEOF
4465 /* confdefs.h.  */
4466 _ACEOF
4467 cat confdefs.h >>conftest.$ac_ext
4468 cat >>conftest.$ac_ext <<_ACEOF
4469 /* end confdefs.h.  */
4470 #include <sys/types.h>
4471 #include <sys/param.h>
4472
4473 int
4474 main ()
4475 {
4476 #if BYTE_ORDER != BIG_ENDIAN
4477  not big endian
4478 #endif
4479
4480   ;
4481   return 0;
4482 }
4483 _ACEOF
4484 rm -f conftest.$ac_objext
4485 if { (ac_try="$ac_compile"
4486 case "(($ac_try" in
4487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4488   *) ac_try_echo=$ac_try;;
4489 esac
4490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4491   (eval "$ac_compile") 2>conftest.er1
4492   ac_status=$?
4493   grep -v '^ *+' conftest.er1 >conftest.err
4494   rm -f conftest.er1
4495   cat conftest.err >&5
4496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497   (exit $ac_status); } && {
4498          test -z "$ac_c_werror_flag" ||
4499          test ! -s conftest.err
4500        } && test -s conftest.$ac_objext; then
4501   ac_cv_c_bigendian=yes
4502 else
4503   echo "$as_me: failed program was:" >&5
4504 sed 's/^/| /' conftest.$ac_ext >&5
4505
4506         ac_cv_c_bigendian=no
4507 fi
4508
4509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4510 else
4511   echo "$as_me: failed program was:" >&5
4512 sed 's/^/| /' conftest.$ac_ext >&5
4513
4514         # It does not; compile a test program.
4515 if test "$cross_compiling" = yes; then
4516   # try to guess the endianness by grepping values into an object file
4517   ac_cv_c_bigendian=unknown
4518   cat >conftest.$ac_ext <<_ACEOF
4519 /* confdefs.h.  */
4520 _ACEOF
4521 cat confdefs.h >>conftest.$ac_ext
4522 cat >>conftest.$ac_ext <<_ACEOF
4523 /* end confdefs.h.  */
4524 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4525 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4526 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4527 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4528 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4529 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4530 int
4531 main ()
4532 {
4533  _ascii (); _ebcdic ();
4534   ;
4535   return 0;
4536 }
4537 _ACEOF
4538 rm -f conftest.$ac_objext
4539 if { (ac_try="$ac_compile"
4540 case "(($ac_try" in
4541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4542   *) ac_try_echo=$ac_try;;
4543 esac
4544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4545   (eval "$ac_compile") 2>conftest.er1
4546   ac_status=$?
4547   grep -v '^ *+' conftest.er1 >conftest.err
4548   rm -f conftest.er1
4549   cat conftest.err >&5
4550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551   (exit $ac_status); } && {
4552          test -z "$ac_c_werror_flag" ||
4553          test ! -s conftest.err
4554        } && test -s conftest.$ac_objext; then
4555   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4556   ac_cv_c_bigendian=yes
4557 fi
4558 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4559   if test "$ac_cv_c_bigendian" = unknown; then
4560     ac_cv_c_bigendian=no
4561   else
4562     # finding both strings is unlikely to happen, but who knows?
4563     ac_cv_c_bigendian=unknown
4564   fi
4565 fi
4566 else
4567   echo "$as_me: failed program was:" >&5
4568 sed 's/^/| /' conftest.$ac_ext >&5
4569
4570
4571 fi
4572
4573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4574 else
4575   cat >conftest.$ac_ext <<_ACEOF
4576 /* confdefs.h.  */
4577 _ACEOF
4578 cat confdefs.h >>conftest.$ac_ext
4579 cat >>conftest.$ac_ext <<_ACEOF
4580 /* end confdefs.h.  */
4581 $ac_includes_default
4582 int
4583 main ()
4584 {
4585
4586   /* Are we little or big endian?  From Harbison&Steele.  */
4587   union
4588   {
4589     long int l;
4590     char c[sizeof (long int)];
4591   } u;
4592   u.l = 1;
4593   return u.c[sizeof (long int) - 1] == 1;
4594
4595   ;
4596   return 0;
4597 }
4598 _ACEOF
4599 rm -f conftest$ac_exeext
4600 if { (ac_try="$ac_link"
4601 case "(($ac_try" in
4602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4603   *) ac_try_echo=$ac_try;;
4604 esac
4605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4606   (eval "$ac_link") 2>&5
4607   ac_status=$?
4608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4610   { (case "(($ac_try" in
4611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4612   *) ac_try_echo=$ac_try;;
4613 esac
4614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4615   (eval "$ac_try") 2>&5
4616   ac_status=$?
4617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618   (exit $ac_status); }; }; then
4619   ac_cv_c_bigendian=no
4620 else
4621   echo "$as_me: program exited with status $ac_status" >&5
4622 echo "$as_me: failed program was:" >&5
4623 sed 's/^/| /' conftest.$ac_ext >&5
4624
4625 ( exit $ac_status )
4626 ac_cv_c_bigendian=yes
4627 fi
4628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4629 fi
4630
4631
4632 fi
4633
4634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4635 fi
4636 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4637 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4638 case $ac_cv_c_bigendian in
4639   yes)
4640
4641 cat >>confdefs.h <<\_ACEOF
4642 #define WORDS_BIGENDIAN 1
4643 _ACEOF
4644  ;;
4645   no)
4646      ;;
4647   *)
4648     { { echo "$as_me:$LINENO: error: unknown endianness
4649 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4650 echo "$as_me: error: unknown endianness
4651 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4652    { (exit 1); exit 1; }; } ;;
4653 esac
4654
4655
4656 # Extract the first word of "gmake", so it can be a program name with args.
4657 set dummy gmake; ac_word=$2
4658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4660 if test "${ac_cv_prog_GMAKE+set}" = set; then
4661   echo $ECHO_N "(cached) $ECHO_C" >&6
4662 else
4663   if test -n "$GMAKE"; then
4664   ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4665 else
4666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667 for as_dir in $PATH
4668 do
4669   IFS=$as_save_IFS
4670   test -z "$as_dir" && as_dir=.
4671   for ac_exec_ext in '' $ac_executable_extensions; do
4672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4673     ac_cv_prog_GMAKE="yes"
4674     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4675     break 2
4676   fi
4677 done
4678 done
4679 IFS=$as_save_IFS
4680
4681   test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4682 fi
4683 fi
4684 GMAKE=$ac_cv_prog_GMAKE
4685 if test -n "$GMAKE"; then
4686   { echo "$as_me:$LINENO: result: $GMAKE" >&5
4687 echo "${ECHO_T}$GMAKE" >&6; }
4688 else
4689   { echo "$as_me:$LINENO: result: no" >&5
4690 echo "${ECHO_T}no" >&6; }
4691 fi
4692
4693
4694 if test $GMAKE = no; then
4695   # Extract the first word of "make", so it can be a program name with args.
4696 set dummy make; ac_word=$2
4697 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4699 if test "${ac_cv_path_MAKE+set}" = set; then
4700   echo $ECHO_N "(cached) $ECHO_C" >&6
4701 else
4702   case $MAKE in
4703   [\\/]* | ?:[\\/]*)
4704   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4705   ;;
4706   *)
4707   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708 for as_dir in $PATH
4709 do
4710   IFS=$as_save_IFS
4711   test -z "$as_dir" && as_dir=.
4712   for ac_exec_ext in '' $ac_executable_extensions; do
4713   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4714     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4715     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4716     break 2
4717   fi
4718 done
4719 done
4720 IFS=$as_save_IFS
4721
4722   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4723   ;;
4724 esac
4725 fi
4726 MAKE=$ac_cv_path_MAKE
4727 if test -n "$MAKE"; then
4728   { echo "$as_me:$LINENO: result: $MAKE" >&5
4729 echo "${ECHO_T}$MAKE" >&6; }
4730 else
4731   { echo "$as_me:$LINENO: result: no" >&5
4732 echo "${ECHO_T}no" >&6; }
4733 fi
4734
4735
4736 else
4737   # Extract the first word of "gmake", so it can be a program name with args.
4738 set dummy gmake; ac_word=$2
4739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4741 if test "${ac_cv_path_MAKE+set}" = set; then
4742   echo $ECHO_N "(cached) $ECHO_C" >&6
4743 else
4744   case $MAKE in
4745   [\\/]* | ?:[\\/]*)
4746   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4747   ;;
4748   *)
4749   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 for as_dir in $PATH
4751 do
4752   IFS=$as_save_IFS
4753   test -z "$as_dir" && as_dir=.
4754   for ac_exec_ext in '' $ac_executable_extensions; do
4755   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4756     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4757     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4758     break 2
4759   fi
4760 done
4761 done
4762 IFS=$as_save_IFS
4763
4764   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4765   ;;
4766 esac
4767 fi
4768 MAKE=$ac_cv_path_MAKE
4769 if test -n "$MAKE"; then
4770   { echo "$as_me:$LINENO: result: $MAKE" >&5
4771 echo "${ECHO_T}$MAKE" >&6; }
4772 else
4773   { echo "$as_me:$LINENO: result: no" >&5
4774 echo "${ECHO_T}no" >&6; }
4775 fi
4776
4777
4778 fi
4779 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4780 if test -z "$makever"; then
4781   { { echo "$as_me:$LINENO: error: GNU Make is not installed.  Please download and install it
4782                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
4783 echo "$as_me: error: GNU Make is not installed.  Please download and install it
4784                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
4785    { (exit 1); exit 1; }; }
4786 fi
4787
4788   { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
4789 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
4790 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
4791   echo $ECHO_N "(cached) $ECHO_C" >&6
4792 else
4793   ac_check_lib_save_LIBS=$LIBS
4794 LIBS="-lltdl  $LIBS"
4795 cat >conftest.$ac_ext <<_ACEOF
4796 /* confdefs.h.  */
4797 _ACEOF
4798 cat confdefs.h >>conftest.$ac_ext
4799 cat >>conftest.$ac_ext <<_ACEOF
4800 /* end confdefs.h.  */
4801
4802 /* Override any GCC internal prototype to avoid an error.
4803    Use char because int might match the return type of a GCC
4804    builtin and then its argument prototype would still apply.  */
4805 #ifdef __cplusplus
4806 extern "C"
4807 #endif
4808 char lt_dlinit ();
4809 int
4810 main ()
4811 {
4812 return lt_dlinit ();
4813   ;
4814   return 0;
4815 }
4816 _ACEOF
4817 rm -f conftest.$ac_objext conftest$ac_exeext
4818 if { (ac_try="$ac_link"
4819 case "(($ac_try" in
4820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4821   *) ac_try_echo=$ac_try;;
4822 esac
4823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4824   (eval "$ac_link") 2>conftest.er1
4825   ac_status=$?
4826   grep -v '^ *+' conftest.er1 >conftest.err
4827   rm -f conftest.er1
4828   cat conftest.err >&5
4829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830   (exit $ac_status); } && {
4831          test -z "$ac_c_werror_flag" ||
4832          test ! -s conftest.err
4833        } && test -s conftest$ac_exeext &&
4834        $as_test_x conftest$ac_exeext; then
4835   ac_cv_lib_ltdl_lt_dlinit=yes
4836 else
4837   echo "$as_me: failed program was:" >&5
4838 sed 's/^/| /' conftest.$ac_ext >&5
4839
4840         ac_cv_lib_ltdl_lt_dlinit=no
4841 fi
4842
4843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4844       conftest$ac_exeext conftest.$ac_ext
4845 LIBS=$ac_check_lib_save_LIBS
4846 fi
4847 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
4848 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
4849 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
4850   test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
4851 else
4852   if test x"$enable_ltdl_install" = xno; then
4853      { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
4854 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
4855    else
4856      enable_ltdl_install=yes
4857    fi
4858
4859 fi
4860
4861   if test x"$enable_ltdl_install" = x"yes"; then
4862     ac_configure_args="$ac_configure_args --enable-ltdl-install"
4863     LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
4864     LTDLINCL='-I${top_srcdir}/''libltdl'
4865   else
4866     ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4867     LIBLTDL="-lltdl"
4868     LTDLINCL=
4869   fi
4870   # For backwards non-gettext consistent compatibility...
4871   INCLTDL="$LTDLINCL"
4872
4873
4874 if test x"$enable_ltdl_install" = x"yes"; then
4875   LTDL_SUBDIRS=libltdl
4876 fi
4877
4878
4879 # Check whether --enable-shared was given.
4880 if test "${enable_shared+set}" = set; then
4881   enableval=$enable_shared; p=${PACKAGE-default}
4882     case $enableval in
4883     yes) enable_shared=yes ;;
4884     no) enable_shared=no ;;
4885     *)
4886       enable_shared=no
4887       # Look at the argument we got.  We use all the common list separators.
4888       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4889       for pkg in $enableval; do
4890         IFS="$lt_save_ifs"
4891         if test "X$pkg" = "X$p"; then
4892           enable_shared=yes
4893         fi
4894       done
4895       IFS="$lt_save_ifs"
4896       ;;
4897     esac
4898 else
4899   enable_shared=yes
4900 fi
4901
4902
4903 # Check whether --enable-static was given.
4904 if test "${enable_static+set}" = set; then
4905   enableval=$enable_static; p=${PACKAGE-default}
4906     case $enableval in
4907     yes) enable_static=yes ;;
4908     no) enable_static=no ;;
4909     *)
4910      enable_static=no
4911       # Look at the argument we got.  We use all the common list separators.
4912       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4913       for pkg in $enableval; do
4914         IFS="$lt_save_ifs"
4915         if test "X$pkg" = "X$p"; then
4916           enable_static=yes
4917         fi
4918       done
4919       IFS="$lt_save_ifs"
4920       ;;
4921     esac
4922 else
4923   enable_static=yes
4924 fi
4925
4926
4927 # Check whether --enable-fast-install was given.
4928 if test "${enable_fast_install+set}" = set; then
4929   enableval=$enable_fast_install; p=${PACKAGE-default}
4930     case $enableval in
4931     yes) enable_fast_install=yes ;;
4932     no) enable_fast_install=no ;;
4933     *)
4934       enable_fast_install=no
4935       # Look at the argument we got.  We use all the common list separators.
4936       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4937       for pkg in $enableval; do
4938         IFS="$lt_save_ifs"
4939         if test "X$pkg" = "X$p"; then
4940           enable_fast_install=yes
4941         fi
4942       done
4943       IFS="$lt_save_ifs"
4944       ;;
4945     esac
4946 else
4947   enable_fast_install=yes
4948 fi
4949
4950
4951 ac_aux_dir=
4952 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4953   if test -f "$ac_dir/install-sh"; then
4954     ac_aux_dir=$ac_dir
4955     ac_install_sh="$ac_aux_dir/install-sh -c"
4956     break
4957   elif test -f "$ac_dir/install.sh"; then
4958     ac_aux_dir=$ac_dir
4959     ac_install_sh="$ac_aux_dir/install.sh -c"
4960     break
4961   elif test -f "$ac_dir/shtool"; then
4962     ac_aux_dir=$ac_dir
4963     ac_install_sh="$ac_aux_dir/shtool install -c"
4964     break
4965   fi
4966 done
4967 if test -z "$ac_aux_dir"; then
4968   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4969 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4970    { (exit 1); exit 1; }; }
4971 fi
4972
4973 # These three variables are undocumented and unsupported,
4974 # and are intended to be withdrawn in a future Autoconf release.
4975 # They can cause serious problems if a builder's source tree is in a directory
4976 # whose full name contains unusual characters.
4977 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4978 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4979 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
4980
4981
4982 # Make sure we can run config.sub.
4983 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4984   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4985 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4986    { (exit 1); exit 1; }; }
4987
4988 { echo "$as_me:$LINENO: checking build system type" >&5
4989 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4990 if test "${ac_cv_build+set}" = set; then
4991   echo $ECHO_N "(cached) $ECHO_C" >&6
4992 else
4993   ac_build_alias=$build_alias
4994 test "x$ac_build_alias" = x &&
4995   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4996 test "x$ac_build_alias" = x &&
4997   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4998 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4999    { (exit 1); exit 1; }; }
5000 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5001   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5002 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5003    { (exit 1); exit 1; }; }
5004
5005 fi
5006 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5007 echo "${ECHO_T}$ac_cv_build" >&6; }
5008 case $ac_cv_build in
5009 *-*-*) ;;
5010 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5011 echo "$as_me: error: invalid value of canonical build" >&2;}
5012    { (exit 1); exit 1; }; };;
5013 esac
5014 build=$ac_cv_build
5015 ac_save_IFS=$IFS; IFS='-'
5016 set x $ac_cv_build
5017 shift
5018 build_cpu=$1
5019 build_vendor=$2
5020 shift; shift
5021 # Remember, the first character of IFS is used to create $*,
5022 # except with old shells:
5023 build_os=$*
5024 IFS=$ac_save_IFS
5025 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5026
5027
5028 { echo "$as_me:$LINENO: checking host system type" >&5
5029 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5030 if test "${ac_cv_host+set}" = set; then
5031   echo $ECHO_N "(cached) $ECHO_C" >&6
5032 else
5033   if test "x$host_alias" = x; then
5034   ac_cv_host=$ac_cv_build
5035 else
5036   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5037     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5038 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5039    { (exit 1); exit 1; }; }
5040 fi
5041
5042 fi
5043 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5044 echo "${ECHO_T}$ac_cv_host" >&6; }
5045 case $ac_cv_host in
5046 *-*-*) ;;
5047 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5048 echo "$as_me: error: invalid value of canonical host" >&2;}
5049    { (exit 1); exit 1; }; };;
5050 esac
5051 host=$ac_cv_host
5052 ac_save_IFS=$IFS; IFS='-'
5053 set x $ac_cv_host
5054 shift
5055 host_cpu=$1
5056 host_vendor=$2
5057 shift; shift
5058 # Remember, the first character of IFS is used to create $*,
5059 # except with old shells:
5060 host_os=$*
5061 IFS=$ac_save_IFS
5062 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5063
5064
5065 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5066 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5067 if test "${lt_cv_path_SED+set}" = set; then
5068   echo $ECHO_N "(cached) $ECHO_C" >&6
5069 else
5070   # Loop through the user's path and test for sed and gsed.
5071 # Then use that list of sed's as ones to test for truncation.
5072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073 for as_dir in $PATH
5074 do
5075   IFS=$as_save_IFS
5076   test -z "$as_dir" && as_dir=.
5077   for lt_ac_prog in sed gsed; do
5078     for ac_exec_ext in '' $ac_executable_extensions; do
5079       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5080         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5081       fi
5082     done
5083   done
5084 done
5085 lt_ac_max=0
5086 lt_ac_count=0
5087 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5088 # along with /bin/sed that truncates output.
5089 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5090   test ! -f $lt_ac_sed && continue
5091   cat /dev/null > conftest.in
5092   lt_ac_count=0
5093   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5094   # Check for GNU sed and select it if it is found.
5095   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5096     lt_cv_path_SED=$lt_ac_sed
5097     break
5098   fi
5099   while true; do
5100     cat conftest.in conftest.in >conftest.tmp
5101     mv conftest.tmp conftest.in
5102     cp conftest.in conftest.nl
5103     echo >>conftest.nl
5104     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5105     cmp -s conftest.out conftest.nl || break
5106     # 10000 chars as input seems more than enough
5107     test $lt_ac_count -gt 10 && break
5108     lt_ac_count=`expr $lt_ac_count + 1`
5109     if test $lt_ac_count -gt $lt_ac_max; then
5110       lt_ac_max=$lt_ac_count
5111       lt_cv_path_SED=$lt_ac_sed
5112     fi
5113   done
5114 done
5115
5116 fi
5117
5118 SED=$lt_cv_path_SED
5119 { echo "$as_me:$LINENO: result: $SED" >&5
5120 echo "${ECHO_T}$SED" >&6; }
5121
5122
5123 # Check whether --with-gnu-ld was given.
5124 if test "${with_gnu_ld+set}" = set; then
5125   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5126 else
5127   with_gnu_ld=no
5128 fi
5129
5130 ac_prog=ld
5131 if test "$GCC" = yes; then
5132   # Check if gcc -print-prog-name=ld gives a path.
5133   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5134 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5135   case $host in
5136   *-*-mingw*)
5137     # gcc leaves a trailing carriage return which upsets mingw
5138     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5139   *)
5140     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5141   esac
5142   case $ac_prog in
5143     # Accept absolute paths.
5144     [\\/]* | ?:[\\/]*)
5145       re_direlt='/[^/][^/]*/\.\./'
5146       # Canonicalize the pathname of ld
5147       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5148       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5149         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5150       done
5151       test -z "$LD" && LD="$ac_prog"
5152       ;;
5153   "")
5154     # If it fails, then pretend we aren't using GCC.
5155     ac_prog=ld
5156     ;;
5157   *)
5158     # If it is relative, then search for the first ld in PATH.
5159     with_gnu_ld=unknown
5160     ;;
5161   esac
5162 elif test "$with_gnu_ld" = yes; then
5163   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5164 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5165 else
5166   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5167 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5168 fi
5169 if test "${lt_cv_path_LD+set}" = set; then
5170   echo $ECHO_N "(cached) $ECHO_C" >&6
5171 else
5172   if test -z "$LD"; then
5173   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5174   for ac_dir in $PATH; do
5175     IFS="$lt_save_ifs"
5176     test -z "$ac_dir" && ac_dir=.
5177     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5178       lt_cv_path_LD="$ac_dir/$ac_prog"
5179       # Check to see if the program is GNU ld.  I'd rather use --version,
5180       # but apparently some variants of GNU ld only accept -v.
5181       # Break only if it was the GNU/non-GNU ld that we prefer.
5182       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5183       *GNU* | *'with BFD'*)
5184         test "$with_gnu_ld" != no && break
5185         ;;
5186       *)
5187         test "$with_gnu_ld" != yes && break
5188         ;;
5189       esac
5190     fi
5191   done
5192   IFS="$lt_save_ifs"
5193 else
5194   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5195 fi
5196 fi
5197
5198 LD="$lt_cv_path_LD"
5199 if test -n "$LD"; then
5200   { echo "$as_me:$LINENO: result: $LD" >&5
5201 echo "${ECHO_T}$LD" >&6; }
5202 else
5203   { echo "$as_me:$LINENO: result: no" >&5
5204 echo "${ECHO_T}no" >&6; }
5205 fi
5206 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5207 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5208    { (exit 1); exit 1; }; }
5209 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5210 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5211 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5212   echo $ECHO_N "(cached) $ECHO_C" >&6
5213 else
5214   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5215 case `$LD -v 2>&1 </dev/null` in
5216 *GNU* | *'with BFD'*)
5217   lt_cv_prog_gnu_ld=yes
5218   ;;
5219 *)
5220   lt_cv_prog_gnu_ld=no
5221   ;;
5222 esac
5223 fi
5224 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5225 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5226 with_gnu_ld=$lt_cv_prog_gnu_ld
5227
5228
5229 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5230 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5231 if test "${lt_cv_ld_reload_flag+set}" = set; then
5232   echo $ECHO_N "(cached) $ECHO_C" >&6
5233 else
5234   lt_cv_ld_reload_flag='-r'
5235 fi
5236 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5237 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5238 reload_flag=$lt_cv_ld_reload_flag
5239 case $reload_flag in
5240 "" | " "*) ;;
5241 *) reload_flag=" $reload_flag" ;;
5242 esac
5243 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5244 case $host_os in
5245   darwin*)
5246     if test "$GCC" = yes; then
5247       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5248     else
5249       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5250     fi
5251     ;;
5252 esac
5253
5254 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5255 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5256 if test "${lt_cv_path_NM+set}" = set; then
5257   echo $ECHO_N "(cached) $ECHO_C" >&6
5258 else
5259   if test -n "$NM"; then
5260   # Let the user override the test.
5261   lt_cv_path_NM="$NM"
5262 else
5263   lt_nm_to_check="${ac_tool_prefix}nm"
5264   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5265     lt_nm_to_check="$lt_nm_to_check nm"
5266   fi
5267   for lt_tmp_nm in $lt_nm_to_check; do
5268     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5269     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5270       IFS="$lt_save_ifs"
5271       test -z "$ac_dir" && ac_dir=.
5272       tmp_nm="$ac_dir/$lt_tmp_nm"
5273       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5274         # Check to see if the nm accepts a BSD-compat flag.
5275         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5276         #   nm: unknown option "B" ignored
5277         # Tru64's nm complains that /dev/null is an invalid object file
5278         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5279         */dev/null* | *'Invalid file or object type'*)
5280           lt_cv_path_NM="$tmp_nm -B"
5281           break
5282           ;;
5283         *)
5284           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5285           */dev/null*)
5286             lt_cv_path_NM="$tmp_nm -p"
5287             break
5288             ;;
5289           *)
5290             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5291             continue # so that we can try to find one that supports BSD flags
5292             ;;
5293           esac
5294           ;;
5295         esac
5296       fi
5297     done
5298     IFS="$lt_save_ifs"
5299   done
5300   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5301 fi
5302 fi
5303 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5304 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5305 NM="$lt_cv_path_NM"
5306
5307 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5308 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5309 LN_S=$as_ln_s
5310 if test "$LN_S" = "ln -s"; then
5311   { echo "$as_me:$LINENO: result: yes" >&5
5312 echo "${ECHO_T}yes" >&6; }
5313 else
5314   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5315 echo "${ECHO_T}no, using $LN_S" >&6; }
5316 fi
5317
5318 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5319 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
5320 if test "${lt_cv_deplibs_check_method+set}" = set; then
5321   echo $ECHO_N "(cached) $ECHO_C" >&6
5322 else
5323   lt_cv_file_magic_cmd='$MAGIC_CMD'
5324 lt_cv_file_magic_test_file=
5325 lt_cv_deplibs_check_method='unknown'
5326 # Need to set the preceding variable on all platforms that support
5327 # interlibrary dependencies.
5328 # 'none' -- dependencies not supported.
5329 # `unknown' -- same as none, but documents that we really don't know.
5330 # 'pass_all' -- all dependencies passed with no checks.
5331 # 'test_compile' -- check by making test program.
5332 # 'file_magic [[regex]]' -- check by looking for files in library path
5333 # which responds to the $file_magic_cmd with a given extended regex.
5334 # If you have `file' or equivalent on your system and you're not sure
5335 # whether `pass_all' will *always* work, you probably want this one.
5336
5337 case $host_os in
5338 aix4* | aix5*)
5339   lt_cv_deplibs_check_method=pass_all
5340   ;;
5341
5342 beos*)
5343   lt_cv_deplibs_check_method=pass_all
5344   ;;
5345
5346 bsdi[45]*)
5347   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5348   lt_cv_file_magic_cmd='/usr/bin/file -L'
5349   lt_cv_file_magic_test_file=/shlib/libc.so
5350   ;;
5351
5352 cygwin*)
5353   # func_win32_libid is a shell function defined in ltmain.sh
5354   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5355   lt_cv_file_magic_cmd='func_win32_libid'
5356   ;;
5357
5358 mingw* | pw32*)
5359   # Base MSYS/MinGW do not provide the 'file' command needed by
5360   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5361   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5362   lt_cv_file_magic_cmd='$OBJDUMP -f'
5363   ;;
5364
5365 darwin* | rhapsody*)
5366   lt_cv_deplibs_check_method=pass_all
5367   ;;
5368
5369 freebsd* | kfreebsd*-gnu | dragonfly*)
5370   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5371     case $host_cpu in
5372     i*86 )
5373       # Not sure whether the presence of OpenBSD here was a mistake.
5374       # Let's accept both of them until this is cleared up.
5375       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5376       lt_cv_file_magic_cmd=/usr/bin/file
5377       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5378       ;;
5379     esac
5380   else
5381     lt_cv_deplibs_check_method=pass_all
5382   fi
5383   ;;
5384
5385 gnu*)
5386   lt_cv_deplibs_check_method=pass_all
5387   ;;
5388
5389 hpux10.20* | hpux11*)
5390   lt_cv_file_magic_cmd=/usr/bin/file
5391   case $host_cpu in
5392   ia64*)
5393     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5394     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5395     ;;
5396   hppa*64*)
5397     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]'
5398     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5399     ;;
5400   *)
5401     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5402     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5403     ;;
5404   esac
5405   ;;
5406
5407 interix3*)
5408   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5409   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5410   ;;
5411
5412 irix5* | irix6* | nonstopux*)
5413   case $LD in
5414   *-32|*"-32 ") libmagic=32-bit;;
5415   *-n32|*"-n32 ") libmagic=N32;;
5416   *-64|*"-64 ") libmagic=64-bit;;
5417   *) libmagic=never-match;;
5418   esac
5419   lt_cv_deplibs_check_method=pass_all
5420   ;;
5421
5422 # This must be Linux ELF.
5423 linux*)
5424   lt_cv_deplibs_check_method=pass_all
5425   ;;
5426
5427 netbsd*)
5428   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5429     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5430   else
5431     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5432   fi
5433   ;;
5434
5435 newos6*)
5436   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5437   lt_cv_file_magic_cmd=/usr/bin/file
5438   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5439   ;;
5440
5441 nto-qnx*)
5442   lt_cv_deplibs_check_method=unknown
5443   ;;
5444
5445 openbsd*)
5446   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5447     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5448   else
5449     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5450   fi
5451   ;;
5452
5453 osf3* | osf4* | osf5*)
5454   lt_cv_deplibs_check_method=pass_all
5455   ;;
5456
5457 solaris*)
5458   lt_cv_deplibs_check_method=pass_all
5459   ;;
5460
5461 sysv4 | sysv4.3*)
5462   case $host_vendor in
5463   motorola)
5464     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]'
5465     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5466     ;;
5467   ncr)
5468     lt_cv_deplibs_check_method=pass_all
5469     ;;
5470   sequent)
5471     lt_cv_file_magic_cmd='/bin/file'
5472     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5473     ;;
5474   sni)
5475     lt_cv_file_magic_cmd='/bin/file'
5476     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5477     lt_cv_file_magic_test_file=/lib/libc.so
5478     ;;
5479   siemens)
5480     lt_cv_deplibs_check_method=pass_all
5481     ;;
5482   pc)
5483     lt_cv_deplibs_check_method=pass_all
5484     ;;
5485   esac
5486   ;;
5487
5488 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5489   lt_cv_deplibs_check_method=pass_all
5490   ;;
5491 esac
5492
5493 fi
5494 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5495 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5496 file_magic_cmd=$lt_cv_file_magic_cmd
5497 deplibs_check_method=$lt_cv_deplibs_check_method
5498 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5499
5500
5501
5502
5503 # If no C compiler was specified, use CC.
5504 LTCC=${LTCC-"$CC"}
5505
5506 # If no C compiler flags were specified, use CFLAGS.
5507 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5508
5509 # Allow CC to be a program name with arguments.
5510 compiler=$CC
5511
5512 # Check whether --enable-libtool-lock was given.
5513 if test "${enable_libtool_lock+set}" = set; then
5514   enableval=$enable_libtool_lock;
5515 fi
5516
5517 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5518
5519 # Some flags need to be propagated to the compiler or linker for good
5520 # libtool support.
5521 case $host in
5522 ia64-*-hpux*)
5523   # Find out which ABI we are using.
5524   echo 'int i;' > conftest.$ac_ext
5525   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5526   (eval $ac_compile) 2>&5
5527   ac_status=$?
5528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529   (exit $ac_status); }; then
5530     case `/usr/bin/file conftest.$ac_objext` in
5531     *ELF-32*)
5532       HPUX_IA64_MODE="32"
5533       ;;
5534     *ELF-64*)
5535       HPUX_IA64_MODE="64"
5536       ;;
5537     esac
5538   fi
5539   rm -rf conftest*
5540   ;;
5541 *-*-irix6*)
5542   # Find out which ABI we are using.
5543   echo '#line 5543 "configure"' > conftest.$ac_ext
5544   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5545   (eval $ac_compile) 2>&5
5546   ac_status=$?
5547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548   (exit $ac_status); }; then
5549    if test "$lt_cv_prog_gnu_ld" = yes; then
5550     case `/usr/bin/file conftest.$ac_objext` in
5551     *32-bit*)
5552       LD="${LD-ld} -melf32bsmip"
5553       ;;
5554     *N32*)
5555       LD="${LD-ld} -melf32bmipn32"
5556       ;;
5557     *64-bit*)
5558       LD="${LD-ld} -melf64bmip"
5559       ;;
5560     esac
5561    else
5562     case `/usr/bin/file conftest.$ac_objext` in
5563     *32-bit*)
5564       LD="${LD-ld} -32"
5565       ;;
5566     *N32*)
5567       LD="${LD-ld} -n32"
5568       ;;
5569     *64-bit*)
5570       LD="${LD-ld} -64"
5571       ;;
5572     esac
5573    fi
5574   fi
5575   rm -rf conftest*
5576   ;;
5577
5578 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5579   # Find out which ABI we are using.
5580   echo 'int i;' > conftest.$ac_ext
5581   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5582   (eval $ac_compile) 2>&5
5583   ac_status=$?
5584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585   (exit $ac_status); }; then
5586     case `/usr/bin/file conftest.o` in
5587     *32-bit*)
5588       case $host in
5589         x86_64-*linux*)
5590           LD="${LD-ld} -m elf_i386"
5591           ;;
5592         ppc64-*linux*|powerpc64-*linux*)
5593           LD="${LD-ld} -m elf32ppclinux"
5594           ;;
5595         s390x-*linux*)
5596           LD="${LD-ld} -m elf_s390"
5597           ;;
5598         sparc64-*linux*)
5599           LD="${LD-ld} -m elf32_sparc"
5600           ;;
5601       esac
5602       ;;
5603     *64-bit*)
5604       case $host in
5605         x86_64-*linux*)
5606           LD="${LD-ld} -m elf_x86_64"
5607           ;;
5608         ppc*-*linux*|powerpc*-*linux*)
5609           LD="${LD-ld} -m elf64ppc"
5610           ;;
5611         s390*-*linux*)
5612           LD="${LD-ld} -m elf64_s390"
5613           ;;
5614         sparc*-*linux*)
5615           LD="${LD-ld} -m elf64_sparc"
5616           ;;
5617       esac
5618       ;;
5619     esac
5620   fi
5621   rm -rf conftest*
5622   ;;
5623
5624 *-*-sco3.2v5*)
5625   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5626   SAVE_CFLAGS="$CFLAGS"
5627   CFLAGS="$CFLAGS -belf"
5628   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5629 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5630 if test "${lt_cv_cc_needs_belf+set}" = set; then
5631   echo $ECHO_N "(cached) $ECHO_C" >&6
5632 else
5633   ac_ext=c
5634 ac_cpp='$CPP $CPPFLAGS'
5635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5638
5639      cat >conftest.$ac_ext <<_ACEOF
5640 /* confdefs.h.  */
5641 _ACEOF
5642 cat confdefs.h >>conftest.$ac_ext
5643 cat >>conftest.$ac_ext <<_ACEOF
5644 /* end confdefs.h.  */
5645
5646 int
5647 main ()
5648 {
5649
5650   ;
5651   return 0;
5652 }
5653 _ACEOF
5654 rm -f conftest.$ac_objext conftest$ac_exeext
5655 if { (ac_try="$ac_link"
5656 case "(($ac_try" in
5657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5658   *) ac_try_echo=$ac_try;;
5659 esac
5660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5661   (eval "$ac_link") 2>conftest.er1
5662   ac_status=$?
5663   grep -v '^ *+' conftest.er1 >conftest.err
5664   rm -f conftest.er1
5665   cat conftest.err >&5
5666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667   (exit $ac_status); } && {
5668          test -z "$ac_c_werror_flag" ||
5669          test ! -s conftest.err
5670        } && test -s conftest$ac_exeext &&
5671        $as_test_x conftest$ac_exeext; then
5672   lt_cv_cc_needs_belf=yes
5673 else
5674   echo "$as_me: failed program was:" >&5
5675 sed 's/^/| /' conftest.$ac_ext >&5
5676
5677         lt_cv_cc_needs_belf=no
5678 fi
5679
5680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5681       conftest$ac_exeext conftest.$ac_ext
5682      ac_ext=c
5683 ac_cpp='$CPP $CPPFLAGS'
5684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5687
5688 fi
5689 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5690 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5691   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5692     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5693     CFLAGS="$SAVE_CFLAGS"
5694   fi
5695   ;;
5696 sparc*-*solaris*)
5697   # Find out which ABI we are using.
5698   echo 'int i;' > conftest.$ac_ext
5699   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5700   (eval $ac_compile) 2>&5
5701   ac_status=$?
5702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703   (exit $ac_status); }; then
5704     case `/usr/bin/file conftest.o` in
5705     *64-bit*)
5706       case $lt_cv_prog_gnu_ld in
5707       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5708       *)    LD="${LD-ld} -64" ;;
5709       esac
5710       ;;
5711     esac
5712   fi
5713   rm -rf conftest*
5714   ;;
5715
5716
5717 esac
5718
5719 need_locks="$enable_libtool_lock"
5720
5721
5722
5723 for ac_header in dlfcn.h
5724 do
5725 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5727   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5730   echo $ECHO_N "(cached) $ECHO_C" >&6
5731 fi
5732 ac_res=`eval echo '${'$as_ac_Header'}'`
5733                { echo "$as_me:$LINENO: result: $ac_res" >&5
5734 echo "${ECHO_T}$ac_res" >&6; }
5735 else
5736   # Is the header compilable?
5737 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5738 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5739 cat >conftest.$ac_ext <<_ACEOF
5740 /* confdefs.h.  */
5741 _ACEOF
5742 cat confdefs.h >>conftest.$ac_ext
5743 cat >>conftest.$ac_ext <<_ACEOF
5744 /* end confdefs.h.  */
5745 $ac_includes_default
5746 #include <$ac_header>
5747 _ACEOF
5748 rm -f conftest.$ac_objext
5749 if { (ac_try="$ac_compile"
5750 case "(($ac_try" in
5751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5752   *) ac_try_echo=$ac_try;;
5753 esac
5754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5755   (eval "$ac_compile") 2>conftest.er1
5756   ac_status=$?
5757   grep -v '^ *+' conftest.er1 >conftest.err
5758   rm -f conftest.er1
5759   cat conftest.err >&5
5760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761   (exit $ac_status); } && {
5762          test -z "$ac_c_werror_flag" ||
5763          test ! -s conftest.err
5764        } && test -s conftest.$ac_objext; then
5765   ac_header_compiler=yes
5766 else
5767   echo "$as_me: failed program was:" >&5
5768 sed 's/^/| /' conftest.$ac_ext >&5
5769
5770         ac_header_compiler=no
5771 fi
5772
5773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5774 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5775 echo "${ECHO_T}$ac_header_compiler" >&6; }
5776
5777 # Is the header present?
5778 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5779 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5780 cat >conftest.$ac_ext <<_ACEOF
5781 /* confdefs.h.  */
5782 _ACEOF
5783 cat confdefs.h >>conftest.$ac_ext
5784 cat >>conftest.$ac_ext <<_ACEOF
5785 /* end confdefs.h.  */
5786 #include <$ac_header>
5787 _ACEOF
5788 if { (ac_try="$ac_cpp conftest.$ac_ext"
5789 case "(($ac_try" in
5790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5791   *) ac_try_echo=$ac_try;;
5792 esac
5793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5794   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5795   ac_status=$?
5796   grep -v '^ *+' conftest.er1 >conftest.err
5797   rm -f conftest.er1
5798   cat conftest.err >&5
5799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800   (exit $ac_status); } >/dev/null && {
5801          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5802          test ! -s conftest.err
5803        }; then
5804   ac_header_preproc=yes
5805 else
5806   echo "$as_me: failed program was:" >&5
5807 sed 's/^/| /' conftest.$ac_ext >&5
5808
5809   ac_header_preproc=no
5810 fi
5811
5812 rm -f conftest.err conftest.$ac_ext
5813 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5814 echo "${ECHO_T}$ac_header_preproc" >&6; }
5815
5816 # So?  What about this header?
5817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5818   yes:no: )
5819     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5820 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5821     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5822 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5823     ac_header_preproc=yes
5824     ;;
5825   no:yes:* )
5826     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5827 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5828     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5829 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5830     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5831 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5832     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5833 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5834     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5835 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5836     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5837 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5838
5839     ;;
5840 esac
5841 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5844   echo $ECHO_N "(cached) $ECHO_C" >&6
5845 else
5846   eval "$as_ac_Header=\$ac_header_preproc"
5847 fi
5848 ac_res=`eval echo '${'$as_ac_Header'}'`
5849                { echo "$as_me:$LINENO: result: $ac_res" >&5
5850 echo "${ECHO_T}$ac_res" >&6; }
5851
5852 fi
5853 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5854   cat >>confdefs.h <<_ACEOF
5855 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5856 _ACEOF
5857
5858 fi
5859
5860 done
5861
5862
5863
5864 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5865     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5866     (test "X$CXX" != "Xg++"))) ; then
5867   ac_ext=cpp
5868 ac_cpp='$CXXCPP $CPPFLAGS'
5869 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5870 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5871 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5872 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5873 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5874 if test -z "$CXXCPP"; then
5875   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5876   echo $ECHO_N "(cached) $ECHO_C" >&6
5877 else
5878       # Double quotes because CXXCPP needs to be expanded
5879     for CXXCPP in "$CXX -E" "/lib/cpp"
5880     do
5881       ac_preproc_ok=false
5882 for ac_cxx_preproc_warn_flag in '' yes
5883 do
5884   # Use a header file that comes with gcc, so configuring glibc
5885   # with a fresh cross-compiler works.
5886   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5887   # <limits.h> exists even on freestanding compilers.
5888   # On the NeXT, cc -E runs the code through the compiler's parser,
5889   # not just through cpp. "Syntax error" is here to catch this case.
5890   cat >conftest.$ac_ext <<_ACEOF
5891 /* confdefs.h.  */
5892 _ACEOF
5893 cat confdefs.h >>conftest.$ac_ext
5894 cat >>conftest.$ac_ext <<_ACEOF
5895 /* end confdefs.h.  */
5896 #ifdef __STDC__
5897 # include <limits.h>
5898 #else
5899 # include <assert.h>
5900 #endif
5901                      Syntax error
5902 _ACEOF
5903 if { (ac_try="$ac_cpp conftest.$ac_ext"
5904 case "(($ac_try" in
5905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5906   *) ac_try_echo=$ac_try;;
5907 esac
5908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5909   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5910   ac_status=$?
5911   grep -v '^ *+' conftest.er1 >conftest.err
5912   rm -f conftest.er1
5913   cat conftest.err >&5
5914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915   (exit $ac_status); } >/dev/null && {
5916          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5917          test ! -s conftest.err
5918        }; then
5919   :
5920 else
5921   echo "$as_me: failed program was:" >&5
5922 sed 's/^/| /' conftest.$ac_ext >&5
5923
5924   # Broken: fails on valid input.
5925 continue
5926 fi
5927
5928 rm -f conftest.err conftest.$ac_ext
5929
5930   # OK, works on sane cases.  Now check whether nonexistent headers
5931   # can be detected and how.
5932   cat >conftest.$ac_ext <<_ACEOF
5933 /* confdefs.h.  */
5934 _ACEOF
5935 cat confdefs.h >>conftest.$ac_ext
5936 cat >>conftest.$ac_ext <<_ACEOF
5937 /* end confdefs.h.  */
5938 #include <ac_nonexistent.h>
5939 _ACEOF
5940 if { (ac_try="$ac_cpp conftest.$ac_ext"
5941 case "(($ac_try" in
5942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5943   *) ac_try_echo=$ac_try;;
5944 esac
5945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5946   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5947   ac_status=$?
5948   grep -v '^ *+' conftest.er1 >conftest.err
5949   rm -f conftest.er1
5950   cat conftest.err >&5
5951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952   (exit $ac_status); } >/dev/null && {
5953          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5954          test ! -s conftest.err
5955        }; then
5956   # Broken: success on invalid input.
5957 continue
5958 else
5959   echo "$as_me: failed program was:" >&5
5960 sed 's/^/| /' conftest.$ac_ext >&5
5961
5962   # Passes both tests.
5963 ac_preproc_ok=:
5964 break
5965 fi
5966
5967 rm -f conftest.err conftest.$ac_ext
5968
5969 done
5970 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5971 rm -f conftest.err conftest.$ac_ext
5972 if $ac_preproc_ok; then
5973   break
5974 fi
5975
5976     done
5977     ac_cv_prog_CXXCPP=$CXXCPP
5978
5979 fi
5980   CXXCPP=$ac_cv_prog_CXXCPP
5981 else
5982   ac_cv_prog_CXXCPP=$CXXCPP
5983 fi
5984 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5985 echo "${ECHO_T}$CXXCPP" >&6; }
5986 ac_preproc_ok=false
5987 for ac_cxx_preproc_warn_flag in '' yes
5988 do
5989   # Use a header file that comes with gcc, so configuring glibc
5990   # with a fresh cross-compiler works.
5991   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5992   # <limits.h> exists even on freestanding compilers.
5993   # On the NeXT, cc -E runs the code through the compiler's parser,
5994   # not just through cpp. "Syntax error" is here to catch this case.
5995   cat >conftest.$ac_ext <<_ACEOF
5996 /* confdefs.h.  */
5997 _ACEOF
5998 cat confdefs.h >>conftest.$ac_ext
5999 cat >>conftest.$ac_ext <<_ACEOF
6000 /* end confdefs.h.  */
6001 #ifdef __STDC__
6002 # include <limits.h>
6003 #else
6004 # include <assert.h>
6005 #endif
6006                      Syntax error
6007 _ACEOF
6008 if { (ac_try="$ac_cpp conftest.$ac_ext"
6009 case "(($ac_try" in
6010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6011   *) ac_try_echo=$ac_try;;
6012 esac
6013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6014   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6015   ac_status=$?
6016   grep -v '^ *+' conftest.er1 >conftest.err
6017   rm -f conftest.er1
6018   cat conftest.err >&5
6019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020   (exit $ac_status); } >/dev/null && {
6021          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6022          test ! -s conftest.err
6023        }; then
6024   :
6025 else
6026   echo "$as_me: failed program was:" >&5
6027 sed 's/^/| /' conftest.$ac_ext >&5
6028
6029   # Broken: fails on valid input.
6030 continue
6031 fi
6032
6033 rm -f conftest.err conftest.$ac_ext
6034
6035   # OK, works on sane cases.  Now check whether nonexistent headers
6036   # can be detected and how.
6037   cat >conftest.$ac_ext <<_ACEOF
6038 /* confdefs.h.  */
6039 _ACEOF
6040 cat confdefs.h >>conftest.$ac_ext
6041 cat >>conftest.$ac_ext <<_ACEOF
6042 /* end confdefs.h.  */
6043 #include <ac_nonexistent.h>
6044 _ACEOF
6045 if { (ac_try="$ac_cpp conftest.$ac_ext"
6046 case "(($ac_try" in
6047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6048   *) ac_try_echo=$ac_try;;
6049 esac
6050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6051   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6052   ac_status=$?
6053   grep -v '^ *+' conftest.er1 >conftest.err
6054   rm -f conftest.er1
6055   cat conftest.err >&5
6056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057   (exit $ac_status); } >/dev/null && {
6058          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6059          test ! -s conftest.err
6060        }; then
6061   # Broken: success on invalid input.
6062 continue
6063 else
6064   echo "$as_me: failed program was:" >&5
6065 sed 's/^/| /' conftest.$ac_ext >&5
6066
6067   # Passes both tests.
6068 ac_preproc_ok=:
6069 break
6070 fi
6071
6072 rm -f conftest.err conftest.$ac_ext
6073
6074 done
6075 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6076 rm -f conftest.err conftest.$ac_ext
6077 if $ac_preproc_ok; then
6078   :
6079 else
6080   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6081 See \`config.log' for more details." >&5
6082 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6083 See \`config.log' for more details." >&2;}
6084    { (exit 1); exit 1; }; }
6085 fi
6086
6087 ac_ext=cpp
6088 ac_cpp='$CXXCPP $CPPFLAGS'
6089 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6090 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6091 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6092
6093 fi
6094
6095
6096 ac_ext=f
6097 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6098 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6099 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6100 if test -n "$ac_tool_prefix"; then
6101   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
6102   do
6103     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6104 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6107 if test "${ac_cv_prog_F77+set}" = set; then
6108   echo $ECHO_N "(cached) $ECHO_C" >&6
6109 else
6110   if test -n "$F77"; then
6111   ac_cv_prog_F77="$F77" # Let the user override the test.
6112 else
6113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6114 for as_dir in $PATH
6115 do
6116   IFS=$as_save_IFS
6117   test -z "$as_dir" && as_dir=.
6118   for ac_exec_ext in '' $ac_executable_extensions; do
6119   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6120     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6121     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6122     break 2
6123   fi
6124 done
6125 done
6126 IFS=$as_save_IFS
6127
6128 fi
6129 fi
6130 F77=$ac_cv_prog_F77
6131 if test -n "$F77"; then
6132   { echo "$as_me:$LINENO: result: $F77" >&5
6133 echo "${ECHO_T}$F77" >&6; }
6134 else
6135   { echo "$as_me:$LINENO: result: no" >&5
6136 echo "${ECHO_T}no" >&6; }
6137 fi
6138
6139
6140     test -n "$F77" && break
6141   done
6142 fi
6143 if test -z "$F77"; then
6144   ac_ct_F77=$F77
6145   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
6146 do
6147   # Extract the first word of "$ac_prog", so it can be a program name with args.
6148 set dummy $ac_prog; ac_word=$2
6149 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6151 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6152   echo $ECHO_N "(cached) $ECHO_C" >&6
6153 else
6154   if test -n "$ac_ct_F77"; then
6155   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6156 else
6157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158 for as_dir in $PATH
6159 do
6160   IFS=$as_save_IFS
6161   test -z "$as_dir" && as_dir=.
6162   for ac_exec_ext in '' $ac_executable_extensions; do
6163   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6164     ac_cv_prog_ac_ct_F77="$ac_prog"
6165     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6166     break 2
6167   fi
6168 done
6169 done
6170 IFS=$as_save_IFS
6171
6172 fi
6173 fi
6174 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6175 if test -n "$ac_ct_F77"; then
6176   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6177 echo "${ECHO_T}$ac_ct_F77" >&6; }
6178 else
6179   { echo "$as_me:$LINENO: result: no" >&5
6180 echo "${ECHO_T}no" >&6; }
6181 fi
6182
6183
6184   test -n "$ac_ct_F77" && break
6185 done
6186
6187   if test "x$ac_ct_F77" = x; then
6188     F77=""
6189   else
6190     case $cross_compiling:$ac_tool_warned in
6191 yes:)
6192 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6193 whose name does not start with the host triplet.  If you think this
6194 configuration is useful to you, please write to autoconf@gnu.org." >&5
6195 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6196 whose name does not start with the host triplet.  If you think this
6197 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6198 ac_tool_warned=yes ;;
6199 esac
6200     F77=$ac_ct_F77
6201   fi
6202 fi
6203
6204
6205 # Provide some information about the compiler.
6206 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6207 ac_compiler=`set X $ac_compile; echo $2`
6208 { (ac_try="$ac_compiler --version >&5"
6209 case "(($ac_try" in
6210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6211   *) ac_try_echo=$ac_try;;
6212 esac
6213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6214   (eval "$ac_compiler --version >&5") 2>&5
6215   ac_status=$?
6216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217   (exit $ac_status); }
6218 { (ac_try="$ac_compiler -v >&5"
6219 case "(($ac_try" in
6220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6221   *) ac_try_echo=$ac_try;;
6222 esac
6223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6224   (eval "$ac_compiler -v >&5") 2>&5
6225   ac_status=$?
6226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227   (exit $ac_status); }
6228 { (ac_try="$ac_compiler -V >&5"
6229 case "(($ac_try" in
6230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6231   *) ac_try_echo=$ac_try;;
6232 esac
6233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6234   (eval "$ac_compiler -V >&5") 2>&5
6235   ac_status=$?
6236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237   (exit $ac_status); }
6238 rm -f a.out
6239
6240 # If we don't use `.F' as extension, the preprocessor is not run on the
6241 # input file.  (Note that this only needs to work for GNU compilers.)
6242 ac_save_ext=$ac_ext
6243 ac_ext=F
6244 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6245 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6246 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6247   echo $ECHO_N "(cached) $ECHO_C" >&6
6248 else
6249   cat >conftest.$ac_ext <<_ACEOF
6250       program main
6251 #ifndef __GNUC__
6252        choke me
6253 #endif
6254
6255       end
6256 _ACEOF
6257 rm -f conftest.$ac_objext
6258 if { (ac_try="$ac_compile"
6259 case "(($ac_try" in
6260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6261   *) ac_try_echo=$ac_try;;
6262 esac
6263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6264   (eval "$ac_compile") 2>conftest.er1
6265   ac_status=$?
6266   grep -v '^ *+' conftest.er1 >conftest.err
6267   rm -f conftest.er1
6268   cat conftest.err >&5
6269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270   (exit $ac_status); } && {
6271          test -z "$ac_f77_werror_flag" ||
6272          test ! -s conftest.err
6273        } && test -s conftest.$ac_objext; then
6274   ac_compiler_gnu=yes
6275 else
6276   echo "$as_me: failed program was:" >&5
6277 sed 's/^/| /' conftest.$ac_ext >&5
6278
6279         ac_compiler_gnu=no
6280 fi
6281
6282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6283 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6284
6285 fi
6286 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6287 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6288 ac_ext=$ac_save_ext
6289 ac_test_FFLAGS=${FFLAGS+set}
6290 ac_save_FFLAGS=$FFLAGS
6291 FFLAGS=
6292 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6293 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6294 if test "${ac_cv_prog_f77_g+set}" = set; then
6295   echo $ECHO_N "(cached) $ECHO_C" >&6
6296 else
6297   FFLAGS=-g
6298 cat >conftest.$ac_ext <<_ACEOF
6299       program main
6300
6301       end
6302 _ACEOF
6303 rm -f conftest.$ac_objext
6304 if { (ac_try="$ac_compile"
6305 case "(($ac_try" in
6306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6307   *) ac_try_echo=$ac_try;;
6308 esac
6309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6310   (eval "$ac_compile") 2>conftest.er1
6311   ac_status=$?
6312   grep -v '^ *+' conftest.er1 >conftest.err
6313   rm -f conftest.er1
6314   cat conftest.err >&5
6315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316   (exit $ac_status); } && {
6317          test -z "$ac_f77_werror_flag" ||
6318          test ! -s conftest.err
6319        } && test -s conftest.$ac_objext; then
6320   ac_cv_prog_f77_g=yes
6321 else
6322   echo "$as_me: failed program was:" >&5
6323 sed 's/^/| /' conftest.$ac_ext >&5
6324
6325         ac_cv_prog_f77_g=no
6326 fi
6327
6328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6329
6330 fi
6331 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6332 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6333 if test "$ac_test_FFLAGS" = set; then
6334   FFLAGS=$ac_save_FFLAGS
6335 elif test $ac_cv_prog_f77_g = yes; then
6336   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6337     FFLAGS="-g -O2"
6338   else
6339     FFLAGS="-g"
6340   fi
6341 else
6342   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6343     FFLAGS="-O2"
6344   else
6345     FFLAGS=
6346   fi
6347 fi
6348
6349 G77=`test $ac_compiler_gnu = yes && echo yes`
6350 ac_ext=c
6351 ac_cpp='$CPP $CPPFLAGS'
6352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6355
6356
6357
6358 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6359
6360 # find the maximum length of command line arguments
6361 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6362 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6363 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6364   echo $ECHO_N "(cached) $ECHO_C" >&6
6365 else
6366     i=0
6367   teststring="ABCD"
6368
6369   case $build_os in
6370   msdosdjgpp*)
6371     # On DJGPP, this test can blow up pretty badly due to problems in libc
6372     # (any single argument exceeding 2000 bytes causes a buffer overrun
6373     # during glob expansion).  Even if it were fixed, the result of this
6374     # check would be larger than it should be.
6375     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6376     ;;
6377
6378   gnu*)
6379     # Under GNU Hurd, this test is not required because there is
6380     # no limit to the length of command line arguments.
6381     # Libtool will interpret -1 as no limit whatsoever
6382     lt_cv_sys_max_cmd_len=-1;
6383     ;;
6384
6385   cygwin* | mingw*)
6386     # On Win9x/ME, this test blows up -- it succeeds, but takes
6387     # about 5 minutes as the teststring grows exponentially.
6388     # Worse, since 9x/ME are not pre-emptively multitasking,
6389     # you end up with a "frozen" computer, even though with patience
6390     # the test eventually succeeds (with a max line length of 256k).
6391     # Instead, let's just punt: use the minimum linelength reported by
6392     # all of the supported platforms: 8192 (on NT/2K/XP).
6393     lt_cv_sys_max_cmd_len=8192;
6394     ;;
6395
6396   amigaos*)
6397     # On AmigaOS with pdksh, this test takes hours, literally.
6398     # So we just punt and use a minimum line length of 8192.
6399     lt_cv_sys_max_cmd_len=8192;
6400     ;;
6401
6402   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6403     # This has been around since 386BSD, at least.  Likely further.
6404     if test -x /sbin/sysctl; then
6405       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6406     elif test -x /usr/sbin/sysctl; then
6407       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6408     else
6409       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6410     fi
6411     # And add a safety zone
6412     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6413     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6414     ;;
6415
6416   interix*)
6417     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6418     lt_cv_sys_max_cmd_len=196608
6419     ;;
6420
6421   osf*)
6422     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6423     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6424     # nice to cause kernel panics so lets avoid the loop below.
6425     # First set a reasonable default.
6426     lt_cv_sys_max_cmd_len=16384
6427     #
6428     if test -x /sbin/sysconfig; then
6429       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6430         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6431       esac
6432     fi
6433     ;;
6434   sco3.2v5*)
6435     lt_cv_sys_max_cmd_len=102400
6436     ;;
6437   sysv5* | sco5v6* | sysv4.2uw2*)
6438     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6439     if test -n "$kargmax"; then
6440       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6441     else
6442       lt_cv_sys_max_cmd_len=32768
6443     fi
6444     ;;
6445   *)
6446     # If test is not a shell built-in, we'll probably end up computing a
6447     # maximum length that is only half of the actual maximum length, but
6448     # we can't tell.
6449     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6450     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6451                = "XX$teststring") >/dev/null 2>&1 &&
6452             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6453             lt_cv_sys_max_cmd_len=$new_result &&
6454             test $i != 17 # 1/2 MB should be enough
6455     do
6456       i=`expr $i + 1`
6457       teststring=$teststring$teststring
6458     done
6459     teststring=
6460     # Add a significant safety factor because C++ compilers can tack on massive
6461     # amounts of additional arguments before passing them to the linker.
6462     # It appears as though 1/2 is a usable value.
6463     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6464     ;;
6465   esac
6466
6467 fi
6468
6469 if test -n $lt_cv_sys_max_cmd_len ; then
6470   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6471 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6472 else
6473   { echo "$as_me:$LINENO: result: none" >&5
6474 echo "${ECHO_T}none" >&6; }
6475 fi
6476
6477
6478
6479
6480 # Check for command to grab the raw symbol name followed by C symbol from nm.
6481 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6482 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6483 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6484   echo $ECHO_N "(cached) $ECHO_C" >&6
6485 else
6486
6487 # These are sane defaults that work on at least a few old systems.
6488 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6489
6490 # Character class describing NM global symbol codes.
6491 symcode='[BCDEGRST]'
6492
6493 # Regexp to match symbols that can be accessed directly from C.
6494 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6495
6496 # Transform an extracted symbol line into a proper C declaration
6497 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6498
6499 # Transform an extracted symbol line into symbol name and symbol address
6500 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'"
6501
6502 # Define system-specific variables.
6503 case $host_os in
6504 aix*)
6505   symcode='[BCDT]'
6506   ;;
6507 cygwin* | mingw* | pw32*)
6508   symcode='[ABCDGISTW]'
6509   ;;
6510 hpux*) # Its linker distinguishes data from code symbols
6511   if test "$host_cpu" = ia64; then
6512     symcode='[ABCDEGRST]'
6513   fi
6514   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6515   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'"
6516   ;;
6517 linux*)
6518   if test "$host_cpu" = ia64; then
6519     symcode='[ABCDGIRSTW]'
6520     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6521     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'"
6522   fi
6523   ;;
6524 irix* | nonstopux*)
6525   symcode='[BCDEGRST]'
6526   ;;
6527 osf*)
6528   symcode='[BCDEGQRST]'
6529   ;;
6530 solaris*)
6531   symcode='[BDRT]'
6532   ;;
6533 sco3.2v5*)
6534   symcode='[DT]'
6535   ;;
6536 sysv4.2uw2*)
6537   symcode='[DT]'
6538   ;;
6539 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6540   symcode='[ABDT]'
6541   ;;
6542 sysv4)
6543   symcode='[DFNSTU]'
6544   ;;
6545 esac
6546
6547 # Handle CRLF in mingw tool chain
6548 opt_cr=
6549 case $build_os in
6550 mingw*)
6551   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6552   ;;
6553 esac
6554
6555 # If we're using GNU nm, then use its standard symbol codes.
6556 case `$NM -V 2>&1` in
6557 *GNU* | *'with BFD'*)
6558   symcode='[ABCDGIRSTW]' ;;
6559 esac
6560
6561 # Try without a prefix undercore, then with it.
6562 for ac_symprfx in "" "_"; do
6563
6564   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6565   symxfrm="\\1 $ac_symprfx\\2 \\2"
6566
6567   # Write the raw and C identifiers.
6568   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6569
6570   # Check to see that the pipe works correctly.
6571   pipe_works=no
6572
6573   rm -f conftest*
6574   cat > conftest.$ac_ext <<EOF
6575 #ifdef __cplusplus
6576 extern "C" {
6577 #endif
6578 char nm_test_var;
6579 void nm_test_func(){}
6580 #ifdef __cplusplus
6581 }
6582 #endif
6583 int main(){nm_test_var='a';nm_test_func();return(0);}
6584 EOF
6585
6586   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6587   (eval $ac_compile) 2>&5
6588   ac_status=$?
6589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590   (exit $ac_status); }; then
6591     # Now try to grab the symbols.
6592     nlist=conftest.nm
6593     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6594   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6595   ac_status=$?
6596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597   (exit $ac_status); } && test -s "$nlist"; then
6598       # Try sorting and uniquifying the output.
6599       if sort "$nlist" | uniq > "$nlist"T; then
6600         mv -f "$nlist"T "$nlist"
6601       else
6602         rm -f "$nlist"T
6603       fi
6604
6605       # Make sure that we snagged all the symbols we need.
6606       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6607         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6608           cat <<EOF > conftest.$ac_ext
6609 #ifdef __cplusplus
6610 extern "C" {
6611 #endif
6612
6613 EOF
6614           # Now generate the symbol file.
6615           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6616
6617           cat <<EOF >> conftest.$ac_ext
6618 #if defined (__STDC__) && __STDC__
6619 # define lt_ptr_t void *
6620 #else
6621 # define lt_ptr_t char *
6622 # define const
6623 #endif
6624
6625 /* The mapping between symbol names and symbols. */
6626 const struct {
6627   const char *name;
6628   lt_ptr_t address;
6629 }
6630 lt_preloaded_symbols[] =
6631 {
6632 EOF
6633           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6634           cat <<\EOF >> conftest.$ac_ext
6635   {0, (lt_ptr_t) 0}
6636 };
6637
6638 #ifdef __cplusplus
6639 }
6640 #endif
6641 EOF
6642           # Now try linking the two files.
6643           mv conftest.$ac_objext conftstm.$ac_objext
6644           lt_save_LIBS="$LIBS"
6645           lt_save_CFLAGS="$CFLAGS"
6646           LIBS="conftstm.$ac_objext"
6647           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6648           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6649   (eval $ac_link) 2>&5
6650   ac_status=$?
6651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6653             pipe_works=yes
6654           fi
6655           LIBS="$lt_save_LIBS"
6656           CFLAGS="$lt_save_CFLAGS"
6657         else
6658           echo "cannot find nm_test_func in $nlist" >&5
6659         fi
6660       else
6661         echo "cannot find nm_test_var in $nlist" >&5
6662       fi
6663     else
6664       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6665     fi
6666   else
6667     echo "$progname: failed program was:" >&5
6668     cat conftest.$ac_ext >&5
6669   fi
6670   rm -f conftest* conftst*
6671
6672   # Do not use the global_symbol_pipe unless it works.
6673   if test "$pipe_works" = yes; then
6674     break
6675   else
6676     lt_cv_sys_global_symbol_pipe=
6677   fi
6678 done
6679
6680 fi
6681
6682 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6683   lt_cv_sys_global_symbol_to_cdecl=
6684 fi
6685 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6686   { echo "$as_me:$LINENO: result: failed" >&5
6687 echo "${ECHO_T}failed" >&6; }
6688 else
6689   { echo "$as_me:$LINENO: result: ok" >&5
6690 echo "${ECHO_T}ok" >&6; }
6691 fi
6692
6693 { echo "$as_me:$LINENO: checking for objdir" >&5
6694 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6695 if test "${lt_cv_objdir+set}" = set; then
6696   echo $ECHO_N "(cached) $ECHO_C" >&6
6697 else
6698   rm -f .libs 2>/dev/null
6699 mkdir .libs 2>/dev/null
6700 if test -d .libs; then
6701   lt_cv_objdir=.libs
6702 else
6703   # MS-DOS does not allow filenames that begin with a dot.
6704   lt_cv_objdir=_libs
6705 fi
6706 rmdir .libs 2>/dev/null
6707 fi
6708 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6709 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6710 objdir=$lt_cv_objdir
6711
6712
6713
6714
6715
6716 case $host_os in
6717 aix3*)
6718   # AIX sometimes has problems with the GCC collect2 program.  For some
6719   # reason, if we set the COLLECT_NAMES environment variable, the problems
6720   # vanish in a puff of smoke.
6721   if test "X${COLLECT_NAMES+set}" != Xset; then
6722     COLLECT_NAMES=
6723     export COLLECT_NAMES
6724   fi
6725   ;;
6726 esac
6727
6728 # Sed substitution that helps us do robust quoting.  It backslashifies
6729 # metacharacters that are still active within double-quoted strings.
6730 Xsed='sed -e 1s/^X//'
6731 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6732
6733 # Same as above, but do not quote variable references.
6734 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6735
6736 # Sed substitution to delay expansion of an escaped shell variable in a
6737 # double_quote_subst'ed string.
6738 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6739
6740 # Sed substitution to avoid accidental globbing in evaled expressions
6741 no_glob_subst='s/\*/\\\*/g'
6742
6743 # Constants:
6744 rm="rm -f"
6745
6746 # Global variables:
6747 default_ofile=libtool
6748 can_build_shared=yes
6749
6750 # All known linkers require a `.a' archive for static linking (except MSVC,
6751 # which needs '.lib').
6752 libext=a
6753 ltmain="$ac_aux_dir/ltmain.sh"
6754 ofile="$default_ofile"
6755 with_gnu_ld="$lt_cv_prog_gnu_ld"
6756
6757 if test -n "$ac_tool_prefix"; then
6758   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6759 set dummy ${ac_tool_prefix}ar; ac_word=$2
6760 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6762 if test "${ac_cv_prog_AR+set}" = set; then
6763   echo $ECHO_N "(cached) $ECHO_C" >&6
6764 else
6765   if test -n "$AR"; then
6766   ac_cv_prog_AR="$AR" # Let the user override the test.
6767 else
6768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6769 for as_dir in $PATH
6770 do
6771   IFS=$as_save_IFS
6772   test -z "$as_dir" && as_dir=.
6773   for ac_exec_ext in '' $ac_executable_extensions; do
6774   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6775     ac_cv_prog_AR="${ac_tool_prefix}ar"
6776     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6777     break 2
6778   fi
6779 done
6780 done
6781 IFS=$as_save_IFS
6782
6783 fi
6784 fi
6785 AR=$ac_cv_prog_AR
6786 if test -n "$AR"; then
6787   { echo "$as_me:$LINENO: result: $AR" >&5
6788 echo "${ECHO_T}$AR" >&6; }
6789 else
6790   { echo "$as_me:$LINENO: result: no" >&5
6791 echo "${ECHO_T}no" >&6; }
6792 fi
6793
6794
6795 fi
6796 if test -z "$ac_cv_prog_AR"; then
6797   ac_ct_AR=$AR
6798   # Extract the first word of "ar", so it can be a program name with args.
6799 set dummy ar; ac_word=$2
6800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6802 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6803   echo $ECHO_N "(cached) $ECHO_C" >&6
6804 else
6805   if test -n "$ac_ct_AR"; then
6806   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6807 else
6808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6809 for as_dir in $PATH
6810 do
6811   IFS=$as_save_IFS
6812   test -z "$as_dir" && as_dir=.
6813   for ac_exec_ext in '' $ac_executable_extensions; do
6814   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6815     ac_cv_prog_ac_ct_AR="ar"
6816     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6817     break 2
6818   fi
6819 done
6820 done
6821 IFS=$as_save_IFS
6822
6823 fi
6824 fi
6825 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6826 if test -n "$ac_ct_AR"; then
6827   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6828 echo "${ECHO_T}$ac_ct_AR" >&6; }
6829 else
6830   { echo "$as_me:$LINENO: result: no" >&5
6831 echo "${ECHO_T}no" >&6; }
6832 fi
6833
6834   if test "x$ac_ct_AR" = x; then
6835     AR="false"
6836   else
6837     case $cross_compiling:$ac_tool_warned in
6838 yes:)
6839 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6840 whose name does not start with the host triplet.  If you think this
6841 configuration is useful to you, please write to autoconf@gnu.org." >&5
6842 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6843 whose name does not start with the host triplet.  If you think this
6844 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6845 ac_tool_warned=yes ;;
6846 esac
6847     AR=$ac_ct_AR
6848   fi
6849 else
6850   AR="$ac_cv_prog_AR"
6851 fi
6852
6853 if test -n "$ac_tool_prefix"; then
6854   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6855 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6858 if test "${ac_cv_prog_RANLIB+set}" = set; then
6859   echo $ECHO_N "(cached) $ECHO_C" >&6
6860 else
6861   if test -n "$RANLIB"; then
6862   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6863 else
6864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6865 for as_dir in $PATH
6866 do
6867   IFS=$as_save_IFS
6868   test -z "$as_dir" && as_dir=.
6869   for ac_exec_ext in '' $ac_executable_extensions; do
6870   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6871     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6872     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6873     break 2
6874   fi
6875 done
6876 done
6877 IFS=$as_save_IFS
6878
6879 fi
6880 fi
6881 RANLIB=$ac_cv_prog_RANLIB
6882 if test -n "$RANLIB"; then
6883   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6884 echo "${ECHO_T}$RANLIB" >&6; }
6885 else
6886   { echo "$as_me:$LINENO: result: no" >&5
6887 echo "${ECHO_T}no" >&6; }
6888 fi
6889
6890
6891 fi
6892 if test -z "$ac_cv_prog_RANLIB"; then
6893   ac_ct_RANLIB=$RANLIB
6894   # Extract the first word of "ranlib", so it can be a program name with args.
6895 set dummy ranlib; ac_word=$2
6896 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6898 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6899   echo $ECHO_N "(cached) $ECHO_C" >&6
6900 else
6901   if test -n "$ac_ct_RANLIB"; then
6902   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6903 else
6904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6905 for as_dir in $PATH
6906 do
6907   IFS=$as_save_IFS
6908   test -z "$as_dir" && as_dir=.
6909   for ac_exec_ext in '' $ac_executable_extensions; do
6910   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6911     ac_cv_prog_ac_ct_RANLIB="ranlib"
6912     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6913     break 2
6914   fi
6915 done
6916 done
6917 IFS=$as_save_IFS
6918
6919 fi
6920 fi
6921 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6922 if test -n "$ac_ct_RANLIB"; then
6923   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6924 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6925 else
6926   { echo "$as_me:$LINENO: result: no" >&5
6927 echo "${ECHO_T}no" >&6; }
6928 fi
6929
6930   if test "x$ac_ct_RANLIB" = x; then
6931     RANLIB=":"
6932   else
6933     case $cross_compiling:$ac_tool_warned in
6934 yes:)
6935 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6936 whose name does not start with the host triplet.  If you think this
6937 configuration is useful to you, please write to autoconf@gnu.org." >&5
6938 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6939 whose name does not start with the host triplet.  If you think this
6940 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6941 ac_tool_warned=yes ;;
6942 esac
6943     RANLIB=$ac_ct_RANLIB
6944   fi
6945 else
6946   RANLIB="$ac_cv_prog_RANLIB"
6947 fi
6948
6949 if test -n "$ac_tool_prefix"; then
6950   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6951 set dummy ${ac_tool_prefix}strip; ac_word=$2
6952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6954 if test "${ac_cv_prog_STRIP+set}" = set; then
6955   echo $ECHO_N "(cached) $ECHO_C" >&6
6956 else
6957   if test -n "$STRIP"; then
6958   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6959 else
6960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6961 for as_dir in $PATH
6962 do
6963   IFS=$as_save_IFS
6964   test -z "$as_dir" && as_dir=.
6965   for ac_exec_ext in '' $ac_executable_extensions; do
6966   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6967     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6968     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6969     break 2
6970   fi
6971 done
6972 done
6973 IFS=$as_save_IFS
6974
6975 fi
6976 fi
6977 STRIP=$ac_cv_prog_STRIP
6978 if test -n "$STRIP"; then
6979   { echo "$as_me:$LINENO: result: $STRIP" >&5
6980 echo "${ECHO_T}$STRIP" >&6; }
6981 else
6982   { echo "$as_me:$LINENO: result: no" >&5
6983 echo "${ECHO_T}no" >&6; }
6984 fi
6985
6986
6987 fi
6988 if test -z "$ac_cv_prog_STRIP"; then
6989   ac_ct_STRIP=$STRIP
6990   # Extract the first word of "strip", so it can be a program name with args.
6991 set dummy strip; ac_word=$2
6992 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6994 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6995   echo $ECHO_N "(cached) $ECHO_C" >&6
6996 else
6997   if test -n "$ac_ct_STRIP"; then
6998   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6999 else
7000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7001 for as_dir in $PATH
7002 do
7003   IFS=$as_save_IFS
7004   test -z "$as_dir" && as_dir=.
7005   for ac_exec_ext in '' $ac_executable_extensions; do
7006   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7007     ac_cv_prog_ac_ct_STRIP="strip"
7008     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7009     break 2
7010   fi
7011 done
7012 done
7013 IFS=$as_save_IFS
7014
7015 fi
7016 fi
7017 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7018 if test -n "$ac_ct_STRIP"; then
7019   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7020 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7021 else
7022   { echo "$as_me:$LINENO: result: no" >&5
7023 echo "${ECHO_T}no" >&6; }
7024 fi
7025
7026   if test "x$ac_ct_STRIP" = x; then
7027     STRIP=":"
7028   else
7029     case $cross_compiling:$ac_tool_warned in
7030 yes:)
7031 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7032 whose name does not start with the host triplet.  If you think this
7033 configuration is useful to you, please write to autoconf@gnu.org." >&5
7034 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7035 whose name does not start with the host triplet.  If you think this
7036 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7037 ac_tool_warned=yes ;;
7038 esac
7039     STRIP=$ac_ct_STRIP
7040   fi
7041 else
7042   STRIP="$ac_cv_prog_STRIP"
7043 fi
7044
7045
7046 old_CC="$CC"
7047 old_CFLAGS="$CFLAGS"
7048
7049 # Set sane defaults for various variables
7050 test -z "$AR" && AR=ar
7051 test -z "$AR_FLAGS" && AR_FLAGS=cru
7052 test -z "$AS" && AS=as
7053 test -z "$CC" && CC=cc
7054 test -z "$LTCC" && LTCC=$CC
7055 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7056 test -z "$DLLTOOL" && DLLTOOL=dlltool
7057 test -z "$LD" && LD=ld
7058 test -z "$LN_S" && LN_S="ln -s"
7059 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7060 test -z "$NM" && NM=nm
7061 test -z "$SED" && SED=sed
7062 test -z "$OBJDUMP" && OBJDUMP=objdump
7063 test -z "$RANLIB" && RANLIB=:
7064 test -z "$STRIP" && STRIP=:
7065 test -z "$ac_objext" && ac_objext=o
7066
7067 # Determine commands to create old-style static archives.
7068 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7069 old_postinstall_cmds='chmod 644 $oldlib'
7070 old_postuninstall_cmds=
7071
7072 if test -n "$RANLIB"; then
7073   case $host_os in
7074   openbsd*)
7075     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7076     ;;
7077   *)
7078     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7079     ;;
7080   esac
7081   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7082 fi
7083
7084 for cc_temp in $compiler""; do
7085   case $cc_temp in
7086     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7087     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7088     \-*) ;;
7089     *) break;;
7090   esac
7091 done
7092 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7093
7094
7095 # Only perform the check for file, if the check method requires it
7096 case $deplibs_check_method in
7097 file_magic*)
7098   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7099     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7100 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7101 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7102   echo $ECHO_N "(cached) $ECHO_C" >&6
7103 else
7104   case $MAGIC_CMD in
7105 [\\/*] |  ?:[\\/]*)
7106   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7107   ;;
7108 *)
7109   lt_save_MAGIC_CMD="$MAGIC_CMD"
7110   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7111   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7112   for ac_dir in $ac_dummy; do
7113     IFS="$lt_save_ifs"
7114     test -z "$ac_dir" && ac_dir=.
7115     if test -f $ac_dir/${ac_tool_prefix}file; then
7116       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7117       if test -n "$file_magic_test_file"; then
7118         case $deplibs_check_method in
7119         "file_magic "*)
7120           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7121           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7122           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7123             $EGREP "$file_magic_regex" > /dev/null; then
7124             :
7125           else
7126             cat <<EOF 1>&2
7127
7128 *** Warning: the command libtool uses to detect shared libraries,
7129 *** $file_magic_cmd, produces output that libtool cannot recognize.
7130 *** The result is that libtool may fail to recognize shared libraries
7131 *** as such.  This will affect the creation of libtool libraries that
7132 *** depend on shared libraries, but programs linked with such libtool
7133 *** libraries will work regardless of this problem.  Nevertheless, you
7134 *** may want to report the problem to your system manager and/or to
7135 *** bug-libtool@gnu.org
7136
7137 EOF
7138           fi ;;
7139         esac
7140       fi
7141       break
7142     fi
7143   done
7144   IFS="$lt_save_ifs"
7145   MAGIC_CMD="$lt_save_MAGIC_CMD"
7146   ;;
7147 esac
7148 fi
7149
7150 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7151 if test -n "$MAGIC_CMD"; then
7152   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7153 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7154 else
7155   { echo "$as_me:$LINENO: result: no" >&5
7156 echo "${ECHO_T}no" >&6; }
7157 fi
7158
7159 if test -z "$lt_cv_path_MAGIC_CMD"; then
7160   if test -n "$ac_tool_prefix"; then
7161     { echo "$as_me:$LINENO: checking for file" >&5
7162 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7163 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7164   echo $ECHO_N "(cached) $ECHO_C" >&6
7165 else
7166   case $MAGIC_CMD in
7167 [\\/*] |  ?:[\\/]*)
7168   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7169   ;;
7170 *)
7171   lt_save_MAGIC_CMD="$MAGIC_CMD"
7172   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7173   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7174   for ac_dir in $ac_dummy; do
7175     IFS="$lt_save_ifs"
7176     test -z "$ac_dir" && ac_dir=.
7177     if test -f $ac_dir/file; then
7178       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7179       if test -n "$file_magic_test_file"; then
7180         case $deplibs_check_method in
7181         "file_magic "*)
7182           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7183           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7184           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7185             $EGREP "$file_magic_regex" > /dev/null; then
7186             :
7187           else
7188             cat <<EOF 1>&2
7189
7190 *** Warning: the command libtool uses to detect shared libraries,
7191 *** $file_magic_cmd, produces output that libtool cannot recognize.
7192 *** The result is that libtool may fail to recognize shared libraries
7193 *** as such.  This will affect the creation of libtool libraries that
7194 *** depend on shared libraries, but programs linked with such libtool
7195 *** libraries will work regardless of this problem.  Nevertheless, you
7196 *** may want to report the problem to your system manager and/or to
7197 *** bug-libtool@gnu.org
7198
7199 EOF
7200           fi ;;
7201         esac
7202       fi
7203       break
7204     fi
7205   done
7206   IFS="$lt_save_ifs"
7207   MAGIC_CMD="$lt_save_MAGIC_CMD"
7208   ;;
7209 esac
7210 fi
7211
7212 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7213 if test -n "$MAGIC_CMD"; then
7214   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7215 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7216 else
7217   { echo "$as_me:$LINENO: result: no" >&5
7218 echo "${ECHO_T}no" >&6; }
7219 fi
7220
7221   else
7222     MAGIC_CMD=:
7223   fi
7224 fi
7225
7226   fi
7227   ;;
7228 esac
7229
7230 enable_dlopen=yes
7231 enable_win32_dll=no
7232
7233 # Check whether --enable-libtool-lock was given.
7234 if test "${enable_libtool_lock+set}" = set; then
7235   enableval=$enable_libtool_lock;
7236 fi
7237
7238 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7239
7240
7241 # Check whether --with-pic was given.
7242 if test "${with_pic+set}" = set; then
7243   withval=$with_pic; pic_mode="$withval"
7244 else
7245   pic_mode=default
7246 fi
7247
7248 test -z "$pic_mode" && pic_mode=default
7249
7250 # Use C for the default configuration in the libtool script
7251 tagname=
7252 lt_save_CC="$CC"
7253 ac_ext=c
7254 ac_cpp='$CPP $CPPFLAGS'
7255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7258
7259
7260 # Source file extension for C test sources.
7261 ac_ext=c
7262
7263 # Object file extension for compiled C test sources.
7264 objext=o
7265 objext=$objext
7266
7267 # Code to be used in simple compile tests
7268 lt_simple_compile_test_code="int some_variable = 0;\n"
7269
7270 # Code to be used in simple link tests
7271 lt_simple_link_test_code='int main(){return(0);}\n'
7272
7273
7274 # If no C compiler was specified, use CC.
7275 LTCC=${LTCC-"$CC"}
7276
7277 # If no C compiler flags were specified, use CFLAGS.
7278 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7279
7280 # Allow CC to be a program name with arguments.
7281 compiler=$CC
7282
7283
7284 # save warnings/boilerplate of simple test code
7285 ac_outfile=conftest.$ac_objext
7286 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7287 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7288 _lt_compiler_boilerplate=`cat conftest.err`
7289 $rm conftest*
7290
7291 ac_outfile=conftest.$ac_objext
7292 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7293 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7294 _lt_linker_boilerplate=`cat conftest.err`
7295 $rm conftest*
7296
7297
7298 ## CAVEAT EMPTOR:
7299 ## There is no encapsulation within the following macros, do not change
7300 ## the running order or otherwise move them around unless you know exactly
7301 ## what you are doing...
7302
7303 lt_prog_compiler_no_builtin_flag=
7304
7305 if test "$GCC" = yes; then
7306   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7307
7308
7309 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7310 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7311 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7312   echo $ECHO_N "(cached) $ECHO_C" >&6
7313 else
7314   lt_cv_prog_compiler_rtti_exceptions=no
7315   ac_outfile=conftest.$ac_objext
7316    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7317    lt_compiler_flag="-fno-rtti -fno-exceptions"
7318    # Insert the option either (1) after the last *FLAGS variable, or
7319    # (2) before a word containing "conftest.", or (3) at the end.
7320    # Note that $ac_compile itself does not contain backslashes and begins
7321    # with a dollar sign (not a hyphen), so the echo should work correctly.
7322    # The option is referenced via a variable to avoid confusing sed.
7323    lt_compile=`echo "$ac_compile" | $SED \
7324    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7325    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7326    -e 's:$: $lt_compiler_flag:'`
7327    (eval echo "\"\$as_me:7327: $lt_compile\"" >&5)
7328    (eval "$lt_compile" 2>conftest.err)
7329    ac_status=$?
7330    cat conftest.err >&5
7331    echo "$as_me:7331: \$? = $ac_status" >&5
7332    if (exit $ac_status) && test -s "$ac_outfile"; then
7333      # The compiler can only warn and ignore the option if not recognized
7334      # So say no if there are warnings other than the usual output.
7335      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7336      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7337      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7338        lt_cv_prog_compiler_rtti_exceptions=yes
7339      fi
7340    fi
7341    $rm conftest*
7342
7343 fi
7344 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7345 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7346
7347 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7348     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7349 else
7350     :
7351 fi
7352
7353 fi
7354
7355 lt_prog_compiler_wl=
7356 lt_prog_compiler_pic=
7357 lt_prog_compiler_static=
7358
7359 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7360 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7361
7362   if test "$GCC" = yes; then
7363     lt_prog_compiler_wl='-Wl,'
7364     lt_prog_compiler_static='-static'
7365
7366     case $host_os in
7367       aix*)
7368       # All AIX code is PIC.
7369       if test "$host_cpu" = ia64; then
7370         # AIX 5 now supports IA64 processor
7371         lt_prog_compiler_static='-Bstatic'
7372       fi
7373       ;;
7374
7375     amigaos*)
7376       # FIXME: we need at least 68020 code to build shared libraries, but
7377       # adding the `-m68020' flag to GCC prevents building anything better,
7378       # like `-m68040'.
7379       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7380       ;;
7381
7382     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7383       # PIC is the default for these OSes.
7384       ;;
7385
7386     mingw* | pw32* | os2*)
7387       # This hack is so that the source file can tell whether it is being
7388       # built for inclusion in a dll (and should export symbols for example).
7389       lt_prog_compiler_pic='-DDLL_EXPORT'
7390       ;;
7391
7392     darwin* | rhapsody*)
7393       # PIC is the default on this platform
7394       # Common symbols not allowed in MH_DYLIB files
7395       lt_prog_compiler_pic='-fno-common'
7396       ;;
7397
7398     interix3*)
7399       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7400       # Instead, we relocate shared libraries at runtime.
7401       ;;
7402
7403     msdosdjgpp*)
7404       # Just because we use GCC doesn't mean we suddenly get shared libraries
7405       # on systems that don't support them.
7406       lt_prog_compiler_can_build_shared=no
7407       enable_shared=no
7408       ;;
7409
7410     sysv4*MP*)
7411       if test -d /usr/nec; then
7412         lt_prog_compiler_pic=-Kconform_pic
7413       fi
7414       ;;
7415
7416     hpux*)
7417       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7418       # not for PA HP-UX.
7419       case $host_cpu in
7420       hppa*64*|ia64*)
7421         # +Z the default
7422         ;;
7423       *)
7424         lt_prog_compiler_pic='-fPIC'
7425         ;;
7426       esac
7427       ;;
7428
7429     *)
7430       lt_prog_compiler_pic='-fPIC'
7431       ;;
7432     esac
7433   else
7434     # PORTME Check for flag to pass linker flags through the system compiler.
7435     case $host_os in
7436     aix*)
7437       lt_prog_compiler_wl='-Wl,'
7438       if test "$host_cpu" = ia64; then
7439         # AIX 5 now supports IA64 processor
7440         lt_prog_compiler_static='-Bstatic'
7441       else
7442         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7443       fi
7444       ;;
7445       darwin*)
7446         # PIC is the default on this platform
7447         # Common symbols not allowed in MH_DYLIB files
7448        case $cc_basename in
7449          xlc*)
7450          lt_prog_compiler_pic='-qnocommon'
7451          lt_prog_compiler_wl='-Wl,'
7452          ;;
7453        esac
7454        ;;
7455
7456     mingw* | pw32* | os2*)
7457       # This hack is so that the source file can tell whether it is being
7458       # built for inclusion in a dll (and should export symbols for example).
7459       lt_prog_compiler_pic='-DDLL_EXPORT'
7460       ;;
7461
7462     hpux9* | hpux10* | hpux11*)
7463       lt_prog_compiler_wl='-Wl,'
7464       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7465       # not for PA HP-UX.
7466       case $host_cpu in
7467       hppa*64*|ia64*)
7468         # +Z the default
7469         ;;
7470       *)
7471         lt_prog_compiler_pic='+Z'
7472         ;;
7473       esac
7474       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7475       lt_prog_compiler_static='${wl}-a ${wl}archive'
7476       ;;
7477
7478     irix5* | irix6* | nonstopux*)
7479       lt_prog_compiler_wl='-Wl,'
7480       # PIC (with -KPIC) is the default.
7481       lt_prog_compiler_static='-non_shared'
7482       ;;
7483
7484     newsos6)
7485       lt_prog_compiler_pic='-KPIC'
7486       lt_prog_compiler_static='-Bstatic'
7487       ;;
7488
7489     linux*)
7490       case $cc_basename in
7491       icc* | ecc*)
7492         lt_prog_compiler_wl='-Wl,'
7493         lt_prog_compiler_pic='-KPIC'
7494         lt_prog_compiler_static='-static'
7495         ;;
7496       pgcc* | pgf77* | pgf90* | pgf95*)
7497         # Portland Group compilers (*not* the Pentium gcc compiler,
7498         # which looks to be a dead project)
7499         lt_prog_compiler_wl='-Wl,'
7500         lt_prog_compiler_pic='-fpic'
7501         lt_prog_compiler_static='-Bstatic'
7502         ;;
7503       ccc*)
7504         lt_prog_compiler_wl='-Wl,'
7505         # All Alpha code is PIC.
7506         lt_prog_compiler_static='-non_shared'
7507         ;;
7508       esac
7509       ;;
7510
7511     osf3* | osf4* | osf5*)
7512       lt_prog_compiler_wl='-Wl,'
7513       # All OSF/1 code is PIC.
7514       lt_prog_compiler_static='-non_shared'
7515       ;;
7516
7517     solaris*)
7518       lt_prog_compiler_pic='-KPIC'
7519       lt_prog_compiler_static='-Bstatic'
7520       case $cc_basename in
7521       f77* | f90* | f95*)
7522         lt_prog_compiler_wl='-Qoption ld ';;
7523       *)
7524         lt_prog_compiler_wl='-Wl,';;
7525       esac
7526       ;;
7527
7528     sunos4*)
7529       lt_prog_compiler_wl='-Qoption ld '
7530       lt_prog_compiler_pic='-PIC'
7531       lt_prog_compiler_static='-Bstatic'
7532       ;;
7533
7534     sysv4 | sysv4.2uw2* | sysv4.3*)
7535       lt_prog_compiler_wl='-Wl,'
7536       lt_prog_compiler_pic='-KPIC'
7537       lt_prog_compiler_static='-Bstatic'
7538       ;;
7539
7540     sysv4*MP*)
7541       if test -d /usr/nec ;then
7542         lt_prog_compiler_pic='-Kconform_pic'
7543         lt_prog_compiler_static='-Bstatic'
7544       fi
7545       ;;
7546
7547     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7548       lt_prog_compiler_wl='-Wl,'
7549       lt_prog_compiler_pic='-KPIC'
7550       lt_prog_compiler_static='-Bstatic'
7551       ;;
7552
7553     unicos*)
7554       lt_prog_compiler_wl='-Wl,'
7555       lt_prog_compiler_can_build_shared=no
7556       ;;
7557
7558     uts4*)
7559       lt_prog_compiler_pic='-pic'
7560       lt_prog_compiler_static='-Bstatic'
7561       ;;
7562
7563     *)
7564       lt_prog_compiler_can_build_shared=no
7565       ;;
7566     esac
7567   fi
7568
7569 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7570 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7571
7572 #
7573 # Check to make sure the PIC flag actually works.
7574 #
7575 if test -n "$lt_prog_compiler_pic"; then
7576
7577 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7578 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7579 if test "${lt_prog_compiler_pic_works+set}" = set; then
7580   echo $ECHO_N "(cached) $ECHO_C" >&6
7581 else
7582   lt_prog_compiler_pic_works=no
7583   ac_outfile=conftest.$ac_objext
7584    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7585    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7586    # Insert the option either (1) after the last *FLAGS variable, or
7587    # (2) before a word containing "conftest.", or (3) at the end.
7588    # Note that $ac_compile itself does not contain backslashes and begins
7589    # with a dollar sign (not a hyphen), so the echo should work correctly.
7590    # The option is referenced via a variable to avoid confusing sed.
7591    lt_compile=`echo "$ac_compile" | $SED \
7592    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7593    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7594    -e 's:$: $lt_compiler_flag:'`
7595    (eval echo "\"\$as_me:7595: $lt_compile\"" >&5)
7596    (eval "$lt_compile" 2>conftest.err)
7597    ac_status=$?
7598    cat conftest.err >&5
7599    echo "$as_me:7599: \$? = $ac_status" >&5
7600    if (exit $ac_status) && test -s "$ac_outfile"; then
7601      # The compiler can only warn and ignore the option if not recognized
7602      # So say no if there are warnings other than the usual output.
7603      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7604      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7605      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7606        lt_prog_compiler_pic_works=yes
7607      fi
7608    fi
7609    $rm conftest*
7610
7611 fi
7612 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7613 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7614
7615 if test x"$lt_prog_compiler_pic_works" = xyes; then
7616     case $lt_prog_compiler_pic in
7617      "" | " "*) ;;
7618      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7619      esac
7620 else
7621     lt_prog_compiler_pic=
7622      lt_prog_compiler_can_build_shared=no
7623 fi
7624
7625 fi
7626 case $host_os in
7627   # For platforms which do not support PIC, -DPIC is meaningless:
7628   *djgpp*)
7629     lt_prog_compiler_pic=
7630     ;;
7631   *)
7632     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7633     ;;
7634 esac
7635
7636 #
7637 # Check to make sure the static flag actually works.
7638 #
7639 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7640 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7641 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7642 if test "${lt_prog_compiler_static_works+set}" = set; then
7643   echo $ECHO_N "(cached) $ECHO_C" >&6
7644 else
7645   lt_prog_compiler_static_works=no
7646    save_LDFLAGS="$LDFLAGS"
7647    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7648    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7649    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7650      # The linker can only warn and ignore the option if not recognized
7651      # So say no if there are warnings
7652      if test -s conftest.err; then
7653        # Append any errors to the config.log.
7654        cat conftest.err 1>&5
7655        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7656        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7657        if diff conftest.exp conftest.er2 >/dev/null; then
7658          lt_prog_compiler_static_works=yes
7659        fi
7660      else
7661        lt_prog_compiler_static_works=yes
7662      fi
7663    fi
7664    $rm conftest*
7665    LDFLAGS="$save_LDFLAGS"
7666
7667 fi
7668 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7669 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7670
7671 if test x"$lt_prog_compiler_static_works" = xyes; then
7672     :
7673 else
7674     lt_prog_compiler_static=
7675 fi
7676
7677
7678 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7679 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7680 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7681   echo $ECHO_N "(cached) $ECHO_C" >&6
7682 else
7683   lt_cv_prog_compiler_c_o=no
7684    $rm -r conftest 2>/dev/null
7685    mkdir conftest
7686    cd conftest
7687    mkdir out
7688    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7689
7690    lt_compiler_flag="-o out/conftest2.$ac_objext"
7691    # Insert the option either (1) after the last *FLAGS variable, or
7692    # (2) before a word containing "conftest.", or (3) at the end.
7693    # Note that $ac_compile itself does not contain backslashes and begins
7694    # with a dollar sign (not a hyphen), so the echo should work correctly.
7695    lt_compile=`echo "$ac_compile" | $SED \
7696    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7697    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7698    -e 's:$: $lt_compiler_flag:'`
7699    (eval echo "\"\$as_me:7699: $lt_compile\"" >&5)
7700    (eval "$lt_compile" 2>out/conftest.err)
7701    ac_status=$?
7702    cat out/conftest.err >&5
7703    echo "$as_me:7703: \$? = $ac_status" >&5
7704    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7705    then
7706      # The compiler can only warn and ignore the option if not recognized
7707      # So say no if there are warnings
7708      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7709      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7710      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7711        lt_cv_prog_compiler_c_o=yes
7712      fi
7713    fi
7714    chmod u+w . 2>&5
7715    $rm conftest*
7716    # SGI C++ compiler will create directory out/ii_files/ for
7717    # template instantiation
7718    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7719    $rm out/* && rmdir out
7720    cd ..
7721    rmdir conftest
7722    $rm conftest*
7723
7724 fi
7725 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7726 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7727
7728
7729 hard_links="nottested"
7730 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7731   # do not overwrite the value of need_locks provided by the user
7732   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7733 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7734   hard_links=yes
7735   $rm conftest*
7736   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7737   touch conftest.a
7738   ln conftest.a conftest.b 2>&5 || hard_links=no
7739   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7740   { echo "$as_me:$LINENO: result: $hard_links" >&5
7741 echo "${ECHO_T}$hard_links" >&6; }
7742   if test "$hard_links" = no; then
7743     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7744 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7745     need_locks=warn
7746   fi
7747 else
7748   need_locks=no
7749 fi
7750
7751 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7752 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7753
7754   runpath_var=
7755   allow_undefined_flag=
7756   enable_shared_with_static_runtimes=no
7757   archive_cmds=
7758   archive_expsym_cmds=
7759   old_archive_From_new_cmds=
7760   old_archive_from_expsyms_cmds=
7761   export_dynamic_flag_spec=
7762   whole_archive_flag_spec=
7763   thread_safe_flag_spec=
7764   hardcode_libdir_flag_spec=
7765   hardcode_libdir_flag_spec_ld=
7766   hardcode_libdir_separator=
7767   hardcode_direct=no
7768   hardcode_minus_L=no
7769   hardcode_shlibpath_var=unsupported
7770   link_all_deplibs=unknown
7771   hardcode_automatic=no
7772   module_cmds=
7773   module_expsym_cmds=
7774   always_export_symbols=no
7775   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7776   # include_expsyms should be a list of space-separated symbols to be *always*
7777   # included in the symbol list
7778   include_expsyms=
7779   # exclude_expsyms can be an extended regexp of symbols to exclude
7780   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7781   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7782   # as well as any symbol that contains `d'.
7783   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7784   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7785   # platforms (ab)use it in PIC code, but their linkers get confused if
7786   # the symbol is explicitly referenced.  Since portable code cannot
7787   # rely on this symbol name, it's probably fine to never include it in
7788   # preloaded symbol tables.
7789   extract_expsyms_cmds=
7790   # Just being paranoid about ensuring that cc_basename is set.
7791   for cc_temp in $compiler""; do
7792   case $cc_temp in
7793     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7794     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7795     \-*) ;;
7796     *) break;;
7797   esac
7798 done
7799 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7800
7801   case $host_os in
7802   cygwin* | mingw* | pw32*)
7803     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7804     # When not using gcc, we currently assume that we are using
7805     # Microsoft Visual C++.
7806     if test "$GCC" != yes; then
7807       with_gnu_ld=no
7808     fi
7809     ;;
7810   interix*)
7811     # we just hope/assume this is gcc and not c89 (= MSVC++)
7812     with_gnu_ld=yes
7813     ;;
7814   openbsd*)
7815     with_gnu_ld=no
7816     ;;
7817   esac
7818
7819   ld_shlibs=yes
7820   if test "$with_gnu_ld" = yes; then
7821     # If archive_cmds runs LD, not CC, wlarc should be empty
7822     wlarc='${wl}'
7823
7824     # Set some defaults for GNU ld with shared library support. These
7825     # are reset later if shared libraries are not supported. Putting them
7826     # here allows them to be overridden if necessary.
7827     runpath_var=LD_RUN_PATH
7828     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7829     export_dynamic_flag_spec='${wl}--export-dynamic'
7830     # ancient GNU ld didn't support --whole-archive et. al.
7831     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7832         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7833       else
7834         whole_archive_flag_spec=
7835     fi
7836     supports_anon_versioning=no
7837     case `$LD -v 2>/dev/null` in
7838       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7839       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7840       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7841       *\ 2.11.*) ;; # other 2.11 versions
7842       *) supports_anon_versioning=yes ;;
7843     esac
7844
7845     # See if GNU ld supports shared libraries.
7846     case $host_os in
7847     aix3* | aix4* | aix5*)
7848       # On AIX/PPC, the GNU linker is very broken
7849       if test "$host_cpu" != ia64; then
7850         ld_shlibs=no
7851         cat <<EOF 1>&2
7852
7853 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7854 *** to be unable to reliably create shared libraries on AIX.
7855 *** Therefore, libtool is disabling shared libraries support.  If you
7856 *** really care for shared libraries, you may want to modify your PATH
7857 *** so that a non-GNU linker is found, and then restart.
7858
7859 EOF
7860       fi
7861       ;;
7862
7863     amigaos*)
7864       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)'
7865       hardcode_libdir_flag_spec='-L$libdir'
7866       hardcode_minus_L=yes
7867
7868       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7869       # that the semantics of dynamic libraries on AmigaOS, at least up
7870       # to version 4, is to share data among multiple programs linked
7871       # with the same dynamic library.  Since this doesn't match the
7872       # behavior of shared libraries on other platforms, we can't use
7873       # them.
7874       ld_shlibs=no
7875       ;;
7876
7877     beos*)
7878       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7879         allow_undefined_flag=unsupported
7880         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7881         # support --undefined.  This deserves some investigation.  FIXME
7882         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7883       else
7884         ld_shlibs=no
7885       fi
7886       ;;
7887
7888     cygwin* | mingw* | pw32*)
7889       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7890       # as there is no search path for DLLs.
7891       hardcode_libdir_flag_spec='-L$libdir'
7892       allow_undefined_flag=unsupported
7893       always_export_symbols=no
7894       enable_shared_with_static_runtimes=yes
7895       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7896
7897       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7898         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7899         # If the export-symbols file already is a .def file (1st line
7900         # is EXPORTS), use it as is; otherwise, prepend...
7901         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7902           cp $export_symbols $output_objdir/$soname.def;
7903         else
7904           echo EXPORTS > $output_objdir/$soname.def;
7905           cat $export_symbols >> $output_objdir/$soname.def;
7906         fi~
7907         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7908       else
7909         ld_shlibs=no
7910       fi
7911       ;;
7912
7913     interix3*)
7914       hardcode_direct=no
7915       hardcode_shlibpath_var=no
7916       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7917       export_dynamic_flag_spec='${wl}-E'
7918       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7919       # Instead, shared libraries are loaded at an image base (0x10000000 by
7920       # default) and relocated if they conflict, which is a slow very memory
7921       # consuming and fragmenting process.  To avoid this, we pick a random,
7922       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7923       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7924       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7925       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'
7926       ;;
7927
7928     linux*)
7929       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7930         tmp_addflag=
7931         case $cc_basename,$host_cpu in
7932         pgcc*)                          # Portland Group C compiler
7933           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'
7934           tmp_addflag=' $pic_flag'
7935           ;;
7936         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7937           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'
7938           tmp_addflag=' $pic_flag -Mnomain' ;;
7939         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7940           tmp_addflag=' -i_dynamic' ;;
7941         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7942           tmp_addflag=' -i_dynamic -nofor_main' ;;
7943         ifc* | ifort*)                  # Intel Fortran compiler
7944           tmp_addflag=' -nofor_main' ;;
7945         esac
7946         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7947
7948         if test $supports_anon_versioning = yes; then
7949           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7950   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7951   $echo "local: *; };" >> $output_objdir/$libname.ver~
7952           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7953         fi
7954       else
7955         ld_shlibs=no
7956       fi
7957       ;;
7958
7959     netbsd*)
7960       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7961         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7962         wlarc=
7963       else
7964         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7965         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7966       fi
7967       ;;
7968
7969     solaris*)
7970       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7971         ld_shlibs=no
7972         cat <<EOF 1>&2
7973
7974 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7975 *** create shared libraries on Solaris systems.  Therefore, libtool
7976 *** is disabling shared libraries support.  We urge you to upgrade GNU
7977 *** binutils to release 2.9.1 or newer.  Another option is to modify
7978 *** your PATH or compiler configuration so that the native linker is
7979 *** used, and then restart.
7980
7981 EOF
7982       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7983         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7984         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7985       else
7986         ld_shlibs=no
7987       fi
7988       ;;
7989
7990     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7991       case `$LD -v 2>&1` in
7992         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7993         ld_shlibs=no
7994         cat <<_LT_EOF 1>&2
7995
7996 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7997 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7998 *** is disabling shared libraries support.  We urge you to upgrade GNU
7999 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8000 *** your PATH or compiler configuration so that the native linker is
8001 *** used, and then restart.
8002
8003 _LT_EOF
8004         ;;
8005         *)
8006           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8007             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8008             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8009             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8010           else
8011             ld_shlibs=no
8012           fi
8013         ;;
8014       esac
8015       ;;
8016
8017     sunos4*)
8018       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8019       wlarc=
8020       hardcode_direct=yes
8021       hardcode_shlibpath_var=no
8022       ;;
8023
8024     *)
8025       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8026         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8027         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8028       else
8029         ld_shlibs=no
8030       fi
8031       ;;
8032     esac
8033
8034     if test "$ld_shlibs" = no; then
8035       runpath_var=
8036       hardcode_libdir_flag_spec=
8037       export_dynamic_flag_spec=
8038       whole_archive_flag_spec=
8039     fi
8040   else
8041     # PORTME fill in a description of your system's linker (not GNU ld)
8042     case $host_os in
8043     aix3*)
8044       allow_undefined_flag=unsupported
8045       always_export_symbols=yes
8046       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'
8047       # Note: this linker hardcodes the directories in LIBPATH if there
8048       # are no directories specified by -L.
8049       hardcode_minus_L=yes
8050       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8051         # Neither direct hardcoding nor static linking is supported with a
8052         # broken collect2.
8053         hardcode_direct=unsupported
8054       fi
8055       ;;
8056
8057     aix4* | aix5*)
8058       if test "$host_cpu" = ia64; then
8059         # On IA64, the linker does run time linking by default, so we don't
8060         # have to do anything special.
8061         aix_use_runtimelinking=no
8062         exp_sym_flag='-Bexport'
8063         no_entry_flag=""
8064       else
8065         # If we're using GNU nm, then we don't want the "-C" option.
8066         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8067         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8068           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'
8069         else
8070           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'
8071         fi
8072         aix_use_runtimelinking=no
8073
8074         # Test if we are trying to use run time linking or normal
8075         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8076         # need to do runtime linking.
8077         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8078           for ld_flag in $LDFLAGS; do
8079           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8080             aix_use_runtimelinking=yes
8081             break
8082           fi
8083           done
8084           ;;
8085         esac
8086
8087         exp_sym_flag='-bexport'
8088         no_entry_flag='-bnoentry'
8089       fi
8090
8091       # When large executables or shared objects are built, AIX ld can
8092       # have problems creating the table of contents.  If linking a library
8093       # or program results in "error TOC overflow" add -mminimal-toc to
8094       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8095       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8096
8097       archive_cmds=''
8098       hardcode_direct=yes
8099       hardcode_libdir_separator=':'
8100       link_all_deplibs=yes
8101
8102       if test "$GCC" = yes; then
8103         case $host_os in aix4.[012]|aix4.[012].*)
8104         # We only want to do this on AIX 4.2 and lower, the check
8105         # below for broken collect2 doesn't work under 4.3+
8106           collect2name=`${CC} -print-prog-name=collect2`
8107           if test -f "$collect2name" && \
8108            strings "$collect2name" | grep resolve_lib_name >/dev/null
8109           then
8110           # We have reworked collect2
8111           hardcode_direct=yes
8112           else
8113           # We have old collect2
8114           hardcode_direct=unsupported
8115           # It fails to find uninstalled libraries when the uninstalled
8116           # path is not listed in the libpath.  Setting hardcode_minus_L
8117           # to unsupported forces relinking
8118           hardcode_minus_L=yes
8119           hardcode_libdir_flag_spec='-L$libdir'
8120           hardcode_libdir_separator=
8121           fi
8122           ;;
8123         esac
8124         shared_flag='-shared'
8125         if test "$aix_use_runtimelinking" = yes; then
8126           shared_flag="$shared_flag "'${wl}-G'
8127         fi
8128       else
8129         # not using gcc
8130         if test "$host_cpu" = ia64; then
8131         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8132         # chokes on -Wl,-G. The following line is correct:
8133           shared_flag='-G'
8134         else
8135           if test "$aix_use_runtimelinking" = yes; then
8136             shared_flag='${wl}-G'
8137           else
8138             shared_flag='${wl}-bM:SRE'
8139           fi
8140         fi
8141       fi
8142
8143       # It seems that -bexpall does not export symbols beginning with
8144       # underscore (_), so it is better to generate a list of symbols to export.
8145       always_export_symbols=yes
8146       if test "$aix_use_runtimelinking" = yes; then
8147         # Warning - without using the other runtime loading flags (-brtl),
8148         # -berok will link without error, but may produce a broken library.
8149         allow_undefined_flag='-berok'
8150        # Determine the default libpath from the value encoded in an empty executable.
8151        cat >conftest.$ac_ext <<_ACEOF
8152 /* confdefs.h.  */
8153 _ACEOF
8154 cat confdefs.h >>conftest.$ac_ext
8155 cat >>conftest.$ac_ext <<_ACEOF
8156 /* end confdefs.h.  */
8157
8158 int
8159 main ()
8160 {
8161
8162   ;
8163   return 0;
8164 }
8165 _ACEOF
8166 rm -f conftest.$ac_objext conftest$ac_exeext
8167 if { (ac_try="$ac_link"
8168 case "(($ac_try" in
8169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8170   *) ac_try_echo=$ac_try;;
8171 esac
8172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8173   (eval "$ac_link") 2>conftest.er1
8174   ac_status=$?
8175   grep -v '^ *+' conftest.er1 >conftest.err
8176   rm -f conftest.er1
8177   cat conftest.err >&5
8178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179   (exit $ac_status); } && {
8180          test -z "$ac_c_werror_flag" ||
8181          test ! -s conftest.err
8182        } && test -s conftest$ac_exeext &&
8183        $as_test_x conftest$ac_exeext; then
8184
8185 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8186 }'`
8187 # Check for a 64-bit object if we didn't find anything.
8188 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8189 }'`; fi
8190 else
8191   echo "$as_me: failed program was:" >&5
8192 sed 's/^/| /' conftest.$ac_ext >&5
8193
8194
8195 fi
8196
8197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8198       conftest$ac_exeext conftest.$ac_ext
8199 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8200
8201        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8202         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"
8203        else
8204         if test "$host_cpu" = ia64; then
8205           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8206           allow_undefined_flag="-z nodefs"
8207           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"
8208         else
8209          # Determine the default libpath from the value encoded in an empty executable.
8210          cat >conftest.$ac_ext <<_ACEOF
8211 /* confdefs.h.  */
8212 _ACEOF
8213 cat confdefs.h >>conftest.$ac_ext
8214 cat >>conftest.$ac_ext <<_ACEOF
8215 /* end confdefs.h.  */
8216
8217 int
8218 main ()
8219 {
8220
8221   ;
8222   return 0;
8223 }
8224 _ACEOF
8225 rm -f conftest.$ac_objext conftest$ac_exeext
8226 if { (ac_try="$ac_link"
8227 case "(($ac_try" in
8228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8229   *) ac_try_echo=$ac_try;;
8230 esac
8231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8232   (eval "$ac_link") 2>conftest.er1
8233   ac_status=$?
8234   grep -v '^ *+' conftest.er1 >conftest.err
8235   rm -f conftest.er1
8236   cat conftest.err >&5
8237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238   (exit $ac_status); } && {
8239          test -z "$ac_c_werror_flag" ||
8240          test ! -s conftest.err
8241        } && test -s conftest$ac_exeext &&
8242        $as_test_x conftest$ac_exeext; then
8243
8244 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8245 }'`
8246 # Check for a 64-bit object if we didn't find anything.
8247 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8248 }'`; fi
8249 else
8250   echo "$as_me: failed program was:" >&5
8251 sed 's/^/| /' conftest.$ac_ext >&5
8252
8253
8254 fi
8255
8256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8257       conftest$ac_exeext conftest.$ac_ext
8258 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8259
8260          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8261           # Warning - without using the other run time loading flags,
8262           # -berok will link without error, but may produce a broken library.
8263           no_undefined_flag=' ${wl}-bernotok'
8264           allow_undefined_flag=' ${wl}-berok'
8265           # Exported symbols can be pulled into shared objects from archives
8266           whole_archive_flag_spec='$convenience'
8267           archive_cmds_need_lc=yes
8268           # This is similar to how AIX traditionally builds its shared libraries.
8269           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'
8270         fi
8271       fi
8272       ;;
8273
8274     amigaos*)
8275       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)'
8276       hardcode_libdir_flag_spec='-L$libdir'
8277       hardcode_minus_L=yes
8278       # see comment about different semantics on the GNU ld section
8279       ld_shlibs=no
8280       ;;
8281
8282     bsdi[45]*)
8283       export_dynamic_flag_spec=-rdynamic
8284       ;;
8285
8286     cygwin* | mingw* | pw32*)
8287       # When not using gcc, we currently assume that we are using
8288       # Microsoft Visual C++.
8289       # hardcode_libdir_flag_spec is actually meaningless, as there is
8290       # no search path for DLLs.
8291       hardcode_libdir_flag_spec=' '
8292       allow_undefined_flag=unsupported
8293       # Tell ltmain to make .lib files, not .a files.
8294       libext=lib
8295       # Tell ltmain to make .dll files, not .so files.
8296       shrext_cmds=".dll"
8297       # FIXME: Setting linknames here is a bad hack.
8298       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8299       # The linker will automatically build a .lib file if we build a DLL.
8300       old_archive_From_new_cmds='true'
8301       # FIXME: Should let the user specify the lib program.
8302       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8303       fix_srcfile_path='`cygpath -w "$srcfile"`'
8304       enable_shared_with_static_runtimes=yes
8305       ;;
8306
8307     darwin* | rhapsody*)
8308       case $host_os in
8309         rhapsody* | darwin1.[012])
8310          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8311          ;;
8312        *) # Darwin 1.3 on
8313          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8314            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8315          else
8316            case ${MACOSX_DEPLOYMENT_TARGET} in
8317              10.[012])
8318                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8319                ;;
8320              10.*)
8321                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8322                ;;
8323            esac
8324          fi
8325          ;;
8326       esac
8327       archive_cmds_need_lc=no
8328       hardcode_direct=no
8329       hardcode_automatic=yes
8330       hardcode_shlibpath_var=unsupported
8331       whole_archive_flag_spec=''
8332       link_all_deplibs=yes
8333     if test "$GCC" = yes ; then
8334         output_verbose_link_cmd='echo'
8335         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8336       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8337       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8338       archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8339       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}'
8340     else
8341       case $cc_basename in
8342         xlc*)
8343          output_verbose_link_cmd='echo'
8344          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8345          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8346           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8347          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8348           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}'
8349           ;;
8350        *)
8351          ld_shlibs=no
8352           ;;
8353       esac
8354     fi
8355       ;;
8356
8357     dgux*)
8358       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8359       hardcode_libdir_flag_spec='-L$libdir'
8360       hardcode_shlibpath_var=no
8361       ;;
8362
8363     freebsd1*)
8364       ld_shlibs=no
8365       ;;
8366
8367     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8368     # support.  Future versions do this automatically, but an explicit c++rt0.o
8369     # does not break anything, and helps significantly (at the cost of a little
8370     # extra space).
8371     freebsd2.2*)
8372       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8373       hardcode_libdir_flag_spec='-R$libdir'
8374       hardcode_direct=yes
8375       hardcode_shlibpath_var=no
8376       ;;
8377
8378     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8379     freebsd2*)
8380       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8381       hardcode_direct=yes
8382       hardcode_minus_L=yes
8383       hardcode_shlibpath_var=no
8384       ;;
8385
8386     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8387     freebsd* | kfreebsd*-gnu | dragonfly*)
8388       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8389       hardcode_libdir_flag_spec='-R$libdir'
8390       hardcode_direct=yes
8391       hardcode_shlibpath_var=no
8392       ;;
8393
8394     hpux9*)
8395       if test "$GCC" = yes; then
8396         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'
8397       else
8398         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'
8399       fi
8400       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8401       hardcode_libdir_separator=:
8402       hardcode_direct=yes
8403
8404       # hardcode_minus_L: Not really in the search PATH,
8405       # but as the default location of the library.
8406       hardcode_minus_L=yes
8407       export_dynamic_flag_spec='${wl}-E'
8408       ;;
8409
8410     hpux10*)
8411       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8412         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8413       else
8414         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8415       fi
8416       if test "$with_gnu_ld" = no; then
8417         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8418         hardcode_libdir_separator=:
8419
8420         hardcode_direct=yes
8421         export_dynamic_flag_spec='${wl}-E'
8422
8423         # hardcode_minus_L: Not really in the search PATH,
8424         # but as the default location of the library.
8425         hardcode_minus_L=yes
8426       fi
8427       ;;
8428
8429     hpux11*)
8430       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8431         case $host_cpu in
8432         hppa*64*)
8433           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8434           ;;
8435         ia64*)
8436           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8437           ;;
8438         *)
8439           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8440           ;;
8441         esac
8442       else
8443         case $host_cpu in
8444         hppa*64*)
8445           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8446           ;;
8447         ia64*)
8448           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8449           ;;
8450         *)
8451           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8452           ;;
8453         esac
8454       fi
8455       if test "$with_gnu_ld" = no; then
8456         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8457         hardcode_libdir_separator=:
8458
8459         case $host_cpu in
8460         hppa*64*|ia64*)
8461           hardcode_libdir_flag_spec_ld='+b $libdir'
8462           hardcode_direct=no
8463           hardcode_shlibpath_var=no
8464           ;;
8465         *)
8466           hardcode_direct=yes
8467           export_dynamic_flag_spec='${wl}-E'
8468
8469           # hardcode_minus_L: Not really in the search PATH,
8470           # but as the default location of the library.
8471           hardcode_minus_L=yes
8472           ;;
8473         esac
8474       fi
8475       ;;
8476
8477     irix5* | irix6* | nonstopux*)
8478       if test "$GCC" = yes; then
8479         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'
8480       else
8481         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'
8482         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8483       fi
8484       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8485       hardcode_libdir_separator=:
8486       link_all_deplibs=yes
8487       ;;
8488
8489     netbsd*)
8490       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8491         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8492       else
8493         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8494       fi
8495       hardcode_libdir_flag_spec='-R$libdir'
8496       hardcode_direct=yes
8497       hardcode_shlibpath_var=no
8498       ;;
8499
8500     newsos6)
8501       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8502       hardcode_direct=yes
8503       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8504       hardcode_libdir_separator=:
8505       hardcode_shlibpath_var=no
8506       ;;
8507
8508     openbsd*)
8509       hardcode_direct=yes
8510       hardcode_shlibpath_var=no
8511       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8512         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8513         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8514         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8515         export_dynamic_flag_spec='${wl}-E'
8516       else
8517        case $host_os in
8518          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8519            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8520            hardcode_libdir_flag_spec='-R$libdir'
8521            ;;
8522          *)
8523            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8524            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8525            ;;
8526        esac
8527       fi
8528       ;;
8529
8530     os2*)
8531       hardcode_libdir_flag_spec='-L$libdir'
8532       hardcode_minus_L=yes
8533       allow_undefined_flag=unsupported
8534       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'
8535       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8536       ;;
8537
8538     osf3*)
8539       if test "$GCC" = yes; then
8540         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8541         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'
8542       else
8543         allow_undefined_flag=' -expect_unresolved \*'
8544         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'
8545       fi
8546       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8547       hardcode_libdir_separator=:
8548       ;;
8549
8550     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8551       if test "$GCC" = yes; then
8552         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8553         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'
8554         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8555       else
8556         allow_undefined_flag=' -expect_unresolved \*'
8557         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'
8558         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8559         $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'
8560
8561         # Both c and cxx compiler support -rpath directly
8562         hardcode_libdir_flag_spec='-rpath $libdir'
8563       fi
8564       hardcode_libdir_separator=:
8565       ;;
8566
8567     solaris*)
8568       no_undefined_flag=' -z text'
8569       if test "$GCC" = yes; then
8570         wlarc='${wl}'
8571         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8572         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8573           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8574       else
8575         wlarc=''
8576         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8577         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8578         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8579       fi
8580       hardcode_libdir_flag_spec='-R$libdir'
8581       hardcode_shlibpath_var=no
8582       case $host_os in
8583       solaris2.[0-5] | solaris2.[0-5].*) ;;
8584       *)
8585         # The compiler driver will combine linker options so we
8586         # cannot just pass the convience library names through
8587         # without $wl, iff we do not link with $LD.
8588         # Luckily, gcc supports the same syntax we need for Sun Studio.
8589         # Supported since Solaris 2.6 (maybe 2.5.1?)
8590         case $wlarc in
8591         '')
8592           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8593         *)
8594           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8595         esac ;;
8596       esac
8597       link_all_deplibs=yes
8598       ;;
8599
8600     sunos4*)
8601       if test "x$host_vendor" = xsequent; then
8602         # Use $CC to link under sequent, because it throws in some extra .o
8603         # files that make .init and .fini sections work.
8604         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8605       else
8606         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8607       fi
8608       hardcode_libdir_flag_spec='-L$libdir'
8609       hardcode_direct=yes
8610       hardcode_minus_L=yes
8611       hardcode_shlibpath_var=no
8612       ;;
8613
8614     sysv4)
8615       case $host_vendor in
8616         sni)
8617           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8618           hardcode_direct=yes # is this really true???
8619         ;;
8620         siemens)
8621           ## LD is ld it makes a PLAMLIB
8622           ## CC just makes a GrossModule.
8623           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8624           reload_cmds='$CC -r -o $output$reload_objs'
8625           hardcode_direct=no
8626         ;;
8627         motorola)
8628           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8629           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8630         ;;
8631       esac
8632       runpath_var='LD_RUN_PATH'
8633       hardcode_shlibpath_var=no
8634       ;;
8635
8636     sysv4.3*)
8637       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8638       hardcode_shlibpath_var=no
8639       export_dynamic_flag_spec='-Bexport'
8640       ;;
8641
8642     sysv4*MP*)
8643       if test -d /usr/nec; then
8644         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8645         hardcode_shlibpath_var=no
8646         runpath_var=LD_RUN_PATH
8647         hardcode_runpath_var=yes
8648         ld_shlibs=yes
8649       fi
8650       ;;
8651
8652     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8653       no_undefined_flag='${wl}-z,text'
8654       archive_cmds_need_lc=no
8655       hardcode_shlibpath_var=no
8656       runpath_var='LD_RUN_PATH'
8657
8658       if test "$GCC" = yes; then
8659         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8660         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8661       else
8662         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8663         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8664       fi
8665       ;;
8666
8667     sysv5* | sco3.2v5* | sco5v6*)
8668       # Note: We can NOT use -z defs as we might desire, because we do not
8669       # link with -lc, and that would cause any symbols used from libc to
8670       # always be unresolved, which means just about no library would
8671       # ever link correctly.  If we're not using GNU ld we use -z text
8672       # though, which does catch some bad symbols but isn't as heavy-handed
8673       # as -z defs.
8674       no_undefined_flag='${wl}-z,text'
8675       allow_undefined_flag='${wl}-z,nodefs'
8676       archive_cmds_need_lc=no
8677       hardcode_shlibpath_var=no
8678       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8679       hardcode_libdir_separator=':'
8680       link_all_deplibs=yes
8681       export_dynamic_flag_spec='${wl}-Bexport'
8682       runpath_var='LD_RUN_PATH'
8683
8684       if test "$GCC" = yes; then
8685         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8686         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8687       else
8688         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8689         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8690       fi
8691       ;;
8692
8693     uts4*)
8694       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8695       hardcode_libdir_flag_spec='-L$libdir'
8696       hardcode_shlibpath_var=no
8697       ;;
8698
8699     *)
8700       ld_shlibs=no
8701       ;;
8702     esac
8703   fi
8704
8705 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8706 echo "${ECHO_T}$ld_shlibs" >&6; }
8707 test "$ld_shlibs" = no && can_build_shared=no
8708
8709 #
8710 # Do we need to explicitly link libc?
8711 #
8712 case "x$archive_cmds_need_lc" in
8713 x|xyes)
8714   # Assume -lc should be added
8715   archive_cmds_need_lc=yes
8716
8717   if test "$enable_shared" = yes && test "$GCC" = yes; then
8718     case $archive_cmds in
8719     *'~'*)
8720       # FIXME: we may have to deal with multi-command sequences.
8721       ;;
8722     '$CC '*)
8723       # Test whether the compiler implicitly links with -lc since on some
8724       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8725       # to ld, don't add -lc before -lgcc.
8726       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8727 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8728       $rm conftest*
8729       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8730
8731       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8732   (eval $ac_compile) 2>&5
8733   ac_status=$?
8734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735   (exit $ac_status); } 2>conftest.err; then
8736         soname=conftest
8737         lib=conftest
8738         libobjs=conftest.$ac_objext
8739         deplibs=
8740         wl=$lt_prog_compiler_wl
8741         pic_flag=$lt_prog_compiler_pic
8742         compiler_flags=-v
8743         linker_flags=-v
8744         verstring=
8745         output_objdir=.
8746         libname=conftest
8747         lt_save_allow_undefined_flag=$allow_undefined_flag
8748         allow_undefined_flag=
8749         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8750   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8751   ac_status=$?
8752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753   (exit $ac_status); }
8754         then
8755           archive_cmds_need_lc=no
8756         else
8757           archive_cmds_need_lc=yes
8758         fi
8759         allow_undefined_flag=$lt_save_allow_undefined_flag
8760       else
8761         cat conftest.err 1>&5
8762       fi
8763       $rm conftest*
8764       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8765 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8766       ;;
8767     esac
8768   fi
8769   ;;
8770 esac
8771
8772 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8773 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8774 library_names_spec=
8775 libname_spec='lib$name'
8776 soname_spec=
8777 shrext_cmds=".so"
8778 postinstall_cmds=
8779 postuninstall_cmds=
8780 finish_cmds=
8781 finish_eval=
8782 shlibpath_var=
8783 shlibpath_overrides_runpath=unknown
8784 version_type=none
8785 dynamic_linker="$host_os ld.so"
8786 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8787 if test "$GCC" = yes; then
8788   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8789   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8790     # if the path contains ";" then we assume it to be the separator
8791     # otherwise default to the standard path separator (i.e. ":") - it is
8792     # assumed that no part of a normal pathname contains ";" but that should
8793     # okay in the real world where ";" in dirpaths is itself problematic.
8794     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8795   else
8796     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8797   fi
8798 else
8799   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8800 fi
8801 need_lib_prefix=unknown
8802 hardcode_into_libs=no
8803
8804 # when you set need_version to no, make sure it does not cause -set_version
8805 # flags to be left without arguments
8806 need_version=unknown
8807
8808 case $host_os in
8809 aix3*)
8810   version_type=linux
8811   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8812   shlibpath_var=LIBPATH
8813
8814   # AIX 3 has no versioning support, so we append a major version to the name.
8815   soname_spec='${libname}${release}${shared_ext}$major'
8816   ;;
8817
8818 aix4* | aix5*)
8819   version_type=linux
8820   need_lib_prefix=no
8821   need_version=no
8822   hardcode_into_libs=yes
8823   if test "$host_cpu" = ia64; then
8824     # AIX 5 supports IA64
8825     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8826     shlibpath_var=LD_LIBRARY_PATH
8827   else
8828     # With GCC up to 2.95.x, collect2 would create an import file
8829     # for dependence libraries.  The import file would start with
8830     # the line `#! .'.  This would cause the generated library to
8831     # depend on `.', always an invalid library.  This was fixed in
8832     # development snapshots of GCC prior to 3.0.
8833     case $host_os in
8834       aix4 | aix4.[01] | aix4.[01].*)
8835       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8836            echo ' yes '
8837            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8838         :
8839       else
8840         can_build_shared=no
8841       fi
8842       ;;
8843     esac
8844     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8845     # soname into executable. Probably we can add versioning support to
8846     # collect2, so additional links can be useful in future.
8847     if test "$aix_use_runtimelinking" = yes; then
8848       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8849       # instead of lib<name>.a to let people know that these are not
8850       # typical AIX shared libraries.
8851       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8852     else
8853       # We preserve .a as extension for shared libraries through AIX4.2
8854       # and later when we are not doing run time linking.
8855       library_names_spec='${libname}${release}.a $libname.a'
8856       soname_spec='${libname}${release}${shared_ext}$major'
8857     fi
8858     shlibpath_var=LIBPATH
8859   fi
8860   ;;
8861
8862 amigaos*)
8863   library_names_spec='$libname.ixlibrary $libname.a'
8864   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8865   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'
8866   ;;
8867
8868 beos*)
8869   library_names_spec='${libname}${shared_ext}'
8870   dynamic_linker="$host_os ld.so"
8871   shlibpath_var=LIBRARY_PATH
8872   ;;
8873
8874 bsdi[45]*)
8875   version_type=linux
8876   need_version=no
8877   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8878   soname_spec='${libname}${release}${shared_ext}$major'
8879   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8880   shlibpath_var=LD_LIBRARY_PATH
8881   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8882   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8883   # the default ld.so.conf also contains /usr/contrib/lib and
8884   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8885   # libtool to hard-code these into programs
8886   ;;
8887
8888 cygwin* | mingw* | pw32*)
8889   version_type=windows
8890   shrext_cmds=".dll"
8891   need_version=no
8892   need_lib_prefix=no
8893
8894   case $GCC,$host_os in
8895   yes,cygwin* | yes,mingw* | yes,pw32*)
8896     library_names_spec='$libname.dll.a'
8897     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8898     postinstall_cmds='base_file=`basename \${file}`~
8899       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8900       dldir=$destdir/`dirname \$dlpath`~
8901       test -d \$dldir || mkdir -p \$dldir~
8902       $install_prog $dir/$dlname \$dldir/$dlname~
8903       chmod a+x \$dldir/$dlname'
8904     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8905       dlpath=$dir/\$dldll~
8906        $rm \$dlpath'
8907     shlibpath_overrides_runpath=yes
8908
8909     case $host_os in
8910     cygwin*)
8911       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8912       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8913       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8914       ;;
8915     mingw*)
8916       # MinGW DLLs use traditional 'lib' prefix
8917       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8918       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8919       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8920         # It is most probably a Windows format PATH printed by
8921         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8922         # path with ; separators, and with drive letters. We can handle the
8923         # drive letters (cygwin fileutils understands them), so leave them,
8924         # especially as we might pass files found there to a mingw objdump,
8925         # which wouldn't understand a cygwinified path. Ahh.
8926         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8927       else
8928         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8929       fi
8930       ;;
8931     pw32*)
8932       # pw32 DLLs use 'pw' prefix rather than 'lib'
8933       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8934       ;;
8935     esac
8936     ;;
8937
8938   *)
8939     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8940     ;;
8941   esac
8942   dynamic_linker='Win32 ld.exe'
8943   # FIXME: first we should search . and the directory the executable is in
8944   shlibpath_var=PATH
8945   ;;
8946
8947 darwin* | rhapsody*)
8948   dynamic_linker="$host_os dyld"
8949   version_type=darwin
8950   need_lib_prefix=no
8951   need_version=no
8952   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8953   soname_spec='${libname}${release}${major}$shared_ext'
8954   shlibpath_overrides_runpath=yes
8955   shlibpath_var=DYLD_LIBRARY_PATH
8956   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8957   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8958   if test "$GCC" = yes; then
8959     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8960   else
8961     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8962   fi
8963   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8964   ;;
8965
8966 dgux*)
8967   version_type=linux
8968   need_lib_prefix=no
8969   need_version=no
8970   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8971   soname_spec='${libname}${release}${shared_ext}$major'
8972   shlibpath_var=LD_LIBRARY_PATH
8973   ;;
8974
8975 freebsd1*)
8976   dynamic_linker=no
8977   ;;
8978
8979 kfreebsd*-gnu)
8980   version_type=linux
8981   need_lib_prefix=no
8982   need_version=no
8983   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8984   soname_spec='${libname}${release}${shared_ext}$major'
8985   shlibpath_var=LD_LIBRARY_PATH
8986   shlibpath_overrides_runpath=no
8987   hardcode_into_libs=yes
8988   dynamic_linker='GNU ld.so'
8989   ;;
8990
8991 freebsd* | dragonfly*)
8992   # DragonFly does not have aout.  When/if they implement a new
8993   # versioning mechanism, adjust this.
8994   if test -x /usr/bin/objformat; then
8995     objformat=`/usr/bin/objformat`
8996   else
8997     case $host_os in
8998     freebsd[123]*) objformat=aout ;;
8999     *) objformat=elf ;;
9000     esac
9001   fi
9002   version_type=freebsd-$objformat
9003   case $version_type in
9004     freebsd-elf*)
9005       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9006       need_version=no
9007       need_lib_prefix=no
9008       ;;
9009     freebsd-*)
9010       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9011       need_version=yes
9012       ;;
9013   esac
9014   shlibpath_var=LD_LIBRARY_PATH
9015   case $host_os in
9016   freebsd2*)
9017     shlibpath_overrides_runpath=yes
9018     ;;
9019   freebsd3.[01]* | freebsdelf3.[01]*)
9020     shlibpath_overrides_runpath=yes
9021     hardcode_into_libs=yes
9022     ;;
9023   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9024   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9025     shlibpath_overrides_runpath=no
9026     hardcode_into_libs=yes
9027     ;;
9028   freebsd*) # from 4.6 on
9029     shlibpath_overrides_runpath=yes
9030     hardcode_into_libs=yes
9031     ;;
9032   esac
9033   ;;
9034
9035 gnu*)
9036   version_type=linux
9037   need_lib_prefix=no
9038   need_version=no
9039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9040   soname_spec='${libname}${release}${shared_ext}$major'
9041   shlibpath_var=LD_LIBRARY_PATH
9042   hardcode_into_libs=yes
9043   ;;
9044
9045 hpux9* | hpux10* | hpux11*)
9046   # Give a soname corresponding to the major version so that dld.sl refuses to
9047   # link against other versions.
9048   version_type=sunos
9049   need_lib_prefix=no
9050   need_version=no
9051   case $host_cpu in
9052   ia64*)
9053     shrext_cmds='.so'
9054     hardcode_into_libs=yes
9055     dynamic_linker="$host_os dld.so"
9056     shlibpath_var=LD_LIBRARY_PATH
9057     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9058     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9059     soname_spec='${libname}${release}${shared_ext}$major'
9060     if test "X$HPUX_IA64_MODE" = X32; then
9061       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9062     else
9063       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9064     fi
9065     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9066     ;;
9067    hppa*64*)
9068      shrext_cmds='.sl'
9069      hardcode_into_libs=yes
9070      dynamic_linker="$host_os dld.sl"
9071      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9072      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9073      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9074      soname_spec='${libname}${release}${shared_ext}$major'
9075      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9076      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9077      ;;
9078    *)
9079     shrext_cmds='.sl'
9080     dynamic_linker="$host_os dld.sl"
9081     shlibpath_var=SHLIB_PATH
9082     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9083     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9084     soname_spec='${libname}${release}${shared_ext}$major'
9085     ;;
9086   esac
9087   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9088   postinstall_cmds='chmod 555 $lib'
9089   ;;
9090
9091 interix3*)
9092   version_type=linux
9093   need_lib_prefix=no
9094   need_version=no
9095   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9096   soname_spec='${libname}${release}${shared_ext}$major'
9097   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9098   shlibpath_var=LD_LIBRARY_PATH
9099   shlibpath_overrides_runpath=no
9100   hardcode_into_libs=yes
9101   ;;
9102
9103 irix5* | irix6* | nonstopux*)
9104   case $host_os in
9105     nonstopux*) version_type=nonstopux ;;
9106     *)
9107         if test "$lt_cv_prog_gnu_ld" = yes; then
9108                 version_type=linux
9109         else
9110                 version_type=irix
9111         fi ;;
9112   esac
9113   need_lib_prefix=no
9114   need_version=no
9115   soname_spec='${libname}${release}${shared_ext}$major'
9116   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9117   case $host_os in
9118   irix5* | nonstopux*)
9119     libsuff= shlibsuff=
9120     ;;
9121   *)
9122     case $LD in # libtool.m4 will add one of these switches to LD
9123     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9124       libsuff= shlibsuff= libmagic=32-bit;;
9125     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9126       libsuff=32 shlibsuff=N32 libmagic=N32;;
9127     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9128       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9129     *) libsuff= shlibsuff= libmagic=never-match;;
9130     esac
9131     ;;
9132   esac
9133   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9134   shlibpath_overrides_runpath=no
9135   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9136   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9137   hardcode_into_libs=yes
9138   ;;
9139
9140 # No shared lib support for Linux oldld, aout, or coff.
9141 linux*oldld* | linux*aout* | linux*coff*)
9142   dynamic_linker=no
9143   ;;
9144
9145 # This must be Linux ELF.
9146 linux*)
9147   version_type=linux
9148   need_lib_prefix=no
9149   need_version=no
9150   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9151   soname_spec='${libname}${release}${shared_ext}$major'
9152   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9153   shlibpath_var=LD_LIBRARY_PATH
9154   shlibpath_overrides_runpath=no
9155   # This implies no fast_install, which is unacceptable.
9156   # Some rework will be needed to allow for fast_install
9157   # before this can be enabled.
9158   hardcode_into_libs=yes
9159
9160   # Append ld.so.conf contents to the search path
9161   if test -f /etc/ld.so.conf; then
9162     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9163     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9164   fi
9165
9166   # We used to test for /lib/ld.so.1 and disable shared libraries on
9167   # powerpc, because MkLinux only supported shared libraries with the
9168   # GNU dynamic linker.  Since this was broken with cross compilers,
9169   # most powerpc-linux boxes support dynamic linking these days and
9170   # people can always --disable-shared, the test was removed, and we
9171   # assume the GNU/Linux dynamic linker is in use.
9172   dynamic_linker='GNU/Linux ld.so'
9173   ;;
9174
9175 knetbsd*-gnu)
9176   version_type=linux
9177   need_lib_prefix=no
9178   need_version=no
9179   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9180   soname_spec='${libname}${release}${shared_ext}$major'
9181   shlibpath_var=LD_LIBRARY_PATH
9182   shlibpath_overrides_runpath=no
9183   hardcode_into_libs=yes
9184   dynamic_linker='GNU ld.so'
9185   ;;
9186
9187 netbsd*)
9188   version_type=sunos
9189   need_lib_prefix=no
9190   need_version=no
9191   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9192     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9193     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9194     dynamic_linker='NetBSD (a.out) ld.so'
9195   else
9196     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9197     soname_spec='${libname}${release}${shared_ext}$major'
9198     dynamic_linker='NetBSD ld.elf_so'
9199   fi
9200   shlibpath_var=LD_LIBRARY_PATH
9201   shlibpath_overrides_runpath=yes
9202   hardcode_into_libs=yes
9203   ;;
9204
9205 newsos6)
9206   version_type=linux
9207   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9208   shlibpath_var=LD_LIBRARY_PATH
9209   shlibpath_overrides_runpath=yes
9210   ;;
9211
9212 nto-qnx*)
9213   version_type=linux
9214   need_lib_prefix=no
9215   need_version=no
9216   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9217   soname_spec='${libname}${release}${shared_ext}$major'
9218   shlibpath_var=LD_LIBRARY_PATH
9219   shlibpath_overrides_runpath=yes
9220   ;;
9221
9222 openbsd*)
9223   version_type=sunos
9224   sys_lib_dlsearch_path_spec="/usr/lib"
9225   need_lib_prefix=no
9226   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9227   case $host_os in
9228     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9229     *)                         need_version=no  ;;
9230   esac
9231   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9232   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9233   shlibpath_var=LD_LIBRARY_PATH
9234   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9235     case $host_os in
9236       openbsd2.[89] | openbsd2.[89].*)
9237         shlibpath_overrides_runpath=no
9238         ;;
9239       *)
9240         shlibpath_overrides_runpath=yes
9241         ;;
9242       esac
9243   else
9244     shlibpath_overrides_runpath=yes
9245   fi
9246   ;;
9247
9248 os2*)
9249   libname_spec='$name'
9250   shrext_cmds=".dll"
9251   need_lib_prefix=no
9252   library_names_spec='$libname${shared_ext} $libname.a'
9253   dynamic_linker='OS/2 ld.exe'
9254   shlibpath_var=LIBPATH
9255   ;;
9256
9257 osf3* | osf4* | osf5*)
9258   version_type=osf
9259   need_lib_prefix=no
9260   need_version=no
9261   soname_spec='${libname}${release}${shared_ext}$major'
9262   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9263   shlibpath_var=LD_LIBRARY_PATH
9264   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9265   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9266   ;;
9267
9268 solaris*)
9269   version_type=linux
9270   need_lib_prefix=no
9271   need_version=no
9272   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9273   soname_spec='${libname}${release}${shared_ext}$major'
9274   shlibpath_var=LD_LIBRARY_PATH
9275   shlibpath_overrides_runpath=yes
9276   hardcode_into_libs=yes
9277   # ldd complains unless libraries are executable
9278   postinstall_cmds='chmod +x $lib'
9279   ;;
9280
9281 sunos4*)
9282   version_type=sunos
9283   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9284   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9285   shlibpath_var=LD_LIBRARY_PATH
9286   shlibpath_overrides_runpath=yes
9287   if test "$with_gnu_ld" = yes; then
9288     need_lib_prefix=no
9289   fi
9290   need_version=yes
9291   ;;
9292
9293 sysv4 | sysv4.3*)
9294   version_type=linux
9295   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9296   soname_spec='${libname}${release}${shared_ext}$major'
9297   shlibpath_var=LD_LIBRARY_PATH
9298   case $host_vendor in
9299     sni)
9300       shlibpath_overrides_runpath=no
9301       need_lib_prefix=no
9302       export_dynamic_flag_spec='${wl}-Blargedynsym'
9303       runpath_var=LD_RUN_PATH
9304       ;;
9305     siemens)
9306       need_lib_prefix=no
9307       ;;
9308     motorola)
9309       need_lib_prefix=no
9310       need_version=no
9311       shlibpath_overrides_runpath=no
9312       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9313       ;;
9314   esac
9315   ;;
9316
9317 sysv4*MP*)
9318   if test -d /usr/nec ;then
9319     version_type=linux
9320     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9321     soname_spec='$libname${shared_ext}.$major'
9322     shlibpath_var=LD_LIBRARY_PATH
9323   fi
9324   ;;
9325
9326 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9327   version_type=freebsd-elf
9328   need_lib_prefix=no
9329   need_version=no
9330   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9331   soname_spec='${libname}${release}${shared_ext}$major'
9332   shlibpath_var=LD_LIBRARY_PATH
9333   hardcode_into_libs=yes
9334   if test "$with_gnu_ld" = yes; then
9335     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9336     shlibpath_overrides_runpath=no
9337   else
9338     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9339     shlibpath_overrides_runpath=yes
9340     case $host_os in
9341       sco3.2v5*)
9342         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9343         ;;
9344     esac
9345   fi
9346   sys_lib_dlsearch_path_spec='/usr/lib'
9347   ;;
9348
9349 uts4*)
9350   version_type=linux
9351   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9352   soname_spec='${libname}${release}${shared_ext}$major'
9353   shlibpath_var=LD_LIBRARY_PATH
9354   ;;
9355
9356 *)
9357   dynamic_linker=no
9358   ;;
9359 esac
9360 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9361 echo "${ECHO_T}$dynamic_linker" >&6; }
9362 test "$dynamic_linker" = no && can_build_shared=no
9363
9364 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9365 if test "$GCC" = yes; then
9366   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9367 fi
9368
9369 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9370 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9371 hardcode_action=
9372 if test -n "$hardcode_libdir_flag_spec" || \
9373    test -n "$runpath_var" || \
9374    test "X$hardcode_automatic" = "Xyes" ; then
9375
9376   # We can hardcode non-existant directories.
9377   if test "$hardcode_direct" != no &&
9378      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9379      # have to relink, otherwise we might link with an installed library
9380      # when we should be linking with a yet-to-be-installed one
9381      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9382      test "$hardcode_minus_L" != no; then
9383     # Linking always hardcodes the temporary library directory.
9384     hardcode_action=relink
9385   else
9386     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9387     hardcode_action=immediate
9388   fi
9389 else
9390   # We cannot hardcode anything, or else we can only hardcode existing
9391   # directories.
9392   hardcode_action=unsupported
9393 fi
9394 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9395 echo "${ECHO_T}$hardcode_action" >&6; }
9396
9397 if test "$hardcode_action" = relink; then
9398   # Fast installation is not supported
9399   enable_fast_install=no
9400 elif test "$shlibpath_overrides_runpath" = yes ||
9401      test "$enable_shared" = no; then
9402   # Fast installation is not necessary
9403   enable_fast_install=needless
9404 fi
9405
9406 striplib=
9407 old_striplib=
9408 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9409 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9410 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9411   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9412   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9413   { echo "$as_me:$LINENO: result: yes" >&5
9414 echo "${ECHO_T}yes" >&6; }
9415 else
9416 # FIXME - insert some real tests, host_os isn't really good enough
9417   case $host_os in
9418    darwin*)
9419        if test -n "$STRIP" ; then
9420          striplib="$STRIP -x"
9421          { echo "$as_me:$LINENO: result: yes" >&5
9422 echo "${ECHO_T}yes" >&6; }
9423        else
9424   { echo "$as_me:$LINENO: result: no" >&5
9425 echo "${ECHO_T}no" >&6; }
9426 fi
9427        ;;
9428    *)
9429   { echo "$as_me:$LINENO: result: no" >&5
9430 echo "${ECHO_T}no" >&6; }
9431     ;;
9432   esac
9433 fi
9434
9435 if test "x$enable_dlopen" != xyes; then
9436   enable_dlopen=unknown
9437   enable_dlopen_self=unknown
9438   enable_dlopen_self_static=unknown
9439 else
9440   lt_cv_dlopen=no
9441   lt_cv_dlopen_libs=
9442
9443   case $host_os in
9444   beos*)
9445     lt_cv_dlopen="load_add_on"
9446     lt_cv_dlopen_libs=
9447     lt_cv_dlopen_self=yes
9448     ;;
9449
9450   mingw* | pw32*)
9451     lt_cv_dlopen="LoadLibrary"
9452     lt_cv_dlopen_libs=
9453    ;;
9454
9455   cygwin*)
9456     lt_cv_dlopen="dlopen"
9457     lt_cv_dlopen_libs=
9458    ;;
9459
9460   darwin*)
9461   # if libdl is installed we need to link against it
9462     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9463 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9464 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9465   echo $ECHO_N "(cached) $ECHO_C" >&6
9466 else
9467   ac_check_lib_save_LIBS=$LIBS
9468 LIBS="-ldl  $LIBS"
9469 cat >conftest.$ac_ext <<_ACEOF
9470 /* confdefs.h.  */
9471 _ACEOF
9472 cat confdefs.h >>conftest.$ac_ext
9473 cat >>conftest.$ac_ext <<_ACEOF
9474 /* end confdefs.h.  */
9475
9476 /* Override any GCC internal prototype to avoid an error.
9477    Use char because int might match the return type of a GCC
9478    builtin and then its argument prototype would still apply.  */
9479 #ifdef __cplusplus
9480 extern "C"
9481 #endif
9482 char dlopen ();
9483 int
9484 main ()
9485 {
9486 return dlopen ();
9487   ;
9488   return 0;
9489 }
9490 _ACEOF
9491 rm -f conftest.$ac_objext conftest$ac_exeext
9492 if { (ac_try="$ac_link"
9493 case "(($ac_try" in
9494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9495   *) ac_try_echo=$ac_try;;
9496 esac
9497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9498   (eval "$ac_link") 2>conftest.er1
9499   ac_status=$?
9500   grep -v '^ *+' conftest.er1 >conftest.err
9501   rm -f conftest.er1
9502   cat conftest.err >&5
9503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504   (exit $ac_status); } && {
9505          test -z "$ac_c_werror_flag" ||
9506          test ! -s conftest.err
9507        } && test -s conftest$ac_exeext &&
9508        $as_test_x conftest$ac_exeext; then
9509   ac_cv_lib_dl_dlopen=yes
9510 else
9511   echo "$as_me: failed program was:" >&5
9512 sed 's/^/| /' conftest.$ac_ext >&5
9513
9514         ac_cv_lib_dl_dlopen=no
9515 fi
9516
9517 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9518       conftest$ac_exeext conftest.$ac_ext
9519 LIBS=$ac_check_lib_save_LIBS
9520 fi
9521 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9522 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9523 if test $ac_cv_lib_dl_dlopen = yes; then
9524   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9525 else
9526
9527     lt_cv_dlopen="dyld"
9528     lt_cv_dlopen_libs=
9529     lt_cv_dlopen_self=yes
9530
9531 fi
9532
9533    ;;
9534
9535   *)
9536     { echo "$as_me:$LINENO: checking for shl_load" >&5
9537 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9538 if test "${ac_cv_func_shl_load+set}" = set; then
9539   echo $ECHO_N "(cached) $ECHO_C" >&6
9540 else
9541   cat >conftest.$ac_ext <<_ACEOF
9542 /* confdefs.h.  */
9543 _ACEOF
9544 cat confdefs.h >>conftest.$ac_ext
9545 cat >>conftest.$ac_ext <<_ACEOF
9546 /* end confdefs.h.  */
9547 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9548    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9549 #define shl_load innocuous_shl_load
9550
9551 /* System header to define __stub macros and hopefully few prototypes,
9552     which can conflict with char shl_load (); below.
9553     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9554     <limits.h> exists even on freestanding compilers.  */
9555
9556 #ifdef __STDC__
9557 # include <limits.h>
9558 #else
9559 # include <assert.h>
9560 #endif
9561
9562 #undef shl_load
9563
9564 /* Override any GCC internal prototype to avoid an error.
9565    Use char because int might match the return type of a GCC
9566    builtin and then its argument prototype would still apply.  */
9567 #ifdef __cplusplus
9568 extern "C"
9569 #endif
9570 char shl_load ();
9571 /* The GNU C library defines this for functions which it implements
9572     to always fail with ENOSYS.  Some functions are actually named
9573     something starting with __ and the normal name is an alias.  */
9574 #if defined __stub_shl_load || defined __stub___shl_load
9575 choke me
9576 #endif
9577
9578 int
9579 main ()
9580 {
9581 return shl_load ();
9582   ;
9583   return 0;
9584 }
9585 _ACEOF
9586 rm -f conftest.$ac_objext conftest$ac_exeext
9587 if { (ac_try="$ac_link"
9588 case "(($ac_try" in
9589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9590   *) ac_try_echo=$ac_try;;
9591 esac
9592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9593   (eval "$ac_link") 2>conftest.er1
9594   ac_status=$?
9595   grep -v '^ *+' conftest.er1 >conftest.err
9596   rm -f conftest.er1
9597   cat conftest.err >&5
9598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599   (exit $ac_status); } && {
9600          test -z "$ac_c_werror_flag" ||
9601          test ! -s conftest.err
9602        } && test -s conftest$ac_exeext &&
9603        $as_test_x conftest$ac_exeext; then
9604   ac_cv_func_shl_load=yes
9605 else
9606   echo "$as_me: failed program was:" >&5
9607 sed 's/^/| /' conftest.$ac_ext >&5
9608
9609         ac_cv_func_shl_load=no
9610 fi
9611
9612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9613       conftest$ac_exeext conftest.$ac_ext
9614 fi
9615 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9616 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9617 if test $ac_cv_func_shl_load = yes; then
9618   lt_cv_dlopen="shl_load"
9619 else
9620   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9621 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9622 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9623   echo $ECHO_N "(cached) $ECHO_C" >&6
9624 else
9625   ac_check_lib_save_LIBS=$LIBS
9626 LIBS="-ldld  $LIBS"
9627 cat >conftest.$ac_ext <<_ACEOF
9628 /* confdefs.h.  */
9629 _ACEOF
9630 cat confdefs.h >>conftest.$ac_ext
9631 cat >>conftest.$ac_ext <<_ACEOF
9632 /* end confdefs.h.  */
9633
9634 /* Override any GCC internal prototype to avoid an error.
9635    Use char because int might match the return type of a GCC
9636    builtin and then its argument prototype would still apply.  */
9637 #ifdef __cplusplus
9638 extern "C"
9639 #endif
9640 char shl_load ();
9641 int
9642 main ()
9643 {
9644 return shl_load ();
9645   ;
9646   return 0;
9647 }
9648 _ACEOF
9649 rm -f conftest.$ac_objext conftest$ac_exeext
9650 if { (ac_try="$ac_link"
9651 case "(($ac_try" in
9652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9653   *) ac_try_echo=$ac_try;;
9654 esac
9655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9656   (eval "$ac_link") 2>conftest.er1
9657   ac_status=$?
9658   grep -v '^ *+' conftest.er1 >conftest.err
9659   rm -f conftest.er1
9660   cat conftest.err >&5
9661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9662   (exit $ac_status); } && {
9663          test -z "$ac_c_werror_flag" ||
9664          test ! -s conftest.err
9665        } && test -s conftest$ac_exeext &&
9666        $as_test_x conftest$ac_exeext; then
9667   ac_cv_lib_dld_shl_load=yes
9668 else
9669   echo "$as_me: failed program was:" >&5
9670 sed 's/^/| /' conftest.$ac_ext >&5
9671
9672         ac_cv_lib_dld_shl_load=no
9673 fi
9674
9675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9676       conftest$ac_exeext conftest.$ac_ext
9677 LIBS=$ac_check_lib_save_LIBS
9678 fi
9679 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9680 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9681 if test $ac_cv_lib_dld_shl_load = yes; then
9682   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9683 else
9684   { echo "$as_me:$LINENO: checking for dlopen" >&5
9685 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9686 if test "${ac_cv_func_dlopen+set}" = set; then
9687   echo $ECHO_N "(cached) $ECHO_C" >&6
9688 else
9689   cat >conftest.$ac_ext <<_ACEOF
9690 /* confdefs.h.  */
9691 _ACEOF
9692 cat confdefs.h >>conftest.$ac_ext
9693 cat >>conftest.$ac_ext <<_ACEOF
9694 /* end confdefs.h.  */
9695 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9696    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9697 #define dlopen innocuous_dlopen
9698
9699 /* System header to define __stub macros and hopefully few prototypes,
9700     which can conflict with char dlopen (); below.
9701     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9702     <limits.h> exists even on freestanding compilers.  */
9703
9704 #ifdef __STDC__
9705 # include <limits.h>
9706 #else
9707 # include <assert.h>
9708 #endif
9709
9710 #undef dlopen
9711
9712 /* Override any GCC internal prototype to avoid an error.
9713    Use char because int might match the return type of a GCC
9714    builtin and then its argument prototype would still apply.  */
9715 #ifdef __cplusplus
9716 extern "C"
9717 #endif
9718 char dlopen ();
9719 /* The GNU C library defines this for functions which it implements
9720     to always fail with ENOSYS.  Some functions are actually named
9721     something starting with __ and the normal name is an alias.  */
9722 #if defined __stub_dlopen || defined __stub___dlopen
9723 choke me
9724 #endif
9725
9726 int
9727 main ()
9728 {
9729 return dlopen ();
9730   ;
9731   return 0;
9732 }
9733 _ACEOF
9734 rm -f conftest.$ac_objext conftest$ac_exeext
9735 if { (ac_try="$ac_link"
9736 case "(($ac_try" in
9737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9738   *) ac_try_echo=$ac_try;;
9739 esac
9740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9741   (eval "$ac_link") 2>conftest.er1
9742   ac_status=$?
9743   grep -v '^ *+' conftest.er1 >conftest.err
9744   rm -f conftest.er1
9745   cat conftest.err >&5
9746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747   (exit $ac_status); } && {
9748          test -z "$ac_c_werror_flag" ||
9749          test ! -s conftest.err
9750        } && test -s conftest$ac_exeext &&
9751        $as_test_x conftest$ac_exeext; then
9752   ac_cv_func_dlopen=yes
9753 else
9754   echo "$as_me: failed program was:" >&5
9755 sed 's/^/| /' conftest.$ac_ext >&5
9756
9757         ac_cv_func_dlopen=no
9758 fi
9759
9760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9761       conftest$ac_exeext conftest.$ac_ext
9762 fi
9763 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9764 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9765 if test $ac_cv_func_dlopen = yes; then
9766   lt_cv_dlopen="dlopen"
9767 else
9768   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9769 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9770 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9771   echo $ECHO_N "(cached) $ECHO_C" >&6
9772 else
9773   ac_check_lib_save_LIBS=$LIBS
9774 LIBS="-ldl  $LIBS"
9775 cat >conftest.$ac_ext <<_ACEOF
9776 /* confdefs.h.  */
9777 _ACEOF
9778 cat confdefs.h >>conftest.$ac_ext
9779 cat >>conftest.$ac_ext <<_ACEOF
9780 /* end confdefs.h.  */
9781
9782 /* Override any GCC internal prototype to avoid an error.
9783    Use char because int might match the return type of a GCC
9784    builtin and then its argument prototype would still apply.  */
9785 #ifdef __cplusplus
9786 extern "C"
9787 #endif
9788 char dlopen ();
9789 int
9790 main ()
9791 {
9792 return dlopen ();
9793   ;
9794   return 0;
9795 }
9796 _ACEOF
9797 rm -f conftest.$ac_objext conftest$ac_exeext
9798 if { (ac_try="$ac_link"
9799 case "(($ac_try" in
9800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9801   *) ac_try_echo=$ac_try;;
9802 esac
9803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9804   (eval "$ac_link") 2>conftest.er1
9805   ac_status=$?
9806   grep -v '^ *+' conftest.er1 >conftest.err
9807   rm -f conftest.er1
9808   cat conftest.err >&5
9809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810   (exit $ac_status); } && {
9811          test -z "$ac_c_werror_flag" ||
9812          test ! -s conftest.err
9813        } && test -s conftest$ac_exeext &&
9814        $as_test_x conftest$ac_exeext; then
9815   ac_cv_lib_dl_dlopen=yes
9816 else
9817   echo "$as_me: failed program was:" >&5
9818 sed 's/^/| /' conftest.$ac_ext >&5
9819
9820         ac_cv_lib_dl_dlopen=no
9821 fi
9822
9823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9824       conftest$ac_exeext conftest.$ac_ext
9825 LIBS=$ac_check_lib_save_LIBS
9826 fi
9827 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9828 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9829 if test $ac_cv_lib_dl_dlopen = yes; then
9830   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9831 else
9832   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9833 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9834 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9835   echo $ECHO_N "(cached) $ECHO_C" >&6
9836 else
9837   ac_check_lib_save_LIBS=$LIBS
9838 LIBS="-lsvld  $LIBS"
9839 cat >conftest.$ac_ext <<_ACEOF
9840 /* confdefs.h.  */
9841 _ACEOF
9842 cat confdefs.h >>conftest.$ac_ext
9843 cat >>conftest.$ac_ext <<_ACEOF
9844 /* end confdefs.h.  */
9845
9846 /* Override any GCC internal prototype to avoid an error.
9847    Use char because int might match the return type of a GCC
9848    builtin and then its argument prototype would still apply.  */
9849 #ifdef __cplusplus
9850 extern "C"
9851 #endif
9852 char dlopen ();
9853 int
9854 main ()
9855 {
9856 return dlopen ();
9857   ;
9858   return 0;
9859 }
9860 _ACEOF
9861 rm -f conftest.$ac_objext conftest$ac_exeext
9862 if { (ac_try="$ac_link"
9863 case "(($ac_try" in
9864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9865   *) ac_try_echo=$ac_try;;
9866 esac
9867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9868   (eval "$ac_link") 2>conftest.er1
9869   ac_status=$?
9870   grep -v '^ *+' conftest.er1 >conftest.err
9871   rm -f conftest.er1
9872   cat conftest.err >&5
9873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874   (exit $ac_status); } && {
9875          test -z "$ac_c_werror_flag" ||
9876          test ! -s conftest.err
9877        } && test -s conftest$ac_exeext &&
9878        $as_test_x conftest$ac_exeext; then
9879   ac_cv_lib_svld_dlopen=yes
9880 else
9881   echo "$as_me: failed program was:" >&5
9882 sed 's/^/| /' conftest.$ac_ext >&5
9883
9884         ac_cv_lib_svld_dlopen=no
9885 fi
9886
9887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9888       conftest$ac_exeext conftest.$ac_ext
9889 LIBS=$ac_check_lib_save_LIBS
9890 fi
9891 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9892 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9893 if test $ac_cv_lib_svld_dlopen = yes; then
9894   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9895 else
9896   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9897 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9898 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9899   echo $ECHO_N "(cached) $ECHO_C" >&6
9900 else
9901   ac_check_lib_save_LIBS=$LIBS
9902 LIBS="-ldld  $LIBS"
9903 cat >conftest.$ac_ext <<_ACEOF
9904 /* confdefs.h.  */
9905 _ACEOF
9906 cat confdefs.h >>conftest.$ac_ext
9907 cat >>conftest.$ac_ext <<_ACEOF
9908 /* end confdefs.h.  */
9909
9910 /* Override any GCC internal prototype to avoid an error.
9911    Use char because int might match the return type of a GCC
9912    builtin and then its argument prototype would still apply.  */
9913 #ifdef __cplusplus
9914 extern "C"
9915 #endif
9916 char dld_link ();
9917 int
9918 main ()
9919 {
9920 return dld_link ();
9921   ;
9922   return 0;
9923 }
9924 _ACEOF
9925 rm -f conftest.$ac_objext conftest$ac_exeext
9926 if { (ac_try="$ac_link"
9927 case "(($ac_try" in
9928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9929   *) ac_try_echo=$ac_try;;
9930 esac
9931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9932   (eval "$ac_link") 2>conftest.er1
9933   ac_status=$?
9934   grep -v '^ *+' conftest.er1 >conftest.err
9935   rm -f conftest.er1
9936   cat conftest.err >&5
9937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938   (exit $ac_status); } && {
9939          test -z "$ac_c_werror_flag" ||
9940          test ! -s conftest.err
9941        } && test -s conftest$ac_exeext &&
9942        $as_test_x conftest$ac_exeext; then
9943   ac_cv_lib_dld_dld_link=yes
9944 else
9945   echo "$as_me: failed program was:" >&5
9946 sed 's/^/| /' conftest.$ac_ext >&5
9947
9948         ac_cv_lib_dld_dld_link=no
9949 fi
9950
9951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9952       conftest$ac_exeext conftest.$ac_ext
9953 LIBS=$ac_check_lib_save_LIBS
9954 fi
9955 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9956 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9957 if test $ac_cv_lib_dld_dld_link = yes; then
9958   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9959 fi
9960
9961
9962 fi
9963
9964
9965 fi
9966
9967
9968 fi
9969
9970
9971 fi
9972
9973
9974 fi
9975
9976     ;;
9977   esac
9978
9979   if test "x$lt_cv_dlopen" != xno; then
9980     enable_dlopen=yes
9981   else
9982     enable_dlopen=no
9983   fi
9984
9985   case $lt_cv_dlopen in
9986   dlopen)
9987     save_CPPFLAGS="$CPPFLAGS"
9988     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9989
9990     save_LDFLAGS="$LDFLAGS"
9991     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9992
9993     save_LIBS="$LIBS"
9994     LIBS="$lt_cv_dlopen_libs $LIBS"
9995
9996     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9997 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9998 if test "${lt_cv_dlopen_self+set}" = set; then
9999   echo $ECHO_N "(cached) $ECHO_C" >&6
10000 else
10001           if test "$cross_compiling" = yes; then :
10002   lt_cv_dlopen_self=cross
10003 else
10004   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10005   lt_status=$lt_dlunknown
10006   cat > conftest.$ac_ext <<EOF
10007 #line 10007 "configure"
10008 #include "confdefs.h"
10009
10010 #if HAVE_DLFCN_H
10011 #include <dlfcn.h>
10012 #endif
10013
10014 #include <stdio.h>
10015
10016 #ifdef RTLD_GLOBAL
10017 #  define LT_DLGLOBAL           RTLD_GLOBAL
10018 #else
10019 #  ifdef DL_GLOBAL
10020 #    define LT_DLGLOBAL         DL_GLOBAL
10021 #  else
10022 #    define LT_DLGLOBAL         0
10023 #  endif
10024 #endif
10025
10026 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10027    find out it does not work in some platform. */
10028 #ifndef LT_DLLAZY_OR_NOW
10029 #  ifdef RTLD_LAZY
10030 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10031 #  else
10032 #    ifdef DL_LAZY
10033 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10034 #    else
10035 #      ifdef RTLD_NOW
10036 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10037 #      else
10038 #        ifdef DL_NOW
10039 #          define LT_DLLAZY_OR_NOW      DL_NOW
10040 #        else
10041 #          define LT_DLLAZY_OR_NOW      0
10042 #        endif
10043 #      endif
10044 #    endif
10045 #  endif
10046 #endif
10047
10048 #ifdef __cplusplus
10049 extern "C" void exit (int);
10050 #endif
10051
10052 void fnord() { int i=42;}
10053 int main ()
10054 {
10055   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10056   int status = $lt_dlunknown;
10057
10058   if (self)
10059     {
10060       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10061       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10062       /* dlclose (self); */
10063     }
10064   else
10065     puts (dlerror ());
10066
10067     exit (status);
10068 }
10069 EOF
10070   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10071   (eval $ac_link) 2>&5
10072   ac_status=$?
10073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10075     (./conftest; exit; ) >&5 2>/dev/null
10076     lt_status=$?
10077     case x$lt_status in
10078       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10079       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10080       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10081     esac
10082   else :
10083     # compilation failed
10084     lt_cv_dlopen_self=no
10085   fi
10086 fi
10087 rm -fr conftest*
10088
10089
10090 fi
10091 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10092 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10093
10094     if test "x$lt_cv_dlopen_self" = xyes; then
10095       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10096       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10097 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10098 if test "${lt_cv_dlopen_self_static+set}" = set; then
10099   echo $ECHO_N "(cached) $ECHO_C" >&6
10100 else
10101           if test "$cross_compiling" = yes; then :
10102   lt_cv_dlopen_self_static=cross
10103 else
10104   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10105   lt_status=$lt_dlunknown
10106   cat > conftest.$ac_ext <<EOF
10107 #line 10107 "configure"
10108 #include "confdefs.h"
10109
10110 #if HAVE_DLFCN_H
10111 #include <dlfcn.h>
10112 #endif
10113
10114 #include <stdio.h>
10115
10116 #ifdef RTLD_GLOBAL
10117 #  define LT_DLGLOBAL           RTLD_GLOBAL
10118 #else
10119 #  ifdef DL_GLOBAL
10120 #    define LT_DLGLOBAL         DL_GLOBAL
10121 #  else
10122 #    define LT_DLGLOBAL         0
10123 #  endif
10124 #endif
10125
10126 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10127    find out it does not work in some platform. */
10128 #ifndef LT_DLLAZY_OR_NOW
10129 #  ifdef RTLD_LAZY
10130 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10131 #  else
10132 #    ifdef DL_LAZY
10133 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10134 #    else
10135 #      ifdef RTLD_NOW
10136 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10137 #      else
10138 #        ifdef DL_NOW
10139 #          define LT_DLLAZY_OR_NOW      DL_NOW
10140 #        else
10141 #          define LT_DLLAZY_OR_NOW      0
10142 #        endif
10143 #      endif
10144 #    endif
10145 #  endif
10146 #endif
10147
10148 #ifdef __cplusplus
10149 extern "C" void exit (int);
10150 #endif
10151
10152 void fnord() { int i=42;}
10153 int main ()
10154 {
10155   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10156   int status = $lt_dlunknown;
10157
10158   if (self)
10159     {
10160       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10161       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10162       /* dlclose (self); */
10163     }
10164   else
10165     puts (dlerror ());
10166
10167     exit (status);
10168 }
10169 EOF
10170   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10171   (eval $ac_link) 2>&5
10172   ac_status=$?
10173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10175     (./conftest; exit; ) >&5 2>/dev/null
10176     lt_status=$?
10177     case x$lt_status in
10178       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10179       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10180       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10181     esac
10182   else :
10183     # compilation failed
10184     lt_cv_dlopen_self_static=no
10185   fi
10186 fi
10187 rm -fr conftest*
10188
10189
10190 fi
10191 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10192 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10193     fi
10194
10195     CPPFLAGS="$save_CPPFLAGS"
10196     LDFLAGS="$save_LDFLAGS"
10197     LIBS="$save_LIBS"
10198     ;;
10199   esac
10200
10201   case $lt_cv_dlopen_self in
10202   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10203   *) enable_dlopen_self=unknown ;;
10204   esac
10205
10206   case $lt_cv_dlopen_self_static in
10207   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10208   *) enable_dlopen_self_static=unknown ;;
10209   esac
10210 fi
10211
10212
10213 # Report which library types will actually be built
10214 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10215 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10216 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10217 echo "${ECHO_T}$can_build_shared" >&6; }
10218
10219 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10220 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10221 test "$can_build_shared" = "no" && enable_shared=no
10222
10223 # On AIX, shared libraries and static libraries use the same namespace, and
10224 # are all built from PIC.
10225 case $host_os in
10226 aix3*)
10227   test "$enable_shared" = yes && enable_static=no
10228   if test -n "$RANLIB"; then
10229     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10230     postinstall_cmds='$RANLIB $lib'
10231   fi
10232   ;;
10233
10234 aix4* | aix5*)
10235   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10236     test "$enable_shared" = yes && enable_static=no
10237   fi
10238     ;;
10239 esac
10240 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10241 echo "${ECHO_T}$enable_shared" >&6; }
10242
10243 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10244 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10245 # Make sure either enable_shared or enable_static is yes.
10246 test "$enable_shared" = yes || enable_static=yes
10247 { echo "$as_me:$LINENO: result: $enable_static" >&5
10248 echo "${ECHO_T}$enable_static" >&6; }
10249
10250 # The else clause should only fire when bootstrapping the
10251 # libtool distribution, otherwise you forgot to ship ltmain.sh
10252 # with your package, and you will get complaints that there are
10253 # no rules to generate ltmain.sh.
10254 if test -f "$ltmain"; then
10255   # See if we are running on zsh, and set the options which allow our commands through
10256   # without removal of \ escapes.
10257   if test -n "${ZSH_VERSION+set}" ; then
10258     setopt NO_GLOB_SUBST
10259   fi
10260   # Now quote all the things that may contain metacharacters while being
10261   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10262   # variables and quote the copies for generation of the libtool script.
10263   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10264     SED SHELL STRIP \
10265     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10266     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10267     deplibs_check_method reload_flag reload_cmds need_locks \
10268     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10269     lt_cv_sys_global_symbol_to_c_name_address \
10270     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10271     old_postinstall_cmds old_postuninstall_cmds \
10272     compiler \
10273     CC \
10274     LD \
10275     lt_prog_compiler_wl \
10276     lt_prog_compiler_pic \
10277     lt_prog_compiler_static \
10278     lt_prog_compiler_no_builtin_flag \
10279     export_dynamic_flag_spec \
10280     thread_safe_flag_spec \
10281     whole_archive_flag_spec \
10282     enable_shared_with_static_runtimes \
10283     old_archive_cmds \
10284     old_archive_from_new_cmds \
10285     predep_objects \
10286     postdep_objects \
10287     predeps \
10288     postdeps \
10289     compiler_lib_search_path \
10290     archive_cmds \
10291     archive_expsym_cmds \
10292     postinstall_cmds \
10293     postuninstall_cmds \
10294     old_archive_from_expsyms_cmds \
10295     allow_undefined_flag \
10296     no_undefined_flag \
10297     export_symbols_cmds \
10298     hardcode_libdir_flag_spec \
10299     hardcode_libdir_flag_spec_ld \
10300     hardcode_libdir_separator \
10301     hardcode_automatic \
10302     module_cmds \
10303     module_expsym_cmds \
10304     lt_cv_prog_compiler_c_o \
10305     exclude_expsyms \
10306     include_expsyms; do
10307
10308     case $var in
10309     old_archive_cmds | \
10310     old_archive_from_new_cmds | \
10311     archive_cmds | \
10312     archive_expsym_cmds | \
10313     module_cmds | \
10314     module_expsym_cmds | \
10315     old_archive_from_expsyms_cmds | \
10316     export_symbols_cmds | \
10317     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10318     postinstall_cmds | postuninstall_cmds | \
10319     old_postinstall_cmds | old_postuninstall_cmds | \
10320     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10321       # Double-quote double-evaled strings.
10322       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10323       ;;
10324     *)
10325       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10326       ;;
10327     esac
10328   done
10329
10330   case $lt_echo in
10331   *'\$0 --fallback-echo"')
10332     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10333     ;;
10334   esac
10335
10336 cfgfile="${ofile}T"
10337   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10338   $rm -f "$cfgfile"
10339   { echo "$as_me:$LINENO: creating $ofile" >&5
10340 echo "$as_me: creating $ofile" >&6;}
10341
10342   cat <<__EOF__ >> "$cfgfile"
10343 #! $SHELL
10344
10345 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10346 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10347 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10348 #
10349 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10350 # Free Software Foundation, Inc.
10351 #
10352 # This file is part of GNU Libtool:
10353 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10354 #
10355 # This program is free software; you can redistribute it and/or modify
10356 # it under the terms of the GNU General Public License as published by
10357 # the Free Software Foundation; either version 2 of the License, or
10358 # (at your option) any later version.
10359 #
10360 # This program is distributed in the hope that it will be useful, but
10361 # WITHOUT ANY WARRANTY; without even the implied warranty of
10362 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10363 # General Public License for more details.
10364 #
10365 # You should have received a copy of the GNU General Public License
10366 # along with this program; if not, write to the Free Software
10367 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10368 #
10369 # As a special exception to the GNU General Public License, if you
10370 # distribute this file as part of a program that contains a
10371 # configuration script generated by Autoconf, you may include it under
10372 # the same distribution terms that you use for the rest of that program.
10373
10374 # A sed program that does not truncate output.
10375 SED=$lt_SED
10376
10377 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10378 Xsed="$SED -e 1s/^X//"
10379
10380 # The HP-UX ksh and POSIX shell print the target directory to stdout
10381 # if CDPATH is set.
10382 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10383
10384 # The names of the tagged configurations supported by this script.
10385 available_tags=
10386
10387 # ### BEGIN LIBTOOL CONFIG
10388
10389 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10390
10391 # Shell to use when invoking shell scripts.
10392 SHELL=$lt_SHELL
10393
10394 # Whether or not to build shared libraries.
10395 build_libtool_libs=$enable_shared
10396
10397 # Whether or not to build static libraries.
10398 build_old_libs=$enable_static
10399
10400 # Whether or not to add -lc for building shared libraries.
10401 build_libtool_need_lc=$archive_cmds_need_lc
10402
10403 # Whether or not to disallow shared libs when runtime libs are static
10404 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10405
10406 # Whether or not to optimize for fast installation.
10407 fast_install=$enable_fast_install
10408
10409 # The host system.
10410 host_alias=$host_alias
10411 host=$host
10412 host_os=$host_os
10413
10414 # The build system.
10415 build_alias=$build_alias
10416 build=$build
10417 build_os=$build_os
10418
10419 # An echo program that does not interpret backslashes.
10420 echo=$lt_echo
10421
10422 # The archiver.
10423 AR=$lt_AR
10424 AR_FLAGS=$lt_AR_FLAGS
10425
10426 # A C compiler.
10427 LTCC=$lt_LTCC
10428
10429 # LTCC compiler flags.
10430 LTCFLAGS=$lt_LTCFLAGS
10431
10432 # A language-specific compiler.
10433 CC=$lt_compiler
10434
10435 # Is the compiler the GNU C compiler?
10436 with_gcc=$GCC
10437
10438 # An ERE matcher.
10439 EGREP=$lt_EGREP
10440
10441 # The linker used to build libraries.
10442 LD=$lt_LD
10443
10444 # Whether we need hard or soft links.
10445 LN_S=$lt_LN_S
10446
10447 # A BSD-compatible nm program.
10448 NM=$lt_NM
10449
10450 # A symbol stripping program
10451 STRIP=$lt_STRIP
10452
10453 # Used to examine libraries when file_magic_cmd begins "file"
10454 MAGIC_CMD=$MAGIC_CMD
10455
10456 # Used on cygwin: DLL creation program.
10457 DLLTOOL="$DLLTOOL"
10458
10459 # Used on cygwin: object dumper.
10460 OBJDUMP="$OBJDUMP"
10461
10462 # Used on cygwin: assembler.
10463 AS="$AS"
10464
10465 # The name of the directory that contains temporary libtool files.
10466 objdir=$objdir
10467
10468 # How to create reloadable object files.
10469 reload_flag=$lt_reload_flag
10470 reload_cmds=$lt_reload_cmds
10471
10472 # How to pass a linker flag through the compiler.
10473 wl=$lt_lt_prog_compiler_wl
10474
10475 # Object file suffix (normally "o").
10476 objext="$ac_objext"
10477
10478 # Old archive suffix (normally "a").
10479 libext="$libext"
10480
10481 # Shared library suffix (normally ".so").
10482 shrext_cmds='$shrext_cmds'
10483
10484 # Executable file suffix (normally "").
10485 exeext="$exeext"
10486
10487 # Additional compiler flags for building library objects.
10488 pic_flag=$lt_lt_prog_compiler_pic
10489 pic_mode=$pic_mode
10490
10491 # What is the maximum length of a command?
10492 max_cmd_len=$lt_cv_sys_max_cmd_len
10493
10494 # Does compiler simultaneously support -c and -o options?
10495 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10496
10497 # Must we lock files when doing compilation?
10498 need_locks=$lt_need_locks
10499
10500 # Do we need the lib prefix for modules?
10501 need_lib_prefix=$need_lib_prefix
10502
10503 # Do we need a version for libraries?
10504 need_version=$need_version
10505
10506 # Whether dlopen is supported.
10507 dlopen_support=$enable_dlopen
10508
10509 # Whether dlopen of programs is supported.
10510 dlopen_self=$enable_dlopen_self
10511
10512 # Whether dlopen of statically linked programs is supported.
10513 dlopen_self_static=$enable_dlopen_self_static
10514
10515 # Compiler flag to prevent dynamic linking.
10516 link_static_flag=$lt_lt_prog_compiler_static
10517
10518 # Compiler flag to turn off builtin functions.
10519 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10520
10521 # Compiler flag to allow reflexive dlopens.
10522 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10523
10524 # Compiler flag to generate shared objects directly from archives.
10525 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10526
10527 # Compiler flag to generate thread-safe objects.
10528 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10529
10530 # Library versioning type.
10531 version_type=$version_type
10532
10533 # Format of library name prefix.
10534 libname_spec=$lt_libname_spec
10535
10536 # List of archive names.  First name is the real one, the rest are links.
10537 # The last name is the one that the linker finds with -lNAME.
10538 library_names_spec=$lt_library_names_spec
10539
10540 # The coded name of the library, if different from the real name.
10541 soname_spec=$lt_soname_spec
10542
10543 # Commands used to build and install an old-style archive.
10544 RANLIB=$lt_RANLIB
10545 old_archive_cmds=$lt_old_archive_cmds
10546 old_postinstall_cmds=$lt_old_postinstall_cmds
10547 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10548
10549 # Create an old-style archive from a shared archive.
10550 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10551
10552 # Create a temporary old-style archive to link instead of a shared archive.
10553 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10554
10555 # Commands used to build and install a shared archive.
10556 archive_cmds=$lt_archive_cmds
10557 archive_expsym_cmds=$lt_archive_expsym_cmds
10558 postinstall_cmds=$lt_postinstall_cmds
10559 postuninstall_cmds=$lt_postuninstall_cmds
10560
10561 # Commands used to build a loadable module (assumed same as above if empty)
10562 module_cmds=$lt_module_cmds
10563 module_expsym_cmds=$lt_module_expsym_cmds
10564
10565 # Commands to strip libraries.
10566 old_striplib=$lt_old_striplib
10567 striplib=$lt_striplib
10568
10569 # Dependencies to place before the objects being linked to create a
10570 # shared library.
10571 predep_objects=$lt_predep_objects
10572
10573 # Dependencies to place after the objects being linked to create a
10574 # shared library.
10575 postdep_objects=$lt_postdep_objects
10576
10577 # Dependencies to place before the objects being linked to create a
10578 # shared library.
10579 predeps=$lt_predeps
10580
10581 # Dependencies to place after the objects being linked to create a
10582 # shared library.
10583 postdeps=$lt_postdeps
10584
10585 # The library search path used internally by the compiler when linking
10586 # a shared library.
10587 compiler_lib_search_path=$lt_compiler_lib_search_path
10588
10589 # Method to check whether dependent libraries are shared objects.
10590 deplibs_check_method=$lt_deplibs_check_method
10591
10592 # Command to use when deplibs_check_method == file_magic.
10593 file_magic_cmd=$lt_file_magic_cmd
10594
10595 # Flag that allows shared libraries with undefined symbols to be built.
10596 allow_undefined_flag=$lt_allow_undefined_flag
10597
10598 # Flag that forces no undefined symbols.
10599 no_undefined_flag=$lt_no_undefined_flag
10600
10601 # Commands used to finish a libtool library installation in a directory.
10602 finish_cmds=$lt_finish_cmds
10603
10604 # Same as above, but a single script fragment to be evaled but not shown.
10605 finish_eval=$lt_finish_eval
10606
10607 # Take the output of nm and produce a listing of raw symbols and C names.
10608 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10609
10610 # Transform the output of nm in a proper C declaration
10611 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10612
10613 # Transform the output of nm in a C name address pair
10614 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10615
10616 # This is the shared library runtime path variable.
10617 runpath_var=$runpath_var
10618
10619 # This is the shared library path variable.
10620 shlibpath_var=$shlibpath_var
10621
10622 # Is shlibpath searched before the hard-coded library search path?
10623 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10624
10625 # How to hardcode a shared library path into an executable.
10626 hardcode_action=$hardcode_action
10627
10628 # Whether we should hardcode library paths into libraries.
10629 hardcode_into_libs=$hardcode_into_libs
10630
10631 # Flag to hardcode \$libdir into a binary during linking.
10632 # This must work even if \$libdir does not exist.
10633 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10634
10635 # If ld is used when linking, flag to hardcode \$libdir into
10636 # a binary during linking. This must work even if \$libdir does
10637 # not exist.
10638 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10639
10640 # Whether we need a single -rpath flag with a separated argument.
10641 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10642
10643 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10644 # resulting binary.
10645 hardcode_direct=$hardcode_direct
10646
10647 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10648 # resulting binary.
10649 hardcode_minus_L=$hardcode_minus_L
10650
10651 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10652 # the resulting binary.
10653 hardcode_shlibpath_var=$hardcode_shlibpath_var
10654
10655 # Set to yes if building a shared library automatically hardcodes DIR into the library
10656 # and all subsequent libraries and executables linked against it.
10657 hardcode_automatic=$hardcode_automatic
10658
10659 # Variables whose values should be saved in libtool wrapper scripts and
10660 # restored at relink time.
10661 variables_saved_for_relink="$variables_saved_for_relink"
10662
10663 # Whether libtool must link a program against all its dependency libraries.
10664 link_all_deplibs=$link_all_deplibs
10665
10666 # Compile-time system search path for libraries
10667 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10668
10669 # Run-time system search path for libraries
10670 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10671
10672 # Fix the shell variable \$srcfile for the compiler.
10673 fix_srcfile_path="$fix_srcfile_path"
10674
10675 # Set to yes if exported symbols are required.
10676 always_export_symbols=$always_export_symbols
10677
10678 # The commands to list exported symbols.
10679 export_symbols_cmds=$lt_export_symbols_cmds
10680
10681 # The commands to extract the exported symbol list from a shared archive.
10682 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10683
10684 # Symbols that should not be listed in the preloaded symbols.
10685 exclude_expsyms=$lt_exclude_expsyms
10686
10687 # Symbols that must always be exported.
10688 include_expsyms=$lt_include_expsyms
10689
10690 # ### END LIBTOOL CONFIG
10691
10692 __EOF__
10693
10694
10695   case $host_os in
10696   aix3*)
10697     cat <<\EOF >> "$cfgfile"
10698
10699 # AIX sometimes has problems with the GCC collect2 program.  For some
10700 # reason, if we set the COLLECT_NAMES environment variable, the problems
10701 # vanish in a puff of smoke.
10702 if test "X${COLLECT_NAMES+set}" != Xset; then
10703   COLLECT_NAMES=
10704   export COLLECT_NAMES
10705 fi
10706 EOF
10707     ;;
10708   esac
10709
10710   # We use sed instead of cat because bash on DJGPP gets confused if
10711   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10712   # text mode, it properly converts lines to CR/LF.  This bash problem
10713   # is reportedly fixed, but why not run on old versions too?
10714   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10715
10716   mv -f "$cfgfile" "$ofile" || \
10717     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10718   chmod +x "$ofile"
10719
10720 else
10721   # If there is no Makefile yet, we rely on a make rule to execute
10722   # `config.status --recheck' to rerun these tests and create the
10723   # libtool script then.
10724   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10725   if test -f "$ltmain_in"; then
10726     test -f Makefile && make "$ltmain"
10727   fi
10728 fi
10729
10730
10731 ac_ext=c
10732 ac_cpp='$CPP $CPPFLAGS'
10733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10736
10737 CC="$lt_save_CC"
10738
10739
10740 # Check whether --with-tags was given.
10741 if test "${with_tags+set}" = set; then
10742   withval=$with_tags; tagnames="$withval"
10743 fi
10744
10745
10746 if test -f "$ltmain" && test -n "$tagnames"; then
10747   if test ! -f "${ofile}"; then
10748     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10749 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10750   fi
10751
10752   if test -z "$LTCC"; then
10753     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10754     if test -z "$LTCC"; then
10755       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10756 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10757     else
10758       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10759 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10760     fi
10761   fi
10762   if test -z "$LTCFLAGS"; then
10763     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10764   fi
10765
10766   # Extract list of available tagged configurations in $ofile.
10767   # Note that this assumes the entire list is on one line.
10768   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10769
10770   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10771   for tagname in $tagnames; do
10772     IFS="$lt_save_ifs"
10773     # Check whether tagname contains only valid characters
10774     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10775     "") ;;
10776     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10777 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10778    { (exit 1); exit 1; }; }
10779         ;;
10780     esac
10781
10782     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10783     then
10784       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10785 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10786    { (exit 1); exit 1; }; }
10787     fi
10788
10789     # Update the list of available tags.
10790     if test -n "$tagname"; then
10791       echo appending configuration tag \"$tagname\" to $ofile
10792
10793       case $tagname in
10794       CXX)
10795         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10796             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10797             (test "X$CXX" != "Xg++"))) ; then
10798           ac_ext=cpp
10799 ac_cpp='$CXXCPP $CPPFLAGS'
10800 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10801 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10802 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10803
10804
10805
10806
10807 archive_cmds_need_lc_CXX=no
10808 allow_undefined_flag_CXX=
10809 always_export_symbols_CXX=no
10810 archive_expsym_cmds_CXX=
10811 export_dynamic_flag_spec_CXX=
10812 hardcode_direct_CXX=no
10813 hardcode_libdir_flag_spec_CXX=
10814 hardcode_libdir_flag_spec_ld_CXX=
10815 hardcode_libdir_separator_CXX=
10816 hardcode_minus_L_CXX=no
10817 hardcode_shlibpath_var_CXX=unsupported
10818 hardcode_automatic_CXX=no
10819 module_cmds_CXX=
10820 module_expsym_cmds_CXX=
10821 link_all_deplibs_CXX=unknown
10822 old_archive_cmds_CXX=$old_archive_cmds
10823 no_undefined_flag_CXX=
10824 whole_archive_flag_spec_CXX=
10825 enable_shared_with_static_runtimes_CXX=no
10826
10827 # Dependencies to place before and after the object being linked:
10828 predep_objects_CXX=
10829 postdep_objects_CXX=
10830 predeps_CXX=
10831 postdeps_CXX=
10832 compiler_lib_search_path_CXX=
10833
10834 # Source file extension for C++ test sources.
10835 ac_ext=cpp
10836
10837 # Object file extension for compiled C++ test sources.
10838 objext=o
10839 objext_CXX=$objext
10840
10841 # Code to be used in simple compile tests
10842 lt_simple_compile_test_code="int some_variable = 0;\n"
10843
10844 # Code to be used in simple link tests
10845 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10846
10847 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10848
10849 # If no C compiler was specified, use CC.
10850 LTCC=${LTCC-"$CC"}
10851
10852 # If no C compiler flags were specified, use CFLAGS.
10853 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10854
10855 # Allow CC to be a program name with arguments.
10856 compiler=$CC
10857
10858
10859 # save warnings/boilerplate of simple test code
10860 ac_outfile=conftest.$ac_objext
10861 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10862 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10863 _lt_compiler_boilerplate=`cat conftest.err`
10864 $rm conftest*
10865
10866 ac_outfile=conftest.$ac_objext
10867 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10868 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10869 _lt_linker_boilerplate=`cat conftest.err`
10870 $rm conftest*
10871
10872
10873 # Allow CC to be a program name with arguments.
10874 lt_save_CC=$CC
10875 lt_save_LD=$LD
10876 lt_save_GCC=$GCC
10877 GCC=$GXX
10878 lt_save_with_gnu_ld=$with_gnu_ld
10879 lt_save_path_LD=$lt_cv_path_LD
10880 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10881   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10882 else
10883   $as_unset lt_cv_prog_gnu_ld
10884 fi
10885 if test -n "${lt_cv_path_LDCXX+set}"; then
10886   lt_cv_path_LD=$lt_cv_path_LDCXX
10887 else
10888   $as_unset lt_cv_path_LD
10889 fi
10890 test -z "${LDCXX+set}" || LD=$LDCXX
10891 CC=${CXX-"c++"}
10892 compiler=$CC
10893 compiler_CXX=$CC
10894 for cc_temp in $compiler""; do
10895   case $cc_temp in
10896     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10897     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10898     \-*) ;;
10899     *) break;;
10900   esac
10901 done
10902 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10903
10904
10905 # We don't want -fno-exception wen compiling C++ code, so set the
10906 # no_builtin_flag separately
10907 if test "$GXX" = yes; then
10908   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10909 else
10910   lt_prog_compiler_no_builtin_flag_CXX=
10911 fi
10912
10913 if test "$GXX" = yes; then
10914   # Set up default GNU C++ configuration
10915
10916
10917 # Check whether --with-gnu-ld was given.
10918 if test "${with_gnu_ld+set}" = set; then
10919   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10920 else
10921   with_gnu_ld=no
10922 fi
10923
10924 ac_prog=ld
10925 if test "$GCC" = yes; then
10926   # Check if gcc -print-prog-name=ld gives a path.
10927   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10928 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10929   case $host in
10930   *-*-mingw*)
10931     # gcc leaves a trailing carriage return which upsets mingw
10932     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10933   *)
10934     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10935   esac
10936   case $ac_prog in
10937     # Accept absolute paths.
10938     [\\/]* | ?:[\\/]*)
10939       re_direlt='/[^/][^/]*/\.\./'
10940       # Canonicalize the pathname of ld
10941       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10942       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10943         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10944       done
10945       test -z "$LD" && LD="$ac_prog"
10946       ;;
10947   "")
10948     # If it fails, then pretend we aren't using GCC.
10949     ac_prog=ld
10950     ;;
10951   *)
10952     # If it is relative, then search for the first ld in PATH.
10953     with_gnu_ld=unknown
10954     ;;
10955   esac
10956 elif test "$with_gnu_ld" = yes; then
10957   { echo "$as_me:$LINENO: checking for GNU ld" >&5
10958 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10959 else
10960   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10961 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10962 fi
10963 if test "${lt_cv_path_LD+set}" = set; then
10964   echo $ECHO_N "(cached) $ECHO_C" >&6
10965 else
10966   if test -z "$LD"; then
10967   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10968   for ac_dir in $PATH; do
10969     IFS="$lt_save_ifs"
10970     test -z "$ac_dir" && ac_dir=.
10971     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10972       lt_cv_path_LD="$ac_dir/$ac_prog"
10973       # Check to see if the program is GNU ld.  I'd rather use --version,
10974       # but apparently some variants of GNU ld only accept -v.
10975       # Break only if it was the GNU/non-GNU ld that we prefer.
10976       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10977       *GNU* | *'with BFD'*)
10978         test "$with_gnu_ld" != no && break
10979         ;;
10980       *)
10981         test "$with_gnu_ld" != yes && break
10982         ;;
10983       esac
10984     fi
10985   done
10986   IFS="$lt_save_ifs"
10987 else
10988   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10989 fi
10990 fi
10991
10992 LD="$lt_cv_path_LD"
10993 if test -n "$LD"; then
10994   { echo "$as_me:$LINENO: result: $LD" >&5
10995 echo "${ECHO_T}$LD" >&6; }
10996 else
10997   { echo "$as_me:$LINENO: result: no" >&5
10998 echo "${ECHO_T}no" >&6; }
10999 fi
11000 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11001 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11002    { (exit 1); exit 1; }; }
11003 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11004 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11005 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11006   echo $ECHO_N "(cached) $ECHO_C" >&6
11007 else
11008   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11009 case `$LD -v 2>&1 </dev/null` in
11010 *GNU* | *'with BFD'*)
11011   lt_cv_prog_gnu_ld=yes
11012   ;;
11013 *)
11014   lt_cv_prog_gnu_ld=no
11015   ;;
11016 esac
11017 fi
11018 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11019 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11020 with_gnu_ld=$lt_cv_prog_gnu_ld
11021
11022
11023
11024   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11025   # archiving commands below assume that GNU ld is being used.
11026   if test "$with_gnu_ld" = yes; then
11027     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11028     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'
11029
11030     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11031     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11032
11033     # If archive_cmds runs LD, not CC, wlarc should be empty
11034     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11035     #     investigate it a little bit more. (MM)
11036     wlarc='${wl}'
11037
11038     # ancient GNU ld didn't support --whole-archive et. al.
11039     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11040         grep 'no-whole-archive' > /dev/null; then
11041       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11042     else
11043       whole_archive_flag_spec_CXX=
11044     fi
11045   else
11046     with_gnu_ld=no
11047     wlarc=
11048
11049     # A generic and very simple default shared library creation
11050     # command for GNU C++ for the case where it uses the native
11051     # linker, instead of GNU ld.  If possible, this setting should
11052     # overridden to take advantage of the native linker features on
11053     # the platform it is being used on.
11054     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11055   fi
11056
11057   # Commands to make compiler produce verbose output that lists
11058   # what "hidden" libraries, object files and flags are used when
11059   # linking a shared library.
11060   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11061
11062 else
11063   GXX=no
11064   with_gnu_ld=no
11065   wlarc=
11066 fi
11067
11068 # PORTME: fill in a description of your system's C++ link characteristics
11069 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11070 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11071 ld_shlibs_CXX=yes
11072 case $host_os in
11073   aix3*)
11074     # FIXME: insert proper C++ library support
11075     ld_shlibs_CXX=no
11076     ;;
11077   aix4* | aix5*)
11078     if test "$host_cpu" = ia64; then
11079       # On IA64, the linker does run time linking by default, so we don't
11080       # have to do anything special.
11081       aix_use_runtimelinking=no
11082       exp_sym_flag='-Bexport'
11083       no_entry_flag=""
11084     else
11085       aix_use_runtimelinking=no
11086
11087       # Test if we are trying to use run time linking or normal
11088       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11089       # need to do runtime linking.
11090       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11091         for ld_flag in $LDFLAGS; do
11092           case $ld_flag in
11093           *-brtl*)
11094             aix_use_runtimelinking=yes
11095             break
11096             ;;
11097           esac
11098         done
11099         ;;
11100       esac
11101
11102       exp_sym_flag='-bexport'
11103       no_entry_flag='-bnoentry'
11104     fi
11105
11106     # When large executables or shared objects are built, AIX ld can
11107     # have problems creating the table of contents.  If linking a library
11108     # or program results in "error TOC overflow" add -mminimal-toc to
11109     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11110     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11111
11112     archive_cmds_CXX=''
11113     hardcode_direct_CXX=yes
11114     hardcode_libdir_separator_CXX=':'
11115     link_all_deplibs_CXX=yes
11116
11117     if test "$GXX" = yes; then
11118       case $host_os in aix4.[012]|aix4.[012].*)
11119       # We only want to do this on AIX 4.2 and lower, the check
11120       # below for broken collect2 doesn't work under 4.3+
11121         collect2name=`${CC} -print-prog-name=collect2`
11122         if test -f "$collect2name" && \
11123            strings "$collect2name" | grep resolve_lib_name >/dev/null
11124         then
11125           # We have reworked collect2
11126           hardcode_direct_CXX=yes
11127         else
11128           # We have old collect2
11129           hardcode_direct_CXX=unsupported
11130           # It fails to find uninstalled libraries when the uninstalled
11131           # path is not listed in the libpath.  Setting hardcode_minus_L
11132           # to unsupported forces relinking
11133           hardcode_minus_L_CXX=yes
11134           hardcode_libdir_flag_spec_CXX='-L$libdir'
11135           hardcode_libdir_separator_CXX=
11136         fi
11137         ;;
11138       esac
11139       shared_flag='-shared'
11140       if test "$aix_use_runtimelinking" = yes; then
11141         shared_flag="$shared_flag "'${wl}-G'
11142       fi
11143     else
11144       # not using gcc
11145       if test "$host_cpu" = ia64; then
11146         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11147         # chokes on -Wl,-G. The following line is correct:
11148         shared_flag='-G'
11149       else
11150         if test "$aix_use_runtimelinking" = yes; then
11151           shared_flag='${wl}-G'
11152         else
11153           shared_flag='${wl}-bM:SRE'
11154         fi
11155       fi
11156     fi
11157
11158     # It seems that -bexpall does not export symbols beginning with
11159     # underscore (_), so it is better to generate a list of symbols to export.
11160     always_export_symbols_CXX=yes
11161     if test "$aix_use_runtimelinking" = yes; then
11162       # Warning - without using the other runtime loading flags (-brtl),
11163       # -berok will link without error, but may produce a broken library.
11164       allow_undefined_flag_CXX='-berok'
11165       # Determine the default libpath from the value encoded in an empty executable.
11166       cat >conftest.$ac_ext <<_ACEOF
11167 /* confdefs.h.  */
11168 _ACEOF
11169 cat confdefs.h >>conftest.$ac_ext
11170 cat >>conftest.$ac_ext <<_ACEOF
11171 /* end confdefs.h.  */
11172
11173 int
11174 main ()
11175 {
11176
11177   ;
11178   return 0;
11179 }
11180 _ACEOF
11181 rm -f conftest.$ac_objext conftest$ac_exeext
11182 if { (ac_try="$ac_link"
11183 case "(($ac_try" in
11184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11185   *) ac_try_echo=$ac_try;;
11186 esac
11187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11188   (eval "$ac_link") 2>conftest.er1
11189   ac_status=$?
11190   grep -v '^ *+' conftest.er1 >conftest.err
11191   rm -f conftest.er1
11192   cat conftest.err >&5
11193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194   (exit $ac_status); } && {
11195          test -z "$ac_cxx_werror_flag" ||
11196          test ! -s conftest.err
11197        } && test -s conftest$ac_exeext &&
11198        $as_test_x conftest$ac_exeext; then
11199
11200 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11201 }'`
11202 # Check for a 64-bit object if we didn't find anything.
11203 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11204 }'`; fi
11205 else
11206   echo "$as_me: failed program was:" >&5
11207 sed 's/^/| /' conftest.$ac_ext >&5
11208
11209
11210 fi
11211
11212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11213       conftest$ac_exeext conftest.$ac_ext
11214 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11215
11216       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11217
11218       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"
11219      else
11220       if test "$host_cpu" = ia64; then
11221         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11222         allow_undefined_flag_CXX="-z nodefs"
11223         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"
11224       else
11225         # Determine the default libpath from the value encoded in an empty executable.
11226         cat >conftest.$ac_ext <<_ACEOF
11227 /* confdefs.h.  */
11228 _ACEOF
11229 cat confdefs.h >>conftest.$ac_ext
11230 cat >>conftest.$ac_ext <<_ACEOF
11231 /* end confdefs.h.  */
11232
11233 int
11234 main ()
11235 {
11236
11237   ;
11238   return 0;
11239 }
11240 _ACEOF
11241 rm -f conftest.$ac_objext conftest$ac_exeext
11242 if { (ac_try="$ac_link"
11243 case "(($ac_try" in
11244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11245   *) ac_try_echo=$ac_try;;
11246 esac
11247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11248   (eval "$ac_link") 2>conftest.er1
11249   ac_status=$?
11250   grep -v '^ *+' conftest.er1 >conftest.err
11251   rm -f conftest.er1
11252   cat conftest.err >&5
11253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254   (exit $ac_status); } && {
11255          test -z "$ac_cxx_werror_flag" ||
11256          test ! -s conftest.err
11257        } && test -s conftest$ac_exeext &&
11258        $as_test_x conftest$ac_exeext; then
11259
11260 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11261 }'`
11262 # Check for a 64-bit object if we didn't find anything.
11263 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11264 }'`; fi
11265 else
11266   echo "$as_me: failed program was:" >&5
11267 sed 's/^/| /' conftest.$ac_ext >&5
11268
11269
11270 fi
11271
11272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11273       conftest$ac_exeext conftest.$ac_ext
11274 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11275
11276         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11277         # Warning - without using the other run time loading flags,
11278         # -berok will link without error, but may produce a broken library.
11279         no_undefined_flag_CXX=' ${wl}-bernotok'
11280         allow_undefined_flag_CXX=' ${wl}-berok'
11281         # Exported symbols can be pulled into shared objects from archives
11282         whole_archive_flag_spec_CXX='$convenience'
11283         archive_cmds_need_lc_CXX=yes
11284         # This is similar to how AIX traditionally builds its shared libraries.
11285         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'
11286       fi
11287     fi
11288     ;;
11289
11290   beos*)
11291     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11292       allow_undefined_flag_CXX=unsupported
11293       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11294       # support --undefined.  This deserves some investigation.  FIXME
11295       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11296     else
11297       ld_shlibs_CXX=no
11298     fi
11299     ;;
11300
11301   chorus*)
11302     case $cc_basename in
11303       *)
11304         # FIXME: insert proper C++ library support
11305         ld_shlibs_CXX=no
11306         ;;
11307     esac
11308     ;;
11309
11310   cygwin* | mingw* | pw32*)
11311     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11312     # as there is no search path for DLLs.
11313     hardcode_libdir_flag_spec_CXX='-L$libdir'
11314     allow_undefined_flag_CXX=unsupported
11315     always_export_symbols_CXX=no
11316     enable_shared_with_static_runtimes_CXX=yes
11317
11318     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11319       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'
11320       # If the export-symbols file already is a .def file (1st line
11321       # is EXPORTS), use it as is; otherwise, prepend...
11322       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11323         cp $export_symbols $output_objdir/$soname.def;
11324       else
11325         echo EXPORTS > $output_objdir/$soname.def;
11326         cat $export_symbols >> $output_objdir/$soname.def;
11327       fi~
11328       $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'
11329     else
11330       ld_shlibs_CXX=no
11331     fi
11332   ;;
11333       darwin* | rhapsody*)
11334         case $host_os in
11335         rhapsody* | darwin1.[012])
11336          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11337          ;;
11338        *) # Darwin 1.3 on
11339          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11340            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11341          else
11342            case ${MACOSX_DEPLOYMENT_TARGET} in
11343              10.[012])
11344                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11345                ;;
11346              10.*)
11347                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11348                ;;
11349            esac
11350          fi
11351          ;;
11352         esac
11353       archive_cmds_need_lc_CXX=no
11354       hardcode_direct_CXX=no
11355       hardcode_automatic_CXX=yes
11356       hardcode_shlibpath_var_CXX=unsupported
11357       whole_archive_flag_spec_CXX=''
11358       link_all_deplibs_CXX=yes
11359
11360     if test "$GXX" = yes ; then
11361       lt_int_apple_cc_single_mod=no
11362       output_verbose_link_cmd='echo'
11363       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11364        lt_int_apple_cc_single_mod=yes
11365       fi
11366       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11367        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11368       else
11369           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'
11370         fi
11371         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11372         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11373           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11374             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11375           else
11376             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11377           fi
11378             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}'
11379       else
11380       case $cc_basename in
11381         xlc*)
11382          output_verbose_link_cmd='echo'
11383           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11384           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11385           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11386           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11387           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}'
11388           ;;
11389        *)
11390          ld_shlibs_CXX=no
11391           ;;
11392       esac
11393       fi
11394         ;;
11395
11396   dgux*)
11397     case $cc_basename in
11398       ec++*)
11399         # FIXME: insert proper C++ library support
11400         ld_shlibs_CXX=no
11401         ;;
11402       ghcx*)
11403         # Green Hills C++ Compiler
11404         # FIXME: insert proper C++ library support
11405         ld_shlibs_CXX=no
11406         ;;
11407       *)
11408         # FIXME: insert proper C++ library support
11409         ld_shlibs_CXX=no
11410         ;;
11411     esac
11412     ;;
11413   freebsd[12]*)
11414     # C++ shared libraries reported to be fairly broken before switch to ELF
11415     ld_shlibs_CXX=no
11416     ;;
11417   freebsd-elf*)
11418     archive_cmds_need_lc_CXX=no
11419     ;;
11420   freebsd* | kfreebsd*-gnu | dragonfly*)
11421     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11422     # conventions
11423     ld_shlibs_CXX=yes
11424     ;;
11425   gnu*)
11426     ;;
11427   hpux9*)
11428     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11429     hardcode_libdir_separator_CXX=:
11430     export_dynamic_flag_spec_CXX='${wl}-E'
11431     hardcode_direct_CXX=yes
11432     hardcode_minus_L_CXX=yes # Not in the search PATH,
11433                                 # but as the default
11434                                 # location of the library.
11435
11436     case $cc_basename in
11437     CC*)
11438       # FIXME: insert proper C++ library support
11439       ld_shlibs_CXX=no
11440       ;;
11441     aCC*)
11442       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'
11443       # Commands to make compiler produce verbose output that lists
11444       # what "hidden" libraries, object files and flags are used when
11445       # linking a shared library.
11446       #
11447       # There doesn't appear to be a way to prevent this compiler from
11448       # explicitly linking system object files so we need to strip them
11449       # from the output so that they don't get included in the library
11450       # dependencies.
11451       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'
11452       ;;
11453     *)
11454       if test "$GXX" = yes; then
11455         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'
11456       else
11457         # FIXME: insert proper C++ library support
11458         ld_shlibs_CXX=no
11459       fi
11460       ;;
11461     esac
11462     ;;
11463   hpux10*|hpux11*)
11464     if test $with_gnu_ld = no; then
11465       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11466       hardcode_libdir_separator_CXX=:
11467
11468       case $host_cpu in
11469       hppa*64*|ia64*)
11470         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11471         ;;
11472       *)
11473         export_dynamic_flag_spec_CXX='${wl}-E'
11474         ;;
11475       esac
11476     fi
11477     case $host_cpu in
11478     hppa*64*|ia64*)
11479       hardcode_direct_CXX=no
11480       hardcode_shlibpath_var_CXX=no
11481       ;;
11482     *)
11483       hardcode_direct_CXX=yes
11484       hardcode_minus_L_CXX=yes # Not in the search PATH,
11485                                               # but as the default
11486                                               # location of the library.
11487       ;;
11488     esac
11489
11490     case $cc_basename in
11491       CC*)
11492         # FIXME: insert proper C++ library support
11493         ld_shlibs_CXX=no
11494         ;;
11495       aCC*)
11496         case $host_cpu in
11497         hppa*64*)
11498           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11499           ;;
11500         ia64*)
11501           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11502           ;;
11503         *)
11504           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11505           ;;
11506         esac
11507         # Commands to make compiler produce verbose output that lists
11508         # what "hidden" libraries, object files and flags are used when
11509         # linking a shared library.
11510         #
11511         # There doesn't appear to be a way to prevent this compiler from
11512         # explicitly linking system object files so we need to strip them
11513         # from the output so that they don't get included in the library
11514         # dependencies.
11515         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'
11516         ;;
11517       *)
11518         if test "$GXX" = yes; then
11519           if test $with_gnu_ld = no; then
11520             case $host_cpu in
11521             hppa*64*)
11522               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11523               ;;
11524             ia64*)
11525               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11526               ;;
11527             *)
11528               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'
11529               ;;
11530             esac
11531           fi
11532         else
11533           # FIXME: insert proper C++ library support
11534           ld_shlibs_CXX=no
11535         fi
11536         ;;
11537     esac
11538     ;;
11539   interix3*)
11540     hardcode_direct_CXX=no
11541     hardcode_shlibpath_var_CXX=no
11542     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11543     export_dynamic_flag_spec_CXX='${wl}-E'
11544     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11545     # Instead, shared libraries are loaded at an image base (0x10000000 by
11546     # default) and relocated if they conflict, which is a slow very memory
11547     # consuming and fragmenting process.  To avoid this, we pick a random,
11548     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11549     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11550     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'
11551     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'
11552     ;;
11553   irix5* | irix6*)
11554     case $cc_basename in
11555       CC*)
11556         # SGI C++
11557         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'
11558
11559         # Archives containing C++ object files must be created using
11560         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11561         # necessary to make sure instantiated templates are included
11562         # in the archive.
11563         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11564         ;;
11565       *)
11566         if test "$GXX" = yes; then
11567           if test "$with_gnu_ld" = no; then
11568             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11569           else
11570             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'
11571           fi
11572         fi
11573         link_all_deplibs_CXX=yes
11574         ;;
11575     esac
11576     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11577     hardcode_libdir_separator_CXX=:
11578     ;;
11579   linux*)
11580     case $cc_basename in
11581       KCC*)
11582         # Kuck and Associates, Inc. (KAI) C++ Compiler
11583
11584         # KCC will only create a shared library if the output file
11585         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11586         # to its proper name (with version) after linking.
11587         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'
11588         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'
11589         # Commands to make compiler produce verbose output that lists
11590         # what "hidden" libraries, object files and flags are used when
11591         # linking a shared library.
11592         #
11593         # There doesn't appear to be a way to prevent this compiler from
11594         # explicitly linking system object files so we need to strip them
11595         # from the output so that they don't get included in the library
11596         # dependencies.
11597         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'
11598
11599         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11600         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11601
11602         # Archives containing C++ object files must be created using
11603         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11604         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11605         ;;
11606       icpc*)
11607         # Intel C++
11608         with_gnu_ld=yes
11609         # version 8.0 and above of icpc choke on multiply defined symbols
11610         # if we add $predep_objects and $postdep_objects, however 7.1 and
11611         # earlier do not add the objects themselves.
11612         case `$CC -V 2>&1` in
11613         *"Version 7."*)
11614           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11615           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'
11616           ;;
11617         *)  # Version 8.0 or newer
11618           tmp_idyn=
11619           case $host_cpu in
11620             ia64*) tmp_idyn=' -i_dynamic';;
11621           esac
11622           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11623           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'
11624           ;;
11625         esac
11626         archive_cmds_need_lc_CXX=no
11627         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11628         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11629         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11630         ;;
11631       pgCC*)
11632         # Portland Group C++ compiler
11633         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11634         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'
11635
11636         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11637         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11638         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'
11639         ;;
11640       cxx*)
11641         # Compaq C++
11642         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11643         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'
11644
11645         runpath_var=LD_RUN_PATH
11646         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11647         hardcode_libdir_separator_CXX=:
11648
11649         # Commands to make compiler produce verbose output that lists
11650         # what "hidden" libraries, object files and flags are used when
11651         # linking a shared library.
11652         #
11653         # There doesn't appear to be a way to prevent this compiler from
11654         # explicitly linking system object files so we need to strip them
11655         # from the output so that they don't get included in the library
11656         # dependencies.
11657         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'
11658         ;;
11659     esac
11660     ;;
11661   lynxos*)
11662     # FIXME: insert proper C++ library support
11663     ld_shlibs_CXX=no
11664     ;;
11665   m88k*)
11666     # FIXME: insert proper C++ library support
11667     ld_shlibs_CXX=no
11668     ;;
11669   mvs*)
11670     case $cc_basename in
11671       cxx*)
11672         # FIXME: insert proper C++ library support
11673         ld_shlibs_CXX=no
11674         ;;
11675       *)
11676         # FIXME: insert proper C++ library support
11677         ld_shlibs_CXX=no
11678         ;;
11679     esac
11680     ;;
11681   netbsd*)
11682     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11683       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11684       wlarc=
11685       hardcode_libdir_flag_spec_CXX='-R$libdir'
11686       hardcode_direct_CXX=yes
11687       hardcode_shlibpath_var_CXX=no
11688     fi
11689     # Workaround some broken pre-1.5 toolchains
11690     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11691     ;;
11692   openbsd2*)
11693     # C++ shared libraries are fairly broken
11694     ld_shlibs_CXX=no
11695     ;;
11696   openbsd*)
11697     hardcode_direct_CXX=yes
11698     hardcode_shlibpath_var_CXX=no
11699     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11700     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11701     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11702       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11703       export_dynamic_flag_spec_CXX='${wl}-E'
11704       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11705     fi
11706     output_verbose_link_cmd='echo'
11707     ;;
11708   osf3*)
11709     case $cc_basename in
11710       KCC*)
11711         # Kuck and Associates, Inc. (KAI) C++ Compiler
11712
11713         # KCC will only create a shared library if the output file
11714         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11715         # to its proper name (with version) after linking.
11716         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'
11717
11718         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11719         hardcode_libdir_separator_CXX=:
11720
11721         # Archives containing C++ object files must be created using
11722         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11723         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11724
11725         ;;
11726       RCC*)
11727         # Rational C++ 2.4.1
11728         # FIXME: insert proper C++ library support
11729         ld_shlibs_CXX=no
11730         ;;
11731       cxx*)
11732         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11733         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'
11734
11735         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11736         hardcode_libdir_separator_CXX=:
11737
11738         # Commands to make compiler produce verbose output that lists
11739         # what "hidden" libraries, object files and flags are used when
11740         # linking a shared library.
11741         #
11742         # There doesn't appear to be a way to prevent this compiler from
11743         # explicitly linking system object files so we need to strip them
11744         # from the output so that they don't get included in the library
11745         # dependencies.
11746         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'
11747         ;;
11748       *)
11749         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11750           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11751           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'
11752
11753           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11754           hardcode_libdir_separator_CXX=:
11755
11756           # Commands to make compiler produce verbose output that lists
11757           # what "hidden" libraries, object files and flags are used when
11758           # linking a shared library.
11759           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11760
11761         else
11762           # FIXME: insert proper C++ library support
11763           ld_shlibs_CXX=no
11764         fi
11765         ;;
11766     esac
11767     ;;
11768   osf4* | osf5*)
11769     case $cc_basename in
11770       KCC*)
11771         # Kuck and Associates, Inc. (KAI) C++ Compiler
11772
11773         # KCC will only create a shared library if the output file
11774         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11775         # to its proper name (with version) after linking.
11776         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'
11777
11778         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11779         hardcode_libdir_separator_CXX=:
11780
11781         # Archives containing C++ object files must be created using
11782         # the KAI C++ compiler.
11783         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11784         ;;
11785       RCC*)
11786         # Rational C++ 2.4.1
11787         # FIXME: insert proper C++ library support
11788         ld_shlibs_CXX=no
11789         ;;
11790       cxx*)
11791         allow_undefined_flag_CXX=' -expect_unresolved \*'
11792         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'
11793         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11794           echo "-hidden">> $lib.exp~
11795           $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~
11796           $rm $lib.exp'
11797
11798         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11799         hardcode_libdir_separator_CXX=:
11800
11801         # Commands to make compiler produce verbose output that lists
11802         # what "hidden" libraries, object files and flags are used when
11803         # linking a shared library.
11804         #
11805         # There doesn't appear to be a way to prevent this compiler from
11806         # explicitly linking system object files so we need to strip them
11807         # from the output so that they don't get included in the library
11808         # dependencies.
11809         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'
11810         ;;
11811       *)
11812         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11813           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11814          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'
11815
11816           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11817           hardcode_libdir_separator_CXX=:
11818
11819           # Commands to make compiler produce verbose output that lists
11820           # what "hidden" libraries, object files and flags are used when
11821           # linking a shared library.
11822           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11823
11824         else
11825           # FIXME: insert proper C++ library support
11826           ld_shlibs_CXX=no
11827         fi
11828         ;;
11829     esac
11830     ;;
11831   psos*)
11832     # FIXME: insert proper C++ library support
11833     ld_shlibs_CXX=no
11834     ;;
11835   sunos4*)
11836     case $cc_basename in
11837       CC*)
11838         # Sun C++ 4.x
11839         # FIXME: insert proper C++ library support
11840         ld_shlibs_CXX=no
11841         ;;
11842       lcc*)
11843         # Lucid
11844         # FIXME: insert proper C++ library support
11845         ld_shlibs_CXX=no
11846         ;;
11847       *)
11848         # FIXME: insert proper C++ library support
11849         ld_shlibs_CXX=no
11850         ;;
11851     esac
11852     ;;
11853   solaris*)
11854     case $cc_basename in
11855       CC*)
11856         # Sun C++ 4.2, 5.x and Centerline C++
11857         archive_cmds_need_lc_CXX=yes
11858         no_undefined_flag_CXX=' -zdefs'
11859         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11860         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11861         $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'
11862
11863         hardcode_libdir_flag_spec_CXX='-R$libdir'
11864         hardcode_shlibpath_var_CXX=no
11865         case $host_os in
11866           solaris2.[0-5] | solaris2.[0-5].*) ;;
11867           *)
11868             # The C++ compiler is used as linker so we must use $wl
11869             # flag to pass the commands to the underlying system
11870             # linker. We must also pass each convience library through
11871             # to the system linker between allextract/defaultextract.
11872             # The C++ compiler will combine linker options so we
11873             # cannot just pass the convience library names through
11874             # without $wl.
11875             # Supported since Solaris 2.6 (maybe 2.5.1?)
11876             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11877             ;;
11878         esac
11879         link_all_deplibs_CXX=yes
11880
11881         output_verbose_link_cmd='echo'
11882
11883         # Archives containing C++ object files must be created using
11884         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11885         # necessary to make sure instantiated templates are included
11886         # in the archive.
11887         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11888         ;;
11889       gcx*)
11890         # Green Hills C++ Compiler
11891         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11892
11893         # The C++ compiler must be used to create the archive.
11894         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11895         ;;
11896       *)
11897         # GNU C++ compiler with Solaris linker
11898         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11899           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11900           if $CC --version | grep -v '^2\.7' > /dev/null; then
11901             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11902             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11903                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11904
11905             # Commands to make compiler produce verbose output that lists
11906             # what "hidden" libraries, object files and flags are used when
11907             # linking a shared library.
11908             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11909           else
11910             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11911             # platform.
11912             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11913             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11914                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11915
11916             # Commands to make compiler produce verbose output that lists
11917             # what "hidden" libraries, object files and flags are used when
11918             # linking a shared library.
11919             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11920           fi
11921
11922           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11923         fi
11924         ;;
11925     esac
11926     ;;
11927   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11928     no_undefined_flag_CXX='${wl}-z,text'
11929     archive_cmds_need_lc_CXX=no
11930     hardcode_shlibpath_var_CXX=no
11931     runpath_var='LD_RUN_PATH'
11932
11933     case $cc_basename in
11934       CC*)
11935         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11936         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11937         ;;
11938       *)
11939         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11940         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11941         ;;
11942     esac
11943     ;;
11944   sysv5* | sco3.2v5* | sco5v6*)
11945     # Note: We can NOT use -z defs as we might desire, because we do not
11946     # link with -lc, and that would cause any symbols used from libc to
11947     # always be unresolved, which means just about no library would
11948     # ever link correctly.  If we're not using GNU ld we use -z text
11949     # though, which does catch some bad symbols but isn't as heavy-handed
11950     # as -z defs.
11951     # For security reasons, it is highly recommended that you always
11952     # use absolute paths for naming shared libraries, and exclude the
11953     # DT_RUNPATH tag from executables and libraries.  But doing so
11954     # requires that you compile everything twice, which is a pain.
11955     # So that behaviour is only enabled if SCOABSPATH is set to a
11956     # non-empty value in the environment.  Most likely only useful for
11957     # creating official distributions of packages.
11958     # This is a hack until libtool officially supports absolute path
11959     # names for shared libraries.
11960     no_undefined_flag_CXX='${wl}-z,text'
11961     allow_undefined_flag_CXX='${wl}-z,nodefs'
11962     archive_cmds_need_lc_CXX=no
11963     hardcode_shlibpath_var_CXX=no
11964     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11965     hardcode_libdir_separator_CXX=':'
11966     link_all_deplibs_CXX=yes
11967     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11968     runpath_var='LD_RUN_PATH'
11969
11970     case $cc_basename in
11971       CC*)
11972         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11973         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11974         ;;
11975       *)
11976         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11977         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11978         ;;
11979     esac
11980     ;;
11981   tandem*)
11982     case $cc_basename in
11983       NCC*)
11984         # NonStop-UX NCC 3.20
11985         # FIXME: insert proper C++ library support
11986         ld_shlibs_CXX=no
11987         ;;
11988       *)
11989         # FIXME: insert proper C++ library support
11990         ld_shlibs_CXX=no
11991         ;;
11992     esac
11993     ;;
11994   vxworks*)
11995     # FIXME: insert proper C++ library support
11996     ld_shlibs_CXX=no
11997     ;;
11998   *)
11999     # FIXME: insert proper C++ library support
12000     ld_shlibs_CXX=no
12001     ;;
12002 esac
12003 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12004 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12005 test "$ld_shlibs_CXX" = no && can_build_shared=no
12006
12007 GCC_CXX="$GXX"
12008 LD_CXX="$LD"
12009
12010 ## CAVEAT EMPTOR:
12011 ## There is no encapsulation within the following macros, do not change
12012 ## the running order or otherwise move them around unless you know exactly
12013 ## what you are doing...
12014
12015 cat > conftest.$ac_ext <<EOF
12016 class Foo
12017 {
12018 public:
12019   Foo (void) { a = 0; }
12020 private:
12021   int a;
12022 };
12023 EOF
12024
12025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12026   (eval $ac_compile) 2>&5
12027   ac_status=$?
12028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029   (exit $ac_status); }; then
12030   # Parse the compiler output and extract the necessary
12031   # objects, libraries and library flags.
12032
12033   # Sentinel used to keep track of whether or not we are before
12034   # the conftest object file.
12035   pre_test_object_deps_done=no
12036
12037   # The `*' in the case matches for architectures that use `case' in
12038   # $output_verbose_cmd can trigger glob expansion during the loop
12039   # eval without this substitution.
12040   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12041
12042   for p in `eval $output_verbose_link_cmd`; do
12043     case $p in
12044
12045     -L* | -R* | -l*)
12046        # Some compilers place space between "-{L,R}" and the path.
12047        # Remove the space.
12048        if test $p = "-L" \
12049           || test $p = "-R"; then
12050          prev=$p
12051          continue
12052        else
12053          prev=
12054        fi
12055
12056        if test "$pre_test_object_deps_done" = no; then
12057          case $p in
12058          -L* | -R*)
12059            # Internal compiler library paths should come after those
12060            # provided the user.  The postdeps already come after the
12061            # user supplied libs so there is no need to process them.
12062            if test -z "$compiler_lib_search_path_CXX"; then
12063              compiler_lib_search_path_CXX="${prev}${p}"
12064            else
12065              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12066            fi
12067            ;;
12068          # The "-l" case would never come before the object being
12069          # linked, so don't bother handling this case.
12070          esac
12071        else
12072          if test -z "$postdeps_CXX"; then
12073            postdeps_CXX="${prev}${p}"
12074          else
12075            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12076          fi
12077        fi
12078        ;;
12079
12080     *.$objext)
12081        # This assumes that the test object file only shows up
12082        # once in the compiler output.
12083        if test "$p" = "conftest.$objext"; then
12084          pre_test_object_deps_done=yes
12085          continue
12086        fi
12087
12088        if test "$pre_test_object_deps_done" = no; then
12089          if test -z "$predep_objects_CXX"; then
12090            predep_objects_CXX="$p"
12091          else
12092            predep_objects_CXX="$predep_objects_CXX $p"
12093          fi
12094        else
12095          if test -z "$postdep_objects_CXX"; then
12096            postdep_objects_CXX="$p"
12097          else
12098            postdep_objects_CXX="$postdep_objects_CXX $p"
12099          fi
12100        fi
12101        ;;
12102
12103     *) ;; # Ignore the rest.
12104
12105     esac
12106   done
12107
12108   # Clean up.
12109   rm -f a.out a.exe
12110 else
12111   echo "libtool.m4: error: problem compiling CXX test program"
12112 fi
12113
12114 $rm -f confest.$objext
12115
12116 # PORTME: override above test on systems where it is broken
12117 case $host_os in
12118 interix3*)
12119   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12120   # hack all around it, let's just trust "g++" to DTRT.
12121   predep_objects_CXX=
12122   postdep_objects_CXX=
12123   postdeps_CXX=
12124   ;;
12125
12126 solaris*)
12127   case $cc_basename in
12128   CC*)
12129     # Adding this requires a known-good setup of shared libraries for
12130     # Sun compiler versions before 5.6, else PIC objects from an old
12131     # archive will be linked into the output, leading to subtle bugs.
12132     postdeps_CXX='-lCstd -lCrun'
12133     ;;
12134   esac
12135   ;;
12136 esac
12137
12138
12139 case " $postdeps_CXX " in
12140 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12141 esac
12142
12143 lt_prog_compiler_wl_CXX=
12144 lt_prog_compiler_pic_CXX=
12145 lt_prog_compiler_static_CXX=
12146
12147 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12148 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12149
12150   # C++ specific cases for pic, static, wl, etc.
12151   if test "$GXX" = yes; then
12152     lt_prog_compiler_wl_CXX='-Wl,'
12153     lt_prog_compiler_static_CXX='-static'
12154
12155     case $host_os in
12156     aix*)
12157       # All AIX code is PIC.
12158       if test "$host_cpu" = ia64; then
12159         # AIX 5 now supports IA64 processor
12160         lt_prog_compiler_static_CXX='-Bstatic'
12161       fi
12162       ;;
12163     amigaos*)
12164       # FIXME: we need at least 68020 code to build shared libraries, but
12165       # adding the `-m68020' flag to GCC prevents building anything better,
12166       # like `-m68040'.
12167       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12168       ;;
12169     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12170       # PIC is the default for these OSes.
12171       ;;
12172     mingw* | os2* | pw32*)
12173       # This hack is so that the source file can tell whether it is being
12174       # built for inclusion in a dll (and should export symbols for example).
12175       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12176       ;;
12177     darwin* | rhapsody*)
12178       # PIC is the default on this platform
12179       # Common symbols not allowed in MH_DYLIB files
12180       lt_prog_compiler_pic_CXX='-fno-common'
12181       ;;
12182     *djgpp*)
12183       # DJGPP does not support shared libraries at all
12184       lt_prog_compiler_pic_CXX=
12185       ;;
12186     interix3*)
12187       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12188       # Instead, we relocate shared libraries at runtime.
12189       ;;
12190     sysv4*MP*)
12191       if test -d /usr/nec; then
12192         lt_prog_compiler_pic_CXX=-Kconform_pic
12193       fi
12194       ;;
12195     hpux*)
12196       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12197       # not for PA HP-UX.
12198       case $host_cpu in
12199       hppa*64*|ia64*)
12200         ;;
12201       *)
12202         lt_prog_compiler_pic_CXX='-fPIC'
12203         ;;
12204       esac
12205       ;;
12206     *)
12207       lt_prog_compiler_pic_CXX='-fPIC'
12208       ;;
12209     esac
12210   else
12211     case $host_os in
12212       aix4* | aix5*)
12213         # All AIX code is PIC.
12214         if test "$host_cpu" = ia64; then
12215           # AIX 5 now supports IA64 processor
12216           lt_prog_compiler_static_CXX='-Bstatic'
12217         else
12218           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12219         fi
12220         ;;
12221       chorus*)
12222         case $cc_basename in
12223         cxch68*)
12224           # Green Hills C++ Compiler
12225           # _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"
12226           ;;
12227         esac
12228         ;;
12229        darwin*)
12230          # PIC is the default on this platform
12231          # Common symbols not allowed in MH_DYLIB files
12232          case $cc_basename in
12233            xlc*)
12234            lt_prog_compiler_pic_CXX='-qnocommon'
12235            lt_prog_compiler_wl_CXX='-Wl,'
12236            ;;
12237          esac
12238        ;;
12239       dgux*)
12240         case $cc_basename in
12241           ec++*)
12242             lt_prog_compiler_pic_CXX='-KPIC'
12243             ;;
12244           ghcx*)
12245             # Green Hills C++ Compiler
12246             lt_prog_compiler_pic_CXX='-pic'
12247             ;;
12248           *)
12249             ;;
12250         esac
12251         ;;
12252       freebsd* | kfreebsd*-gnu | dragonfly*)
12253         # FreeBSD uses GNU C++
12254         ;;
12255       hpux9* | hpux10* | hpux11*)
12256         case $cc_basename in
12257           CC*)
12258             lt_prog_compiler_wl_CXX='-Wl,'
12259             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12260             if test "$host_cpu" != ia64; then
12261               lt_prog_compiler_pic_CXX='+Z'
12262             fi
12263             ;;
12264           aCC*)
12265             lt_prog_compiler_wl_CXX='-Wl,'
12266             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12267             case $host_cpu in
12268             hppa*64*|ia64*)
12269               # +Z the default
12270               ;;
12271             *)
12272               lt_prog_compiler_pic_CXX='+Z'
12273               ;;
12274             esac
12275             ;;
12276           *)
12277             ;;
12278         esac
12279         ;;
12280       interix*)
12281         # This is c89, which is MS Visual C++ (no shared libs)
12282         # Anyone wants to do a port?
12283         ;;
12284       irix5* | irix6* | nonstopux*)
12285         case $cc_basename in
12286           CC*)
12287             lt_prog_compiler_wl_CXX='-Wl,'
12288             lt_prog_compiler_static_CXX='-non_shared'
12289             # CC pic flag -KPIC is the default.
12290             ;;
12291           *)
12292             ;;
12293         esac
12294         ;;
12295       linux*)
12296         case $cc_basename in
12297           KCC*)
12298             # KAI C++ Compiler
12299             lt_prog_compiler_wl_CXX='--backend -Wl,'
12300             lt_prog_compiler_pic_CXX='-fPIC'
12301             ;;
12302           icpc* | ecpc*)
12303             # Intel C++
12304             lt_prog_compiler_wl_CXX='-Wl,'
12305             lt_prog_compiler_pic_CXX='-KPIC'
12306             lt_prog_compiler_static_CXX='-static'
12307             ;;
12308           pgCC*)
12309             # Portland Group C++ compiler.
12310             lt_prog_compiler_wl_CXX='-Wl,'
12311             lt_prog_compiler_pic_CXX='-fpic'
12312             lt_prog_compiler_static_CXX='-Bstatic'
12313             ;;
12314           cxx*)
12315             # Compaq C++
12316             # Make sure the PIC flag is empty.  It appears that all Alpha
12317             # Linux and Compaq Tru64 Unix objects are PIC.
12318             lt_prog_compiler_pic_CXX=
12319             lt_prog_compiler_static_CXX='-non_shared'
12320             ;;
12321           *)
12322             ;;
12323         esac
12324         ;;
12325       lynxos*)
12326         ;;
12327       m88k*)
12328         ;;
12329       mvs*)
12330         case $cc_basename in
12331           cxx*)
12332             lt_prog_compiler_pic_CXX='-W c,exportall'
12333             ;;
12334           *)
12335             ;;
12336         esac
12337         ;;
12338       netbsd*)
12339         ;;
12340       osf3* | osf4* | osf5*)
12341         case $cc_basename in
12342           KCC*)
12343             lt_prog_compiler_wl_CXX='--backend -Wl,'
12344             ;;
12345           RCC*)
12346             # Rational C++ 2.4.1
12347             lt_prog_compiler_pic_CXX='-pic'
12348             ;;
12349           cxx*)
12350             # Digital/Compaq C++
12351             lt_prog_compiler_wl_CXX='-Wl,'
12352             # Make sure the PIC flag is empty.  It appears that all Alpha
12353             # Linux and Compaq Tru64 Unix objects are PIC.
12354             lt_prog_compiler_pic_CXX=
12355             lt_prog_compiler_static_CXX='-non_shared'
12356             ;;
12357           *)
12358             ;;
12359         esac
12360         ;;
12361       psos*)
12362         ;;
12363       solaris*)
12364         case $cc_basename in
12365           CC*)
12366             # Sun C++ 4.2, 5.x and Centerline C++
12367             lt_prog_compiler_pic_CXX='-KPIC'
12368             lt_prog_compiler_static_CXX='-Bstatic'
12369             lt_prog_compiler_wl_CXX='-Qoption ld '
12370             ;;
12371           gcx*)
12372             # Green Hills C++ Compiler
12373             lt_prog_compiler_pic_CXX='-PIC'
12374             ;;
12375           *)
12376             ;;
12377         esac
12378         ;;
12379       sunos4*)
12380         case $cc_basename in
12381           CC*)
12382             # Sun C++ 4.x
12383             lt_prog_compiler_pic_CXX='-pic'
12384             lt_prog_compiler_static_CXX='-Bstatic'
12385             ;;
12386           lcc*)
12387             # Lucid
12388             lt_prog_compiler_pic_CXX='-pic'
12389             ;;
12390           *)
12391             ;;
12392         esac
12393         ;;
12394       tandem*)
12395         case $cc_basename in
12396           NCC*)
12397             # NonStop-UX NCC 3.20
12398             lt_prog_compiler_pic_CXX='-KPIC'
12399             ;;
12400           *)
12401             ;;
12402         esac
12403         ;;
12404       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12405         case $cc_basename in
12406           CC*)
12407             lt_prog_compiler_wl_CXX='-Wl,'
12408             lt_prog_compiler_pic_CXX='-KPIC'
12409             lt_prog_compiler_static_CXX='-Bstatic'
12410             ;;
12411         esac
12412         ;;
12413       vxworks*)
12414         ;;
12415       *)
12416         lt_prog_compiler_can_build_shared_CXX=no
12417         ;;
12418     esac
12419   fi
12420
12421 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12422 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12423
12424 #
12425 # Check to make sure the PIC flag actually works.
12426 #
12427 if test -n "$lt_prog_compiler_pic_CXX"; then
12428
12429 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12430 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12431 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12432   echo $ECHO_N "(cached) $ECHO_C" >&6
12433 else
12434   lt_prog_compiler_pic_works_CXX=no
12435   ac_outfile=conftest.$ac_objext
12436    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12437    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12438    # Insert the option either (1) after the last *FLAGS variable, or
12439    # (2) before a word containing "conftest.", or (3) at the end.
12440    # Note that $ac_compile itself does not contain backslashes and begins
12441    # with a dollar sign (not a hyphen), so the echo should work correctly.
12442    # The option is referenced via a variable to avoid confusing sed.
12443    lt_compile=`echo "$ac_compile" | $SED \
12444    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12445    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12446    -e 's:$: $lt_compiler_flag:'`
12447    (eval echo "\"\$as_me:12447: $lt_compile\"" >&5)
12448    (eval "$lt_compile" 2>conftest.err)
12449    ac_status=$?
12450    cat conftest.err >&5
12451    echo "$as_me:12451: \$? = $ac_status" >&5
12452    if (exit $ac_status) && test -s "$ac_outfile"; then
12453      # The compiler can only warn and ignore the option if not recognized
12454      # So say no if there are warnings other than the usual output.
12455      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12456      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12457      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12458        lt_prog_compiler_pic_works_CXX=yes
12459      fi
12460    fi
12461    $rm conftest*
12462
12463 fi
12464 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12465 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12466
12467 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12468     case $lt_prog_compiler_pic_CXX in
12469      "" | " "*) ;;
12470      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12471      esac
12472 else
12473     lt_prog_compiler_pic_CXX=
12474      lt_prog_compiler_can_build_shared_CXX=no
12475 fi
12476
12477 fi
12478 case $host_os in
12479   # For platforms which do not support PIC, -DPIC is meaningless:
12480   *djgpp*)
12481     lt_prog_compiler_pic_CXX=
12482     ;;
12483   *)
12484     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12485     ;;
12486 esac
12487
12488 #
12489 # Check to make sure the static flag actually works.
12490 #
12491 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12492 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12493 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12494 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12495   echo $ECHO_N "(cached) $ECHO_C" >&6
12496 else
12497   lt_prog_compiler_static_works_CXX=no
12498    save_LDFLAGS="$LDFLAGS"
12499    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12500    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12501    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12502      # The linker can only warn and ignore the option if not recognized
12503      # So say no if there are warnings
12504      if test -s conftest.err; then
12505        # Append any errors to the config.log.
12506        cat conftest.err 1>&5
12507        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12508        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12509        if diff conftest.exp conftest.er2 >/dev/null; then
12510          lt_prog_compiler_static_works_CXX=yes
12511        fi
12512      else
12513        lt_prog_compiler_static_works_CXX=yes
12514      fi
12515    fi
12516    $rm conftest*
12517    LDFLAGS="$save_LDFLAGS"
12518
12519 fi
12520 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12521 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12522
12523 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12524     :
12525 else
12526     lt_prog_compiler_static_CXX=
12527 fi
12528
12529
12530 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12531 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12532 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12533   echo $ECHO_N "(cached) $ECHO_C" >&6
12534 else
12535   lt_cv_prog_compiler_c_o_CXX=no
12536    $rm -r conftest 2>/dev/null
12537    mkdir conftest
12538    cd conftest
12539    mkdir out
12540    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12541
12542    lt_compiler_flag="-o out/conftest2.$ac_objext"
12543    # Insert the option either (1) after the last *FLAGS variable, or
12544    # (2) before a word containing "conftest.", or (3) at the end.
12545    # Note that $ac_compile itself does not contain backslashes and begins
12546    # with a dollar sign (not a hyphen), so the echo should work correctly.
12547    lt_compile=`echo "$ac_compile" | $SED \
12548    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12549    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12550    -e 's:$: $lt_compiler_flag:'`
12551    (eval echo "\"\$as_me:12551: $lt_compile\"" >&5)
12552    (eval "$lt_compile" 2>out/conftest.err)
12553    ac_status=$?
12554    cat out/conftest.err >&5
12555    echo "$as_me:12555: \$? = $ac_status" >&5
12556    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12557    then
12558      # The compiler can only warn and ignore the option if not recognized
12559      # So say no if there are warnings
12560      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12561      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12562      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12563        lt_cv_prog_compiler_c_o_CXX=yes
12564      fi
12565    fi
12566    chmod u+w . 2>&5
12567    $rm conftest*
12568    # SGI C++ compiler will create directory out/ii_files/ for
12569    # template instantiation
12570    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12571    $rm out/* && rmdir out
12572    cd ..
12573    rmdir conftest
12574    $rm conftest*
12575
12576 fi
12577 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12578 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12579
12580
12581 hard_links="nottested"
12582 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12583   # do not overwrite the value of need_locks provided by the user
12584   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12585 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12586   hard_links=yes
12587   $rm conftest*
12588   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12589   touch conftest.a
12590   ln conftest.a conftest.b 2>&5 || hard_links=no
12591   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12592   { echo "$as_me:$LINENO: result: $hard_links" >&5
12593 echo "${ECHO_T}$hard_links" >&6; }
12594   if test "$hard_links" = no; then
12595     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12596 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12597     need_locks=warn
12598   fi
12599 else
12600   need_locks=no
12601 fi
12602
12603 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12604 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12605
12606   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12607   case $host_os in
12608   aix4* | aix5*)
12609     # If we're using GNU nm, then we don't want the "-C" option.
12610     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12611     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12612       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'
12613     else
12614       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'
12615     fi
12616     ;;
12617   pw32*)
12618     export_symbols_cmds_CXX="$ltdll_cmds"
12619   ;;
12620   cygwin* | mingw*)
12621     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'
12622   ;;
12623   *)
12624     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12625   ;;
12626   esac
12627
12628 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12629 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12630 test "$ld_shlibs_CXX" = no && can_build_shared=no
12631
12632 #
12633 # Do we need to explicitly link libc?
12634 #
12635 case "x$archive_cmds_need_lc_CXX" in
12636 x|xyes)
12637   # Assume -lc should be added
12638   archive_cmds_need_lc_CXX=yes
12639
12640   if test "$enable_shared" = yes && test "$GCC" = yes; then
12641     case $archive_cmds_CXX in
12642     *'~'*)
12643       # FIXME: we may have to deal with multi-command sequences.
12644       ;;
12645     '$CC '*)
12646       # Test whether the compiler implicitly links with -lc since on some
12647       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12648       # to ld, don't add -lc before -lgcc.
12649       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12650 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12651       $rm conftest*
12652       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12653
12654       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12655   (eval $ac_compile) 2>&5
12656   ac_status=$?
12657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658   (exit $ac_status); } 2>conftest.err; then
12659         soname=conftest
12660         lib=conftest
12661         libobjs=conftest.$ac_objext
12662         deplibs=
12663         wl=$lt_prog_compiler_wl_CXX
12664         pic_flag=$lt_prog_compiler_pic_CXX
12665         compiler_flags=-v
12666         linker_flags=-v
12667         verstring=
12668         output_objdir=.
12669         libname=conftest
12670         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12671         allow_undefined_flag_CXX=
12672         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12673   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12674   ac_status=$?
12675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676   (exit $ac_status); }
12677         then
12678           archive_cmds_need_lc_CXX=no
12679         else
12680           archive_cmds_need_lc_CXX=yes
12681         fi
12682         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12683       else
12684         cat conftest.err 1>&5
12685       fi
12686       $rm conftest*
12687       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12688 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12689       ;;
12690     esac
12691   fi
12692   ;;
12693 esac
12694
12695 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12696 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12697 library_names_spec=
12698 libname_spec='lib$name'
12699 soname_spec=
12700 shrext_cmds=".so"
12701 postinstall_cmds=
12702 postuninstall_cmds=
12703 finish_cmds=
12704 finish_eval=
12705 shlibpath_var=
12706 shlibpath_overrides_runpath=unknown
12707 version_type=none
12708 dynamic_linker="$host_os ld.so"
12709 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12710 if test "$GCC" = yes; then
12711   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12712   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12713     # if the path contains ";" then we assume it to be the separator
12714     # otherwise default to the standard path separator (i.e. ":") - it is
12715     # assumed that no part of a normal pathname contains ";" but that should
12716     # okay in the real world where ";" in dirpaths is itself problematic.
12717     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12718   else
12719     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12720   fi
12721 else
12722   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12723 fi
12724 need_lib_prefix=unknown
12725 hardcode_into_libs=no
12726
12727 # when you set need_version to no, make sure it does not cause -set_version
12728 # flags to be left without arguments
12729 need_version=unknown
12730
12731 case $host_os in
12732 aix3*)
12733   version_type=linux
12734   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12735   shlibpath_var=LIBPATH
12736
12737   # AIX 3 has no versioning support, so we append a major version to the name.
12738   soname_spec='${libname}${release}${shared_ext}$major'
12739   ;;
12740
12741 aix4* | aix5*)
12742   version_type=linux
12743   need_lib_prefix=no
12744   need_version=no
12745   hardcode_into_libs=yes
12746   if test "$host_cpu" = ia64; then
12747     # AIX 5 supports IA64
12748     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12749     shlibpath_var=LD_LIBRARY_PATH
12750   else
12751     # With GCC up to 2.95.x, collect2 would create an import file
12752     # for dependence libraries.  The import file would start with
12753     # the line `#! .'.  This would cause the generated library to
12754     # depend on `.', always an invalid library.  This was fixed in
12755     # development snapshots of GCC prior to 3.0.
12756     case $host_os in
12757       aix4 | aix4.[01] | aix4.[01].*)
12758       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12759            echo ' yes '
12760            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12761         :
12762       else
12763         can_build_shared=no
12764       fi
12765       ;;
12766     esac
12767     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12768     # soname into executable. Probably we can add versioning support to
12769     # collect2, so additional links can be useful in future.
12770     if test "$aix_use_runtimelinking" = yes; then
12771       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12772       # instead of lib<name>.a to let people know that these are not
12773       # typical AIX shared libraries.
12774       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12775     else
12776       # We preserve .a as extension for shared libraries through AIX4.2
12777       # and later when we are not doing run time linking.
12778       library_names_spec='${libname}${release}.a $libname.a'
12779       soname_spec='${libname}${release}${shared_ext}$major'
12780     fi
12781     shlibpath_var=LIBPATH
12782   fi
12783   ;;
12784
12785 amigaos*)
12786   library_names_spec='$libname.ixlibrary $libname.a'
12787   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12788   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'
12789   ;;
12790
12791 beos*)
12792   library_names_spec='${libname}${shared_ext}'
12793   dynamic_linker="$host_os ld.so"
12794   shlibpath_var=LIBRARY_PATH
12795   ;;
12796
12797 bsdi[45]*)
12798   version_type=linux
12799   need_version=no
12800   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12801   soname_spec='${libname}${release}${shared_ext}$major'
12802   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12803   shlibpath_var=LD_LIBRARY_PATH
12804   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12805   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12806   # the default ld.so.conf also contains /usr/contrib/lib and
12807   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12808   # libtool to hard-code these into programs
12809   ;;
12810
12811 cygwin* | mingw* | pw32*)
12812   version_type=windows
12813   shrext_cmds=".dll"
12814   need_version=no
12815   need_lib_prefix=no
12816
12817   case $GCC,$host_os in
12818   yes,cygwin* | yes,mingw* | yes,pw32*)
12819     library_names_spec='$libname.dll.a'
12820     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12821     postinstall_cmds='base_file=`basename \${file}`~
12822       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12823       dldir=$destdir/`dirname \$dlpath`~
12824       test -d \$dldir || mkdir -p \$dldir~
12825       $install_prog $dir/$dlname \$dldir/$dlname~
12826       chmod a+x \$dldir/$dlname'
12827     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12828       dlpath=$dir/\$dldll~
12829        $rm \$dlpath'
12830     shlibpath_overrides_runpath=yes
12831
12832     case $host_os in
12833     cygwin*)
12834       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12835       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12836       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12837       ;;
12838     mingw*)
12839       # MinGW DLLs use traditional 'lib' prefix
12840       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12841       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12842       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12843         # It is most probably a Windows format PATH printed by
12844         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12845         # path with ; separators, and with drive letters. We can handle the
12846         # drive letters (cygwin fileutils understands them), so leave them,
12847         # especially as we might pass files found there to a mingw objdump,
12848         # which wouldn't understand a cygwinified path. Ahh.
12849         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12850       else
12851         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12852       fi
12853       ;;
12854     pw32*)
12855       # pw32 DLLs use 'pw' prefix rather than 'lib'
12856       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12857       ;;
12858     esac
12859     ;;
12860
12861   *)
12862     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12863     ;;
12864   esac
12865   dynamic_linker='Win32 ld.exe'
12866   # FIXME: first we should search . and the directory the executable is in
12867   shlibpath_var=PATH
12868   ;;
12869
12870 darwin* | rhapsody*)
12871   dynamic_linker="$host_os dyld"
12872   version_type=darwin
12873   need_lib_prefix=no
12874   need_version=no
12875   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12876   soname_spec='${libname}${release}${major}$shared_ext'
12877   shlibpath_overrides_runpath=yes
12878   shlibpath_var=DYLD_LIBRARY_PATH
12879   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12880   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12881   if test "$GCC" = yes; then
12882     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12883   else
12884     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12885   fi
12886   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12887   ;;
12888
12889 dgux*)
12890   version_type=linux
12891   need_lib_prefix=no
12892   need_version=no
12893   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12894   soname_spec='${libname}${release}${shared_ext}$major'
12895   shlibpath_var=LD_LIBRARY_PATH
12896   ;;
12897
12898 freebsd1*)
12899   dynamic_linker=no
12900   ;;
12901
12902 kfreebsd*-gnu)
12903   version_type=linux
12904   need_lib_prefix=no
12905   need_version=no
12906   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12907   soname_spec='${libname}${release}${shared_ext}$major'
12908   shlibpath_var=LD_LIBRARY_PATH
12909   shlibpath_overrides_runpath=no
12910   hardcode_into_libs=yes
12911   dynamic_linker='GNU ld.so'
12912   ;;
12913
12914 freebsd* | dragonfly*)
12915   # DragonFly does not have aout.  When/if they implement a new
12916   # versioning mechanism, adjust this.
12917   if test -x /usr/bin/objformat; then
12918     objformat=`/usr/bin/objformat`
12919   else
12920     case $host_os in
12921     freebsd[123]*) objformat=aout ;;
12922     *) objformat=elf ;;
12923     esac
12924   fi
12925   version_type=freebsd-$objformat
12926   case $version_type in
12927     freebsd-elf*)
12928       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12929       need_version=no
12930       need_lib_prefix=no
12931       ;;
12932     freebsd-*)
12933       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12934       need_version=yes
12935       ;;
12936   esac
12937   shlibpath_var=LD_LIBRARY_PATH
12938   case $host_os in
12939   freebsd2*)
12940     shlibpath_overrides_runpath=yes
12941     ;;
12942   freebsd3.[01]* | freebsdelf3.[01]*)
12943     shlibpath_overrides_runpath=yes
12944     hardcode_into_libs=yes
12945     ;;
12946   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12947   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12948     shlibpath_overrides_runpath=no
12949     hardcode_into_libs=yes
12950     ;;
12951   freebsd*) # from 4.6 on
12952     shlibpath_overrides_runpath=yes
12953     hardcode_into_libs=yes
12954     ;;
12955   esac
12956   ;;
12957
12958 gnu*)
12959   version_type=linux
12960   need_lib_prefix=no
12961   need_version=no
12962   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12963   soname_spec='${libname}${release}${shared_ext}$major'
12964   shlibpath_var=LD_LIBRARY_PATH
12965   hardcode_into_libs=yes
12966   ;;
12967
12968 hpux9* | hpux10* | hpux11*)
12969   # Give a soname corresponding to the major version so that dld.sl refuses to
12970   # link against other versions.
12971   version_type=sunos
12972   need_lib_prefix=no
12973   need_version=no
12974   case $host_cpu in
12975   ia64*)
12976     shrext_cmds='.so'
12977     hardcode_into_libs=yes
12978     dynamic_linker="$host_os dld.so"
12979     shlibpath_var=LD_LIBRARY_PATH
12980     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12981     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12982     soname_spec='${libname}${release}${shared_ext}$major'
12983     if test "X$HPUX_IA64_MODE" = X32; then
12984       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12985     else
12986       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12987     fi
12988     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12989     ;;
12990    hppa*64*)
12991      shrext_cmds='.sl'
12992      hardcode_into_libs=yes
12993      dynamic_linker="$host_os dld.sl"
12994      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12995      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12996      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12997      soname_spec='${libname}${release}${shared_ext}$major'
12998      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12999      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13000      ;;
13001    *)
13002     shrext_cmds='.sl'
13003     dynamic_linker="$host_os dld.sl"
13004     shlibpath_var=SHLIB_PATH
13005     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13006     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13007     soname_spec='${libname}${release}${shared_ext}$major'
13008     ;;
13009   esac
13010   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13011   postinstall_cmds='chmod 555 $lib'
13012   ;;
13013
13014 interix3*)
13015   version_type=linux
13016   need_lib_prefix=no
13017   need_version=no
13018   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13019   soname_spec='${libname}${release}${shared_ext}$major'
13020   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13021   shlibpath_var=LD_LIBRARY_PATH
13022   shlibpath_overrides_runpath=no
13023   hardcode_into_libs=yes
13024   ;;
13025
13026 irix5* | irix6* | nonstopux*)
13027   case $host_os in
13028     nonstopux*) version_type=nonstopux ;;
13029     *)
13030         if test "$lt_cv_prog_gnu_ld" = yes; then
13031                 version_type=linux
13032         else
13033                 version_type=irix
13034         fi ;;
13035   esac
13036   need_lib_prefix=no
13037   need_version=no
13038   soname_spec='${libname}${release}${shared_ext}$major'
13039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13040   case $host_os in
13041   irix5* | nonstopux*)
13042     libsuff= shlibsuff=
13043     ;;
13044   *)
13045     case $LD in # libtool.m4 will add one of these switches to LD
13046     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13047       libsuff= shlibsuff= libmagic=32-bit;;
13048     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13049       libsuff=32 shlibsuff=N32 libmagic=N32;;
13050     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13051       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13052     *) libsuff= shlibsuff= libmagic=never-match;;
13053     esac
13054     ;;
13055   esac
13056   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13057   shlibpath_overrides_runpath=no
13058   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13059   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13060   hardcode_into_libs=yes
13061   ;;
13062
13063 # No shared lib support for Linux oldld, aout, or coff.
13064 linux*oldld* | linux*aout* | linux*coff*)
13065   dynamic_linker=no
13066   ;;
13067
13068 # This must be Linux ELF.
13069 linux*)
13070   version_type=linux
13071   need_lib_prefix=no
13072   need_version=no
13073   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13074   soname_spec='${libname}${release}${shared_ext}$major'
13075   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13076   shlibpath_var=LD_LIBRARY_PATH
13077   shlibpath_overrides_runpath=no
13078   # This implies no fast_install, which is unacceptable.
13079   # Some rework will be needed to allow for fast_install
13080   # before this can be enabled.
13081   hardcode_into_libs=yes
13082
13083   # Append ld.so.conf contents to the search path
13084   if test -f /etc/ld.so.conf; then
13085     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13086     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13087   fi
13088
13089   # We used to test for /lib/ld.so.1 and disable shared libraries on
13090   # powerpc, because MkLinux only supported shared libraries with the
13091   # GNU dynamic linker.  Since this was broken with cross compilers,
13092   # most powerpc-linux boxes support dynamic linking these days and
13093   # people can always --disable-shared, the test was removed, and we
13094   # assume the GNU/Linux dynamic linker is in use.
13095   dynamic_linker='GNU/Linux ld.so'
13096   ;;
13097
13098 knetbsd*-gnu)
13099   version_type=linux
13100   need_lib_prefix=no
13101   need_version=no
13102   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13103   soname_spec='${libname}${release}${shared_ext}$major'
13104   shlibpath_var=LD_LIBRARY_PATH
13105   shlibpath_overrides_runpath=no
13106   hardcode_into_libs=yes
13107   dynamic_linker='GNU ld.so'
13108   ;;
13109
13110 netbsd*)
13111   version_type=sunos
13112   need_lib_prefix=no
13113   need_version=no
13114   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13115     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13116     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13117     dynamic_linker='NetBSD (a.out) ld.so'
13118   else
13119     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13120     soname_spec='${libname}${release}${shared_ext}$major'
13121     dynamic_linker='NetBSD ld.elf_so'
13122   fi
13123   shlibpath_var=LD_LIBRARY_PATH
13124   shlibpath_overrides_runpath=yes
13125   hardcode_into_libs=yes
13126   ;;
13127
13128 newsos6)
13129   version_type=linux
13130   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13131   shlibpath_var=LD_LIBRARY_PATH
13132   shlibpath_overrides_runpath=yes
13133   ;;
13134
13135 nto-qnx*)
13136   version_type=linux
13137   need_lib_prefix=no
13138   need_version=no
13139   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13140   soname_spec='${libname}${release}${shared_ext}$major'
13141   shlibpath_var=LD_LIBRARY_PATH
13142   shlibpath_overrides_runpath=yes
13143   ;;
13144
13145 openbsd*)
13146   version_type=sunos
13147   sys_lib_dlsearch_path_spec="/usr/lib"
13148   need_lib_prefix=no
13149   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13150   case $host_os in
13151     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13152     *)                         need_version=no  ;;
13153   esac
13154   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13155   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13156   shlibpath_var=LD_LIBRARY_PATH
13157   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13158     case $host_os in
13159       openbsd2.[89] | openbsd2.[89].*)
13160         shlibpath_overrides_runpath=no
13161         ;;
13162       *)
13163         shlibpath_overrides_runpath=yes
13164         ;;
13165       esac
13166   else
13167     shlibpath_overrides_runpath=yes
13168   fi
13169   ;;
13170
13171 os2*)
13172   libname_spec='$name'
13173   shrext_cmds=".dll"
13174   need_lib_prefix=no
13175   library_names_spec='$libname${shared_ext} $libname.a'
13176   dynamic_linker='OS/2 ld.exe'
13177   shlibpath_var=LIBPATH
13178   ;;
13179
13180 osf3* | osf4* | osf5*)
13181   version_type=osf
13182   need_lib_prefix=no
13183   need_version=no
13184   soname_spec='${libname}${release}${shared_ext}$major'
13185   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13186   shlibpath_var=LD_LIBRARY_PATH
13187   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13188   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13189   ;;
13190
13191 solaris*)
13192   version_type=linux
13193   need_lib_prefix=no
13194   need_version=no
13195   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13196   soname_spec='${libname}${release}${shared_ext}$major'
13197   shlibpath_var=LD_LIBRARY_PATH
13198   shlibpath_overrides_runpath=yes
13199   hardcode_into_libs=yes
13200   # ldd complains unless libraries are executable
13201   postinstall_cmds='chmod +x $lib'
13202   ;;
13203
13204 sunos4*)
13205   version_type=sunos
13206   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13207   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13208   shlibpath_var=LD_LIBRARY_PATH
13209   shlibpath_overrides_runpath=yes
13210   if test "$with_gnu_ld" = yes; then
13211     need_lib_prefix=no
13212   fi
13213   need_version=yes
13214   ;;
13215
13216 sysv4 | sysv4.3*)
13217   version_type=linux
13218   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13219   soname_spec='${libname}${release}${shared_ext}$major'
13220   shlibpath_var=LD_LIBRARY_PATH
13221   case $host_vendor in
13222     sni)
13223       shlibpath_overrides_runpath=no
13224       need_lib_prefix=no
13225       export_dynamic_flag_spec='${wl}-Blargedynsym'
13226       runpath_var=LD_RUN_PATH
13227       ;;
13228     siemens)
13229       need_lib_prefix=no
13230       ;;
13231     motorola)
13232       need_lib_prefix=no
13233       need_version=no
13234       shlibpath_overrides_runpath=no
13235       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13236       ;;
13237   esac
13238   ;;
13239
13240 sysv4*MP*)
13241   if test -d /usr/nec ;then
13242     version_type=linux
13243     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13244     soname_spec='$libname${shared_ext}.$major'
13245     shlibpath_var=LD_LIBRARY_PATH
13246   fi
13247   ;;
13248
13249 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13250   version_type=freebsd-elf
13251   need_lib_prefix=no
13252   need_version=no
13253   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13254   soname_spec='${libname}${release}${shared_ext}$major'
13255   shlibpath_var=LD_LIBRARY_PATH
13256   hardcode_into_libs=yes
13257   if test "$with_gnu_ld" = yes; then
13258     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13259     shlibpath_overrides_runpath=no
13260   else
13261     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13262     shlibpath_overrides_runpath=yes
13263     case $host_os in
13264       sco3.2v5*)
13265         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13266         ;;
13267     esac
13268   fi
13269   sys_lib_dlsearch_path_spec='/usr/lib'
13270   ;;
13271
13272 uts4*)
13273   version_type=linux
13274   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13275   soname_spec='${libname}${release}${shared_ext}$major'
13276   shlibpath_var=LD_LIBRARY_PATH
13277   ;;
13278
13279 *)
13280   dynamic_linker=no
13281   ;;
13282 esac
13283 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13284 echo "${ECHO_T}$dynamic_linker" >&6; }
13285 test "$dynamic_linker" = no && can_build_shared=no
13286
13287 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13288 if test "$GCC" = yes; then
13289   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13290 fi
13291
13292 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13293 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13294 hardcode_action_CXX=
13295 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13296    test -n "$runpath_var_CXX" || \
13297    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13298
13299   # We can hardcode non-existant directories.
13300   if test "$hardcode_direct_CXX" != no &&
13301      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13302      # have to relink, otherwise we might link with an installed library
13303      # when we should be linking with a yet-to-be-installed one
13304      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13305      test "$hardcode_minus_L_CXX" != no; then
13306     # Linking always hardcodes the temporary library directory.
13307     hardcode_action_CXX=relink
13308   else
13309     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13310     hardcode_action_CXX=immediate
13311   fi
13312 else
13313   # We cannot hardcode anything, or else we can only hardcode existing
13314   # directories.
13315   hardcode_action_CXX=unsupported
13316 fi
13317 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13318 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13319
13320 if test "$hardcode_action_CXX" = relink; then
13321   # Fast installation is not supported
13322   enable_fast_install=no
13323 elif test "$shlibpath_overrides_runpath" = yes ||
13324      test "$enable_shared" = no; then
13325   # Fast installation is not necessary
13326   enable_fast_install=needless
13327 fi
13328
13329
13330 # The else clause should only fire when bootstrapping the
13331 # libtool distribution, otherwise you forgot to ship ltmain.sh
13332 # with your package, and you will get complaints that there are
13333 # no rules to generate ltmain.sh.
13334 if test -f "$ltmain"; then
13335   # See if we are running on zsh, and set the options which allow our commands through
13336   # without removal of \ escapes.
13337   if test -n "${ZSH_VERSION+set}" ; then
13338     setopt NO_GLOB_SUBST
13339   fi
13340   # Now quote all the things that may contain metacharacters while being
13341   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13342   # variables and quote the copies for generation of the libtool script.
13343   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13344     SED SHELL STRIP \
13345     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13346     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13347     deplibs_check_method reload_flag reload_cmds need_locks \
13348     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13349     lt_cv_sys_global_symbol_to_c_name_address \
13350     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13351     old_postinstall_cmds old_postuninstall_cmds \
13352     compiler_CXX \
13353     CC_CXX \
13354     LD_CXX \
13355     lt_prog_compiler_wl_CXX \
13356     lt_prog_compiler_pic_CXX \
13357     lt_prog_compiler_static_CXX \
13358     lt_prog_compiler_no_builtin_flag_CXX \
13359     export_dynamic_flag_spec_CXX \
13360     thread_safe_flag_spec_CXX \
13361     whole_archive_flag_spec_CXX \
13362     enable_shared_with_static_runtimes_CXX \
13363     old_archive_cmds_CXX \
13364     old_archive_from_new_cmds_CXX \
13365     predep_objects_CXX \
13366     postdep_objects_CXX \
13367     predeps_CXX \
13368     postdeps_CXX \
13369     compiler_lib_search_path_CXX \
13370     archive_cmds_CXX \
13371     archive_expsym_cmds_CXX \
13372     postinstall_cmds_CXX \
13373     postuninstall_cmds_CXX \
13374     old_archive_from_expsyms_cmds_CXX \
13375     allow_undefined_flag_CXX \
13376     no_undefined_flag_CXX \
13377     export_symbols_cmds_CXX \
13378     hardcode_libdir_flag_spec_CXX \
13379     hardcode_libdir_flag_spec_ld_CXX \
13380     hardcode_libdir_separator_CXX \
13381     hardcode_automatic_CXX \
13382     module_cmds_CXX \
13383     module_expsym_cmds_CXX \
13384     lt_cv_prog_compiler_c_o_CXX \
13385     exclude_expsyms_CXX \
13386     include_expsyms_CXX; do
13387
13388     case $var in
13389     old_archive_cmds_CXX | \
13390     old_archive_from_new_cmds_CXX | \
13391     archive_cmds_CXX | \
13392     archive_expsym_cmds_CXX | \
13393     module_cmds_CXX | \
13394     module_expsym_cmds_CXX | \
13395     old_archive_from_expsyms_cmds_CXX | \
13396     export_symbols_cmds_CXX | \
13397     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13398     postinstall_cmds | postuninstall_cmds | \
13399     old_postinstall_cmds | old_postuninstall_cmds | \
13400     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13401       # Double-quote double-evaled strings.
13402       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13403       ;;
13404     *)
13405       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13406       ;;
13407     esac
13408   done
13409
13410   case $lt_echo in
13411   *'\$0 --fallback-echo"')
13412     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13413     ;;
13414   esac
13415
13416 cfgfile="$ofile"
13417
13418   cat <<__EOF__ >> "$cfgfile"
13419 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13420
13421 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13422
13423 # Shell to use when invoking shell scripts.
13424 SHELL=$lt_SHELL
13425
13426 # Whether or not to build shared libraries.
13427 build_libtool_libs=$enable_shared
13428
13429 # Whether or not to build static libraries.
13430 build_old_libs=$enable_static
13431
13432 # Whether or not to add -lc for building shared libraries.
13433 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13434
13435 # Whether or not to disallow shared libs when runtime libs are static
13436 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13437
13438 # Whether or not to optimize for fast installation.
13439 fast_install=$enable_fast_install
13440
13441 # The host system.
13442 host_alias=$host_alias
13443 host=$host
13444 host_os=$host_os
13445
13446 # The build system.
13447 build_alias=$build_alias
13448 build=$build
13449 build_os=$build_os
13450
13451 # An echo program that does not interpret backslashes.
13452 echo=$lt_echo
13453
13454 # The archiver.
13455 AR=$lt_AR
13456 AR_FLAGS=$lt_AR_FLAGS
13457
13458 # A C compiler.
13459 LTCC=$lt_LTCC
13460
13461 # LTCC compiler flags.
13462 LTCFLAGS=$lt_LTCFLAGS
13463
13464 # A language-specific compiler.
13465 CC=$lt_compiler_CXX
13466
13467 # Is the compiler the GNU C compiler?
13468 with_gcc=$GCC_CXX
13469
13470 # An ERE matcher.
13471 EGREP=$lt_EGREP
13472
13473 # The linker used to build libraries.
13474 LD=$lt_LD_CXX
13475
13476 # Whether we need hard or soft links.
13477 LN_S=$lt_LN_S
13478
13479 # A BSD-compatible nm program.
13480 NM=$lt_NM
13481
13482 # A symbol stripping program
13483 STRIP=$lt_STRIP
13484
13485 # Used to examine libraries when file_magic_cmd begins "file"
13486 MAGIC_CMD=$MAGIC_CMD
13487
13488 # Used on cygwin: DLL creation program.
13489 DLLTOOL="$DLLTOOL"
13490
13491 # Used on cygwin: object dumper.
13492 OBJDUMP="$OBJDUMP"
13493
13494 # Used on cygwin: assembler.
13495 AS="$AS"
13496
13497 # The name of the directory that contains temporary libtool files.
13498 objdir=$objdir
13499
13500 # How to create reloadable object files.
13501 reload_flag=$lt_reload_flag
13502 reload_cmds=$lt_reload_cmds
13503
13504 # How to pass a linker flag through the compiler.
13505 wl=$lt_lt_prog_compiler_wl_CXX
13506
13507 # Object file suffix (normally "o").
13508 objext="$ac_objext"
13509
13510 # Old archive suffix (normally "a").
13511 libext="$libext"
13512
13513 # Shared library suffix (normally ".so").
13514 shrext_cmds='$shrext_cmds'
13515
13516 # Executable file suffix (normally "").
13517 exeext="$exeext"
13518
13519 # Additional compiler flags for building library objects.
13520 pic_flag=$lt_lt_prog_compiler_pic_CXX
13521 pic_mode=$pic_mode
13522
13523 # What is the maximum length of a command?
13524 max_cmd_len=$lt_cv_sys_max_cmd_len
13525
13526 # Does compiler simultaneously support -c and -o options?
13527 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13528
13529 # Must we lock files when doing compilation?
13530 need_locks=$lt_need_locks
13531
13532 # Do we need the lib prefix for modules?
13533 need_lib_prefix=$need_lib_prefix
13534
13535 # Do we need a version for libraries?
13536 need_version=$need_version
13537
13538 # Whether dlopen is supported.
13539 dlopen_support=$enable_dlopen
13540
13541 # Whether dlopen of programs is supported.
13542 dlopen_self=$enable_dlopen_self
13543
13544 # Whether dlopen of statically linked programs is supported.
13545 dlopen_self_static=$enable_dlopen_self_static
13546
13547 # Compiler flag to prevent dynamic linking.
13548 link_static_flag=$lt_lt_prog_compiler_static_CXX
13549
13550 # Compiler flag to turn off builtin functions.
13551 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13552
13553 # Compiler flag to allow reflexive dlopens.
13554 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13555
13556 # Compiler flag to generate shared objects directly from archives.
13557 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13558
13559 # Compiler flag to generate thread-safe objects.
13560 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13561
13562 # Library versioning type.
13563 version_type=$version_type
13564
13565 # Format of library name prefix.
13566 libname_spec=$lt_libname_spec
13567
13568 # List of archive names.  First name is the real one, the rest are links.
13569 # The last name is the one that the linker finds with -lNAME.
13570 library_names_spec=$lt_library_names_spec
13571
13572 # The coded name of the library, if different from the real name.
13573 soname_spec=$lt_soname_spec
13574
13575 # Commands used to build and install an old-style archive.
13576 RANLIB=$lt_RANLIB
13577 old_archive_cmds=$lt_old_archive_cmds_CXX
13578 old_postinstall_cmds=$lt_old_postinstall_cmds
13579 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13580
13581 # Create an old-style archive from a shared archive.
13582 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13583
13584 # Create a temporary old-style archive to link instead of a shared archive.
13585 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13586
13587 # Commands used to build and install a shared archive.
13588 archive_cmds=$lt_archive_cmds_CXX
13589 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13590 postinstall_cmds=$lt_postinstall_cmds
13591 postuninstall_cmds=$lt_postuninstall_cmds
13592
13593 # Commands used to build a loadable module (assumed same as above if empty)
13594 module_cmds=$lt_module_cmds_CXX
13595 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13596
13597 # Commands to strip libraries.
13598 old_striplib=$lt_old_striplib
13599 striplib=$lt_striplib
13600
13601 # Dependencies to place before the objects being linked to create a
13602 # shared library.
13603 predep_objects=$lt_predep_objects_CXX
13604
13605 # Dependencies to place after the objects being linked to create a
13606 # shared library.
13607 postdep_objects=$lt_postdep_objects_CXX
13608
13609 # Dependencies to place before the objects being linked to create a
13610 # shared library.
13611 predeps=$lt_predeps_CXX
13612
13613 # Dependencies to place after the objects being linked to create a
13614 # shared library.
13615 postdeps=$lt_postdeps_CXX
13616
13617 # The library search path used internally by the compiler when linking
13618 # a shared library.
13619 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13620
13621 # Method to check whether dependent libraries are shared objects.
13622 deplibs_check_method=$lt_deplibs_check_method
13623
13624 # Command to use when deplibs_check_method == file_magic.
13625 file_magic_cmd=$lt_file_magic_cmd
13626
13627 # Flag that allows shared libraries with undefined symbols to be built.
13628 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13629
13630 # Flag that forces no undefined symbols.
13631 no_undefined_flag=$lt_no_undefined_flag_CXX
13632
13633 # Commands used to finish a libtool library installation in a directory.
13634 finish_cmds=$lt_finish_cmds
13635
13636 # Same as above, but a single script fragment to be evaled but not shown.
13637 finish_eval=$lt_finish_eval
13638
13639 # Take the output of nm and produce a listing of raw symbols and C names.
13640 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13641
13642 # Transform the output of nm in a proper C declaration
13643 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13644
13645 # Transform the output of nm in a C name address pair
13646 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13647
13648 # This is the shared library runtime path variable.
13649 runpath_var=$runpath_var
13650
13651 # This is the shared library path variable.
13652 shlibpath_var=$shlibpath_var
13653
13654 # Is shlibpath searched before the hard-coded library search path?
13655 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13656
13657 # How to hardcode a shared library path into an executable.
13658 hardcode_action=$hardcode_action_CXX
13659
13660 # Whether we should hardcode library paths into libraries.
13661 hardcode_into_libs=$hardcode_into_libs
13662
13663 # Flag to hardcode \$libdir into a binary during linking.
13664 # This must work even if \$libdir does not exist.
13665 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13666
13667 # If ld is used when linking, flag to hardcode \$libdir into
13668 # a binary during linking. This must work even if \$libdir does
13669 # not exist.
13670 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13671
13672 # Whether we need a single -rpath flag with a separated argument.
13673 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13674
13675 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13676 # resulting binary.
13677 hardcode_direct=$hardcode_direct_CXX
13678
13679 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13680 # resulting binary.
13681 hardcode_minus_L=$hardcode_minus_L_CXX
13682
13683 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13684 # the resulting binary.
13685 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13686
13687 # Set to yes if building a shared library automatically hardcodes DIR into the library
13688 # and all subsequent libraries and executables linked against it.
13689 hardcode_automatic=$hardcode_automatic_CXX
13690
13691 # Variables whose values should be saved in libtool wrapper scripts and
13692 # restored at relink time.
13693 variables_saved_for_relink="$variables_saved_for_relink"
13694
13695 # Whether libtool must link a program against all its dependency libraries.
13696 link_all_deplibs=$link_all_deplibs_CXX
13697
13698 # Compile-time system search path for libraries
13699 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13700
13701 # Run-time system search path for libraries
13702 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13703
13704 # Fix the shell variable \$srcfile for the compiler.
13705 fix_srcfile_path="$fix_srcfile_path_CXX"
13706
13707 # Set to yes if exported symbols are required.
13708 always_export_symbols=$always_export_symbols_CXX
13709
13710 # The commands to list exported symbols.
13711 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13712
13713 # The commands to extract the exported symbol list from a shared archive.
13714 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13715
13716 # Symbols that should not be listed in the preloaded symbols.
13717 exclude_expsyms=$lt_exclude_expsyms_CXX
13718
13719 # Symbols that must always be exported.
13720 include_expsyms=$lt_include_expsyms_CXX
13721
13722 # ### END LIBTOOL TAG CONFIG: $tagname
13723
13724 __EOF__
13725
13726
13727 else
13728   # If there is no Makefile yet, we rely on a make rule to execute
13729   # `config.status --recheck' to rerun these tests and create the
13730   # libtool script then.
13731   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13732   if test -f "$ltmain_in"; then
13733     test -f Makefile && make "$ltmain"
13734   fi
13735 fi
13736
13737
13738 ac_ext=c
13739 ac_cpp='$CPP $CPPFLAGS'
13740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13743
13744 CC=$lt_save_CC
13745 LDCXX=$LD
13746 LD=$lt_save_LD
13747 GCC=$lt_save_GCC
13748 with_gnu_ldcxx=$with_gnu_ld
13749 with_gnu_ld=$lt_save_with_gnu_ld
13750 lt_cv_path_LDCXX=$lt_cv_path_LD
13751 lt_cv_path_LD=$lt_save_path_LD
13752 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13753 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13754
13755         else
13756           tagname=""
13757         fi
13758         ;;
13759
13760       F77)
13761         if test -n "$F77" && test "X$F77" != "Xno"; then
13762
13763 ac_ext=f
13764 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13765 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13766 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13767
13768
13769 archive_cmds_need_lc_F77=no
13770 allow_undefined_flag_F77=
13771 always_export_symbols_F77=no
13772 archive_expsym_cmds_F77=
13773 export_dynamic_flag_spec_F77=
13774 hardcode_direct_F77=no
13775 hardcode_libdir_flag_spec_F77=
13776 hardcode_libdir_flag_spec_ld_F77=
13777 hardcode_libdir_separator_F77=
13778 hardcode_minus_L_F77=no
13779 hardcode_automatic_F77=no
13780 module_cmds_F77=
13781 module_expsym_cmds_F77=
13782 link_all_deplibs_F77=unknown
13783 old_archive_cmds_F77=$old_archive_cmds
13784 no_undefined_flag_F77=
13785 whole_archive_flag_spec_F77=
13786 enable_shared_with_static_runtimes_F77=no
13787
13788 # Source file extension for f77 test sources.
13789 ac_ext=f
13790
13791 # Object file extension for compiled f77 test sources.
13792 objext=o
13793 objext_F77=$objext
13794
13795 # Code to be used in simple compile tests
13796 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13797
13798 # Code to be used in simple link tests
13799 lt_simple_link_test_code="      program t\n      end\n"
13800
13801 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13802
13803 # If no C compiler was specified, use CC.
13804 LTCC=${LTCC-"$CC"}
13805
13806 # If no C compiler flags were specified, use CFLAGS.
13807 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13808
13809 # Allow CC to be a program name with arguments.
13810 compiler=$CC
13811
13812
13813 # save warnings/boilerplate of simple test code
13814 ac_outfile=conftest.$ac_objext
13815 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13816 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13817 _lt_compiler_boilerplate=`cat conftest.err`
13818 $rm conftest*
13819
13820 ac_outfile=conftest.$ac_objext
13821 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13822 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13823 _lt_linker_boilerplate=`cat conftest.err`
13824 $rm conftest*
13825
13826
13827 # Allow CC to be a program name with arguments.
13828 lt_save_CC="$CC"
13829 CC=${F77-"f77"}
13830 compiler=$CC
13831 compiler_F77=$CC
13832 for cc_temp in $compiler""; do
13833   case $cc_temp in
13834     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13835     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13836     \-*) ;;
13837     *) break;;
13838   esac
13839 done
13840 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13841
13842
13843 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13844 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13845 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13846 echo "${ECHO_T}$can_build_shared" >&6; }
13847
13848 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13849 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13850 test "$can_build_shared" = "no" && enable_shared=no
13851
13852 # On AIX, shared libraries and static libraries use the same namespace, and
13853 # are all built from PIC.
13854 case $host_os in
13855 aix3*)
13856   test "$enable_shared" = yes && enable_static=no
13857   if test -n "$RANLIB"; then
13858     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13859     postinstall_cmds='$RANLIB $lib'
13860   fi
13861   ;;
13862 aix4* | aix5*)
13863   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13864     test "$enable_shared" = yes && enable_static=no
13865   fi
13866   ;;
13867 esac
13868 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13869 echo "${ECHO_T}$enable_shared" >&6; }
13870
13871 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13872 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13873 # Make sure either enable_shared or enable_static is yes.
13874 test "$enable_shared" = yes || enable_static=yes
13875 { echo "$as_me:$LINENO: result: $enable_static" >&5
13876 echo "${ECHO_T}$enable_static" >&6; }
13877
13878 GCC_F77="$G77"
13879 LD_F77="$LD"
13880
13881 lt_prog_compiler_wl_F77=
13882 lt_prog_compiler_pic_F77=
13883 lt_prog_compiler_static_F77=
13884
13885 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13886 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13887
13888   if test "$GCC" = yes; then
13889     lt_prog_compiler_wl_F77='-Wl,'
13890     lt_prog_compiler_static_F77='-static'
13891
13892     case $host_os in
13893       aix*)
13894       # All AIX code is PIC.
13895       if test "$host_cpu" = ia64; then
13896         # AIX 5 now supports IA64 processor
13897         lt_prog_compiler_static_F77='-Bstatic'
13898       fi
13899       ;;
13900
13901     amigaos*)
13902       # FIXME: we need at least 68020 code to build shared libraries, but
13903       # adding the `-m68020' flag to GCC prevents building anything better,
13904       # like `-m68040'.
13905       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13906       ;;
13907
13908     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13909       # PIC is the default for these OSes.
13910       ;;
13911
13912     mingw* | pw32* | os2*)
13913       # This hack is so that the source file can tell whether it is being
13914       # built for inclusion in a dll (and should export symbols for example).
13915       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13916       ;;
13917
13918     darwin* | rhapsody*)
13919       # PIC is the default on this platform
13920       # Common symbols not allowed in MH_DYLIB files
13921       lt_prog_compiler_pic_F77='-fno-common'
13922       ;;
13923
13924     interix3*)
13925       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13926       # Instead, we relocate shared libraries at runtime.
13927       ;;
13928
13929     msdosdjgpp*)
13930       # Just because we use GCC doesn't mean we suddenly get shared libraries
13931       # on systems that don't support them.
13932       lt_prog_compiler_can_build_shared_F77=no
13933       enable_shared=no
13934       ;;
13935
13936     sysv4*MP*)
13937       if test -d /usr/nec; then
13938         lt_prog_compiler_pic_F77=-Kconform_pic
13939       fi
13940       ;;
13941
13942     hpux*)
13943       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13944       # not for PA HP-UX.
13945       case $host_cpu in
13946       hppa*64*|ia64*)
13947         # +Z the default
13948         ;;
13949       *)
13950         lt_prog_compiler_pic_F77='-fPIC'
13951         ;;
13952       esac
13953       ;;
13954
13955     *)
13956       lt_prog_compiler_pic_F77='-fPIC'
13957       ;;
13958     esac
13959   else
13960     # PORTME Check for flag to pass linker flags through the system compiler.
13961     case $host_os in
13962     aix*)
13963       lt_prog_compiler_wl_F77='-Wl,'
13964       if test "$host_cpu" = ia64; then
13965         # AIX 5 now supports IA64 processor
13966         lt_prog_compiler_static_F77='-Bstatic'
13967       else
13968         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13969       fi
13970       ;;
13971       darwin*)
13972         # PIC is the default on this platform
13973         # Common symbols not allowed in MH_DYLIB files
13974        case $cc_basename in
13975          xlc*)
13976          lt_prog_compiler_pic_F77='-qnocommon'
13977          lt_prog_compiler_wl_F77='-Wl,'
13978          ;;
13979        esac
13980        ;;
13981
13982     mingw* | pw32* | os2*)
13983       # This hack is so that the source file can tell whether it is being
13984       # built for inclusion in a dll (and should export symbols for example).
13985       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13986       ;;
13987
13988     hpux9* | hpux10* | hpux11*)
13989       lt_prog_compiler_wl_F77='-Wl,'
13990       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13991       # not for PA HP-UX.
13992       case $host_cpu in
13993       hppa*64*|ia64*)
13994         # +Z the default
13995         ;;
13996       *)
13997         lt_prog_compiler_pic_F77='+Z'
13998         ;;
13999       esac
14000       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14001       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14002       ;;
14003
14004     irix5* | irix6* | nonstopux*)
14005       lt_prog_compiler_wl_F77='-Wl,'
14006       # PIC (with -KPIC) is the default.
14007       lt_prog_compiler_static_F77='-non_shared'
14008       ;;
14009
14010     newsos6)
14011       lt_prog_compiler_pic_F77='-KPIC'
14012       lt_prog_compiler_static_F77='-Bstatic'
14013       ;;
14014
14015     linux*)
14016       case $cc_basename in
14017       icc* | ecc*)
14018         lt_prog_compiler_wl_F77='-Wl,'
14019         lt_prog_compiler_pic_F77='-KPIC'
14020         lt_prog_compiler_static_F77='-static'
14021         ;;
14022       pgcc* | pgf77* | pgf90* | pgf95*)
14023         # Portland Group compilers (*not* the Pentium gcc compiler,
14024         # which looks to be a dead project)
14025         lt_prog_compiler_wl_F77='-Wl,'
14026         lt_prog_compiler_pic_F77='-fpic'
14027         lt_prog_compiler_static_F77='-Bstatic'
14028         ;;
14029       ccc*)
14030         lt_prog_compiler_wl_F77='-Wl,'
14031         # All Alpha code is PIC.
14032         lt_prog_compiler_static_F77='-non_shared'
14033         ;;
14034       esac
14035       ;;
14036
14037     osf3* | osf4* | osf5*)
14038       lt_prog_compiler_wl_F77='-Wl,'
14039       # All OSF/1 code is PIC.
14040       lt_prog_compiler_static_F77='-non_shared'
14041       ;;
14042
14043     solaris*)
14044       lt_prog_compiler_pic_F77='-KPIC'
14045       lt_prog_compiler_static_F77='-Bstatic'
14046       case $cc_basename in
14047       f77* | f90* | f95*)
14048         lt_prog_compiler_wl_F77='-Qoption ld ';;
14049       *)
14050         lt_prog_compiler_wl_F77='-Wl,';;
14051       esac
14052       ;;
14053
14054     sunos4*)
14055       lt_prog_compiler_wl_F77='-Qoption ld '
14056       lt_prog_compiler_pic_F77='-PIC'
14057       lt_prog_compiler_static_F77='-Bstatic'
14058       ;;
14059
14060     sysv4 | sysv4.2uw2* | sysv4.3*)
14061       lt_prog_compiler_wl_F77='-Wl,'
14062       lt_prog_compiler_pic_F77='-KPIC'
14063       lt_prog_compiler_static_F77='-Bstatic'
14064       ;;
14065
14066     sysv4*MP*)
14067       if test -d /usr/nec ;then
14068         lt_prog_compiler_pic_F77='-Kconform_pic'
14069         lt_prog_compiler_static_F77='-Bstatic'
14070       fi
14071       ;;
14072
14073     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14074       lt_prog_compiler_wl_F77='-Wl,'
14075       lt_prog_compiler_pic_F77='-KPIC'
14076       lt_prog_compiler_static_F77='-Bstatic'
14077       ;;
14078
14079     unicos*)
14080       lt_prog_compiler_wl_F77='-Wl,'
14081       lt_prog_compiler_can_build_shared_F77=no
14082       ;;
14083
14084     uts4*)
14085       lt_prog_compiler_pic_F77='-pic'
14086       lt_prog_compiler_static_F77='-Bstatic'
14087       ;;
14088
14089     *)
14090       lt_prog_compiler_can_build_shared_F77=no
14091       ;;
14092     esac
14093   fi
14094
14095 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14096 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14097
14098 #
14099 # Check to make sure the PIC flag actually works.
14100 #
14101 if test -n "$lt_prog_compiler_pic_F77"; then
14102
14103 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14104 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14105 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14106   echo $ECHO_N "(cached) $ECHO_C" >&6
14107 else
14108   lt_prog_compiler_pic_works_F77=no
14109   ac_outfile=conftest.$ac_objext
14110    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14111    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14112    # Insert the option either (1) after the last *FLAGS variable, or
14113    # (2) before a word containing "conftest.", or (3) at the end.
14114    # Note that $ac_compile itself does not contain backslashes and begins
14115    # with a dollar sign (not a hyphen), so the echo should work correctly.
14116    # The option is referenced via a variable to avoid confusing sed.
14117    lt_compile=`echo "$ac_compile" | $SED \
14118    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14119    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14120    -e 's:$: $lt_compiler_flag:'`
14121    (eval echo "\"\$as_me:14121: $lt_compile\"" >&5)
14122    (eval "$lt_compile" 2>conftest.err)
14123    ac_status=$?
14124    cat conftest.err >&5
14125    echo "$as_me:14125: \$? = $ac_status" >&5
14126    if (exit $ac_status) && test -s "$ac_outfile"; then
14127      # The compiler can only warn and ignore the option if not recognized
14128      # So say no if there are warnings other than the usual output.
14129      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14130      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14131      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14132        lt_prog_compiler_pic_works_F77=yes
14133      fi
14134    fi
14135    $rm conftest*
14136
14137 fi
14138 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14139 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14140
14141 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14142     case $lt_prog_compiler_pic_F77 in
14143      "" | " "*) ;;
14144      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14145      esac
14146 else
14147     lt_prog_compiler_pic_F77=
14148      lt_prog_compiler_can_build_shared_F77=no
14149 fi
14150
14151 fi
14152 case $host_os in
14153   # For platforms which do not support PIC, -DPIC is meaningless:
14154   *djgpp*)
14155     lt_prog_compiler_pic_F77=
14156     ;;
14157   *)
14158     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14159     ;;
14160 esac
14161
14162 #
14163 # Check to make sure the static flag actually works.
14164 #
14165 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14166 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14167 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14168 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14169   echo $ECHO_N "(cached) $ECHO_C" >&6
14170 else
14171   lt_prog_compiler_static_works_F77=no
14172    save_LDFLAGS="$LDFLAGS"
14173    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14174    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14175    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14176      # The linker can only warn and ignore the option if not recognized
14177      # So say no if there are warnings
14178      if test -s conftest.err; then
14179        # Append any errors to the config.log.
14180        cat conftest.err 1>&5
14181        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14182        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14183        if diff conftest.exp conftest.er2 >/dev/null; then
14184          lt_prog_compiler_static_works_F77=yes
14185        fi
14186      else
14187        lt_prog_compiler_static_works_F77=yes
14188      fi
14189    fi
14190    $rm conftest*
14191    LDFLAGS="$save_LDFLAGS"
14192
14193 fi
14194 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14195 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14196
14197 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14198     :
14199 else
14200     lt_prog_compiler_static_F77=
14201 fi
14202
14203
14204 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14205 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14206 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14207   echo $ECHO_N "(cached) $ECHO_C" >&6
14208 else
14209   lt_cv_prog_compiler_c_o_F77=no
14210    $rm -r conftest 2>/dev/null
14211    mkdir conftest
14212    cd conftest
14213    mkdir out
14214    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14215
14216    lt_compiler_flag="-o out/conftest2.$ac_objext"
14217    # Insert the option either (1) after the last *FLAGS variable, or
14218    # (2) before a word containing "conftest.", or (3) at the end.
14219    # Note that $ac_compile itself does not contain backslashes and begins
14220    # with a dollar sign (not a hyphen), so the echo should work correctly.
14221    lt_compile=`echo "$ac_compile" | $SED \
14222    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14223    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14224    -e 's:$: $lt_compiler_flag:'`
14225    (eval echo "\"\$as_me:14225: $lt_compile\"" >&5)
14226    (eval "$lt_compile" 2>out/conftest.err)
14227    ac_status=$?
14228    cat out/conftest.err >&5
14229    echo "$as_me:14229: \$? = $ac_status" >&5
14230    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14231    then
14232      # The compiler can only warn and ignore the option if not recognized
14233      # So say no if there are warnings
14234      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14235      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14236      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14237        lt_cv_prog_compiler_c_o_F77=yes
14238      fi
14239    fi
14240    chmod u+w . 2>&5
14241    $rm conftest*
14242    # SGI C++ compiler will create directory out/ii_files/ for
14243    # template instantiation
14244    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14245    $rm out/* && rmdir out
14246    cd ..
14247    rmdir conftest
14248    $rm conftest*
14249
14250 fi
14251 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14252 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14253
14254
14255 hard_links="nottested"
14256 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14257   # do not overwrite the value of need_locks provided by the user
14258   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14259 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14260   hard_links=yes
14261   $rm conftest*
14262   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14263   touch conftest.a
14264   ln conftest.a conftest.b 2>&5 || hard_links=no
14265   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14266   { echo "$as_me:$LINENO: result: $hard_links" >&5
14267 echo "${ECHO_T}$hard_links" >&6; }
14268   if test "$hard_links" = no; then
14269     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14270 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14271     need_locks=warn
14272   fi
14273 else
14274   need_locks=no
14275 fi
14276
14277 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14278 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14279
14280   runpath_var=
14281   allow_undefined_flag_F77=
14282   enable_shared_with_static_runtimes_F77=no
14283   archive_cmds_F77=
14284   archive_expsym_cmds_F77=
14285   old_archive_From_new_cmds_F77=
14286   old_archive_from_expsyms_cmds_F77=
14287   export_dynamic_flag_spec_F77=
14288   whole_archive_flag_spec_F77=
14289   thread_safe_flag_spec_F77=
14290   hardcode_libdir_flag_spec_F77=
14291   hardcode_libdir_flag_spec_ld_F77=
14292   hardcode_libdir_separator_F77=
14293   hardcode_direct_F77=no
14294   hardcode_minus_L_F77=no
14295   hardcode_shlibpath_var_F77=unsupported
14296   link_all_deplibs_F77=unknown
14297   hardcode_automatic_F77=no
14298   module_cmds_F77=
14299   module_expsym_cmds_F77=
14300   always_export_symbols_F77=no
14301   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14302   # include_expsyms should be a list of space-separated symbols to be *always*
14303   # included in the symbol list
14304   include_expsyms_F77=
14305   # exclude_expsyms can be an extended regexp of symbols to exclude
14306   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14307   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14308   # as well as any symbol that contains `d'.
14309   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14310   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14311   # platforms (ab)use it in PIC code, but their linkers get confused if
14312   # the symbol is explicitly referenced.  Since portable code cannot
14313   # rely on this symbol name, it's probably fine to never include it in
14314   # preloaded symbol tables.
14315   extract_expsyms_cmds=
14316   # Just being paranoid about ensuring that cc_basename is set.
14317   for cc_temp in $compiler""; do
14318   case $cc_temp in
14319     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14320     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14321     \-*) ;;
14322     *) break;;
14323   esac
14324 done
14325 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14326
14327   case $host_os in
14328   cygwin* | mingw* | pw32*)
14329     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14330     # When not using gcc, we currently assume that we are using
14331     # Microsoft Visual C++.
14332     if test "$GCC" != yes; then
14333       with_gnu_ld=no
14334     fi
14335     ;;
14336   interix*)
14337     # we just hope/assume this is gcc and not c89 (= MSVC++)
14338     with_gnu_ld=yes
14339     ;;
14340   openbsd*)
14341     with_gnu_ld=no
14342     ;;
14343   esac
14344
14345   ld_shlibs_F77=yes
14346   if test "$with_gnu_ld" = yes; then
14347     # If archive_cmds runs LD, not CC, wlarc should be empty
14348     wlarc='${wl}'
14349
14350     # Set some defaults for GNU ld with shared library support. These
14351     # are reset later if shared libraries are not supported. Putting them
14352     # here allows them to be overridden if necessary.
14353     runpath_var=LD_RUN_PATH
14354     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14355     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14356     # ancient GNU ld didn't support --whole-archive et. al.
14357     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14358         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14359       else
14360         whole_archive_flag_spec_F77=
14361     fi
14362     supports_anon_versioning=no
14363     case `$LD -v 2>/dev/null` in
14364       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14365       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14366       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14367       *\ 2.11.*) ;; # other 2.11 versions
14368       *) supports_anon_versioning=yes ;;
14369     esac
14370
14371     # See if GNU ld supports shared libraries.
14372     case $host_os in
14373     aix3* | aix4* | aix5*)
14374       # On AIX/PPC, the GNU linker is very broken
14375       if test "$host_cpu" != ia64; then
14376         ld_shlibs_F77=no
14377         cat <<EOF 1>&2
14378
14379 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14380 *** to be unable to reliably create shared libraries on AIX.
14381 *** Therefore, libtool is disabling shared libraries support.  If you
14382 *** really care for shared libraries, you may want to modify your PATH
14383 *** so that a non-GNU linker is found, and then restart.
14384
14385 EOF
14386       fi
14387       ;;
14388
14389     amigaos*)
14390       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)'
14391       hardcode_libdir_flag_spec_F77='-L$libdir'
14392       hardcode_minus_L_F77=yes
14393
14394       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14395       # that the semantics of dynamic libraries on AmigaOS, at least up
14396       # to version 4, is to share data among multiple programs linked
14397       # with the same dynamic library.  Since this doesn't match the
14398       # behavior of shared libraries on other platforms, we can't use
14399       # them.
14400       ld_shlibs_F77=no
14401       ;;
14402
14403     beos*)
14404       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14405         allow_undefined_flag_F77=unsupported
14406         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14407         # support --undefined.  This deserves some investigation.  FIXME
14408         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14409       else
14410         ld_shlibs_F77=no
14411       fi
14412       ;;
14413
14414     cygwin* | mingw* | pw32*)
14415       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14416       # as there is no search path for DLLs.
14417       hardcode_libdir_flag_spec_F77='-L$libdir'
14418       allow_undefined_flag_F77=unsupported
14419       always_export_symbols_F77=no
14420       enable_shared_with_static_runtimes_F77=yes
14421       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14422
14423       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14424         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14425         # If the export-symbols file already is a .def file (1st line
14426         # is EXPORTS), use it as is; otherwise, prepend...
14427         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14428           cp $export_symbols $output_objdir/$soname.def;
14429         else
14430           echo EXPORTS > $output_objdir/$soname.def;
14431           cat $export_symbols >> $output_objdir/$soname.def;
14432         fi~
14433         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14434       else
14435         ld_shlibs_F77=no
14436       fi
14437       ;;
14438
14439     interix3*)
14440       hardcode_direct_F77=no
14441       hardcode_shlibpath_var_F77=no
14442       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14443       export_dynamic_flag_spec_F77='${wl}-E'
14444       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14445       # Instead, shared libraries are loaded at an image base (0x10000000 by
14446       # default) and relocated if they conflict, which is a slow very memory
14447       # consuming and fragmenting process.  To avoid this, we pick a random,
14448       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14449       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14450       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'
14451       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'
14452       ;;
14453
14454     linux*)
14455       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14456         tmp_addflag=
14457         case $cc_basename,$host_cpu in
14458         pgcc*)                          # Portland Group C compiler
14459           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'
14460           tmp_addflag=' $pic_flag'
14461           ;;
14462         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14463           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'
14464           tmp_addflag=' $pic_flag -Mnomain' ;;
14465         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14466           tmp_addflag=' -i_dynamic' ;;
14467         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14468           tmp_addflag=' -i_dynamic -nofor_main' ;;
14469         ifc* | ifort*)                  # Intel Fortran compiler
14470           tmp_addflag=' -nofor_main' ;;
14471         esac
14472         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14473
14474         if test $supports_anon_versioning = yes; then
14475           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14476   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14477   $echo "local: *; };" >> $output_objdir/$libname.ver~
14478           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14479         fi
14480       else
14481         ld_shlibs_F77=no
14482       fi
14483       ;;
14484
14485     netbsd*)
14486       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14487         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14488         wlarc=
14489       else
14490         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14491         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14492       fi
14493       ;;
14494
14495     solaris*)
14496       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14497         ld_shlibs_F77=no
14498         cat <<EOF 1>&2
14499
14500 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14501 *** create shared libraries on Solaris systems.  Therefore, libtool
14502 *** is disabling shared libraries support.  We urge you to upgrade GNU
14503 *** binutils to release 2.9.1 or newer.  Another option is to modify
14504 *** your PATH or compiler configuration so that the native linker is
14505 *** used, and then restart.
14506
14507 EOF
14508       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14509         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14510         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14511       else
14512         ld_shlibs_F77=no
14513       fi
14514       ;;
14515
14516     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14517       case `$LD -v 2>&1` in
14518         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14519         ld_shlibs_F77=no
14520         cat <<_LT_EOF 1>&2
14521
14522 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14523 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14524 *** is disabling shared libraries support.  We urge you to upgrade GNU
14525 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14526 *** your PATH or compiler configuration so that the native linker is
14527 *** used, and then restart.
14528
14529 _LT_EOF
14530         ;;
14531         *)
14532           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14533             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14534             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14535             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14536           else
14537             ld_shlibs_F77=no
14538           fi
14539         ;;
14540       esac
14541       ;;
14542
14543     sunos4*)
14544       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14545       wlarc=
14546       hardcode_direct_F77=yes
14547       hardcode_shlibpath_var_F77=no
14548       ;;
14549
14550     *)
14551       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14552         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14553         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14554       else
14555         ld_shlibs_F77=no
14556       fi
14557       ;;
14558     esac
14559
14560     if test "$ld_shlibs_F77" = no; then
14561       runpath_var=
14562       hardcode_libdir_flag_spec_F77=
14563       export_dynamic_flag_spec_F77=
14564       whole_archive_flag_spec_F77=
14565     fi
14566   else
14567     # PORTME fill in a description of your system's linker (not GNU ld)
14568     case $host_os in
14569     aix3*)
14570       allow_undefined_flag_F77=unsupported
14571       always_export_symbols_F77=yes
14572       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'
14573       # Note: this linker hardcodes the directories in LIBPATH if there
14574       # are no directories specified by -L.
14575       hardcode_minus_L_F77=yes
14576       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14577         # Neither direct hardcoding nor static linking is supported with a
14578         # broken collect2.
14579         hardcode_direct_F77=unsupported
14580       fi
14581       ;;
14582
14583     aix4* | aix5*)
14584       if test "$host_cpu" = ia64; then
14585         # On IA64, the linker does run time linking by default, so we don't
14586         # have to do anything special.
14587         aix_use_runtimelinking=no
14588         exp_sym_flag='-Bexport'
14589         no_entry_flag=""
14590       else
14591         # If we're using GNU nm, then we don't want the "-C" option.
14592         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14593         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14594           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'
14595         else
14596           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'
14597         fi
14598         aix_use_runtimelinking=no
14599
14600         # Test if we are trying to use run time linking or normal
14601         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14602         # need to do runtime linking.
14603         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14604           for ld_flag in $LDFLAGS; do
14605           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14606             aix_use_runtimelinking=yes
14607             break
14608           fi
14609           done
14610           ;;
14611         esac
14612
14613         exp_sym_flag='-bexport'
14614         no_entry_flag='-bnoentry'
14615       fi
14616
14617       # When large executables or shared objects are built, AIX ld can
14618       # have problems creating the table of contents.  If linking a library
14619       # or program results in "error TOC overflow" add -mminimal-toc to
14620       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14621       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14622
14623       archive_cmds_F77=''
14624       hardcode_direct_F77=yes
14625       hardcode_libdir_separator_F77=':'
14626       link_all_deplibs_F77=yes
14627
14628       if test "$GCC" = yes; then
14629         case $host_os in aix4.[012]|aix4.[012].*)
14630         # We only want to do this on AIX 4.2 and lower, the check
14631         # below for broken collect2 doesn't work under 4.3+
14632           collect2name=`${CC} -print-prog-name=collect2`
14633           if test -f "$collect2name" && \
14634            strings "$collect2name" | grep resolve_lib_name >/dev/null
14635           then
14636           # We have reworked collect2
14637           hardcode_direct_F77=yes
14638           else
14639           # We have old collect2
14640           hardcode_direct_F77=unsupported
14641           # It fails to find uninstalled libraries when the uninstalled
14642           # path is not listed in the libpath.  Setting hardcode_minus_L
14643           # to unsupported forces relinking
14644           hardcode_minus_L_F77=yes
14645           hardcode_libdir_flag_spec_F77='-L$libdir'
14646           hardcode_libdir_separator_F77=
14647           fi
14648           ;;
14649         esac
14650         shared_flag='-shared'
14651         if test "$aix_use_runtimelinking" = yes; then
14652           shared_flag="$shared_flag "'${wl}-G'
14653         fi
14654       else
14655         # not using gcc
14656         if test "$host_cpu" = ia64; then
14657         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14658         # chokes on -Wl,-G. The following line is correct:
14659           shared_flag='-G'
14660         else
14661           if test "$aix_use_runtimelinking" = yes; then
14662             shared_flag='${wl}-G'
14663           else
14664             shared_flag='${wl}-bM:SRE'
14665           fi
14666         fi
14667       fi
14668
14669       # It seems that -bexpall does not export symbols beginning with
14670       # underscore (_), so it is better to generate a list of symbols to export.
14671       always_export_symbols_F77=yes
14672       if test "$aix_use_runtimelinking" = yes; then
14673         # Warning - without using the other runtime loading flags (-brtl),
14674         # -berok will link without error, but may produce a broken library.
14675         allow_undefined_flag_F77='-berok'
14676        # Determine the default libpath from the value encoded in an empty executable.
14677        cat >conftest.$ac_ext <<_ACEOF
14678       program main
14679
14680       end
14681 _ACEOF
14682 rm -f conftest.$ac_objext conftest$ac_exeext
14683 if { (ac_try="$ac_link"
14684 case "(($ac_try" in
14685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14686   *) ac_try_echo=$ac_try;;
14687 esac
14688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14689   (eval "$ac_link") 2>conftest.er1
14690   ac_status=$?
14691   grep -v '^ *+' conftest.er1 >conftest.err
14692   rm -f conftest.er1
14693   cat conftest.err >&5
14694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14695   (exit $ac_status); } && {
14696          test -z "$ac_f77_werror_flag" ||
14697          test ! -s conftest.err
14698        } && test -s conftest$ac_exeext &&
14699        $as_test_x conftest$ac_exeext; then
14700
14701 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14702 }'`
14703 # Check for a 64-bit object if we didn't find anything.
14704 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14705 }'`; fi
14706 else
14707   echo "$as_me: failed program was:" >&5
14708 sed 's/^/| /' conftest.$ac_ext >&5
14709
14710
14711 fi
14712
14713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14714       conftest$ac_exeext conftest.$ac_ext
14715 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14716
14717        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14718         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"
14719        else
14720         if test "$host_cpu" = ia64; then
14721           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14722           allow_undefined_flag_F77="-z nodefs"
14723           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"
14724         else
14725          # Determine the default libpath from the value encoded in an empty executable.
14726          cat >conftest.$ac_ext <<_ACEOF
14727       program main
14728
14729       end
14730 _ACEOF
14731 rm -f conftest.$ac_objext conftest$ac_exeext
14732 if { (ac_try="$ac_link"
14733 case "(($ac_try" in
14734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14735   *) ac_try_echo=$ac_try;;
14736 esac
14737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14738   (eval "$ac_link") 2>conftest.er1
14739   ac_status=$?
14740   grep -v '^ *+' conftest.er1 >conftest.err
14741   rm -f conftest.er1
14742   cat conftest.err >&5
14743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744   (exit $ac_status); } && {
14745          test -z "$ac_f77_werror_flag" ||
14746          test ! -s conftest.err
14747        } && test -s conftest$ac_exeext &&
14748        $as_test_x conftest$ac_exeext; then
14749
14750 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14751 }'`
14752 # Check for a 64-bit object if we didn't find anything.
14753 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14754 }'`; fi
14755 else
14756   echo "$as_me: failed program was:" >&5
14757 sed 's/^/| /' conftest.$ac_ext >&5
14758
14759
14760 fi
14761
14762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14763       conftest$ac_exeext conftest.$ac_ext
14764 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14765
14766          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14767           # Warning - without using the other run time loading flags,
14768           # -berok will link without error, but may produce a broken library.
14769           no_undefined_flag_F77=' ${wl}-bernotok'
14770           allow_undefined_flag_F77=' ${wl}-berok'
14771           # Exported symbols can be pulled into shared objects from archives
14772           whole_archive_flag_spec_F77='$convenience'
14773           archive_cmds_need_lc_F77=yes
14774           # This is similar to how AIX traditionally builds its shared libraries.
14775           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'
14776         fi
14777       fi
14778       ;;
14779
14780     amigaos*)
14781       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)'
14782       hardcode_libdir_flag_spec_F77='-L$libdir'
14783       hardcode_minus_L_F77=yes
14784       # see comment about different semantics on the GNU ld section
14785       ld_shlibs_F77=no
14786       ;;
14787
14788     bsdi[45]*)
14789       export_dynamic_flag_spec_F77=-rdynamic
14790       ;;
14791
14792     cygwin* | mingw* | pw32*)
14793       # When not using gcc, we currently assume that we are using
14794       # Microsoft Visual C++.
14795       # hardcode_libdir_flag_spec is actually meaningless, as there is
14796       # no search path for DLLs.
14797       hardcode_libdir_flag_spec_F77=' '
14798       allow_undefined_flag_F77=unsupported
14799       # Tell ltmain to make .lib files, not .a files.
14800       libext=lib
14801       # Tell ltmain to make .dll files, not .so files.
14802       shrext_cmds=".dll"
14803       # FIXME: Setting linknames here is a bad hack.
14804       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14805       # The linker will automatically build a .lib file if we build a DLL.
14806       old_archive_From_new_cmds_F77='true'
14807       # FIXME: Should let the user specify the lib program.
14808       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14809       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14810       enable_shared_with_static_runtimes_F77=yes
14811       ;;
14812
14813     darwin* | rhapsody*)
14814       case $host_os in
14815         rhapsody* | darwin1.[012])
14816          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14817          ;;
14818        *) # Darwin 1.3 on
14819          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14820            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14821          else
14822            case ${MACOSX_DEPLOYMENT_TARGET} in
14823              10.[012])
14824                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14825                ;;
14826              10.*)
14827                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14828                ;;
14829            esac
14830          fi
14831          ;;
14832       esac
14833       archive_cmds_need_lc_F77=no
14834       hardcode_direct_F77=no
14835       hardcode_automatic_F77=yes
14836       hardcode_shlibpath_var_F77=unsupported
14837       whole_archive_flag_spec_F77=''
14838       link_all_deplibs_F77=yes
14839     if test "$GCC" = yes ; then
14840         output_verbose_link_cmd='echo'
14841         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14842       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14843       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14844       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14845       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}'
14846     else
14847       case $cc_basename in
14848         xlc*)
14849          output_verbose_link_cmd='echo'
14850          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14851          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14852           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14853          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14854           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}'
14855           ;;
14856        *)
14857          ld_shlibs_F77=no
14858           ;;
14859       esac
14860     fi
14861       ;;
14862
14863     dgux*)
14864       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14865       hardcode_libdir_flag_spec_F77='-L$libdir'
14866       hardcode_shlibpath_var_F77=no
14867       ;;
14868
14869     freebsd1*)
14870       ld_shlibs_F77=no
14871       ;;
14872
14873     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14874     # support.  Future versions do this automatically, but an explicit c++rt0.o
14875     # does not break anything, and helps significantly (at the cost of a little
14876     # extra space).
14877     freebsd2.2*)
14878       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14879       hardcode_libdir_flag_spec_F77='-R$libdir'
14880       hardcode_direct_F77=yes
14881       hardcode_shlibpath_var_F77=no
14882       ;;
14883
14884     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14885     freebsd2*)
14886       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14887       hardcode_direct_F77=yes
14888       hardcode_minus_L_F77=yes
14889       hardcode_shlibpath_var_F77=no
14890       ;;
14891
14892     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14893     freebsd* | kfreebsd*-gnu | dragonfly*)
14894       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14895       hardcode_libdir_flag_spec_F77='-R$libdir'
14896       hardcode_direct_F77=yes
14897       hardcode_shlibpath_var_F77=no
14898       ;;
14899
14900     hpux9*)
14901       if test "$GCC" = yes; then
14902         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'
14903       else
14904         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'
14905       fi
14906       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14907       hardcode_libdir_separator_F77=:
14908       hardcode_direct_F77=yes
14909
14910       # hardcode_minus_L: Not really in the search PATH,
14911       # but as the default location of the library.
14912       hardcode_minus_L_F77=yes
14913       export_dynamic_flag_spec_F77='${wl}-E'
14914       ;;
14915
14916     hpux10*)
14917       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14918         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14919       else
14920         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14921       fi
14922       if test "$with_gnu_ld" = no; then
14923         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14924         hardcode_libdir_separator_F77=:
14925
14926         hardcode_direct_F77=yes
14927         export_dynamic_flag_spec_F77='${wl}-E'
14928
14929         # hardcode_minus_L: Not really in the search PATH,
14930         # but as the default location of the library.
14931         hardcode_minus_L_F77=yes
14932       fi
14933       ;;
14934
14935     hpux11*)
14936       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14937         case $host_cpu in
14938         hppa*64*)
14939           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14940           ;;
14941         ia64*)
14942           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14943           ;;
14944         *)
14945           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14946           ;;
14947         esac
14948       else
14949         case $host_cpu in
14950         hppa*64*)
14951           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14952           ;;
14953         ia64*)
14954           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14955           ;;
14956         *)
14957           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14958           ;;
14959         esac
14960       fi
14961       if test "$with_gnu_ld" = no; then
14962         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14963         hardcode_libdir_separator_F77=:
14964
14965         case $host_cpu in
14966         hppa*64*|ia64*)
14967           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14968           hardcode_direct_F77=no
14969           hardcode_shlibpath_var_F77=no
14970           ;;
14971         *)
14972           hardcode_direct_F77=yes
14973           export_dynamic_flag_spec_F77='${wl}-E'
14974
14975           # hardcode_minus_L: Not really in the search PATH,
14976           # but as the default location of the library.
14977           hardcode_minus_L_F77=yes
14978           ;;
14979         esac
14980       fi
14981       ;;
14982
14983     irix5* | irix6* | nonstopux*)
14984       if test "$GCC" = yes; then
14985         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'
14986       else
14987         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'
14988         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14989       fi
14990       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14991       hardcode_libdir_separator_F77=:
14992       link_all_deplibs_F77=yes
14993       ;;
14994
14995     netbsd*)
14996       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14997         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14998       else
14999         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15000       fi
15001       hardcode_libdir_flag_spec_F77='-R$libdir'
15002       hardcode_direct_F77=yes
15003       hardcode_shlibpath_var_F77=no
15004       ;;
15005
15006     newsos6)
15007       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15008       hardcode_direct_F77=yes
15009       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15010       hardcode_libdir_separator_F77=:
15011       hardcode_shlibpath_var_F77=no
15012       ;;
15013
15014     openbsd*)
15015       hardcode_direct_F77=yes
15016       hardcode_shlibpath_var_F77=no
15017       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15018         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15019         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15020         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15021         export_dynamic_flag_spec_F77='${wl}-E'
15022       else
15023        case $host_os in
15024          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15025            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15026            hardcode_libdir_flag_spec_F77='-R$libdir'
15027            ;;
15028          *)
15029            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15030            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15031            ;;
15032        esac
15033       fi
15034       ;;
15035
15036     os2*)
15037       hardcode_libdir_flag_spec_F77='-L$libdir'
15038       hardcode_minus_L_F77=yes
15039       allow_undefined_flag_F77=unsupported
15040       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'
15041       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15042       ;;
15043
15044     osf3*)
15045       if test "$GCC" = yes; then
15046         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15047         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'
15048       else
15049         allow_undefined_flag_F77=' -expect_unresolved \*'
15050         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'
15051       fi
15052       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15053       hardcode_libdir_separator_F77=:
15054       ;;
15055
15056     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15057       if test "$GCC" = yes; then
15058         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15059         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'
15060         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15061       else
15062         allow_undefined_flag_F77=' -expect_unresolved \*'
15063         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'
15064         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~
15065         $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'
15066
15067         # Both c and cxx compiler support -rpath directly
15068         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15069       fi
15070       hardcode_libdir_separator_F77=:
15071       ;;
15072
15073     solaris*)
15074       no_undefined_flag_F77=' -z text'
15075       if test "$GCC" = yes; then
15076         wlarc='${wl}'
15077         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15078         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15079           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15080       else
15081         wlarc=''
15082         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15083         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15084         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15085       fi
15086       hardcode_libdir_flag_spec_F77='-R$libdir'
15087       hardcode_shlibpath_var_F77=no
15088       case $host_os in
15089       solaris2.[0-5] | solaris2.[0-5].*) ;;
15090       *)
15091         # The compiler driver will combine linker options so we
15092         # cannot just pass the convience library names through
15093         # without $wl, iff we do not link with $LD.
15094         # Luckily, gcc supports the same syntax we need for Sun Studio.
15095         # Supported since Solaris 2.6 (maybe 2.5.1?)
15096         case $wlarc in
15097         '')
15098           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15099         *)
15100           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15101         esac ;;
15102       esac
15103       link_all_deplibs_F77=yes
15104       ;;
15105
15106     sunos4*)
15107       if test "x$host_vendor" = xsequent; then
15108         # Use $CC to link under sequent, because it throws in some extra .o
15109         # files that make .init and .fini sections work.
15110         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15111       else
15112         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15113       fi
15114       hardcode_libdir_flag_spec_F77='-L$libdir'
15115       hardcode_direct_F77=yes
15116       hardcode_minus_L_F77=yes
15117       hardcode_shlibpath_var_F77=no
15118       ;;
15119
15120     sysv4)
15121       case $host_vendor in
15122         sni)
15123           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15124           hardcode_direct_F77=yes # is this really true???
15125         ;;
15126         siemens)
15127           ## LD is ld it makes a PLAMLIB
15128           ## CC just makes a GrossModule.
15129           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15130           reload_cmds_F77='$CC -r -o $output$reload_objs'
15131           hardcode_direct_F77=no
15132         ;;
15133         motorola)
15134           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15135           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15136         ;;
15137       esac
15138       runpath_var='LD_RUN_PATH'
15139       hardcode_shlibpath_var_F77=no
15140       ;;
15141
15142     sysv4.3*)
15143       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15144       hardcode_shlibpath_var_F77=no
15145       export_dynamic_flag_spec_F77='-Bexport'
15146       ;;
15147
15148     sysv4*MP*)
15149       if test -d /usr/nec; then
15150         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15151         hardcode_shlibpath_var_F77=no
15152         runpath_var=LD_RUN_PATH
15153         hardcode_runpath_var=yes
15154         ld_shlibs_F77=yes
15155       fi
15156       ;;
15157
15158     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15159       no_undefined_flag_F77='${wl}-z,text'
15160       archive_cmds_need_lc_F77=no
15161       hardcode_shlibpath_var_F77=no
15162       runpath_var='LD_RUN_PATH'
15163
15164       if test "$GCC" = yes; then
15165         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15166         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15167       else
15168         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15169         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15170       fi
15171       ;;
15172
15173     sysv5* | sco3.2v5* | sco5v6*)
15174       # Note: We can NOT use -z defs as we might desire, because we do not
15175       # link with -lc, and that would cause any symbols used from libc to
15176       # always be unresolved, which means just about no library would
15177       # ever link correctly.  If we're not using GNU ld we use -z text
15178       # though, which does catch some bad symbols but isn't as heavy-handed
15179       # as -z defs.
15180       no_undefined_flag_F77='${wl}-z,text'
15181       allow_undefined_flag_F77='${wl}-z,nodefs'
15182       archive_cmds_need_lc_F77=no
15183       hardcode_shlibpath_var_F77=no
15184       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15185       hardcode_libdir_separator_F77=':'
15186       link_all_deplibs_F77=yes
15187       export_dynamic_flag_spec_F77='${wl}-Bexport'
15188       runpath_var='LD_RUN_PATH'
15189
15190       if test "$GCC" = yes; then
15191         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15192         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15193       else
15194         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15195         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15196       fi
15197       ;;
15198
15199     uts4*)
15200       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15201       hardcode_libdir_flag_spec_F77='-L$libdir'
15202       hardcode_shlibpath_var_F77=no
15203       ;;
15204
15205     *)
15206       ld_shlibs_F77=no
15207       ;;
15208     esac
15209   fi
15210
15211 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15212 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15213 test "$ld_shlibs_F77" = no && can_build_shared=no
15214
15215 #
15216 # Do we need to explicitly link libc?
15217 #
15218 case "x$archive_cmds_need_lc_F77" in
15219 x|xyes)
15220   # Assume -lc should be added
15221   archive_cmds_need_lc_F77=yes
15222
15223   if test "$enable_shared" = yes && test "$GCC" = yes; then
15224     case $archive_cmds_F77 in
15225     *'~'*)
15226       # FIXME: we may have to deal with multi-command sequences.
15227       ;;
15228     '$CC '*)
15229       # Test whether the compiler implicitly links with -lc since on some
15230       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15231       # to ld, don't add -lc before -lgcc.
15232       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15233 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15234       $rm conftest*
15235       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15236
15237       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15238   (eval $ac_compile) 2>&5
15239   ac_status=$?
15240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241   (exit $ac_status); } 2>conftest.err; then
15242         soname=conftest
15243         lib=conftest
15244         libobjs=conftest.$ac_objext
15245         deplibs=
15246         wl=$lt_prog_compiler_wl_F77
15247         pic_flag=$lt_prog_compiler_pic_F77
15248         compiler_flags=-v
15249         linker_flags=-v
15250         verstring=
15251         output_objdir=.
15252         libname=conftest
15253         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15254         allow_undefined_flag_F77=
15255         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15256   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15257   ac_status=$?
15258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259   (exit $ac_status); }
15260         then
15261           archive_cmds_need_lc_F77=no
15262         else
15263           archive_cmds_need_lc_F77=yes
15264         fi
15265         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15266       else
15267         cat conftest.err 1>&5
15268       fi
15269       $rm conftest*
15270       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15271 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15272       ;;
15273     esac
15274   fi
15275   ;;
15276 esac
15277
15278 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15279 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15280 library_names_spec=
15281 libname_spec='lib$name'
15282 soname_spec=
15283 shrext_cmds=".so"
15284 postinstall_cmds=
15285 postuninstall_cmds=
15286 finish_cmds=
15287 finish_eval=
15288 shlibpath_var=
15289 shlibpath_overrides_runpath=unknown
15290 version_type=none
15291 dynamic_linker="$host_os ld.so"
15292 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15293 if test "$GCC" = yes; then
15294   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15295   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15296     # if the path contains ";" then we assume it to be the separator
15297     # otherwise default to the standard path separator (i.e. ":") - it is
15298     # assumed that no part of a normal pathname contains ";" but that should
15299     # okay in the real world where ";" in dirpaths is itself problematic.
15300     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15301   else
15302     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15303   fi
15304 else
15305   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15306 fi
15307 need_lib_prefix=unknown
15308 hardcode_into_libs=no
15309
15310 # when you set need_version to no, make sure it does not cause -set_version
15311 # flags to be left without arguments
15312 need_version=unknown
15313
15314 case $host_os in
15315 aix3*)
15316   version_type=linux
15317   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15318   shlibpath_var=LIBPATH
15319
15320   # AIX 3 has no versioning support, so we append a major version to the name.
15321   soname_spec='${libname}${release}${shared_ext}$major'
15322   ;;
15323
15324 aix4* | aix5*)
15325   version_type=linux
15326   need_lib_prefix=no
15327   need_version=no
15328   hardcode_into_libs=yes
15329   if test "$host_cpu" = ia64; then
15330     # AIX 5 supports IA64
15331     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15332     shlibpath_var=LD_LIBRARY_PATH
15333   else
15334     # With GCC up to 2.95.x, collect2 would create an import file
15335     # for dependence libraries.  The import file would start with
15336     # the line `#! .'.  This would cause the generated library to
15337     # depend on `.', always an invalid library.  This was fixed in
15338     # development snapshots of GCC prior to 3.0.
15339     case $host_os in
15340       aix4 | aix4.[01] | aix4.[01].*)
15341       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15342            echo ' yes '
15343            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15344         :
15345       else
15346         can_build_shared=no
15347       fi
15348       ;;
15349     esac
15350     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15351     # soname into executable. Probably we can add versioning support to
15352     # collect2, so additional links can be useful in future.
15353     if test "$aix_use_runtimelinking" = yes; then
15354       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15355       # instead of lib<name>.a to let people know that these are not
15356       # typical AIX shared libraries.
15357       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15358     else
15359       # We preserve .a as extension for shared libraries through AIX4.2
15360       # and later when we are not doing run time linking.
15361       library_names_spec='${libname}${release}.a $libname.a'
15362       soname_spec='${libname}${release}${shared_ext}$major'
15363     fi
15364     shlibpath_var=LIBPATH
15365   fi
15366   ;;
15367
15368 amigaos*)
15369   library_names_spec='$libname.ixlibrary $libname.a'
15370   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15371   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'
15372   ;;
15373
15374 beos*)
15375   library_names_spec='${libname}${shared_ext}'
15376   dynamic_linker="$host_os ld.so"
15377   shlibpath_var=LIBRARY_PATH
15378   ;;
15379
15380 bsdi[45]*)
15381   version_type=linux
15382   need_version=no
15383   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15384   soname_spec='${libname}${release}${shared_ext}$major'
15385   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15386   shlibpath_var=LD_LIBRARY_PATH
15387   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15388   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15389   # the default ld.so.conf also contains /usr/contrib/lib and
15390   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15391   # libtool to hard-code these into programs
15392   ;;
15393
15394 cygwin* | mingw* | pw32*)
15395   version_type=windows
15396   shrext_cmds=".dll"
15397   need_version=no
15398   need_lib_prefix=no
15399
15400   case $GCC,$host_os in
15401   yes,cygwin* | yes,mingw* | yes,pw32*)
15402     library_names_spec='$libname.dll.a'
15403     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15404     postinstall_cmds='base_file=`basename \${file}`~
15405       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15406       dldir=$destdir/`dirname \$dlpath`~
15407       test -d \$dldir || mkdir -p \$dldir~
15408       $install_prog $dir/$dlname \$dldir/$dlname~
15409       chmod a+x \$dldir/$dlname'
15410     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15411       dlpath=$dir/\$dldll~
15412        $rm \$dlpath'
15413     shlibpath_overrides_runpath=yes
15414
15415     case $host_os in
15416     cygwin*)
15417       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15418       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15419       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15420       ;;
15421     mingw*)
15422       # MinGW DLLs use traditional 'lib' prefix
15423       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15424       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15425       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15426         # It is most probably a Windows format PATH printed by
15427         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15428         # path with ; separators, and with drive letters. We can handle the
15429         # drive letters (cygwin fileutils understands them), so leave them,
15430         # especially as we might pass files found there to a mingw objdump,
15431         # which wouldn't understand a cygwinified path. Ahh.
15432         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15433       else
15434         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15435       fi
15436       ;;
15437     pw32*)
15438       # pw32 DLLs use 'pw' prefix rather than 'lib'
15439       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15440       ;;
15441     esac
15442     ;;
15443
15444   *)
15445     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15446     ;;
15447   esac
15448   dynamic_linker='Win32 ld.exe'
15449   # FIXME: first we should search . and the directory the executable is in
15450   shlibpath_var=PATH
15451   ;;
15452
15453 darwin* | rhapsody*)
15454   dynamic_linker="$host_os dyld"
15455   version_type=darwin
15456   need_lib_prefix=no
15457   need_version=no
15458   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15459   soname_spec='${libname}${release}${major}$shared_ext'
15460   shlibpath_overrides_runpath=yes
15461   shlibpath_var=DYLD_LIBRARY_PATH
15462   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15463   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15464   if test "$GCC" = yes; then
15465     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15466   else
15467     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15468   fi
15469   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15470   ;;
15471
15472 dgux*)
15473   version_type=linux
15474   need_lib_prefix=no
15475   need_version=no
15476   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15477   soname_spec='${libname}${release}${shared_ext}$major'
15478   shlibpath_var=LD_LIBRARY_PATH
15479   ;;
15480
15481 freebsd1*)
15482   dynamic_linker=no
15483   ;;
15484
15485 kfreebsd*-gnu)
15486   version_type=linux
15487   need_lib_prefix=no
15488   need_version=no
15489   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15490   soname_spec='${libname}${release}${shared_ext}$major'
15491   shlibpath_var=LD_LIBRARY_PATH
15492   shlibpath_overrides_runpath=no
15493   hardcode_into_libs=yes
15494   dynamic_linker='GNU ld.so'
15495   ;;
15496
15497 freebsd* | dragonfly*)
15498   # DragonFly does not have aout.  When/if they implement a new
15499   # versioning mechanism, adjust this.
15500   if test -x /usr/bin/objformat; then
15501     objformat=`/usr/bin/objformat`
15502   else
15503     case $host_os in
15504     freebsd[123]*) objformat=aout ;;
15505     *) objformat=elf ;;
15506     esac
15507   fi
15508   version_type=freebsd-$objformat
15509   case $version_type in
15510     freebsd-elf*)
15511       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15512       need_version=no
15513       need_lib_prefix=no
15514       ;;
15515     freebsd-*)
15516       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15517       need_version=yes
15518       ;;
15519   esac
15520   shlibpath_var=LD_LIBRARY_PATH
15521   case $host_os in
15522   freebsd2*)
15523     shlibpath_overrides_runpath=yes
15524     ;;
15525   freebsd3.[01]* | freebsdelf3.[01]*)
15526     shlibpath_overrides_runpath=yes
15527     hardcode_into_libs=yes
15528     ;;
15529   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15530   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15531     shlibpath_overrides_runpath=no
15532     hardcode_into_libs=yes
15533     ;;
15534   freebsd*) # from 4.6 on
15535     shlibpath_overrides_runpath=yes
15536     hardcode_into_libs=yes
15537     ;;
15538   esac
15539   ;;
15540
15541 gnu*)
15542   version_type=linux
15543   need_lib_prefix=no
15544   need_version=no
15545   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15546   soname_spec='${libname}${release}${shared_ext}$major'
15547   shlibpath_var=LD_LIBRARY_PATH
15548   hardcode_into_libs=yes
15549   ;;
15550
15551 hpux9* | hpux10* | hpux11*)
15552   # Give a soname corresponding to the major version so that dld.sl refuses to
15553   # link against other versions.
15554   version_type=sunos
15555   need_lib_prefix=no
15556   need_version=no
15557   case $host_cpu in
15558   ia64*)
15559     shrext_cmds='.so'
15560     hardcode_into_libs=yes
15561     dynamic_linker="$host_os dld.so"
15562     shlibpath_var=LD_LIBRARY_PATH
15563     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15564     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15565     soname_spec='${libname}${release}${shared_ext}$major'
15566     if test "X$HPUX_IA64_MODE" = X32; then
15567       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15568     else
15569       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15570     fi
15571     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15572     ;;
15573    hppa*64*)
15574      shrext_cmds='.sl'
15575      hardcode_into_libs=yes
15576      dynamic_linker="$host_os dld.sl"
15577      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15578      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15579      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15580      soname_spec='${libname}${release}${shared_ext}$major'
15581      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15582      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15583      ;;
15584    *)
15585     shrext_cmds='.sl'
15586     dynamic_linker="$host_os dld.sl"
15587     shlibpath_var=SHLIB_PATH
15588     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15589     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15590     soname_spec='${libname}${release}${shared_ext}$major'
15591     ;;
15592   esac
15593   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15594   postinstall_cmds='chmod 555 $lib'
15595   ;;
15596
15597 interix3*)
15598   version_type=linux
15599   need_lib_prefix=no
15600   need_version=no
15601   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15602   soname_spec='${libname}${release}${shared_ext}$major'
15603   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15604   shlibpath_var=LD_LIBRARY_PATH
15605   shlibpath_overrides_runpath=no
15606   hardcode_into_libs=yes
15607   ;;
15608
15609 irix5* | irix6* | nonstopux*)
15610   case $host_os in
15611     nonstopux*) version_type=nonstopux ;;
15612     *)
15613         if test "$lt_cv_prog_gnu_ld" = yes; then
15614                 version_type=linux
15615         else
15616                 version_type=irix
15617         fi ;;
15618   esac
15619   need_lib_prefix=no
15620   need_version=no
15621   soname_spec='${libname}${release}${shared_ext}$major'
15622   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15623   case $host_os in
15624   irix5* | nonstopux*)
15625     libsuff= shlibsuff=
15626     ;;
15627   *)
15628     case $LD in # libtool.m4 will add one of these switches to LD
15629     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15630       libsuff= shlibsuff= libmagic=32-bit;;
15631     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15632       libsuff=32 shlibsuff=N32 libmagic=N32;;
15633     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15634       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15635     *) libsuff= shlibsuff= libmagic=never-match;;
15636     esac
15637     ;;
15638   esac
15639   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15640   shlibpath_overrides_runpath=no
15641   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15642   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15643   hardcode_into_libs=yes
15644   ;;
15645
15646 # No shared lib support for Linux oldld, aout, or coff.
15647 linux*oldld* | linux*aout* | linux*coff*)
15648   dynamic_linker=no
15649   ;;
15650
15651 # This must be Linux ELF.
15652 linux*)
15653   version_type=linux
15654   need_lib_prefix=no
15655   need_version=no
15656   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15657   soname_spec='${libname}${release}${shared_ext}$major'
15658   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15659   shlibpath_var=LD_LIBRARY_PATH
15660   shlibpath_overrides_runpath=no
15661   # This implies no fast_install, which is unacceptable.
15662   # Some rework will be needed to allow for fast_install
15663   # before this can be enabled.
15664   hardcode_into_libs=yes
15665
15666   # Append ld.so.conf contents to the search path
15667   if test -f /etc/ld.so.conf; then
15668     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15669     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15670   fi
15671
15672   # We used to test for /lib/ld.so.1 and disable shared libraries on
15673   # powerpc, because MkLinux only supported shared libraries with the
15674   # GNU dynamic linker.  Since this was broken with cross compilers,
15675   # most powerpc-linux boxes support dynamic linking these days and
15676   # people can always --disable-shared, the test was removed, and we
15677   # assume the GNU/Linux dynamic linker is in use.
15678   dynamic_linker='GNU/Linux ld.so'
15679   ;;
15680
15681 knetbsd*-gnu)
15682   version_type=linux
15683   need_lib_prefix=no
15684   need_version=no
15685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15686   soname_spec='${libname}${release}${shared_ext}$major'
15687   shlibpath_var=LD_LIBRARY_PATH
15688   shlibpath_overrides_runpath=no
15689   hardcode_into_libs=yes
15690   dynamic_linker='GNU ld.so'
15691   ;;
15692
15693 netbsd*)
15694   version_type=sunos
15695   need_lib_prefix=no
15696   need_version=no
15697   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15698     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15699     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15700     dynamic_linker='NetBSD (a.out) ld.so'
15701   else
15702     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15703     soname_spec='${libname}${release}${shared_ext}$major'
15704     dynamic_linker='NetBSD ld.elf_so'
15705   fi
15706   shlibpath_var=LD_LIBRARY_PATH
15707   shlibpath_overrides_runpath=yes
15708   hardcode_into_libs=yes
15709   ;;
15710
15711 newsos6)
15712   version_type=linux
15713   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15714   shlibpath_var=LD_LIBRARY_PATH
15715   shlibpath_overrides_runpath=yes
15716   ;;
15717
15718 nto-qnx*)
15719   version_type=linux
15720   need_lib_prefix=no
15721   need_version=no
15722   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15723   soname_spec='${libname}${release}${shared_ext}$major'
15724   shlibpath_var=LD_LIBRARY_PATH
15725   shlibpath_overrides_runpath=yes
15726   ;;
15727
15728 openbsd*)
15729   version_type=sunos
15730   sys_lib_dlsearch_path_spec="/usr/lib"
15731   need_lib_prefix=no
15732   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15733   case $host_os in
15734     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15735     *)                         need_version=no  ;;
15736   esac
15737   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15738   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15739   shlibpath_var=LD_LIBRARY_PATH
15740   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15741     case $host_os in
15742       openbsd2.[89] | openbsd2.[89].*)
15743         shlibpath_overrides_runpath=no
15744         ;;
15745       *)
15746         shlibpath_overrides_runpath=yes
15747         ;;
15748       esac
15749   else
15750     shlibpath_overrides_runpath=yes
15751   fi
15752   ;;
15753
15754 os2*)
15755   libname_spec='$name'
15756   shrext_cmds=".dll"
15757   need_lib_prefix=no
15758   library_names_spec='$libname${shared_ext} $libname.a'
15759   dynamic_linker='OS/2 ld.exe'
15760   shlibpath_var=LIBPATH
15761   ;;
15762
15763 osf3* | osf4* | osf5*)
15764   version_type=osf
15765   need_lib_prefix=no
15766   need_version=no
15767   soname_spec='${libname}${release}${shared_ext}$major'
15768   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15769   shlibpath_var=LD_LIBRARY_PATH
15770   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15771   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15772   ;;
15773
15774 solaris*)
15775   version_type=linux
15776   need_lib_prefix=no
15777   need_version=no
15778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15779   soname_spec='${libname}${release}${shared_ext}$major'
15780   shlibpath_var=LD_LIBRARY_PATH
15781   shlibpath_overrides_runpath=yes
15782   hardcode_into_libs=yes
15783   # ldd complains unless libraries are executable
15784   postinstall_cmds='chmod +x $lib'
15785   ;;
15786
15787 sunos4*)
15788   version_type=sunos
15789   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15790   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15791   shlibpath_var=LD_LIBRARY_PATH
15792   shlibpath_overrides_runpath=yes
15793   if test "$with_gnu_ld" = yes; then
15794     need_lib_prefix=no
15795   fi
15796   need_version=yes
15797   ;;
15798
15799 sysv4 | sysv4.3*)
15800   version_type=linux
15801   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15802   soname_spec='${libname}${release}${shared_ext}$major'
15803   shlibpath_var=LD_LIBRARY_PATH
15804   case $host_vendor in
15805     sni)
15806       shlibpath_overrides_runpath=no
15807       need_lib_prefix=no
15808       export_dynamic_flag_spec='${wl}-Blargedynsym'
15809       runpath_var=LD_RUN_PATH
15810       ;;
15811     siemens)
15812       need_lib_prefix=no
15813       ;;
15814     motorola)
15815       need_lib_prefix=no
15816       need_version=no
15817       shlibpath_overrides_runpath=no
15818       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15819       ;;
15820   esac
15821   ;;
15822
15823 sysv4*MP*)
15824   if test -d /usr/nec ;then
15825     version_type=linux
15826     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15827     soname_spec='$libname${shared_ext}.$major'
15828     shlibpath_var=LD_LIBRARY_PATH
15829   fi
15830   ;;
15831
15832 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15833   version_type=freebsd-elf
15834   need_lib_prefix=no
15835   need_version=no
15836   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15837   soname_spec='${libname}${release}${shared_ext}$major'
15838   shlibpath_var=LD_LIBRARY_PATH
15839   hardcode_into_libs=yes
15840   if test "$with_gnu_ld" = yes; then
15841     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15842     shlibpath_overrides_runpath=no
15843   else
15844     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15845     shlibpath_overrides_runpath=yes
15846     case $host_os in
15847       sco3.2v5*)
15848         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15849         ;;
15850     esac
15851   fi
15852   sys_lib_dlsearch_path_spec='/usr/lib'
15853   ;;
15854
15855 uts4*)
15856   version_type=linux
15857   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15858   soname_spec='${libname}${release}${shared_ext}$major'
15859   shlibpath_var=LD_LIBRARY_PATH
15860   ;;
15861
15862 *)
15863   dynamic_linker=no
15864   ;;
15865 esac
15866 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15867 echo "${ECHO_T}$dynamic_linker" >&6; }
15868 test "$dynamic_linker" = no && can_build_shared=no
15869
15870 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15871 if test "$GCC" = yes; then
15872   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15873 fi
15874
15875 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15876 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15877 hardcode_action_F77=
15878 if test -n "$hardcode_libdir_flag_spec_F77" || \
15879    test -n "$runpath_var_F77" || \
15880    test "X$hardcode_automatic_F77" = "Xyes" ; then
15881
15882   # We can hardcode non-existant directories.
15883   if test "$hardcode_direct_F77" != no &&
15884      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15885      # have to relink, otherwise we might link with an installed library
15886      # when we should be linking with a yet-to-be-installed one
15887      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15888      test "$hardcode_minus_L_F77" != no; then
15889     # Linking always hardcodes the temporary library directory.
15890     hardcode_action_F77=relink
15891   else
15892     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15893     hardcode_action_F77=immediate
15894   fi
15895 else
15896   # We cannot hardcode anything, or else we can only hardcode existing
15897   # directories.
15898   hardcode_action_F77=unsupported
15899 fi
15900 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15901 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15902
15903 if test "$hardcode_action_F77" = relink; then
15904   # Fast installation is not supported
15905   enable_fast_install=no
15906 elif test "$shlibpath_overrides_runpath" = yes ||
15907      test "$enable_shared" = no; then
15908   # Fast installation is not necessary
15909   enable_fast_install=needless
15910 fi
15911
15912
15913 # The else clause should only fire when bootstrapping the
15914 # libtool distribution, otherwise you forgot to ship ltmain.sh
15915 # with your package, and you will get complaints that there are
15916 # no rules to generate ltmain.sh.
15917 if test -f "$ltmain"; then
15918   # See if we are running on zsh, and set the options which allow our commands through
15919   # without removal of \ escapes.
15920   if test -n "${ZSH_VERSION+set}" ; then
15921     setopt NO_GLOB_SUBST
15922   fi
15923   # Now quote all the things that may contain metacharacters while being
15924   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15925   # variables and quote the copies for generation of the libtool script.
15926   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15927     SED SHELL STRIP \
15928     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15929     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15930     deplibs_check_method reload_flag reload_cmds need_locks \
15931     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15932     lt_cv_sys_global_symbol_to_c_name_address \
15933     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15934     old_postinstall_cmds old_postuninstall_cmds \
15935     compiler_F77 \
15936     CC_F77 \
15937     LD_F77 \
15938     lt_prog_compiler_wl_F77 \
15939     lt_prog_compiler_pic_F77 \
15940     lt_prog_compiler_static_F77 \
15941     lt_prog_compiler_no_builtin_flag_F77 \
15942     export_dynamic_flag_spec_F77 \
15943     thread_safe_flag_spec_F77 \
15944     whole_archive_flag_spec_F77 \
15945     enable_shared_with_static_runtimes_F77 \
15946     old_archive_cmds_F77 \
15947     old_archive_from_new_cmds_F77 \
15948     predep_objects_F77 \
15949     postdep_objects_F77 \
15950     predeps_F77 \
15951     postdeps_F77 \
15952     compiler_lib_search_path_F77 \
15953     archive_cmds_F77 \
15954     archive_expsym_cmds_F77 \
15955     postinstall_cmds_F77 \
15956     postuninstall_cmds_F77 \
15957     old_archive_from_expsyms_cmds_F77 \
15958     allow_undefined_flag_F77 \
15959     no_undefined_flag_F77 \
15960     export_symbols_cmds_F77 \
15961     hardcode_libdir_flag_spec_F77 \
15962     hardcode_libdir_flag_spec_ld_F77 \
15963     hardcode_libdir_separator_F77 \
15964     hardcode_automatic_F77 \
15965     module_cmds_F77 \
15966     module_expsym_cmds_F77 \
15967     lt_cv_prog_compiler_c_o_F77 \
15968     exclude_expsyms_F77 \
15969     include_expsyms_F77; do
15970
15971     case $var in
15972     old_archive_cmds_F77 | \
15973     old_archive_from_new_cmds_F77 | \
15974     archive_cmds_F77 | \
15975     archive_expsym_cmds_F77 | \
15976     module_cmds_F77 | \
15977     module_expsym_cmds_F77 | \
15978     old_archive_from_expsyms_cmds_F77 | \
15979     export_symbols_cmds_F77 | \
15980     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15981     postinstall_cmds | postuninstall_cmds | \
15982     old_postinstall_cmds | old_postuninstall_cmds | \
15983     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15984       # Double-quote double-evaled strings.
15985       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15986       ;;
15987     *)
15988       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15989       ;;
15990     esac
15991   done
15992
15993   case $lt_echo in
15994   *'\$0 --fallback-echo"')
15995     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15996     ;;
15997   esac
15998
15999 cfgfile="$ofile"
16000
16001   cat <<__EOF__ >> "$cfgfile"
16002 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16003
16004 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16005
16006 # Shell to use when invoking shell scripts.
16007 SHELL=$lt_SHELL
16008
16009 # Whether or not to build shared libraries.
16010 build_libtool_libs=$enable_shared
16011
16012 # Whether or not to build static libraries.
16013 build_old_libs=$enable_static
16014
16015 # Whether or not to add -lc for building shared libraries.
16016 build_libtool_need_lc=$archive_cmds_need_lc_F77
16017
16018 # Whether or not to disallow shared libs when runtime libs are static
16019 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16020
16021 # Whether or not to optimize for fast installation.
16022 fast_install=$enable_fast_install
16023
16024 # The host system.
16025 host_alias=$host_alias
16026 host=$host
16027 host_os=$host_os
16028
16029 # The build system.
16030 build_alias=$build_alias
16031 build=$build
16032 build_os=$build_os
16033
16034 # An echo program that does not interpret backslashes.
16035 echo=$lt_echo
16036
16037 # The archiver.
16038 AR=$lt_AR
16039 AR_FLAGS=$lt_AR_FLAGS
16040
16041 # A C compiler.
16042 LTCC=$lt_LTCC
16043
16044 # LTCC compiler flags.
16045 LTCFLAGS=$lt_LTCFLAGS
16046
16047 # A language-specific compiler.
16048 CC=$lt_compiler_F77
16049
16050 # Is the compiler the GNU C compiler?
16051 with_gcc=$GCC_F77
16052
16053 # An ERE matcher.
16054 EGREP=$lt_EGREP
16055
16056 # The linker used to build libraries.
16057 LD=$lt_LD_F77
16058
16059 # Whether we need hard or soft links.
16060 LN_S=$lt_LN_S
16061
16062 # A BSD-compatible nm program.
16063 NM=$lt_NM
16064
16065 # A symbol stripping program
16066 STRIP=$lt_STRIP
16067
16068 # Used to examine libraries when file_magic_cmd begins "file"
16069 MAGIC_CMD=$MAGIC_CMD
16070
16071 # Used on cygwin: DLL creation program.
16072 DLLTOOL="$DLLTOOL"
16073
16074 # Used on cygwin: object dumper.
16075 OBJDUMP="$OBJDUMP"
16076
16077 # Used on cygwin: assembler.
16078 AS="$AS"
16079
16080 # The name of the directory that contains temporary libtool files.
16081 objdir=$objdir
16082
16083 # How to create reloadable object files.
16084 reload_flag=$lt_reload_flag
16085 reload_cmds=$lt_reload_cmds
16086
16087 # How to pass a linker flag through the compiler.
16088 wl=$lt_lt_prog_compiler_wl_F77
16089
16090 # Object file suffix (normally "o").
16091 objext="$ac_objext"
16092
16093 # Old archive suffix (normally "a").
16094 libext="$libext"
16095
16096 # Shared library suffix (normally ".so").
16097 shrext_cmds='$shrext_cmds'
16098
16099 # Executable file suffix (normally "").
16100 exeext="$exeext"
16101
16102 # Additional compiler flags for building library objects.
16103 pic_flag=$lt_lt_prog_compiler_pic_F77
16104 pic_mode=$pic_mode
16105
16106 # What is the maximum length of a command?
16107 max_cmd_len=$lt_cv_sys_max_cmd_len
16108
16109 # Does compiler simultaneously support -c and -o options?
16110 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16111
16112 # Must we lock files when doing compilation?
16113 need_locks=$lt_need_locks
16114
16115 # Do we need the lib prefix for modules?
16116 need_lib_prefix=$need_lib_prefix
16117
16118 # Do we need a version for libraries?
16119 need_version=$need_version
16120
16121 # Whether dlopen is supported.
16122 dlopen_support=$enable_dlopen
16123
16124 # Whether dlopen of programs is supported.
16125 dlopen_self=$enable_dlopen_self
16126
16127 # Whether dlopen of statically linked programs is supported.
16128 dlopen_self_static=$enable_dlopen_self_static
16129
16130 # Compiler flag to prevent dynamic linking.
16131 link_static_flag=$lt_lt_prog_compiler_static_F77
16132
16133 # Compiler flag to turn off builtin functions.
16134 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16135
16136 # Compiler flag to allow reflexive dlopens.
16137 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16138
16139 # Compiler flag to generate shared objects directly from archives.
16140 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16141
16142 # Compiler flag to generate thread-safe objects.
16143 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16144
16145 # Library versioning type.
16146 version_type=$version_type
16147
16148 # Format of library name prefix.
16149 libname_spec=$lt_libname_spec
16150
16151 # List of archive names.  First name is the real one, the rest are links.
16152 # The last name is the one that the linker finds with -lNAME.
16153 library_names_spec=$lt_library_names_spec
16154
16155 # The coded name of the library, if different from the real name.
16156 soname_spec=$lt_soname_spec
16157
16158 # Commands used to build and install an old-style archive.
16159 RANLIB=$lt_RANLIB
16160 old_archive_cmds=$lt_old_archive_cmds_F77
16161 old_postinstall_cmds=$lt_old_postinstall_cmds
16162 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16163
16164 # Create an old-style archive from a shared archive.
16165 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16166
16167 # Create a temporary old-style archive to link instead of a shared archive.
16168 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16169
16170 # Commands used to build and install a shared archive.
16171 archive_cmds=$lt_archive_cmds_F77
16172 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16173 postinstall_cmds=$lt_postinstall_cmds
16174 postuninstall_cmds=$lt_postuninstall_cmds
16175
16176 # Commands used to build a loadable module (assumed same as above if empty)
16177 module_cmds=$lt_module_cmds_F77
16178 module_expsym_cmds=$lt_module_expsym_cmds_F77
16179
16180 # Commands to strip libraries.
16181 old_striplib=$lt_old_striplib
16182 striplib=$lt_striplib
16183
16184 # Dependencies to place before the objects being linked to create a
16185 # shared library.
16186 predep_objects=$lt_predep_objects_F77
16187
16188 # Dependencies to place after the objects being linked to create a
16189 # shared library.
16190 postdep_objects=$lt_postdep_objects_F77
16191
16192 # Dependencies to place before the objects being linked to create a
16193 # shared library.
16194 predeps=$lt_predeps_F77
16195
16196 # Dependencies to place after the objects being linked to create a
16197 # shared library.
16198 postdeps=$lt_postdeps_F77
16199
16200 # The library search path used internally by the compiler when linking
16201 # a shared library.
16202 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16203
16204 # Method to check whether dependent libraries are shared objects.
16205 deplibs_check_method=$lt_deplibs_check_method
16206
16207 # Command to use when deplibs_check_method == file_magic.
16208 file_magic_cmd=$lt_file_magic_cmd
16209
16210 # Flag that allows shared libraries with undefined symbols to be built.
16211 allow_undefined_flag=$lt_allow_undefined_flag_F77
16212
16213 # Flag that forces no undefined symbols.
16214 no_undefined_flag=$lt_no_undefined_flag_F77
16215
16216 # Commands used to finish a libtool library installation in a directory.
16217 finish_cmds=$lt_finish_cmds
16218
16219 # Same as above, but a single script fragment to be evaled but not shown.
16220 finish_eval=$lt_finish_eval
16221
16222 # Take the output of nm and produce a listing of raw symbols and C names.
16223 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16224
16225 # Transform the output of nm in a proper C declaration
16226 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16227
16228 # Transform the output of nm in a C name address pair
16229 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16230
16231 # This is the shared library runtime path variable.
16232 runpath_var=$runpath_var
16233
16234 # This is the shared library path variable.
16235 shlibpath_var=$shlibpath_var
16236
16237 # Is shlibpath searched before the hard-coded library search path?
16238 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16239
16240 # How to hardcode a shared library path into an executable.
16241 hardcode_action=$hardcode_action_F77
16242
16243 # Whether we should hardcode library paths into libraries.
16244 hardcode_into_libs=$hardcode_into_libs
16245
16246 # Flag to hardcode \$libdir into a binary during linking.
16247 # This must work even if \$libdir does not exist.
16248 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16249
16250 # If ld is used when linking, flag to hardcode \$libdir into
16251 # a binary during linking. This must work even if \$libdir does
16252 # not exist.
16253 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16254
16255 # Whether we need a single -rpath flag with a separated argument.
16256 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16257
16258 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16259 # resulting binary.
16260 hardcode_direct=$hardcode_direct_F77
16261
16262 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16263 # resulting binary.
16264 hardcode_minus_L=$hardcode_minus_L_F77
16265
16266 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16267 # the resulting binary.
16268 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16269
16270 # Set to yes if building a shared library automatically hardcodes DIR into the library
16271 # and all subsequent libraries and executables linked against it.
16272 hardcode_automatic=$hardcode_automatic_F77
16273
16274 # Variables whose values should be saved in libtool wrapper scripts and
16275 # restored at relink time.
16276 variables_saved_for_relink="$variables_saved_for_relink"
16277
16278 # Whether libtool must link a program against all its dependency libraries.
16279 link_all_deplibs=$link_all_deplibs_F77
16280
16281 # Compile-time system search path for libraries
16282 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16283
16284 # Run-time system search path for libraries
16285 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16286
16287 # Fix the shell variable \$srcfile for the compiler.
16288 fix_srcfile_path="$fix_srcfile_path_F77"
16289
16290 # Set to yes if exported symbols are required.
16291 always_export_symbols=$always_export_symbols_F77
16292
16293 # The commands to list exported symbols.
16294 export_symbols_cmds=$lt_export_symbols_cmds_F77
16295
16296 # The commands to extract the exported symbol list from a shared archive.
16297 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16298
16299 # Symbols that should not be listed in the preloaded symbols.
16300 exclude_expsyms=$lt_exclude_expsyms_F77
16301
16302 # Symbols that must always be exported.
16303 include_expsyms=$lt_include_expsyms_F77
16304
16305 # ### END LIBTOOL TAG CONFIG: $tagname
16306
16307 __EOF__
16308
16309
16310 else
16311   # If there is no Makefile yet, we rely on a make rule to execute
16312   # `config.status --recheck' to rerun these tests and create the
16313   # libtool script then.
16314   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16315   if test -f "$ltmain_in"; then
16316     test -f Makefile && make "$ltmain"
16317   fi
16318 fi
16319
16320
16321 ac_ext=c
16322 ac_cpp='$CPP $CPPFLAGS'
16323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16326
16327 CC="$lt_save_CC"
16328
16329         else
16330           tagname=""
16331         fi
16332         ;;
16333
16334       GCJ)
16335         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16336
16337
16338 # Source file extension for Java test sources.
16339 ac_ext=java
16340
16341 # Object file extension for compiled Java test sources.
16342 objext=o
16343 objext_GCJ=$objext
16344
16345 # Code to be used in simple compile tests
16346 lt_simple_compile_test_code="class foo {}\n"
16347
16348 # Code to be used in simple link tests
16349 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16350
16351 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16352
16353 # If no C compiler was specified, use CC.
16354 LTCC=${LTCC-"$CC"}
16355
16356 # If no C compiler flags were specified, use CFLAGS.
16357 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16358
16359 # Allow CC to be a program name with arguments.
16360 compiler=$CC
16361
16362
16363 # save warnings/boilerplate of simple test code
16364 ac_outfile=conftest.$ac_objext
16365 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16366 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16367 _lt_compiler_boilerplate=`cat conftest.err`
16368 $rm conftest*
16369
16370 ac_outfile=conftest.$ac_objext
16371 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16372 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16373 _lt_linker_boilerplate=`cat conftest.err`
16374 $rm conftest*
16375
16376
16377 # Allow CC to be a program name with arguments.
16378 lt_save_CC="$CC"
16379 CC=${GCJ-"gcj"}
16380 compiler=$CC
16381 compiler_GCJ=$CC
16382 for cc_temp in $compiler""; do
16383   case $cc_temp in
16384     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16385     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16386     \-*) ;;
16387     *) break;;
16388   esac
16389 done
16390 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16391
16392
16393 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16394 archive_cmds_need_lc_GCJ=no
16395
16396 old_archive_cmds_GCJ=$old_archive_cmds
16397
16398 ## CAVEAT EMPTOR:
16399 ## There is no encapsulation within the following macros, do not change
16400 ## the running order or otherwise move them around unless you know exactly
16401 ## what you are doing...
16402
16403 lt_prog_compiler_no_builtin_flag_GCJ=
16404
16405 if test "$GCC" = yes; then
16406   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16407
16408
16409 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16410 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16411 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16412   echo $ECHO_N "(cached) $ECHO_C" >&6
16413 else
16414   lt_cv_prog_compiler_rtti_exceptions=no
16415   ac_outfile=conftest.$ac_objext
16416    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16417    lt_compiler_flag="-fno-rtti -fno-exceptions"
16418    # Insert the option either (1) after the last *FLAGS variable, or
16419    # (2) before a word containing "conftest.", or (3) at the end.
16420    # Note that $ac_compile itself does not contain backslashes and begins
16421    # with a dollar sign (not a hyphen), so the echo should work correctly.
16422    # The option is referenced via a variable to avoid confusing sed.
16423    lt_compile=`echo "$ac_compile" | $SED \
16424    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16425    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16426    -e 's:$: $lt_compiler_flag:'`
16427    (eval echo "\"\$as_me:16427: $lt_compile\"" >&5)
16428    (eval "$lt_compile" 2>conftest.err)
16429    ac_status=$?
16430    cat conftest.err >&5
16431    echo "$as_me:16431: \$? = $ac_status" >&5
16432    if (exit $ac_status) && test -s "$ac_outfile"; then
16433      # The compiler can only warn and ignore the option if not recognized
16434      # So say no if there are warnings other than the usual output.
16435      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16436      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16437      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16438        lt_cv_prog_compiler_rtti_exceptions=yes
16439      fi
16440    fi
16441    $rm conftest*
16442
16443 fi
16444 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16445 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16446
16447 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16448     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16449 else
16450     :
16451 fi
16452
16453 fi
16454
16455 lt_prog_compiler_wl_GCJ=
16456 lt_prog_compiler_pic_GCJ=
16457 lt_prog_compiler_static_GCJ=
16458
16459 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16460 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16461
16462   if test "$GCC" = yes; then
16463     lt_prog_compiler_wl_GCJ='-Wl,'
16464     lt_prog_compiler_static_GCJ='-static'
16465
16466     case $host_os in
16467       aix*)
16468       # All AIX code is PIC.
16469       if test "$host_cpu" = ia64; then
16470         # AIX 5 now supports IA64 processor
16471         lt_prog_compiler_static_GCJ='-Bstatic'
16472       fi
16473       ;;
16474
16475     amigaos*)
16476       # FIXME: we need at least 68020 code to build shared libraries, but
16477       # adding the `-m68020' flag to GCC prevents building anything better,
16478       # like `-m68040'.
16479       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16480       ;;
16481
16482     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16483       # PIC is the default for these OSes.
16484       ;;
16485
16486     mingw* | pw32* | os2*)
16487       # This hack is so that the source file can tell whether it is being
16488       # built for inclusion in a dll (and should export symbols for example).
16489       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16490       ;;
16491
16492     darwin* | rhapsody*)
16493       # PIC is the default on this platform
16494       # Common symbols not allowed in MH_DYLIB files
16495       lt_prog_compiler_pic_GCJ='-fno-common'
16496       ;;
16497
16498     interix3*)
16499       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16500       # Instead, we relocate shared libraries at runtime.
16501       ;;
16502
16503     msdosdjgpp*)
16504       # Just because we use GCC doesn't mean we suddenly get shared libraries
16505       # on systems that don't support them.
16506       lt_prog_compiler_can_build_shared_GCJ=no
16507       enable_shared=no
16508       ;;
16509
16510     sysv4*MP*)
16511       if test -d /usr/nec; then
16512         lt_prog_compiler_pic_GCJ=-Kconform_pic
16513       fi
16514       ;;
16515
16516     hpux*)
16517       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16518       # not for PA HP-UX.
16519       case $host_cpu in
16520       hppa*64*|ia64*)
16521         # +Z the default
16522         ;;
16523       *)
16524         lt_prog_compiler_pic_GCJ='-fPIC'
16525         ;;
16526       esac
16527       ;;
16528
16529     *)
16530       lt_prog_compiler_pic_GCJ='-fPIC'
16531       ;;
16532     esac
16533   else
16534     # PORTME Check for flag to pass linker flags through the system compiler.
16535     case $host_os in
16536     aix*)
16537       lt_prog_compiler_wl_GCJ='-Wl,'
16538       if test "$host_cpu" = ia64; then
16539         # AIX 5 now supports IA64 processor
16540         lt_prog_compiler_static_GCJ='-Bstatic'
16541       else
16542         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16543       fi
16544       ;;
16545       darwin*)
16546         # PIC is the default on this platform
16547         # Common symbols not allowed in MH_DYLIB files
16548        case $cc_basename in
16549          xlc*)
16550          lt_prog_compiler_pic_GCJ='-qnocommon'
16551          lt_prog_compiler_wl_GCJ='-Wl,'
16552          ;;
16553        esac
16554        ;;
16555
16556     mingw* | pw32* | os2*)
16557       # This hack is so that the source file can tell whether it is being
16558       # built for inclusion in a dll (and should export symbols for example).
16559       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16560       ;;
16561
16562     hpux9* | hpux10* | hpux11*)
16563       lt_prog_compiler_wl_GCJ='-Wl,'
16564       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16565       # not for PA HP-UX.
16566       case $host_cpu in
16567       hppa*64*|ia64*)
16568         # +Z the default
16569         ;;
16570       *)
16571         lt_prog_compiler_pic_GCJ='+Z'
16572         ;;
16573       esac
16574       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16575       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16576       ;;
16577
16578     irix5* | irix6* | nonstopux*)
16579       lt_prog_compiler_wl_GCJ='-Wl,'
16580       # PIC (with -KPIC) is the default.
16581       lt_prog_compiler_static_GCJ='-non_shared'
16582       ;;
16583
16584     newsos6)
16585       lt_prog_compiler_pic_GCJ='-KPIC'
16586       lt_prog_compiler_static_GCJ='-Bstatic'
16587       ;;
16588
16589     linux*)
16590       case $cc_basename in
16591       icc* | ecc*)
16592         lt_prog_compiler_wl_GCJ='-Wl,'
16593         lt_prog_compiler_pic_GCJ='-KPIC'
16594         lt_prog_compiler_static_GCJ='-static'
16595         ;;
16596       pgcc* | pgf77* | pgf90* | pgf95*)
16597         # Portland Group compilers (*not* the Pentium gcc compiler,
16598         # which looks to be a dead project)
16599         lt_prog_compiler_wl_GCJ='-Wl,'
16600         lt_prog_compiler_pic_GCJ='-fpic'
16601         lt_prog_compiler_static_GCJ='-Bstatic'
16602         ;;
16603       ccc*)
16604         lt_prog_compiler_wl_GCJ='-Wl,'
16605         # All Alpha code is PIC.
16606         lt_prog_compiler_static_GCJ='-non_shared'
16607         ;;
16608       esac
16609       ;;
16610
16611     osf3* | osf4* | osf5*)
16612       lt_prog_compiler_wl_GCJ='-Wl,'
16613       # All OSF/1 code is PIC.
16614       lt_prog_compiler_static_GCJ='-non_shared'
16615       ;;
16616
16617     solaris*)
16618       lt_prog_compiler_pic_GCJ='-KPIC'
16619       lt_prog_compiler_static_GCJ='-Bstatic'
16620       case $cc_basename in
16621       f77* | f90* | f95*)
16622         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16623       *)
16624         lt_prog_compiler_wl_GCJ='-Wl,';;
16625       esac
16626       ;;
16627
16628     sunos4*)
16629       lt_prog_compiler_wl_GCJ='-Qoption ld '
16630       lt_prog_compiler_pic_GCJ='-PIC'
16631       lt_prog_compiler_static_GCJ='-Bstatic'
16632       ;;
16633
16634     sysv4 | sysv4.2uw2* | sysv4.3*)
16635       lt_prog_compiler_wl_GCJ='-Wl,'
16636       lt_prog_compiler_pic_GCJ='-KPIC'
16637       lt_prog_compiler_static_GCJ='-Bstatic'
16638       ;;
16639
16640     sysv4*MP*)
16641       if test -d /usr/nec ;then
16642         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16643         lt_prog_compiler_static_GCJ='-Bstatic'
16644       fi
16645       ;;
16646
16647     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16648       lt_prog_compiler_wl_GCJ='-Wl,'
16649       lt_prog_compiler_pic_GCJ='-KPIC'
16650       lt_prog_compiler_static_GCJ='-Bstatic'
16651       ;;
16652
16653     unicos*)
16654       lt_prog_compiler_wl_GCJ='-Wl,'
16655       lt_prog_compiler_can_build_shared_GCJ=no
16656       ;;
16657
16658     uts4*)
16659       lt_prog_compiler_pic_GCJ='-pic'
16660       lt_prog_compiler_static_GCJ='-Bstatic'
16661       ;;
16662
16663     *)
16664       lt_prog_compiler_can_build_shared_GCJ=no
16665       ;;
16666     esac
16667   fi
16668
16669 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16670 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16671
16672 #
16673 # Check to make sure the PIC flag actually works.
16674 #
16675 if test -n "$lt_prog_compiler_pic_GCJ"; then
16676
16677 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16678 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16679 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16680   echo $ECHO_N "(cached) $ECHO_C" >&6
16681 else
16682   lt_prog_compiler_pic_works_GCJ=no
16683   ac_outfile=conftest.$ac_objext
16684    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16685    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16686    # Insert the option either (1) after the last *FLAGS variable, or
16687    # (2) before a word containing "conftest.", or (3) at the end.
16688    # Note that $ac_compile itself does not contain backslashes and begins
16689    # with a dollar sign (not a hyphen), so the echo should work correctly.
16690    # The option is referenced via a variable to avoid confusing sed.
16691    lt_compile=`echo "$ac_compile" | $SED \
16692    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16693    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16694    -e 's:$: $lt_compiler_flag:'`
16695    (eval echo "\"\$as_me:16695: $lt_compile\"" >&5)
16696    (eval "$lt_compile" 2>conftest.err)
16697    ac_status=$?
16698    cat conftest.err >&5
16699    echo "$as_me:16699: \$? = $ac_status" >&5
16700    if (exit $ac_status) && test -s "$ac_outfile"; then
16701      # The compiler can only warn and ignore the option if not recognized
16702      # So say no if there are warnings other than the usual output.
16703      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16704      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16705      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16706        lt_prog_compiler_pic_works_GCJ=yes
16707      fi
16708    fi
16709    $rm conftest*
16710
16711 fi
16712 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16713 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16714
16715 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16716     case $lt_prog_compiler_pic_GCJ in
16717      "" | " "*) ;;
16718      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16719      esac
16720 else
16721     lt_prog_compiler_pic_GCJ=
16722      lt_prog_compiler_can_build_shared_GCJ=no
16723 fi
16724
16725 fi
16726 case $host_os in
16727   # For platforms which do not support PIC, -DPIC is meaningless:
16728   *djgpp*)
16729     lt_prog_compiler_pic_GCJ=
16730     ;;
16731   *)
16732     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16733     ;;
16734 esac
16735
16736 #
16737 # Check to make sure the static flag actually works.
16738 #
16739 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16740 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16741 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16742 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16743   echo $ECHO_N "(cached) $ECHO_C" >&6
16744 else
16745   lt_prog_compiler_static_works_GCJ=no
16746    save_LDFLAGS="$LDFLAGS"
16747    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16748    printf "$lt_simple_link_test_code" > conftest.$ac_ext
16749    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16750      # The linker can only warn and ignore the option if not recognized
16751      # So say no if there are warnings
16752      if test -s conftest.err; then
16753        # Append any errors to the config.log.
16754        cat conftest.err 1>&5
16755        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16756        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16757        if diff conftest.exp conftest.er2 >/dev/null; then
16758          lt_prog_compiler_static_works_GCJ=yes
16759        fi
16760      else
16761        lt_prog_compiler_static_works_GCJ=yes
16762      fi
16763    fi
16764    $rm conftest*
16765    LDFLAGS="$save_LDFLAGS"
16766
16767 fi
16768 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16769 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16770
16771 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16772     :
16773 else
16774     lt_prog_compiler_static_GCJ=
16775 fi
16776
16777
16778 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16779 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16780 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16781   echo $ECHO_N "(cached) $ECHO_C" >&6
16782 else
16783   lt_cv_prog_compiler_c_o_GCJ=no
16784    $rm -r conftest 2>/dev/null
16785    mkdir conftest
16786    cd conftest
16787    mkdir out
16788    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16789
16790    lt_compiler_flag="-o out/conftest2.$ac_objext"
16791    # Insert the option either (1) after the last *FLAGS variable, or
16792    # (2) before a word containing "conftest.", or (3) at the end.
16793    # Note that $ac_compile itself does not contain backslashes and begins
16794    # with a dollar sign (not a hyphen), so the echo should work correctly.
16795    lt_compile=`echo "$ac_compile" | $SED \
16796    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16797    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16798    -e 's:$: $lt_compiler_flag:'`
16799    (eval echo "\"\$as_me:16799: $lt_compile\"" >&5)
16800    (eval "$lt_compile" 2>out/conftest.err)
16801    ac_status=$?
16802    cat out/conftest.err >&5
16803    echo "$as_me:16803: \$? = $ac_status" >&5
16804    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16805    then
16806      # The compiler can only warn and ignore the option if not recognized
16807      # So say no if there are warnings
16808      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16809      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16810      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16811        lt_cv_prog_compiler_c_o_GCJ=yes
16812      fi
16813    fi
16814    chmod u+w . 2>&5
16815    $rm conftest*
16816    # SGI C++ compiler will create directory out/ii_files/ for
16817    # template instantiation
16818    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16819    $rm out/* && rmdir out
16820    cd ..
16821    rmdir conftest
16822    $rm conftest*
16823
16824 fi
16825 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16826 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16827
16828
16829 hard_links="nottested"
16830 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16831   # do not overwrite the value of need_locks provided by the user
16832   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16833 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16834   hard_links=yes
16835   $rm conftest*
16836   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16837   touch conftest.a
16838   ln conftest.a conftest.b 2>&5 || hard_links=no
16839   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16840   { echo "$as_me:$LINENO: result: $hard_links" >&5
16841 echo "${ECHO_T}$hard_links" >&6; }
16842   if test "$hard_links" = no; then
16843     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16844 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16845     need_locks=warn
16846   fi
16847 else
16848   need_locks=no
16849 fi
16850
16851 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16852 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16853
16854   runpath_var=
16855   allow_undefined_flag_GCJ=
16856   enable_shared_with_static_runtimes_GCJ=no
16857   archive_cmds_GCJ=
16858   archive_expsym_cmds_GCJ=
16859   old_archive_From_new_cmds_GCJ=
16860   old_archive_from_expsyms_cmds_GCJ=
16861   export_dynamic_flag_spec_GCJ=
16862   whole_archive_flag_spec_GCJ=
16863   thread_safe_flag_spec_GCJ=
16864   hardcode_libdir_flag_spec_GCJ=
16865   hardcode_libdir_flag_spec_ld_GCJ=
16866   hardcode_libdir_separator_GCJ=
16867   hardcode_direct_GCJ=no
16868   hardcode_minus_L_GCJ=no
16869   hardcode_shlibpath_var_GCJ=unsupported
16870   link_all_deplibs_GCJ=unknown
16871   hardcode_automatic_GCJ=no
16872   module_cmds_GCJ=
16873   module_expsym_cmds_GCJ=
16874   always_export_symbols_GCJ=no
16875   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16876   # include_expsyms should be a list of space-separated symbols to be *always*
16877   # included in the symbol list
16878   include_expsyms_GCJ=
16879   # exclude_expsyms can be an extended regexp of symbols to exclude
16880   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16881   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16882   # as well as any symbol that contains `d'.
16883   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16884   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16885   # platforms (ab)use it in PIC code, but their linkers get confused if
16886   # the symbol is explicitly referenced.  Since portable code cannot
16887   # rely on this symbol name, it's probably fine to never include it in
16888   # preloaded symbol tables.
16889   extract_expsyms_cmds=
16890   # Just being paranoid about ensuring that cc_basename is set.
16891   for cc_temp in $compiler""; do
16892   case $cc_temp in
16893     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16894     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16895     \-*) ;;
16896     *) break;;
16897   esac
16898 done
16899 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16900
16901   case $host_os in
16902   cygwin* | mingw* | pw32*)
16903     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16904     # When not using gcc, we currently assume that we are using
16905     # Microsoft Visual C++.
16906     if test "$GCC" != yes; then
16907       with_gnu_ld=no
16908     fi
16909     ;;
16910   interix*)
16911     # we just hope/assume this is gcc and not c89 (= MSVC++)
16912     with_gnu_ld=yes
16913     ;;
16914   openbsd*)
16915     with_gnu_ld=no
16916     ;;
16917   esac
16918
16919   ld_shlibs_GCJ=yes
16920   if test "$with_gnu_ld" = yes; then
16921     # If archive_cmds runs LD, not CC, wlarc should be empty
16922     wlarc='${wl}'
16923
16924     # Set some defaults for GNU ld with shared library support. These
16925     # are reset later if shared libraries are not supported. Putting them
16926     # here allows them to be overridden if necessary.
16927     runpath_var=LD_RUN_PATH
16928     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16929     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16930     # ancient GNU ld didn't support --whole-archive et. al.
16931     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16932         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16933       else
16934         whole_archive_flag_spec_GCJ=
16935     fi
16936     supports_anon_versioning=no
16937     case `$LD -v 2>/dev/null` in
16938       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16939       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16940       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16941       *\ 2.11.*) ;; # other 2.11 versions
16942       *) supports_anon_versioning=yes ;;
16943     esac
16944
16945     # See if GNU ld supports shared libraries.
16946     case $host_os in
16947     aix3* | aix4* | aix5*)
16948       # On AIX/PPC, the GNU linker is very broken
16949       if test "$host_cpu" != ia64; then
16950         ld_shlibs_GCJ=no
16951         cat <<EOF 1>&2
16952
16953 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16954 *** to be unable to reliably create shared libraries on AIX.
16955 *** Therefore, libtool is disabling shared libraries support.  If you
16956 *** really care for shared libraries, you may want to modify your PATH
16957 *** so that a non-GNU linker is found, and then restart.
16958
16959 EOF
16960       fi
16961       ;;
16962
16963     amigaos*)
16964       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)'
16965       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16966       hardcode_minus_L_GCJ=yes
16967
16968       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16969       # that the semantics of dynamic libraries on AmigaOS, at least up
16970       # to version 4, is to share data among multiple programs linked
16971       # with the same dynamic library.  Since this doesn't match the
16972       # behavior of shared libraries on other platforms, we can't use
16973       # them.
16974       ld_shlibs_GCJ=no
16975       ;;
16976
16977     beos*)
16978       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16979         allow_undefined_flag_GCJ=unsupported
16980         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16981         # support --undefined.  This deserves some investigation.  FIXME
16982         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16983       else
16984         ld_shlibs_GCJ=no
16985       fi
16986       ;;
16987
16988     cygwin* | mingw* | pw32*)
16989       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16990       # as there is no search path for DLLs.
16991       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16992       allow_undefined_flag_GCJ=unsupported
16993       always_export_symbols_GCJ=no
16994       enable_shared_with_static_runtimes_GCJ=yes
16995       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16996
16997       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16998         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16999         # If the export-symbols file already is a .def file (1st line
17000         # is EXPORTS), use it as is; otherwise, prepend...
17001         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17002           cp $export_symbols $output_objdir/$soname.def;
17003         else
17004           echo EXPORTS > $output_objdir/$soname.def;
17005           cat $export_symbols >> $output_objdir/$soname.def;
17006         fi~
17007         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17008       else
17009         ld_shlibs_GCJ=no
17010       fi
17011       ;;
17012
17013     interix3*)
17014       hardcode_direct_GCJ=no
17015       hardcode_shlibpath_var_GCJ=no
17016       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17017       export_dynamic_flag_spec_GCJ='${wl}-E'
17018       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17019       # Instead, shared libraries are loaded at an image base (0x10000000 by
17020       # default) and relocated if they conflict, which is a slow very memory
17021       # consuming and fragmenting process.  To avoid this, we pick a random,
17022       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17023       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17024       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'
17025       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'
17026       ;;
17027
17028     linux*)
17029       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17030         tmp_addflag=
17031         case $cc_basename,$host_cpu in
17032         pgcc*)                          # Portland Group C compiler
17033           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'
17034           tmp_addflag=' $pic_flag'
17035           ;;
17036         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17037           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'
17038           tmp_addflag=' $pic_flag -Mnomain' ;;
17039         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17040           tmp_addflag=' -i_dynamic' ;;
17041         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17042           tmp_addflag=' -i_dynamic -nofor_main' ;;
17043         ifc* | ifort*)                  # Intel Fortran compiler
17044           tmp_addflag=' -nofor_main' ;;
17045         esac
17046         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17047
17048         if test $supports_anon_versioning = yes; then
17049           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17050   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17051   $echo "local: *; };" >> $output_objdir/$libname.ver~
17052           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17053         fi
17054       else
17055         ld_shlibs_GCJ=no
17056       fi
17057       ;;
17058
17059     netbsd*)
17060       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17061         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17062         wlarc=
17063       else
17064         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17065         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17066       fi
17067       ;;
17068
17069     solaris*)
17070       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17071         ld_shlibs_GCJ=no
17072         cat <<EOF 1>&2
17073
17074 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17075 *** create shared libraries on Solaris systems.  Therefore, libtool
17076 *** is disabling shared libraries support.  We urge you to upgrade GNU
17077 *** binutils to release 2.9.1 or newer.  Another option is to modify
17078 *** your PATH or compiler configuration so that the native linker is
17079 *** used, and then restart.
17080
17081 EOF
17082       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17083         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17084         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17085       else
17086         ld_shlibs_GCJ=no
17087       fi
17088       ;;
17089
17090     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17091       case `$LD -v 2>&1` in
17092         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17093         ld_shlibs_GCJ=no
17094         cat <<_LT_EOF 1>&2
17095
17096 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17097 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17098 *** is disabling shared libraries support.  We urge you to upgrade GNU
17099 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17100 *** your PATH or compiler configuration so that the native linker is
17101 *** used, and then restart.
17102
17103 _LT_EOF
17104         ;;
17105         *)
17106           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17107             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17108             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17109             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17110           else
17111             ld_shlibs_GCJ=no
17112           fi
17113         ;;
17114       esac
17115       ;;
17116
17117     sunos4*)
17118       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17119       wlarc=
17120       hardcode_direct_GCJ=yes
17121       hardcode_shlibpath_var_GCJ=no
17122       ;;
17123
17124     *)
17125       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17126         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17127         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17128       else
17129         ld_shlibs_GCJ=no
17130       fi
17131       ;;
17132     esac
17133
17134     if test "$ld_shlibs_GCJ" = no; then
17135       runpath_var=
17136       hardcode_libdir_flag_spec_GCJ=
17137       export_dynamic_flag_spec_GCJ=
17138       whole_archive_flag_spec_GCJ=
17139     fi
17140   else
17141     # PORTME fill in a description of your system's linker (not GNU ld)
17142     case $host_os in
17143     aix3*)
17144       allow_undefined_flag_GCJ=unsupported
17145       always_export_symbols_GCJ=yes
17146       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'
17147       # Note: this linker hardcodes the directories in LIBPATH if there
17148       # are no directories specified by -L.
17149       hardcode_minus_L_GCJ=yes
17150       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17151         # Neither direct hardcoding nor static linking is supported with a
17152         # broken collect2.
17153         hardcode_direct_GCJ=unsupported
17154       fi
17155       ;;
17156
17157     aix4* | aix5*)
17158       if test "$host_cpu" = ia64; then
17159         # On IA64, the linker does run time linking by default, so we don't
17160         # have to do anything special.
17161         aix_use_runtimelinking=no
17162         exp_sym_flag='-Bexport'
17163         no_entry_flag=""
17164       else
17165         # If we're using GNU nm, then we don't want the "-C" option.
17166         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17167         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17168           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'
17169         else
17170           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'
17171         fi
17172         aix_use_runtimelinking=no
17173
17174         # Test if we are trying to use run time linking or normal
17175         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17176         # need to do runtime linking.
17177         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17178           for ld_flag in $LDFLAGS; do
17179           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17180             aix_use_runtimelinking=yes
17181             break
17182           fi
17183           done
17184           ;;
17185         esac
17186
17187         exp_sym_flag='-bexport'
17188         no_entry_flag='-bnoentry'
17189       fi
17190
17191       # When large executables or shared objects are built, AIX ld can
17192       # have problems creating the table of contents.  If linking a library
17193       # or program results in "error TOC overflow" add -mminimal-toc to
17194       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17195       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17196
17197       archive_cmds_GCJ=''
17198       hardcode_direct_GCJ=yes
17199       hardcode_libdir_separator_GCJ=':'
17200       link_all_deplibs_GCJ=yes
17201
17202       if test "$GCC" = yes; then
17203         case $host_os in aix4.[012]|aix4.[012].*)
17204         # We only want to do this on AIX 4.2 and lower, the check
17205         # below for broken collect2 doesn't work under 4.3+
17206           collect2name=`${CC} -print-prog-name=collect2`
17207           if test -f "$collect2name" && \
17208            strings "$collect2name" | grep resolve_lib_name >/dev/null
17209           then
17210           # We have reworked collect2
17211           hardcode_direct_GCJ=yes
17212           else
17213           # We have old collect2
17214           hardcode_direct_GCJ=unsupported
17215           # It fails to find uninstalled libraries when the uninstalled
17216           # path is not listed in the libpath.  Setting hardcode_minus_L
17217           # to unsupported forces relinking
17218           hardcode_minus_L_GCJ=yes
17219           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17220           hardcode_libdir_separator_GCJ=
17221           fi
17222           ;;
17223         esac
17224         shared_flag='-shared'
17225         if test "$aix_use_runtimelinking" = yes; then
17226           shared_flag="$shared_flag "'${wl}-G'
17227         fi
17228       else
17229         # not using gcc
17230         if test "$host_cpu" = ia64; then
17231         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17232         # chokes on -Wl,-G. The following line is correct:
17233           shared_flag='-G'
17234         else
17235           if test "$aix_use_runtimelinking" = yes; then
17236             shared_flag='${wl}-G'
17237           else
17238             shared_flag='${wl}-bM:SRE'
17239           fi
17240         fi
17241       fi
17242
17243       # It seems that -bexpall does not export symbols beginning with
17244       # underscore (_), so it is better to generate a list of symbols to export.
17245       always_export_symbols_GCJ=yes
17246       if test "$aix_use_runtimelinking" = yes; then
17247         # Warning - without using the other runtime loading flags (-brtl),
17248         # -berok will link without error, but may produce a broken library.
17249         allow_undefined_flag_GCJ='-berok'
17250        # Determine the default libpath from the value encoded in an empty executable.
17251        cat >conftest.$ac_ext <<_ACEOF
17252 /* confdefs.h.  */
17253 _ACEOF
17254 cat confdefs.h >>conftest.$ac_ext
17255 cat >>conftest.$ac_ext <<_ACEOF
17256 /* end confdefs.h.  */
17257
17258 int
17259 main ()
17260 {
17261
17262   ;
17263   return 0;
17264 }
17265 _ACEOF
17266 rm -f conftest.$ac_objext conftest$ac_exeext
17267 if { (ac_try="$ac_link"
17268 case "(($ac_try" in
17269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17270   *) ac_try_echo=$ac_try;;
17271 esac
17272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17273   (eval "$ac_link") 2>conftest.er1
17274   ac_status=$?
17275   grep -v '^ *+' conftest.er1 >conftest.err
17276   rm -f conftest.er1
17277   cat conftest.err >&5
17278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17279   (exit $ac_status); } && {
17280          test -z "$ac_c_werror_flag" ||
17281          test ! -s conftest.err
17282        } && test -s conftest$ac_exeext &&
17283        $as_test_x conftest$ac_exeext; then
17284
17285 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17286 }'`
17287 # Check for a 64-bit object if we didn't find anything.
17288 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17289 }'`; fi
17290 else
17291   echo "$as_me: failed program was:" >&5
17292 sed 's/^/| /' conftest.$ac_ext >&5
17293
17294
17295 fi
17296
17297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17298       conftest$ac_exeext conftest.$ac_ext
17299 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17300
17301        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17302         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"
17303        else
17304         if test "$host_cpu" = ia64; then
17305           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17306           allow_undefined_flag_GCJ="-z nodefs"
17307           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"
17308         else
17309          # Determine the default libpath from the value encoded in an empty executable.
17310          cat >conftest.$ac_ext <<_ACEOF
17311 /* confdefs.h.  */
17312 _ACEOF
17313 cat confdefs.h >>conftest.$ac_ext
17314 cat >>conftest.$ac_ext <<_ACEOF
17315 /* end confdefs.h.  */
17316
17317 int
17318 main ()
17319 {
17320
17321   ;
17322   return 0;
17323 }
17324 _ACEOF
17325 rm -f conftest.$ac_objext conftest$ac_exeext
17326 if { (ac_try="$ac_link"
17327 case "(($ac_try" in
17328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17329   *) ac_try_echo=$ac_try;;
17330 esac
17331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17332   (eval "$ac_link") 2>conftest.er1
17333   ac_status=$?
17334   grep -v '^ *+' conftest.er1 >conftest.err
17335   rm -f conftest.er1
17336   cat conftest.err >&5
17337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17338   (exit $ac_status); } && {
17339          test -z "$ac_c_werror_flag" ||
17340          test ! -s conftest.err
17341        } && test -s conftest$ac_exeext &&
17342        $as_test_x conftest$ac_exeext; then
17343
17344 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17345 }'`
17346 # Check for a 64-bit object if we didn't find anything.
17347 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17348 }'`; fi
17349 else
17350   echo "$as_me: failed program was:" >&5
17351 sed 's/^/| /' conftest.$ac_ext >&5
17352
17353
17354 fi
17355
17356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17357       conftest$ac_exeext conftest.$ac_ext
17358 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17359
17360          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17361           # Warning - without using the other run time loading flags,
17362           # -berok will link without error, but may produce a broken library.
17363           no_undefined_flag_GCJ=' ${wl}-bernotok'
17364           allow_undefined_flag_GCJ=' ${wl}-berok'
17365           # Exported symbols can be pulled into shared objects from archives
17366           whole_archive_flag_spec_GCJ='$convenience'
17367           archive_cmds_need_lc_GCJ=yes
17368           # This is similar to how AIX traditionally builds its shared libraries.
17369           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'
17370         fi
17371       fi
17372       ;;
17373
17374     amigaos*)
17375       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)'
17376       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17377       hardcode_minus_L_GCJ=yes
17378       # see comment about different semantics on the GNU ld section
17379       ld_shlibs_GCJ=no
17380       ;;
17381
17382     bsdi[45]*)
17383       export_dynamic_flag_spec_GCJ=-rdynamic
17384       ;;
17385
17386     cygwin* | mingw* | pw32*)
17387       # When not using gcc, we currently assume that we are using
17388       # Microsoft Visual C++.
17389       # hardcode_libdir_flag_spec is actually meaningless, as there is
17390       # no search path for DLLs.
17391       hardcode_libdir_flag_spec_GCJ=' '
17392       allow_undefined_flag_GCJ=unsupported
17393       # Tell ltmain to make .lib files, not .a files.
17394       libext=lib
17395       # Tell ltmain to make .dll files, not .so files.
17396       shrext_cmds=".dll"
17397       # FIXME: Setting linknames here is a bad hack.
17398       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17399       # The linker will automatically build a .lib file if we build a DLL.
17400       old_archive_From_new_cmds_GCJ='true'
17401       # FIXME: Should let the user specify the lib program.
17402       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17403       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17404       enable_shared_with_static_runtimes_GCJ=yes
17405       ;;
17406
17407     darwin* | rhapsody*)
17408       case $host_os in
17409         rhapsody* | darwin1.[012])
17410          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17411          ;;
17412        *) # Darwin 1.3 on
17413          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17414            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17415          else
17416            case ${MACOSX_DEPLOYMENT_TARGET} in
17417              10.[012])
17418                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17419                ;;
17420              10.*)
17421                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17422                ;;
17423            esac
17424          fi
17425          ;;
17426       esac
17427       archive_cmds_need_lc_GCJ=no
17428       hardcode_direct_GCJ=no
17429       hardcode_automatic_GCJ=yes
17430       hardcode_shlibpath_var_GCJ=unsupported
17431       whole_archive_flag_spec_GCJ=''
17432       link_all_deplibs_GCJ=yes
17433     if test "$GCC" = yes ; then
17434         output_verbose_link_cmd='echo'
17435         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17436       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17437       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17438       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17439       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}'
17440     else
17441       case $cc_basename in
17442         xlc*)
17443          output_verbose_link_cmd='echo'
17444          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17445          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17446           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17447          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17448           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}'
17449           ;;
17450        *)
17451          ld_shlibs_GCJ=no
17452           ;;
17453       esac
17454     fi
17455       ;;
17456
17457     dgux*)
17458       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17459       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17460       hardcode_shlibpath_var_GCJ=no
17461       ;;
17462
17463     freebsd1*)
17464       ld_shlibs_GCJ=no
17465       ;;
17466
17467     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17468     # support.  Future versions do this automatically, but an explicit c++rt0.o
17469     # does not break anything, and helps significantly (at the cost of a little
17470     # extra space).
17471     freebsd2.2*)
17472       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17473       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17474       hardcode_direct_GCJ=yes
17475       hardcode_shlibpath_var_GCJ=no
17476       ;;
17477
17478     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17479     freebsd2*)
17480       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17481       hardcode_direct_GCJ=yes
17482       hardcode_minus_L_GCJ=yes
17483       hardcode_shlibpath_var_GCJ=no
17484       ;;
17485
17486     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17487     freebsd* | kfreebsd*-gnu | dragonfly*)
17488       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17489       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17490       hardcode_direct_GCJ=yes
17491       hardcode_shlibpath_var_GCJ=no
17492       ;;
17493
17494     hpux9*)
17495       if test "$GCC" = yes; then
17496         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'
17497       else
17498         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'
17499       fi
17500       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17501       hardcode_libdir_separator_GCJ=:
17502       hardcode_direct_GCJ=yes
17503
17504       # hardcode_minus_L: Not really in the search PATH,
17505       # but as the default location of the library.
17506       hardcode_minus_L_GCJ=yes
17507       export_dynamic_flag_spec_GCJ='${wl}-E'
17508       ;;
17509
17510     hpux10*)
17511       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17512         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17513       else
17514         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17515       fi
17516       if test "$with_gnu_ld" = no; then
17517         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17518         hardcode_libdir_separator_GCJ=:
17519
17520         hardcode_direct_GCJ=yes
17521         export_dynamic_flag_spec_GCJ='${wl}-E'
17522
17523         # hardcode_minus_L: Not really in the search PATH,
17524         # but as the default location of the library.
17525         hardcode_minus_L_GCJ=yes
17526       fi
17527       ;;
17528
17529     hpux11*)
17530       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17531         case $host_cpu in
17532         hppa*64*)
17533           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17534           ;;
17535         ia64*)
17536           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17537           ;;
17538         *)
17539           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17540           ;;
17541         esac
17542       else
17543         case $host_cpu in
17544         hppa*64*)
17545           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17546           ;;
17547         ia64*)
17548           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17549           ;;
17550         *)
17551           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17552           ;;
17553         esac
17554       fi
17555       if test "$with_gnu_ld" = no; then
17556         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17557         hardcode_libdir_separator_GCJ=:
17558
17559         case $host_cpu in
17560         hppa*64*|ia64*)
17561           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17562           hardcode_direct_GCJ=no
17563           hardcode_shlibpath_var_GCJ=no
17564           ;;
17565         *)
17566           hardcode_direct_GCJ=yes
17567           export_dynamic_flag_spec_GCJ='${wl}-E'
17568
17569           # hardcode_minus_L: Not really in the search PATH,
17570           # but as the default location of the library.
17571           hardcode_minus_L_GCJ=yes
17572           ;;
17573         esac
17574       fi
17575       ;;
17576
17577     irix5* | irix6* | nonstopux*)
17578       if test "$GCC" = yes; then
17579         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'
17580       else
17581         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'
17582         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17583       fi
17584       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17585       hardcode_libdir_separator_GCJ=:
17586       link_all_deplibs_GCJ=yes
17587       ;;
17588
17589     netbsd*)
17590       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17591         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17592       else
17593         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17594       fi
17595       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17596       hardcode_direct_GCJ=yes
17597       hardcode_shlibpath_var_GCJ=no
17598       ;;
17599
17600     newsos6)
17601       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17602       hardcode_direct_GCJ=yes
17603       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17604       hardcode_libdir_separator_GCJ=:
17605       hardcode_shlibpath_var_GCJ=no
17606       ;;
17607
17608     openbsd*)
17609       hardcode_direct_GCJ=yes
17610       hardcode_shlibpath_var_GCJ=no
17611       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17612         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17613         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17614         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17615         export_dynamic_flag_spec_GCJ='${wl}-E'
17616       else
17617        case $host_os in
17618          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17619            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17620            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17621            ;;
17622          *)
17623            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17624            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17625            ;;
17626        esac
17627       fi
17628       ;;
17629
17630     os2*)
17631       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17632       hardcode_minus_L_GCJ=yes
17633       allow_undefined_flag_GCJ=unsupported
17634       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'
17635       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17636       ;;
17637
17638     osf3*)
17639       if test "$GCC" = yes; then
17640         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17641         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'
17642       else
17643         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17644         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'
17645       fi
17646       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17647       hardcode_libdir_separator_GCJ=:
17648       ;;
17649
17650     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17651       if test "$GCC" = yes; then
17652         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17653         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'
17654         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17655       else
17656         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17657         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'
17658         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~
17659         $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'
17660
17661         # Both c and cxx compiler support -rpath directly
17662         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17663       fi
17664       hardcode_libdir_separator_GCJ=:
17665       ;;
17666
17667     solaris*)
17668       no_undefined_flag_GCJ=' -z text'
17669       if test "$GCC" = yes; then
17670         wlarc='${wl}'
17671         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17672         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17673           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17674       else
17675         wlarc=''
17676         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17677         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17678         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17679       fi
17680       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17681       hardcode_shlibpath_var_GCJ=no
17682       case $host_os in
17683       solaris2.[0-5] | solaris2.[0-5].*) ;;
17684       *)
17685         # The compiler driver will combine linker options so we
17686         # cannot just pass the convience library names through
17687         # without $wl, iff we do not link with $LD.
17688         # Luckily, gcc supports the same syntax we need for Sun Studio.
17689         # Supported since Solaris 2.6 (maybe 2.5.1?)
17690         case $wlarc in
17691         '')
17692           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17693         *)
17694           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17695         esac ;;
17696       esac
17697       link_all_deplibs_GCJ=yes
17698       ;;
17699
17700     sunos4*)
17701       if test "x$host_vendor" = xsequent; then
17702         # Use $CC to link under sequent, because it throws in some extra .o
17703         # files that make .init and .fini sections work.
17704         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17705       else
17706         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17707       fi
17708       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17709       hardcode_direct_GCJ=yes
17710       hardcode_minus_L_GCJ=yes
17711       hardcode_shlibpath_var_GCJ=no
17712       ;;
17713
17714     sysv4)
17715       case $host_vendor in
17716         sni)
17717           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17718           hardcode_direct_GCJ=yes # is this really true???
17719         ;;
17720         siemens)
17721           ## LD is ld it makes a PLAMLIB
17722           ## CC just makes a GrossModule.
17723           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17724           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17725           hardcode_direct_GCJ=no
17726         ;;
17727         motorola)
17728           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17729           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17730         ;;
17731       esac
17732       runpath_var='LD_RUN_PATH'
17733       hardcode_shlibpath_var_GCJ=no
17734       ;;
17735
17736     sysv4.3*)
17737       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17738       hardcode_shlibpath_var_GCJ=no
17739       export_dynamic_flag_spec_GCJ='-Bexport'
17740       ;;
17741
17742     sysv4*MP*)
17743       if test -d /usr/nec; then
17744         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17745         hardcode_shlibpath_var_GCJ=no
17746         runpath_var=LD_RUN_PATH
17747         hardcode_runpath_var=yes
17748         ld_shlibs_GCJ=yes
17749       fi
17750       ;;
17751
17752     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17753       no_undefined_flag_GCJ='${wl}-z,text'
17754       archive_cmds_need_lc_GCJ=no
17755       hardcode_shlibpath_var_GCJ=no
17756       runpath_var='LD_RUN_PATH'
17757
17758       if test "$GCC" = yes; then
17759         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17760         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17761       else
17762         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17763         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17764       fi
17765       ;;
17766
17767     sysv5* | sco3.2v5* | sco5v6*)
17768       # Note: We can NOT use -z defs as we might desire, because we do not
17769       # link with -lc, and that would cause any symbols used from libc to
17770       # always be unresolved, which means just about no library would
17771       # ever link correctly.  If we're not using GNU ld we use -z text
17772       # though, which does catch some bad symbols but isn't as heavy-handed
17773       # as -z defs.
17774       no_undefined_flag_GCJ='${wl}-z,text'
17775       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17776       archive_cmds_need_lc_GCJ=no
17777       hardcode_shlibpath_var_GCJ=no
17778       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17779       hardcode_libdir_separator_GCJ=':'
17780       link_all_deplibs_GCJ=yes
17781       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17782       runpath_var='LD_RUN_PATH'
17783
17784       if test "$GCC" = yes; then
17785         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17786         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17787       else
17788         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17789         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17790       fi
17791       ;;
17792
17793     uts4*)
17794       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17795       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17796       hardcode_shlibpath_var_GCJ=no
17797       ;;
17798
17799     *)
17800       ld_shlibs_GCJ=no
17801       ;;
17802     esac
17803   fi
17804
17805 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17806 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17807 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17808
17809 #
17810 # Do we need to explicitly link libc?
17811 #
17812 case "x$archive_cmds_need_lc_GCJ" in
17813 x|xyes)
17814   # Assume -lc should be added
17815   archive_cmds_need_lc_GCJ=yes
17816
17817   if test "$enable_shared" = yes && test "$GCC" = yes; then
17818     case $archive_cmds_GCJ in
17819     *'~'*)
17820       # FIXME: we may have to deal with multi-command sequences.
17821       ;;
17822     '$CC '*)
17823       # Test whether the compiler implicitly links with -lc since on some
17824       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17825       # to ld, don't add -lc before -lgcc.
17826       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17827 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17828       $rm conftest*
17829       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17830
17831       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17832   (eval $ac_compile) 2>&5
17833   ac_status=$?
17834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835   (exit $ac_status); } 2>conftest.err; then
17836         soname=conftest
17837         lib=conftest
17838         libobjs=conftest.$ac_objext
17839         deplibs=
17840         wl=$lt_prog_compiler_wl_GCJ
17841         pic_flag=$lt_prog_compiler_pic_GCJ
17842         compiler_flags=-v
17843         linker_flags=-v
17844         verstring=
17845         output_objdir=.
17846         libname=conftest
17847         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17848         allow_undefined_flag_GCJ=
17849         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17850   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17851   ac_status=$?
17852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853   (exit $ac_status); }
17854         then
17855           archive_cmds_need_lc_GCJ=no
17856         else
17857           archive_cmds_need_lc_GCJ=yes
17858         fi
17859         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17860       else
17861         cat conftest.err 1>&5
17862       fi
17863       $rm conftest*
17864       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17865 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17866       ;;
17867     esac
17868   fi
17869   ;;
17870 esac
17871
17872 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17873 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17874 library_names_spec=
17875 libname_spec='lib$name'
17876 soname_spec=
17877 shrext_cmds=".so"
17878 postinstall_cmds=
17879 postuninstall_cmds=
17880 finish_cmds=
17881 finish_eval=
17882 shlibpath_var=
17883 shlibpath_overrides_runpath=unknown
17884 version_type=none
17885 dynamic_linker="$host_os ld.so"
17886 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17887 if test "$GCC" = yes; then
17888   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17889   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17890     # if the path contains ";" then we assume it to be the separator
17891     # otherwise default to the standard path separator (i.e. ":") - it is
17892     # assumed that no part of a normal pathname contains ";" but that should
17893     # okay in the real world where ";" in dirpaths is itself problematic.
17894     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17895   else
17896     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17897   fi
17898 else
17899   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17900 fi
17901 need_lib_prefix=unknown
17902 hardcode_into_libs=no
17903
17904 # when you set need_version to no, make sure it does not cause -set_version
17905 # flags to be left without arguments
17906 need_version=unknown
17907
17908 case $host_os in
17909 aix3*)
17910   version_type=linux
17911   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17912   shlibpath_var=LIBPATH
17913
17914   # AIX 3 has no versioning support, so we append a major version to the name.
17915   soname_spec='${libname}${release}${shared_ext}$major'
17916   ;;
17917
17918 aix4* | aix5*)
17919   version_type=linux
17920   need_lib_prefix=no
17921   need_version=no
17922   hardcode_into_libs=yes
17923   if test "$host_cpu" = ia64; then
17924     # AIX 5 supports IA64
17925     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17926     shlibpath_var=LD_LIBRARY_PATH
17927   else
17928     # With GCC up to 2.95.x, collect2 would create an import file
17929     # for dependence libraries.  The import file would start with
17930     # the line `#! .'.  This would cause the generated library to
17931     # depend on `.', always an invalid library.  This was fixed in
17932     # development snapshots of GCC prior to 3.0.
17933     case $host_os in
17934       aix4 | aix4.[01] | aix4.[01].*)
17935       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17936            echo ' yes '
17937            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17938         :
17939       else
17940         can_build_shared=no
17941       fi
17942       ;;
17943     esac
17944     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17945     # soname into executable. Probably we can add versioning support to
17946     # collect2, so additional links can be useful in future.
17947     if test "$aix_use_runtimelinking" = yes; then
17948       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17949       # instead of lib<name>.a to let people know that these are not
17950       # typical AIX shared libraries.
17951       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17952     else
17953       # We preserve .a as extension for shared libraries through AIX4.2
17954       # and later when we are not doing run time linking.
17955       library_names_spec='${libname}${release}.a $libname.a'
17956       soname_spec='${libname}${release}${shared_ext}$major'
17957     fi
17958     shlibpath_var=LIBPATH
17959   fi
17960   ;;
17961
17962 amigaos*)
17963   library_names_spec='$libname.ixlibrary $libname.a'
17964   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17965   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'
17966   ;;
17967
17968 beos*)
17969   library_names_spec='${libname}${shared_ext}'
17970   dynamic_linker="$host_os ld.so"
17971   shlibpath_var=LIBRARY_PATH
17972   ;;
17973
17974 bsdi[45]*)
17975   version_type=linux
17976   need_version=no
17977   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17978   soname_spec='${libname}${release}${shared_ext}$major'
17979   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17980   shlibpath_var=LD_LIBRARY_PATH
17981   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17982   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17983   # the default ld.so.conf also contains /usr/contrib/lib and
17984   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17985   # libtool to hard-code these into programs
17986   ;;
17987
17988 cygwin* | mingw* | pw32*)
17989   version_type=windows
17990   shrext_cmds=".dll"
17991   need_version=no
17992   need_lib_prefix=no
17993
17994   case $GCC,$host_os in
17995   yes,cygwin* | yes,mingw* | yes,pw32*)
17996     library_names_spec='$libname.dll.a'
17997     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17998     postinstall_cmds='base_file=`basename \${file}`~
17999       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18000       dldir=$destdir/`dirname \$dlpath`~
18001       test -d \$dldir || mkdir -p \$dldir~
18002       $install_prog $dir/$dlname \$dldir/$dlname~
18003       chmod a+x \$dldir/$dlname'
18004     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18005       dlpath=$dir/\$dldll~
18006        $rm \$dlpath'
18007     shlibpath_overrides_runpath=yes
18008
18009     case $host_os in
18010     cygwin*)
18011       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18012       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18013       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18014       ;;
18015     mingw*)
18016       # MinGW DLLs use traditional 'lib' prefix
18017       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18018       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18019       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18020         # It is most probably a Windows format PATH printed by
18021         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18022         # path with ; separators, and with drive letters. We can handle the
18023         # drive letters (cygwin fileutils understands them), so leave them,
18024         # especially as we might pass files found there to a mingw objdump,
18025         # which wouldn't understand a cygwinified path. Ahh.
18026         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18027       else
18028         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18029       fi
18030       ;;
18031     pw32*)
18032       # pw32 DLLs use 'pw' prefix rather than 'lib'
18033       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18034       ;;
18035     esac
18036     ;;
18037
18038   *)
18039     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18040     ;;
18041   esac
18042   dynamic_linker='Win32 ld.exe'
18043   # FIXME: first we should search . and the directory the executable is in
18044   shlibpath_var=PATH
18045   ;;
18046
18047 darwin* | rhapsody*)
18048   dynamic_linker="$host_os dyld"
18049   version_type=darwin
18050   need_lib_prefix=no
18051   need_version=no
18052   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18053   soname_spec='${libname}${release}${major}$shared_ext'
18054   shlibpath_overrides_runpath=yes
18055   shlibpath_var=DYLD_LIBRARY_PATH
18056   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18057   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18058   if test "$GCC" = yes; then
18059     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18060   else
18061     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18062   fi
18063   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18064   ;;
18065
18066 dgux*)
18067   version_type=linux
18068   need_lib_prefix=no
18069   need_version=no
18070   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18071   soname_spec='${libname}${release}${shared_ext}$major'
18072   shlibpath_var=LD_LIBRARY_PATH
18073   ;;
18074
18075 freebsd1*)
18076   dynamic_linker=no
18077   ;;
18078
18079 kfreebsd*-gnu)
18080   version_type=linux
18081   need_lib_prefix=no
18082   need_version=no
18083   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18084   soname_spec='${libname}${release}${shared_ext}$major'
18085   shlibpath_var=LD_LIBRARY_PATH
18086   shlibpath_overrides_runpath=no
18087   hardcode_into_libs=yes
18088   dynamic_linker='GNU ld.so'
18089   ;;
18090
18091 freebsd* | dragonfly*)
18092   # DragonFly does not have aout.  When/if they implement a new
18093   # versioning mechanism, adjust this.
18094   if test -x /usr/bin/objformat; then
18095     objformat=`/usr/bin/objformat`
18096   else
18097     case $host_os in
18098     freebsd[123]*) objformat=aout ;;
18099     *) objformat=elf ;;
18100     esac
18101   fi
18102   version_type=freebsd-$objformat
18103   case $version_type in
18104     freebsd-elf*)
18105       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18106       need_version=no
18107       need_lib_prefix=no
18108       ;;
18109     freebsd-*)
18110       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18111       need_version=yes
18112       ;;
18113   esac
18114   shlibpath_var=LD_LIBRARY_PATH
18115   case $host_os in
18116   freebsd2*)
18117     shlibpath_overrides_runpath=yes
18118     ;;
18119   freebsd3.[01]* | freebsdelf3.[01]*)
18120     shlibpath_overrides_runpath=yes
18121     hardcode_into_libs=yes
18122     ;;
18123   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18124   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18125     shlibpath_overrides_runpath=no
18126     hardcode_into_libs=yes
18127     ;;
18128   freebsd*) # from 4.6 on
18129     shlibpath_overrides_runpath=yes
18130     hardcode_into_libs=yes
18131     ;;
18132   esac
18133   ;;
18134
18135 gnu*)
18136   version_type=linux
18137   need_lib_prefix=no
18138   need_version=no
18139   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18140   soname_spec='${libname}${release}${shared_ext}$major'
18141   shlibpath_var=LD_LIBRARY_PATH
18142   hardcode_into_libs=yes
18143   ;;
18144
18145 hpux9* | hpux10* | hpux11*)
18146   # Give a soname corresponding to the major version so that dld.sl refuses to
18147   # link against other versions.
18148   version_type=sunos
18149   need_lib_prefix=no
18150   need_version=no
18151   case $host_cpu in
18152   ia64*)
18153     shrext_cmds='.so'
18154     hardcode_into_libs=yes
18155     dynamic_linker="$host_os dld.so"
18156     shlibpath_var=LD_LIBRARY_PATH
18157     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18158     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18159     soname_spec='${libname}${release}${shared_ext}$major'
18160     if test "X$HPUX_IA64_MODE" = X32; then
18161       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18162     else
18163       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18164     fi
18165     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18166     ;;
18167    hppa*64*)
18168      shrext_cmds='.sl'
18169      hardcode_into_libs=yes
18170      dynamic_linker="$host_os dld.sl"
18171      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18172      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18173      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18174      soname_spec='${libname}${release}${shared_ext}$major'
18175      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18176      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18177      ;;
18178    *)
18179     shrext_cmds='.sl'
18180     dynamic_linker="$host_os dld.sl"
18181     shlibpath_var=SHLIB_PATH
18182     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18183     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18184     soname_spec='${libname}${release}${shared_ext}$major'
18185     ;;
18186   esac
18187   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18188   postinstall_cmds='chmod 555 $lib'
18189   ;;
18190
18191 interix3*)
18192   version_type=linux
18193   need_lib_prefix=no
18194   need_version=no
18195   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18196   soname_spec='${libname}${release}${shared_ext}$major'
18197   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18198   shlibpath_var=LD_LIBRARY_PATH
18199   shlibpath_overrides_runpath=no
18200   hardcode_into_libs=yes
18201   ;;
18202
18203 irix5* | irix6* | nonstopux*)
18204   case $host_os in
18205     nonstopux*) version_type=nonstopux ;;
18206     *)
18207         if test "$lt_cv_prog_gnu_ld" = yes; then
18208                 version_type=linux
18209         else
18210                 version_type=irix
18211         fi ;;
18212   esac
18213   need_lib_prefix=no
18214   need_version=no
18215   soname_spec='${libname}${release}${shared_ext}$major'
18216   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18217   case $host_os in
18218   irix5* | nonstopux*)
18219     libsuff= shlibsuff=
18220     ;;
18221   *)
18222     case $LD in # libtool.m4 will add one of these switches to LD
18223     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18224       libsuff= shlibsuff= libmagic=32-bit;;
18225     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18226       libsuff=32 shlibsuff=N32 libmagic=N32;;
18227     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18228       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18229     *) libsuff= shlibsuff= libmagic=never-match;;
18230     esac
18231     ;;
18232   esac
18233   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18234   shlibpath_overrides_runpath=no
18235   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18236   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18237   hardcode_into_libs=yes
18238   ;;
18239
18240 # No shared lib support for Linux oldld, aout, or coff.
18241 linux*oldld* | linux*aout* | linux*coff*)
18242   dynamic_linker=no
18243   ;;
18244
18245 # This must be Linux ELF.
18246 linux*)
18247   version_type=linux
18248   need_lib_prefix=no
18249   need_version=no
18250   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18251   soname_spec='${libname}${release}${shared_ext}$major'
18252   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18253   shlibpath_var=LD_LIBRARY_PATH
18254   shlibpath_overrides_runpath=no
18255   # This implies no fast_install, which is unacceptable.
18256   # Some rework will be needed to allow for fast_install
18257   # before this can be enabled.
18258   hardcode_into_libs=yes
18259
18260   # Append ld.so.conf contents to the search path
18261   if test -f /etc/ld.so.conf; then
18262     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18263     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18264   fi
18265
18266   # We used to test for /lib/ld.so.1 and disable shared libraries on
18267   # powerpc, because MkLinux only supported shared libraries with the
18268   # GNU dynamic linker.  Since this was broken with cross compilers,
18269   # most powerpc-linux boxes support dynamic linking these days and
18270   # people can always --disable-shared, the test was removed, and we
18271   # assume the GNU/Linux dynamic linker is in use.
18272   dynamic_linker='GNU/Linux ld.so'
18273   ;;
18274
18275 knetbsd*-gnu)
18276   version_type=linux
18277   need_lib_prefix=no
18278   need_version=no
18279   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18280   soname_spec='${libname}${release}${shared_ext}$major'
18281   shlibpath_var=LD_LIBRARY_PATH
18282   shlibpath_overrides_runpath=no
18283   hardcode_into_libs=yes
18284   dynamic_linker='GNU ld.so'
18285   ;;
18286
18287 netbsd*)
18288   version_type=sunos
18289   need_lib_prefix=no
18290   need_version=no
18291   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18292     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18293     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18294     dynamic_linker='NetBSD (a.out) ld.so'
18295   else
18296     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18297     soname_spec='${libname}${release}${shared_ext}$major'
18298     dynamic_linker='NetBSD ld.elf_so'
18299   fi
18300   shlibpath_var=LD_LIBRARY_PATH
18301   shlibpath_overrides_runpath=yes
18302   hardcode_into_libs=yes
18303   ;;
18304
18305 newsos6)
18306   version_type=linux
18307   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18308   shlibpath_var=LD_LIBRARY_PATH
18309   shlibpath_overrides_runpath=yes
18310   ;;
18311
18312 nto-qnx*)
18313   version_type=linux
18314   need_lib_prefix=no
18315   need_version=no
18316   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18317   soname_spec='${libname}${release}${shared_ext}$major'
18318   shlibpath_var=LD_LIBRARY_PATH
18319   shlibpath_overrides_runpath=yes
18320   ;;
18321
18322 openbsd*)
18323   version_type=sunos
18324   sys_lib_dlsearch_path_spec="/usr/lib"
18325   need_lib_prefix=no
18326   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18327   case $host_os in
18328     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18329     *)                         need_version=no  ;;
18330   esac
18331   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18332   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18333   shlibpath_var=LD_LIBRARY_PATH
18334   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18335     case $host_os in
18336       openbsd2.[89] | openbsd2.[89].*)
18337         shlibpath_overrides_runpath=no
18338         ;;
18339       *)
18340         shlibpath_overrides_runpath=yes
18341         ;;
18342       esac
18343   else
18344     shlibpath_overrides_runpath=yes
18345   fi
18346   ;;
18347
18348 os2*)
18349   libname_spec='$name'
18350   shrext_cmds=".dll"
18351   need_lib_prefix=no
18352   library_names_spec='$libname${shared_ext} $libname.a'
18353   dynamic_linker='OS/2 ld.exe'
18354   shlibpath_var=LIBPATH
18355   ;;
18356
18357 osf3* | osf4* | osf5*)
18358   version_type=osf
18359   need_lib_prefix=no
18360   need_version=no
18361   soname_spec='${libname}${release}${shared_ext}$major'
18362   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18363   shlibpath_var=LD_LIBRARY_PATH
18364   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18365   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18366   ;;
18367
18368 solaris*)
18369   version_type=linux
18370   need_lib_prefix=no
18371   need_version=no
18372   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18373   soname_spec='${libname}${release}${shared_ext}$major'
18374   shlibpath_var=LD_LIBRARY_PATH
18375   shlibpath_overrides_runpath=yes
18376   hardcode_into_libs=yes
18377   # ldd complains unless libraries are executable
18378   postinstall_cmds='chmod +x $lib'
18379   ;;
18380
18381 sunos4*)
18382   version_type=sunos
18383   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18384   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18385   shlibpath_var=LD_LIBRARY_PATH
18386   shlibpath_overrides_runpath=yes
18387   if test "$with_gnu_ld" = yes; then
18388     need_lib_prefix=no
18389   fi
18390   need_version=yes
18391   ;;
18392
18393 sysv4 | sysv4.3*)
18394   version_type=linux
18395   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18396   soname_spec='${libname}${release}${shared_ext}$major'
18397   shlibpath_var=LD_LIBRARY_PATH
18398   case $host_vendor in
18399     sni)
18400       shlibpath_overrides_runpath=no
18401       need_lib_prefix=no
18402       export_dynamic_flag_spec='${wl}-Blargedynsym'
18403       runpath_var=LD_RUN_PATH
18404       ;;
18405     siemens)
18406       need_lib_prefix=no
18407       ;;
18408     motorola)
18409       need_lib_prefix=no
18410       need_version=no
18411       shlibpath_overrides_runpath=no
18412       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18413       ;;
18414   esac
18415   ;;
18416
18417 sysv4*MP*)
18418   if test -d /usr/nec ;then
18419     version_type=linux
18420     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18421     soname_spec='$libname${shared_ext}.$major'
18422     shlibpath_var=LD_LIBRARY_PATH
18423   fi
18424   ;;
18425
18426 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18427   version_type=freebsd-elf
18428   need_lib_prefix=no
18429   need_version=no
18430   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18431   soname_spec='${libname}${release}${shared_ext}$major'
18432   shlibpath_var=LD_LIBRARY_PATH
18433   hardcode_into_libs=yes
18434   if test "$with_gnu_ld" = yes; then
18435     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18436     shlibpath_overrides_runpath=no
18437   else
18438     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18439     shlibpath_overrides_runpath=yes
18440     case $host_os in
18441       sco3.2v5*)
18442         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18443         ;;
18444     esac
18445   fi
18446   sys_lib_dlsearch_path_spec='/usr/lib'
18447   ;;
18448
18449 uts4*)
18450   version_type=linux
18451   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18452   soname_spec='${libname}${release}${shared_ext}$major'
18453   shlibpath_var=LD_LIBRARY_PATH
18454   ;;
18455
18456 *)
18457   dynamic_linker=no
18458   ;;
18459 esac
18460 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18461 echo "${ECHO_T}$dynamic_linker" >&6; }
18462 test "$dynamic_linker" = no && can_build_shared=no
18463
18464 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18465 if test "$GCC" = yes; then
18466   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18467 fi
18468
18469 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18470 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18471 hardcode_action_GCJ=
18472 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18473    test -n "$runpath_var_GCJ" || \
18474    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18475
18476   # We can hardcode non-existant directories.
18477   if test "$hardcode_direct_GCJ" != no &&
18478      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18479      # have to relink, otherwise we might link with an installed library
18480      # when we should be linking with a yet-to-be-installed one
18481      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18482      test "$hardcode_minus_L_GCJ" != no; then
18483     # Linking always hardcodes the temporary library directory.
18484     hardcode_action_GCJ=relink
18485   else
18486     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18487     hardcode_action_GCJ=immediate
18488   fi
18489 else
18490   # We cannot hardcode anything, or else we can only hardcode existing
18491   # directories.
18492   hardcode_action_GCJ=unsupported
18493 fi
18494 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18495 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18496
18497 if test "$hardcode_action_GCJ" = relink; then
18498   # Fast installation is not supported
18499   enable_fast_install=no
18500 elif test "$shlibpath_overrides_runpath" = yes ||
18501      test "$enable_shared" = no; then
18502   # Fast installation is not necessary
18503   enable_fast_install=needless
18504 fi
18505
18506
18507 # The else clause should only fire when bootstrapping the
18508 # libtool distribution, otherwise you forgot to ship ltmain.sh
18509 # with your package, and you will get complaints that there are
18510 # no rules to generate ltmain.sh.
18511 if test -f "$ltmain"; then
18512   # See if we are running on zsh, and set the options which allow our commands through
18513   # without removal of \ escapes.
18514   if test -n "${ZSH_VERSION+set}" ; then
18515     setopt NO_GLOB_SUBST
18516   fi
18517   # Now quote all the things that may contain metacharacters while being
18518   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18519   # variables and quote the copies for generation of the libtool script.
18520   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18521     SED SHELL STRIP \
18522     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18523     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18524     deplibs_check_method reload_flag reload_cmds need_locks \
18525     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18526     lt_cv_sys_global_symbol_to_c_name_address \
18527     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18528     old_postinstall_cmds old_postuninstall_cmds \
18529     compiler_GCJ \
18530     CC_GCJ \
18531     LD_GCJ \
18532     lt_prog_compiler_wl_GCJ \
18533     lt_prog_compiler_pic_GCJ \
18534     lt_prog_compiler_static_GCJ \
18535     lt_prog_compiler_no_builtin_flag_GCJ \
18536     export_dynamic_flag_spec_GCJ \
18537     thread_safe_flag_spec_GCJ \
18538     whole_archive_flag_spec_GCJ \
18539     enable_shared_with_static_runtimes_GCJ \
18540     old_archive_cmds_GCJ \
18541     old_archive_from_new_cmds_GCJ \
18542     predep_objects_GCJ \
18543     postdep_objects_GCJ \
18544     predeps_GCJ \
18545     postdeps_GCJ \
18546     compiler_lib_search_path_GCJ \
18547     archive_cmds_GCJ \
18548     archive_expsym_cmds_GCJ \
18549     postinstall_cmds_GCJ \
18550     postuninstall_cmds_GCJ \
18551     old_archive_from_expsyms_cmds_GCJ \
18552     allow_undefined_flag_GCJ \
18553     no_undefined_flag_GCJ \
18554     export_symbols_cmds_GCJ \
18555     hardcode_libdir_flag_spec_GCJ \
18556     hardcode_libdir_flag_spec_ld_GCJ \
18557     hardcode_libdir_separator_GCJ \
18558     hardcode_automatic_GCJ \
18559     module_cmds_GCJ \
18560     module_expsym_cmds_GCJ \
18561     lt_cv_prog_compiler_c_o_GCJ \
18562     exclude_expsyms_GCJ \
18563     include_expsyms_GCJ; do
18564
18565     case $var in
18566     old_archive_cmds_GCJ | \
18567     old_archive_from_new_cmds_GCJ | \
18568     archive_cmds_GCJ | \
18569     archive_expsym_cmds_GCJ | \
18570     module_cmds_GCJ | \
18571     module_expsym_cmds_GCJ | \
18572     old_archive_from_expsyms_cmds_GCJ | \
18573     export_symbols_cmds_GCJ | \
18574     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18575     postinstall_cmds | postuninstall_cmds | \
18576     old_postinstall_cmds | old_postuninstall_cmds | \
18577     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18578       # Double-quote double-evaled strings.
18579       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18580       ;;
18581     *)
18582       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18583       ;;
18584     esac
18585   done
18586
18587   case $lt_echo in
18588   *'\$0 --fallback-echo"')
18589     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18590     ;;
18591   esac
18592
18593 cfgfile="$ofile"
18594
18595   cat <<__EOF__ >> "$cfgfile"
18596 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18597
18598 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18599
18600 # Shell to use when invoking shell scripts.
18601 SHELL=$lt_SHELL
18602
18603 # Whether or not to build shared libraries.
18604 build_libtool_libs=$enable_shared
18605
18606 # Whether or not to build static libraries.
18607 build_old_libs=$enable_static
18608
18609 # Whether or not to add -lc for building shared libraries.
18610 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18611
18612 # Whether or not to disallow shared libs when runtime libs are static
18613 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18614
18615 # Whether or not to optimize for fast installation.
18616 fast_install=$enable_fast_install
18617
18618 # The host system.
18619 host_alias=$host_alias
18620 host=$host
18621 host_os=$host_os
18622
18623 # The build system.
18624 build_alias=$build_alias
18625 build=$build
18626 build_os=$build_os
18627
18628 # An echo program that does not interpret backslashes.
18629 echo=$lt_echo
18630
18631 # The archiver.
18632 AR=$lt_AR
18633 AR_FLAGS=$lt_AR_FLAGS
18634
18635 # A C compiler.
18636 LTCC=$lt_LTCC
18637
18638 # LTCC compiler flags.
18639 LTCFLAGS=$lt_LTCFLAGS
18640
18641 # A language-specific compiler.
18642 CC=$lt_compiler_GCJ
18643
18644 # Is the compiler the GNU C compiler?
18645 with_gcc=$GCC_GCJ
18646
18647 # An ERE matcher.
18648 EGREP=$lt_EGREP
18649
18650 # The linker used to build libraries.
18651 LD=$lt_LD_GCJ
18652
18653 # Whether we need hard or soft links.
18654 LN_S=$lt_LN_S
18655
18656 # A BSD-compatible nm program.
18657 NM=$lt_NM
18658
18659 # A symbol stripping program
18660 STRIP=$lt_STRIP
18661
18662 # Used to examine libraries when file_magic_cmd begins "file"
18663 MAGIC_CMD=$MAGIC_CMD
18664
18665 # Used on cygwin: DLL creation program.
18666 DLLTOOL="$DLLTOOL"
18667
18668 # Used on cygwin: object dumper.
18669 OBJDUMP="$OBJDUMP"
18670
18671 # Used on cygwin: assembler.
18672 AS="$AS"
18673
18674 # The name of the directory that contains temporary libtool files.
18675 objdir=$objdir
18676
18677 # How to create reloadable object files.
18678 reload_flag=$lt_reload_flag
18679 reload_cmds=$lt_reload_cmds
18680
18681 # How to pass a linker flag through the compiler.
18682 wl=$lt_lt_prog_compiler_wl_GCJ
18683
18684 # Object file suffix (normally "o").
18685 objext="$ac_objext"
18686
18687 # Old archive suffix (normally "a").
18688 libext="$libext"
18689
18690 # Shared library suffix (normally ".so").
18691 shrext_cmds='$shrext_cmds'
18692
18693 # Executable file suffix (normally "").
18694 exeext="$exeext"
18695
18696 # Additional compiler flags for building library objects.
18697 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18698 pic_mode=$pic_mode
18699
18700 # What is the maximum length of a command?
18701 max_cmd_len=$lt_cv_sys_max_cmd_len
18702
18703 # Does compiler simultaneously support -c and -o options?
18704 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18705
18706 # Must we lock files when doing compilation?
18707 need_locks=$lt_need_locks
18708
18709 # Do we need the lib prefix for modules?
18710 need_lib_prefix=$need_lib_prefix
18711
18712 # Do we need a version for libraries?
18713 need_version=$need_version
18714
18715 # Whether dlopen is supported.
18716 dlopen_support=$enable_dlopen
18717
18718 # Whether dlopen of programs is supported.
18719 dlopen_self=$enable_dlopen_self
18720
18721 # Whether dlopen of statically linked programs is supported.
18722 dlopen_self_static=$enable_dlopen_self_static
18723
18724 # Compiler flag to prevent dynamic linking.
18725 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18726
18727 # Compiler flag to turn off builtin functions.
18728 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18729
18730 # Compiler flag to allow reflexive dlopens.
18731 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18732
18733 # Compiler flag to generate shared objects directly from archives.
18734 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18735
18736 # Compiler flag to generate thread-safe objects.
18737 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18738
18739 # Library versioning type.
18740 version_type=$version_type
18741
18742 # Format of library name prefix.
18743 libname_spec=$lt_libname_spec
18744
18745 # List of archive names.  First name is the real one, the rest are links.
18746 # The last name is the one that the linker finds with -lNAME.
18747 library_names_spec=$lt_library_names_spec
18748
18749 # The coded name of the library, if different from the real name.
18750 soname_spec=$lt_soname_spec
18751
18752 # Commands used to build and install an old-style archive.
18753 RANLIB=$lt_RANLIB
18754 old_archive_cmds=$lt_old_archive_cmds_GCJ
18755 old_postinstall_cmds=$lt_old_postinstall_cmds
18756 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18757
18758 # Create an old-style archive from a shared archive.
18759 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18760
18761 # Create a temporary old-style archive to link instead of a shared archive.
18762 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18763
18764 # Commands used to build and install a shared archive.
18765 archive_cmds=$lt_archive_cmds_GCJ
18766 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18767 postinstall_cmds=$lt_postinstall_cmds
18768 postuninstall_cmds=$lt_postuninstall_cmds
18769
18770 # Commands used to build a loadable module (assumed same as above if empty)
18771 module_cmds=$lt_module_cmds_GCJ
18772 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18773
18774 # Commands to strip libraries.
18775 old_striplib=$lt_old_striplib
18776 striplib=$lt_striplib
18777
18778 # Dependencies to place before the objects being linked to create a
18779 # shared library.
18780 predep_objects=$lt_predep_objects_GCJ
18781
18782 # Dependencies to place after the objects being linked to create a
18783 # shared library.
18784 postdep_objects=$lt_postdep_objects_GCJ
18785
18786 # Dependencies to place before the objects being linked to create a
18787 # shared library.
18788 predeps=$lt_predeps_GCJ
18789
18790 # Dependencies to place after the objects being linked to create a
18791 # shared library.
18792 postdeps=$lt_postdeps_GCJ
18793
18794 # The library search path used internally by the compiler when linking
18795 # a shared library.
18796 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18797
18798 # Method to check whether dependent libraries are shared objects.
18799 deplibs_check_method=$lt_deplibs_check_method
18800
18801 # Command to use when deplibs_check_method == file_magic.
18802 file_magic_cmd=$lt_file_magic_cmd
18803
18804 # Flag that allows shared libraries with undefined symbols to be built.
18805 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18806
18807 # Flag that forces no undefined symbols.
18808 no_undefined_flag=$lt_no_undefined_flag_GCJ
18809
18810 # Commands used to finish a libtool library installation in a directory.
18811 finish_cmds=$lt_finish_cmds
18812
18813 # Same as above, but a single script fragment to be evaled but not shown.
18814 finish_eval=$lt_finish_eval
18815
18816 # Take the output of nm and produce a listing of raw symbols and C names.
18817 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18818
18819 # Transform the output of nm in a proper C declaration
18820 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18821
18822 # Transform the output of nm in a C name address pair
18823 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18824
18825 # This is the shared library runtime path variable.
18826 runpath_var=$runpath_var
18827
18828 # This is the shared library path variable.
18829 shlibpath_var=$shlibpath_var
18830
18831 # Is shlibpath searched before the hard-coded library search path?
18832 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18833
18834 # How to hardcode a shared library path into an executable.
18835 hardcode_action=$hardcode_action_GCJ
18836
18837 # Whether we should hardcode library paths into libraries.
18838 hardcode_into_libs=$hardcode_into_libs
18839
18840 # Flag to hardcode \$libdir into a binary during linking.
18841 # This must work even if \$libdir does not exist.
18842 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18843
18844 # If ld is used when linking, flag to hardcode \$libdir into
18845 # a binary during linking. This must work even if \$libdir does
18846 # not exist.
18847 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18848
18849 # Whether we need a single -rpath flag with a separated argument.
18850 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18851
18852 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18853 # resulting binary.
18854 hardcode_direct=$hardcode_direct_GCJ
18855
18856 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18857 # resulting binary.
18858 hardcode_minus_L=$hardcode_minus_L_GCJ
18859
18860 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18861 # the resulting binary.
18862 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18863
18864 # Set to yes if building a shared library automatically hardcodes DIR into the library
18865 # and all subsequent libraries and executables linked against it.
18866 hardcode_automatic=$hardcode_automatic_GCJ
18867
18868 # Variables whose values should be saved in libtool wrapper scripts and
18869 # restored at relink time.
18870 variables_saved_for_relink="$variables_saved_for_relink"
18871
18872 # Whether libtool must link a program against all its dependency libraries.
18873 link_all_deplibs=$link_all_deplibs_GCJ
18874
18875 # Compile-time system search path for libraries
18876 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18877
18878 # Run-time system search path for libraries
18879 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18880
18881 # Fix the shell variable \$srcfile for the compiler.
18882 fix_srcfile_path="$fix_srcfile_path_GCJ"
18883
18884 # Set to yes if exported symbols are required.
18885 always_export_symbols=$always_export_symbols_GCJ
18886
18887 # The commands to list exported symbols.
18888 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18889
18890 # The commands to extract the exported symbol list from a shared archive.
18891 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18892
18893 # Symbols that should not be listed in the preloaded symbols.
18894 exclude_expsyms=$lt_exclude_expsyms_GCJ
18895
18896 # Symbols that must always be exported.
18897 include_expsyms=$lt_include_expsyms_GCJ
18898
18899 # ### END LIBTOOL TAG CONFIG: $tagname
18900
18901 __EOF__
18902
18903
18904 else
18905   # If there is no Makefile yet, we rely on a make rule to execute
18906   # `config.status --recheck' to rerun these tests and create the
18907   # libtool script then.
18908   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18909   if test -f "$ltmain_in"; then
18910     test -f Makefile && make "$ltmain"
18911   fi
18912 fi
18913
18914
18915 ac_ext=c
18916 ac_cpp='$CPP $CPPFLAGS'
18917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18920
18921 CC="$lt_save_CC"
18922
18923         else
18924           tagname=""
18925         fi
18926         ;;
18927
18928       RC)
18929
18930
18931 # Source file extension for RC test sources.
18932 ac_ext=rc
18933
18934 # Object file extension for compiled RC test sources.
18935 objext=o
18936 objext_RC=$objext
18937
18938 # Code to be used in simple compile tests
18939 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18940
18941 # Code to be used in simple link tests
18942 lt_simple_link_test_code="$lt_simple_compile_test_code"
18943
18944 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18945
18946 # If no C compiler was specified, use CC.
18947 LTCC=${LTCC-"$CC"}
18948
18949 # If no C compiler flags were specified, use CFLAGS.
18950 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18951
18952 # Allow CC to be a program name with arguments.
18953 compiler=$CC
18954
18955
18956 # save warnings/boilerplate of simple test code
18957 ac_outfile=conftest.$ac_objext
18958 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18959 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18960 _lt_compiler_boilerplate=`cat conftest.err`
18961 $rm conftest*
18962
18963 ac_outfile=conftest.$ac_objext
18964 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18965 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18966 _lt_linker_boilerplate=`cat conftest.err`
18967 $rm conftest*
18968
18969
18970 # Allow CC to be a program name with arguments.
18971 lt_save_CC="$CC"
18972 CC=${RC-"windres"}
18973 compiler=$CC
18974 compiler_RC=$CC
18975 for cc_temp in $compiler""; do
18976   case $cc_temp in
18977     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18978     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18979     \-*) ;;
18980     *) break;;
18981   esac
18982 done
18983 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18984
18985 lt_cv_prog_compiler_c_o_RC=yes
18986
18987 # The else clause should only fire when bootstrapping the
18988 # libtool distribution, otherwise you forgot to ship ltmain.sh
18989 # with your package, and you will get complaints that there are
18990 # no rules to generate ltmain.sh.
18991 if test -f "$ltmain"; then
18992   # See if we are running on zsh, and set the options which allow our commands through
18993   # without removal of \ escapes.
18994   if test -n "${ZSH_VERSION+set}" ; then
18995     setopt NO_GLOB_SUBST
18996   fi
18997   # Now quote all the things that may contain metacharacters while being
18998   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18999   # variables and quote the copies for generation of the libtool script.
19000   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19001     SED SHELL STRIP \
19002     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19003     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19004     deplibs_check_method reload_flag reload_cmds need_locks \
19005     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19006     lt_cv_sys_global_symbol_to_c_name_address \
19007     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19008     old_postinstall_cmds old_postuninstall_cmds \
19009     compiler_RC \
19010     CC_RC \
19011     LD_RC \
19012     lt_prog_compiler_wl_RC \
19013     lt_prog_compiler_pic_RC \
19014     lt_prog_compiler_static_RC \
19015     lt_prog_compiler_no_builtin_flag_RC \
19016     export_dynamic_flag_spec_RC \
19017     thread_safe_flag_spec_RC \
19018     whole_archive_flag_spec_RC \
19019     enable_shared_with_static_runtimes_RC \
19020     old_archive_cmds_RC \
19021     old_archive_from_new_cmds_RC \
19022     predep_objects_RC \
19023     postdep_objects_RC \
19024     predeps_RC \
19025     postdeps_RC \
19026     compiler_lib_search_path_RC \
19027     archive_cmds_RC \
19028     archive_expsym_cmds_RC \
19029     postinstall_cmds_RC \
19030     postuninstall_cmds_RC \
19031     old_archive_from_expsyms_cmds_RC \
19032     allow_undefined_flag_RC \
19033     no_undefined_flag_RC \
19034     export_symbols_cmds_RC \
19035     hardcode_libdir_flag_spec_RC \
19036     hardcode_libdir_flag_spec_ld_RC \
19037     hardcode_libdir_separator_RC \
19038     hardcode_automatic_RC \
19039     module_cmds_RC \
19040     module_expsym_cmds_RC \
19041     lt_cv_prog_compiler_c_o_RC \
19042     exclude_expsyms_RC \
19043     include_expsyms_RC; do
19044
19045     case $var in
19046     old_archive_cmds_RC | \
19047     old_archive_from_new_cmds_RC | \
19048     archive_cmds_RC | \
19049     archive_expsym_cmds_RC | \
19050     module_cmds_RC | \
19051     module_expsym_cmds_RC | \
19052     old_archive_from_expsyms_cmds_RC | \
19053     export_symbols_cmds_RC | \
19054     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19055     postinstall_cmds | postuninstall_cmds | \
19056     old_postinstall_cmds | old_postuninstall_cmds | \
19057     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19058       # Double-quote double-evaled strings.
19059       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19060       ;;
19061     *)
19062       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19063       ;;
19064     esac
19065   done
19066
19067   case $lt_echo in
19068   *'\$0 --fallback-echo"')
19069     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19070     ;;
19071   esac
19072
19073 cfgfile="$ofile"
19074
19075   cat <<__EOF__ >> "$cfgfile"
19076 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19077
19078 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19079
19080 # Shell to use when invoking shell scripts.
19081 SHELL=$lt_SHELL
19082
19083 # Whether or not to build shared libraries.
19084 build_libtool_libs=$enable_shared
19085
19086 # Whether or not to build static libraries.
19087 build_old_libs=$enable_static
19088
19089 # Whether or not to add -lc for building shared libraries.
19090 build_libtool_need_lc=$archive_cmds_need_lc_RC
19091
19092 # Whether or not to disallow shared libs when runtime libs are static
19093 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19094
19095 # Whether or not to optimize for fast installation.
19096 fast_install=$enable_fast_install
19097
19098 # The host system.
19099 host_alias=$host_alias
19100 host=$host
19101 host_os=$host_os
19102
19103 # The build system.
19104 build_alias=$build_alias
19105 build=$build
19106 build_os=$build_os
19107
19108 # An echo program that does not interpret backslashes.
19109 echo=$lt_echo
19110
19111 # The archiver.
19112 AR=$lt_AR
19113 AR_FLAGS=$lt_AR_FLAGS
19114
19115 # A C compiler.
19116 LTCC=$lt_LTCC
19117
19118 # LTCC compiler flags.
19119 LTCFLAGS=$lt_LTCFLAGS
19120
19121 # A language-specific compiler.
19122 CC=$lt_compiler_RC
19123
19124 # Is the compiler the GNU C compiler?
19125 with_gcc=$GCC_RC
19126
19127 # An ERE matcher.
19128 EGREP=$lt_EGREP
19129
19130 # The linker used to build libraries.
19131 LD=$lt_LD_RC
19132
19133 # Whether we need hard or soft links.
19134 LN_S=$lt_LN_S
19135
19136 # A BSD-compatible nm program.
19137 NM=$lt_NM
19138
19139 # A symbol stripping program
19140 STRIP=$lt_STRIP
19141
19142 # Used to examine libraries when file_magic_cmd begins "file"
19143 MAGIC_CMD=$MAGIC_CMD
19144
19145 # Used on cygwin: DLL creation program.
19146 DLLTOOL="$DLLTOOL"
19147
19148 # Used on cygwin: object dumper.
19149 OBJDUMP="$OBJDUMP"
19150
19151 # Used on cygwin: assembler.
19152 AS="$AS"
19153
19154 # The name of the directory that contains temporary libtool files.
19155 objdir=$objdir
19156
19157 # How to create reloadable object files.
19158 reload_flag=$lt_reload_flag
19159 reload_cmds=$lt_reload_cmds
19160
19161 # How to pass a linker flag through the compiler.
19162 wl=$lt_lt_prog_compiler_wl_RC
19163
19164 # Object file suffix (normally "o").
19165 objext="$ac_objext"
19166
19167 # Old archive suffix (normally "a").
19168 libext="$libext"
19169
19170 # Shared library suffix (normally ".so").
19171 shrext_cmds='$shrext_cmds'
19172
19173 # Executable file suffix (normally "").
19174 exeext="$exeext"
19175
19176 # Additional compiler flags for building library objects.
19177 pic_flag=$lt_lt_prog_compiler_pic_RC
19178 pic_mode=$pic_mode
19179
19180 # What is the maximum length of a command?
19181 max_cmd_len=$lt_cv_sys_max_cmd_len
19182
19183 # Does compiler simultaneously support -c and -o options?
19184 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19185
19186 # Must we lock files when doing compilation?
19187 need_locks=$lt_need_locks
19188
19189 # Do we need the lib prefix for modules?
19190 need_lib_prefix=$need_lib_prefix
19191
19192 # Do we need a version for libraries?
19193 need_version=$need_version
19194
19195 # Whether dlopen is supported.
19196 dlopen_support=$enable_dlopen
19197
19198 # Whether dlopen of programs is supported.
19199 dlopen_self=$enable_dlopen_self
19200
19201 # Whether dlopen of statically linked programs is supported.
19202 dlopen_self_static=$enable_dlopen_self_static
19203
19204 # Compiler flag to prevent dynamic linking.
19205 link_static_flag=$lt_lt_prog_compiler_static_RC
19206
19207 # Compiler flag to turn off builtin functions.
19208 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19209
19210 # Compiler flag to allow reflexive dlopens.
19211 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19212
19213 # Compiler flag to generate shared objects directly from archives.
19214 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19215
19216 # Compiler flag to generate thread-safe objects.
19217 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19218
19219 # Library versioning type.
19220 version_type=$version_type
19221
19222 # Format of library name prefix.
19223 libname_spec=$lt_libname_spec
19224
19225 # List of archive names.  First name is the real one, the rest are links.
19226 # The last name is the one that the linker finds with -lNAME.
19227 library_names_spec=$lt_library_names_spec
19228
19229 # The coded name of the library, if different from the real name.
19230 soname_spec=$lt_soname_spec
19231
19232 # Commands used to build and install an old-style archive.
19233 RANLIB=$lt_RANLIB
19234 old_archive_cmds=$lt_old_archive_cmds_RC
19235 old_postinstall_cmds=$lt_old_postinstall_cmds
19236 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19237
19238 # Create an old-style archive from a shared archive.
19239 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19240
19241 # Create a temporary old-style archive to link instead of a shared archive.
19242 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19243
19244 # Commands used to build and install a shared archive.
19245 archive_cmds=$lt_archive_cmds_RC
19246 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19247 postinstall_cmds=$lt_postinstall_cmds
19248 postuninstall_cmds=$lt_postuninstall_cmds
19249
19250 # Commands used to build a loadable module (assumed same as above if empty)
19251 module_cmds=$lt_module_cmds_RC
19252 module_expsym_cmds=$lt_module_expsym_cmds_RC
19253
19254 # Commands to strip libraries.
19255 old_striplib=$lt_old_striplib
19256 striplib=$lt_striplib
19257
19258 # Dependencies to place before the objects being linked to create a
19259 # shared library.
19260 predep_objects=$lt_predep_objects_RC
19261
19262 # Dependencies to place after the objects being linked to create a
19263 # shared library.
19264 postdep_objects=$lt_postdep_objects_RC
19265
19266 # Dependencies to place before the objects being linked to create a
19267 # shared library.
19268 predeps=$lt_predeps_RC
19269
19270 # Dependencies to place after the objects being linked to create a
19271 # shared library.
19272 postdeps=$lt_postdeps_RC
19273
19274 # The library search path used internally by the compiler when linking
19275 # a shared library.
19276 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19277
19278 # Method to check whether dependent libraries are shared objects.
19279 deplibs_check_method=$lt_deplibs_check_method
19280
19281 # Command to use when deplibs_check_method == file_magic.
19282 file_magic_cmd=$lt_file_magic_cmd
19283
19284 # Flag that allows shared libraries with undefined symbols to be built.
19285 allow_undefined_flag=$lt_allow_undefined_flag_RC
19286
19287 # Flag that forces no undefined symbols.
19288 no_undefined_flag=$lt_no_undefined_flag_RC
19289
19290 # Commands used to finish a libtool library installation in a directory.
19291 finish_cmds=$lt_finish_cmds
19292
19293 # Same as above, but a single script fragment to be evaled but not shown.
19294 finish_eval=$lt_finish_eval
19295
19296 # Take the output of nm and produce a listing of raw symbols and C names.
19297 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19298
19299 # Transform the output of nm in a proper C declaration
19300 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19301
19302 # Transform the output of nm in a C name address pair
19303 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19304
19305 # This is the shared library runtime path variable.
19306 runpath_var=$runpath_var
19307
19308 # This is the shared library path variable.
19309 shlibpath_var=$shlibpath_var
19310
19311 # Is shlibpath searched before the hard-coded library search path?
19312 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19313
19314 # How to hardcode a shared library path into an executable.
19315 hardcode_action=$hardcode_action_RC
19316
19317 # Whether we should hardcode library paths into libraries.
19318 hardcode_into_libs=$hardcode_into_libs
19319
19320 # Flag to hardcode \$libdir into a binary during linking.
19321 # This must work even if \$libdir does not exist.
19322 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19323
19324 # If ld is used when linking, flag to hardcode \$libdir into
19325 # a binary during linking. This must work even if \$libdir does
19326 # not exist.
19327 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19328
19329 # Whether we need a single -rpath flag with a separated argument.
19330 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19331
19332 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19333 # resulting binary.
19334 hardcode_direct=$hardcode_direct_RC
19335
19336 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19337 # resulting binary.
19338 hardcode_minus_L=$hardcode_minus_L_RC
19339
19340 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19341 # the resulting binary.
19342 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19343
19344 # Set to yes if building a shared library automatically hardcodes DIR into the library
19345 # and all subsequent libraries and executables linked against it.
19346 hardcode_automatic=$hardcode_automatic_RC
19347
19348 # Variables whose values should be saved in libtool wrapper scripts and
19349 # restored at relink time.
19350 variables_saved_for_relink="$variables_saved_for_relink"
19351
19352 # Whether libtool must link a program against all its dependency libraries.
19353 link_all_deplibs=$link_all_deplibs_RC
19354
19355 # Compile-time system search path for libraries
19356 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19357
19358 # Run-time system search path for libraries
19359 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19360
19361 # Fix the shell variable \$srcfile for the compiler.
19362 fix_srcfile_path="$fix_srcfile_path_RC"
19363
19364 # Set to yes if exported symbols are required.
19365 always_export_symbols=$always_export_symbols_RC
19366
19367 # The commands to list exported symbols.
19368 export_symbols_cmds=$lt_export_symbols_cmds_RC
19369
19370 # The commands to extract the exported symbol list from a shared archive.
19371 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19372
19373 # Symbols that should not be listed in the preloaded symbols.
19374 exclude_expsyms=$lt_exclude_expsyms_RC
19375
19376 # Symbols that must always be exported.
19377 include_expsyms=$lt_include_expsyms_RC
19378
19379 # ### END LIBTOOL TAG CONFIG: $tagname
19380
19381 __EOF__
19382
19383
19384 else
19385   # If there is no Makefile yet, we rely on a make rule to execute
19386   # `config.status --recheck' to rerun these tests and create the
19387   # libtool script then.
19388   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19389   if test -f "$ltmain_in"; then
19390     test -f Makefile && make "$ltmain"
19391   fi
19392 fi
19393
19394
19395 ac_ext=c
19396 ac_cpp='$CPP $CPPFLAGS'
19397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19400
19401 CC="$lt_save_CC"
19402
19403         ;;
19404
19405       *)
19406         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19407 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19408    { (exit 1); exit 1; }; }
19409         ;;
19410       esac
19411
19412       # Append the new tag name to the list of available tags.
19413       if test -n "$tagname" ; then
19414       available_tags="$available_tags $tagname"
19415     fi
19416     fi
19417   done
19418   IFS="$lt_save_ifs"
19419
19420   # Now substitute the updated list of available tags.
19421   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19422     mv "${ofile}T" "$ofile"
19423     chmod +x "$ofile"
19424   else
19425     rm -f "${ofile}T"
19426     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19427 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19428    { (exit 1); exit 1; }; }
19429   fi
19430 fi
19431
19432
19433
19434 # This can be used to rebuild libtool when needed
19435 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19436
19437 # Always use our own libtool.
19438 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19439
19440 # Prevent multiple expansion
19441
19442
19443
19444
19445
19446
19447
19448
19449
19450
19451
19452
19453 # Check whether --with-system-libtool was given.
19454 if test "${with_system_libtool+set}" = set; then
19455   withval=$with_system_libtool;  # Extract the first word of "libtool", so it can be a program name with args.
19456 set dummy libtool; ac_word=$2
19457 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19459 if test "${ac_cv_path_LIBTOOL+set}" = set; then
19460   echo $ECHO_N "(cached) $ECHO_C" >&6
19461 else
19462   case $LIBTOOL in
19463   [\\/]* | ?:[\\/]*)
19464   ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
19465   ;;
19466   *)
19467   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19468 as_dummy="$PATH:/usr/local/bin"
19469 for as_dir in $as_dummy
19470 do
19471   IFS=$as_save_IFS
19472   test -z "$as_dir" && as_dir=.
19473   for ac_exec_ext in '' $ac_executable_extensions; do
19474   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19475     ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
19476     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19477     break 2
19478   fi
19479 done
19480 done
19481 IFS=$as_save_IFS
19482
19483   ;;
19484 esac
19485 fi
19486 LIBTOOL=$ac_cv_path_LIBTOOL
19487 if test -n "$LIBTOOL"; then
19488   { echo "$as_me:$LINENO: result: $LIBTOOL" >&5
19489 echo "${ECHO_T}$LIBTOOL" >&6; }
19490 else
19491   { echo "$as_me:$LINENO: result: no" >&5
19492 echo "${ECHO_T}no" >&6; }
19493 fi
19494
19495
19496 else
19497
19498   LIBTOOL="`pwd`/libtool"
19499
19500
19501
19502
19503
19504
19505
19506
19507
19508
19509
19510
19511
19512
19513 fi
19514
19515
19516
19517
19518 # Check whether --enable-strict-dependencies was given.
19519 if test "${enable_strict_dependencies+set}" = set; then
19520   enableval=$enable_strict_dependencies;
19521 fi
19522
19523
19524 docdir='${datadir}/doc/freeradius'
19525 { echo "$as_me:$LINENO: checking docdir" >&5
19526 echo $ECHO_N "checking docdir... $ECHO_C" >&6; }
19527
19528 # Check whether --with-docdir was given.
19529 if test "${with_docdir+set}" = set; then
19530   withval=$with_docdir;  case "$withval" in
19531     no)
19532         docdir=no
19533         ;;
19534     yes)
19535         ;;
19536     [\\/$]* | ?:[\\/]* )
19537         docdir="$withval"
19538         ;;
19539     *)
19540         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-docdir: $withval" >&5
19541 echo "$as_me: error: expected an absolute directory name for --with-docdir: $withval" >&2;}
19542    { (exit 1); exit 1; }; }
19543         ;;
19544   esac
19545
19546 fi
19547
19548
19549 { echo "$as_me:$LINENO: result: $docdir" >&5
19550 echo "${ECHO_T}$docdir" >&6; }
19551 if test "x$docdir" = xno; then
19552         { echo "$as_me:$LINENO: WARNING: Documentation files will NOT be installed." >&5
19553 echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
19554 fi
19555
19556 logdir='${localstatedir}/log/radius'
19557 { echo "$as_me:$LINENO: checking logdir" >&5
19558 echo $ECHO_N "checking logdir... $ECHO_C" >&6; }
19559
19560 # Check whether --with-logdir was given.
19561 if test "${with_logdir+set}" = set; then
19562   withval=$with_logdir;  case "$withval" in
19563     no)
19564         { { echo "$as_me:$LINENO: error: Need logdir" >&5
19565 echo "$as_me: error: Need logdir" >&2;}
19566    { (exit 1); exit 1; }; }
19567         ;;
19568     yes)
19569         ;;
19570     [\\/$]* | ?:[\\/]* )
19571         logdir="$withval"
19572         ;;
19573     *)
19574         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-logdir: $withval" >&5
19575 echo "$as_me: error: expected an absolute directory name for --with-logdir: $withval" >&2;}
19576    { (exit 1); exit 1; }; }
19577         ;;
19578   esac
19579
19580 fi
19581
19582
19583 { echo "$as_me:$LINENO: result: $logdir" >&5
19584 echo "${ECHO_T}$logdir" >&6; }
19585
19586 radacctdir='${logdir}/radacct'
19587 { echo "$as_me:$LINENO: checking radacctdir" >&5
19588 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6; }
19589
19590 # Check whether --with-radacctdir was given.
19591 if test "${with_radacctdir+set}" = set; then
19592   withval=$with_radacctdir;  case "$withval" in
19593     no)
19594         { { echo "$as_me:$LINENO: error: Need radacctdir" >&5
19595 echo "$as_me: error: Need radacctdir" >&2;}
19596    { (exit 1); exit 1; }; }
19597         ;;
19598     yes)
19599         ;;
19600     [\\/$]* | ?:[\\/]* )
19601         radacctdir="$withval"
19602         ;;
19603     *)
19604         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-radacctdir: $withval" >&5
19605 echo "$as_me: error: expected an absolute directory name for --with-radacctdir: $withval" >&2;}
19606    { (exit 1); exit 1; }; }
19607         ;;
19608   esac
19609
19610 fi
19611
19612
19613 { echo "$as_me:$LINENO: result: $radacctdir" >&5
19614 echo "${ECHO_T}$radacctdir" >&6; }
19615
19616 raddbdir='${sysconfdir}/raddb'
19617 { echo "$as_me:$LINENO: checking raddbdir" >&5
19618 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6; }
19619
19620 # Check whether --with-raddbdir was given.
19621 if test "${with_raddbdir+set}" = set; then
19622   withval=$with_raddbdir;  case "$withval" in
19623     no)
19624         { { echo "$as_me:$LINENO: error: Need raddbdir" >&5
19625 echo "$as_me: error: Need raddbdir" >&2;}
19626    { (exit 1); exit 1; }; }
19627         ;;
19628     yes)
19629         ;;
19630     [\\/$]* | ?:[\\/]* )
19631         raddbdir="$withval"
19632         ;;
19633     *)
19634         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-raddbdir: $withval" >&5
19635 echo "$as_me: error: expected an absolute directory name for --with-raddbdir: $withval" >&2;}
19636    { (exit 1); exit 1; }; }
19637         ;;
19638   esac
19639
19640 fi
19641
19642
19643 { echo "$as_me:$LINENO: result: $raddbdir" >&5
19644 echo "${ECHO_T}$raddbdir" >&6; }
19645
19646 ASCEND_BINARY=yes
19647
19648 # Check whether --with-ascend-binary was given.
19649 if test "${with_ascend_binary+set}" = set; then
19650   withval=$with_ascend_binary;  case "$withval" in
19651     yes)
19652         ;;
19653     *)
19654         ASCEND_BINARY=""
19655   esac
19656
19657 fi
19658
19659 if test "X$ASCEND_BINARY" = "Xyes"; then
19660
19661 cat >>confdefs.h <<\_ACEOF
19662 #define ASCEND_BINARY
19663 _ACEOF
19664
19665 fi
19666
19667 WITH_THREADS=yes
19668
19669 # Check whether --with-threads was given.
19670 if test "${with_threads+set}" = set; then
19671   withval=$with_threads;  case "$withval" in
19672     yes)
19673         ;;
19674     *)
19675         WITH_THREADS=""
19676   esac
19677
19678 fi
19679
19680
19681 WITH_SNMP=yes
19682
19683 # Check whether --with-snmp was given.
19684 if test "${with_snmp+set}" = set; then
19685   withval=$with_snmp;  case "$withval" in
19686     yes)
19687         ;;
19688     *)
19689         WITH_SNMP=no
19690   esac
19691
19692 fi
19693
19694
19695
19696 # Check whether --with-snmp-include-dir was given.
19697 if test "${with_snmp_include_dir+set}" = set; then
19698   withval=$with_snmp_include_dir;  case "$withval" in
19699     *)
19700         ;;
19701   esac
19702
19703 fi
19704
19705
19706 WITH_VMPS=yes
19707
19708 # Check whether --with-vmps was given.
19709 if test "${with_vmps+set}" = set; then
19710   withval=$with_vmps;  case "$withval" in
19711     yes)
19712         ;;
19713     *)
19714         WITH_VMPS=no
19715   esac
19716
19717 fi
19718
19719 if test "x$WITH_VMPS" = "xyes"; then
19720
19721 cat >>confdefs.h <<\_ACEOF
19722 #define WITH_VMPS
19723 _ACEOF
19724
19725 fi
19726
19727
19728 STATIC_MODULES=
19729
19730 # Check whether --with-static_modules was given.
19731 if test "${with_static_modules+set}" = set; then
19732   withval=$with_static_modules;
19733   for i in $withval; do
19734     STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
19735   done
19736
19737 fi
19738
19739
19740 MODULES=
19741
19742 # Check whether --with-modules was given.
19743 if test "${with_modules+set}" = set; then
19744   withval=$with_modules;
19745  for i in $withval; do
19746    MODULES="$MODULES $i"
19747  done
19748
19749 fi
19750
19751
19752 # Check whether --enable-developer was given.
19753 if test "${enable_developer+set}" = set; then
19754   enableval=$enable_developer;  case "$enableval" in
19755     no)
19756         developer=no
19757         ;;
19758     *)
19759         developer=yes
19760   esac
19761
19762 fi
19763
19764
19765 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
19766     developer="yes"
19767 fi
19768
19769 EXPERIMENTAL=
19770
19771 # Check whether --with-experimental-modules was given.
19772 if test "${with_experimental_modules+set}" = set; then
19773   withval=$with_experimental_modules;  case "$withval" in
19774     yes)
19775         EXPERIMENTAL=yes
19776         ;;
19777     *)
19778   esac
19779
19780 fi
19781
19782
19783 WITH_OPENSSL=yes
19784
19785 # Check whether --with-openssl was given.
19786 if test "${with_openssl+set}" = set; then
19787   withval=$with_openssl;  case "$withval" in
19788     no)
19789         WITH_OPENSSL=no
19790         ;;
19791     *)
19792         WITH_OPENSSL=yes
19793         ;;
19794   esac
19795
19796 fi
19797
19798
19799 OPENSSL_INCLUDE_DIR=
19800
19801 # Check whether --with-openssl-includes was given.
19802 if test "${with_openssl_includes+set}" = set; then
19803   withval=$with_openssl_includes;  case "$withval" in
19804     *) OPENSSL_INCLUDE_DIR="$withval"
19805         ;;
19806   esac
19807
19808 fi
19809
19810
19811 OPENSSL_LIB_DIR=
19812
19813 # Check whether --with-openssl-libraries was given.
19814 if test "${with_openssl_libraries+set}" = set; then
19815   withval=$with_openssl_libraries;  case "$withval" in
19816     *) OPENSSL_LIB_DIR="$withval"
19817         ;;
19818   esac
19819
19820 fi
19821
19822
19823
19824
19825 # Check whether --with-rlm-FOO-lib-dir was given.
19826 if test "${with_rlm_FOO_lib_dir+set}" = set; then
19827   withval=$with_rlm_FOO_lib_dir;  case "$withval" in
19828     *)
19829         ;;
19830   esac
19831
19832 fi
19833
19834
19835
19836 # Check whether --with-rlm-FOO-include-dir was given.
19837 if test "${with_rlm_FOO_include_dir+set}" = set; then
19838   withval=$with_rlm_FOO_include_dir;  case "$withval" in
19839     *)
19840         ;;
19841   esac
19842
19843 fi
19844
19845
19846
19847 WITH_UDPFROMTO=no
19848
19849 # Check whether --with-udpfromto was given.
19850 if test "${with_udpfromto+set}" = set; then
19851   withval=$with_udpfromto;  case "$withval" in
19852     yes)
19853         WITH_UDPFROMTO=yes
19854         ;;
19855     *)
19856         WITH_UDPFROMTO=no
19857   esac
19858
19859 fi
19860
19861
19862 if test "x$WITH_UDPFROMTO" = "xyes"; then
19863
19864 cat >>confdefs.h <<\_ACEOF
19865 #define WITH_UDPFROMTO
19866 _ACEOF
19867
19868 fi
19869
19870
19871 CHECKRAD=checkrad.pl
19872 # Extract the first word of "perl", so it can be a program name with args.
19873 set dummy perl; ac_word=$2
19874 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19876 if test "${ac_cv_path_PERL+set}" = set; then
19877   echo $ECHO_N "(cached) $ECHO_C" >&6
19878 else
19879   case $PERL in
19880   [\\/]* | ?:[\\/]*)
19881   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19882   ;;
19883   *)
19884   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19885 for as_dir in $PATH
19886 do
19887   IFS=$as_save_IFS
19888   test -z "$as_dir" && as_dir=.
19889   for ac_exec_ext in '' $ac_executable_extensions; do
19890   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19891     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19892     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19893     break 2
19894   fi
19895 done
19896 done
19897 IFS=$as_save_IFS
19898
19899   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
19900   ;;
19901 esac
19902 fi
19903 PERL=$ac_cv_path_PERL
19904 if test -n "$PERL"; then
19905   { echo "$as_me:$LINENO: result: $PERL" >&5
19906 echo "${ECHO_T}$PERL" >&6; }
19907 else
19908   { echo "$as_me:$LINENO: result: no" >&5
19909 echo "${ECHO_T}no" >&6; }
19910 fi
19911
19912
19913 if test "x$ac_cv_path_PERL" = "x"; then
19914   { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
19915 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19916 fi
19917 # Extract the first word of "snmpget", so it can be a program name with args.
19918 set dummy snmpget; ac_word=$2
19919 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19921 if test "${ac_cv_path_SNMPGET+set}" = set; then
19922   echo $ECHO_N "(cached) $ECHO_C" >&6
19923 else
19924   case $SNMPGET in
19925   [\\/]* | ?:[\\/]*)
19926   ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
19927   ;;
19928   *)
19929   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19930 for as_dir in $PATH
19931 do
19932   IFS=$as_save_IFS
19933   test -z "$as_dir" && as_dir=.
19934   for ac_exec_ext in '' $ac_executable_extensions; do
19935   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19936     ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
19937     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19938     break 2
19939   fi
19940 done
19941 done
19942 IFS=$as_save_IFS
19943
19944   ;;
19945 esac
19946 fi
19947 SNMPGET=$ac_cv_path_SNMPGET
19948 if test -n "$SNMPGET"; then
19949   { echo "$as_me:$LINENO: result: $SNMPGET" >&5
19950 echo "${ECHO_T}$SNMPGET" >&6; }
19951 else
19952   { echo "$as_me:$LINENO: result: no" >&5
19953 echo "${ECHO_T}no" >&6; }
19954 fi
19955
19956
19957 if test "x$ac_cv_path_SNMPGET" = "x"; then
19958   { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
19959 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19960 fi
19961
19962 # Extract the first word of "snmpwalk", so it can be a program name with args.
19963 set dummy snmpwalk; ac_word=$2
19964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19966 if test "${ac_cv_path_SNMPWALK+set}" = set; then
19967   echo $ECHO_N "(cached) $ECHO_C" >&6
19968 else
19969   case $SNMPWALK in
19970   [\\/]* | ?:[\\/]*)
19971   ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
19972   ;;
19973   *)
19974   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19975 for as_dir in $PATH
19976 do
19977   IFS=$as_save_IFS
19978   test -z "$as_dir" && as_dir=.
19979   for ac_exec_ext in '' $ac_executable_extensions; do
19980   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19981     ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
19982     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19983     break 2
19984   fi
19985 done
19986 done
19987 IFS=$as_save_IFS
19988
19989   ;;
19990 esac
19991 fi
19992 SNMPWALK=$ac_cv_path_SNMPWALK
19993 if test -n "$SNMPWALK"; then
19994   { echo "$as_me:$LINENO: result: $SNMPWALK" >&5
19995 echo "${ECHO_T}$SNMPWALK" >&6; }
19996 else
19997   { echo "$as_me:$LINENO: result: no" >&5
19998 echo "${ECHO_T}no" >&6; }
19999 fi
20000
20001
20002 if test "x$ac_cv_path_SNMPWALK" = "x"; then
20003   { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
20004 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20005 fi
20006
20007 # Extract the first word of "rusers", so it can be a program name with args.
20008 set dummy rusers; ac_word=$2
20009 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20011 if test "${ac_cv_path_RUSERS+set}" = set; then
20012   echo $ECHO_N "(cached) $ECHO_C" >&6
20013 else
20014   case $RUSERS in
20015   [\\/]* | ?:[\\/]*)
20016   ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
20017   ;;
20018   *)
20019   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20020 for as_dir in $PATH
20021 do
20022   IFS=$as_save_IFS
20023   test -z "$as_dir" && as_dir=.
20024   for ac_exec_ext in '' $ac_executable_extensions; do
20025   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20026     ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
20027     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20028     break 2
20029   fi
20030 done
20031 done
20032 IFS=$as_save_IFS
20033
20034   test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
20035   ;;
20036 esac
20037 fi
20038 RUSERS=$ac_cv_path_RUSERS
20039 if test -n "$RUSERS"; then
20040   { echo "$as_me:$LINENO: result: $RUSERS" >&5
20041 echo "${ECHO_T}$RUSERS" >&6; }
20042 else
20043   { echo "$as_me:$LINENO: result: no" >&5
20044 echo "${ECHO_T}no" >&6; }
20045 fi
20046
20047
20048
20049 missing_dir=`cd $ac_aux_dir && pwd`
20050 # expand $ac_aux_dir to an absolute path
20051 am_aux_dir=`cd $ac_aux_dir && pwd`
20052
20053 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
20054 # Use eval to expand $SHELL
20055 if eval "$MISSING --run true"; then
20056   am_missing_run="$MISSING --run "
20057 else
20058   am_missing_run=
20059   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
20060 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
20061 fi
20062
20063
20064 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
20065
20066
20067 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
20068
20069
20070 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
20071
20072
20073 # Extract the first word of "locate", so it can be a program name with args.
20074 set dummy locate; ac_word=$2
20075 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20077 if test "${ac_cv_path_LOCATE+set}" = set; then
20078   echo $ECHO_N "(cached) $ECHO_C" >&6
20079 else
20080   case $LOCATE in
20081   [\\/]* | ?:[\\/]*)
20082   ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
20083   ;;
20084   *)
20085   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20086 for as_dir in $PATH
20087 do
20088   IFS=$as_save_IFS
20089   test -z "$as_dir" && as_dir=.
20090   for ac_exec_ext in '' $ac_executable_extensions; do
20091   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20092     ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
20093     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20094     break 2
20095   fi
20096 done
20097 done
20098 IFS=$as_save_IFS
20099
20100   ;;
20101 esac
20102 fi
20103 LOCATE=$ac_cv_path_LOCATE
20104 if test -n "$LOCATE"; then
20105   { echo "$as_me:$LINENO: result: $LOCATE" >&5
20106 echo "${ECHO_T}$LOCATE" >&6; }
20107 else
20108   { echo "$as_me:$LINENO: result: no" >&5
20109 echo "${ECHO_T}no" >&6; }
20110 fi
20111
20112
20113 # Extract the first word of "dirname", so it can be a program name with args.
20114 set dummy dirname; ac_word=$2
20115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20117 if test "${ac_cv_path_DIRNAME+set}" = set; then
20118   echo $ECHO_N "(cached) $ECHO_C" >&6
20119 else
20120   case $DIRNAME in
20121   [\\/]* | ?:[\\/]*)
20122   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
20123   ;;
20124   *)
20125   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20126 for as_dir in $PATH
20127 do
20128   IFS=$as_save_IFS
20129   test -z "$as_dir" && as_dir=.
20130   for ac_exec_ext in '' $ac_executable_extensions; do
20131   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20132     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
20133     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20134     break 2
20135   fi
20136 done
20137 done
20138 IFS=$as_save_IFS
20139
20140   ;;
20141 esac
20142 fi
20143 DIRNAME=$ac_cv_path_DIRNAME
20144 if test -n "$DIRNAME"; then
20145   { echo "$as_me:$LINENO: result: $DIRNAME" >&5
20146 echo "${ECHO_T}$DIRNAME" >&6; }
20147 else
20148   { echo "$as_me:$LINENO: result: no" >&5
20149 echo "${ECHO_T}no" >&6; }
20150 fi
20151
20152
20153 # Extract the first word of "grep", so it can be a program name with args.
20154 set dummy grep; ac_word=$2
20155 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20157 if test "${ac_cv_path_GREP+set}" = set; then
20158   echo $ECHO_N "(cached) $ECHO_C" >&6
20159 else
20160   case $GREP in
20161   [\\/]* | ?:[\\/]*)
20162   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
20163   ;;
20164   *)
20165   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20166 for as_dir in $PATH
20167 do
20168   IFS=$as_save_IFS
20169   test -z "$as_dir" && as_dir=.
20170   for ac_exec_ext in '' $ac_executable_extensions; do
20171   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20172     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
20173     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20174     break 2
20175   fi
20176 done
20177 done
20178 IFS=$as_save_IFS
20179
20180   ;;
20181 esac
20182 fi
20183 GREP=$ac_cv_path_GREP
20184 if test -n "$GREP"; then
20185   { echo "$as_me:$LINENO: result: $GREP" >&5
20186 echo "${ECHO_T}$GREP" >&6; }
20187 else
20188   { echo "$as_me:$LINENO: result: no" >&5
20189 echo "${ECHO_T}no" >&6; }
20190 fi
20191
20192
20193
20194
20195 old_CFLAGS=$CFLAGS
20196 if test "x$WITH_THREADS" = "xyes"; then
20197   if test $ac_cv_prog_suncc = "yes"; then
20198     CFLAGS="$CFLAGS -mt"
20199   fi
20200
20201
20202 for ac_header in pthread.h
20203 do
20204 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20205 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20206   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20208 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20209   echo $ECHO_N "(cached) $ECHO_C" >&6
20210 fi
20211 ac_res=`eval echo '${'$as_ac_Header'}'`
20212                { echo "$as_me:$LINENO: result: $ac_res" >&5
20213 echo "${ECHO_T}$ac_res" >&6; }
20214 else
20215   # Is the header compilable?
20216 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20217 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20218 cat >conftest.$ac_ext <<_ACEOF
20219 /* confdefs.h.  */
20220 _ACEOF
20221 cat confdefs.h >>conftest.$ac_ext
20222 cat >>conftest.$ac_ext <<_ACEOF
20223 /* end confdefs.h.  */
20224 $ac_includes_default
20225 #include <$ac_header>
20226 _ACEOF
20227 rm -f conftest.$ac_objext
20228 if { (ac_try="$ac_compile"
20229 case "(($ac_try" in
20230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20231   *) ac_try_echo=$ac_try;;
20232 esac
20233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20234   (eval "$ac_compile") 2>conftest.er1
20235   ac_status=$?
20236   grep -v '^ *+' conftest.er1 >conftest.err
20237   rm -f conftest.er1
20238   cat conftest.err >&5
20239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240   (exit $ac_status); } && {
20241          test -z "$ac_c_werror_flag" ||
20242          test ! -s conftest.err
20243        } && test -s conftest.$ac_objext; then
20244   ac_header_compiler=yes
20245 else
20246   echo "$as_me: failed program was:" >&5
20247 sed 's/^/| /' conftest.$ac_ext >&5
20248
20249         ac_header_compiler=no
20250 fi
20251
20252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20253 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20254 echo "${ECHO_T}$ac_header_compiler" >&6; }
20255
20256 # Is the header present?
20257 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20258 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20259 cat >conftest.$ac_ext <<_ACEOF
20260 /* confdefs.h.  */
20261 _ACEOF
20262 cat confdefs.h >>conftest.$ac_ext
20263 cat >>conftest.$ac_ext <<_ACEOF
20264 /* end confdefs.h.  */
20265 #include <$ac_header>
20266 _ACEOF
20267 if { (ac_try="$ac_cpp conftest.$ac_ext"
20268 case "(($ac_try" in
20269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20270   *) ac_try_echo=$ac_try;;
20271 esac
20272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20273   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20274   ac_status=$?
20275   grep -v '^ *+' conftest.er1 >conftest.err
20276   rm -f conftest.er1
20277   cat conftest.err >&5
20278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279   (exit $ac_status); } >/dev/null && {
20280          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20281          test ! -s conftest.err
20282        }; then
20283   ac_header_preproc=yes
20284 else
20285   echo "$as_me: failed program was:" >&5
20286 sed 's/^/| /' conftest.$ac_ext >&5
20287
20288   ac_header_preproc=no
20289 fi
20290
20291 rm -f conftest.err conftest.$ac_ext
20292 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20293 echo "${ECHO_T}$ac_header_preproc" >&6; }
20294
20295 # So?  What about this header?
20296 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20297   yes:no: )
20298     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20299 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20300     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20301 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20302     ac_header_preproc=yes
20303     ;;
20304   no:yes:* )
20305     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20306 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20307     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20308 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20309     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20310 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20311     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20312 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20313     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20314 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20315     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20316 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20317
20318     ;;
20319 esac
20320 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20323   echo $ECHO_N "(cached) $ECHO_C" >&6
20324 else
20325   eval "$as_ac_Header=\$ac_header_preproc"
20326 fi
20327 ac_res=`eval echo '${'$as_ac_Header'}'`
20328                { echo "$as_me:$LINENO: result: $ac_res" >&5
20329 echo "${ECHO_T}$ac_res" >&6; }
20330
20331 fi
20332 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20333   cat >>confdefs.h <<_ACEOF
20334 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20335 _ACEOF
20336
20337 else
20338    WITH_THREADS="no"
20339 fi
20340
20341 done
20342
20343
20344   { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20345 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
20346 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20347   echo $ECHO_N "(cached) $ECHO_C" >&6
20348 else
20349   ac_check_lib_save_LIBS=$LIBS
20350 LIBS="-lpthread  $LIBS"
20351 cat >conftest.$ac_ext <<_ACEOF
20352 /* confdefs.h.  */
20353 _ACEOF
20354 cat confdefs.h >>conftest.$ac_ext
20355 cat >>conftest.$ac_ext <<_ACEOF
20356 /* end confdefs.h.  */
20357
20358 /* Override any GCC internal prototype to avoid an error.
20359    Use char because int might match the return type of a GCC
20360    builtin and then its argument prototype would still apply.  */
20361 #ifdef __cplusplus
20362 extern "C"
20363 #endif
20364 char pthread_create ();
20365 int
20366 main ()
20367 {
20368 return pthread_create ();
20369   ;
20370   return 0;
20371 }
20372 _ACEOF
20373 rm -f conftest.$ac_objext conftest$ac_exeext
20374 if { (ac_try="$ac_link"
20375 case "(($ac_try" in
20376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20377   *) ac_try_echo=$ac_try;;
20378 esac
20379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20380   (eval "$ac_link") 2>conftest.er1
20381   ac_status=$?
20382   grep -v '^ *+' conftest.er1 >conftest.err
20383   rm -f conftest.er1
20384   cat conftest.err >&5
20385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20386   (exit $ac_status); } && {
20387          test -z "$ac_c_werror_flag" ||
20388          test ! -s conftest.err
20389        } && test -s conftest$ac_exeext &&
20390        $as_test_x conftest$ac_exeext; then
20391   ac_cv_lib_pthread_pthread_create=yes
20392 else
20393   echo "$as_me: failed program was:" >&5
20394 sed 's/^/| /' conftest.$ac_ext >&5
20395
20396         ac_cv_lib_pthread_pthread_create=no
20397 fi
20398
20399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20400       conftest$ac_exeext conftest.$ac_ext
20401 LIBS=$ac_check_lib_save_LIBS
20402 fi
20403 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20404 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
20405 if test $ac_cv_lib_pthread_pthread_create = yes; then
20406    CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
20407                   LIBS="$LIBS -lpthread"
20408 else
20409   { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
20410 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
20411 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
20412   echo $ECHO_N "(cached) $ECHO_C" >&6
20413 else
20414   ac_check_lib_save_LIBS=$LIBS
20415 LIBS="-lc_r  $LIBS"
20416 cat >conftest.$ac_ext <<_ACEOF
20417 /* confdefs.h.  */
20418 _ACEOF
20419 cat confdefs.h >>conftest.$ac_ext
20420 cat >>conftest.$ac_ext <<_ACEOF
20421 /* end confdefs.h.  */
20422
20423 /* Override any GCC internal prototype to avoid an error.
20424    Use char because int might match the return type of a GCC
20425    builtin and then its argument prototype would still apply.  */
20426 #ifdef __cplusplus
20427 extern "C"
20428 #endif
20429 char pthread_create ();
20430 int
20431 main ()
20432 {
20433 return pthread_create ();
20434   ;
20435   return 0;
20436 }
20437 _ACEOF
20438 rm -f conftest.$ac_objext conftest$ac_exeext
20439 if { (ac_try="$ac_link"
20440 case "(($ac_try" in
20441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20442   *) ac_try_echo=$ac_try;;
20443 esac
20444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20445   (eval "$ac_link") 2>conftest.er1
20446   ac_status=$?
20447   grep -v '^ *+' conftest.er1 >conftest.err
20448   rm -f conftest.er1
20449   cat conftest.err >&5
20450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20451   (exit $ac_status); } && {
20452          test -z "$ac_c_werror_flag" ||
20453          test ! -s conftest.err
20454        } && test -s conftest$ac_exeext &&
20455        $as_test_x conftest$ac_exeext; then
20456   ac_cv_lib_c_r_pthread_create=yes
20457 else
20458   echo "$as_me: failed program was:" >&5
20459 sed 's/^/| /' conftest.$ac_ext >&5
20460
20461         ac_cv_lib_c_r_pthread_create=no
20462 fi
20463
20464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20465       conftest$ac_exeext conftest.$ac_ext
20466 LIBS=$ac_check_lib_save_LIBS
20467 fi
20468 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
20469 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
20470 if test $ac_cv_lib_c_r_pthread_create = yes; then
20471    CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
20472 else
20473    WITH_THREADS="no"
20474
20475 fi
20476
20477
20478 fi
20479
20480 fi
20481
20482 if test "x$WITH_THREADS" != "xyes"; then
20483   CFLAGS=$old_CFLAGS
20484   ac_cv_header_pthread_h="no"
20485   WITH_THREADS=no
20486 else
20487
20488   { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
20489 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
20490 if test "${ac_cv_search_sem_init+set}" = set; then
20491   echo $ECHO_N "(cached) $ECHO_C" >&6
20492 else
20493   ac_func_search_save_LIBS=$LIBS
20494 cat >conftest.$ac_ext <<_ACEOF
20495 /* confdefs.h.  */
20496 _ACEOF
20497 cat confdefs.h >>conftest.$ac_ext
20498 cat >>conftest.$ac_ext <<_ACEOF
20499 /* end confdefs.h.  */
20500
20501 /* Override any GCC internal prototype to avoid an error.
20502    Use char because int might match the return type of a GCC
20503    builtin and then its argument prototype would still apply.  */
20504 #ifdef __cplusplus
20505 extern "C"
20506 #endif
20507 char sem_init ();
20508 int
20509 main ()
20510 {
20511 return sem_init ();
20512   ;
20513   return 0;
20514 }
20515 _ACEOF
20516 for ac_lib in '' pthread sem posix4 rt semaphore; do
20517   if test -z "$ac_lib"; then
20518     ac_res="none required"
20519   else
20520     ac_res=-l$ac_lib
20521     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20522   fi
20523   rm -f conftest.$ac_objext conftest$ac_exeext
20524 if { (ac_try="$ac_link"
20525 case "(($ac_try" in
20526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20527   *) ac_try_echo=$ac_try;;
20528 esac
20529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20530   (eval "$ac_link") 2>conftest.er1
20531   ac_status=$?
20532   grep -v '^ *+' conftest.er1 >conftest.err
20533   rm -f conftest.er1
20534   cat conftest.err >&5
20535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536   (exit $ac_status); } && {
20537          test -z "$ac_c_werror_flag" ||
20538          test ! -s conftest.err
20539        } && test -s conftest$ac_exeext &&
20540        $as_test_x conftest$ac_exeext; then
20541   ac_cv_search_sem_init=$ac_res
20542 else
20543   echo "$as_me: failed program was:" >&5
20544 sed 's/^/| /' conftest.$ac_ext >&5
20545
20546
20547 fi
20548
20549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20550       conftest$ac_exeext
20551   if test "${ac_cv_search_sem_init+set}" = set; then
20552   break
20553 fi
20554 done
20555 if test "${ac_cv_search_sem_init+set}" = set; then
20556   :
20557 else
20558   ac_cv_search_sem_init=no
20559 fi
20560 rm conftest.$ac_ext
20561 LIBS=$ac_func_search_save_LIBS
20562 fi
20563 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
20564 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
20565 ac_res=$ac_cv_search_sem_init
20566 if test "$ac_res" != no; then
20567   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20568
20569 else
20570   { { 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
20571 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;}
20572    { (exit 1); exit 1; }; }
20573
20574 fi
20575
20576 fi
20577
20578
20579 { echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
20580 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6; }
20581 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
20582   echo $ECHO_N "(cached) $ECHO_C" >&6
20583 else
20584   ac_check_lib_save_LIBS=$LIBS
20585 LIBS="-lsocket  $LIBS"
20586 cat >conftest.$ac_ext <<_ACEOF
20587 /* confdefs.h.  */
20588 _ACEOF
20589 cat confdefs.h >>conftest.$ac_ext
20590 cat >>conftest.$ac_ext <<_ACEOF
20591 /* end confdefs.h.  */
20592
20593 /* Override any GCC internal prototype to avoid an error.
20594    Use char because int might match the return type of a GCC
20595    builtin and then its argument prototype would still apply.  */
20596 #ifdef __cplusplus
20597 extern "C"
20598 #endif
20599 char getsockname ();
20600 int
20601 main ()
20602 {
20603 return getsockname ();
20604   ;
20605   return 0;
20606 }
20607 _ACEOF
20608 rm -f conftest.$ac_objext conftest$ac_exeext
20609 if { (ac_try="$ac_link"
20610 case "(($ac_try" in
20611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20612   *) ac_try_echo=$ac_try;;
20613 esac
20614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20615   (eval "$ac_link") 2>conftest.er1
20616   ac_status=$?
20617   grep -v '^ *+' conftest.er1 >conftest.err
20618   rm -f conftest.er1
20619   cat conftest.err >&5
20620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621   (exit $ac_status); } && {
20622          test -z "$ac_c_werror_flag" ||
20623          test ! -s conftest.err
20624        } && test -s conftest$ac_exeext &&
20625        $as_test_x conftest$ac_exeext; then
20626   ac_cv_lib_socket_getsockname=yes
20627 else
20628   echo "$as_me: failed program was:" >&5
20629 sed 's/^/| /' conftest.$ac_ext >&5
20630
20631         ac_cv_lib_socket_getsockname=no
20632 fi
20633
20634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20635       conftest$ac_exeext conftest.$ac_ext
20636 LIBS=$ac_check_lib_save_LIBS
20637 fi
20638 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
20639 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6; }
20640 if test $ac_cv_lib_socket_getsockname = yes; then
20641   cat >>confdefs.h <<_ACEOF
20642 #define HAVE_LIBSOCKET 1
20643 _ACEOF
20644
20645   LIBS="-lsocket $LIBS"
20646
20647 fi
20648
20649
20650
20651 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
20652 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
20653 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
20654   echo $ECHO_N "(cached) $ECHO_C" >&6
20655 else
20656   ac_check_lib_save_LIBS=$LIBS
20657 LIBS="-lresolv  $LIBS"
20658 cat >conftest.$ac_ext <<_ACEOF
20659 /* confdefs.h.  */
20660 _ACEOF
20661 cat confdefs.h >>conftest.$ac_ext
20662 cat >>conftest.$ac_ext <<_ACEOF
20663 /* end confdefs.h.  */
20664
20665 /* Override any GCC internal prototype to avoid an error.
20666    Use char because int might match the return type of a GCC
20667    builtin and then its argument prototype would still apply.  */
20668 #ifdef __cplusplus
20669 extern "C"
20670 #endif
20671 char inet_aton ();
20672 int
20673 main ()
20674 {
20675 return inet_aton ();
20676   ;
20677   return 0;
20678 }
20679 _ACEOF
20680 rm -f conftest.$ac_objext conftest$ac_exeext
20681 if { (ac_try="$ac_link"
20682 case "(($ac_try" in
20683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20684   *) ac_try_echo=$ac_try;;
20685 esac
20686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20687   (eval "$ac_link") 2>conftest.er1
20688   ac_status=$?
20689   grep -v '^ *+' conftest.er1 >conftest.err
20690   rm -f conftest.er1
20691   cat conftest.err >&5
20692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20693   (exit $ac_status); } && {
20694          test -z "$ac_c_werror_flag" ||
20695          test ! -s conftest.err
20696        } && test -s conftest$ac_exeext &&
20697        $as_test_x conftest$ac_exeext; then
20698   ac_cv_lib_resolv_inet_aton=yes
20699 else
20700   echo "$as_me: failed program was:" >&5
20701 sed 's/^/| /' conftest.$ac_ext >&5
20702
20703         ac_cv_lib_resolv_inet_aton=no
20704 fi
20705
20706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20707       conftest$ac_exeext conftest.$ac_ext
20708 LIBS=$ac_check_lib_save_LIBS
20709 fi
20710 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
20711 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
20712 if test $ac_cv_lib_resolv_inet_aton = yes; then
20713   cat >>confdefs.h <<_ACEOF
20714 #define HAVE_LIBRESOLV 1
20715 _ACEOF
20716
20717   LIBS="-lresolv $LIBS"
20718
20719 fi
20720
20721
20722
20723 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
20724 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6; }
20725 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
20726   echo $ECHO_N "(cached) $ECHO_C" >&6
20727 else
20728   ac_check_lib_save_LIBS=$LIBS
20729 LIBS="-lnsl  $LIBS"
20730 cat >conftest.$ac_ext <<_ACEOF
20731 /* confdefs.h.  */
20732 _ACEOF
20733 cat confdefs.h >>conftest.$ac_ext
20734 cat >>conftest.$ac_ext <<_ACEOF
20735 /* end confdefs.h.  */
20736
20737 /* Override any GCC internal prototype to avoid an error.
20738    Use char because int might match the return type of a GCC
20739    builtin and then its argument prototype would still apply.  */
20740 #ifdef __cplusplus
20741 extern "C"
20742 #endif
20743 char inet_ntoa ();
20744 int
20745 main ()
20746 {
20747 return inet_ntoa ();
20748   ;
20749   return 0;
20750 }
20751 _ACEOF
20752 rm -f conftest.$ac_objext conftest$ac_exeext
20753 if { (ac_try="$ac_link"
20754 case "(($ac_try" in
20755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20756   *) ac_try_echo=$ac_try;;
20757 esac
20758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20759   (eval "$ac_link") 2>conftest.er1
20760   ac_status=$?
20761   grep -v '^ *+' conftest.er1 >conftest.err
20762   rm -f conftest.er1
20763   cat conftest.err >&5
20764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20765   (exit $ac_status); } && {
20766          test -z "$ac_c_werror_flag" ||
20767          test ! -s conftest.err
20768        } && test -s conftest$ac_exeext &&
20769        $as_test_x conftest$ac_exeext; then
20770   ac_cv_lib_nsl_inet_ntoa=yes
20771 else
20772   echo "$as_me: failed program was:" >&5
20773 sed 's/^/| /' conftest.$ac_ext >&5
20774
20775         ac_cv_lib_nsl_inet_ntoa=no
20776 fi
20777
20778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20779       conftest$ac_exeext conftest.$ac_ext
20780 LIBS=$ac_check_lib_save_LIBS
20781 fi
20782 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
20783 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6; }
20784 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
20785   cat >>confdefs.h <<_ACEOF
20786 #define HAVE_LIBNSL 1
20787 _ACEOF
20788
20789   LIBS="-lnsl $LIBS"
20790
20791 fi
20792
20793
20794 OPENSSL_LIBS=
20795 if test "x$WITH_OPENSSL" = xyes; then
20796   old_LIBS=$LIBS
20797   if test "x$OPENSSL_LIB_DIR" != "x"; then
20798     LIBS="-L$OPENSSL_LIB_DIR $LIBS"
20799   fi
20800   { echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
20801 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6; }
20802 if test "${ac_cv_lib_crypto_DH_new+set}" = set; then
20803   echo $ECHO_N "(cached) $ECHO_C" >&6
20804 else
20805   ac_check_lib_save_LIBS=$LIBS
20806 LIBS="-lcrypto  $LIBS"
20807 cat >conftest.$ac_ext <<_ACEOF
20808 /* confdefs.h.  */
20809 _ACEOF
20810 cat confdefs.h >>conftest.$ac_ext
20811 cat >>conftest.$ac_ext <<_ACEOF
20812 /* end confdefs.h.  */
20813
20814 /* Override any GCC internal prototype to avoid an error.
20815    Use char because int might match the return type of a GCC
20816    builtin and then its argument prototype would still apply.  */
20817 #ifdef __cplusplus
20818 extern "C"
20819 #endif
20820 char DH_new ();
20821 int
20822 main ()
20823 {
20824 return DH_new ();
20825   ;
20826   return 0;
20827 }
20828 _ACEOF
20829 rm -f conftest.$ac_objext conftest$ac_exeext
20830 if { (ac_try="$ac_link"
20831 case "(($ac_try" in
20832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20833   *) ac_try_echo=$ac_try;;
20834 esac
20835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20836   (eval "$ac_link") 2>conftest.er1
20837   ac_status=$?
20838   grep -v '^ *+' conftest.er1 >conftest.err
20839   rm -f conftest.er1
20840   cat conftest.err >&5
20841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20842   (exit $ac_status); } && {
20843          test -z "$ac_c_werror_flag" ||
20844          test ! -s conftest.err
20845        } && test -s conftest$ac_exeext &&
20846        $as_test_x conftest$ac_exeext; then
20847   ac_cv_lib_crypto_DH_new=yes
20848 else
20849   echo "$as_me: failed program was:" >&5
20850 sed 's/^/| /' conftest.$ac_ext >&5
20851
20852         ac_cv_lib_crypto_DH_new=no
20853 fi
20854
20855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20856       conftest$ac_exeext conftest.$ac_ext
20857 LIBS=$ac_check_lib_save_LIBS
20858 fi
20859 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DH_new" >&5
20860 echo "${ECHO_T}$ac_cv_lib_crypto_DH_new" >&6; }
20861 if test $ac_cv_lib_crypto_DH_new = yes; then
20862
20863
20864 cat >>confdefs.h <<\_ACEOF
20865 #define HAVE_LIBCRYPTO 1
20866 _ACEOF
20867
20868         { echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
20869 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6; }
20870 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
20871   echo $ECHO_N "(cached) $ECHO_C" >&6
20872 else
20873   ac_check_lib_save_LIBS=$LIBS
20874 LIBS="-lssl  $LIBS"
20875 cat >conftest.$ac_ext <<_ACEOF
20876 /* confdefs.h.  */
20877 _ACEOF
20878 cat confdefs.h >>conftest.$ac_ext
20879 cat >>conftest.$ac_ext <<_ACEOF
20880 /* end confdefs.h.  */
20881
20882 /* Override any GCC internal prototype to avoid an error.
20883    Use char because int might match the return type of a GCC
20884    builtin and then its argument prototype would still apply.  */
20885 #ifdef __cplusplus
20886 extern "C"
20887 #endif
20888 char SSL_new ();
20889 int
20890 main ()
20891 {
20892 return SSL_new ();
20893   ;
20894   return 0;
20895 }
20896 _ACEOF
20897 rm -f conftest.$ac_objext conftest$ac_exeext
20898 if { (ac_try="$ac_link"
20899 case "(($ac_try" in
20900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20901   *) ac_try_echo=$ac_try;;
20902 esac
20903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20904   (eval "$ac_link") 2>conftest.er1
20905   ac_status=$?
20906   grep -v '^ *+' conftest.er1 >conftest.err
20907   rm -f conftest.er1
20908   cat conftest.err >&5
20909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20910   (exit $ac_status); } && {
20911          test -z "$ac_c_werror_flag" ||
20912          test ! -s conftest.err
20913        } && test -s conftest$ac_exeext &&
20914        $as_test_x conftest$ac_exeext; then
20915   ac_cv_lib_ssl_SSL_new=yes
20916 else
20917   echo "$as_me: failed program was:" >&5
20918 sed 's/^/| /' conftest.$ac_ext >&5
20919
20920         ac_cv_lib_ssl_SSL_new=no
20921 fi
20922
20923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20924       conftest$ac_exeext conftest.$ac_ext
20925 LIBS=$ac_check_lib_save_LIBS
20926 fi
20927 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
20928 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6; }
20929 if test $ac_cv_lib_ssl_SSL_new = yes; then
20930
20931
20932 cat >>confdefs.h <<\_ACEOF
20933 #define HAVE_LIBSSL 1
20934 _ACEOF
20935
20936                 if test "x$OPENSSL_LIB_DIR" != "x"; then
20937                     OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
20938                 fi
20939                 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
20940
20941 fi
20942
20943
20944 fi
20945
20946   LIBS=$old_LIBS
20947 fi
20948
20949
20950 { echo "$as_me:$LINENO: checking for htonl in -lws2_32" >&5
20951 echo $ECHO_N "checking for htonl in -lws2_32... $ECHO_C" >&6; }
20952 if test "${ac_cv_lib_ws2_32_htonl+set}" = set; then
20953   echo $ECHO_N "(cached) $ECHO_C" >&6
20954 else
20955   ac_check_lib_save_LIBS=$LIBS
20956 LIBS="-lws2_32  $LIBS"
20957 cat >conftest.$ac_ext <<_ACEOF
20958 /* confdefs.h.  */
20959 _ACEOF
20960 cat confdefs.h >>conftest.$ac_ext
20961 cat >>conftest.$ac_ext <<_ACEOF
20962 /* end confdefs.h.  */
20963
20964 /* Override any GCC internal prototype to avoid an error.
20965    Use char because int might match the return type of a GCC
20966    builtin and then its argument prototype would still apply.  */
20967 #ifdef __cplusplus
20968 extern "C"
20969 #endif
20970 char htonl ();
20971 int
20972 main ()
20973 {
20974 return htonl ();
20975   ;
20976   return 0;
20977 }
20978 _ACEOF
20979 rm -f conftest.$ac_objext conftest$ac_exeext
20980 if { (ac_try="$ac_link"
20981 case "(($ac_try" in
20982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20983   *) ac_try_echo=$ac_try;;
20984 esac
20985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20986   (eval "$ac_link") 2>conftest.er1
20987   ac_status=$?
20988   grep -v '^ *+' conftest.er1 >conftest.err
20989   rm -f conftest.er1
20990   cat conftest.err >&5
20991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992   (exit $ac_status); } && {
20993          test -z "$ac_c_werror_flag" ||
20994          test ! -s conftest.err
20995        } && test -s conftest$ac_exeext &&
20996        $as_test_x conftest$ac_exeext; then
20997   ac_cv_lib_ws2_32_htonl=yes
20998 else
20999   echo "$as_me: failed program was:" >&5
21000 sed 's/^/| /' conftest.$ac_ext >&5
21001
21002         ac_cv_lib_ws2_32_htonl=no
21003 fi
21004
21005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21006       conftest$ac_exeext conftest.$ac_ext
21007 LIBS=$ac_check_lib_save_LIBS
21008 fi
21009 { echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_htonl" >&5
21010 echo "${ECHO_T}$ac_cv_lib_ws2_32_htonl" >&6; }
21011 if test $ac_cv_lib_ws2_32_htonl = yes; then
21012   cat >>confdefs.h <<_ACEOF
21013 #define HAVE_LIBWS2_32 1
21014 _ACEOF
21015
21016   LIBS="-lws2_32 $LIBS"
21017
21018 fi
21019
21020
21021 PCAP_LIBS=
21022 { echo "$as_me:$LINENO: checking for pcap_open_live in -lpcap" >&5
21023 echo $ECHO_N "checking for pcap_open_live in -lpcap... $ECHO_C" >&6; }
21024 if test "${ac_cv_lib_pcap_pcap_open_live+set}" = set; then
21025   echo $ECHO_N "(cached) $ECHO_C" >&6
21026 else
21027   ac_check_lib_save_LIBS=$LIBS
21028 LIBS="-lpcap  $LIBS"
21029 cat >conftest.$ac_ext <<_ACEOF
21030 /* confdefs.h.  */
21031 _ACEOF
21032 cat confdefs.h >>conftest.$ac_ext
21033 cat >>conftest.$ac_ext <<_ACEOF
21034 /* end confdefs.h.  */
21035
21036 /* Override any GCC internal prototype to avoid an error.
21037    Use char because int might match the return type of a GCC
21038    builtin and then its argument prototype would still apply.  */
21039 #ifdef __cplusplus
21040 extern "C"
21041 #endif
21042 char pcap_open_live ();
21043 int
21044 main ()
21045 {
21046 return pcap_open_live ();
21047   ;
21048   return 0;
21049 }
21050 _ACEOF
21051 rm -f conftest.$ac_objext conftest$ac_exeext
21052 if { (ac_try="$ac_link"
21053 case "(($ac_try" in
21054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21055   *) ac_try_echo=$ac_try;;
21056 esac
21057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21058   (eval "$ac_link") 2>conftest.er1
21059   ac_status=$?
21060   grep -v '^ *+' conftest.er1 >conftest.err
21061   rm -f conftest.er1
21062   cat conftest.err >&5
21063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21064   (exit $ac_status); } && {
21065          test -z "$ac_c_werror_flag" ||
21066          test ! -s conftest.err
21067        } && test -s conftest$ac_exeext &&
21068        $as_test_x conftest$ac_exeext; then
21069   ac_cv_lib_pcap_pcap_open_live=yes
21070 else
21071   echo "$as_me: failed program was:" >&5
21072 sed 's/^/| /' conftest.$ac_ext >&5
21073
21074         ac_cv_lib_pcap_pcap_open_live=no
21075 fi
21076
21077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21078       conftest$ac_exeext conftest.$ac_ext
21079 LIBS=$ac_check_lib_save_LIBS
21080 fi
21081 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_pcap_open_live" >&5
21082 echo "${ECHO_T}$ac_cv_lib_pcap_pcap_open_live" >&6; }
21083 if test $ac_cv_lib_pcap_pcap_open_live = yes; then
21084    PCAP_LIBS="-lpcap"
21085
21086 cat >>confdefs.h <<\_ACEOF
21087 #define HAVE_LIBPCAP 1
21088 _ACEOF
21089
21090
21091 else
21092    { echo "$as_me:$LINENO: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
21093 echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
21094 fi
21095
21096
21097
21098 case "$host" in
21099 *-interix*)
21100         CFLAGS="$CFLAGS -D_ALL_SOURCE"
21101         ;;
21102 *-darwin*)
21103         CFLAGS="$CFLAGS -DDARWIN"
21104         LIBS="-framework DirectoryService $LIBS"
21105         ;;
21106 esac
21107
21108
21109
21110
21111
21112
21113 ac_header_dirent=no
21114 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21115   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21116 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
21117 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
21118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21119   echo $ECHO_N "(cached) $ECHO_C" >&6
21120 else
21121   cat >conftest.$ac_ext <<_ACEOF
21122 /* confdefs.h.  */
21123 _ACEOF
21124 cat confdefs.h >>conftest.$ac_ext
21125 cat >>conftest.$ac_ext <<_ACEOF
21126 /* end confdefs.h.  */
21127 #include <sys/types.h>
21128 #include <$ac_hdr>
21129
21130 int
21131 main ()
21132 {
21133 if ((DIR *) 0)
21134 return 0;
21135   ;
21136   return 0;
21137 }
21138 _ACEOF
21139 rm -f conftest.$ac_objext
21140 if { (ac_try="$ac_compile"
21141 case "(($ac_try" in
21142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21143   *) ac_try_echo=$ac_try;;
21144 esac
21145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21146   (eval "$ac_compile") 2>conftest.er1
21147   ac_status=$?
21148   grep -v '^ *+' conftest.er1 >conftest.err
21149   rm -f conftest.er1
21150   cat conftest.err >&5
21151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21152   (exit $ac_status); } && {
21153          test -z "$ac_c_werror_flag" ||
21154          test ! -s conftest.err
21155        } && test -s conftest.$ac_objext; then
21156   eval "$as_ac_Header=yes"
21157 else
21158   echo "$as_me: failed program was:" >&5
21159 sed 's/^/| /' conftest.$ac_ext >&5
21160
21161         eval "$as_ac_Header=no"
21162 fi
21163
21164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21165 fi
21166 ac_res=`eval echo '${'$as_ac_Header'}'`
21167                { echo "$as_me:$LINENO: result: $ac_res" >&5
21168 echo "${ECHO_T}$ac_res" >&6; }
21169 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21170   cat >>confdefs.h <<_ACEOF
21171 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21172 _ACEOF
21173
21174 ac_header_dirent=$ac_hdr; break
21175 fi
21176
21177 done
21178 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21179 if test $ac_header_dirent = dirent.h; then
21180   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
21181 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
21182 if test "${ac_cv_search_opendir+set}" = set; then
21183   echo $ECHO_N "(cached) $ECHO_C" >&6
21184 else
21185   ac_func_search_save_LIBS=$LIBS
21186 cat >conftest.$ac_ext <<_ACEOF
21187 /* confdefs.h.  */
21188 _ACEOF
21189 cat confdefs.h >>conftest.$ac_ext
21190 cat >>conftest.$ac_ext <<_ACEOF
21191 /* end confdefs.h.  */
21192
21193 /* Override any GCC internal prototype to avoid an error.
21194    Use char because int might match the return type of a GCC
21195    builtin and then its argument prototype would still apply.  */
21196 #ifdef __cplusplus
21197 extern "C"
21198 #endif
21199 char opendir ();
21200 int
21201 main ()
21202 {
21203 return opendir ();
21204   ;
21205   return 0;
21206 }
21207 _ACEOF
21208 for ac_lib in '' dir; do
21209   if test -z "$ac_lib"; then
21210     ac_res="none required"
21211   else
21212     ac_res=-l$ac_lib
21213     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21214   fi
21215   rm -f conftest.$ac_objext conftest$ac_exeext
21216 if { (ac_try="$ac_link"
21217 case "(($ac_try" in
21218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21219   *) ac_try_echo=$ac_try;;
21220 esac
21221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21222   (eval "$ac_link") 2>conftest.er1
21223   ac_status=$?
21224   grep -v '^ *+' conftest.er1 >conftest.err
21225   rm -f conftest.er1
21226   cat conftest.err >&5
21227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21228   (exit $ac_status); } && {
21229          test -z "$ac_c_werror_flag" ||
21230          test ! -s conftest.err
21231        } && test -s conftest$ac_exeext &&
21232        $as_test_x conftest$ac_exeext; then
21233   ac_cv_search_opendir=$ac_res
21234 else
21235   echo "$as_me: failed program was:" >&5
21236 sed 's/^/| /' conftest.$ac_ext >&5
21237
21238
21239 fi
21240
21241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21242       conftest$ac_exeext
21243   if test "${ac_cv_search_opendir+set}" = set; then
21244   break
21245 fi
21246 done
21247 if test "${ac_cv_search_opendir+set}" = set; then
21248   :
21249 else
21250   ac_cv_search_opendir=no
21251 fi
21252 rm conftest.$ac_ext
21253 LIBS=$ac_func_search_save_LIBS
21254 fi
21255 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
21256 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
21257 ac_res=$ac_cv_search_opendir
21258 if test "$ac_res" != no; then
21259   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21260
21261 fi
21262
21263 else
21264   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
21265 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
21266 if test "${ac_cv_search_opendir+set}" = set; then
21267   echo $ECHO_N "(cached) $ECHO_C" >&6
21268 else
21269   ac_func_search_save_LIBS=$LIBS
21270 cat >conftest.$ac_ext <<_ACEOF
21271 /* confdefs.h.  */
21272 _ACEOF
21273 cat confdefs.h >>conftest.$ac_ext
21274 cat >>conftest.$ac_ext <<_ACEOF
21275 /* end confdefs.h.  */
21276
21277 /* Override any GCC internal prototype to avoid an error.
21278    Use char because int might match the return type of a GCC
21279    builtin and then its argument prototype would still apply.  */
21280 #ifdef __cplusplus
21281 extern "C"
21282 #endif
21283 char opendir ();
21284 int
21285 main ()
21286 {
21287 return opendir ();
21288   ;
21289   return 0;
21290 }
21291 _ACEOF
21292 for ac_lib in '' x; do
21293   if test -z "$ac_lib"; then
21294     ac_res="none required"
21295   else
21296     ac_res=-l$ac_lib
21297     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21298   fi
21299   rm -f conftest.$ac_objext conftest$ac_exeext
21300 if { (ac_try="$ac_link"
21301 case "(($ac_try" in
21302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21303   *) ac_try_echo=$ac_try;;
21304 esac
21305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21306   (eval "$ac_link") 2>conftest.er1
21307   ac_status=$?
21308   grep -v '^ *+' conftest.er1 >conftest.err
21309   rm -f conftest.er1
21310   cat conftest.err >&5
21311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21312   (exit $ac_status); } && {
21313          test -z "$ac_c_werror_flag" ||
21314          test ! -s conftest.err
21315        } && test -s conftest$ac_exeext &&
21316        $as_test_x conftest$ac_exeext; then
21317   ac_cv_search_opendir=$ac_res
21318 else
21319   echo "$as_me: failed program was:" >&5
21320 sed 's/^/| /' conftest.$ac_ext >&5
21321
21322
21323 fi
21324
21325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21326       conftest$ac_exeext
21327   if test "${ac_cv_search_opendir+set}" = set; then
21328   break
21329 fi
21330 done
21331 if test "${ac_cv_search_opendir+set}" = set; then
21332   :
21333 else
21334   ac_cv_search_opendir=no
21335 fi
21336 rm conftest.$ac_ext
21337 LIBS=$ac_func_search_save_LIBS
21338 fi
21339 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
21340 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
21341 ac_res=$ac_cv_search_opendir
21342 if test "$ac_res" != no; then
21343   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21344
21345 fi
21346
21347 fi
21348
21349 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21350 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21351 if test "${ac_cv_header_stdc+set}" = set; then
21352   echo $ECHO_N "(cached) $ECHO_C" >&6
21353 else
21354   cat >conftest.$ac_ext <<_ACEOF
21355 /* confdefs.h.  */
21356 _ACEOF
21357 cat confdefs.h >>conftest.$ac_ext
21358 cat >>conftest.$ac_ext <<_ACEOF
21359 /* end confdefs.h.  */
21360 #include <stdlib.h>
21361 #include <stdarg.h>
21362 #include <string.h>
21363 #include <float.h>
21364
21365 int
21366 main ()
21367 {
21368
21369   ;
21370   return 0;
21371 }
21372 _ACEOF
21373 rm -f conftest.$ac_objext
21374 if { (ac_try="$ac_compile"
21375 case "(($ac_try" in
21376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21377   *) ac_try_echo=$ac_try;;
21378 esac
21379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21380   (eval "$ac_compile") 2>conftest.er1
21381   ac_status=$?
21382   grep -v '^ *+' conftest.er1 >conftest.err
21383   rm -f conftest.er1
21384   cat conftest.err >&5
21385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21386   (exit $ac_status); } && {
21387          test -z "$ac_c_werror_flag" ||
21388          test ! -s conftest.err
21389        } && test -s conftest.$ac_objext; then
21390   ac_cv_header_stdc=yes
21391 else
21392   echo "$as_me: failed program was:" >&5
21393 sed 's/^/| /' conftest.$ac_ext >&5
21394
21395         ac_cv_header_stdc=no
21396 fi
21397
21398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21399
21400 if test $ac_cv_header_stdc = yes; then
21401   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
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 #include <string.h>
21409
21410 _ACEOF
21411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21412   $EGREP "memchr" >/dev/null 2>&1; then
21413   :
21414 else
21415   ac_cv_header_stdc=no
21416 fi
21417 rm -f conftest*
21418
21419 fi
21420
21421 if test $ac_cv_header_stdc = yes; then
21422   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21423   cat >conftest.$ac_ext <<_ACEOF
21424 /* confdefs.h.  */
21425 _ACEOF
21426 cat confdefs.h >>conftest.$ac_ext
21427 cat >>conftest.$ac_ext <<_ACEOF
21428 /* end confdefs.h.  */
21429 #include <stdlib.h>
21430
21431 _ACEOF
21432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21433   $EGREP "free" >/dev/null 2>&1; then
21434   :
21435 else
21436   ac_cv_header_stdc=no
21437 fi
21438 rm -f conftest*
21439
21440 fi
21441
21442 if test $ac_cv_header_stdc = yes; then
21443   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21444   if test "$cross_compiling" = yes; then
21445   :
21446 else
21447   cat >conftest.$ac_ext <<_ACEOF
21448 /* confdefs.h.  */
21449 _ACEOF
21450 cat confdefs.h >>conftest.$ac_ext
21451 cat >>conftest.$ac_ext <<_ACEOF
21452 /* end confdefs.h.  */
21453 #include <ctype.h>
21454 #include <stdlib.h>
21455 #if ((' ' & 0x0FF) == 0x020)
21456 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21457 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21458 #else
21459 # define ISLOWER(c) \
21460                    (('a' <= (c) && (c) <= 'i') \
21461                      || ('j' <= (c) && (c) <= 'r') \
21462                      || ('s' <= (c) && (c) <= 'z'))
21463 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21464 #endif
21465
21466 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21467 int
21468 main ()
21469 {
21470   int i;
21471   for (i = 0; i < 256; i++)
21472     if (XOR (islower (i), ISLOWER (i))
21473         || toupper (i) != TOUPPER (i))
21474       return 2;
21475   return 0;
21476 }
21477 _ACEOF
21478 rm -f conftest$ac_exeext
21479 if { (ac_try="$ac_link"
21480 case "(($ac_try" in
21481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21482   *) ac_try_echo=$ac_try;;
21483 esac
21484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21485   (eval "$ac_link") 2>&5
21486   ac_status=$?
21487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21488   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21489   { (case "(($ac_try" in
21490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21491   *) ac_try_echo=$ac_try;;
21492 esac
21493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21494   (eval "$ac_try") 2>&5
21495   ac_status=$?
21496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497   (exit $ac_status); }; }; then
21498   :
21499 else
21500   echo "$as_me: program exited with status $ac_status" >&5
21501 echo "$as_me: failed program was:" >&5
21502 sed 's/^/| /' conftest.$ac_ext >&5
21503
21504 ( exit $ac_status )
21505 ac_cv_header_stdc=no
21506 fi
21507 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21508 fi
21509
21510
21511 fi
21512 fi
21513 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21514 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21515 if test $ac_cv_header_stdc = yes; then
21516
21517 cat >>confdefs.h <<\_ACEOF
21518 #define STDC_HEADERS 1
21519 _ACEOF
21520
21521 fi
21522
21523 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21524 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21525 if test "${ac_cv_header_time+set}" = set; then
21526   echo $ECHO_N "(cached) $ECHO_C" >&6
21527 else
21528   cat >conftest.$ac_ext <<_ACEOF
21529 /* confdefs.h.  */
21530 _ACEOF
21531 cat confdefs.h >>conftest.$ac_ext
21532 cat >>conftest.$ac_ext <<_ACEOF
21533 /* end confdefs.h.  */
21534 #include <sys/types.h>
21535 #include <sys/time.h>
21536 #include <time.h>
21537
21538 int
21539 main ()
21540 {
21541 if ((struct tm *) 0)
21542 return 0;
21543   ;
21544   return 0;
21545 }
21546 _ACEOF
21547 rm -f conftest.$ac_objext
21548 if { (ac_try="$ac_compile"
21549 case "(($ac_try" in
21550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21551   *) ac_try_echo=$ac_try;;
21552 esac
21553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21554   (eval "$ac_compile") 2>conftest.er1
21555   ac_status=$?
21556   grep -v '^ *+' conftest.er1 >conftest.err
21557   rm -f conftest.er1
21558   cat conftest.err >&5
21559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21560   (exit $ac_status); } && {
21561          test -z "$ac_c_werror_flag" ||
21562          test ! -s conftest.err
21563        } && test -s conftest.$ac_objext; then
21564   ac_cv_header_time=yes
21565 else
21566   echo "$as_me: failed program was:" >&5
21567 sed 's/^/| /' conftest.$ac_ext >&5
21568
21569         ac_cv_header_time=no
21570 fi
21571
21572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21573 fi
21574 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21575 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21576 if test $ac_cv_header_time = yes; then
21577
21578 cat >>confdefs.h <<\_ACEOF
21579 #define TIME_WITH_SYS_TIME 1
21580 _ACEOF
21581
21582 fi
21583
21584 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
21585 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
21586 if test "${ac_cv_header_sys_wait_h+set}" = set; then
21587   echo $ECHO_N "(cached) $ECHO_C" >&6
21588 else
21589   cat >conftest.$ac_ext <<_ACEOF
21590 /* confdefs.h.  */
21591 _ACEOF
21592 cat confdefs.h >>conftest.$ac_ext
21593 cat >>conftest.$ac_ext <<_ACEOF
21594 /* end confdefs.h.  */
21595 #include <sys/types.h>
21596 #include <sys/wait.h>
21597 #ifndef WEXITSTATUS
21598 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
21599 #endif
21600 #ifndef WIFEXITED
21601 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21602 #endif
21603
21604 int
21605 main ()
21606 {
21607   int s;
21608   wait (&s);
21609   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21610   ;
21611   return 0;
21612 }
21613 _ACEOF
21614 rm -f conftest.$ac_objext
21615 if { (ac_try="$ac_compile"
21616 case "(($ac_try" in
21617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21618   *) ac_try_echo=$ac_try;;
21619 esac
21620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21621   (eval "$ac_compile") 2>conftest.er1
21622   ac_status=$?
21623   grep -v '^ *+' conftest.er1 >conftest.err
21624   rm -f conftest.er1
21625   cat conftest.err >&5
21626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21627   (exit $ac_status); } && {
21628          test -z "$ac_c_werror_flag" ||
21629          test ! -s conftest.err
21630        } && test -s conftest.$ac_objext; then
21631   ac_cv_header_sys_wait_h=yes
21632 else
21633   echo "$as_me: failed program was:" >&5
21634 sed 's/^/| /' conftest.$ac_ext >&5
21635
21636         ac_cv_header_sys_wait_h=no
21637 fi
21638
21639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21640 fi
21641 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21642 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
21643 if test $ac_cv_header_sys_wait_h = yes; then
21644
21645 cat >>confdefs.h <<\_ACEOF
21646 #define HAVE_SYS_WAIT_H 1
21647 _ACEOF
21648
21649 fi
21650
21651
21652
21653
21654
21655
21656
21657
21658
21659
21660
21661
21662
21663
21664
21665
21666
21667
21668
21669
21670
21671
21672
21673
21674
21675
21676
21677
21678
21679
21680
21681
21682
21683
21684 for ac_header in \
21685         unistd.h \
21686         crypt.h \
21687         errno.h \
21688         resource.h \
21689         sys/resource.h \
21690         getopt.h \
21691         malloc.h \
21692         utmp.h \
21693         utmpx.h \
21694         signal.h \
21695         sys/select.h \
21696         syslog.h \
21697         inttypes.h \
21698         stdint.h \
21699         stdio.h \
21700         netdb.h \
21701         semaphore.h \
21702         arpa/inet.h \
21703         netinet/in.h \
21704         sys/types.h \
21705         sys/socket.h \
21706         winsock.h \
21707         sys/time.h \
21708         sys/wait.h \
21709         sys/security.h \
21710         fcntl.h \
21711         sys/fcntl.h \
21712         prot.h \
21713         pwd.h \
21714         grp.h \
21715         sia.h \
21716         siad.h
21717
21718 do
21719 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21720 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21721   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21724   echo $ECHO_N "(cached) $ECHO_C" >&6
21725 fi
21726 ac_res=`eval echo '${'$as_ac_Header'}'`
21727                { echo "$as_me:$LINENO: result: $ac_res" >&5
21728 echo "${ECHO_T}$ac_res" >&6; }
21729 else
21730   # Is the header compilable?
21731 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21732 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21733 cat >conftest.$ac_ext <<_ACEOF
21734 /* confdefs.h.  */
21735 _ACEOF
21736 cat confdefs.h >>conftest.$ac_ext
21737 cat >>conftest.$ac_ext <<_ACEOF
21738 /* end confdefs.h.  */
21739 $ac_includes_default
21740 #include <$ac_header>
21741 _ACEOF
21742 rm -f conftest.$ac_objext
21743 if { (ac_try="$ac_compile"
21744 case "(($ac_try" in
21745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21746   *) ac_try_echo=$ac_try;;
21747 esac
21748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21749   (eval "$ac_compile") 2>conftest.er1
21750   ac_status=$?
21751   grep -v '^ *+' conftest.er1 >conftest.err
21752   rm -f conftest.er1
21753   cat conftest.err >&5
21754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21755   (exit $ac_status); } && {
21756          test -z "$ac_c_werror_flag" ||
21757          test ! -s conftest.err
21758        } && test -s conftest.$ac_objext; then
21759   ac_header_compiler=yes
21760 else
21761   echo "$as_me: failed program was:" >&5
21762 sed 's/^/| /' conftest.$ac_ext >&5
21763
21764         ac_header_compiler=no
21765 fi
21766
21767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21768 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21769 echo "${ECHO_T}$ac_header_compiler" >&6; }
21770
21771 # Is the header present?
21772 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21773 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21774 cat >conftest.$ac_ext <<_ACEOF
21775 /* confdefs.h.  */
21776 _ACEOF
21777 cat confdefs.h >>conftest.$ac_ext
21778 cat >>conftest.$ac_ext <<_ACEOF
21779 /* end confdefs.h.  */
21780 #include <$ac_header>
21781 _ACEOF
21782 if { (ac_try="$ac_cpp conftest.$ac_ext"
21783 case "(($ac_try" in
21784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21785   *) ac_try_echo=$ac_try;;
21786 esac
21787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21788   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21789   ac_status=$?
21790   grep -v '^ *+' conftest.er1 >conftest.err
21791   rm -f conftest.er1
21792   cat conftest.err >&5
21793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21794   (exit $ac_status); } >/dev/null && {
21795          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21796          test ! -s conftest.err
21797        }; then
21798   ac_header_preproc=yes
21799 else
21800   echo "$as_me: failed program was:" >&5
21801 sed 's/^/| /' conftest.$ac_ext >&5
21802
21803   ac_header_preproc=no
21804 fi
21805
21806 rm -f conftest.err conftest.$ac_ext
21807 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21808 echo "${ECHO_T}$ac_header_preproc" >&6; }
21809
21810 # So?  What about this header?
21811 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21812   yes:no: )
21813     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21814 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21815     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21816 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21817     ac_header_preproc=yes
21818     ;;
21819   no:yes:* )
21820     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21821 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21822     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21823 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21824     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21825 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21826     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21827 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21828     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21829 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21830     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21831 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21832
21833     ;;
21834 esac
21835 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21838   echo $ECHO_N "(cached) $ECHO_C" >&6
21839 else
21840   eval "$as_ac_Header=\$ac_header_preproc"
21841 fi
21842 ac_res=`eval echo '${'$as_ac_Header'}'`
21843                { echo "$as_me:$LINENO: result: $ac_res" >&5
21844 echo "${ECHO_T}$ac_res" >&6; }
21845
21846 fi
21847 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21848   cat >>confdefs.h <<_ACEOF
21849 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21850 _ACEOF
21851
21852 fi
21853
21854 done
21855
21856
21857
21858 for ac_header in net/if.h
21859 do
21860 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21861 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21862 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21864   echo $ECHO_N "(cached) $ECHO_C" >&6
21865 else
21866   cat >conftest.$ac_ext <<_ACEOF
21867 /* confdefs.h.  */
21868 _ACEOF
21869 cat confdefs.h >>conftest.$ac_ext
21870 cat >>conftest.$ac_ext <<_ACEOF
21871 /* end confdefs.h.  */
21872 #ifdef HAVE_SYS_SOCKET_H
21873 # include <sys/socket.h>
21874 # endif
21875
21876
21877 #include <$ac_header>
21878 _ACEOF
21879 rm -f conftest.$ac_objext
21880 if { (ac_try="$ac_compile"
21881 case "(($ac_try" in
21882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21883   *) ac_try_echo=$ac_try;;
21884 esac
21885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21886   (eval "$ac_compile") 2>conftest.er1
21887   ac_status=$?
21888   grep -v '^ *+' conftest.er1 >conftest.err
21889   rm -f conftest.er1
21890   cat conftest.err >&5
21891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21892   (exit $ac_status); } && {
21893          test -z "$ac_c_werror_flag" ||
21894          test ! -s conftest.err
21895        } && test -s conftest.$ac_objext; then
21896   eval "$as_ac_Header=yes"
21897 else
21898   echo "$as_me: failed program was:" >&5
21899 sed 's/^/| /' conftest.$ac_ext >&5
21900
21901         eval "$as_ac_Header=no"
21902 fi
21903
21904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21905 fi
21906 ac_res=`eval echo '${'$as_ac_Header'}'`
21907                { echo "$as_me:$LINENO: result: $ac_res" >&5
21908 echo "${ECHO_T}$ac_res" >&6; }
21909 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21910   cat >>confdefs.h <<_ACEOF
21911 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21912 _ACEOF
21913
21914 fi
21915
21916 done
21917
21918
21919 REGEX=no
21920 if test "${ac_cv_header_regex_h+set}" = set; then
21921   { echo "$as_me:$LINENO: checking for regex.h" >&5
21922 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
21923 if test "${ac_cv_header_regex_h+set}" = set; then
21924   echo $ECHO_N "(cached) $ECHO_C" >&6
21925 fi
21926 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21927 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
21928 else
21929   # Is the header compilable?
21930 { echo "$as_me:$LINENO: checking regex.h usability" >&5
21931 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6; }
21932 cat >conftest.$ac_ext <<_ACEOF
21933 /* confdefs.h.  */
21934 _ACEOF
21935 cat confdefs.h >>conftest.$ac_ext
21936 cat >>conftest.$ac_ext <<_ACEOF
21937 /* end confdefs.h.  */
21938 $ac_includes_default
21939 #include <regex.h>
21940 _ACEOF
21941 rm -f conftest.$ac_objext
21942 if { (ac_try="$ac_compile"
21943 case "(($ac_try" in
21944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21945   *) ac_try_echo=$ac_try;;
21946 esac
21947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21948   (eval "$ac_compile") 2>conftest.er1
21949   ac_status=$?
21950   grep -v '^ *+' conftest.er1 >conftest.err
21951   rm -f conftest.er1
21952   cat conftest.err >&5
21953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21954   (exit $ac_status); } && {
21955          test -z "$ac_c_werror_flag" ||
21956          test ! -s conftest.err
21957        } && test -s conftest.$ac_objext; then
21958   ac_header_compiler=yes
21959 else
21960   echo "$as_me: failed program was:" >&5
21961 sed 's/^/| /' conftest.$ac_ext >&5
21962
21963         ac_header_compiler=no
21964 fi
21965
21966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21967 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21968 echo "${ECHO_T}$ac_header_compiler" >&6; }
21969
21970 # Is the header present?
21971 { echo "$as_me:$LINENO: checking regex.h presence" >&5
21972 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6; }
21973 cat >conftest.$ac_ext <<_ACEOF
21974 /* confdefs.h.  */
21975 _ACEOF
21976 cat confdefs.h >>conftest.$ac_ext
21977 cat >>conftest.$ac_ext <<_ACEOF
21978 /* end confdefs.h.  */
21979 #include <regex.h>
21980 _ACEOF
21981 if { (ac_try="$ac_cpp conftest.$ac_ext"
21982 case "(($ac_try" in
21983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21984   *) ac_try_echo=$ac_try;;
21985 esac
21986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21987   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21988   ac_status=$?
21989   grep -v '^ *+' conftest.er1 >conftest.err
21990   rm -f conftest.er1
21991   cat conftest.err >&5
21992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21993   (exit $ac_status); } >/dev/null && {
21994          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21995          test ! -s conftest.err
21996        }; then
21997   ac_header_preproc=yes
21998 else
21999   echo "$as_me: failed program was:" >&5
22000 sed 's/^/| /' conftest.$ac_ext >&5
22001
22002   ac_header_preproc=no
22003 fi
22004
22005 rm -f conftest.err conftest.$ac_ext
22006 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22007 echo "${ECHO_T}$ac_header_preproc" >&6; }
22008
22009 # So?  What about this header?
22010 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22011   yes:no: )
22012     { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
22013 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22014     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
22015 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
22016     ac_header_preproc=yes
22017     ;;
22018   no:yes:* )
22019     { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
22020 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
22021     { echo "$as_me:$LINENO: WARNING: regex.h:     check for missing prerequisite headers?" >&5
22022 echo "$as_me: WARNING: regex.h:     check for missing prerequisite headers?" >&2;}
22023     { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
22024 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
22025     { echo "$as_me:$LINENO: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&5
22026 echo "$as_me: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22027     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
22028 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
22029     { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
22030 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
22031
22032     ;;
22033 esac
22034 { echo "$as_me:$LINENO: checking for regex.h" >&5
22035 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
22036 if test "${ac_cv_header_regex_h+set}" = set; then
22037   echo $ECHO_N "(cached) $ECHO_C" >&6
22038 else
22039   ac_cv_header_regex_h=$ac_header_preproc
22040 fi
22041 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22042 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
22043
22044 fi
22045 if test $ac_cv_header_regex_h = yes; then
22046
22047 cat >>confdefs.h <<\_ACEOF
22048 #define HAVE_REGEX_H
22049 _ACEOF
22050
22051 fi
22052
22053
22054 if test "x$ac_cv_header_regex_h" = "xyes"; then
22055   REGEX_EXTENDED=no
22056   REGEX=yes
22057   cat >conftest.$ac_ext <<_ACEOF
22058 /* confdefs.h.  */
22059 _ACEOF
22060 cat confdefs.h >>conftest.$ac_ext
22061 cat >>conftest.$ac_ext <<_ACEOF
22062 /* end confdefs.h.  */
22063 #include <regex.h>
22064      #ifdef REG_EXTENDED
22065        yes
22066      #endif
22067
22068 _ACEOF
22069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22070   $EGREP "yes" >/dev/null 2>&1; then
22071
22072 cat >>confdefs.h <<\_ACEOF
22073 #define HAVE_REG_EXTENDED
22074 _ACEOF
22075  REGEX_EXTENDED=yes
22076 fi
22077 rm -f conftest*
22078
22079 fi
22080
22081
22082
22083 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
22084 then
22085
22086 cat >>confdefs.h <<\_ACEOF
22087 #define OSFC2
22088 _ACEOF
22089
22090 fi
22091
22092 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
22093 then
22094
22095 cat >>confdefs.h <<\_ACEOF
22096 #define OSFSIA
22097 _ACEOF
22098
22099 fi
22100
22101 OPENSSL_INCLUDE="-DNO_OPENSSL"
22102 if test "x$WITH_OPENSSL" = xyes; then
22103   if test "x$OPENSSL_LIBS" = "x"; then
22104     { echo "$as_me:$LINENO: skipping test for openssl/ssl.h" >&5
22105 echo "$as_me: skipping test for openssl/ssl.h" >&6;}
22106   else
22107     old_CPPFLAGS=$CPPFLAGS
22108     if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
22109         CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
22110     fi
22111         CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
22112
22113
22114
22115
22116 for ac_header in \
22117         openssl/ssl.h \
22118         openssl/crypto.h \
22119         openssl/err.h \
22120         openssl/engine.h
22121 do
22122 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22124   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22127   echo $ECHO_N "(cached) $ECHO_C" >&6
22128 fi
22129 ac_res=`eval echo '${'$as_ac_Header'}'`
22130                { echo "$as_me:$LINENO: result: $ac_res" >&5
22131 echo "${ECHO_T}$ac_res" >&6; }
22132 else
22133   # Is the header compilable?
22134 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22135 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22136 cat >conftest.$ac_ext <<_ACEOF
22137 /* confdefs.h.  */
22138 _ACEOF
22139 cat confdefs.h >>conftest.$ac_ext
22140 cat >>conftest.$ac_ext <<_ACEOF
22141 /* end confdefs.h.  */
22142 $ac_includes_default
22143 #include <$ac_header>
22144 _ACEOF
22145 rm -f conftest.$ac_objext
22146 if { (ac_try="$ac_compile"
22147 case "(($ac_try" in
22148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22149   *) ac_try_echo=$ac_try;;
22150 esac
22151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22152   (eval "$ac_compile") 2>conftest.er1
22153   ac_status=$?
22154   grep -v '^ *+' conftest.er1 >conftest.err
22155   rm -f conftest.er1
22156   cat conftest.err >&5
22157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22158   (exit $ac_status); } && {
22159          test -z "$ac_c_werror_flag" ||
22160          test ! -s conftest.err
22161        } && test -s conftest.$ac_objext; then
22162   ac_header_compiler=yes
22163 else
22164   echo "$as_me: failed program was:" >&5
22165 sed 's/^/| /' conftest.$ac_ext >&5
22166
22167         ac_header_compiler=no
22168 fi
22169
22170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22171 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22172 echo "${ECHO_T}$ac_header_compiler" >&6; }
22173
22174 # Is the header present?
22175 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22176 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22177 cat >conftest.$ac_ext <<_ACEOF
22178 /* confdefs.h.  */
22179 _ACEOF
22180 cat confdefs.h >>conftest.$ac_ext
22181 cat >>conftest.$ac_ext <<_ACEOF
22182 /* end confdefs.h.  */
22183 #include <$ac_header>
22184 _ACEOF
22185 if { (ac_try="$ac_cpp conftest.$ac_ext"
22186 case "(($ac_try" in
22187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22188   *) ac_try_echo=$ac_try;;
22189 esac
22190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22191   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22192   ac_status=$?
22193   grep -v '^ *+' conftest.er1 >conftest.err
22194   rm -f conftest.er1
22195   cat conftest.err >&5
22196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22197   (exit $ac_status); } >/dev/null && {
22198          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22199          test ! -s conftest.err
22200        }; then
22201   ac_header_preproc=yes
22202 else
22203   echo "$as_me: failed program was:" >&5
22204 sed 's/^/| /' conftest.$ac_ext >&5
22205
22206   ac_header_preproc=no
22207 fi
22208
22209 rm -f conftest.err conftest.$ac_ext
22210 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22211 echo "${ECHO_T}$ac_header_preproc" >&6; }
22212
22213 # So?  What about this header?
22214 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22215   yes:no: )
22216     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22217 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22218     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22219 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22220     ac_header_preproc=yes
22221     ;;
22222   no:yes:* )
22223     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22224 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22225     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22226 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22227     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22228 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22229     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22230 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22231     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22232 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22233     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22234 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22235
22236     ;;
22237 esac
22238 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22241   echo $ECHO_N "(cached) $ECHO_C" >&6
22242 else
22243   eval "$as_ac_Header=\$ac_header_preproc"
22244 fi
22245 ac_res=`eval echo '${'$as_ac_Header'}'`
22246                { echo "$as_me:$LINENO: result: $ac_res" >&5
22247 echo "${ECHO_T}$ac_res" >&6; }
22248
22249 fi
22250 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22251   cat >>confdefs.h <<_ACEOF
22252 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22253 _ACEOF
22254
22255 else
22256   OPENSSL_LIBS=
22257
22258 fi
22259
22260 done
22261
22262     if test "x$OPENSSL_LIBS" != "x"; then
22263         { echo "$as_me:$LINENO: checking for OpenSSL version >= 0.9.7" >&5
22264 echo $ECHO_N "checking for OpenSSL version >= 0.9.7... $ECHO_C" >&6; }
22265         cat >conftest.$ac_ext <<_ACEOF
22266 /* confdefs.h.  */
22267 _ACEOF
22268 cat confdefs.h >>conftest.$ac_ext
22269 cat >>conftest.$ac_ext <<_ACEOF
22270 /* end confdefs.h.  */
22271 #include <openssl/crypto.h>
22272              #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
22273              yes
22274              #endif
22275
22276 _ACEOF
22277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22278   $EGREP "yes" >/dev/null 2>&1; then
22279   goodssl="yes"
22280 fi
22281 rm -f conftest*
22282
22283         if test "x$goodssl" != "xyes"; then
22284             { echo "$as_me:$LINENO: result: no" >&5
22285 echo "${ECHO_T}no" >&6; }
22286             OPENSSL_LIBS=
22287         else
22288             { echo "$as_me:$LINENO: result: yes" >&5
22289 echo "${ECHO_T}yes" >&6; }
22290             if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
22291                 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
22292             else
22293                 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
22294             fi
22295         fi
22296     fi
22297     CPPFLAGS=$old_CPPFLAGS
22298   fi
22299 fi
22300
22301
22302 export OPENSSL_LIBS
22303
22304 if test "x$PCAP_LIBS" = x; then
22305     { echo "$as_me:$LINENO: skipping test for pcap.h." >&5
22306 echo "$as_me: skipping test for pcap.h." >&6;}
22307 else
22308     if test "${ac_cv_header_pcap_h+set}" = set; then
22309   { echo "$as_me:$LINENO: checking for pcap.h" >&5
22310 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6; }
22311 if test "${ac_cv_header_pcap_h+set}" = set; then
22312   echo $ECHO_N "(cached) $ECHO_C" >&6
22313 fi
22314 { echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
22315 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6; }
22316 else
22317   # Is the header compilable?
22318 { echo "$as_me:$LINENO: checking pcap.h usability" >&5
22319 echo $ECHO_N "checking pcap.h usability... $ECHO_C" >&6; }
22320 cat >conftest.$ac_ext <<_ACEOF
22321 /* confdefs.h.  */
22322 _ACEOF
22323 cat confdefs.h >>conftest.$ac_ext
22324 cat >>conftest.$ac_ext <<_ACEOF
22325 /* end confdefs.h.  */
22326 $ac_includes_default
22327 #include <pcap.h>
22328 _ACEOF
22329 rm -f conftest.$ac_objext
22330 if { (ac_try="$ac_compile"
22331 case "(($ac_try" in
22332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22333   *) ac_try_echo=$ac_try;;
22334 esac
22335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22336   (eval "$ac_compile") 2>conftest.er1
22337   ac_status=$?
22338   grep -v '^ *+' conftest.er1 >conftest.err
22339   rm -f conftest.er1
22340   cat conftest.err >&5
22341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22342   (exit $ac_status); } && {
22343          test -z "$ac_c_werror_flag" ||
22344          test ! -s conftest.err
22345        } && test -s conftest.$ac_objext; then
22346   ac_header_compiler=yes
22347 else
22348   echo "$as_me: failed program was:" >&5
22349 sed 's/^/| /' conftest.$ac_ext >&5
22350
22351         ac_header_compiler=no
22352 fi
22353
22354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22355 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22356 echo "${ECHO_T}$ac_header_compiler" >&6; }
22357
22358 # Is the header present?
22359 { echo "$as_me:$LINENO: checking pcap.h presence" >&5
22360 echo $ECHO_N "checking pcap.h presence... $ECHO_C" >&6; }
22361 cat >conftest.$ac_ext <<_ACEOF
22362 /* confdefs.h.  */
22363 _ACEOF
22364 cat confdefs.h >>conftest.$ac_ext
22365 cat >>conftest.$ac_ext <<_ACEOF
22366 /* end confdefs.h.  */
22367 #include <pcap.h>
22368 _ACEOF
22369 if { (ac_try="$ac_cpp conftest.$ac_ext"
22370 case "(($ac_try" in
22371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22372   *) ac_try_echo=$ac_try;;
22373 esac
22374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22375   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22376   ac_status=$?
22377   grep -v '^ *+' conftest.er1 >conftest.err
22378   rm -f conftest.er1
22379   cat conftest.err >&5
22380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22381   (exit $ac_status); } >/dev/null && {
22382          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22383          test ! -s conftest.err
22384        }; then
22385   ac_header_preproc=yes
22386 else
22387   echo "$as_me: failed program was:" >&5
22388 sed 's/^/| /' conftest.$ac_ext >&5
22389
22390   ac_header_preproc=no
22391 fi
22392
22393 rm -f conftest.err conftest.$ac_ext
22394 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22395 echo "${ECHO_T}$ac_header_preproc" >&6; }
22396
22397 # So?  What about this header?
22398 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22399   yes:no: )
22400     { echo "$as_me:$LINENO: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
22401 echo "$as_me: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22402     { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the compiler's result" >&5
22403 echo "$as_me: WARNING: pcap.h: proceeding with the compiler's result" >&2;}
22404     ac_header_preproc=yes
22405     ;;
22406   no:yes:* )
22407     { echo "$as_me:$LINENO: WARNING: pcap.h: present but cannot be compiled" >&5
22408 echo "$as_me: WARNING: pcap.h: present but cannot be compiled" >&2;}
22409     { echo "$as_me:$LINENO: WARNING: pcap.h:     check for missing prerequisite headers?" >&5
22410 echo "$as_me: WARNING: pcap.h:     check for missing prerequisite headers?" >&2;}
22411     { echo "$as_me:$LINENO: WARNING: pcap.h: see the Autoconf documentation" >&5
22412 echo "$as_me: WARNING: pcap.h: see the Autoconf documentation" >&2;}
22413     { echo "$as_me:$LINENO: WARNING: pcap.h:     section \"Present But Cannot Be Compiled\"" >&5
22414 echo "$as_me: WARNING: pcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22415     { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the preprocessor's result" >&5
22416 echo "$as_me: WARNING: pcap.h: proceeding with the preprocessor's result" >&2;}
22417     { echo "$as_me:$LINENO: WARNING: pcap.h: in the future, the compiler will take precedence" >&5
22418 echo "$as_me: WARNING: pcap.h: in the future, the compiler will take precedence" >&2;}
22419
22420     ;;
22421 esac
22422 { echo "$as_me:$LINENO: checking for pcap.h" >&5
22423 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6; }
22424 if test "${ac_cv_header_pcap_h+set}" = set; then
22425   echo $ECHO_N "(cached) $ECHO_C" >&6
22426 else
22427   ac_cv_header_pcap_h=$ac_header_preproc
22428 fi
22429 { echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
22430 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6; }
22431
22432 fi
22433 if test $ac_cv_header_pcap_h = yes; then
22434
22435 cat >>confdefs.h <<\_ACEOF
22436 #define HAVE_PCAP_H 1
22437 _ACEOF
22438
22439 else
22440    PCAP_LIBS=
22441         { echo "$as_me:$LINENO: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
22442 echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
22443
22444 fi
22445
22446
22447 fi
22448
22449
22450
22451 { echo "$as_me:$LINENO: checking for off_t" >&5
22452 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
22453 if test "${ac_cv_type_off_t+set}" = set; then
22454   echo $ECHO_N "(cached) $ECHO_C" >&6
22455 else
22456   cat >conftest.$ac_ext <<_ACEOF
22457 /* confdefs.h.  */
22458 _ACEOF
22459 cat confdefs.h >>conftest.$ac_ext
22460 cat >>conftest.$ac_ext <<_ACEOF
22461 /* end confdefs.h.  */
22462 $ac_includes_default
22463 typedef off_t ac__type_new_;
22464 int
22465 main ()
22466 {
22467 if ((ac__type_new_ *) 0)
22468   return 0;
22469 if (sizeof (ac__type_new_))
22470   return 0;
22471   ;
22472   return 0;
22473 }
22474 _ACEOF
22475 rm -f conftest.$ac_objext
22476 if { (ac_try="$ac_compile"
22477 case "(($ac_try" in
22478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22479   *) ac_try_echo=$ac_try;;
22480 esac
22481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22482   (eval "$ac_compile") 2>conftest.er1
22483   ac_status=$?
22484   grep -v '^ *+' conftest.er1 >conftest.err
22485   rm -f conftest.er1
22486   cat conftest.err >&5
22487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22488   (exit $ac_status); } && {
22489          test -z "$ac_c_werror_flag" ||
22490          test ! -s conftest.err
22491        } && test -s conftest.$ac_objext; then
22492   ac_cv_type_off_t=yes
22493 else
22494   echo "$as_me: failed program was:" >&5
22495 sed 's/^/| /' conftest.$ac_ext >&5
22496
22497         ac_cv_type_off_t=no
22498 fi
22499
22500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22501 fi
22502 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22503 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
22504 if test $ac_cv_type_off_t = yes; then
22505   :
22506 else
22507
22508 cat >>confdefs.h <<_ACEOF
22509 #define off_t long int
22510 _ACEOF
22511
22512 fi
22513
22514 { echo "$as_me:$LINENO: checking for pid_t" >&5
22515 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22516 if test "${ac_cv_type_pid_t+set}" = set; then
22517   echo $ECHO_N "(cached) $ECHO_C" >&6
22518 else
22519   cat >conftest.$ac_ext <<_ACEOF
22520 /* confdefs.h.  */
22521 _ACEOF
22522 cat confdefs.h >>conftest.$ac_ext
22523 cat >>conftest.$ac_ext <<_ACEOF
22524 /* end confdefs.h.  */
22525 $ac_includes_default
22526 typedef pid_t ac__type_new_;
22527 int
22528 main ()
22529 {
22530 if ((ac__type_new_ *) 0)
22531   return 0;
22532 if (sizeof (ac__type_new_))
22533   return 0;
22534   ;
22535   return 0;
22536 }
22537 _ACEOF
22538 rm -f conftest.$ac_objext
22539 if { (ac_try="$ac_compile"
22540 case "(($ac_try" in
22541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22542   *) ac_try_echo=$ac_try;;
22543 esac
22544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22545   (eval "$ac_compile") 2>conftest.er1
22546   ac_status=$?
22547   grep -v '^ *+' conftest.er1 >conftest.err
22548   rm -f conftest.er1
22549   cat conftest.err >&5
22550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22551   (exit $ac_status); } && {
22552          test -z "$ac_c_werror_flag" ||
22553          test ! -s conftest.err
22554        } && test -s conftest.$ac_objext; then
22555   ac_cv_type_pid_t=yes
22556 else
22557   echo "$as_me: failed program was:" >&5
22558 sed 's/^/| /' conftest.$ac_ext >&5
22559
22560         ac_cv_type_pid_t=no
22561 fi
22562
22563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22564 fi
22565 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22566 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22567 if test $ac_cv_type_pid_t = yes; then
22568   :
22569 else
22570
22571 cat >>confdefs.h <<_ACEOF
22572 #define pid_t int
22573 _ACEOF
22574
22575 fi
22576
22577 { echo "$as_me:$LINENO: checking for size_t" >&5
22578 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22579 if test "${ac_cv_type_size_t+set}" = set; then
22580   echo $ECHO_N "(cached) $ECHO_C" >&6
22581 else
22582   cat >conftest.$ac_ext <<_ACEOF
22583 /* confdefs.h.  */
22584 _ACEOF
22585 cat confdefs.h >>conftest.$ac_ext
22586 cat >>conftest.$ac_ext <<_ACEOF
22587 /* end confdefs.h.  */
22588 $ac_includes_default
22589 typedef size_t ac__type_new_;
22590 int
22591 main ()
22592 {
22593 if ((ac__type_new_ *) 0)
22594   return 0;
22595 if (sizeof (ac__type_new_))
22596   return 0;
22597   ;
22598   return 0;
22599 }
22600 _ACEOF
22601 rm -f conftest.$ac_objext
22602 if { (ac_try="$ac_compile"
22603 case "(($ac_try" in
22604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22605   *) ac_try_echo=$ac_try;;
22606 esac
22607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22608   (eval "$ac_compile") 2>conftest.er1
22609   ac_status=$?
22610   grep -v '^ *+' conftest.er1 >conftest.err
22611   rm -f conftest.er1
22612   cat conftest.err >&5
22613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22614   (exit $ac_status); } && {
22615          test -z "$ac_c_werror_flag" ||
22616          test ! -s conftest.err
22617        } && test -s conftest.$ac_objext; then
22618   ac_cv_type_size_t=yes
22619 else
22620   echo "$as_me: failed program was:" >&5
22621 sed 's/^/| /' conftest.$ac_ext >&5
22622
22623         ac_cv_type_size_t=no
22624 fi
22625
22626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22627 fi
22628 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22629 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22630 if test $ac_cv_type_size_t = yes; then
22631   :
22632 else
22633
22634 cat >>confdefs.h <<_ACEOF
22635 #define size_t unsigned int
22636 _ACEOF
22637
22638 fi
22639
22640 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22641 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
22642 if test "${ac_cv_type_uid_t+set}" = set; then
22643   echo $ECHO_N "(cached) $ECHO_C" >&6
22644 else
22645   cat >conftest.$ac_ext <<_ACEOF
22646 /* confdefs.h.  */
22647 _ACEOF
22648 cat confdefs.h >>conftest.$ac_ext
22649 cat >>conftest.$ac_ext <<_ACEOF
22650 /* end confdefs.h.  */
22651 #include <sys/types.h>
22652
22653 _ACEOF
22654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22655   $EGREP "uid_t" >/dev/null 2>&1; then
22656   ac_cv_type_uid_t=yes
22657 else
22658   ac_cv_type_uid_t=no
22659 fi
22660 rm -f conftest*
22661
22662 fi
22663 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22664 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
22665 if test $ac_cv_type_uid_t = no; then
22666
22667 cat >>confdefs.h <<\_ACEOF
22668 #define uid_t int
22669 _ACEOF
22670
22671
22672 cat >>confdefs.h <<\_ACEOF
22673 #define gid_t int
22674 _ACEOF
22675
22676 fi
22677
22678
22679
22680   { echo "$as_me:$LINENO: checking for socklen_t" >&5
22681 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
22682 if test "${ac_cv_type_socklen_t+set}" = set; then
22683   echo $ECHO_N "(cached) $ECHO_C" >&6
22684 else
22685    ac_cv_type_socklen_t=no
22686       cat >conftest.$ac_ext <<_ACEOF
22687 /* confdefs.h.  */
22688 _ACEOF
22689 cat confdefs.h >>conftest.$ac_ext
22690 cat >>conftest.$ac_ext <<_ACEOF
22691 /* end confdefs.h.  */
22692 #ifdef HAVE_SYS_TYPES_H
22693 #include <sys/types.h>
22694 #endif
22695 #ifdef HAVE_SYS_SOCKET_H
22696 #include <sys/socket.h>
22697 #endif
22698
22699 int
22700 main ()
22701 {
22702 socklen_t foo
22703   ;
22704   return 0;
22705 }
22706 _ACEOF
22707 rm -f conftest.$ac_objext
22708 if { (ac_try="$ac_compile"
22709 case "(($ac_try" in
22710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22711   *) ac_try_echo=$ac_try;;
22712 esac
22713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22714   (eval "$ac_compile") 2>conftest.er1
22715   ac_status=$?
22716   grep -v '^ *+' conftest.er1 >conftest.err
22717   rm -f conftest.er1
22718   cat conftest.err >&5
22719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22720   (exit $ac_status); } && {
22721          test -z "$ac_c_werror_flag" ||
22722          test ! -s conftest.err
22723        } && test -s conftest.$ac_objext; then
22724   ac_cv_type_socklen_t=yes
22725 else
22726   echo "$as_me: failed program was:" >&5
22727 sed 's/^/| /' conftest.$ac_ext >&5
22728
22729
22730 fi
22731
22732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22733
22734
22735 fi
22736 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
22737 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
22738
22739   if test "$ac_cv_type_socklen_t" != "yes"; then
22740
22741 cat >>confdefs.h <<\_ACEOF
22742 #define socklen_t int
22743 _ACEOF
22744
22745   fi
22746
22747
22748
22749   { echo "$as_me:$LINENO: checking for uint8_t" >&5
22750 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
22751 if test "${ac_cv_type_uint8_t+set}" = set; then
22752   echo $ECHO_N "(cached) $ECHO_C" >&6
22753 else
22754    ac_cv_type_uint8_t=no
22755       cat >conftest.$ac_ext <<_ACEOF
22756 /* confdefs.h.  */
22757 _ACEOF
22758 cat confdefs.h >>conftest.$ac_ext
22759 cat >>conftest.$ac_ext <<_ACEOF
22760 /* end confdefs.h.  */
22761 #ifdef HAVE_INTTYPES_H
22762 #include <inttypes.h>
22763 #endif
22764 #ifdef HAVE_STDINT_H
22765 #include <stdint.h>
22766 #endif
22767
22768 int
22769 main ()
22770 {
22771 uint8_t foo
22772   ;
22773   return 0;
22774 }
22775 _ACEOF
22776 rm -f conftest.$ac_objext
22777 if { (ac_try="$ac_compile"
22778 case "(($ac_try" in
22779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22780   *) ac_try_echo=$ac_try;;
22781 esac
22782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22783   (eval "$ac_compile") 2>conftest.er1
22784   ac_status=$?
22785   grep -v '^ *+' conftest.er1 >conftest.err
22786   rm -f conftest.er1
22787   cat conftest.err >&5
22788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22789   (exit $ac_status); } && {
22790          test -z "$ac_c_werror_flag" ||
22791          test ! -s conftest.err
22792        } && test -s conftest.$ac_objext; then
22793   ac_cv_type_uint8_t=yes
22794 else
22795   echo "$as_me: failed program was:" >&5
22796 sed 's/^/| /' conftest.$ac_ext >&5
22797
22798
22799 fi
22800
22801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22802
22803
22804 fi
22805 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
22806 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
22807
22808   if test "$ac_cv_type_uint8_t" != "yes"; then
22809
22810 cat >>confdefs.h <<\_ACEOF
22811 #define uint8_t unsigned char
22812 _ACEOF
22813
22814   fi
22815
22816
22817
22818   { echo "$as_me:$LINENO: checking for uint16_t" >&5
22819 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
22820 if test "${ac_cv_type_uint16_t+set}" = set; then
22821   echo $ECHO_N "(cached) $ECHO_C" >&6
22822 else
22823    ac_cv_type_uint16_t=no
22824       cat >conftest.$ac_ext <<_ACEOF
22825 /* confdefs.h.  */
22826 _ACEOF
22827 cat confdefs.h >>conftest.$ac_ext
22828 cat >>conftest.$ac_ext <<_ACEOF
22829 /* end confdefs.h.  */
22830 #ifdef HAVE_INTTYPES_H
22831 #include <inttypes.h>
22832 #endif
22833 #ifdef HAVE_STDINT_H
22834 #include <stdint.h>
22835 #endif
22836
22837 int
22838 main ()
22839 {
22840 uint16_t foo
22841   ;
22842   return 0;
22843 }
22844 _ACEOF
22845 rm -f conftest.$ac_objext
22846 if { (ac_try="$ac_compile"
22847 case "(($ac_try" in
22848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22849   *) ac_try_echo=$ac_try;;
22850 esac
22851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22852   (eval "$ac_compile") 2>conftest.er1
22853   ac_status=$?
22854   grep -v '^ *+' conftest.er1 >conftest.err
22855   rm -f conftest.er1
22856   cat conftest.err >&5
22857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22858   (exit $ac_status); } && {
22859          test -z "$ac_c_werror_flag" ||
22860          test ! -s conftest.err
22861        } && test -s conftest.$ac_objext; then
22862   ac_cv_type_uint16_t=yes
22863 else
22864   echo "$as_me: failed program was:" >&5
22865 sed 's/^/| /' conftest.$ac_ext >&5
22866
22867
22868 fi
22869
22870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22871
22872
22873 fi
22874 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
22875 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
22876
22877   if test "$ac_cv_type_uint16_t" != "yes"; then
22878
22879 cat >>confdefs.h <<\_ACEOF
22880 #define uint16_t unsigned short
22881 _ACEOF
22882
22883   fi
22884
22885
22886
22887   { echo "$as_me:$LINENO: checking for uint32_t" >&5
22888 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
22889 if test "${ac_cv_type_uint32_t+set}" = set; then
22890   echo $ECHO_N "(cached) $ECHO_C" >&6
22891 else
22892    ac_cv_type_uint32_t=no
22893       cat >conftest.$ac_ext <<_ACEOF
22894 /* confdefs.h.  */
22895 _ACEOF
22896 cat confdefs.h >>conftest.$ac_ext
22897 cat >>conftest.$ac_ext <<_ACEOF
22898 /* end confdefs.h.  */
22899 #ifdef HAVE_INTTYPES_H
22900 #include <inttypes.h>
22901 #endif
22902 #ifdef HAVE_STDINT_H
22903 #include <stdint.h>
22904 #endif
22905
22906 int
22907 main ()
22908 {
22909 uint32_t foo
22910   ;
22911   return 0;
22912 }
22913 _ACEOF
22914 rm -f conftest.$ac_objext
22915 if { (ac_try="$ac_compile"
22916 case "(($ac_try" in
22917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22918   *) ac_try_echo=$ac_try;;
22919 esac
22920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22921   (eval "$ac_compile") 2>conftest.er1
22922   ac_status=$?
22923   grep -v '^ *+' conftest.er1 >conftest.err
22924   rm -f conftest.er1
22925   cat conftest.err >&5
22926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22927   (exit $ac_status); } && {
22928          test -z "$ac_c_werror_flag" ||
22929          test ! -s conftest.err
22930        } && test -s conftest.$ac_objext; then
22931   ac_cv_type_uint32_t=yes
22932 else
22933   echo "$as_me: failed program was:" >&5
22934 sed 's/^/| /' conftest.$ac_ext >&5
22935
22936
22937 fi
22938
22939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22940
22941
22942 fi
22943 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
22944 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
22945
22946   if test "$ac_cv_type_uint32_t" != "yes"; then
22947
22948 cat >>confdefs.h <<\_ACEOF
22949 #define uint32_t unsigned int
22950 _ACEOF
22951
22952   fi
22953
22954
22955 { echo "$as_me:$LINENO: checking for struct in6_addr" >&5
22956 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
22957 if test "${ac_cv_type_struct_in6_addr+set}" = set; then
22958   echo $ECHO_N "(cached) $ECHO_C" >&6
22959 else
22960   cat >conftest.$ac_ext <<_ACEOF
22961 /* confdefs.h.  */
22962 _ACEOF
22963 cat confdefs.h >>conftest.$ac_ext
22964 cat >>conftest.$ac_ext <<_ACEOF
22965 /* end confdefs.h.  */
22966
22967 #ifdef HAVE_NETINET_IN_H
22968 #include <netinet/in.h>
22969 #endif
22970
22971
22972 typedef struct in6_addr ac__type_new_;
22973 int
22974 main ()
22975 {
22976 if ((ac__type_new_ *) 0)
22977   return 0;
22978 if (sizeof (ac__type_new_))
22979   return 0;
22980   ;
22981   return 0;
22982 }
22983 _ACEOF
22984 rm -f conftest.$ac_objext
22985 if { (ac_try="$ac_compile"
22986 case "(($ac_try" in
22987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22988   *) ac_try_echo=$ac_try;;
22989 esac
22990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22991   (eval "$ac_compile") 2>conftest.er1
22992   ac_status=$?
22993   grep -v '^ *+' conftest.er1 >conftest.err
22994   rm -f conftest.er1
22995   cat conftest.err >&5
22996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22997   (exit $ac_status); } && {
22998          test -z "$ac_c_werror_flag" ||
22999          test ! -s conftest.err
23000        } && test -s conftest.$ac_objext; then
23001   ac_cv_type_struct_in6_addr=yes
23002 else
23003   echo "$as_me: failed program was:" >&5
23004 sed 's/^/| /' conftest.$ac_ext >&5
23005
23006         ac_cv_type_struct_in6_addr=no
23007 fi
23008
23009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23010 fi
23011 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
23012 echo "${ECHO_T}$ac_cv_type_struct_in6_addr" >&6; }
23013 if test $ac_cv_type_struct_in6_addr = yes; then
23014
23015 cat >>confdefs.h <<\_ACEOF
23016 #define HAVE_STRUCT_IN6_ADDR 1
23017 _ACEOF
23018
23019 fi
23020
23021
23022 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
23023 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
23024 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
23025   echo $ECHO_N "(cached) $ECHO_C" >&6
23026 else
23027   cat >conftest.$ac_ext <<_ACEOF
23028 /* confdefs.h.  */
23029 _ACEOF
23030 cat confdefs.h >>conftest.$ac_ext
23031 cat >>conftest.$ac_ext <<_ACEOF
23032 /* end confdefs.h.  */
23033
23034 #ifdef HAVE_NETINET_IN_H
23035 #include <netinet/in.h>
23036 #endif
23037 #ifdef HAVE_SYS_SOCKET_H
23038 #include <sys/socket.h>
23039 #endif
23040
23041
23042 typedef struct sockaddr_storage ac__type_new_;
23043 int
23044 main ()
23045 {
23046 if ((ac__type_new_ *) 0)
23047   return 0;
23048 if (sizeof (ac__type_new_))
23049   return 0;
23050   ;
23051   return 0;
23052 }
23053 _ACEOF
23054 rm -f conftest.$ac_objext
23055 if { (ac_try="$ac_compile"
23056 case "(($ac_try" in
23057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23058   *) ac_try_echo=$ac_try;;
23059 esac
23060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23061   (eval "$ac_compile") 2>conftest.er1
23062   ac_status=$?
23063   grep -v '^ *+' conftest.er1 >conftest.err
23064   rm -f conftest.er1
23065   cat conftest.err >&5
23066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23067   (exit $ac_status); } && {
23068          test -z "$ac_c_werror_flag" ||
23069          test ! -s conftest.err
23070        } && test -s conftest.$ac_objext; then
23071   ac_cv_type_struct_sockaddr_storage=yes
23072 else
23073   echo "$as_me: failed program was:" >&5
23074 sed 's/^/| /' conftest.$ac_ext >&5
23075
23076         ac_cv_type_struct_sockaddr_storage=no
23077 fi
23078
23079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23080 fi
23081 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
23082 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
23083 if test $ac_cv_type_struct_sockaddr_storage = yes; then
23084
23085 cat >>confdefs.h <<\_ACEOF
23086 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
23087 _ACEOF
23088
23089 fi
23090
23091
23092 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
23093 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
23094 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
23095   echo $ECHO_N "(cached) $ECHO_C" >&6
23096 else
23097   cat >conftest.$ac_ext <<_ACEOF
23098 /* confdefs.h.  */
23099 _ACEOF
23100 cat confdefs.h >>conftest.$ac_ext
23101 cat >>conftest.$ac_ext <<_ACEOF
23102 /* end confdefs.h.  */
23103
23104 #ifdef HAVE_NETINET_IN_H
23105 #include <netinet/in.h>
23106 #endif
23107
23108
23109 typedef struct sockaddr_in6 ac__type_new_;
23110 int
23111 main ()
23112 {
23113 if ((ac__type_new_ *) 0)
23114   return 0;
23115 if (sizeof (ac__type_new_))
23116   return 0;
23117   ;
23118   return 0;
23119 }
23120 _ACEOF
23121 rm -f conftest.$ac_objext
23122 if { (ac_try="$ac_compile"
23123 case "(($ac_try" in
23124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23125   *) ac_try_echo=$ac_try;;
23126 esac
23127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23128   (eval "$ac_compile") 2>conftest.er1
23129   ac_status=$?
23130   grep -v '^ *+' conftest.er1 >conftest.err
23131   rm -f conftest.er1
23132   cat conftest.err >&5
23133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23134   (exit $ac_status); } && {
23135          test -z "$ac_c_werror_flag" ||
23136          test ! -s conftest.err
23137        } && test -s conftest.$ac_objext; then
23138   ac_cv_type_struct_sockaddr_in6=yes
23139 else
23140   echo "$as_me: failed program was:" >&5
23141 sed 's/^/| /' conftest.$ac_ext >&5
23142
23143         ac_cv_type_struct_sockaddr_in6=no
23144 fi
23145
23146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23147 fi
23148 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
23149 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
23150 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
23151
23152 cat >>confdefs.h <<\_ACEOF
23153 #define HAVE_STRUCT_SOCKADDR_IN6 1
23154 _ACEOF
23155
23156 fi
23157
23158
23159 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
23160 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
23161 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
23162   echo $ECHO_N "(cached) $ECHO_C" >&6
23163 else
23164   cat >conftest.$ac_ext <<_ACEOF
23165 /* confdefs.h.  */
23166 _ACEOF
23167 cat confdefs.h >>conftest.$ac_ext
23168 cat >>conftest.$ac_ext <<_ACEOF
23169 /* end confdefs.h.  */
23170
23171 #ifdef HAVE_SYS_TYPES_H
23172 #include <sys/types.h>
23173 #endif
23174 #ifdef HAVE_SYS_SOCKET_H
23175 #include <sys/socket.h>
23176 #endif
23177 #ifdef HAVE_NETDB_H
23178 #include <netdb.h>
23179 #endif
23180
23181
23182 typedef struct addrinfo ac__type_new_;
23183 int
23184 main ()
23185 {
23186 if ((ac__type_new_ *) 0)
23187   return 0;
23188 if (sizeof (ac__type_new_))
23189   return 0;
23190   ;
23191   return 0;
23192 }
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_cv_type_struct_addrinfo=yes
23212 else
23213   echo "$as_me: failed program was:" >&5
23214 sed 's/^/| /' conftest.$ac_ext >&5
23215
23216         ac_cv_type_struct_addrinfo=no
23217 fi
23218
23219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23220 fi
23221 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
23222 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
23223 if test $ac_cv_type_struct_addrinfo = yes; then
23224
23225 cat >>confdefs.h <<\_ACEOF
23226 #define HAVE_STRUCT_ADDRINFO 1
23227 _ACEOF
23228
23229 fi
23230
23231
23232
23233
23234
23235
23236
23237
23238
23239
23240
23241
23242
23243
23244
23245
23246
23247
23248
23249
23250
23251
23252
23253
23254
23255
23256
23257
23258
23259
23260 for ac_func in \
23261         getopt_long \
23262         lockf \
23263         strsignal \
23264         sigaction \
23265         sigprocmask \
23266         pthread_sigmask \
23267         snprintf \
23268         vsnprintf \
23269         setsid \
23270         strncasecmp \
23271         strcasecmp \
23272         localtime_r \
23273         ctime_r \
23274         gmtime_r \
23275         strsep \
23276         inet_aton \
23277         inet_pton \
23278         inet_ntop \
23279         setlinebuf \
23280         setvbuf \
23281         getusershell \
23282         initgroups \
23283         getaddrinfo \
23284         getnameinfo \
23285         closefrom \
23286         gettimeofday \
23287         strlcat \
23288         strlcpy
23289
23290 do
23291 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23292 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23293 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23294 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23295   echo $ECHO_N "(cached) $ECHO_C" >&6
23296 else
23297   cat >conftest.$ac_ext <<_ACEOF
23298 /* confdefs.h.  */
23299 _ACEOF
23300 cat confdefs.h >>conftest.$ac_ext
23301 cat >>conftest.$ac_ext <<_ACEOF
23302 /* end confdefs.h.  */
23303 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23304    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23305 #define $ac_func innocuous_$ac_func
23306
23307 /* System header to define __stub macros and hopefully few prototypes,
23308     which can conflict with char $ac_func (); below.
23309     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23310     <limits.h> exists even on freestanding compilers.  */
23311
23312 #ifdef __STDC__
23313 # include <limits.h>
23314 #else
23315 # include <assert.h>
23316 #endif
23317
23318 #undef $ac_func
23319
23320 /* Override any GCC internal prototype to avoid an error.
23321    Use char because int might match the return type of a GCC
23322    builtin and then its argument prototype would still apply.  */
23323 #ifdef __cplusplus
23324 extern "C"
23325 #endif
23326 char $ac_func ();
23327 /* The GNU C library defines this for functions which it implements
23328     to always fail with ENOSYS.  Some functions are actually named
23329     something starting with __ and the normal name is an alias.  */
23330 #if defined __stub_$ac_func || defined __stub___$ac_func
23331 choke me
23332 #endif
23333
23334 int
23335 main ()
23336 {
23337 return $ac_func ();
23338   ;
23339   return 0;
23340 }
23341 _ACEOF
23342 rm -f conftest.$ac_objext conftest$ac_exeext
23343 if { (ac_try="$ac_link"
23344 case "(($ac_try" in
23345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23346   *) ac_try_echo=$ac_try;;
23347 esac
23348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23349   (eval "$ac_link") 2>conftest.er1
23350   ac_status=$?
23351   grep -v '^ *+' conftest.er1 >conftest.err
23352   rm -f conftest.er1
23353   cat conftest.err >&5
23354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23355   (exit $ac_status); } && {
23356          test -z "$ac_c_werror_flag" ||
23357          test ! -s conftest.err
23358        } && test -s conftest$ac_exeext &&
23359        $as_test_x conftest$ac_exeext; then
23360   eval "$as_ac_var=yes"
23361 else
23362   echo "$as_me: failed program was:" >&5
23363 sed 's/^/| /' conftest.$ac_ext >&5
23364
23365         eval "$as_ac_var=no"
23366 fi
23367
23368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23369       conftest$ac_exeext conftest.$ac_ext
23370 fi
23371 ac_res=`eval echo '${'$as_ac_var'}'`
23372                { echo "$as_me:$LINENO: result: $ac_res" >&5
23373 echo "${ECHO_T}$ac_res" >&6; }
23374 if test `eval echo '${'$as_ac_var'}'` = yes; then
23375   cat >>confdefs.h <<_ACEOF
23376 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23377 _ACEOF
23378
23379 fi
23380 done
23381
23382 for ac_func in \
23383         crypt \
23384         strncasecmp \
23385         strcasecmp \
23386         inet_aton \
23387         setlinebuf \
23388         getusershell \
23389         endusershell
23390
23391 do
23392 { echo "$as_me:$LINENO: checking whether $ac_func must be declared" >&5
23393 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6; }
23394 if { as_var=radius_cv_decl_needed_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
23395   echo $ECHO_N "(cached) $ECHO_C" >&6
23396 else
23397   cat >conftest.$ac_ext <<_ACEOF
23398 /* confdefs.h.  */
23399 _ACEOF
23400 cat confdefs.h >>conftest.$ac_ext
23401 cat >>conftest.$ac_ext <<_ACEOF
23402 /* end confdefs.h.  */
23403
23404 #include <stdio.h>
23405 #include <string.h>
23406 #ifdef HAVE_UNISTD_H
23407 #include <unistd.h>
23408 #endif
23409 #ifdef HAVE_CRYPT_H
23410 #include <crypt.h>
23411 #endif
23412 #ifdef HAVE_ERRNO_H
23413 #include <errno.h>
23414 #endif
23415 #ifdef HAVE_RESOURCE_H
23416 #include <resource.h>
23417 #endif
23418 #ifdef HAVE_GETOPT_H
23419 #include <getopt.h>
23420 #endif
23421 #ifdef HAVE_MALLOC_H
23422 #include <malloc.h>
23423 #endif
23424 #ifdef HAVE_UTMP_H
23425 #include <utmp.h>
23426 #endif
23427 #ifdef HAVE_UTMPX_H
23428 #include <utmpx.h>
23429 #endif
23430 #ifdef HAVE_SYS_SELECT_H
23431 #include <sys/select.h>
23432 #endif
23433 #ifdef HAVE_DLFCN_H
23434 #include <dlfcn.h>
23435 #endif
23436 #ifdef HAVE_REGEX_H
23437 #include <regex.h>
23438 #endif
23439 #ifdef HAVE_SYSLOG_H
23440 #include <syslog.h>
23441 #endif
23442 #ifdef HAVE_INTTYPES_H
23443 #include <inttypes.h>
23444 #endif
23445 #ifdef HAVE_STDINT_H
23446 #include <stdint.h>
23447 #endif
23448 #ifdef HAVE_ARPA_INET_H
23449 #include <arpa/inet.h>
23450 #endif
23451
23452 int
23453 main ()
23454 {
23455 char *(*pfn) = (char *(*)) $ac_func
23456   ;
23457   return 0;
23458 }
23459 _ACEOF
23460 rm -f conftest.$ac_objext
23461 if { (ac_try="$ac_compile"
23462 case "(($ac_try" in
23463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23464   *) ac_try_echo=$ac_try;;
23465 esac
23466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23467   (eval "$ac_compile") 2>conftest.er1
23468   ac_status=$?
23469   grep -v '^ *+' conftest.er1 >conftest.err
23470   rm -f conftest.er1
23471   cat conftest.err >&5
23472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23473   (exit $ac_status); } && {
23474          test -z "$ac_c_werror_flag" ||
23475          test ! -s conftest.err
23476        } && test -s conftest.$ac_objext; then
23477   eval "radius_cv_decl_needed_$ac_func=no"
23478 else
23479   echo "$as_me: failed program was:" >&5
23480 sed 's/^/| /' conftest.$ac_ext >&5
23481
23482         eval "radius_cv_decl_needed_$ac_func=yes"
23483 fi
23484
23485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23486 fi
23487
23488 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
23489   { echo "$as_me:$LINENO: result: yes" >&5
23490 echo "${ECHO_T}yes" >&6; }
23491   radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23492   cat >>confdefs.h <<_ACEOF
23493 #define $radius_tr_decl 1
23494 _ACEOF
23495
23496 else
23497   { echo "$as_me:$LINENO: result: no" >&5
23498 echo "${ECHO_T}no" >&6; }
23499 fi
23500
23501 done
23502
23503
23504 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23505 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
23506 if test "${ac_cv_type_signal+set}" = set; then
23507   echo $ECHO_N "(cached) $ECHO_C" >&6
23508 else
23509   cat >conftest.$ac_ext <<_ACEOF
23510 /* confdefs.h.  */
23511 _ACEOF
23512 cat confdefs.h >>conftest.$ac_ext
23513 cat >>conftest.$ac_ext <<_ACEOF
23514 /* end confdefs.h.  */
23515 #include <sys/types.h>
23516 #include <signal.h>
23517
23518 int
23519 main ()
23520 {
23521 return *(signal (0, 0)) (0) == 1;
23522   ;
23523   return 0;
23524 }
23525 _ACEOF
23526 rm -f conftest.$ac_objext
23527 if { (ac_try="$ac_compile"
23528 case "(($ac_try" in
23529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23530   *) ac_try_echo=$ac_try;;
23531 esac
23532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23533   (eval "$ac_compile") 2>conftest.er1
23534   ac_status=$?
23535   grep -v '^ *+' conftest.er1 >conftest.err
23536   rm -f conftest.er1
23537   cat conftest.err >&5
23538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23539   (exit $ac_status); } && {
23540          test -z "$ac_c_werror_flag" ||
23541          test ! -s conftest.err
23542        } && test -s conftest.$ac_objext; then
23543   ac_cv_type_signal=int
23544 else
23545   echo "$as_me: failed program was:" >&5
23546 sed 's/^/| /' conftest.$ac_ext >&5
23547
23548         ac_cv_type_signal=void
23549 fi
23550
23551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23552 fi
23553 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23554 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
23555
23556 cat >>confdefs.h <<_ACEOF
23557 #define RETSIGTYPE $ac_cv_type_signal
23558 _ACEOF
23559
23560
23561
23562 if test "x$ac_cv_header_utmpx_h" = "xyes"
23563 then
23564
23565   { echo "$as_me:$LINENO: checking for ut_xtime in struct utmpx" >&5
23566 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6; }
23567
23568
23569   cat >conftest.$ac_ext <<_ACEOF
23570 /* confdefs.h.  */
23571 _ACEOF
23572 cat confdefs.h >>conftest.$ac_ext
23573 cat >>conftest.$ac_ext <<_ACEOF
23574 /* end confdefs.h.  */
23575
23576 #include <utmpx.h>
23577 #ifndef offsetof
23578 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23579 #endif
23580
23581 int
23582 main ()
23583 {
23584  int foo = offsetof(struct utmpx, ut_xtime)
23585   ;
23586   return 0;
23587 }
23588 _ACEOF
23589 rm -f conftest.$ac_objext
23590 if { (ac_try="$ac_compile"
23591 case "(($ac_try" in
23592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23593   *) ac_try_echo=$ac_try;;
23594 esac
23595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23596   (eval "$ac_compile") 2>conftest.er1
23597   ac_status=$?
23598   grep -v '^ *+' conftest.er1 >conftest.err
23599   rm -f conftest.er1
23600   cat conftest.err >&5
23601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23602   (exit $ac_status); } && {
23603          test -z "$ac_c_werror_flag" ||
23604          test ! -s conftest.err
23605        } && test -s conftest.$ac_objext; then
23606   has_element=" "
23607 else
23608   echo "$as_me: failed program was:" >&5
23609 sed 's/^/| /' conftest.$ac_ext >&5
23610
23611         has_element=
23612 fi
23613
23614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23615
23616   ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
23617   if test "x$has_element" != "x"; then
23618     { echo "$as_me:$LINENO: result: yes" >&5
23619 echo "${ECHO_T}yes" >&6; }
23620     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
23621   else
23622     { echo "$as_me:$LINENO: result: no" >&5
23623 echo "${ECHO_T}no" >&6; }
23624     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
23625  fi
23626
23627  if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
23628  then
23629
23630 cat >>confdefs.h <<\_ACEOF
23631 #define ut_xtime ut_tv.tv_sec
23632 _ACEOF
23633
23634  fi
23635 fi
23636
23637
23638   { echo "$as_me:$LINENO: checking for ipi_addr in struct in_pktinfo" >&5
23639 echo $ECHO_N "checking for ipi_addr in struct in_pktinfo... $ECHO_C" >&6; }
23640
23641
23642   cat >conftest.$ac_ext <<_ACEOF
23643 /* confdefs.h.  */
23644 _ACEOF
23645 cat confdefs.h >>conftest.$ac_ext
23646 cat >>conftest.$ac_ext <<_ACEOF
23647 /* end confdefs.h.  */
23648
23649 #include <netinet/in.h>
23650 #ifndef offsetof
23651 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23652 #endif
23653
23654 int
23655 main ()
23656 {
23657  int foo = offsetof(struct in_pktinfo, ipi_addr)
23658   ;
23659   return 0;
23660 }
23661 _ACEOF
23662 rm -f conftest.$ac_objext
23663 if { (ac_try="$ac_compile"
23664 case "(($ac_try" in
23665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23666   *) ac_try_echo=$ac_try;;
23667 esac
23668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23669   (eval "$ac_compile") 2>conftest.er1
23670   ac_status=$?
23671   grep -v '^ *+' conftest.er1 >conftest.err
23672   rm -f conftest.er1
23673   cat conftest.err >&5
23674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23675   (exit $ac_status); } && {
23676          test -z "$ac_c_werror_flag" ||
23677          test ! -s conftest.err
23678        } && test -s conftest.$ac_objext; then
23679   has_element=" "
23680 else
23681   echo "$as_me: failed program was:" >&5
23682 sed 's/^/| /' conftest.$ac_ext >&5
23683
23684         has_element=
23685 fi
23686
23687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23688
23689   ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
23690   if test "x$has_element" != "x"; then
23691     { echo "$as_me:$LINENO: result: yes" >&5
23692 echo "${ECHO_T}yes" >&6; }
23693     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
23694   else
23695     { echo "$as_me:$LINENO: result: no" >&5
23696 echo "${ECHO_T}no" >&6; }
23697     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
23698  fi
23699
23700 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
23701 then
23702
23703 cat >>confdefs.h <<\_ACEOF
23704 #define HAVE_IP_PKTINFO
23705 _ACEOF
23706
23707 fi
23708
23709
23710   { echo "$as_me:$LINENO: checking for ipi6_addr in struct in6_pktinfo" >&5
23711 echo $ECHO_N "checking for ipi6_addr in struct in6_pktinfo... $ECHO_C" >&6; }
23712
23713
23714   cat >conftest.$ac_ext <<_ACEOF
23715 /* confdefs.h.  */
23716 _ACEOF
23717 cat confdefs.h >>conftest.$ac_ext
23718 cat >>conftest.$ac_ext <<_ACEOF
23719 /* end confdefs.h.  */
23720
23721 #include <netinet/in.h>
23722 #ifndef offsetof
23723 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23724 #endif
23725
23726 int
23727 main ()
23728 {
23729  int foo = offsetof(struct in6_pktinfo, ipi6_addr)
23730   ;
23731   return 0;
23732 }
23733 _ACEOF
23734 rm -f conftest.$ac_objext
23735 if { (ac_try="$ac_compile"
23736 case "(($ac_try" in
23737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23738   *) ac_try_echo=$ac_try;;
23739 esac
23740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23741   (eval "$ac_compile") 2>conftest.er1
23742   ac_status=$?
23743   grep -v '^ *+' conftest.er1 >conftest.err
23744   rm -f conftest.er1
23745   cat conftest.err >&5
23746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23747   (exit $ac_status); } && {
23748          test -z "$ac_c_werror_flag" ||
23749          test ! -s conftest.err
23750        } && test -s conftest.$ac_objext; then
23751   has_element=" "
23752 else
23753   echo "$as_me: failed program was:" >&5
23754 sed 's/^/| /' conftest.$ac_ext >&5
23755
23756         has_element=
23757 fi
23758
23759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23760
23761   ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
23762   if test "x$has_element" != "x"; then
23763     { echo "$as_me:$LINENO: result: yes" >&5
23764 echo "${ECHO_T}yes" >&6; }
23765     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
23766   else
23767     { echo "$as_me:$LINENO: result: no" >&5
23768 echo "${ECHO_T}no" >&6; }
23769     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
23770  fi
23771
23772 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
23773 then
23774
23775 cat >>confdefs.h <<\_ACEOF
23776 #define HAVE_IN6_PKTINFO
23777 _ACEOF
23778
23779 fi
23780
23781
23782 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23783 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23784 if test "${ac_cv_c_const+set}" = set; then
23785   echo $ECHO_N "(cached) $ECHO_C" >&6
23786 else
23787   cat >conftest.$ac_ext <<_ACEOF
23788 /* confdefs.h.  */
23789 _ACEOF
23790 cat confdefs.h >>conftest.$ac_ext
23791 cat >>conftest.$ac_ext <<_ACEOF
23792 /* end confdefs.h.  */
23793
23794 int
23795 main ()
23796 {
23797 /* FIXME: Include the comments suggested by Paul. */
23798 #ifndef __cplusplus
23799   /* Ultrix mips cc rejects this.  */
23800   typedef int charset[2];
23801   const charset cs;
23802   /* SunOS 4.1.1 cc rejects this.  */
23803   char const *const *pcpcc;
23804   char **ppc;
23805   /* NEC SVR4.0.2 mips cc rejects this.  */
23806   struct point {int x, y;};
23807   static struct point const zero = {0,0};
23808   /* AIX XL C 1.02.0.0 rejects this.
23809      It does not let you subtract one const X* pointer from another in
23810      an arm of an if-expression whose if-part is not a constant
23811      expression */
23812   const char *g = "string";
23813   pcpcc = &g + (g ? g-g : 0);
23814   /* HPUX 7.0 cc rejects these. */
23815   ++pcpcc;
23816   ppc = (char**) pcpcc;
23817   pcpcc = (char const *const *) ppc;
23818   { /* SCO 3.2v4 cc rejects this.  */
23819     char *t;
23820     char const *s = 0 ? (char *) 0 : (char const *) 0;
23821
23822     *t++ = 0;
23823     if (s) return 0;
23824   }
23825   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23826     int x[] = {25, 17};
23827     const int *foo = &x[0];
23828     ++foo;
23829   }
23830   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23831     typedef const int *iptr;
23832     iptr p = 0;
23833     ++p;
23834   }
23835   { /* AIX XL C 1.02.0.0 rejects this saying
23836        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23837     struct s { int j; const int *ap[3]; };
23838     struct s *b; b->j = 5;
23839   }
23840   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23841     const int foo = 10;
23842     if (!foo) return 0;
23843   }
23844   return !cs[0] && !zero.x;
23845 #endif
23846
23847   ;
23848   return 0;
23849 }
23850 _ACEOF
23851 rm -f conftest.$ac_objext
23852 if { (ac_try="$ac_compile"
23853 case "(($ac_try" in
23854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23855   *) ac_try_echo=$ac_try;;
23856 esac
23857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23858   (eval "$ac_compile") 2>conftest.er1
23859   ac_status=$?
23860   grep -v '^ *+' conftest.er1 >conftest.err
23861   rm -f conftest.er1
23862   cat conftest.err >&5
23863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23864   (exit $ac_status); } && {
23865          test -z "$ac_c_werror_flag" ||
23866          test ! -s conftest.err
23867        } && test -s conftest.$ac_objext; then
23868   ac_cv_c_const=yes
23869 else
23870   echo "$as_me: failed program was:" >&5
23871 sed 's/^/| /' conftest.$ac_ext >&5
23872
23873         ac_cv_c_const=no
23874 fi
23875
23876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23877 fi
23878 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23879 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23880 if test $ac_cv_c_const = no; then
23881
23882 cat >>confdefs.h <<\_ACEOF
23883 #define const
23884 _ACEOF
23885
23886 fi
23887
23888
23889 { echo "$as_me:$LINENO: checking type of OS" >&5
23890 echo $ECHO_N "checking type of OS... $ECHO_C" >&6; }
23891 OS=`uname -s`
23892 { echo "$as_me:$LINENO: result: $OS" >&5
23893 echo "${ECHO_T}$OS" >&6; }
23894 if test "$OS" = "OS/2"; then
23895         LIBPREFIX=
23896 else
23897         LIBPREFIX=lib
23898 fi
23899
23900
23901 if test "x$GCC" = "xyes"; then
23902     CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
23903 fi
23904
23905 { echo "$as_me:$LINENO: checking for developer gcc flags" >&5
23906 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6; }
23907 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
23908   devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
23909   CFLAGS="$CFLAGS $devflags"
23910   INSTALLSTRIP=""
23911   { echo "$as_me:$LINENO: result: yes.  Using $devflags" >&5
23912 echo "${ECHO_T}yes.  Using $devflags" >&6; }
23913 else
23914   devflags=""
23915   CFLAGS="$CFLAGS -DNDEBUG"
23916   INSTALLSTRIP="-s"
23917   { echo "$as_me:$LINENO: result: no." >&5
23918 echo "${ECHO_T}no." >&6; }
23919 fi
23920
23921
23922 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
23923 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
23924 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
23925   echo $ECHO_N "(cached) $ECHO_C" >&6
23926 else
23927   ac_check_lib_save_LIBS=$LIBS
23928 LIBS="-lcrypt  $LIBS"
23929 cat >conftest.$ac_ext <<_ACEOF
23930 /* confdefs.h.  */
23931 _ACEOF
23932 cat confdefs.h >>conftest.$ac_ext
23933 cat >>conftest.$ac_ext <<_ACEOF
23934 /* end confdefs.h.  */
23935
23936 /* Override any GCC internal prototype to avoid an error.
23937    Use char because int might match the return type of a GCC
23938    builtin and then its argument prototype would still apply.  */
23939 #ifdef __cplusplus
23940 extern "C"
23941 #endif
23942 char crypt ();
23943 int
23944 main ()
23945 {
23946 return crypt ();
23947   ;
23948   return 0;
23949 }
23950 _ACEOF
23951 rm -f conftest.$ac_objext conftest$ac_exeext
23952 if { (ac_try="$ac_link"
23953 case "(($ac_try" in
23954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23955   *) ac_try_echo=$ac_try;;
23956 esac
23957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23958   (eval "$ac_link") 2>conftest.er1
23959   ac_status=$?
23960   grep -v '^ *+' conftest.er1 >conftest.err
23961   rm -f conftest.er1
23962   cat conftest.err >&5
23963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23964   (exit $ac_status); } && {
23965          test -z "$ac_c_werror_flag" ||
23966          test ! -s conftest.err
23967        } && test -s conftest$ac_exeext &&
23968        $as_test_x conftest$ac_exeext; then
23969   ac_cv_lib_crypt_crypt=yes
23970 else
23971   echo "$as_me: failed program was:" >&5
23972 sed 's/^/| /' conftest.$ac_ext >&5
23973
23974         ac_cv_lib_crypt_crypt=no
23975 fi
23976
23977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23978       conftest$ac_exeext conftest.$ac_ext
23979 LIBS=$ac_check_lib_save_LIBS
23980 fi
23981 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
23982 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
23983 if test $ac_cv_lib_crypt_crypt = yes; then
23984   CRYPTLIB="-lcrypt"
23985
23986 fi
23987
23988 if test "$CRYPTLIB" != ""; then
23989
23990 cat >>confdefs.h <<\_ACEOF
23991 #define HAVE_CRYPT
23992 _ACEOF
23993
23994 else
23995   { echo "$as_me:$LINENO: checking for crypt" >&5
23996 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
23997 if test "${ac_cv_func_crypt+set}" = set; then
23998   echo $ECHO_N "(cached) $ECHO_C" >&6
23999 else
24000   cat >conftest.$ac_ext <<_ACEOF
24001 /* confdefs.h.  */
24002 _ACEOF
24003 cat confdefs.h >>conftest.$ac_ext
24004 cat >>conftest.$ac_ext <<_ACEOF
24005 /* end confdefs.h.  */
24006 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
24007    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24008 #define crypt innocuous_crypt
24009
24010 /* System header to define __stub macros and hopefully few prototypes,
24011     which can conflict with char crypt (); below.
24012     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24013     <limits.h> exists even on freestanding compilers.  */
24014
24015 #ifdef __STDC__
24016 # include <limits.h>
24017 #else
24018 # include <assert.h>
24019 #endif
24020
24021 #undef crypt
24022
24023 /* Override any GCC internal prototype to avoid an error.
24024    Use char because int might match the return type of a GCC
24025    builtin and then its argument prototype would still apply.  */
24026 #ifdef __cplusplus
24027 extern "C"
24028 #endif
24029 char crypt ();
24030 /* The GNU C library defines this for functions which it implements
24031     to always fail with ENOSYS.  Some functions are actually named
24032     something starting with __ and the normal name is an alias.  */
24033 #if defined __stub_crypt || defined __stub___crypt
24034 choke me
24035 #endif
24036
24037 int
24038 main ()
24039 {
24040 return crypt ();
24041   ;
24042   return 0;
24043 }
24044 _ACEOF
24045 rm -f conftest.$ac_objext conftest$ac_exeext
24046 if { (ac_try="$ac_link"
24047 case "(($ac_try" in
24048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24049   *) ac_try_echo=$ac_try;;
24050 esac
24051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24052   (eval "$ac_link") 2>conftest.er1
24053   ac_status=$?
24054   grep -v '^ *+' conftest.er1 >conftest.err
24055   rm -f conftest.er1
24056   cat conftest.err >&5
24057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24058   (exit $ac_status); } && {
24059          test -z "$ac_c_werror_flag" ||
24060          test ! -s conftest.err
24061        } && test -s conftest$ac_exeext &&
24062        $as_test_x conftest$ac_exeext; then
24063   ac_cv_func_crypt=yes
24064 else
24065   echo "$as_me: failed program was:" >&5
24066 sed 's/^/| /' conftest.$ac_ext >&5
24067
24068         ac_cv_func_crypt=no
24069 fi
24070
24071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24072       conftest$ac_exeext conftest.$ac_ext
24073 fi
24074 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
24075 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
24076 if test $ac_cv_func_crypt = yes; then
24077
24078 cat >>confdefs.h <<\_ACEOF
24079 #define HAVE_CRYPT
24080 _ACEOF
24081
24082 fi
24083
24084 fi
24085
24086 { echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
24087 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6; }
24088 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
24089   echo $ECHO_N "(cached) $ECHO_C" >&6
24090 else
24091   ac_check_lib_save_LIBS=$LIBS
24092 LIBS="-lcipher  $LIBS"
24093 cat >conftest.$ac_ext <<_ACEOF
24094 /* confdefs.h.  */
24095 _ACEOF
24096 cat confdefs.h >>conftest.$ac_ext
24097 cat >>conftest.$ac_ext <<_ACEOF
24098 /* end confdefs.h.  */
24099
24100 /* Override any GCC internal prototype to avoid an error.
24101    Use char because int might match the return type of a GCC
24102    builtin and then its argument prototype would still apply.  */
24103 #ifdef __cplusplus
24104 extern "C"
24105 #endif
24106 char setkey ();
24107 int
24108 main ()
24109 {
24110 return setkey ();
24111   ;
24112   return 0;
24113 }
24114 _ACEOF
24115 rm -f conftest.$ac_objext conftest$ac_exeext
24116 if { (ac_try="$ac_link"
24117 case "(($ac_try" in
24118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24119   *) ac_try_echo=$ac_try;;
24120 esac
24121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24122   (eval "$ac_link") 2>conftest.er1
24123   ac_status=$?
24124   grep -v '^ *+' conftest.er1 >conftest.err
24125   rm -f conftest.er1
24126   cat conftest.err >&5
24127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24128   (exit $ac_status); } && {
24129          test -z "$ac_c_werror_flag" ||
24130          test ! -s conftest.err
24131        } && test -s conftest$ac_exeext &&
24132        $as_test_x conftest$ac_exeext; then
24133   ac_cv_lib_cipher_setkey=yes
24134 else
24135   echo "$as_me: failed program was:" >&5
24136 sed 's/^/| /' conftest.$ac_ext >&5
24137
24138         ac_cv_lib_cipher_setkey=no
24139 fi
24140
24141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24142       conftest$ac_exeext conftest.$ac_ext
24143 LIBS=$ac_check_lib_save_LIBS
24144 fi
24145 { echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
24146 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6; }
24147 if test $ac_cv_lib_cipher_setkey = yes; then
24148   CRYPTLIB="${CRYPTLIB} -lcipher"
24149
24150 fi
24151
24152
24153
24154 if test "x$WITH_SNMP" = "xyes"; then
24155
24156
24157
24158
24159 { echo "$as_me:$LINENO: checking for asn1.h,snmp.h,snmp_impl.h" >&5
24160 echo $ECHO_N "checking for asn1.h,snmp.h,snmp_impl.h... $ECHO_C" >&6; }
24161
24162 cat >conftest.$ac_ext <<_ACEOF
24163 /* confdefs.h.  */
24164 _ACEOF
24165 cat confdefs.h >>conftest.$ac_ext
24166 cat >>conftest.$ac_ext <<_ACEOF
24167 /* end confdefs.h.  */
24168
24169 #ifdef HAVE_SYS_TYPES_H
24170 #include <sys/types.h>
24171 #endif
24172 #ifdef HAVE_STDINT_H
24173 #include <stdint.h>
24174 #endif
24175 #ifdef HAVE_STDIO_H
24176 #include <stdio.h>
24177 #endif
24178 #ifdef HAVE_NETDB_H
24179 #include <netdb.h>
24180 #endif
24181 #ifdef HAVE_UNISTD_H
24182 #include <unistd.h>
24183 #endif
24184 #include <ucd-snmp/ucd-snmp-config.h>
24185 #include <ucd-snmp/asn1.h>
24186 #include <ucd-snmp/snmp.h>
24187 #include <ucd-snmp/snmp_impl.h>
24188 int
24189 main ()
24190 {
24191  int a = 1;
24192   ;
24193   return 0;
24194 }
24195 _ACEOF
24196 rm -f conftest.$ac_objext
24197 if { (ac_try="$ac_compile"
24198 case "(($ac_try" in
24199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24200   *) ac_try_echo=$ac_try;;
24201 esac
24202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24203   (eval "$ac_compile") 2>conftest.er1
24204   ac_status=$?
24205   grep -v '^ *+' conftest.er1 >conftest.err
24206   rm -f conftest.er1
24207   cat conftest.err >&5
24208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24209   (exit $ac_status); } && {
24210          test -z "$ac_c_werror_flag" ||
24211          test ! -s conftest.err
24212        } && test -s conftest.$ac_objext; then
24213   SNMP_INCLUDE="";ucdsnmp=yes
24214 else
24215   echo "$as_me: failed program was:" >&5
24216 sed 's/^/| /' conftest.$ac_ext >&5
24217
24218         ucdsnmp=
24219 fi
24220
24221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24222
24223 if test "x$ucdsnmp" = "x"; then
24224   old_CFLAGS="$CFLAGS"
24225   for try in /usr/include /usr/local/include $snmp_include_dir; do
24226     CFLAGS="$old_CFLAGS -I$try"
24227     cat >conftest.$ac_ext <<_ACEOF
24228 /* confdefs.h.  */
24229 _ACEOF
24230 cat confdefs.h >>conftest.$ac_ext
24231 cat >>conftest.$ac_ext <<_ACEOF
24232 /* end confdefs.h.  */
24233
24234 #ifdef HAVE_SYS_TYPES_H
24235 #include <sys/types.h>
24236 #endif
24237 #ifdef HAVE_STDINT_H
24238 #include <stdint.h>
24239 #endif
24240 #ifdef HAVE_STDIO_H
24241 #include <stdio.h>
24242 #endif
24243 #ifdef HAVE_NETDB_H
24244 #include <netdb.h>
24245 #endif
24246 #ifdef HAVE_UNISTD_H
24247 #include <unistd.h>
24248 #endif
24249 #include <ucd-snmp/ucd-snmp-config.h>
24250 #include <ucd-snmp/asn1.h>
24251 #include <ucd-snmp/snmp.h>
24252 #include <ucd-snmp/snmp_impl.h>
24253 int
24254 main ()
24255 {
24256  int a = 1;
24257   ;
24258   return 0;
24259 }
24260 _ACEOF
24261 rm -f conftest.$ac_objext
24262 if { (ac_try="$ac_compile"
24263 case "(($ac_try" in
24264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24265   *) ac_try_echo=$ac_try;;
24266 esac
24267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24268   (eval "$ac_compile") 2>conftest.er1
24269   ac_status=$?
24270   grep -v '^ *+' conftest.er1 >conftest.err
24271   rm -f conftest.er1
24272   cat conftest.err >&5
24273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24274   (exit $ac_status); } && {
24275          test -z "$ac_c_werror_flag" ||
24276          test ! -s conftest.err
24277        } && test -s conftest.$ac_objext; then
24278   SNMP_INCLUDE="-I$try";ucdsnmp=yes
24279 else
24280   echo "$as_me: failed program was:" >&5
24281 sed 's/^/| /' conftest.$ac_ext >&5
24282
24283         ucdsnmp=
24284 fi
24285
24286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24287     if test "x$ucdsnmp" != "x"; then
24288       break;
24289     fi
24290   done
24291   CFLAGS="$old_CFLAGS"
24292 fi
24293
24294 if test "x$ucdsnmp" = "x"; then
24295   old_CFLAGS="$CFLAGS"
24296   for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
24297     CFLAGS="$old_CFLAGS -I$try"
24298 cat >conftest.$ac_ext <<_ACEOF
24299 /* confdefs.h.  */
24300 _ACEOF
24301 cat confdefs.h >>conftest.$ac_ext
24302 cat >>conftest.$ac_ext <<_ACEOF
24303 /* end confdefs.h.  */
24304
24305 #ifdef HAVE_SYS_TYPES_H
24306 #include <sys/types.h>
24307 #endif
24308 #ifdef HAVE_STDINT_H
24309 #include <stdint.h>
24310 #endif
24311 #ifdef HAVE_STDIO_H
24312 #include <stdio.h>
24313 #endif
24314 #ifdef HAVE_NETDB_H
24315 #include <netdb.h>
24316 #endif
24317 #ifdef HAVE_UNISTD_H
24318 #include <unistd.h>
24319 #endif
24320 #include <asn1.h>
24321 #include <snmp.h>
24322 #include <snmp_impl.h>
24323 int
24324 main ()
24325 {
24326  int a = 1;
24327   ;
24328   return 0;
24329 }
24330 _ACEOF
24331 rm -f conftest.$ac_objext
24332 if { (ac_try="$ac_compile"
24333 case "(($ac_try" in
24334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24335   *) ac_try_echo=$ac_try;;
24336 esac
24337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24338   (eval "$ac_compile") 2>conftest.er1
24339   ac_status=$?
24340   grep -v '^ *+' conftest.er1 >conftest.err
24341   rm -f conftest.er1
24342   cat conftest.err >&5
24343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24344   (exit $ac_status); } && {
24345          test -z "$ac_c_werror_flag" ||
24346          test ! -s conftest.err
24347        } && test -s conftest.$ac_objext; then
24348   SNMP_INCLUDE="";ucdsnmp=no
24349 else
24350   echo "$as_me: failed program was:" >&5
24351 sed 's/^/| /' conftest.$ac_ext >&5
24352
24353         ucdsnmp=
24354 fi
24355
24356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24357     if test "x$ucdsnmp" != "x"; then
24358       break;
24359     fi
24360   done
24361   CFLAGS="$old_CFLAGS"
24362 fi
24363
24364 if test "x$ucdsnmp" = "x"; then
24365   old_CFLAGS="$CFLAGS"
24366   for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
24367     CFLAGS="$old_CFLAGS -I$try"
24368     cat >conftest.$ac_ext <<_ACEOF
24369 /* confdefs.h.  */
24370 _ACEOF
24371 cat confdefs.h >>conftest.$ac_ext
24372 cat >>conftest.$ac_ext <<_ACEOF
24373 /* end confdefs.h.  */
24374
24375 #ifdef HAVE_SYS_TYPES_H
24376 #include <sys/types.h>
24377 #endif
24378 #ifdef HAVE_STDINT_H
24379 #include <stdint.h>
24380 #endif
24381 #ifdef HAVE_STDIO_H
24382 #include <stdio.h>
24383 #endif
24384 #ifdef HAVE_NETDB_H
24385 #include <netdb.h>
24386 #endif
24387 #ifdef HAVE_UNISTD_H
24388 #include <unistd.h>
24389 #endif
24390 #include <asn1.h>
24391 #include <snmp.h>
24392 #include <snmp_impl.h>
24393 int
24394 main ()
24395 {
24396  int a = 1;
24397   ;
24398   return 0;
24399 }
24400 _ACEOF
24401 rm -f conftest.$ac_objext
24402 if { (ac_try="$ac_compile"
24403 case "(($ac_try" in
24404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24405   *) ac_try_echo=$ac_try;;
24406 esac
24407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24408   (eval "$ac_compile") 2>conftest.er1
24409   ac_status=$?
24410   grep -v '^ *+' conftest.er1 >conftest.err
24411   rm -f conftest.er1
24412   cat conftest.err >&5
24413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24414   (exit $ac_status); } && {
24415          test -z "$ac_c_werror_flag" ||
24416          test ! -s conftest.err
24417        } && test -s conftest.$ac_objext; then
24418   SNMP_INCLUDE="-I$try";ucdsnmp=no
24419 else
24420   echo "$as_me: failed program was:" >&5
24421 sed 's/^/| /' conftest.$ac_ext >&5
24422
24423         ucdsnmp=
24424 fi
24425
24426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24427     if test "x$ucdsnmp" != "x"; then
24428       break;
24429     fi
24430   done
24431   CFLAGS="$old_CFLAGS"
24432 fi
24433
24434 if test "x$ucdsnmp" = "x"; then
24435   { echo "$as_me:$LINENO: result: no" >&5
24436 echo "${ECHO_T}no" >&6; }
24437 else
24438   if test "x$ucdsnmp" = "xyes"; then
24439     { echo "$as_me:$LINENO: result: (ucd-snmp)yes" >&5
24440 echo "${ECHO_T}(ucd-snmp)yes" >&6; }
24441
24442 cat >>confdefs.h <<\_ACEOF
24443 #define HAVE_UCD_SNMP_ASN1_SNMP_SNMPIMPL_H
24444 _ACEOF
24445
24446   else
24447     { echo "$as_me:$LINENO: result: yes" >&5
24448 echo "${ECHO_T}yes" >&6; }
24449
24450 cat >>confdefs.h <<\_ACEOF
24451 #define HAVE_ASN1_SNMP_SNMPIMPL_H
24452 _ACEOF
24453
24454   fi
24455   { echo "$as_me:$LINENO: checking for snmp_build_var_op in -lsnmp" >&5
24456 echo $ECHO_N "checking for snmp_build_var_op in -lsnmp... $ECHO_C" >&6; }
24457
24458   old_LIBS="$LIBS"
24459   LIBS="$old_LIBS -lsnmp"
24460   cat >conftest.$ac_ext <<_ACEOF
24461 /* confdefs.h.  */
24462 _ACEOF
24463 cat confdefs.h >>conftest.$ac_ext
24464 cat >>conftest.$ac_ext <<_ACEOF
24465 /* end confdefs.h.  */
24466 extern char snmp_build_var_op();
24467 int
24468 main ()
24469 {
24470  snmp_build_var_op()
24471   ;
24472   return 0;
24473 }
24474 _ACEOF
24475 rm -f conftest.$ac_objext conftest$ac_exeext
24476 if { (ac_try="$ac_link"
24477 case "(($ac_try" in
24478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24479   *) ac_try_echo=$ac_try;;
24480 esac
24481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24482   (eval "$ac_link") 2>conftest.er1
24483   ac_status=$?
24484   grep -v '^ *+' conftest.er1 >conftest.err
24485   rm -f conftest.er1
24486   cat conftest.err >&5
24487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24488   (exit $ac_status); } && {
24489          test -z "$ac_c_werror_flag" ||
24490          test ! -s conftest.err
24491        } && test -s conftest$ac_exeext &&
24492        $as_test_x conftest$ac_exeext; then
24493   SNMP_LIBS="-lsnmp"
24494 else
24495   echo "$as_me: failed program was:" >&5
24496 sed 's/^/| /' conftest.$ac_ext >&5
24497
24498         SNMP_LIBS=
24499 fi
24500
24501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24502       conftest$ac_exeext conftest.$ac_ext
24503
24504   if test "x$SNMP_LIBS" = "x"; then
24505     for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $with_snmp_lib_dir; do
24506       LIBS="$old_LIBS -L$try -lsnmp"
24507       cat >conftest.$ac_ext <<_ACEOF
24508 /* confdefs.h.  */
24509 _ACEOF
24510 cat confdefs.h >>conftest.$ac_ext
24511 cat >>conftest.$ac_ext <<_ACEOF
24512 /* end confdefs.h.  */
24513 extern char snmp_build_var_op();
24514 int
24515 main ()
24516 {
24517  snmp_build_var_op()
24518   ;
24519   return 0;
24520 }
24521 _ACEOF
24522 rm -f conftest.$ac_objext conftest$ac_exeext
24523 if { (ac_try="$ac_link"
24524 case "(($ac_try" in
24525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24526   *) ac_try_echo=$ac_try;;
24527 esac
24528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24529   (eval "$ac_link") 2>conftest.er1
24530   ac_status=$?
24531   grep -v '^ *+' conftest.er1 >conftest.err
24532   rm -f conftest.er1
24533   cat conftest.err >&5
24534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24535   (exit $ac_status); } && {
24536          test -z "$ac_c_werror_flag" ||
24537          test ! -s conftest.err
24538        } && test -s conftest$ac_exeext &&
24539        $as_test_x conftest$ac_exeext; then
24540   SNMP_LIBS="-L$try -lsnmp"
24541 else
24542   echo "$as_me: failed program was:" >&5
24543 sed 's/^/| /' conftest.$ac_ext >&5
24544
24545         SNMP_LIBS=
24546 fi
24547
24548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24549       conftest$ac_exeext conftest.$ac_ext
24550       if test "x$SNMP_LIBS" != "x"; then
24551         break;
24552       fi
24553       LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
24554       cat >conftest.$ac_ext <<_ACEOF
24555 /* confdefs.h.  */
24556 _ACEOF
24557 cat confdefs.h >>conftest.$ac_ext
24558 cat >>conftest.$ac_ext <<_ACEOF
24559 /* end confdefs.h.  */
24560 extern char snmp_build_var_op();
24561 int
24562 main ()
24563 {
24564  snmp_build_var_op()
24565   ;
24566   return 0;
24567 }
24568 _ACEOF
24569 rm -f conftest.$ac_objext conftest$ac_exeext
24570 if { (ac_try="$ac_link"
24571 case "(($ac_try" in
24572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24573   *) ac_try_echo=$ac_try;;
24574 esac
24575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24576   (eval "$ac_link") 2>conftest.er1
24577   ac_status=$?
24578   grep -v '^ *+' conftest.er1 >conftest.err
24579   rm -f conftest.er1
24580   cat conftest.err >&5
24581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24582   (exit $ac_status); } && {
24583          test -z "$ac_c_werror_flag" ||
24584          test ! -s conftest.err
24585        } && test -s conftest$ac_exeext &&
24586        $as_test_x conftest$ac_exeext; then
24587   SNMP_LIBS="-L$try -lsnmp -lcrypto"
24588 else
24589   echo "$as_me: failed program was:" >&5
24590 sed 's/^/| /' conftest.$ac_ext >&5
24591
24592         SNMP_LIBS=
24593 fi
24594
24595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24596       conftest$ac_exeext conftest.$ac_ext
24597       if test "x$SNMP_LIBS" != "x"; then
24598         break;
24599       fi
24600       LIBS="$old_LIBS -L$try -lsnmp -lcrypto -lkstat"
24601       cat >conftest.$ac_ext <<_ACEOF
24602 /* confdefs.h.  */
24603 _ACEOF
24604 cat confdefs.h >>conftest.$ac_ext
24605 cat >>conftest.$ac_ext <<_ACEOF
24606 /* end confdefs.h.  */
24607 extern char snmp_build_var_op();
24608 int
24609 main ()
24610 {
24611  snmp_build_var_op()
24612   ;
24613   return 0;
24614 }
24615 _ACEOF
24616 rm -f conftest.$ac_objext conftest$ac_exeext
24617 if { (ac_try="$ac_link"
24618 case "(($ac_try" in
24619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24620   *) ac_try_echo=$ac_try;;
24621 esac
24622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24623   (eval "$ac_link") 2>conftest.er1
24624   ac_status=$?
24625   grep -v '^ *+' conftest.er1 >conftest.err
24626   rm -f conftest.er1
24627   cat conftest.err >&5
24628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24629   (exit $ac_status); } && {
24630          test -z "$ac_c_werror_flag" ||
24631          test ! -s conftest.err
24632        } && test -s conftest$ac_exeext &&
24633        $as_test_x conftest$ac_exeext; then
24634   SNMP_LIBS="-L$try -lsnmp -lcrypto -lkstat"
24635 else
24636   echo "$as_me: failed program was:" >&5
24637 sed 's/^/| /' conftest.$ac_ext >&5
24638
24639         SNMP_LIBS=
24640 fi
24641
24642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24643       conftest$ac_exeext conftest.$ac_ext
24644       if test "x$SNMP_LIBS" != "x"; then
24645         break;
24646       fi
24647     done
24648   fi
24649   LIBS="$old_LIBS"
24650
24651           CFLAGS="$old_CFLAGS"
24652   if test "x$SNMP_LIBS" = "x"; then
24653     { echo "$as_me:$LINENO: result: no" >&5
24654 echo "${ECHO_T}no" >&6; }
24655     SNMP_INCLUDE=
24656   else
24657     { echo "$as_me:$LINENO: result: yes" >&5
24658 echo "${ECHO_T}yes" >&6; }
24659
24660 cat >>confdefs.h <<\_ACEOF
24661 #define WITH_SNMP
24662 _ACEOF
24663
24664
24665 cat >>confdefs.h <<\_ACEOF
24666 #define HAVE_LIBSNMP
24667 _ACEOF
24668
24669   fi
24670 fi
24671
24672 fi
24673
24674
24675 cat >>confdefs.h <<\_ACEOF
24676 #define GNUSTYLE 1
24677 _ACEOF
24678
24679
24680 cat >>confdefs.h <<\_ACEOF
24681 #define SYSVSTYLE 2
24682 _ACEOF
24683
24684
24685 cat >>confdefs.h <<\_ACEOF
24686 #define BSDSTYLE 3
24687 _ACEOF
24688
24689 gethostbyaddrrstyle=""
24690 { echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
24691 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6; }
24692 case "$host" in
24693 *-freebsd*)
24694         { echo "$as_me:$LINENO: checking whether gethostbyaddr_r is declared" >&5
24695 echo $ECHO_N "checking whether gethostbyaddr_r is declared... $ECHO_C" >&6; }
24696 if test "${ac_cv_have_decl_gethostbyaddr_r+set}" = set; then
24697   echo $ECHO_N "(cached) $ECHO_C" >&6
24698 else
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 #ifdef HAVE_NETDB_H
24707 #include <netdb.h>
24708 #endif
24709
24710
24711 int
24712 main ()
24713 {
24714 #ifndef gethostbyaddr_r
24715   (void) gethostbyaddr_r;
24716 #endif
24717
24718   ;
24719   return 0;
24720 }
24721 _ACEOF
24722 rm -f conftest.$ac_objext
24723 if { (ac_try="$ac_compile"
24724 case "(($ac_try" in
24725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24726   *) ac_try_echo=$ac_try;;
24727 esac
24728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24729   (eval "$ac_compile") 2>conftest.er1
24730   ac_status=$?
24731   grep -v '^ *+' conftest.er1 >conftest.err
24732   rm -f conftest.er1
24733   cat conftest.err >&5
24734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24735   (exit $ac_status); } && {
24736          test -z "$ac_c_werror_flag" ||
24737          test ! -s conftest.err
24738        } && test -s conftest.$ac_objext; then
24739   ac_cv_have_decl_gethostbyaddr_r=yes
24740 else
24741   echo "$as_me: failed program was:" >&5
24742 sed 's/^/| /' conftest.$ac_ext >&5
24743
24744         ac_cv_have_decl_gethostbyaddr_r=no
24745 fi
24746
24747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24748 fi
24749 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_gethostbyaddr_r" >&5
24750 echo "${ECHO_T}$ac_cv_have_decl_gethostbyaddr_r" >&6; }
24751 if test $ac_cv_have_decl_gethostbyaddr_r = yes; then
24752
24753 cat >>confdefs.h <<_ACEOF
24754 #define HAVE_DECL_GETHOSTBYADDR_R 1
24755 _ACEOF
24756
24757
24758 else
24759   cat >>confdefs.h <<_ACEOF
24760 #define HAVE_DECL_GETHOSTBYADDR_R 0
24761 _ACEOF
24762
24763
24764
24765 cat >>confdefs.h <<\_ACEOF
24766 #define GETHOSTBYADDRRSTYLE BSDSTYLE
24767 _ACEOF
24768
24769                 gethostbyaddrrstyle=BSD
24770                 { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
24771 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
24772
24773 fi
24774
24775
24776         ;;
24777 esac
24778 if test "x$gethostbyaddrrstyle" = "x"; then
24779         cat >conftest.$ac_ext <<_ACEOF
24780 /* confdefs.h.  */
24781 _ACEOF
24782 cat confdefs.h >>conftest.$ac_ext
24783 cat >>conftest.$ac_ext <<_ACEOF
24784 /* end confdefs.h.  */
24785
24786 #include <stdio.h>
24787 #include <netdb.h>
24788
24789 int
24790 main ()
24791 {
24792  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
24793   ;
24794   return 0;
24795 }
24796 _ACEOF
24797 rm -f conftest.$ac_objext conftest$ac_exeext
24798 if { (ac_try="$ac_link"
24799 case "(($ac_try" in
24800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24801   *) ac_try_echo=$ac_try;;
24802 esac
24803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24804   (eval "$ac_link") 2>conftest.er1
24805   ac_status=$?
24806   grep -v '^ *+' conftest.er1 >conftest.err
24807   rm -f conftest.er1
24808   cat conftest.err >&5
24809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24810   (exit $ac_status); } && {
24811          test -z "$ac_c_werror_flag" ||
24812          test ! -s conftest.err
24813        } && test -s conftest$ac_exeext &&
24814        $as_test_x conftest$ac_exeext; then
24815
24816
24817 cat >>confdefs.h <<\_ACEOF
24818 #define GETHOSTBYADDRRSTYLE GNUSTYLE
24819 _ACEOF
24820
24821         gethostbyaddrrstyle=GNU
24822
24823 else
24824   echo "$as_me: failed program was:" >&5
24825 sed 's/^/| /' conftest.$ac_ext >&5
24826
24827
24828 fi
24829
24830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24831       conftest$ac_exeext conftest.$ac_ext
24832 fi
24833 if test "x$gethostbyaddrrstyle" = "x"; then
24834         cat >conftest.$ac_ext <<_ACEOF
24835 /* confdefs.h.  */
24836 _ACEOF
24837 cat confdefs.h >>conftest.$ac_ext
24838 cat >>conftest.$ac_ext <<_ACEOF
24839 /* end confdefs.h.  */
24840
24841 #include <stdio.h>
24842 #include <netdb.h>
24843
24844 int
24845 main ()
24846 {
24847  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
24848   ;
24849   return 0;
24850 }
24851 _ACEOF
24852 rm -f conftest.$ac_objext conftest$ac_exeext
24853 if { (ac_try="$ac_link"
24854 case "(($ac_try" in
24855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24856   *) ac_try_echo=$ac_try;;
24857 esac
24858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24859   (eval "$ac_link") 2>conftest.er1
24860   ac_status=$?
24861   grep -v '^ *+' conftest.er1 >conftest.err
24862   rm -f conftest.er1
24863   cat conftest.err >&5
24864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24865   (exit $ac_status); } && {
24866          test -z "$ac_c_werror_flag" ||
24867          test ! -s conftest.err
24868        } && test -s conftest$ac_exeext &&
24869        $as_test_x conftest$ac_exeext; then
24870
24871
24872 cat >>confdefs.h <<\_ACEOF
24873 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
24874 _ACEOF
24875
24876                 gethostbyaddrrstyle=SYSV
24877
24878 else
24879   echo "$as_me: failed program was:" >&5
24880 sed 's/^/| /' conftest.$ac_ext >&5
24881
24882
24883 fi
24884
24885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24886       conftest$ac_exeext conftest.$ac_ext
24887 fi
24888 if test "x$gethostbyaddrrstyle" = "x"; then
24889         cat >conftest.$ac_ext <<_ACEOF
24890 /* confdefs.h.  */
24891 _ACEOF
24892 cat confdefs.h >>conftest.$ac_ext
24893 cat >>conftest.$ac_ext <<_ACEOF
24894 /* end confdefs.h.  */
24895
24896 #include <stdio.h>
24897 #include <netdb.h>
24898
24899 int
24900 main ()
24901 {
24902  gethostbyaddr(NULL, 0, 0)
24903   ;
24904   return 0;
24905 }
24906 _ACEOF
24907 rm -f conftest.$ac_objext conftest$ac_exeext
24908 if { (ac_try="$ac_link"
24909 case "(($ac_try" in
24910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24911   *) ac_try_echo=$ac_try;;
24912 esac
24913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24914   (eval "$ac_link") 2>conftest.er1
24915   ac_status=$?
24916   grep -v '^ *+' conftest.er1 >conftest.err
24917   rm -f conftest.er1
24918   cat conftest.err >&5
24919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24920   (exit $ac_status); } && {
24921          test -z "$ac_c_werror_flag" ||
24922          test ! -s conftest.err
24923        } && test -s conftest$ac_exeext &&
24924        $as_test_x conftest$ac_exeext; then
24925
24926
24927 cat >>confdefs.h <<\_ACEOF
24928 #define GETHOSTBYADDRRSTYLE BSDSTYLE
24929 _ACEOF
24930
24931                 gethostbyaddrrstyle=BSD
24932
24933 else
24934   echo "$as_me: failed program was:" >&5
24935 sed 's/^/| /' conftest.$ac_ext >&5
24936
24937
24938 fi
24939
24940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24941       conftest$ac_exeext conftest.$ac_ext
24942 fi
24943
24944 if test "x$gethostbyaddrrstyle" = "x"; then
24945         { echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
24946 echo "${ECHO_T}none!  It must not exist, here." >&6; }
24947 else
24948         { echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
24949 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6; }
24950 fi
24951
24952 if test "x$gethostbyaddrrstyle" = "xBSD"; then
24953         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
24954 echo "$as_me: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
24955 fi
24956
24957 gethostbynamerstyle=""
24958 { echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
24959 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6; }
24960 cat >conftest.$ac_ext <<_ACEOF
24961 /* confdefs.h.  */
24962 _ACEOF
24963 cat confdefs.h >>conftest.$ac_ext
24964 cat >>conftest.$ac_ext <<_ACEOF
24965 /* end confdefs.h.  */
24966
24967 #include <stdio.h>
24968 #include <netdb.h>
24969
24970 int
24971 main ()
24972 {
24973  gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
24974   ;
24975   return 0;
24976 }
24977 _ACEOF
24978 rm -f conftest.$ac_objext conftest$ac_exeext
24979 if { (ac_try="$ac_link"
24980 case "(($ac_try" in
24981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24982   *) ac_try_echo=$ac_try;;
24983 esac
24984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24985   (eval "$ac_link") 2>conftest.er1
24986   ac_status=$?
24987   grep -v '^ *+' conftest.er1 >conftest.err
24988   rm -f conftest.er1
24989   cat conftest.err >&5
24990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24991   (exit $ac_status); } && {
24992          test -z "$ac_c_werror_flag" ||
24993          test ! -s conftest.err
24994        } && test -s conftest$ac_exeext &&
24995        $as_test_x conftest$ac_exeext; then
24996
24997
24998 cat >>confdefs.h <<\_ACEOF
24999 #define GETHOSTBYNAMERSTYLE GNUSTYLE
25000 _ACEOF
25001
25002         gethostbynamerstyle=GNU
25003
25004 else
25005   echo "$as_me: failed program was:" >&5
25006 sed 's/^/| /' conftest.$ac_ext >&5
25007
25008
25009 fi
25010
25011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25012       conftest$ac_exeext conftest.$ac_ext
25013 if test "x$gethostbynamerstyle" = "x"; then
25014         cat >conftest.$ac_ext <<_ACEOF
25015 /* confdefs.h.  */
25016 _ACEOF
25017 cat confdefs.h >>conftest.$ac_ext
25018 cat >>conftest.$ac_ext <<_ACEOF
25019 /* end confdefs.h.  */
25020
25021 #include <stdio.h>
25022 #include <netdb.h>
25023
25024 int
25025 main ()
25026 {
25027  gethostbyname_r(NULL, NULL, NULL, 0, NULL)
25028   ;
25029   return 0;
25030 }
25031 _ACEOF
25032 rm -f conftest.$ac_objext conftest$ac_exeext
25033 if { (ac_try="$ac_link"
25034 case "(($ac_try" in
25035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25036   *) ac_try_echo=$ac_try;;
25037 esac
25038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25039   (eval "$ac_link") 2>conftest.er1
25040   ac_status=$?
25041   grep -v '^ *+' conftest.er1 >conftest.err
25042   rm -f conftest.er1
25043   cat conftest.err >&5
25044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25045   (exit $ac_status); } && {
25046          test -z "$ac_c_werror_flag" ||
25047          test ! -s conftest.err
25048        } && test -s conftest$ac_exeext &&
25049        $as_test_x conftest$ac_exeext; then
25050
25051
25052 cat >>confdefs.h <<\_ACEOF
25053 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
25054 _ACEOF
25055
25056                 gethostbynamerstyle=SYSV
25057
25058 else
25059   echo "$as_me: failed program was:" >&5
25060 sed 's/^/| /' conftest.$ac_ext >&5
25061
25062
25063 fi
25064
25065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25066       conftest$ac_exeext conftest.$ac_ext
25067 fi
25068 if test "x$gethostbynamerstyle" = "x"; then
25069         cat >conftest.$ac_ext <<_ACEOF
25070 /* confdefs.h.  */
25071 _ACEOF
25072 cat confdefs.h >>conftest.$ac_ext
25073 cat >>conftest.$ac_ext <<_ACEOF
25074 /* end confdefs.h.  */
25075
25076 #include <stdio.h>
25077 #include <netdb.h>
25078
25079 int
25080 main ()
25081 {
25082  gethostbyname(NULL)
25083   ;
25084   return 0;
25085 }
25086 _ACEOF
25087 rm -f conftest.$ac_objext conftest$ac_exeext
25088 if { (ac_try="$ac_link"
25089 case "(($ac_try" in
25090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25091   *) ac_try_echo=$ac_try;;
25092 esac
25093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25094   (eval "$ac_link") 2>conftest.er1
25095   ac_status=$?
25096   grep -v '^ *+' conftest.er1 >conftest.err
25097   rm -f conftest.er1
25098   cat conftest.err >&5
25099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25100   (exit $ac_status); } && {
25101          test -z "$ac_c_werror_flag" ||
25102          test ! -s conftest.err
25103        } && test -s conftest$ac_exeext &&
25104        $as_test_x conftest$ac_exeext; then
25105
25106
25107 cat >>confdefs.h <<\_ACEOF
25108 #define GETHOSTBYNAMERSTYLE BSDSTYLE
25109 _ACEOF
25110
25111                 gethostbynamerstyle=BSD
25112
25113 else
25114   echo "$as_me: failed program was:" >&5
25115 sed 's/^/| /' conftest.$ac_ext >&5
25116
25117
25118 fi
25119
25120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25121       conftest$ac_exeext conftest.$ac_ext
25122 fi
25123
25124 if test "x$gethostbynamerstyle" = "x"; then
25125         { echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
25126 echo "${ECHO_T}none!  It must not exist, here." >&6; }
25127 else
25128         { echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
25129 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6; }
25130 fi
25131
25132 if test "x$gethostbynamerstyle" = "xBSD"; then
25133         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
25134 echo "$as_me: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
25135 fi
25136
25137
25138 cat >>confdefs.h <<\_ACEOF
25139 #define POSIXSTYLE 1
25140 _ACEOF
25141
25142
25143 cat >>confdefs.h <<\_ACEOF
25144 #define SOLARISSTYLE 2
25145 _ACEOF
25146
25147 ctimerstyle=""
25148 { echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
25149 echo $ECHO_N "checking ctime_r() syntax... $ECHO_C" >&6; }
25150 cat >conftest.$ac_ext <<_ACEOF
25151 /* confdefs.h.  */
25152 _ACEOF
25153 cat confdefs.h >>conftest.$ac_ext
25154 cat >>conftest.$ac_ext <<_ACEOF
25155 /* end confdefs.h.  */
25156
25157 #include <time.h>
25158
25159 int
25160 main ()
25161 {
25162  ctime_r(NULL, NULL, 0)
25163   ;
25164   return 0;
25165 }
25166 _ACEOF
25167 rm -f conftest.$ac_objext conftest$ac_exeext
25168 if { (ac_try="$ac_link"
25169 case "(($ac_try" in
25170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25171   *) ac_try_echo=$ac_try;;
25172 esac
25173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25174   (eval "$ac_link") 2>conftest.er1
25175   ac_status=$?
25176   grep -v '^ *+' conftest.er1 >conftest.err
25177   rm -f conftest.er1
25178   cat conftest.err >&5
25179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25180   (exit $ac_status); } && {
25181          test -z "$ac_c_werror_flag" ||
25182          test ! -s conftest.err
25183        } && test -s conftest$ac_exeext &&
25184        $as_test_x conftest$ac_exeext; then
25185
25186
25187 cat >>confdefs.h <<\_ACEOF
25188 #define CTIMERSTYLE SOLARISSTYLE
25189 _ACEOF
25190
25191         ctimerstyle="SOLARIS"
25192
25193 else
25194   echo "$as_me: failed program was:" >&5
25195 sed 's/^/| /' conftest.$ac_ext >&5
25196
25197
25198 fi
25199
25200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25201       conftest$ac_exeext conftest.$ac_ext
25202 if test "x$ctimerstyle" = "x"; then
25203         cat >conftest.$ac_ext <<_ACEOF
25204 /* confdefs.h.  */
25205 _ACEOF
25206 cat confdefs.h >>conftest.$ac_ext
25207 cat >>conftest.$ac_ext <<_ACEOF
25208 /* end confdefs.h.  */
25209
25210 #include <time.h>
25211
25212 int
25213 main ()
25214 {
25215  ctime_r(NULL, NULL)
25216   ;
25217   return 0;
25218 }
25219 _ACEOF
25220 rm -f conftest.$ac_objext conftest$ac_exeext
25221 if { (ac_try="$ac_link"
25222 case "(($ac_try" in
25223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25224   *) ac_try_echo=$ac_try;;
25225 esac
25226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25227   (eval "$ac_link") 2>conftest.er1
25228   ac_status=$?
25229   grep -v '^ *+' conftest.er1 >conftest.err
25230   rm -f conftest.er1
25231   cat conftest.err >&5
25232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25233   (exit $ac_status); } && {
25234          test -z "$ac_c_werror_flag" ||
25235          test ! -s conftest.err
25236        } && test -s conftest$ac_exeext &&
25237        $as_test_x conftest$ac_exeext; then
25238
25239
25240 cat >>confdefs.h <<\_ACEOF
25241 #define CTIMERSTYLE POSIXSTYLE
25242 _ACEOF
25243
25244                 ctimerstyle="POSIX"
25245
25246 else
25247   echo "$as_me: failed program was:" >&5
25248 sed 's/^/| /' conftest.$ac_ext >&5
25249
25250
25251 fi
25252
25253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25254       conftest$ac_exeext conftest.$ac_ext
25255 fi
25256
25257 if test "x$ctimerstyle" = "x"; then
25258         { echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
25259 echo "${ECHO_T}none!  It must not exist, here." >&6; }
25260 else
25261         { echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
25262 echo "${ECHO_T}${ctimerstyle}-style" >&6; }
25263 fi
25264
25265 HOSTINFO=$host
25266
25267
25268
25269 top_builddir=`pwd`
25270 export top_builddir
25271 { echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
25272 echo "${ECHO_T}top_builddir=$top_builddir" >&6; }
25273
25274
25275
25276
25277
25278 mysubdirs="$LIBLTDLPATH"
25279 if test "x$EXPERIMENTAL" = "xyes"; then
25280   bar=`ls -1 "${srcdir}"/src/modules/rlm_*/configure | sed 's%/configure%%'`
25281     mysubdirs=`echo $mysubdirs $bar`
25282 else
25283         for bar in `cat "${srcdir}"/src/modules/stable`; do
25284     if test -f "${srcdir}"/src/modules/$bar/configure; then
25285       mysubdirs="$mysubdirs src/modules/$bar"
25286     fi
25287   done
25288 fi
25289
25290 if test "x$EXPERIMENTAL" = "xyes"; then
25291   for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
25292     MODULES="$MODULES $foo"
25293   done
25294 else
25295             for foo in `cat "${srcdir}"/src/modules/stable`; do
25296     MODULES="$MODULES $foo"
25297    done
25298 fi
25299
25300 subdirs="$subdirs $LTDL_SUBDIRS $mysubdirs"
25301
25302
25303
25304
25305 ac_config_commands="$ac_config_commands stamp-h"
25306
25307 ac_config_commands="$ac_config_commands build-radpaths-h"
25308
25309 ac_config_commands="$ac_config_commands main-chmod"
25310
25311 ac_config_commands="$ac_config_commands scripts-chmod"
25312
25313
25314
25315
25316
25317 USE_SHARED_LIBS=$enable_shared
25318
25319 USE_STATIC_LIBS=$enable_static
25320
25321
25322
25323
25324
25325
25326
25327   unset ac_cv_env_LIBS_set
25328   unset ac_cv_env_LIBS_value
25329
25330   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/check-radiusd-config ./scripts/radiusd.cron.daily ./scripts/radiusd.cron.monthly ./scripts/cryptpasswd ./raddb/dictionary ./raddb/radiusd.conf ./raddb/vmpsd.conf ./raddb/radrelay.conf"
25331
25332 cat >confcache <<\_ACEOF
25333 # This file is a shell script that caches the results of configure
25334 # tests run on this system so they can be shared between configure
25335 # scripts and configure runs, see configure's option --config-cache.
25336 # It is not useful on other systems.  If it contains results you don't
25337 # want to keep, you may remove or edit it.
25338 #
25339 # config.status only pays attention to the cache file if you give it
25340 # the --recheck option to rerun configure.
25341 #
25342 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25343 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25344 # following values.
25345
25346 _ACEOF
25347
25348 # The following way of writing the cache mishandles newlines in values,
25349 # but we know of no workaround that is simple, portable, and efficient.
25350 # So, we kill variables containing newlines.
25351 # Ultrix sh set writes to stderr and can't be redirected directly,
25352 # and sets the high bit in the cache file unless we assign to the vars.
25353 (
25354   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25355     eval ac_val=\$$ac_var
25356     case $ac_val in #(
25357     *${as_nl}*)
25358       case $ac_var in #(
25359       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25360 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25361       esac
25362       case $ac_var in #(
25363       _ | IFS | as_nl) ;; #(
25364       *) $as_unset $ac_var ;;
25365       esac ;;
25366     esac
25367   done
25368
25369   (set) 2>&1 |
25370     case $as_nl`(ac_space=' '; set) 2>&1` in #(
25371     *${as_nl}ac_space=\ *)
25372       # `set' does not quote correctly, so add quotes (double-quote
25373       # substitution turns \\\\ into \\, and sed turns \\ into \).
25374       sed -n \
25375         "s/'/'\\\\''/g;
25376           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25377       ;; #(
25378     *)
25379       # `set' quotes correctly as required by POSIX, so do not add quotes.
25380       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25381       ;;
25382     esac |
25383     sort
25384 ) |
25385   sed '
25386      /^ac_cv_env_/b end
25387      t clear
25388      :clear
25389      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25390      t end
25391      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25392      :end' >>confcache
25393 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25394   if test -w "$cache_file"; then
25395     test "x$cache_file" != "x/dev/null" &&
25396       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25397 echo "$as_me: updating cache $cache_file" >&6;}
25398     cat confcache >$cache_file
25399   else
25400     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25401 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25402   fi
25403 fi
25404 rm -f confcache
25405
25406 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25407 # Let make expand exec_prefix.
25408 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25409
25410 DEFS=-DHAVE_CONFIG_H
25411
25412 ac_libobjs=
25413 ac_ltlibobjs=
25414 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25415   # 1. Remove the extension, and $U if already installed.
25416   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25417   ac_i=`echo "$ac_i" | sed "$ac_script"`
25418   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
25419   #    will be set to the directory where LIBOBJS objects are built.
25420   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25421   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25422 done
25423 LIBOBJS=$ac_libobjs
25424
25425 LTLIBOBJS=$ac_ltlibobjs
25426
25427
25428
25429 : ${CONFIG_STATUS=./config.status}
25430 ac_clean_files_save=$ac_clean_files
25431 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25432 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25433 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25434 cat >$CONFIG_STATUS <<_ACEOF
25435 #! $SHELL
25436 # Generated by $as_me.
25437 # Run this file to recreate the current configuration.
25438 # Compiler output produced by configure, useful for debugging
25439 # configure, is in config.log if it exists.
25440
25441 debug=false
25442 ac_cs_recheck=false
25443 ac_cs_silent=false
25444 SHELL=\${CONFIG_SHELL-$SHELL}
25445 _ACEOF
25446
25447 cat >>$CONFIG_STATUS <<\_ACEOF
25448 ## --------------------- ##
25449 ## M4sh Initialization.  ##
25450 ## --------------------- ##
25451
25452 # Be more Bourne compatible
25453 DUALCASE=1; export DUALCASE # for MKS sh
25454 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25455   emulate sh
25456   NULLCMD=:
25457   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25458   # is contrary to our usage.  Disable this feature.
25459   alias -g '${1+"$@"}'='"$@"'
25460   setopt NO_GLOB_SUBST
25461 else
25462   case `(set -o) 2>/dev/null` in
25463   *posix*) set -o posix ;;
25464 esac
25465
25466 fi
25467
25468
25469
25470
25471 # PATH needs CR
25472 # Avoid depending upon Character Ranges.
25473 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25474 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25475 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25476 as_cr_digits='0123456789'
25477 as_cr_alnum=$as_cr_Letters$as_cr_digits
25478
25479 # The user is always right.
25480 if test "${PATH_SEPARATOR+set}" != set; then
25481   echo "#! /bin/sh" >conf$$.sh
25482   echo  "exit 0"   >>conf$$.sh
25483   chmod +x conf$$.sh
25484   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25485     PATH_SEPARATOR=';'
25486   else
25487     PATH_SEPARATOR=:
25488   fi
25489   rm -f conf$$.sh
25490 fi
25491
25492 # Support unset when possible.
25493 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25494   as_unset=unset
25495 else
25496   as_unset=false
25497 fi
25498
25499
25500 # IFS
25501 # We need space, tab and new line, in precisely that order.  Quoting is
25502 # there to prevent editors from complaining about space-tab.
25503 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25504 # splitting by setting IFS to empty value.)
25505 as_nl='
25506 '
25507 IFS=" ""        $as_nl"
25508
25509 # Find who we are.  Look in the path if we contain no directory separator.
25510 case $0 in
25511   *[\\/]* ) as_myself=$0 ;;
25512   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25513 for as_dir in $PATH
25514 do
25515   IFS=$as_save_IFS
25516   test -z "$as_dir" && as_dir=.
25517   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25518 done
25519 IFS=$as_save_IFS
25520
25521      ;;
25522 esac
25523 # We did not find ourselves, most probably we were run as `sh COMMAND'
25524 # in which case we are not to be found in the path.
25525 if test "x$as_myself" = x; then
25526   as_myself=$0
25527 fi
25528 if test ! -f "$as_myself"; then
25529   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25530   { (exit 1); exit 1; }
25531 fi
25532
25533 # Work around bugs in pre-3.0 UWIN ksh.
25534 for as_var in ENV MAIL MAILPATH
25535 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25536 done
25537 PS1='$ '
25538 PS2='> '
25539 PS4='+ '
25540
25541 # NLS nuisances.
25542 for as_var in \
25543   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25544   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25545   LC_TELEPHONE LC_TIME
25546 do
25547   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25548     eval $as_var=C; export $as_var
25549   else
25550     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25551   fi
25552 done
25553
25554 # Required to use basename.
25555 if expr a : '\(a\)' >/dev/null 2>&1 &&
25556    test "X`expr 00001 : '.*\(...\)'`" = X001; then
25557   as_expr=expr
25558 else
25559   as_expr=false
25560 fi
25561
25562 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25563   as_basename=basename
25564 else
25565   as_basename=false
25566 fi
25567
25568
25569 # Name of the executable.
25570 as_me=`$as_basename -- "$0" ||
25571 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25572          X"$0" : 'X\(//\)$' \| \
25573          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25574 echo X/"$0" |
25575     sed '/^.*\/\([^/][^/]*\)\/*$/{
25576             s//\1/
25577             q
25578           }
25579           /^X\/\(\/\/\)$/{
25580             s//\1/
25581             q
25582           }
25583           /^X\/\(\/\).*/{
25584             s//\1/
25585             q
25586           }
25587           s/.*/./; q'`
25588
25589 # CDPATH.
25590 $as_unset CDPATH
25591
25592
25593
25594   as_lineno_1=$LINENO
25595   as_lineno_2=$LINENO
25596   test "x$as_lineno_1" != "x$as_lineno_2" &&
25597   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25598
25599   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25600   # uniformly replaced by the line number.  The first 'sed' inserts a
25601   # line-number line after each line using $LINENO; the second 'sed'
25602   # does the real work.  The second script uses 'N' to pair each
25603   # line-number line with the line containing $LINENO, and appends
25604   # trailing '-' during substitution so that $LINENO is not a special
25605   # case at line end.
25606   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25607   # scripts with optimization help from Paolo Bonzini.  Blame Lee
25608   # E. McMahon (1931-1989) for sed's syntax.  :-)
25609   sed -n '
25610     p
25611     /[$]LINENO/=
25612   ' <$as_myself |
25613     sed '
25614       s/[$]LINENO.*/&-/
25615       t lineno
25616       b
25617       :lineno
25618       N
25619       :loop
25620       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25621       t loop
25622       s/-\n.*//
25623     ' >$as_me.lineno &&
25624   chmod +x "$as_me.lineno" ||
25625     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25626    { (exit 1); exit 1; }; }
25627
25628   # Don't try to exec as it changes $[0], causing all sort of problems
25629   # (the dirname of $[0] is not the place where we might find the
25630   # original and so on.  Autoconf is especially sensitive to this).
25631   . "./$as_me.lineno"
25632   # Exit status is that of the last command.
25633   exit
25634 }
25635
25636
25637 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25638   as_dirname=dirname
25639 else
25640   as_dirname=false
25641 fi
25642
25643 ECHO_C= ECHO_N= ECHO_T=
25644 case `echo -n x` in
25645 -n*)
25646   case `echo 'x\c'` in
25647   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
25648   *)   ECHO_C='\c';;
25649   esac;;
25650 *)
25651   ECHO_N='-n';;
25652 esac
25653
25654 if expr a : '\(a\)' >/dev/null 2>&1 &&
25655    test "X`expr 00001 : '.*\(...\)'`" = X001; then
25656   as_expr=expr
25657 else
25658   as_expr=false
25659 fi
25660
25661 rm -f conf$$ conf$$.exe conf$$.file
25662 if test -d conf$$.dir; then
25663   rm -f conf$$.dir/conf$$.file
25664 else
25665   rm -f conf$$.dir
25666   mkdir conf$$.dir
25667 fi
25668 echo >conf$$.file
25669 if ln -s conf$$.file conf$$ 2>/dev/null; then
25670   as_ln_s='ln -s'
25671   # ... but there are two gotchas:
25672   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25673   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25674   # In both cases, we have to default to `cp -p'.
25675   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25676     as_ln_s='cp -p'
25677 elif ln conf$$.file conf$$ 2>/dev/null; then
25678   as_ln_s=ln
25679 else
25680   as_ln_s='cp -p'
25681 fi
25682 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25683 rmdir conf$$.dir 2>/dev/null
25684
25685 if mkdir -p . 2>/dev/null; then
25686   as_mkdir_p=:
25687 else
25688   test -d ./-p && rmdir ./-p
25689   as_mkdir_p=false
25690 fi
25691
25692 if test -x / >/dev/null 2>&1; then
25693   as_test_x='test -x'
25694 else
25695   if ls -dL / >/dev/null 2>&1; then
25696     as_ls_L_option=L
25697   else
25698     as_ls_L_option=
25699   fi
25700   as_test_x='
25701     eval sh -c '\''
25702       if test -d "$1"; then
25703         test -d "$1/.";
25704       else
25705         case $1 in
25706         -*)set "./$1";;
25707         esac;
25708         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25709         ???[sx]*):;;*)false;;esac;fi
25710     '\'' sh
25711   '
25712 fi
25713 as_executable_p=$as_test_x
25714
25715 # Sed expression to map a string onto a valid CPP name.
25716 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25717
25718 # Sed expression to map a string onto a valid variable name.
25719 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25720
25721
25722 exec 6>&1
25723
25724 # Save the log message, to keep $[0] and so on meaningful, and to
25725 # report actual input values of CONFIG_FILES etc. instead of their
25726 # values after options handling.
25727 ac_log="
25728 This file was extended by $as_me, which was
25729 generated by GNU Autoconf 2.61.  Invocation command line was
25730
25731   CONFIG_FILES    = $CONFIG_FILES
25732   CONFIG_HEADERS  = $CONFIG_HEADERS
25733   CONFIG_LINKS    = $CONFIG_LINKS
25734   CONFIG_COMMANDS = $CONFIG_COMMANDS
25735   $ $0 $@
25736
25737 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25738 "
25739
25740 _ACEOF
25741
25742 cat >>$CONFIG_STATUS <<_ACEOF
25743 # Files that config.status was made for.
25744 config_files="$ac_config_files"
25745 config_headers="$ac_config_headers"
25746 config_commands="$ac_config_commands"
25747
25748 _ACEOF
25749
25750 cat >>$CONFIG_STATUS <<\_ACEOF
25751 ac_cs_usage="\
25752 \`$as_me' instantiates files from templates according to the
25753 current configuration.
25754
25755 Usage: $0 [OPTIONS] [FILE]...
25756
25757   -h, --help       print this help, then exit
25758   -V, --version    print version number and configuration settings, then exit
25759   -q, --quiet      do not print progress messages
25760   -d, --debug      don't remove temporary files
25761       --recheck    update $as_me by reconfiguring in the same conditions
25762   --file=FILE[:TEMPLATE]
25763                    instantiate the configuration file FILE
25764   --header=FILE[:TEMPLATE]
25765                    instantiate the configuration header FILE
25766
25767 Configuration files:
25768 $config_files
25769
25770 Configuration headers:
25771 $config_headers
25772
25773 Configuration commands:
25774 $config_commands
25775
25776 Report bugs to <bug-autoconf@gnu.org>."
25777
25778 _ACEOF
25779 cat >>$CONFIG_STATUS <<_ACEOF
25780 ac_cs_version="\\
25781 config.status
25782 configured by $0, generated by GNU Autoconf 2.61,
25783   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25784
25785 Copyright (C) 2006 Free Software Foundation, Inc.
25786 This config.status script is free software; the Free Software Foundation
25787 gives unlimited permission to copy, distribute and modify it."
25788
25789 ac_pwd='$ac_pwd'
25790 srcdir='$srcdir'
25791 _ACEOF
25792
25793 cat >>$CONFIG_STATUS <<\_ACEOF
25794 # If no file are specified by the user, then we need to provide default
25795 # value.  By we need to know if files were specified by the user.
25796 ac_need_defaults=:
25797 while test $# != 0
25798 do
25799   case $1 in
25800   --*=*)
25801     ac_option=`expr "X$1" : 'X\([^=]*\)='`
25802     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25803     ac_shift=:
25804     ;;
25805   *)
25806     ac_option=$1
25807     ac_optarg=$2
25808     ac_shift=shift
25809     ;;
25810   esac
25811
25812   case $ac_option in
25813   # Handling of the options.
25814   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25815     ac_cs_recheck=: ;;
25816   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25817     echo "$ac_cs_version"; exit ;;
25818   --debug | --debu | --deb | --de | --d | -d )
25819     debug=: ;;
25820   --file | --fil | --fi | --f )
25821     $ac_shift
25822     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25823     ac_need_defaults=false;;
25824   --header | --heade | --head | --hea )
25825     $ac_shift
25826     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25827     ac_need_defaults=false;;
25828   --he | --h)
25829     # Conflict between --help and --header
25830     { echo "$as_me: error: ambiguous option: $1
25831 Try \`$0 --help' for more information." >&2
25832    { (exit 1); exit 1; }; };;
25833   --help | --hel | -h )
25834     echo "$ac_cs_usage"; exit ;;
25835   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25836   | -silent | --silent | --silen | --sile | --sil | --si | --s)
25837     ac_cs_silent=: ;;
25838
25839   # This is an error.
25840   -*) { echo "$as_me: error: unrecognized option: $1
25841 Try \`$0 --help' for more information." >&2
25842    { (exit 1); exit 1; }; } ;;
25843
25844   *) ac_config_targets="$ac_config_targets $1"
25845      ac_need_defaults=false ;;
25846
25847   esac
25848   shift
25849 done
25850
25851 ac_configure_extra_args=
25852
25853 if $ac_cs_silent; then
25854   exec 6>/dev/null
25855   ac_configure_extra_args="$ac_configure_extra_args --silent"
25856 fi
25857
25858 _ACEOF
25859 cat >>$CONFIG_STATUS <<_ACEOF
25860 if \$ac_cs_recheck; then
25861   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25862   CONFIG_SHELL=$SHELL
25863   export CONFIG_SHELL
25864   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25865 fi
25866
25867 _ACEOF
25868 cat >>$CONFIG_STATUS <<\_ACEOF
25869 exec 5>>config.log
25870 {
25871   echo
25872   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25873 ## Running $as_me. ##
25874 _ASBOX
25875   echo "$ac_log"
25876 } >&5
25877
25878 _ACEOF
25879 cat >>$CONFIG_STATUS <<_ACEOF
25880 _ACEOF
25881
25882 cat >>$CONFIG_STATUS <<\_ACEOF
25883
25884 # Handling of arguments.
25885 for ac_config_target in $ac_config_targets
25886 do
25887   case $ac_config_target in
25888     "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
25889     "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
25890     "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
25891     "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
25892     "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
25893     "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
25894     "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
25895     "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
25896     "./src/main/checkrad.pl") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
25897     "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
25898     "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
25899     "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
25900     "./scripts/radwatch") CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
25901     "./scripts/check-radiusd-config") CONFIG_FILES="$CONFIG_FILES ./scripts/check-radiusd-config" ;;
25902     "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
25903     "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
25904     "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
25905     "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
25906     "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
25907     "./raddb/vmpsd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/vmpsd.conf" ;;
25908     "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
25909
25910   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25911 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25912    { (exit 1); exit 1; }; };;
25913   esac
25914 done
25915
25916
25917 # If the user did not use the arguments to specify the items to instantiate,
25918 # then the envvar interface is used.  Set only those that are not.
25919 # We use the long form for the default assignment because of an extremely
25920 # bizarre bug on SunOS 4.1.3.
25921 if $ac_need_defaults; then
25922   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25923   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25924   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25925 fi
25926
25927 # Have a temporary directory for convenience.  Make it in the build tree
25928 # simply because there is no reason against having it here, and in addition,
25929 # creating and moving files from /tmp can sometimes cause problems.
25930 # Hook for its removal unless debugging.
25931 # Note that there is a small window in which the directory will not be cleaned:
25932 # after its creation but before its name has been assigned to `$tmp'.
25933 $debug ||
25934 {
25935   tmp=
25936   trap 'exit_status=$?
25937   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25938 ' 0
25939   trap '{ (exit 1); exit 1; }' 1 2 13 15
25940 }
25941 # Create a (secure) tmp directory for tmp files.
25942
25943 {
25944   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25945   test -n "$tmp" && test -d "$tmp"
25946 }  ||
25947 {
25948   tmp=./conf$$-$RANDOM
25949   (umask 077 && mkdir "$tmp")
25950 } ||
25951 {
25952    echo "$me: cannot create a temporary directory in ." >&2
25953    { (exit 1); exit 1; }
25954 }
25955
25956 #
25957 # Set up the sed scripts for CONFIG_FILES section.
25958 #
25959
25960 # No need to generate the scripts if there are no CONFIG_FILES.
25961 # This happens for instance when ./config.status config.h
25962 if test -n "$CONFIG_FILES"; then
25963
25964 _ACEOF
25965
25966
25967
25968 ac_delim='%!_!# '
25969 for ac_last_try in false false false false false :; do
25970   cat >conf$$subs.sed <<_ACEOF
25971 SHELL!$SHELL$ac_delim
25972 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25973 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25974 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25975 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25976 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25977 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25978 exec_prefix!$exec_prefix$ac_delim
25979 prefix!$prefix$ac_delim
25980 program_transform_name!$program_transform_name$ac_delim
25981 bindir!$bindir$ac_delim
25982 sbindir!$sbindir$ac_delim
25983 libexecdir!$libexecdir$ac_delim
25984 datarootdir!$datarootdir$ac_delim
25985 datadir!$datadir$ac_delim
25986 sysconfdir!$sysconfdir$ac_delim
25987 sharedstatedir!$sharedstatedir$ac_delim
25988 localstatedir!$localstatedir$ac_delim
25989 includedir!$includedir$ac_delim
25990 oldincludedir!$oldincludedir$ac_delim
25991 docdir!$docdir$ac_delim
25992 infodir!$infodir$ac_delim
25993 htmldir!$htmldir$ac_delim
25994 dvidir!$dvidir$ac_delim
25995 pdfdir!$pdfdir$ac_delim
25996 psdir!$psdir$ac_delim
25997 libdir!$libdir$ac_delim
25998 localedir!$localedir$ac_delim
25999 mandir!$mandir$ac_delim
26000 DEFS!$DEFS$ac_delim
26001 ECHO_C!$ECHO_C$ac_delim
26002 ECHO_N!$ECHO_N$ac_delim
26003 ECHO_T!$ECHO_T$ac_delim
26004 LIBS!$LIBS$ac_delim
26005 build_alias!$build_alias$ac_delim
26006 host_alias!$host_alias$ac_delim
26007 target_alias!$target_alias$ac_delim
26008 CC!$CC$ac_delim
26009 CFLAGS!$CFLAGS$ac_delim
26010 LDFLAGS!$LDFLAGS$ac_delim
26011 CPPFLAGS!$CPPFLAGS$ac_delim
26012 ac_ct_CC!$ac_ct_CC$ac_delim
26013 EXEEXT!$EXEEXT$ac_delim
26014 OBJEXT!$OBJEXT$ac_delim
26015 CXX!$CXX$ac_delim
26016 CXXFLAGS!$CXXFLAGS$ac_delim
26017 ac_ct_CXX!$ac_ct_CXX$ac_delim
26018 CPP!$CPP$ac_delim
26019 GREP!$GREP$ac_delim
26020 EGREP!$EGREP$ac_delim
26021 RANLIB!$RANLIB$ac_delim
26022 GMAKE!$GMAKE$ac_delim
26023 MAKE!$MAKE$ac_delim
26024 LTDL_SUBDIRS!$LTDL_SUBDIRS$ac_delim
26025 LIBTOOL!$LIBTOOL$ac_delim
26026 build!$build$ac_delim
26027 build_cpu!$build_cpu$ac_delim
26028 build_vendor!$build_vendor$ac_delim
26029 build_os!$build_os$ac_delim
26030 host!$host$ac_delim
26031 host_cpu!$host_cpu$ac_delim
26032 host_vendor!$host_vendor$ac_delim
26033 host_os!$host_os$ac_delim
26034 LN_S!$LN_S$ac_delim
26035 ECHO!$ECHO$ac_delim
26036 AR!$AR$ac_delim
26037 STRIP!$STRIP$ac_delim
26038 CXXCPP!$CXXCPP$ac_delim
26039 F77!$F77$ac_delim
26040 FFLAGS!$FFLAGS$ac_delim
26041 ac_ct_F77!$ac_ct_F77$ac_delim
26042 logdir!$logdir$ac_delim
26043 radacctdir!$radacctdir$ac_delim
26044 raddbdir!$raddbdir$ac_delim
26045 PERL!$PERL$ac_delim
26046 SNMPGET!$SNMPGET$ac_delim
26047 SNMPWALK!$SNMPWALK$ac_delim
26048 RUSERS!$RUSERS$ac_delim
26049 ACLOCAL!$ACLOCAL$ac_delim
26050 AUTOCONF!$AUTOCONF$ac_delim
26051 AUTOHEADER!$AUTOHEADER$ac_delim
26052 LOCATE!$LOCATE$ac_delim
26053 DIRNAME!$DIRNAME$ac_delim
26054 REGEX!$REGEX$ac_delim
26055 REGEX_EXTENDED!$REGEX_EXTENDED$ac_delim
26056 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
26057 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
26058 PCAP_LIBS!$PCAP_LIBS$ac_delim
26059 LIBPREFIX!$LIBPREFIX$ac_delim
26060 CRYPTLIB!$CRYPTLIB$ac_delim
26061 SNMP_LIBS!$SNMP_LIBS$ac_delim
26062 SNMP_INCLUDE!$SNMP_INCLUDE$ac_delim
26063 HOSTINFO!$HOSTINFO$ac_delim
26064 LIBLTDL!$LIBLTDL$ac_delim
26065 INCLTDL!$INCLTDL$ac_delim
26066 subdirs!$subdirs$ac_delim
26067 MODULES!$MODULES$ac_delim
26068 _ACEOF
26069
26070   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26071     break
26072   elif $ac_last_try; then
26073     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26074 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26075    { (exit 1); exit 1; }; }
26076   else
26077     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26078   fi
26079 done
26080
26081 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26082 if test -n "$ac_eof"; then
26083   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26084   ac_eof=`expr $ac_eof + 1`
26085 fi
26086
26087 cat >>$CONFIG_STATUS <<_ACEOF
26088 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26089 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26090 _ACEOF
26091 sed '
26092 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26093 s/^/s,@/; s/!/@,|#_!!_#|/
26094 :n
26095 t n
26096 s/'"$ac_delim"'$/,g/; t
26097 s/$/\\/; p
26098 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26099 ' >>$CONFIG_STATUS <conf$$subs.sed
26100 rm -f conf$$subs.sed
26101 cat >>$CONFIG_STATUS <<_ACEOF
26102 CEOF$ac_eof
26103 _ACEOF
26104
26105
26106 ac_delim='%!_!# '
26107 for ac_last_try in false false false false false :; do
26108   cat >conf$$subs.sed <<_ACEOF
26109 INSTALLSTRIP!$INSTALLSTRIP$ac_delim
26110 USE_SHARED_LIBS!$USE_SHARED_LIBS$ac_delim
26111 USE_STATIC_LIBS!$USE_STATIC_LIBS$ac_delim
26112 STATIC_MODULES!$STATIC_MODULES$ac_delim
26113 RADIUSD_MAJOR_VERSION!$RADIUSD_MAJOR_VERSION$ac_delim
26114 RADIUSD_MINOR_VERSION!$RADIUSD_MINOR_VERSION$ac_delim
26115 RADIUSD_VERSION!$RADIUSD_VERSION$ac_delim
26116 LIBOBJS!$LIBOBJS$ac_delim
26117 LTLIBOBJS!$LTLIBOBJS$ac_delim
26118 _ACEOF
26119
26120   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
26121     break
26122   elif $ac_last_try; then
26123     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26124 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26125    { (exit 1); exit 1; }; }
26126   else
26127     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26128   fi
26129 done
26130
26131 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26132 if test -n "$ac_eof"; then
26133   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26134   ac_eof=`expr $ac_eof + 1`
26135 fi
26136
26137 cat >>$CONFIG_STATUS <<_ACEOF
26138 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26139 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26140 _ACEOF
26141 sed '
26142 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26143 s/^/s,@/; s/!/@,|#_!!_#|/
26144 :n
26145 t n
26146 s/'"$ac_delim"'$/,g/; t
26147 s/$/\\/; p
26148 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26149 ' >>$CONFIG_STATUS <conf$$subs.sed
26150 rm -f conf$$subs.sed
26151 cat >>$CONFIG_STATUS <<_ACEOF
26152 :end
26153 s/|#_!!_#|//g
26154 CEOF$ac_eof
26155 _ACEOF
26156
26157
26158 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26159 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26160 # trailing colons and then remove the whole line if VPATH becomes empty
26161 # (actually we leave an empty line to preserve line numbers).
26162 if test "x$srcdir" = x.; then
26163   ac_vpsub='/^[  ]*VPATH[        ]*=/{
26164 s/:*\$(srcdir):*/:/
26165 s/:*\${srcdir}:*/:/
26166 s/:*@srcdir@:*/:/
26167 s/^\([^=]*=[     ]*\):*/\1/
26168 s/:*$//
26169 s/^[^=]*=[       ]*$//
26170 }'
26171 fi
26172
26173 cat >>$CONFIG_STATUS <<\_ACEOF
26174 fi # test -n "$CONFIG_FILES"
26175
26176
26177 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
26178 do
26179   case $ac_tag in
26180   :[FHLC]) ac_mode=$ac_tag; continue;;
26181   esac
26182   case $ac_mode$ac_tag in
26183   :[FHL]*:*);;
26184   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26185 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26186    { (exit 1); exit 1; }; };;
26187   :[FH]-) ac_tag=-:-;;
26188   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26189   esac
26190   ac_save_IFS=$IFS
26191   IFS=:
26192   set x $ac_tag
26193   IFS=$ac_save_IFS
26194   shift
26195   ac_file=$1
26196   shift
26197
26198   case $ac_mode in
26199   :L) ac_source=$1;;
26200   :[FH])
26201     ac_file_inputs=
26202     for ac_f
26203     do
26204       case $ac_f in
26205       -) ac_f="$tmp/stdin";;
26206       *) # Look for the file first in the build tree, then in the source tree
26207          # (if the path is not absolute).  The absolute path cannot be DOS-style,
26208          # because $ac_f cannot contain `:'.
26209          test -f "$ac_f" ||
26210            case $ac_f in
26211            [\\/$]*) false;;
26212            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26213            esac ||
26214            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26215 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26216    { (exit 1); exit 1; }; };;
26217       esac
26218       ac_file_inputs="$ac_file_inputs $ac_f"
26219     done
26220
26221     # Let's still pretend it is `configure' which instantiates (i.e., don't
26222     # use $as_me), people would be surprised to read:
26223     #    /* config.h.  Generated by config.status.  */
26224     configure_input="Generated from "`IFS=:
26225           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26226     if test x"$ac_file" != x-; then
26227       configure_input="$ac_file.  $configure_input"
26228       { echo "$as_me:$LINENO: creating $ac_file" >&5
26229 echo "$as_me: creating $ac_file" >&6;}
26230     fi
26231
26232     case $ac_tag in
26233     *:-:* | *:-) cat >"$tmp/stdin";;
26234     esac
26235     ;;
26236   esac
26237
26238   ac_dir=`$as_dirname -- "$ac_file" ||
26239 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26240          X"$ac_file" : 'X\(//\)[^/]' \| \
26241          X"$ac_file" : 'X\(//\)$' \| \
26242          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26243 echo X"$ac_file" |
26244     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26245             s//\1/
26246             q
26247           }
26248           /^X\(\/\/\)[^/].*/{
26249             s//\1/
26250             q
26251           }
26252           /^X\(\/\/\)$/{
26253             s//\1/
26254             q
26255           }
26256           /^X\(\/\).*/{
26257             s//\1/
26258             q
26259           }
26260           s/.*/./; q'`
26261   { as_dir="$ac_dir"
26262   case $as_dir in #(
26263   -*) as_dir=./$as_dir;;
26264   esac
26265   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26266     as_dirs=
26267     while :; do
26268       case $as_dir in #(
26269       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26270       *) as_qdir=$as_dir;;
26271       esac
26272       as_dirs="'$as_qdir' $as_dirs"
26273       as_dir=`$as_dirname -- "$as_dir" ||
26274 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26275          X"$as_dir" : 'X\(//\)[^/]' \| \
26276          X"$as_dir" : 'X\(//\)$' \| \
26277          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26278 echo X"$as_dir" |
26279     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26280             s//\1/
26281             q
26282           }
26283           /^X\(\/\/\)[^/].*/{
26284             s//\1/
26285             q
26286           }
26287           /^X\(\/\/\)$/{
26288             s//\1/
26289             q
26290           }
26291           /^X\(\/\).*/{
26292             s//\1/
26293             q
26294           }
26295           s/.*/./; q'`
26296       test -d "$as_dir" && break
26297     done
26298     test -z "$as_dirs" || eval "mkdir $as_dirs"
26299   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26300 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26301    { (exit 1); exit 1; }; }; }
26302   ac_builddir=.
26303
26304 case "$ac_dir" in
26305 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26306 *)
26307   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26308   # A ".." for each directory in $ac_dir_suffix.
26309   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26310   case $ac_top_builddir_sub in
26311   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26312   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26313   esac ;;
26314 esac
26315 ac_abs_top_builddir=$ac_pwd
26316 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26317 # for backward compatibility:
26318 ac_top_builddir=$ac_top_build_prefix
26319
26320 case $srcdir in
26321   .)  # We are building in place.
26322     ac_srcdir=.
26323     ac_top_srcdir=$ac_top_builddir_sub
26324     ac_abs_top_srcdir=$ac_pwd ;;
26325   [\\/]* | ?:[\\/]* )  # Absolute name.
26326     ac_srcdir=$srcdir$ac_dir_suffix;
26327     ac_top_srcdir=$srcdir
26328     ac_abs_top_srcdir=$srcdir ;;
26329   *) # Relative name.
26330     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26331     ac_top_srcdir=$ac_top_build_prefix$srcdir
26332     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26333 esac
26334 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26335
26336
26337   case $ac_mode in
26338   :F)
26339   #
26340   # CONFIG_FILE
26341   #
26342
26343 _ACEOF
26344
26345 cat >>$CONFIG_STATUS <<\_ACEOF
26346 # If the template does not know about datarootdir, expand it.
26347 # FIXME: This hack should be removed a few years after 2.60.
26348 ac_datarootdir_hack=; ac_datarootdir_seen=
26349
26350 case `sed -n '/datarootdir/ {
26351   p
26352   q
26353 }
26354 /@datadir@/p
26355 /@docdir@/p
26356 /@infodir@/p
26357 /@localedir@/p
26358 /@mandir@/p
26359 ' $ac_file_inputs` in
26360 *datarootdir*) ac_datarootdir_seen=yes;;
26361 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26362   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26363 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26364 _ACEOF
26365 cat >>$CONFIG_STATUS <<_ACEOF
26366   ac_datarootdir_hack='
26367   s&@datadir@&$datadir&g
26368   s&@docdir@&$docdir&g
26369   s&@infodir@&$infodir&g
26370   s&@localedir@&$localedir&g
26371   s&@mandir@&$mandir&g
26372     s&\\\${datarootdir}&$datarootdir&g' ;;
26373 esac
26374 _ACEOF
26375
26376 # Neutralize VPATH when `$srcdir' = `.'.
26377 # Shell code in configure.ac might set extrasub.
26378 # FIXME: do we really want to maintain this feature?
26379 cat >>$CONFIG_STATUS <<_ACEOF
26380   sed "$ac_vpsub
26381 $extrasub
26382 _ACEOF
26383 cat >>$CONFIG_STATUS <<\_ACEOF
26384 :t
26385 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26386 s&@configure_input@&$configure_input&;t t
26387 s&@top_builddir@&$ac_top_builddir_sub&;t t
26388 s&@srcdir@&$ac_srcdir&;t t
26389 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26390 s&@top_srcdir@&$ac_top_srcdir&;t t
26391 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26392 s&@builddir@&$ac_builddir&;t t
26393 s&@abs_builddir@&$ac_abs_builddir&;t t
26394 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26395 $ac_datarootdir_hack
26396 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
26397
26398 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26399   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26400   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26401   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26402 which seems to be undefined.  Please make sure it is defined." >&5
26403 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26404 which seems to be undefined.  Please make sure it is defined." >&2;}
26405
26406   rm -f "$tmp/stdin"
26407   case $ac_file in
26408   -) cat "$tmp/out"; rm -f "$tmp/out";;
26409   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26410   esac
26411  ;;
26412   :H)
26413   #
26414   # CONFIG_HEADER
26415   #
26416 _ACEOF
26417
26418 # Transform confdefs.h into a sed script `conftest.defines', that
26419 # substitutes the proper values into config.h.in to produce config.h.
26420 rm -f conftest.defines conftest.tail
26421 # First, append a space to every undef/define line, to ease matching.
26422 echo 's/$/ /' >conftest.defines
26423 # Then, protect against being on the right side of a sed subst, or in
26424 # an unquoted here document, in config.status.  If some macros were
26425 # called several times there might be several #defines for the same
26426 # symbol, which is useless.  But do not sort them, since the last
26427 # AC_DEFINE must be honored.
26428 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26429 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26430 # NAME is the cpp macro being defined, VALUE is the value it is being given.
26431 # PARAMS is the parameter list in the macro definition--in most cases, it's
26432 # just an empty string.
26433 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
26434 ac_dB='\\)[      (].*,\\1define\\2'
26435 ac_dC=' '
26436 ac_dD=' ,'
26437
26438 uniq confdefs.h |
26439   sed -n '
26440         t rset
26441         :rset
26442         s/^[     ]*#[    ]*define[       ][      ]*//
26443         t ok
26444         d
26445         :ok
26446         s/[\\&,]/\\&/g
26447         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26448         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26449   ' >>conftest.defines
26450
26451 # Remove the space that was appended to ease matching.
26452 # Then replace #undef with comments.  This is necessary, for
26453 # example, in the case of _POSIX_SOURCE, which is predefined and required
26454 # on some systems where configure will not decide to define it.
26455 # (The regexp can be short, since the line contains either #define or #undef.)
26456 echo 's/ $//
26457 s,^[     #]*u.*,/* & */,' >>conftest.defines
26458
26459 # Break up conftest.defines:
26460 ac_max_sed_lines=50
26461
26462 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26463 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26464 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26465 # et cetera.
26466 ac_in='$ac_file_inputs'
26467 ac_out='"$tmp/out1"'
26468 ac_nxt='"$tmp/out2"'
26469
26470 while :
26471 do
26472   # Write a here document:
26473     cat >>$CONFIG_STATUS <<_ACEOF
26474     # First, check the format of the line:
26475     cat >"\$tmp/defines.sed" <<\\CEOF
26476 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
26477 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
26478 b
26479 :def
26480 _ACEOF
26481   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
26482   echo 'CEOF
26483     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
26484   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
26485   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
26486   grep . conftest.tail >/dev/null || break
26487   rm -f conftest.defines
26488   mv conftest.tail conftest.defines
26489 done
26490 rm -f conftest.defines conftest.tail
26491
26492 echo "ac_result=$ac_in" >>$CONFIG_STATUS
26493 cat >>$CONFIG_STATUS <<\_ACEOF
26494   if test x"$ac_file" != x-; then
26495     echo "/* $configure_input  */" >"$tmp/config.h"
26496     cat "$ac_result" >>"$tmp/config.h"
26497     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
26498       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26499 echo "$as_me: $ac_file is unchanged" >&6;}
26500     else
26501       rm -f $ac_file
26502       mv "$tmp/config.h" $ac_file
26503     fi
26504   else
26505     echo "/* $configure_input  */"
26506     cat "$ac_result"
26507   fi
26508   rm -f "$tmp/out12"
26509  ;;
26510
26511   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
26512 echo "$as_me: executing $ac_file commands" >&6;}
26513  ;;
26514   esac
26515
26516
26517   case $ac_file$ac_mode in
26518     "stamp-h":C) echo timestamp > src/include/stamp-h ;;
26519     "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
26520     "main-chmod":C) (cd ./src/main   && chmod +x checkrad.pl radlast radtest) ;;
26521     "scripts-chmod":C) (cd ./scripts    && chmod +x rc.radiusd radwatch check-radiusd-config radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
26522
26523   esac
26524 done # for ac_tag
26525
26526
26527 { (exit 0); exit 0; }
26528 _ACEOF
26529 chmod +x $CONFIG_STATUS
26530 ac_clean_files=$ac_clean_files_save
26531
26532
26533 # configure is writing to config.log, and then calls config.status.
26534 # config.status does its own redirection, appending to config.log.
26535 # Unfortunately, on DOS this fails, as config.log is still kept open
26536 # by configure, so config.status won't be able to write to it; its
26537 # output is simply discarded.  So we exec the FD to /dev/null,
26538 # effectively closing config.log, so it can be properly (re)opened and
26539 # appended to by config.status.  When coming back to configure, we
26540 # need to make the FD available again.
26541 if test "$no_create" != yes; then
26542   ac_cs_success=:
26543   ac_config_status_args=
26544   test "$silent" = yes &&
26545     ac_config_status_args="$ac_config_status_args --quiet"
26546   exec 5>/dev/null
26547   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26548   exec 5>>config.log
26549   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26550   # would make configure fail if this is the last instruction.
26551   $ac_cs_success || { (exit 1); exit 1; }
26552 fi
26553
26554 #
26555 # CONFIG_SUBDIRS section.
26556 #
26557 if test "$no_recursion" != yes; then
26558
26559   # Remove --cache-file and --srcdir arguments so they do not pile up.
26560   ac_sub_configure_args=
26561   ac_prev=
26562   eval "set x $ac_configure_args"
26563   shift
26564   for ac_arg
26565   do
26566     if test -n "$ac_prev"; then
26567       ac_prev=
26568       continue
26569     fi
26570     case $ac_arg in
26571     -cache-file | --cache-file | --cache-fil | --cache-fi \
26572     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
26573       ac_prev=cache_file ;;
26574     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
26575     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
26576     | --c=*)
26577       ;;
26578     --config-cache | -C)
26579       ;;
26580     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
26581       ac_prev=srcdir ;;
26582     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
26583       ;;
26584     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
26585       ac_prev=prefix ;;
26586     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
26587       ;;
26588     *)
26589       case $ac_arg in
26590       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
26591       esac
26592       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
26593     esac
26594   done
26595
26596   # Always prepend --prefix to ensure using the same prefix
26597   # in subdir configurations.
26598   ac_arg="--prefix=$prefix"
26599   case $ac_arg in
26600   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
26601   esac
26602   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
26603
26604   # Pass --silent
26605   if test "$silent" = yes; then
26606     ac_sub_configure_args="--silent $ac_sub_configure_args"
26607   fi
26608
26609   ac_popdir=`pwd`
26610   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
26611
26612     # Do not complain, so a configure script can configure whichever
26613     # parts of a large source tree are present.
26614     test -d "$srcdir/$ac_dir" || continue
26615
26616     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
26617     echo "$as_me:$LINENO: $ac_msg" >&5
26618     echo "$ac_msg" >&6
26619     { as_dir="$ac_dir"
26620   case $as_dir in #(
26621   -*) as_dir=./$as_dir;;
26622   esac
26623   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26624     as_dirs=
26625     while :; do
26626       case $as_dir in #(
26627       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26628       *) as_qdir=$as_dir;;
26629       esac
26630       as_dirs="'$as_qdir' $as_dirs"
26631       as_dir=`$as_dirname -- "$as_dir" ||
26632 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26633          X"$as_dir" : 'X\(//\)[^/]' \| \
26634          X"$as_dir" : 'X\(//\)$' \| \
26635          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26636 echo X"$as_dir" |
26637     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26638             s//\1/
26639             q
26640           }
26641           /^X\(\/\/\)[^/].*/{
26642             s//\1/
26643             q
26644           }
26645           /^X\(\/\/\)$/{
26646             s//\1/
26647             q
26648           }
26649           /^X\(\/\).*/{
26650             s//\1/
26651             q
26652           }
26653           s/.*/./; q'`
26654       test -d "$as_dir" && break
26655     done
26656     test -z "$as_dirs" || eval "mkdir $as_dirs"
26657   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26658 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26659    { (exit 1); exit 1; }; }; }
26660     ac_builddir=.
26661
26662 case "$ac_dir" in
26663 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26664 *)
26665   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26666   # A ".." for each directory in $ac_dir_suffix.
26667   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26668   case $ac_top_builddir_sub in
26669   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26670   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26671   esac ;;
26672 esac
26673 ac_abs_top_builddir=$ac_pwd
26674 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26675 # for backward compatibility:
26676 ac_top_builddir=$ac_top_build_prefix
26677
26678 case $srcdir in
26679   .)  # We are building in place.
26680     ac_srcdir=.
26681     ac_top_srcdir=$ac_top_builddir_sub
26682     ac_abs_top_srcdir=$ac_pwd ;;
26683   [\\/]* | ?:[\\/]* )  # Absolute name.
26684     ac_srcdir=$srcdir$ac_dir_suffix;
26685     ac_top_srcdir=$srcdir
26686     ac_abs_top_srcdir=$srcdir ;;
26687   *) # Relative name.
26688     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26689     ac_top_srcdir=$ac_top_build_prefix$srcdir
26690     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26691 esac
26692 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26693
26694
26695     cd "$ac_dir"
26696
26697     # Check for guested configure; otherwise get Cygnus style configure.
26698     if test -f "$ac_srcdir/configure.gnu"; then
26699       ac_sub_configure=$ac_srcdir/configure.gnu
26700     elif test -f "$ac_srcdir/configure"; then
26701       ac_sub_configure=$ac_srcdir/configure
26702     elif test -f "$ac_srcdir/configure.in"; then
26703       # This should be Cygnus configure.
26704       ac_sub_configure=$ac_aux_dir/configure
26705     else
26706       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
26707 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
26708       ac_sub_configure=
26709     fi
26710
26711     # The recursion is here.
26712     if test -n "$ac_sub_configure"; then
26713       # Make the cache file name correct relative to the subdirectory.
26714       case $cache_file in
26715       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
26716       *) # Relative name.
26717         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
26718       esac
26719
26720       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
26721 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
26722       # The eval makes quoting arguments work.
26723       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
26724            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
26725         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
26726 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
26727    { (exit 1); exit 1; }; }
26728     fi
26729
26730     cd "$ac_popdir"
26731   done
26732 fi
26733
26734