import from branch_1_1:
[freeradius.git] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.229 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
5 #
6 # Copyright (C) 2003 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23 DUALCASE=1; export DUALCASE # for MKS sh
24
25 # Support unset when possible.
26 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27   as_unset=unset
28 else
29   as_unset=false
30 fi
31
32
33 # Work around bugs in pre-3.0 UWIN ksh.
34 $as_unset ENV MAIL MAILPATH
35 PS1='$ '
36 PS2='> '
37 PS4='+ '
38
39 # NLS nuisances.
40 for as_var in \
41   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43   LC_TELEPHONE LC_TIME
44 do
45   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
46     eval $as_var=C; export $as_var
47   else
48     $as_unset $as_var
49   fi
50 done
51
52 # Required to use basename.
53 if expr a : '\(a\)' >/dev/null 2>&1; then
54   as_expr=expr
55 else
56   as_expr=false
57 fi
58
59 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
60   as_basename=basename
61 else
62   as_basename=false
63 fi
64
65
66 # Name of the executable.
67 as_me=`$as_basename "$0" ||
68 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69          X"$0" : 'X\(//\)$' \| \
70          X"$0" : 'X\(/\)$' \| \
71          .     : '\(.\)' 2>/dev/null ||
72 echo X/"$0" |
73     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74           /^X\/\(\/\/\)$/{ s//\1/; q; }
75           /^X\/\(\/\).*/{ s//\1/; q; }
76           s/.*/./; q'`
77
78
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
86
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89   echo "#! /bin/sh" >conf$$.sh
90   echo  "exit 0"   >>conf$$.sh
91   chmod +x conf$$.sh
92   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
93     PATH_SEPARATOR=';'
94   else
95     PATH_SEPARATOR=:
96   fi
97   rm -f conf$$.sh
98 fi
99
100
101   as_lineno_1=$LINENO
102   as_lineno_2=$LINENO
103   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104   test "x$as_lineno_1" != "x$as_lineno_2" &&
105   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
106   # Find who we are.  Look in the path if we contain no path at all
107   # relative or not.
108   case $0 in
109     *[\\/]* ) as_myself=$0 ;;
110     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111 for as_dir in $PATH
112 do
113   IFS=$as_save_IFS
114   test -z "$as_dir" && as_dir=.
115   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 done
117
118        ;;
119   esac
120   # We did not find ourselves, most probably we were run as `sh COMMAND'
121   # in which case we are not to be found in the path.
122   if test "x$as_myself" = x; then
123     as_myself=$0
124   fi
125   if test ! -f "$as_myself"; then
126     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127    { (exit 1); exit 1; }; }
128   fi
129   case $CONFIG_SHELL in
130   '')
131     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 do
134   IFS=$as_save_IFS
135   test -z "$as_dir" && as_dir=.
136   for as_base in sh bash ksh sh5; do
137          case $as_dir in
138          /*)
139            if ("$as_dir/$as_base" -c '
140   as_lineno_1=$LINENO
141   as_lineno_2=$LINENO
142   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143   test "x$as_lineno_1" != "x$as_lineno_2" &&
144   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
145              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147              CONFIG_SHELL=$as_dir/$as_base
148              export CONFIG_SHELL
149              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
150            fi;;
151          esac
152        done
153 done
154 ;;
155   esac
156
157   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158   # uniformly replaced by the line number.  The first 'sed' inserts a
159   # line-number line before each line; the second 'sed' does the real
160   # work.  The second script uses 'N' to pair each line-number line
161   # with the numbered line, and appends trailing '-' during
162   # substitution so that $LINENO is not a special case at line end.
163   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
165   sed '=' <$as_myself |
166     sed '
167       N
168       s,$,-,
169       : loop
170       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
171       t loop
172       s,-$,,
173       s,^['$as_cr_digits']*\n,,
174     ' >$as_me.lineno &&
175   chmod +x $as_me.lineno ||
176     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177    { (exit 1); exit 1; }; }
178
179   # Don't try to exec as it changes $[0], causing all sort of problems
180   # (the dirname of $[0] is not the place where we might find the
181   # original and so on.  Autoconf is especially sensible to this).
182   . ./$as_me.lineno
183   # Exit status is that of the last command.
184   exit
185 }
186
187
188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189   *c*,-n*) ECHO_N= ECHO_C='
190 ' ECHO_T='      ' ;;
191   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
193 esac
194
195 if expr a : '\(a\)' >/dev/null 2>&1; then
196   as_expr=expr
197 else
198   as_expr=false
199 fi
200
201 rm -f conf$$ conf$$.exe conf$$.file
202 echo >conf$$.file
203 if ln -s conf$$.file conf$$ 2>/dev/null; then
204   # We could just check for DJGPP; but this test a) works b) is more generic
205   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206   if test -f conf$$.exe; then
207     # Don't use ln at all; we don't have any links
208     as_ln_s='cp -p'
209   else
210     as_ln_s='ln -s'
211   fi
212 elif ln conf$$.file conf$$ 2>/dev/null; then
213   as_ln_s=ln
214 else
215   as_ln_s='cp -p'
216 fi
217 rm -f conf$$ conf$$.exe conf$$.file
218
219 if mkdir -p . 2>/dev/null; then
220   as_mkdir_p=:
221 else
222   test -d ./-p && rmdir ./-p
223   as_mkdir_p=false
224 fi
225
226 as_executable_p="test -f"
227
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
233
234
235 # IFS
236 # We need space, tab and new line, in precisely that order.
237 as_nl='
238 '
239 IFS="   $as_nl"
240
241 # CDPATH.
242 $as_unset CDPATH
243
244
245
246 # Check that we are running under the correct shell.
247 SHELL=${CONFIG_SHELL-/bin/sh}
248
249 case X$ECHO in
250 X*--fallback-echo)
251   # Remove one level of quotation (which was required for Make).
252   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
253   ;;
254 esac
255
256 echo=${ECHO-echo}
257 if test "X$1" = X--no-reexec; then
258   # Discard the --no-reexec flag, and continue.
259   shift
260 elif test "X$1" = X--fallback-echo; then
261   # Avoid inline document here, it may be left over
262   :
263 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
264   # Yippee, $echo works!
265   :
266 else
267   # Restart under the correct shell.
268   exec $SHELL "$0" --no-reexec ${1+"$@"}
269 fi
270
271 if test "X$1" = X--fallback-echo; then
272   # used as fallback echo
273   shift
274   cat <<EOF
275 $*
276 EOF
277   exit 0
278 fi
279
280 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 # if CDPATH is set.
282 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
283
284 if test -z "$ECHO"; then
285 if test "X${echo_test_string+set}" != Xset; then
286 # find a string as large as possible, as long as the shell can cope with it
287   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
290        echo_test_string="`eval $cmd`" &&
291        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
292     then
293       break
294     fi
295   done
296 fi
297
298 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300    test "X$echo_testing_string" = "X$echo_test_string"; then
301   :
302 else
303   # The Solaris, AIX, and Digital Unix default echo programs unquote
304   # backslashes.  This makes it impossible to quote backslashes using
305   #   echo "$something" | sed 's/\\/\\\\/g'
306   #
307   # So, first we look for a working echo in the user's PATH.
308
309   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
310   for dir in $PATH /usr/ucb; do
311     IFS="$lt_save_ifs"
312     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315        test "X$echo_testing_string" = "X$echo_test_string"; then
316       echo="$dir/echo"
317       break
318     fi
319   done
320   IFS="$lt_save_ifs"
321
322   if test "X$echo" = Xecho; then
323     # We didn't find a better echo, so look for alternatives.
324     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326        test "X$echo_testing_string" = "X$echo_test_string"; then
327       # This shell has a builtin print -r that does the trick.
328       echo='print -r'
329     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330          test "X$CONFIG_SHELL" != X/bin/ksh; then
331       # If we have ksh, try running configure again with it.
332       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333       export ORIGINAL_CONFIG_SHELL
334       CONFIG_SHELL=/bin/ksh
335       export CONFIG_SHELL
336       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
337     else
338       # Try using printf.
339       echo='printf %s\n'
340       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342          test "X$echo_testing_string" = "X$echo_test_string"; then
343         # Cool, printf works
344         :
345       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346            test "X$echo_testing_string" = 'X\t' &&
347            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348            test "X$echo_testing_string" = "X$echo_test_string"; then
349         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350         export CONFIG_SHELL
351         SHELL="$CONFIG_SHELL"
352         export SHELL
353         echo="$CONFIG_SHELL $0 --fallback-echo"
354       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355            test "X$echo_testing_string" = 'X\t' &&
356            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357            test "X$echo_testing_string" = "X$echo_test_string"; then
358         echo="$CONFIG_SHELL $0 --fallback-echo"
359       else
360         # maybe with a smaller string...
361         prev=:
362
363         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
365           then
366             break
367           fi
368           prev="$cmd"
369         done
370
371         if test "$prev" != 'sed 50q "$0"'; then
372           echo_test_string=`eval $prev`
373           export echo_test_string
374           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375         else
376           # Oops.  We lost completely, so just stick with echo.
377           echo=echo
378         fi
379       fi
380     fi
381   fi
382 fi
383 fi
384
385 # Copy echo and quote the copy suitably for passing to libtool from
386 # the Makefile, instead of quoting the original, which is used later.
387 ECHO=$echo
388 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
390 fi
391
392
393
394
395 tagnames=${tagnames+${tagnames},}CXX
396
397 tagnames=${tagnames+${tagnames},}F77
398
399 # Name of the host.
400 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401 # so uname gets run too.
402 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403
404 exec 6>&1
405
406 #
407 # Initializations.
408 #
409 ac_default_prefix=/usr/local
410 ac_config_libobj_dir=.
411 cross_compiling=no
412 subdirs=
413 MFLAGS=
414 MAKEFLAGS=
415 SHELL=${CONFIG_SHELL-/bin/sh}
416
417 # Maximum number of lines to put in a shell here document.
418 # This variable seems obsolete.  It should probably be removed, and
419 # only ac_max_sed_lines should be used.
420 : ${ac_max_here_lines=38}
421
422 # Identity of this package.
423 PACKAGE_NAME=
424 PACKAGE_TARNAME=
425 PACKAGE_VERSION=
426 PACKAGE_STRING=
427 PACKAGE_BUGREPORT=
428
429 ac_unique_file="src/main/radiusd.c"
430 # Factoring default headers for most tests.
431 ac_includes_default="\
432 #include <stdio.h>
433 #if HAVE_SYS_TYPES_H
434 # include <sys/types.h>
435 #endif
436 #if HAVE_SYS_STAT_H
437 # include <sys/stat.h>
438 #endif
439 #if STDC_HEADERS
440 # include <stdlib.h>
441 # include <stddef.h>
442 #else
443 # if HAVE_STDLIB_H
444 #  include <stdlib.h>
445 # endif
446 #endif
447 #if HAVE_STRING_H
448 # if !STDC_HEADERS && HAVE_MEMORY_H
449 #  include <memory.h>
450 # endif
451 # include <string.h>
452 #endif
453 #if HAVE_STRINGS_H
454 # include <strings.h>
455 #endif
456 #if HAVE_INTTYPES_H
457 # include <inttypes.h>
458 #else
459 # if HAVE_STDINT_H
460 #  include <stdint.h>
461 # endif
462 #endif
463 #if HAVE_UNISTD_H
464 # include <unistd.h>
465 #endif"
466
467 ac_subdirs_all="$ac_subdirs_all $mysubdirs"
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP EGREP RANLIB ac_ct_RANLIB GMAKE MAKE LIBLTDLPATH LIBTOOL build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 logdir radacctdir raddbdir PERL SNMPGET SNMPWALK RUSERS ACLOCAL AUTOCONF AUTOHEADER LOCATE DIRNAME GREP REGEX REGEX_EXTENDED OPENSSL_INCLUDE OPENSSL_LIBS PCAP_LIBS LIBPREFIX CRYPTLIB SNMP_LIBS SNMP_INCLUDE HOSTINFO LIBLTDL INCLTDL subdirs MODULES INSTALLSTRIP USE_SHARED_LIBS USE_STATIC_LIBS STATIC_MODULES RADIUSD_MAJOR_VERSION RADIUSD_MINOR_VERSION RADIUSD_VERSION LIBOBJS LTLIBOBJS'
469 ac_subst_files=''
470
471 # Initialize some variables set by options.
472 ac_init_help=
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
476 cache_file=/dev/null
477 exec_prefix=NONE
478 no_create=
479 no_recursion=
480 prefix=NONE
481 program_prefix=NONE
482 program_suffix=NONE
483 program_transform_name=s,x,x,
484 silent=
485 site=
486 srcdir=
487 verbose=
488 x_includes=NONE
489 x_libraries=NONE
490
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
508
509 ac_prev=
510 for ac_option
511 do
512   # If the previous option needs an argument, assign it.
513   if test -n "$ac_prev"; then
514     eval "$ac_prev=\$ac_option"
515     ac_prev=
516     continue
517   fi
518
519   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521   # Accept the important Cygnus configure options, so we can diagnose typos.
522
523   case $ac_option in
524
525   -bindir | --bindir | --bindi | --bind | --bin | --bi)
526     ac_prev=bindir ;;
527   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528     bindir=$ac_optarg ;;
529
530   -build | --build | --buil | --bui | --bu)
531     ac_prev=build_alias ;;
532   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533     build_alias=$ac_optarg ;;
534
535   -cache-file | --cache-file | --cache-fil | --cache-fi \
536   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537     ac_prev=cache_file ;;
538   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540     cache_file=$ac_optarg ;;
541
542   --config-cache | -C)
543     cache_file=config.cache ;;
544
545   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546     ac_prev=datadir ;;
547   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548   | --da=*)
549     datadir=$ac_optarg ;;
550
551   -disable-* | --disable-*)
552     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553     # Reject names that are not valid shell variable names.
554     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556    { (exit 1); exit 1; }; }
557     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558     eval "enable_$ac_feature=no" ;;
559
560   -enable-* | --enable-*)
561     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562     # Reject names that are not valid shell variable names.
563     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565    { (exit 1); exit 1; }; }
566     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567     case $ac_option in
568       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569       *) ac_optarg=yes ;;
570     esac
571     eval "enable_$ac_feature='$ac_optarg'" ;;
572
573   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575   | --exec | --exe | --ex)
576     ac_prev=exec_prefix ;;
577   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579   | --exec=* | --exe=* | --ex=*)
580     exec_prefix=$ac_optarg ;;
581
582   -gas | --gas | --ga | --g)
583     # Obsolete; use --with-gas.
584     with_gas=yes ;;
585
586   -help | --help | --hel | --he | -h)
587     ac_init_help=long ;;
588   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589     ac_init_help=recursive ;;
590   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591     ac_init_help=short ;;
592
593   -host | --host | --hos | --ho)
594     ac_prev=host_alias ;;
595   -host=* | --host=* | --hos=* | --ho=*)
596     host_alias=$ac_optarg ;;
597
598   -includedir | --includedir | --includedi | --included | --include \
599   | --includ | --inclu | --incl | --inc)
600     ac_prev=includedir ;;
601   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602   | --includ=* | --inclu=* | --incl=* | --inc=*)
603     includedir=$ac_optarg ;;
604
605   -infodir | --infodir | --infodi | --infod | --info | --inf)
606     ac_prev=infodir ;;
607   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608     infodir=$ac_optarg ;;
609
610   -libdir | --libdir | --libdi | --libd)
611     ac_prev=libdir ;;
612   -libdir=* | --libdir=* | --libdi=* | --libd=*)
613     libdir=$ac_optarg ;;
614
615   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616   | --libexe | --libex | --libe)
617     ac_prev=libexecdir ;;
618   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619   | --libexe=* | --libex=* | --libe=*)
620     libexecdir=$ac_optarg ;;
621
622   -localstatedir | --localstatedir | --localstatedi | --localstated \
623   | --localstate | --localstat | --localsta | --localst \
624   | --locals | --local | --loca | --loc | --lo)
625     ac_prev=localstatedir ;;
626   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629     localstatedir=$ac_optarg ;;
630
631   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632     ac_prev=mandir ;;
633   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634     mandir=$ac_optarg ;;
635
636   -nfp | --nfp | --nf)
637     # Obsolete; use --without-fp.
638     with_fp=no ;;
639
640   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641   | --no-cr | --no-c | -n)
642     no_create=yes ;;
643
644   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646     no_recursion=yes ;;
647
648   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650   | --oldin | --oldi | --old | --ol | --o)
651     ac_prev=oldincludedir ;;
652   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655     oldincludedir=$ac_optarg ;;
656
657   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658     ac_prev=prefix ;;
659   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660     prefix=$ac_optarg ;;
661
662   -program-prefix | --program-prefix | --program-prefi | --program-pref \
663   | --program-pre | --program-pr | --program-p)
664     ac_prev=program_prefix ;;
665   -program-prefix=* | --program-prefix=* | --program-prefi=* \
666   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667     program_prefix=$ac_optarg ;;
668
669   -program-suffix | --program-suffix | --program-suffi | --program-suff \
670   | --program-suf | --program-su | --program-s)
671     ac_prev=program_suffix ;;
672   -program-suffix=* | --program-suffix=* | --program-suffi=* \
673   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674     program_suffix=$ac_optarg ;;
675
676   -program-transform-name | --program-transform-name \
677   | --program-transform-nam | --program-transform-na \
678   | --program-transform-n | --program-transform- \
679   | --program-transform | --program-transfor \
680   | --program-transfo | --program-transf \
681   | --program-trans | --program-tran \
682   | --progr-tra | --program-tr | --program-t)
683     ac_prev=program_transform_name ;;
684   -program-transform-name=* | --program-transform-name=* \
685   | --program-transform-nam=* | --program-transform-na=* \
686   | --program-transform-n=* | --program-transform-=* \
687   | --program-transform=* | --program-transfor=* \
688   | --program-transfo=* | --program-transf=* \
689   | --program-trans=* | --program-tran=* \
690   | --progr-tra=* | --program-tr=* | --program-t=*)
691     program_transform_name=$ac_optarg ;;
692
693   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694   | -silent | --silent | --silen | --sile | --sil)
695     silent=yes ;;
696
697   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698     ac_prev=sbindir ;;
699   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700   | --sbi=* | --sb=*)
701     sbindir=$ac_optarg ;;
702
703   -sharedstatedir | --sharedstatedir | --sharedstatedi \
704   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705   | --sharedst | --shareds | --shared | --share | --shar \
706   | --sha | --sh)
707     ac_prev=sharedstatedir ;;
708   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711   | --sha=* | --sh=*)
712     sharedstatedir=$ac_optarg ;;
713
714   -site | --site | --sit)
715     ac_prev=site ;;
716   -site=* | --site=* | --sit=*)
717     site=$ac_optarg ;;
718
719   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720     ac_prev=srcdir ;;
721   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722     srcdir=$ac_optarg ;;
723
724   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725   | --syscon | --sysco | --sysc | --sys | --sy)
726     ac_prev=sysconfdir ;;
727   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729     sysconfdir=$ac_optarg ;;
730
731   -target | --target | --targe | --targ | --tar | --ta | --t)
732     ac_prev=target_alias ;;
733   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734     target_alias=$ac_optarg ;;
735
736   -v | -verbose | --verbose | --verbos | --verbo | --verb)
737     verbose=yes ;;
738
739   -version | --version | --versio | --versi | --vers | -V)
740     ac_init_version=: ;;
741
742   -with-* | --with-*)
743     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744     # Reject names that are not valid shell variable names.
745     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746       { echo "$as_me: error: invalid package name: $ac_package" >&2
747    { (exit 1); exit 1; }; }
748     ac_package=`echo $ac_package| sed 's/-/_/g'`
749     case $ac_option in
750       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751       *) ac_optarg=yes ;;
752     esac
753     eval "with_$ac_package='$ac_optarg'" ;;
754
755   -without-* | --without-*)
756     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757     # Reject names that are not valid shell variable names.
758     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759       { echo "$as_me: error: invalid package name: $ac_package" >&2
760    { (exit 1); exit 1; }; }
761     ac_package=`echo $ac_package | sed 's/-/_/g'`
762     eval "with_$ac_package=no" ;;
763
764   --x)
765     # Obsolete; use --with-x.
766     with_x=yes ;;
767
768   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769   | --x-incl | --x-inc | --x-in | --x-i)
770     ac_prev=x_includes ;;
771   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773     x_includes=$ac_optarg ;;
774
775   -x-libraries | --x-libraries | --x-librarie | --x-librari \
776   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777     ac_prev=x_libraries ;;
778   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780     x_libraries=$ac_optarg ;;
781
782   -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784    { (exit 1); exit 1; }; }
785     ;;
786
787   *=*)
788     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789     # Reject names that are not valid shell variable names.
790     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792    { (exit 1); exit 1; }; }
793     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794     eval "$ac_envvar='$ac_optarg'"
795     export $ac_envvar ;;
796
797   *)
798     # FIXME: should be removed in autoconf 3.0.
799     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803     ;;
804
805   esac
806 done
807
808 if test -n "$ac_prev"; then
809   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810   { echo "$as_me: error: missing argument to $ac_option" >&2
811    { (exit 1); exit 1; }; }
812 fi
813
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
816 do
817   eval ac_val=$`echo $ac_var`
818   case $ac_val in
819     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821    { (exit 1); exit 1; }; };;
822   esac
823 done
824
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827               localstatedir libdir includedir oldincludedir infodir mandir
828 do
829   eval ac_val=$`echo $ac_var`
830   case $ac_val in
831     [\\/$]* | ?:[\\/]* ) ;;
832     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833    { (exit 1); exit 1; }; };;
834   esac
835 done
836
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
840 build=$build_alias
841 host=$host_alias
842 target=$target_alias
843
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846   if test "x$build_alias" = x; then
847     cross_compiling=maybe
848     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849     If a cross compiler is detected then cross compile mode will be used." >&2
850   elif test "x$build_alias" != "x$host_alias"; then
851     cross_compiling=yes
852   fi
853 fi
854
855 ac_tool_prefix=
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858 test "$silent" = yes && exec 6>/dev/null
859
860
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863   ac_srcdir_defaulted=yes
864   # Try the directory containing this script, then its parent.
865   ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867          X"$0" : 'X\(//\)[^/]' \| \
868          X"$0" : 'X\(//\)$' \| \
869          X"$0" : 'X\(/\)' \| \
870          .     : '\(.\)' 2>/dev/null ||
871 echo X"$0" |
872     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874           /^X\(\/\/\)$/{ s//\1/; q; }
875           /^X\(\/\).*/{ s//\1/; q; }
876           s/.*/./; q'`
877   srcdir=$ac_confdir
878   if test ! -r $srcdir/$ac_unique_file; then
879     srcdir=..
880   fi
881 else
882   ac_srcdir_defaulted=no
883 fi
884 if test ! -r $srcdir/$ac_unique_file; then
885   if test "$ac_srcdir_defaulted" = yes; then
886     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887    { (exit 1); exit 1; }; }
888   else
889     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890    { (exit 1); exit 1; }; }
891   fi
892 fi
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895    { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
910 ac_env_CC_value=$CC
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CXX_set=${CXX+set}
926 ac_env_CXX_value=$CXX
927 ac_cv_env_CXX_set=${CXX+set}
928 ac_cv_env_CXX_value=$CXX
929 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
930 ac_env_CXXFLAGS_value=$CXXFLAGS
931 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
932 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
933 ac_env_CPP_set=${CPP+set}
934 ac_env_CPP_value=$CPP
935 ac_cv_env_CPP_set=${CPP+set}
936 ac_cv_env_CPP_value=$CPP
937 ac_env_CXXCPP_set=${CXXCPP+set}
938 ac_env_CXXCPP_value=$CXXCPP
939 ac_cv_env_CXXCPP_set=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value=$CXXCPP
941 ac_env_F77_set=${F77+set}
942 ac_env_F77_value=$F77
943 ac_cv_env_F77_set=${F77+set}
944 ac_cv_env_F77_value=$F77
945 ac_env_FFLAGS_set=${FFLAGS+set}
946 ac_env_FFLAGS_value=$FFLAGS
947 ac_cv_env_FFLAGS_set=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value=$FFLAGS
949
950 #
951 # Report the --help message.
952 #
953 if test "$ac_init_help" = "long"; then
954   # Omit some internal or obsolete options to make the list less imposing.
955   # This message is too long to be a string in the A/UX 3.1 sh.
956   cat <<_ACEOF
957 \`configure' configures this package to adapt to many kinds of systems.
958
959 Usage: $0 [OPTION]... [VAR=VALUE]...
960
961 To assign environment variables (e.g., CC, CFLAGS...), specify them as
962 VAR=VALUE.  See below for descriptions of some of the useful variables.
963
964 Defaults for the options are specified in brackets.
965
966 Configuration:
967   -h, --help              display this help and exit
968       --help=short        display options specific to this package
969       --help=recursive    display the short help of all the included packages
970   -V, --version           display version information and exit
971   -q, --quiet, --silent   do not print \`checking...' messages
972       --cache-file=FILE   cache test results in FILE [disabled]
973   -C, --config-cache      alias for \`--cache-file=config.cache'
974   -n, --no-create         do not create output files
975       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
976
977 _ACEOF
978
979   cat <<_ACEOF
980 Installation directories:
981   --prefix=PREFIX         install architecture-independent files in PREFIX
982                           [$ac_default_prefix]
983   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
984                           [PREFIX]
985
986 By default, \`make install' will install all the files in
987 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
988 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989 for instance \`--prefix=\$HOME'.
990
991 For better control, use the options below.
992
993 Fine tuning of the installation directories:
994   --bindir=DIR           user executables [EPREFIX/bin]
995   --sbindir=DIR          system admin executables [EPREFIX/sbin]
996   --libexecdir=DIR       program executables [EPREFIX/libexec]
997   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
998   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
999   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1000   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1001   --libdir=DIR           object code libraries [EPREFIX/lib]
1002   --includedir=DIR       C header files [PREFIX/include]
1003   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1004   --infodir=DIR          info documentation [PREFIX/info]
1005   --mandir=DIR           man documentation [PREFIX/man]
1006 _ACEOF
1007
1008   cat <<\_ACEOF
1009
1010 System types:
1011   --build=BUILD     configure for building on BUILD [guessed]
1012   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1013 _ACEOF
1014 fi
1015
1016 if test -n "$ac_init_help"; then
1017
1018   cat <<\_ACEOF
1019
1020 Optional Features:
1021   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1022   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1023   --disable-largefile     omit support for large files
1024   --enable-shared[=PKGS]
1025                           build shared libraries [default=yes]
1026   --enable-static[=PKGS]
1027                           build static libraries [default=yes]
1028   --enable-fast-install[=PKGS]
1029                           optimize for fast installation [default=yes]
1030   --disable-libtool-lock  avoid locking (might break parallel builds)
1031   --enable-strict-dependencies  Fail configure on lack of module dependancy.
1032   --enable-developer               Enables features of interest to developers.
1033
1034 Optional Packages:
1035   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1036   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1037   --with-system-libtool              try to use libtool installed in your system default=use our own
1038   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1039   --with-pic              try to use only PIC/non-PIC objects [default=use
1040                           both]
1041   --with-tags[=TAGS]
1042                           include additional configurations [automatic]
1043   --with-logdir=DIR       Directory for logfiles LOCALSTATEDIR/log/radius
1044   --with-radacctdir=PATH  Directory for detail files LOGDIR/radacct
1045   --with-raddbdir=DIR     Directory for config files SYSCONFDIR/raddb
1046   --with-ascend-binary    Include support for Ascend binary filter attributes (default=yes)
1047   --with-threads          Use threads, if available.  (default=yes)
1048   --with-snmp             Compile in SNMP support. (default=yes)
1049   --with-static-modules=QUOTED-MODULE-LIST
1050   --with-experimental-modules      Use experimental and unstable modules. (default=no)
1051   --with-openssl-includes=DIR      Directory to look for OpenSSL include files
1052   --with-openssl-libraries=DIR     Directory to look for OpenSSL library files
1053   --with-rlm-FOO-lib-dir=DIR       Directory to look for library files used by module FOO
1054   --with-rlm-FOO-include-dir=DIR   Directory to look for include files used by module FOO
1055   --with-udpfromto        Compile in UDPFROMTO support. (default=no)
1056
1057 Some influential environment variables:
1058   CC          C compiler command
1059   CFLAGS      C compiler flags
1060   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1061               nonstandard directory <lib dir>
1062   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1063               headers in a nonstandard directory <include dir>
1064   CXX         C++ compiler command
1065   CXXFLAGS    C++ compiler flags
1066   CPP         C preprocessor
1067   CXXCPP      C++ preprocessor
1068   F77         Fortran 77 compiler command
1069   FFLAGS      Fortran 77 compiler flags
1070
1071 Use these variables to override the choices made by `configure' or to help
1072 it to find libraries and programs with nonstandard names/locations.
1073
1074 _ACEOF
1075 fi
1076
1077 if test "$ac_init_help" = "recursive"; then
1078   # If there are subdirs, report their specific --help.
1079   ac_popdir=`pwd`
1080   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1081     test -d $ac_dir || continue
1082     ac_builddir=.
1083
1084 if test "$ac_dir" != .; then
1085   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1086   # A "../" for each directory in $ac_dir_suffix.
1087   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1088 else
1089   ac_dir_suffix= ac_top_builddir=
1090 fi
1091
1092 case $srcdir in
1093   .)  # No --srcdir option.  We are building in place.
1094     ac_srcdir=.
1095     if test -z "$ac_top_builddir"; then
1096        ac_top_srcdir=.
1097     else
1098        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1099     fi ;;
1100   [\\/]* | ?:[\\/]* )  # Absolute path.
1101     ac_srcdir=$srcdir$ac_dir_suffix;
1102     ac_top_srcdir=$srcdir ;;
1103   *) # Relative path.
1104     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1105     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1106 esac
1107
1108 # Do not use `cd foo && pwd` to compute absolute paths, because
1109 # the directories may not exist.
1110 case `pwd` in
1111 .) ac_abs_builddir="$ac_dir";;
1112 *)
1113   case "$ac_dir" in
1114   .) ac_abs_builddir=`pwd`;;
1115   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1116   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1117   esac;;
1118 esac
1119 case $ac_abs_builddir in
1120 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1121 *)
1122   case ${ac_top_builddir}. in
1123   .) ac_abs_top_builddir=$ac_abs_builddir;;
1124   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1125   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1126   esac;;
1127 esac
1128 case $ac_abs_builddir in
1129 .) ac_abs_srcdir=$ac_srcdir;;
1130 *)
1131   case $ac_srcdir in
1132   .) ac_abs_srcdir=$ac_abs_builddir;;
1133   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1134   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1135   esac;;
1136 esac
1137 case $ac_abs_builddir in
1138 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1139 *)
1140   case $ac_top_srcdir in
1141   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1142   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1143   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1144   esac;;
1145 esac
1146
1147     cd $ac_dir
1148     # Check for guested configure; otherwise get Cygnus style configure.
1149     if test -f $ac_srcdir/configure.gnu; then
1150       echo
1151       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1152     elif test -f $ac_srcdir/configure; then
1153       echo
1154       $SHELL $ac_srcdir/configure  --help=recursive
1155     elif test -f $ac_srcdir/configure.ac ||
1156            test -f $ac_srcdir/configure.in; then
1157       echo
1158       $ac_configure --help
1159     else
1160       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1161     fi
1162     cd "$ac_popdir"
1163   done
1164 fi
1165
1166 test -n "$ac_init_help" && exit 0
1167 if $ac_init_version; then
1168   cat <<\_ACEOF
1169
1170 Copyright (C) 2003 Free Software Foundation, Inc.
1171 This configure script is free software; the Free Software Foundation
1172 gives unlimited permission to copy, distribute and modify it.
1173 _ACEOF
1174   exit 0
1175 fi
1176 exec 5>config.log
1177 cat >&5 <<_ACEOF
1178 This file contains any messages produced by compilers while
1179 running configure, to aid debugging if configure makes a mistake.
1180
1181 It was created by $as_me, which was
1182 generated by GNU Autoconf 2.59.  Invocation command line was
1183
1184   $ $0 $@
1185
1186 _ACEOF
1187 {
1188 cat <<_ASUNAME
1189 ## --------- ##
1190 ## Platform. ##
1191 ## --------- ##
1192
1193 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1194 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1195 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1196 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1197 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1198
1199 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1200 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1201
1202 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1203 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1204 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1205 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1206 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1207 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1208 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1209
1210 _ASUNAME
1211
1212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1213 for as_dir in $PATH
1214 do
1215   IFS=$as_save_IFS
1216   test -z "$as_dir" && as_dir=.
1217   echo "PATH: $as_dir"
1218 done
1219
1220 } >&5
1221
1222 cat >&5 <<_ACEOF
1223
1224
1225 ## ----------- ##
1226 ## Core tests. ##
1227 ## ----------- ##
1228
1229 _ACEOF
1230
1231
1232 # Keep a trace of the command line.
1233 # Strip out --no-create and --no-recursion so they do not pile up.
1234 # Strip out --silent because we don't want to record it for future runs.
1235 # Also quote any args containing shell meta-characters.
1236 # Make two passes to allow for proper duplicate-argument suppression.
1237 ac_configure_args=
1238 ac_configure_args0=
1239 ac_configure_args1=
1240 ac_sep=
1241 ac_must_keep_next=false
1242 for ac_pass in 1 2
1243 do
1244   for ac_arg
1245   do
1246     case $ac_arg in
1247     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1248     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1249     | -silent | --silent | --silen | --sile | --sil)
1250       continue ;;
1251     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1252       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1253     esac
1254     case $ac_pass in
1255     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1256     2)
1257       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1258       if test $ac_must_keep_next = true; then
1259         ac_must_keep_next=false # Got value, back to normal.
1260       else
1261         case $ac_arg in
1262           *=* | --config-cache | -C | -disable-* | --disable-* \
1263           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1264           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1265           | -with-* | --with-* | -without-* | --without-* | --x)
1266             case "$ac_configure_args0 " in
1267               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1268             esac
1269             ;;
1270           -* ) ac_must_keep_next=true ;;
1271         esac
1272       fi
1273       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1274       # Get rid of the leading space.
1275       ac_sep=" "
1276       ;;
1277     esac
1278   done
1279 done
1280 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1281 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1282
1283 # When interrupted or exit'd, cleanup temporary files, and complete
1284 # config.log.  We remove comments because anyway the quotes in there
1285 # would cause problems or look ugly.
1286 # WARNING: Be sure not to use single quotes in there, as some shells,
1287 # such as our DU 5.0 friend, will then `close' the trap.
1288 trap 'exit_status=$?
1289   # Save into config.log some information that might help in debugging.
1290   {
1291     echo
1292
1293     cat <<\_ASBOX
1294 ## ---------------- ##
1295 ## Cache variables. ##
1296 ## ---------------- ##
1297 _ASBOX
1298     echo
1299     # The following way of writing the cache mishandles newlines in values,
1300 {
1301   (set) 2>&1 |
1302     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1303     *ac_space=\ *)
1304       sed -n \
1305         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1306           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1307       ;;
1308     *)
1309       sed -n \
1310         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1311       ;;
1312     esac;
1313 }
1314     echo
1315
1316     cat <<\_ASBOX
1317 ## ----------------- ##
1318 ## Output variables. ##
1319 ## ----------------- ##
1320 _ASBOX
1321     echo
1322     for ac_var in $ac_subst_vars
1323     do
1324       eval ac_val=$`echo $ac_var`
1325       echo "$ac_var='"'"'$ac_val'"'"'"
1326     done | sort
1327     echo
1328
1329     if test -n "$ac_subst_files"; then
1330       cat <<\_ASBOX
1331 ## ------------- ##
1332 ## Output files. ##
1333 ## ------------- ##
1334 _ASBOX
1335       echo
1336       for ac_var in $ac_subst_files
1337       do
1338         eval ac_val=$`echo $ac_var`
1339         echo "$ac_var='"'"'$ac_val'"'"'"
1340       done | sort
1341       echo
1342     fi
1343
1344     if test -s confdefs.h; then
1345       cat <<\_ASBOX
1346 ## ----------- ##
1347 ## confdefs.h. ##
1348 ## ----------- ##
1349 _ASBOX
1350       echo
1351       sed "/^$/d" confdefs.h | sort
1352       echo
1353     fi
1354     test "$ac_signal" != 0 &&
1355       echo "$as_me: caught signal $ac_signal"
1356     echo "$as_me: exit $exit_status"
1357   } >&5
1358   rm -f core *.core &&
1359   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1360     exit $exit_status
1361      ' 0
1362 for ac_signal in 1 2 13 15; do
1363   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1364 done
1365 ac_signal=0
1366
1367 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1368 rm -rf conftest* confdefs.h
1369 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1370 echo >confdefs.h
1371
1372 # Predefined preprocessor variables.
1373
1374 cat >>confdefs.h <<_ACEOF
1375 #define PACKAGE_NAME "$PACKAGE_NAME"
1376 _ACEOF
1377
1378
1379 cat >>confdefs.h <<_ACEOF
1380 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1381 _ACEOF
1382
1383
1384 cat >>confdefs.h <<_ACEOF
1385 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1386 _ACEOF
1387
1388
1389 cat >>confdefs.h <<_ACEOF
1390 #define PACKAGE_STRING "$PACKAGE_STRING"
1391 _ACEOF
1392
1393
1394 cat >>confdefs.h <<_ACEOF
1395 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1396 _ACEOF
1397
1398
1399 # Let the site file select an alternate cache file if it wants to.
1400 # Prefer explicitly selected file to automatically selected ones.
1401 if test -z "$CONFIG_SITE"; then
1402   if test "x$prefix" != xNONE; then
1403     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1404   else
1405     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1406   fi
1407 fi
1408 for ac_site_file in $CONFIG_SITE; do
1409   if test -r "$ac_site_file"; then
1410     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1411 echo "$as_me: loading site script $ac_site_file" >&6;}
1412     sed 's/^/| /' "$ac_site_file" >&5
1413     . "$ac_site_file"
1414   fi
1415 done
1416
1417 if test -r "$cache_file"; then
1418   # Some versions of bash will fail to source /dev/null (special
1419   # files actually), so we avoid doing that.
1420   if test -f "$cache_file"; then
1421     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1422 echo "$as_me: loading cache $cache_file" >&6;}
1423     case $cache_file in
1424       [\\/]* | ?:[\\/]* ) . $cache_file;;
1425       *)                      . ./$cache_file;;
1426     esac
1427   fi
1428 else
1429   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1430 echo "$as_me: creating cache $cache_file" >&6;}
1431   >$cache_file
1432 fi
1433
1434 # Check that the precious variables saved in the cache have kept the same
1435 # value.
1436 ac_cache_corrupted=false
1437 for ac_var in `(set) 2>&1 |
1438                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1439   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1440   eval ac_new_set=\$ac_env_${ac_var}_set
1441   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1442   eval ac_new_val="\$ac_env_${ac_var}_value"
1443   case $ac_old_set,$ac_new_set in
1444     set,)
1445       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1446 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1447       ac_cache_corrupted=: ;;
1448     ,set)
1449       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1450 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1451       ac_cache_corrupted=: ;;
1452     ,);;
1453     *)
1454       if test "x$ac_old_val" != "x$ac_new_val"; then
1455         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1456 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1457         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1458 echo "$as_me:   former value:  $ac_old_val" >&2;}
1459         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1460 echo "$as_me:   current value: $ac_new_val" >&2;}
1461         ac_cache_corrupted=:
1462       fi;;
1463   esac
1464   # Pass precious variables to config.status.
1465   if test "$ac_new_set" = set; then
1466     case $ac_new_val in
1467     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1468       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1469     *) ac_arg=$ac_var=$ac_new_val ;;
1470     esac
1471     case " $ac_configure_args " in
1472       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1473       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1474     esac
1475   fi
1476 done
1477 if $ac_cache_corrupted; then
1478   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1479 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1480   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1481 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1482    { (exit 1); exit 1; }; }
1483 fi
1484
1485 ac_ext=c
1486 ac_cpp='$CPP $CPPFLAGS'
1487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509           ac_config_headers="$ac_config_headers src/include/autoconf.h"
1510
1511
1512 RADIUSD_MAJOR_VERSION=2
1513 RADIUSD_MINOR_VERSION=0.0-pre0
1514 RADIUSD_VERSION="${RADIUSD_MAJOR_VERSION}.${RADIUSD_MINOR_VERSION}"
1515 PACKAGE=freeradius
1516
1517
1518 ac_ext=c
1519 ac_cpp='$CPP $CPPFLAGS'
1520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1523 if test -n "$ac_tool_prefix"; then
1524   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1525 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1526 echo "$as_me:$LINENO: checking for $ac_word" >&5
1527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1528 if test "${ac_cv_prog_CC+set}" = set; then
1529   echo $ECHO_N "(cached) $ECHO_C" >&6
1530 else
1531   if test -n "$CC"; then
1532   ac_cv_prog_CC="$CC" # Let the user override the test.
1533 else
1534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1535 for as_dir in $PATH
1536 do
1537   IFS=$as_save_IFS
1538   test -z "$as_dir" && as_dir=.
1539   for ac_exec_ext in '' $ac_executable_extensions; do
1540   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1541     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1542     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1543     break 2
1544   fi
1545 done
1546 done
1547
1548 fi
1549 fi
1550 CC=$ac_cv_prog_CC
1551 if test -n "$CC"; then
1552   echo "$as_me:$LINENO: result: $CC" >&5
1553 echo "${ECHO_T}$CC" >&6
1554 else
1555   echo "$as_me:$LINENO: result: no" >&5
1556 echo "${ECHO_T}no" >&6
1557 fi
1558
1559 fi
1560 if test -z "$ac_cv_prog_CC"; then
1561   ac_ct_CC=$CC
1562   # Extract the first word of "gcc", so it can be a program name with args.
1563 set dummy gcc; ac_word=$2
1564 echo "$as_me:$LINENO: checking for $ac_word" >&5
1565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1566 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1567   echo $ECHO_N "(cached) $ECHO_C" >&6
1568 else
1569   if test -n "$ac_ct_CC"; then
1570   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1571 else
1572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1573 for as_dir in $PATH
1574 do
1575   IFS=$as_save_IFS
1576   test -z "$as_dir" && as_dir=.
1577   for ac_exec_ext in '' $ac_executable_extensions; do
1578   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1579     ac_cv_prog_ac_ct_CC="gcc"
1580     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1581     break 2
1582   fi
1583 done
1584 done
1585
1586 fi
1587 fi
1588 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1589 if test -n "$ac_ct_CC"; then
1590   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1591 echo "${ECHO_T}$ac_ct_CC" >&6
1592 else
1593   echo "$as_me:$LINENO: result: no" >&5
1594 echo "${ECHO_T}no" >&6
1595 fi
1596
1597   CC=$ac_ct_CC
1598 else
1599   CC="$ac_cv_prog_CC"
1600 fi
1601
1602 if test -z "$CC"; then
1603   if test -n "$ac_tool_prefix"; then
1604   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1605 set dummy ${ac_tool_prefix}cc; ac_word=$2
1606 echo "$as_me:$LINENO: checking for $ac_word" >&5
1607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1608 if test "${ac_cv_prog_CC+set}" = set; then
1609   echo $ECHO_N "(cached) $ECHO_C" >&6
1610 else
1611   if test -n "$CC"; then
1612   ac_cv_prog_CC="$CC" # Let the user override the test.
1613 else
1614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1615 for as_dir in $PATH
1616 do
1617   IFS=$as_save_IFS
1618   test -z "$as_dir" && as_dir=.
1619   for ac_exec_ext in '' $ac_executable_extensions; do
1620   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1621     ac_cv_prog_CC="${ac_tool_prefix}cc"
1622     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1623     break 2
1624   fi
1625 done
1626 done
1627
1628 fi
1629 fi
1630 CC=$ac_cv_prog_CC
1631 if test -n "$CC"; then
1632   echo "$as_me:$LINENO: result: $CC" >&5
1633 echo "${ECHO_T}$CC" >&6
1634 else
1635   echo "$as_me:$LINENO: result: no" >&5
1636 echo "${ECHO_T}no" >&6
1637 fi
1638
1639 fi
1640 if test -z "$ac_cv_prog_CC"; then
1641   ac_ct_CC=$CC
1642   # Extract the first word of "cc", so it can be a program name with args.
1643 set dummy cc; ac_word=$2
1644 echo "$as_me:$LINENO: checking for $ac_word" >&5
1645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1646 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1647   echo $ECHO_N "(cached) $ECHO_C" >&6
1648 else
1649   if test -n "$ac_ct_CC"; then
1650   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1651 else
1652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1653 for as_dir in $PATH
1654 do
1655   IFS=$as_save_IFS
1656   test -z "$as_dir" && as_dir=.
1657   for ac_exec_ext in '' $ac_executable_extensions; do
1658   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1659     ac_cv_prog_ac_ct_CC="cc"
1660     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1661     break 2
1662   fi
1663 done
1664 done
1665
1666 fi
1667 fi
1668 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1669 if test -n "$ac_ct_CC"; then
1670   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1671 echo "${ECHO_T}$ac_ct_CC" >&6
1672 else
1673   echo "$as_me:$LINENO: result: no" >&5
1674 echo "${ECHO_T}no" >&6
1675 fi
1676
1677   CC=$ac_ct_CC
1678 else
1679   CC="$ac_cv_prog_CC"
1680 fi
1681
1682 fi
1683 if test -z "$CC"; then
1684   # Extract the first word of "cc", so it can be a program name with args.
1685 set dummy cc; ac_word=$2
1686 echo "$as_me:$LINENO: checking for $ac_word" >&5
1687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1688 if test "${ac_cv_prog_CC+set}" = set; then
1689   echo $ECHO_N "(cached) $ECHO_C" >&6
1690 else
1691   if test -n "$CC"; then
1692   ac_cv_prog_CC="$CC" # Let the user override the test.
1693 else
1694   ac_prog_rejected=no
1695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1696 for as_dir in $PATH
1697 do
1698   IFS=$as_save_IFS
1699   test -z "$as_dir" && as_dir=.
1700   for ac_exec_ext in '' $ac_executable_extensions; do
1701   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1702     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1703        ac_prog_rejected=yes
1704        continue
1705      fi
1706     ac_cv_prog_CC="cc"
1707     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1708     break 2
1709   fi
1710 done
1711 done
1712
1713 if test $ac_prog_rejected = yes; then
1714   # We found a bogon in the path, so make sure we never use it.
1715   set dummy $ac_cv_prog_CC
1716   shift
1717   if test $# != 0; then
1718     # We chose a different compiler from the bogus one.
1719     # However, it has the same basename, so the bogon will be chosen
1720     # first if we set CC to just the basename; use the full file name.
1721     shift
1722     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1723   fi
1724 fi
1725 fi
1726 fi
1727 CC=$ac_cv_prog_CC
1728 if test -n "$CC"; then
1729   echo "$as_me:$LINENO: result: $CC" >&5
1730 echo "${ECHO_T}$CC" >&6
1731 else
1732   echo "$as_me:$LINENO: result: no" >&5
1733 echo "${ECHO_T}no" >&6
1734 fi
1735
1736 fi
1737 if test -z "$CC"; then
1738   if test -n "$ac_tool_prefix"; then
1739   for ac_prog in cl
1740   do
1741     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1742 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1743 echo "$as_me:$LINENO: checking for $ac_word" >&5
1744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1745 if test "${ac_cv_prog_CC+set}" = set; then
1746   echo $ECHO_N "(cached) $ECHO_C" >&6
1747 else
1748   if test -n "$CC"; then
1749   ac_cv_prog_CC="$CC" # Let the user override the test.
1750 else
1751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1752 for as_dir in $PATH
1753 do
1754   IFS=$as_save_IFS
1755   test -z "$as_dir" && as_dir=.
1756   for ac_exec_ext in '' $ac_executable_extensions; do
1757   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1758     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1759     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1760     break 2
1761   fi
1762 done
1763 done
1764
1765 fi
1766 fi
1767 CC=$ac_cv_prog_CC
1768 if test -n "$CC"; then
1769   echo "$as_me:$LINENO: result: $CC" >&5
1770 echo "${ECHO_T}$CC" >&6
1771 else
1772   echo "$as_me:$LINENO: result: no" >&5
1773 echo "${ECHO_T}no" >&6
1774 fi
1775
1776     test -n "$CC" && break
1777   done
1778 fi
1779 if test -z "$CC"; then
1780   ac_ct_CC=$CC
1781   for ac_prog in cl
1782 do
1783   # Extract the first word of "$ac_prog", so it can be a program name with args.
1784 set dummy $ac_prog; ac_word=$2
1785 echo "$as_me:$LINENO: checking for $ac_word" >&5
1786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1787 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1788   echo $ECHO_N "(cached) $ECHO_C" >&6
1789 else
1790   if test -n "$ac_ct_CC"; then
1791   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1792 else
1793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1794 for as_dir in $PATH
1795 do
1796   IFS=$as_save_IFS
1797   test -z "$as_dir" && as_dir=.
1798   for ac_exec_ext in '' $ac_executable_extensions; do
1799   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1800     ac_cv_prog_ac_ct_CC="$ac_prog"
1801     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1802     break 2
1803   fi
1804 done
1805 done
1806
1807 fi
1808 fi
1809 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1810 if test -n "$ac_ct_CC"; then
1811   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1812 echo "${ECHO_T}$ac_ct_CC" >&6
1813 else
1814   echo "$as_me:$LINENO: result: no" >&5
1815 echo "${ECHO_T}no" >&6
1816 fi
1817
1818   test -n "$ac_ct_CC" && break
1819 done
1820
1821   CC=$ac_ct_CC
1822 fi
1823
1824 fi
1825
1826
1827 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1828 See \`config.log' for more details." >&5
1829 echo "$as_me: error: no acceptable C compiler found in \$PATH
1830 See \`config.log' for more details." >&2;}
1831    { (exit 1); exit 1; }; }
1832
1833 # Provide some information about the compiler.
1834 echo "$as_me:$LINENO:" \
1835      "checking for C compiler version" >&5
1836 ac_compiler=`set X $ac_compile; echo $2`
1837 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1838   (eval $ac_compiler --version </dev/null >&5) 2>&5
1839   ac_status=$?
1840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1841   (exit $ac_status); }
1842 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1843   (eval $ac_compiler -v </dev/null >&5) 2>&5
1844   ac_status=$?
1845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1846   (exit $ac_status); }
1847 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1848   (eval $ac_compiler -V </dev/null >&5) 2>&5
1849   ac_status=$?
1850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1851   (exit $ac_status); }
1852
1853 cat >conftest.$ac_ext <<_ACEOF
1854 /* confdefs.h.  */
1855 _ACEOF
1856 cat confdefs.h >>conftest.$ac_ext
1857 cat >>conftest.$ac_ext <<_ACEOF
1858 /* end confdefs.h.  */
1859
1860 int
1861 main ()
1862 {
1863
1864   ;
1865   return 0;
1866 }
1867 _ACEOF
1868 ac_clean_files_save=$ac_clean_files
1869 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1870 # Try to create an executable without -o first, disregard a.out.
1871 # It will help us diagnose broken compilers, and finding out an intuition
1872 # of exeext.
1873 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1874 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1875 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1876 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1877   (eval $ac_link_default) 2>&5
1878   ac_status=$?
1879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1880   (exit $ac_status); }; then
1881   # Find the output, starting from the most likely.  This scheme is
1882 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1883 # resort.
1884
1885 # Be careful to initialize this variable, since it used to be cached.
1886 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1887 ac_cv_exeext=
1888 # b.out is created by i960 compilers.
1889 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1890 do
1891   test -f "$ac_file" || continue
1892   case $ac_file in
1893     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1894         ;;
1895     conftest.$ac_ext )
1896         # This is the source file.
1897         ;;
1898     [ab].out )
1899         # We found the default executable, but exeext='' is most
1900         # certainly right.
1901         break;;
1902     *.* )
1903         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1904         # FIXME: I believe we export ac_cv_exeext for Libtool,
1905         # but it would be cool to find out if it's true.  Does anybody
1906         # maintain Libtool? --akim.
1907         export ac_cv_exeext
1908         break;;
1909     * )
1910         break;;
1911   esac
1912 done
1913 else
1914   echo "$as_me: failed program was:" >&5
1915 sed 's/^/| /' conftest.$ac_ext >&5
1916
1917 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1918 See \`config.log' for more details." >&5
1919 echo "$as_me: error: C compiler cannot create executables
1920 See \`config.log' for more details." >&2;}
1921    { (exit 77); exit 77; }; }
1922 fi
1923
1924 ac_exeext=$ac_cv_exeext
1925 echo "$as_me:$LINENO: result: $ac_file" >&5
1926 echo "${ECHO_T}$ac_file" >&6
1927
1928 # Check the compiler produces executables we can run.  If not, either
1929 # the compiler is broken, or we cross compile.
1930 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1931 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1932 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1933 # If not cross compiling, check that we can run a simple program.
1934 if test "$cross_compiling" != yes; then
1935   if { ac_try='./$ac_file'
1936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1937   (eval $ac_try) 2>&5
1938   ac_status=$?
1939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1940   (exit $ac_status); }; }; then
1941     cross_compiling=no
1942   else
1943     if test "$cross_compiling" = maybe; then
1944         cross_compiling=yes
1945     else
1946         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1947 If you meant to cross compile, use \`--host'.
1948 See \`config.log' for more details." >&5
1949 echo "$as_me: error: cannot run C compiled programs.
1950 If you meant to cross compile, use \`--host'.
1951 See \`config.log' for more details." >&2;}
1952    { (exit 1); exit 1; }; }
1953     fi
1954   fi
1955 fi
1956 echo "$as_me:$LINENO: result: yes" >&5
1957 echo "${ECHO_T}yes" >&6
1958
1959 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1960 ac_clean_files=$ac_clean_files_save
1961 # Check the compiler produces executables we can run.  If not, either
1962 # the compiler is broken, or we cross compile.
1963 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1964 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1965 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1966 echo "${ECHO_T}$cross_compiling" >&6
1967
1968 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1969 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1971   (eval $ac_link) 2>&5
1972   ac_status=$?
1973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1974   (exit $ac_status); }; then
1975   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1976 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1977 # work properly (i.e., refer to `conftest.exe'), while it won't with
1978 # `rm'.
1979 for ac_file in conftest.exe conftest conftest.*; do
1980   test -f "$ac_file" || continue
1981   case $ac_file in
1982     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1983     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1984           export ac_cv_exeext
1985           break;;
1986     * ) break;;
1987   esac
1988 done
1989 else
1990   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1991 See \`config.log' for more details." >&5
1992 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1993 See \`config.log' for more details." >&2;}
1994    { (exit 1); exit 1; }; }
1995 fi
1996
1997 rm -f conftest$ac_cv_exeext
1998 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1999 echo "${ECHO_T}$ac_cv_exeext" >&6
2000
2001 rm -f conftest.$ac_ext
2002 EXEEXT=$ac_cv_exeext
2003 ac_exeext=$EXEEXT
2004 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2005 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2006 if test "${ac_cv_objext+set}" = set; then
2007   echo $ECHO_N "(cached) $ECHO_C" >&6
2008 else
2009   cat >conftest.$ac_ext <<_ACEOF
2010 /* confdefs.h.  */
2011 _ACEOF
2012 cat confdefs.h >>conftest.$ac_ext
2013 cat >>conftest.$ac_ext <<_ACEOF
2014 /* end confdefs.h.  */
2015
2016 int
2017 main ()
2018 {
2019
2020   ;
2021   return 0;
2022 }
2023 _ACEOF
2024 rm -f conftest.o conftest.obj
2025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2026   (eval $ac_compile) 2>&5
2027   ac_status=$?
2028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2029   (exit $ac_status); }; then
2030   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2031   case $ac_file in
2032     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2033     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2034        break;;
2035   esac
2036 done
2037 else
2038   echo "$as_me: failed program was:" >&5
2039 sed 's/^/| /' conftest.$ac_ext >&5
2040
2041 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2042 See \`config.log' for more details." >&5
2043 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2044 See \`config.log' for more details." >&2;}
2045    { (exit 1); exit 1; }; }
2046 fi
2047
2048 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2049 fi
2050 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2051 echo "${ECHO_T}$ac_cv_objext" >&6
2052 OBJEXT=$ac_cv_objext
2053 ac_objext=$OBJEXT
2054 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2055 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2056 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2057   echo $ECHO_N "(cached) $ECHO_C" >&6
2058 else
2059   cat >conftest.$ac_ext <<_ACEOF
2060 /* confdefs.h.  */
2061 _ACEOF
2062 cat confdefs.h >>conftest.$ac_ext
2063 cat >>conftest.$ac_ext <<_ACEOF
2064 /* end confdefs.h.  */
2065
2066 int
2067 main ()
2068 {
2069 #ifndef __GNUC__
2070        choke me
2071 #endif
2072
2073   ;
2074   return 0;
2075 }
2076 _ACEOF
2077 rm -f conftest.$ac_objext
2078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2079   (eval $ac_compile) 2>conftest.er1
2080   ac_status=$?
2081   grep -v '^ *+' conftest.er1 >conftest.err
2082   rm -f conftest.er1
2083   cat conftest.err >&5
2084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085   (exit $ac_status); } &&
2086          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2088   (eval $ac_try) 2>&5
2089   ac_status=$?
2090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091   (exit $ac_status); }; } &&
2092          { ac_try='test -s conftest.$ac_objext'
2093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2094   (eval $ac_try) 2>&5
2095   ac_status=$?
2096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097   (exit $ac_status); }; }; then
2098   ac_compiler_gnu=yes
2099 else
2100   echo "$as_me: failed program was:" >&5
2101 sed 's/^/| /' conftest.$ac_ext >&5
2102
2103 ac_compiler_gnu=no
2104 fi
2105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2106 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2107
2108 fi
2109 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2110 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2111 GCC=`test $ac_compiler_gnu = yes && echo yes`
2112 ac_test_CFLAGS=${CFLAGS+set}
2113 ac_save_CFLAGS=$CFLAGS
2114 CFLAGS="-g"
2115 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2116 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2117 if test "${ac_cv_prog_cc_g+set}" = set; then
2118   echo $ECHO_N "(cached) $ECHO_C" >&6
2119 else
2120   cat >conftest.$ac_ext <<_ACEOF
2121 /* confdefs.h.  */
2122 _ACEOF
2123 cat confdefs.h >>conftest.$ac_ext
2124 cat >>conftest.$ac_ext <<_ACEOF
2125 /* end confdefs.h.  */
2126
2127 int
2128 main ()
2129 {
2130
2131   ;
2132   return 0;
2133 }
2134 _ACEOF
2135 rm -f conftest.$ac_objext
2136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2137   (eval $ac_compile) 2>conftest.er1
2138   ac_status=$?
2139   grep -v '^ *+' conftest.er1 >conftest.err
2140   rm -f conftest.er1
2141   cat conftest.err >&5
2142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143   (exit $ac_status); } &&
2144          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2146   (eval $ac_try) 2>&5
2147   ac_status=$?
2148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149   (exit $ac_status); }; } &&
2150          { ac_try='test -s conftest.$ac_objext'
2151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2152   (eval $ac_try) 2>&5
2153   ac_status=$?
2154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155   (exit $ac_status); }; }; then
2156   ac_cv_prog_cc_g=yes
2157 else
2158   echo "$as_me: failed program was:" >&5
2159 sed 's/^/| /' conftest.$ac_ext >&5
2160
2161 ac_cv_prog_cc_g=no
2162 fi
2163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2164 fi
2165 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2166 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2167 if test "$ac_test_CFLAGS" = set; then
2168   CFLAGS=$ac_save_CFLAGS
2169 elif test $ac_cv_prog_cc_g = yes; then
2170   if test "$GCC" = yes; then
2171     CFLAGS="-g -O2"
2172   else
2173     CFLAGS="-g"
2174   fi
2175 else
2176   if test "$GCC" = yes; then
2177     CFLAGS="-O2"
2178   else
2179     CFLAGS=
2180   fi
2181 fi
2182 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2183 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2184 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2185   echo $ECHO_N "(cached) $ECHO_C" >&6
2186 else
2187   ac_cv_prog_cc_stdc=no
2188 ac_save_CC=$CC
2189 cat >conftest.$ac_ext <<_ACEOF
2190 /* confdefs.h.  */
2191 _ACEOF
2192 cat confdefs.h >>conftest.$ac_ext
2193 cat >>conftest.$ac_ext <<_ACEOF
2194 /* end confdefs.h.  */
2195 #include <stdarg.h>
2196 #include <stdio.h>
2197 #include <sys/types.h>
2198 #include <sys/stat.h>
2199 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2200 struct buf { int x; };
2201 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2202 static char *e (p, i)
2203      char **p;
2204      int i;
2205 {
2206   return p[i];
2207 }
2208 static char *f (char * (*g) (char **, int), char **p, ...)
2209 {
2210   char *s;
2211   va_list v;
2212   va_start (v,p);
2213   s = g (p, va_arg (v,int));
2214   va_end (v);
2215   return s;
2216 }
2217
2218 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2219    function prototypes and stuff, but not '\xHH' hex character constants.
2220    These don't provoke an error unfortunately, instead are silently treated
2221    as 'x'.  The following induces an error, until -std1 is added to get
2222    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2223    array size at least.  It's necessary to write '\x00'==0 to get something
2224    that's true only with -std1.  */
2225 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2226
2227 int test (int i, double x);
2228 struct s1 {int (*f) (int a);};
2229 struct s2 {int (*f) (double a);};
2230 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2231 int argc;
2232 char **argv;
2233 int
2234 main ()
2235 {
2236 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2237   ;
2238   return 0;
2239 }
2240 _ACEOF
2241 # Don't try gcc -ansi; that turns off useful extensions and
2242 # breaks some systems' header files.
2243 # AIX                   -qlanglvl=ansi
2244 # Ultrix and OSF/1      -std1
2245 # HP-UX 10.20 and later -Ae
2246 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2247 # SVR4                  -Xc -D__EXTENSIONS__
2248 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2249 do
2250   CC="$ac_save_CC $ac_arg"
2251   rm -f conftest.$ac_objext
2252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2253   (eval $ac_compile) 2>conftest.er1
2254   ac_status=$?
2255   grep -v '^ *+' conftest.er1 >conftest.err
2256   rm -f conftest.er1
2257   cat conftest.err >&5
2258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259   (exit $ac_status); } &&
2260          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2262   (eval $ac_try) 2>&5
2263   ac_status=$?
2264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265   (exit $ac_status); }; } &&
2266          { ac_try='test -s conftest.$ac_objext'
2267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2268   (eval $ac_try) 2>&5
2269   ac_status=$?
2270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271   (exit $ac_status); }; }; then
2272   ac_cv_prog_cc_stdc=$ac_arg
2273 break
2274 else
2275   echo "$as_me: failed program was:" >&5
2276 sed 's/^/| /' conftest.$ac_ext >&5
2277
2278 fi
2279 rm -f conftest.err conftest.$ac_objext
2280 done
2281 rm -f conftest.$ac_ext conftest.$ac_objext
2282 CC=$ac_save_CC
2283
2284 fi
2285
2286 case "x$ac_cv_prog_cc_stdc" in
2287   x|xno)
2288     echo "$as_me:$LINENO: result: none needed" >&5
2289 echo "${ECHO_T}none needed" >&6 ;;
2290   *)
2291     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2292 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2293     CC="$CC $ac_cv_prog_cc_stdc" ;;
2294 esac
2295
2296 # Some people use a C++ compiler to compile C.  Since we use `exit',
2297 # in C++ we need to declare it.  In case someone uses the same compiler
2298 # for both compiling C and C++ we need to have the C++ compiler decide
2299 # the declaration of exit, since it's the most demanding environment.
2300 cat >conftest.$ac_ext <<_ACEOF
2301 #ifndef __cplusplus
2302   choke me
2303 #endif
2304 _ACEOF
2305 rm -f conftest.$ac_objext
2306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307   (eval $ac_compile) 2>conftest.er1
2308   ac_status=$?
2309   grep -v '^ *+' conftest.er1 >conftest.err
2310   rm -f conftest.er1
2311   cat conftest.err >&5
2312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313   (exit $ac_status); } &&
2314          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2316   (eval $ac_try) 2>&5
2317   ac_status=$?
2318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319   (exit $ac_status); }; } &&
2320          { ac_try='test -s conftest.$ac_objext'
2321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2322   (eval $ac_try) 2>&5
2323   ac_status=$?
2324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325   (exit $ac_status); }; }; then
2326   for ac_declaration in \
2327    '' \
2328    'extern "C" void std::exit (int) throw (); using std::exit;' \
2329    'extern "C" void std::exit (int); using std::exit;' \
2330    'extern "C" void exit (int) throw ();' \
2331    'extern "C" void exit (int);' \
2332    'void exit (int);'
2333 do
2334   cat >conftest.$ac_ext <<_ACEOF
2335 /* confdefs.h.  */
2336 _ACEOF
2337 cat confdefs.h >>conftest.$ac_ext
2338 cat >>conftest.$ac_ext <<_ACEOF
2339 /* end confdefs.h.  */
2340 $ac_declaration
2341 #include <stdlib.h>
2342 int
2343 main ()
2344 {
2345 exit (42);
2346   ;
2347   return 0;
2348 }
2349 _ACEOF
2350 rm -f conftest.$ac_objext
2351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2352   (eval $ac_compile) 2>conftest.er1
2353   ac_status=$?
2354   grep -v '^ *+' conftest.er1 >conftest.err
2355   rm -f conftest.er1
2356   cat conftest.err >&5
2357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358   (exit $ac_status); } &&
2359          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2361   (eval $ac_try) 2>&5
2362   ac_status=$?
2363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364   (exit $ac_status); }; } &&
2365          { ac_try='test -s conftest.$ac_objext'
2366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2367   (eval $ac_try) 2>&5
2368   ac_status=$?
2369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370   (exit $ac_status); }; }; then
2371   :
2372 else
2373   echo "$as_me: failed program was:" >&5
2374 sed 's/^/| /' conftest.$ac_ext >&5
2375
2376 continue
2377 fi
2378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2379   cat >conftest.$ac_ext <<_ACEOF
2380 /* confdefs.h.  */
2381 _ACEOF
2382 cat confdefs.h >>conftest.$ac_ext
2383 cat >>conftest.$ac_ext <<_ACEOF
2384 /* end confdefs.h.  */
2385 $ac_declaration
2386 int
2387 main ()
2388 {
2389 exit (42);
2390   ;
2391   return 0;
2392 }
2393 _ACEOF
2394 rm -f conftest.$ac_objext
2395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2396   (eval $ac_compile) 2>conftest.er1
2397   ac_status=$?
2398   grep -v '^ *+' conftest.er1 >conftest.err
2399   rm -f conftest.er1
2400   cat conftest.err >&5
2401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402   (exit $ac_status); } &&
2403          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2405   (eval $ac_try) 2>&5
2406   ac_status=$?
2407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408   (exit $ac_status); }; } &&
2409          { ac_try='test -s conftest.$ac_objext'
2410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411   (eval $ac_try) 2>&5
2412   ac_status=$?
2413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414   (exit $ac_status); }; }; then
2415   break
2416 else
2417   echo "$as_me: failed program was:" >&5
2418 sed 's/^/| /' conftest.$ac_ext >&5
2419
2420 fi
2421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2422 done
2423 rm -f conftest*
2424 if test -n "$ac_declaration"; then
2425   echo '#ifdef __cplusplus' >>confdefs.h
2426   echo $ac_declaration      >>confdefs.h
2427   echo '#endif'             >>confdefs.h
2428 fi
2429
2430 else
2431   echo "$as_me: failed program was:" >&5
2432 sed 's/^/| /' conftest.$ac_ext >&5
2433
2434 fi
2435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2436 ac_ext=c
2437 ac_cpp='$CPP $CPPFLAGS'
2438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2441
2442 ac_ext=cc
2443 ac_cpp='$CXXCPP $CPPFLAGS'
2444 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2445 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2446 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2447 if test -n "$ac_tool_prefix"; then
2448   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2449   do
2450     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2451 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2452 echo "$as_me:$LINENO: checking for $ac_word" >&5
2453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2454 if test "${ac_cv_prog_CXX+set}" = set; then
2455   echo $ECHO_N "(cached) $ECHO_C" >&6
2456 else
2457   if test -n "$CXX"; then
2458   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2459 else
2460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461 for as_dir in $PATH
2462 do
2463   IFS=$as_save_IFS
2464   test -z "$as_dir" && as_dir=.
2465   for ac_exec_ext in '' $ac_executable_extensions; do
2466   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2467     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2468     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2469     break 2
2470   fi
2471 done
2472 done
2473
2474 fi
2475 fi
2476 CXX=$ac_cv_prog_CXX
2477 if test -n "$CXX"; then
2478   echo "$as_me:$LINENO: result: $CXX" >&5
2479 echo "${ECHO_T}$CXX" >&6
2480 else
2481   echo "$as_me:$LINENO: result: no" >&5
2482 echo "${ECHO_T}no" >&6
2483 fi
2484
2485     test -n "$CXX" && break
2486   done
2487 fi
2488 if test -z "$CXX"; then
2489   ac_ct_CXX=$CXX
2490   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2491 do
2492   # Extract the first word of "$ac_prog", so it can be a program name with args.
2493 set dummy $ac_prog; ac_word=$2
2494 echo "$as_me:$LINENO: checking for $ac_word" >&5
2495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2496 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2497   echo $ECHO_N "(cached) $ECHO_C" >&6
2498 else
2499   if test -n "$ac_ct_CXX"; then
2500   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2501 else
2502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2503 for as_dir in $PATH
2504 do
2505   IFS=$as_save_IFS
2506   test -z "$as_dir" && as_dir=.
2507   for ac_exec_ext in '' $ac_executable_extensions; do
2508   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2509     ac_cv_prog_ac_ct_CXX="$ac_prog"
2510     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2511     break 2
2512   fi
2513 done
2514 done
2515
2516 fi
2517 fi
2518 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2519 if test -n "$ac_ct_CXX"; then
2520   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2521 echo "${ECHO_T}$ac_ct_CXX" >&6
2522 else
2523   echo "$as_me:$LINENO: result: no" >&5
2524 echo "${ECHO_T}no" >&6
2525 fi
2526
2527   test -n "$ac_ct_CXX" && break
2528 done
2529 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2530
2531   CXX=$ac_ct_CXX
2532 fi
2533
2534
2535 # Provide some information about the compiler.
2536 echo "$as_me:$LINENO:" \
2537      "checking for C++ compiler version" >&5
2538 ac_compiler=`set X $ac_compile; echo $2`
2539 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2540   (eval $ac_compiler --version </dev/null >&5) 2>&5
2541   ac_status=$?
2542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543   (exit $ac_status); }
2544 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2545   (eval $ac_compiler -v </dev/null >&5) 2>&5
2546   ac_status=$?
2547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548   (exit $ac_status); }
2549 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2550   (eval $ac_compiler -V </dev/null >&5) 2>&5
2551   ac_status=$?
2552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553   (exit $ac_status); }
2554
2555 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2556 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2557 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2558   echo $ECHO_N "(cached) $ECHO_C" >&6
2559 else
2560   cat >conftest.$ac_ext <<_ACEOF
2561 /* confdefs.h.  */
2562 _ACEOF
2563 cat confdefs.h >>conftest.$ac_ext
2564 cat >>conftest.$ac_ext <<_ACEOF
2565 /* end confdefs.h.  */
2566
2567 int
2568 main ()
2569 {
2570 #ifndef __GNUC__
2571        choke me
2572 #endif
2573
2574   ;
2575   return 0;
2576 }
2577 _ACEOF
2578 rm -f conftest.$ac_objext
2579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2580   (eval $ac_compile) 2>conftest.er1
2581   ac_status=$?
2582   grep -v '^ *+' conftest.er1 >conftest.err
2583   rm -f conftest.er1
2584   cat conftest.err >&5
2585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586   (exit $ac_status); } &&
2587          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
2588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2589   (eval $ac_try) 2>&5
2590   ac_status=$?
2591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592   (exit $ac_status); }; } &&
2593          { ac_try='test -s conftest.$ac_objext'
2594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2595   (eval $ac_try) 2>&5
2596   ac_status=$?
2597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598   (exit $ac_status); }; }; then
2599   ac_compiler_gnu=yes
2600 else
2601   echo "$as_me: failed program was:" >&5
2602 sed 's/^/| /' conftest.$ac_ext >&5
2603
2604 ac_compiler_gnu=no
2605 fi
2606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2607 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2608
2609 fi
2610 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2611 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2612 GXX=`test $ac_compiler_gnu = yes && echo yes`
2613 ac_test_CXXFLAGS=${CXXFLAGS+set}
2614 ac_save_CXXFLAGS=$CXXFLAGS
2615 CXXFLAGS="-g"
2616 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2617 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2618 if test "${ac_cv_prog_cxx_g+set}" = set; then
2619   echo $ECHO_N "(cached) $ECHO_C" >&6
2620 else
2621   cat >conftest.$ac_ext <<_ACEOF
2622 /* confdefs.h.  */
2623 _ACEOF
2624 cat confdefs.h >>conftest.$ac_ext
2625 cat >>conftest.$ac_ext <<_ACEOF
2626 /* end confdefs.h.  */
2627
2628 int
2629 main ()
2630 {
2631
2632   ;
2633   return 0;
2634 }
2635 _ACEOF
2636 rm -f conftest.$ac_objext
2637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2638   (eval $ac_compile) 2>conftest.er1
2639   ac_status=$?
2640   grep -v '^ *+' conftest.er1 >conftest.err
2641   rm -f conftest.er1
2642   cat conftest.err >&5
2643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644   (exit $ac_status); } &&
2645          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
2646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2647   (eval $ac_try) 2>&5
2648   ac_status=$?
2649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650   (exit $ac_status); }; } &&
2651          { ac_try='test -s conftest.$ac_objext'
2652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2653   (eval $ac_try) 2>&5
2654   ac_status=$?
2655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656   (exit $ac_status); }; }; then
2657   ac_cv_prog_cxx_g=yes
2658 else
2659   echo "$as_me: failed program was:" >&5
2660 sed 's/^/| /' conftest.$ac_ext >&5
2661
2662 ac_cv_prog_cxx_g=no
2663 fi
2664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2665 fi
2666 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2667 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2668 if test "$ac_test_CXXFLAGS" = set; then
2669   CXXFLAGS=$ac_save_CXXFLAGS
2670 elif test $ac_cv_prog_cxx_g = yes; then
2671   if test "$GXX" = yes; then
2672     CXXFLAGS="-g -O2"
2673   else
2674     CXXFLAGS="-g"
2675   fi
2676 else
2677   if test "$GXX" = yes; then
2678     CXXFLAGS="-O2"
2679   else
2680     CXXFLAGS=
2681   fi
2682 fi
2683 for ac_declaration in \
2684    '' \
2685    'extern "C" void std::exit (int) throw (); using std::exit;' \
2686    'extern "C" void std::exit (int); using std::exit;' \
2687    'extern "C" void exit (int) throw ();' \
2688    'extern "C" void exit (int);' \
2689    'void exit (int);'
2690 do
2691   cat >conftest.$ac_ext <<_ACEOF
2692 /* confdefs.h.  */
2693 _ACEOF
2694 cat confdefs.h >>conftest.$ac_ext
2695 cat >>conftest.$ac_ext <<_ACEOF
2696 /* end confdefs.h.  */
2697 $ac_declaration
2698 #include <stdlib.h>
2699 int
2700 main ()
2701 {
2702 exit (42);
2703   ;
2704   return 0;
2705 }
2706 _ACEOF
2707 rm -f conftest.$ac_objext
2708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2709   (eval $ac_compile) 2>conftest.er1
2710   ac_status=$?
2711   grep -v '^ *+' conftest.er1 >conftest.err
2712   rm -f conftest.er1
2713   cat conftest.err >&5
2714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715   (exit $ac_status); } &&
2716          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
2717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718   (eval $ac_try) 2>&5
2719   ac_status=$?
2720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721   (exit $ac_status); }; } &&
2722          { ac_try='test -s conftest.$ac_objext'
2723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724   (eval $ac_try) 2>&5
2725   ac_status=$?
2726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727   (exit $ac_status); }; }; then
2728   :
2729 else
2730   echo "$as_me: failed program was:" >&5
2731 sed 's/^/| /' conftest.$ac_ext >&5
2732
2733 continue
2734 fi
2735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2736   cat >conftest.$ac_ext <<_ACEOF
2737 /* confdefs.h.  */
2738 _ACEOF
2739 cat confdefs.h >>conftest.$ac_ext
2740 cat >>conftest.$ac_ext <<_ACEOF
2741 /* end confdefs.h.  */
2742 $ac_declaration
2743 int
2744 main ()
2745 {
2746 exit (42);
2747   ;
2748   return 0;
2749 }
2750 _ACEOF
2751 rm -f conftest.$ac_objext
2752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2753   (eval $ac_compile) 2>conftest.er1
2754   ac_status=$?
2755   grep -v '^ *+' conftest.er1 >conftest.err
2756   rm -f conftest.er1
2757   cat conftest.err >&5
2758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759   (exit $ac_status); } &&
2760          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
2761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2762   (eval $ac_try) 2>&5
2763   ac_status=$?
2764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765   (exit $ac_status); }; } &&
2766          { ac_try='test -s conftest.$ac_objext'
2767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2768   (eval $ac_try) 2>&5
2769   ac_status=$?
2770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771   (exit $ac_status); }; }; then
2772   break
2773 else
2774   echo "$as_me: failed program was:" >&5
2775 sed 's/^/| /' conftest.$ac_ext >&5
2776
2777 fi
2778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2779 done
2780 rm -f conftest*
2781 if test -n "$ac_declaration"; then
2782   echo '#ifdef __cplusplus' >>confdefs.h
2783   echo $ac_declaration      >>confdefs.h
2784   echo '#endif'             >>confdefs.h
2785 fi
2786
2787 ac_ext=c
2788 ac_cpp='$CPP $CPPFLAGS'
2789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2792
2793
2794
2795 ac_ext=c
2796 ac_cpp='$CPP $CPPFLAGS'
2797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2800 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2801 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2802 # On Suns, sometimes $CPP names a directory.
2803 if test -n "$CPP" && test -d "$CPP"; then
2804   CPP=
2805 fi
2806 if test -z "$CPP"; then
2807   if test "${ac_cv_prog_CPP+set}" = set; then
2808   echo $ECHO_N "(cached) $ECHO_C" >&6
2809 else
2810       # Double quotes because CPP needs to be expanded
2811     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2812     do
2813       ac_preproc_ok=false
2814 for ac_c_preproc_warn_flag in '' yes
2815 do
2816   # Use a header file that comes with gcc, so configuring glibc
2817   # with a fresh cross-compiler works.
2818   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2819   # <limits.h> exists even on freestanding compilers.
2820   # On the NeXT, cc -E runs the code through the compiler's parser,
2821   # not just through cpp. "Syntax error" is here to catch this case.
2822   cat >conftest.$ac_ext <<_ACEOF
2823 /* confdefs.h.  */
2824 _ACEOF
2825 cat confdefs.h >>conftest.$ac_ext
2826 cat >>conftest.$ac_ext <<_ACEOF
2827 /* end confdefs.h.  */
2828 #ifdef __STDC__
2829 # include <limits.h>
2830 #else
2831 # include <assert.h>
2832 #endif
2833                      Syntax error
2834 _ACEOF
2835 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2836   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2837   ac_status=$?
2838   grep -v '^ *+' conftest.er1 >conftest.err
2839   rm -f conftest.er1
2840   cat conftest.err >&5
2841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842   (exit $ac_status); } >/dev/null; then
2843   if test -s conftest.err; then
2844     ac_cpp_err=$ac_c_preproc_warn_flag
2845     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2846   else
2847     ac_cpp_err=
2848   fi
2849 else
2850   ac_cpp_err=yes
2851 fi
2852 if test -z "$ac_cpp_err"; then
2853   :
2854 else
2855   echo "$as_me: failed program was:" >&5
2856 sed 's/^/| /' conftest.$ac_ext >&5
2857
2858   # Broken: fails on valid input.
2859 continue
2860 fi
2861 rm -f conftest.err conftest.$ac_ext
2862
2863   # OK, works on sane cases.  Now check whether non-existent headers
2864   # can be detected and how.
2865   cat >conftest.$ac_ext <<_ACEOF
2866 /* confdefs.h.  */
2867 _ACEOF
2868 cat confdefs.h >>conftest.$ac_ext
2869 cat >>conftest.$ac_ext <<_ACEOF
2870 /* end confdefs.h.  */
2871 #include <ac_nonexistent.h>
2872 _ACEOF
2873 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2874   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2875   ac_status=$?
2876   grep -v '^ *+' conftest.er1 >conftest.err
2877   rm -f conftest.er1
2878   cat conftest.err >&5
2879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880   (exit $ac_status); } >/dev/null; then
2881   if test -s conftest.err; then
2882     ac_cpp_err=$ac_c_preproc_warn_flag
2883     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2884   else
2885     ac_cpp_err=
2886   fi
2887 else
2888   ac_cpp_err=yes
2889 fi
2890 if test -z "$ac_cpp_err"; then
2891   # Broken: success on invalid input.
2892 continue
2893 else
2894   echo "$as_me: failed program was:" >&5
2895 sed 's/^/| /' conftest.$ac_ext >&5
2896
2897   # Passes both tests.
2898 ac_preproc_ok=:
2899 break
2900 fi
2901 rm -f conftest.err conftest.$ac_ext
2902
2903 done
2904 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2905 rm -f conftest.err conftest.$ac_ext
2906 if $ac_preproc_ok; then
2907   break
2908 fi
2909
2910     done
2911     ac_cv_prog_CPP=$CPP
2912
2913 fi
2914   CPP=$ac_cv_prog_CPP
2915 else
2916   ac_cv_prog_CPP=$CPP
2917 fi
2918 echo "$as_me:$LINENO: result: $CPP" >&5
2919 echo "${ECHO_T}$CPP" >&6
2920 ac_preproc_ok=false
2921 for ac_c_preproc_warn_flag in '' yes
2922 do
2923   # Use a header file that comes with gcc, so configuring glibc
2924   # with a fresh cross-compiler works.
2925   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2926   # <limits.h> exists even on freestanding compilers.
2927   # On the NeXT, cc -E runs the code through the compiler's parser,
2928   # not just through cpp. "Syntax error" is here to catch this case.
2929   cat >conftest.$ac_ext <<_ACEOF
2930 /* confdefs.h.  */
2931 _ACEOF
2932 cat confdefs.h >>conftest.$ac_ext
2933 cat >>conftest.$ac_ext <<_ACEOF
2934 /* end confdefs.h.  */
2935 #ifdef __STDC__
2936 # include <limits.h>
2937 #else
2938 # include <assert.h>
2939 #endif
2940                      Syntax error
2941 _ACEOF
2942 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2943   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2944   ac_status=$?
2945   grep -v '^ *+' conftest.er1 >conftest.err
2946   rm -f conftest.er1
2947   cat conftest.err >&5
2948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949   (exit $ac_status); } >/dev/null; then
2950   if test -s conftest.err; then
2951     ac_cpp_err=$ac_c_preproc_warn_flag
2952     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2953   else
2954     ac_cpp_err=
2955   fi
2956 else
2957   ac_cpp_err=yes
2958 fi
2959 if test -z "$ac_cpp_err"; then
2960   :
2961 else
2962   echo "$as_me: failed program was:" >&5
2963 sed 's/^/| /' conftest.$ac_ext >&5
2964
2965   # Broken: fails on valid input.
2966 continue
2967 fi
2968 rm -f conftest.err conftest.$ac_ext
2969
2970   # OK, works on sane cases.  Now check whether non-existent headers
2971   # can be detected and how.
2972   cat >conftest.$ac_ext <<_ACEOF
2973 /* confdefs.h.  */
2974 _ACEOF
2975 cat confdefs.h >>conftest.$ac_ext
2976 cat >>conftest.$ac_ext <<_ACEOF
2977 /* end confdefs.h.  */
2978 #include <ac_nonexistent.h>
2979 _ACEOF
2980 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2981   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2982   ac_status=$?
2983   grep -v '^ *+' conftest.er1 >conftest.err
2984   rm -f conftest.er1
2985   cat conftest.err >&5
2986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987   (exit $ac_status); } >/dev/null; then
2988   if test -s conftest.err; then
2989     ac_cpp_err=$ac_c_preproc_warn_flag
2990     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2991   else
2992     ac_cpp_err=
2993   fi
2994 else
2995   ac_cpp_err=yes
2996 fi
2997 if test -z "$ac_cpp_err"; then
2998   # Broken: success on invalid input.
2999 continue
3000 else
3001   echo "$as_me: failed program was:" >&5
3002 sed 's/^/| /' conftest.$ac_ext >&5
3003
3004   # Passes both tests.
3005 ac_preproc_ok=:
3006 break
3007 fi
3008 rm -f conftest.err conftest.$ac_ext
3009
3010 done
3011 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3012 rm -f conftest.err conftest.$ac_ext
3013 if $ac_preproc_ok; then
3014   :
3015 else
3016   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3017 See \`config.log' for more details." >&5
3018 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3019 See \`config.log' for more details." >&2;}
3020    { (exit 1); exit 1; }; }
3021 fi
3022
3023 ac_ext=c
3024 ac_cpp='$CPP $CPPFLAGS'
3025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3028
3029
3030 echo "$as_me:$LINENO: checking for egrep" >&5
3031 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3032 if test "${ac_cv_prog_egrep+set}" = set; then
3033   echo $ECHO_N "(cached) $ECHO_C" >&6
3034 else
3035   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3036     then ac_cv_prog_egrep='grep -E'
3037     else ac_cv_prog_egrep='egrep'
3038     fi
3039 fi
3040 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3041 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3042  EGREP=$ac_cv_prog_egrep
3043
3044
3045
3046 echo "$as_me:$LINENO: checking for AIX" >&5
3047 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3048 cat >conftest.$ac_ext <<_ACEOF
3049 /* confdefs.h.  */
3050 _ACEOF
3051 cat confdefs.h >>conftest.$ac_ext
3052 cat >>conftest.$ac_ext <<_ACEOF
3053 /* end confdefs.h.  */
3054 #ifdef _AIX
3055   yes
3056 #endif
3057
3058 _ACEOF
3059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3060   $EGREP "yes" >/dev/null 2>&1; then
3061   echo "$as_me:$LINENO: result: yes" >&5
3062 echo "${ECHO_T}yes" >&6
3063 cat >>confdefs.h <<\_ACEOF
3064 #define _ALL_SOURCE 1
3065 _ACEOF
3066
3067 else
3068   echo "$as_me:$LINENO: result: no" >&5
3069 echo "${ECHO_T}no" >&6
3070 fi
3071 rm -f conftest*
3072
3073
3074
3075 if test $ac_cv_c_compiler_gnu = yes; then
3076     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3077 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3078 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3079   echo $ECHO_N "(cached) $ECHO_C" >&6
3080 else
3081     ac_pattern="Autoconf.*'x'"
3082   cat >conftest.$ac_ext <<_ACEOF
3083 /* confdefs.h.  */
3084 _ACEOF
3085 cat confdefs.h >>conftest.$ac_ext
3086 cat >>conftest.$ac_ext <<_ACEOF
3087 /* end confdefs.h.  */
3088 #include <sgtty.h>
3089 Autoconf TIOCGETP
3090 _ACEOF
3091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3092   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3093   ac_cv_prog_gcc_traditional=yes
3094 else
3095   ac_cv_prog_gcc_traditional=no
3096 fi
3097 rm -f conftest*
3098
3099
3100   if test $ac_cv_prog_gcc_traditional = no; then
3101     cat >conftest.$ac_ext <<_ACEOF
3102 /* confdefs.h.  */
3103 _ACEOF
3104 cat confdefs.h >>conftest.$ac_ext
3105 cat >>conftest.$ac_ext <<_ACEOF
3106 /* end confdefs.h.  */
3107 #include <termio.h>
3108 Autoconf TCGETA
3109 _ACEOF
3110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3111   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3112   ac_cv_prog_gcc_traditional=yes
3113 fi
3114 rm -f conftest*
3115
3116   fi
3117 fi
3118 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3119 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3120   if test $ac_cv_prog_gcc_traditional = yes; then
3121     CC="$CC -traditional"
3122   fi
3123 fi
3124
3125 echo "$as_me:$LINENO: checking whether we are using SUNPro C" >&5
3126 echo $ECHO_N "checking whether we are using SUNPro C... $ECHO_C" >&6
3127 if test "${ac_cv_prog_suncc+set}" = set; then
3128   echo $ECHO_N "(cached) $ECHO_C" >&6
3129 else
3130   cat > conftest.c <<EOF
3131 #ifdef __SUNPRO_C
3132   yes;
3133 #endif
3134 EOF
3135 if { ac_try='${CC-cc} -E conftest.c'
3136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3137   (eval $ac_try) 2>&5
3138   ac_status=$?
3139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140   (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3141   ac_cv_prog_suncc=yes
3142 else
3143   ac_cv_prog_suncc=no
3144 fi
3145 fi
3146 echo "$as_me:$LINENO: result: $ac_cv_prog_suncc" >&5
3147 echo "${ECHO_T}$ac_cv_prog_suncc" >&6
3148 if test -n "$ac_tool_prefix"; then
3149   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3150 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3151 echo "$as_me:$LINENO: checking for $ac_word" >&5
3152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3153 if test "${ac_cv_prog_RANLIB+set}" = set; then
3154   echo $ECHO_N "(cached) $ECHO_C" >&6
3155 else
3156   if test -n "$RANLIB"; then
3157   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3158 else
3159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3160 for as_dir in $PATH
3161 do
3162   IFS=$as_save_IFS
3163   test -z "$as_dir" && as_dir=.
3164   for ac_exec_ext in '' $ac_executable_extensions; do
3165   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3166     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3167     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3168     break 2
3169   fi
3170 done
3171 done
3172
3173 fi
3174 fi
3175 RANLIB=$ac_cv_prog_RANLIB
3176 if test -n "$RANLIB"; then
3177   echo "$as_me:$LINENO: result: $RANLIB" >&5
3178 echo "${ECHO_T}$RANLIB" >&6
3179 else
3180   echo "$as_me:$LINENO: result: no" >&5
3181 echo "${ECHO_T}no" >&6
3182 fi
3183
3184 fi
3185 if test -z "$ac_cv_prog_RANLIB"; then
3186   ac_ct_RANLIB=$RANLIB
3187   # Extract the first word of "ranlib", so it can be a program name with args.
3188 set dummy ranlib; ac_word=$2
3189 echo "$as_me:$LINENO: checking for $ac_word" >&5
3190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3191 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3192   echo $ECHO_N "(cached) $ECHO_C" >&6
3193 else
3194   if test -n "$ac_ct_RANLIB"; then
3195   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3196 else
3197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198 for as_dir in $PATH
3199 do
3200   IFS=$as_save_IFS
3201   test -z "$as_dir" && as_dir=.
3202   for ac_exec_ext in '' $ac_executable_extensions; do
3203   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3204     ac_cv_prog_ac_ct_RANLIB="ranlib"
3205     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3206     break 2
3207   fi
3208 done
3209 done
3210
3211   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3212 fi
3213 fi
3214 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3215 if test -n "$ac_ct_RANLIB"; then
3216   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3217 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3218 else
3219   echo "$as_me:$LINENO: result: no" >&5
3220 echo "${ECHO_T}no" >&6
3221 fi
3222
3223   RANLIB=$ac_ct_RANLIB
3224 else
3225   RANLIB="$ac_cv_prog_RANLIB"
3226 fi
3227
3228
3229 # Check whether --enable-largefile or --disable-largefile was given.
3230 if test "${enable_largefile+set}" = set; then
3231   enableval="$enable_largefile"
3232
3233 fi;
3234 if test "$enable_largefile" != no; then
3235
3236   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3237 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3238 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3239   echo $ECHO_N "(cached) $ECHO_C" >&6
3240 else
3241   ac_cv_sys_largefile_CC=no
3242      if test "$GCC" != yes; then
3243        ac_save_CC=$CC
3244        while :; do
3245          # IRIX 6.2 and later do not support large files by default,
3246          # so use the C compiler's -n32 option if that helps.
3247          cat >conftest.$ac_ext <<_ACEOF
3248 /* confdefs.h.  */
3249 _ACEOF
3250 cat confdefs.h >>conftest.$ac_ext
3251 cat >>conftest.$ac_ext <<_ACEOF
3252 /* end confdefs.h.  */
3253 #include <sys/types.h>
3254  /* Check that off_t can represent 2**63 - 1 correctly.
3255     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3256     since some C++ compilers masquerading as C compilers
3257     incorrectly reject 9223372036854775807.  */
3258 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3259   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3260                        && LARGE_OFF_T % 2147483647 == 1)
3261                       ? 1 : -1];
3262 int
3263 main ()
3264 {
3265
3266   ;
3267   return 0;
3268 }
3269 _ACEOF
3270          rm -f conftest.$ac_objext
3271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3272   (eval $ac_compile) 2>conftest.er1
3273   ac_status=$?
3274   grep -v '^ *+' conftest.er1 >conftest.err
3275   rm -f conftest.er1
3276   cat conftest.err >&5
3277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278   (exit $ac_status); } &&
3279          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3281   (eval $ac_try) 2>&5
3282   ac_status=$?
3283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284   (exit $ac_status); }; } &&
3285          { ac_try='test -s conftest.$ac_objext'
3286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3287   (eval $ac_try) 2>&5
3288   ac_status=$?
3289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290   (exit $ac_status); }; }; then
3291   break
3292 else
3293   echo "$as_me: failed program was:" >&5
3294 sed 's/^/| /' conftest.$ac_ext >&5
3295
3296 fi
3297 rm -f conftest.err conftest.$ac_objext
3298          CC="$CC -n32"
3299          rm -f conftest.$ac_objext
3300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3301   (eval $ac_compile) 2>conftest.er1
3302   ac_status=$?
3303   grep -v '^ *+' conftest.er1 >conftest.err
3304   rm -f conftest.er1
3305   cat conftest.err >&5
3306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307   (exit $ac_status); } &&
3308          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3310   (eval $ac_try) 2>&5
3311   ac_status=$?
3312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313   (exit $ac_status); }; } &&
3314          { ac_try='test -s conftest.$ac_objext'
3315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3316   (eval $ac_try) 2>&5
3317   ac_status=$?
3318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319   (exit $ac_status); }; }; then
3320   ac_cv_sys_largefile_CC=' -n32'; break
3321 else
3322   echo "$as_me: failed program was:" >&5
3323 sed 's/^/| /' conftest.$ac_ext >&5
3324
3325 fi
3326 rm -f conftest.err conftest.$ac_objext
3327          break
3328        done
3329        CC=$ac_save_CC
3330        rm -f conftest.$ac_ext
3331     fi
3332 fi
3333 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3334 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3335   if test "$ac_cv_sys_largefile_CC" != no; then
3336     CC=$CC$ac_cv_sys_largefile_CC
3337   fi
3338
3339   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3340 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3341 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3342   echo $ECHO_N "(cached) $ECHO_C" >&6
3343 else
3344   while :; do
3345   ac_cv_sys_file_offset_bits=no
3346   cat >conftest.$ac_ext <<_ACEOF
3347 /* confdefs.h.  */
3348 _ACEOF
3349 cat confdefs.h >>conftest.$ac_ext
3350 cat >>conftest.$ac_ext <<_ACEOF
3351 /* end confdefs.h.  */
3352 #include <sys/types.h>
3353  /* Check that off_t can represent 2**63 - 1 correctly.
3354     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3355     since some C++ compilers masquerading as C compilers
3356     incorrectly reject 9223372036854775807.  */
3357 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3358   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3359                        && LARGE_OFF_T % 2147483647 == 1)
3360                       ? 1 : -1];
3361 int
3362 main ()
3363 {
3364
3365   ;
3366   return 0;
3367 }
3368 _ACEOF
3369 rm -f conftest.$ac_objext
3370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3371   (eval $ac_compile) 2>conftest.er1
3372   ac_status=$?
3373   grep -v '^ *+' conftest.er1 >conftest.err
3374   rm -f conftest.er1
3375   cat conftest.err >&5
3376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377   (exit $ac_status); } &&
3378          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3380   (eval $ac_try) 2>&5
3381   ac_status=$?
3382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383   (exit $ac_status); }; } &&
3384          { ac_try='test -s conftest.$ac_objext'
3385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3386   (eval $ac_try) 2>&5
3387   ac_status=$?
3388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389   (exit $ac_status); }; }; then
3390   break
3391 else
3392   echo "$as_me: failed program was:" >&5
3393 sed 's/^/| /' conftest.$ac_ext >&5
3394
3395 fi
3396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3397   cat >conftest.$ac_ext <<_ACEOF
3398 /* confdefs.h.  */
3399 _ACEOF
3400 cat confdefs.h >>conftest.$ac_ext
3401 cat >>conftest.$ac_ext <<_ACEOF
3402 /* end confdefs.h.  */
3403 #define _FILE_OFFSET_BITS 64
3404 #include <sys/types.h>
3405  /* Check that off_t can represent 2**63 - 1 correctly.
3406     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3407     since some C++ compilers masquerading as C compilers
3408     incorrectly reject 9223372036854775807.  */
3409 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3410   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3411                        && LARGE_OFF_T % 2147483647 == 1)
3412                       ? 1 : -1];
3413 int
3414 main ()
3415 {
3416
3417   ;
3418   return 0;
3419 }
3420 _ACEOF
3421 rm -f conftest.$ac_objext
3422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3423   (eval $ac_compile) 2>conftest.er1
3424   ac_status=$?
3425   grep -v '^ *+' conftest.er1 >conftest.err
3426   rm -f conftest.er1
3427   cat conftest.err >&5
3428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429   (exit $ac_status); } &&
3430          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3432   (eval $ac_try) 2>&5
3433   ac_status=$?
3434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435   (exit $ac_status); }; } &&
3436          { ac_try='test -s conftest.$ac_objext'
3437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3438   (eval $ac_try) 2>&5
3439   ac_status=$?
3440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441   (exit $ac_status); }; }; then
3442   ac_cv_sys_file_offset_bits=64; break
3443 else
3444   echo "$as_me: failed program was:" >&5
3445 sed 's/^/| /' conftest.$ac_ext >&5
3446
3447 fi
3448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3449   break
3450 done
3451 fi
3452 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3453 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3454 if test "$ac_cv_sys_file_offset_bits" != no; then
3455
3456 cat >>confdefs.h <<_ACEOF
3457 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3458 _ACEOF
3459
3460 fi
3461 rm -f conftest*
3462   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3463 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3464 if test "${ac_cv_sys_large_files+set}" = set; then
3465   echo $ECHO_N "(cached) $ECHO_C" >&6
3466 else
3467   while :; do
3468   ac_cv_sys_large_files=no
3469   cat >conftest.$ac_ext <<_ACEOF
3470 /* confdefs.h.  */
3471 _ACEOF
3472 cat confdefs.h >>conftest.$ac_ext
3473 cat >>conftest.$ac_ext <<_ACEOF
3474 /* end confdefs.h.  */
3475 #include <sys/types.h>
3476  /* Check that off_t can represent 2**63 - 1 correctly.
3477     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3478     since some C++ compilers masquerading as C compilers
3479     incorrectly reject 9223372036854775807.  */
3480 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3481   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3482                        && LARGE_OFF_T % 2147483647 == 1)
3483                       ? 1 : -1];
3484 int
3485 main ()
3486 {
3487
3488   ;
3489   return 0;
3490 }
3491 _ACEOF
3492 rm -f conftest.$ac_objext
3493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3494   (eval $ac_compile) 2>conftest.er1
3495   ac_status=$?
3496   grep -v '^ *+' conftest.er1 >conftest.err
3497   rm -f conftest.er1
3498   cat conftest.err >&5
3499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500   (exit $ac_status); } &&
3501          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3503   (eval $ac_try) 2>&5
3504   ac_status=$?
3505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506   (exit $ac_status); }; } &&
3507          { ac_try='test -s conftest.$ac_objext'
3508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3509   (eval $ac_try) 2>&5
3510   ac_status=$?
3511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512   (exit $ac_status); }; }; then
3513   break
3514 else
3515   echo "$as_me: failed program was:" >&5
3516 sed 's/^/| /' conftest.$ac_ext >&5
3517
3518 fi
3519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3520   cat >conftest.$ac_ext <<_ACEOF
3521 /* confdefs.h.  */
3522 _ACEOF
3523 cat confdefs.h >>conftest.$ac_ext
3524 cat >>conftest.$ac_ext <<_ACEOF
3525 /* end confdefs.h.  */
3526 #define _LARGE_FILES 1
3527 #include <sys/types.h>
3528  /* Check that off_t can represent 2**63 - 1 correctly.
3529     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3530     since some C++ compilers masquerading as C compilers
3531     incorrectly reject 9223372036854775807.  */
3532 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3533   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3534                        && LARGE_OFF_T % 2147483647 == 1)
3535                       ? 1 : -1];
3536 int
3537 main ()
3538 {
3539
3540   ;
3541   return 0;
3542 }
3543 _ACEOF
3544 rm -f conftest.$ac_objext
3545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3546   (eval $ac_compile) 2>conftest.er1
3547   ac_status=$?
3548   grep -v '^ *+' conftest.er1 >conftest.err
3549   rm -f conftest.er1
3550   cat conftest.err >&5
3551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552   (exit $ac_status); } &&
3553          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3555   (eval $ac_try) 2>&5
3556   ac_status=$?
3557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558   (exit $ac_status); }; } &&
3559          { ac_try='test -s conftest.$ac_objext'
3560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3561   (eval $ac_try) 2>&5
3562   ac_status=$?
3563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564   (exit $ac_status); }; }; then
3565   ac_cv_sys_large_files=1; break
3566 else
3567   echo "$as_me: failed program was:" >&5
3568 sed 's/^/| /' conftest.$ac_ext >&5
3569
3570 fi
3571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3572   break
3573 done
3574 fi
3575 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3576 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3577 if test "$ac_cv_sys_large_files" != no; then
3578
3579 cat >>confdefs.h <<_ACEOF
3580 #define _LARGE_FILES $ac_cv_sys_large_files
3581 _ACEOF
3582
3583 fi
3584 rm -f conftest*
3585 fi
3586
3587
3588 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3589 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3590 if test "${ac_cv_c_bigendian+set}" = set; then
3591   echo $ECHO_N "(cached) $ECHO_C" >&6
3592 else
3593   # See if sys/param.h defines the BYTE_ORDER macro.
3594 cat >conftest.$ac_ext <<_ACEOF
3595 /* confdefs.h.  */
3596 _ACEOF
3597 cat confdefs.h >>conftest.$ac_ext
3598 cat >>conftest.$ac_ext <<_ACEOF
3599 /* end confdefs.h.  */
3600 #include <sys/types.h>
3601 #include <sys/param.h>
3602
3603 int
3604 main ()
3605 {
3606 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3607  bogus endian macros
3608 #endif
3609
3610   ;
3611   return 0;
3612 }
3613 _ACEOF
3614 rm -f conftest.$ac_objext
3615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3616   (eval $ac_compile) 2>conftest.er1
3617   ac_status=$?
3618   grep -v '^ *+' conftest.er1 >conftest.err
3619   rm -f conftest.er1
3620   cat conftest.err >&5
3621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622   (exit $ac_status); } &&
3623          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3625   (eval $ac_try) 2>&5
3626   ac_status=$?
3627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628   (exit $ac_status); }; } &&
3629          { ac_try='test -s conftest.$ac_objext'
3630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3631   (eval $ac_try) 2>&5
3632   ac_status=$?
3633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634   (exit $ac_status); }; }; then
3635   # It does; now see whether it defined to BIG_ENDIAN or not.
3636 cat >conftest.$ac_ext <<_ACEOF
3637 /* confdefs.h.  */
3638 _ACEOF
3639 cat confdefs.h >>conftest.$ac_ext
3640 cat >>conftest.$ac_ext <<_ACEOF
3641 /* end confdefs.h.  */
3642 #include <sys/types.h>
3643 #include <sys/param.h>
3644
3645 int
3646 main ()
3647 {
3648 #if BYTE_ORDER != BIG_ENDIAN
3649  not big endian
3650 #endif
3651
3652   ;
3653   return 0;
3654 }
3655 _ACEOF
3656 rm -f conftest.$ac_objext
3657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3658   (eval $ac_compile) 2>conftest.er1
3659   ac_status=$?
3660   grep -v '^ *+' conftest.er1 >conftest.err
3661   rm -f conftest.er1
3662   cat conftest.err >&5
3663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664   (exit $ac_status); } &&
3665          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3667   (eval $ac_try) 2>&5
3668   ac_status=$?
3669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670   (exit $ac_status); }; } &&
3671          { ac_try='test -s conftest.$ac_objext'
3672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3673   (eval $ac_try) 2>&5
3674   ac_status=$?
3675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676   (exit $ac_status); }; }; then
3677   ac_cv_c_bigendian=yes
3678 else
3679   echo "$as_me: failed program was:" >&5
3680 sed 's/^/| /' conftest.$ac_ext >&5
3681
3682 ac_cv_c_bigendian=no
3683 fi
3684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3685 else
3686   echo "$as_me: failed program was:" >&5
3687 sed 's/^/| /' conftest.$ac_ext >&5
3688
3689 # It does not; compile a test program.
3690 if test "$cross_compiling" = yes; then
3691   # try to guess the endianness by grepping values into an object file
3692   ac_cv_c_bigendian=unknown
3693   cat >conftest.$ac_ext <<_ACEOF
3694 /* confdefs.h.  */
3695 _ACEOF
3696 cat confdefs.h >>conftest.$ac_ext
3697 cat >>conftest.$ac_ext <<_ACEOF
3698 /* end confdefs.h.  */
3699 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3700 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3701 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3702 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3703 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3704 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3705 int
3706 main ()
3707 {
3708  _ascii (); _ebcdic ();
3709   ;
3710   return 0;
3711 }
3712 _ACEOF
3713 rm -f conftest.$ac_objext
3714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3715   (eval $ac_compile) 2>conftest.er1
3716   ac_status=$?
3717   grep -v '^ *+' conftest.er1 >conftest.err
3718   rm -f conftest.er1
3719   cat conftest.err >&5
3720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721   (exit $ac_status); } &&
3722          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3724   (eval $ac_try) 2>&5
3725   ac_status=$?
3726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727   (exit $ac_status); }; } &&
3728          { ac_try='test -s conftest.$ac_objext'
3729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3730   (eval $ac_try) 2>&5
3731   ac_status=$?
3732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733   (exit $ac_status); }; }; then
3734   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3735   ac_cv_c_bigendian=yes
3736 fi
3737 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3738   if test "$ac_cv_c_bigendian" = unknown; then
3739     ac_cv_c_bigendian=no
3740   else
3741     # finding both strings is unlikely to happen, but who knows?
3742     ac_cv_c_bigendian=unknown
3743   fi
3744 fi
3745 else
3746   echo "$as_me: failed program was:" >&5
3747 sed 's/^/| /' conftest.$ac_ext >&5
3748
3749 fi
3750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3751 else
3752   cat >conftest.$ac_ext <<_ACEOF
3753 /* confdefs.h.  */
3754 _ACEOF
3755 cat confdefs.h >>conftest.$ac_ext
3756 cat >>conftest.$ac_ext <<_ACEOF
3757 /* end confdefs.h.  */
3758 int
3759 main ()
3760 {
3761   /* Are we little or big endian?  From Harbison&Steele.  */
3762   union
3763   {
3764     long l;
3765     char c[sizeof (long)];
3766   } u;
3767   u.l = 1;
3768   exit (u.c[sizeof (long) - 1] == 1);
3769 }
3770 _ACEOF
3771 rm -f conftest$ac_exeext
3772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3773   (eval $ac_link) 2>&5
3774   ac_status=$?
3775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3778   (eval $ac_try) 2>&5
3779   ac_status=$?
3780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781   (exit $ac_status); }; }; then
3782   ac_cv_c_bigendian=no
3783 else
3784   echo "$as_me: program exited with status $ac_status" >&5
3785 echo "$as_me: failed program was:" >&5
3786 sed 's/^/| /' conftest.$ac_ext >&5
3787
3788 ( exit $ac_status )
3789 ac_cv_c_bigendian=yes
3790 fi
3791 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3792 fi
3793 fi
3794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3795 fi
3796 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3797 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3798 case $ac_cv_c_bigendian in
3799   yes)
3800
3801 cat >>confdefs.h <<\_ACEOF
3802 #define WORDS_BIGENDIAN 1
3803 _ACEOF
3804  ;;
3805   no)
3806      ;;
3807   *)
3808     { { echo "$as_me:$LINENO: error: unknown endianness
3809 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3810 echo "$as_me: error: unknown endianness
3811 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3812    { (exit 1); exit 1; }; } ;;
3813 esac
3814
3815
3816 # Extract the first word of "gmake", so it can be a program name with args.
3817 set dummy gmake; ac_word=$2
3818 echo "$as_me:$LINENO: checking for $ac_word" >&5
3819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3820 if test "${ac_cv_prog_GMAKE+set}" = set; then
3821   echo $ECHO_N "(cached) $ECHO_C" >&6
3822 else
3823   if test -n "$GMAKE"; then
3824   ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
3825 else
3826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3827 for as_dir in $PATH
3828 do
3829   IFS=$as_save_IFS
3830   test -z "$as_dir" && as_dir=.
3831   for ac_exec_ext in '' $ac_executable_extensions; do
3832   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3833     ac_cv_prog_GMAKE="yes"
3834     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3835     break 2
3836   fi
3837 done
3838 done
3839
3840   test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
3841 fi
3842 fi
3843 GMAKE=$ac_cv_prog_GMAKE
3844 if test -n "$GMAKE"; then
3845   echo "$as_me:$LINENO: result: $GMAKE" >&5
3846 echo "${ECHO_T}$GMAKE" >&6
3847 else
3848   echo "$as_me:$LINENO: result: no" >&5
3849 echo "${ECHO_T}no" >&6
3850 fi
3851
3852 if test $GMAKE = no; then
3853   # Extract the first word of "make", so it can be a program name with args.
3854 set dummy make; ac_word=$2
3855 echo "$as_me:$LINENO: checking for $ac_word" >&5
3856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3857 if test "${ac_cv_path_MAKE+set}" = set; then
3858   echo $ECHO_N "(cached) $ECHO_C" >&6
3859 else
3860   case $MAKE in
3861   [\\/]* | ?:[\\/]*)
3862   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
3863   ;;
3864   *)
3865   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3866 for as_dir in $PATH
3867 do
3868   IFS=$as_save_IFS
3869   test -z "$as_dir" && as_dir=.
3870   for ac_exec_ext in '' $ac_executable_extensions; do
3871   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3872     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
3873     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3874     break 2
3875   fi
3876 done
3877 done
3878
3879   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
3880   ;;
3881 esac
3882 fi
3883 MAKE=$ac_cv_path_MAKE
3884
3885 if test -n "$MAKE"; then
3886   echo "$as_me:$LINENO: result: $MAKE" >&5
3887 echo "${ECHO_T}$MAKE" >&6
3888 else
3889   echo "$as_me:$LINENO: result: no" >&5
3890 echo "${ECHO_T}no" >&6
3891 fi
3892
3893 else
3894   # Extract the first word of "gmake", so it can be a program name with args.
3895 set dummy gmake; ac_word=$2
3896 echo "$as_me:$LINENO: checking for $ac_word" >&5
3897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3898 if test "${ac_cv_path_MAKE+set}" = set; then
3899   echo $ECHO_N "(cached) $ECHO_C" >&6
3900 else
3901   case $MAKE in
3902   [\\/]* | ?:[\\/]*)
3903   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
3904   ;;
3905   *)
3906   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907 for as_dir in $PATH
3908 do
3909   IFS=$as_save_IFS
3910   test -z "$as_dir" && as_dir=.
3911   for ac_exec_ext in '' $ac_executable_extensions; do
3912   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3913     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
3914     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3915     break 2
3916   fi
3917 done
3918 done
3919
3920   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
3921   ;;
3922 esac
3923 fi
3924 MAKE=$ac_cv_path_MAKE
3925
3926 if test -n "$MAKE"; then
3927   echo "$as_me:$LINENO: result: $MAKE" >&5
3928 echo "${ECHO_T}$MAKE" >&6
3929 else
3930   echo "$as_me:$LINENO: result: no" >&5
3931 echo "${ECHO_T}no" >&6
3932 fi
3933
3934 fi
3935 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
3936 if test -z "$makever"; then
3937   { { echo "$as_me:$LINENO: error: GNU Make is not installed.  Please download and install it
3938                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
3939 echo "$as_me: error: GNU Make is not installed.  Please download and install it
3940                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
3941    { (exit 1); exit 1; }; }
3942 fi
3943
3944   echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
3945 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
3946 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
3947   echo $ECHO_N "(cached) $ECHO_C" >&6
3948 else
3949   ac_check_lib_save_LIBS=$LIBS
3950 LIBS="-lltdl  $LIBS"
3951 cat >conftest.$ac_ext <<_ACEOF
3952 /* confdefs.h.  */
3953 _ACEOF
3954 cat confdefs.h >>conftest.$ac_ext
3955 cat >>conftest.$ac_ext <<_ACEOF
3956 /* end confdefs.h.  */
3957
3958 /* Override any gcc2 internal prototype to avoid an error.  */
3959 #ifdef __cplusplus
3960 extern "C"
3961 #endif
3962 /* We use char because int might match the return type of a gcc2
3963    builtin and then its argument prototype would still apply.  */
3964 char lt_dlinit ();
3965 int
3966 main ()
3967 {
3968 lt_dlinit ();
3969   ;
3970   return 0;
3971 }
3972 _ACEOF
3973 rm -f conftest.$ac_objext conftest$ac_exeext
3974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3975   (eval $ac_link) 2>conftest.er1
3976   ac_status=$?
3977   grep -v '^ *+' conftest.er1 >conftest.err
3978   rm -f conftest.er1
3979   cat conftest.err >&5
3980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981   (exit $ac_status); } &&
3982          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3984   (eval $ac_try) 2>&5
3985   ac_status=$?
3986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987   (exit $ac_status); }; } &&
3988          { ac_try='test -s conftest$ac_exeext'
3989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3990   (eval $ac_try) 2>&5
3991   ac_status=$?
3992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993   (exit $ac_status); }; }; then
3994   ac_cv_lib_ltdl_lt_dlinit=yes
3995 else
3996   echo "$as_me: failed program was:" >&5
3997 sed 's/^/| /' conftest.$ac_ext >&5
3998
3999 ac_cv_lib_ltdl_lt_dlinit=no
4000 fi
4001 rm -f conftest.err conftest.$ac_objext \
4002       conftest$ac_exeext conftest.$ac_ext
4003 LIBS=$ac_check_lib_save_LIBS
4004 fi
4005 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
4006 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
4007 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
4008   test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
4009 else
4010   if test x"$enable_ltdl_install" = xno; then
4011      { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
4012 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
4013    else
4014      enable_ltdl_install=yes
4015    fi
4016
4017 fi
4018
4019   if test x"$enable_ltdl_install" = x"yes"; then
4020     ac_configure_args="$ac_configure_args --enable-ltdl-install"
4021     LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
4022     LTDLINCL='-I${top_srcdir}/''libltdl'
4023     LIBLTDLPATH=libltdl
4024   else
4025     ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4026     LIBLTDL="-lltdl"
4027     LTDLINCL=
4028     LIBLTDLPATH=
4029   fi
4030
4031   # For backwards non-gettext consistent compatibility...
4032   INCLTDL="$LTDLINCL"
4033
4034
4035 # Check whether --enable-shared or --disable-shared was given.
4036 if test "${enable_shared+set}" = set; then
4037   enableval="$enable_shared"
4038   p=${PACKAGE-default}
4039     case $enableval in
4040     yes) enable_shared=yes ;;
4041     no) enable_shared=no ;;
4042     *)
4043       enable_shared=no
4044       # Look at the argument we got.  We use all the common list separators.
4045       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4046       for pkg in $enableval; do
4047         IFS="$lt_save_ifs"
4048         if test "X$pkg" = "X$p"; then
4049           enable_shared=yes
4050         fi
4051       done
4052       IFS="$lt_save_ifs"
4053       ;;
4054     esac
4055 else
4056   enable_shared=yes
4057 fi;
4058
4059 # Check whether --enable-static or --disable-static was given.
4060 if test "${enable_static+set}" = set; then
4061   enableval="$enable_static"
4062   p=${PACKAGE-default}
4063     case $enableval in
4064     yes) enable_static=yes ;;
4065     no) enable_static=no ;;
4066     *)
4067      enable_static=no
4068       # Look at the argument we got.  We use all the common list separators.
4069       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4070       for pkg in $enableval; do
4071         IFS="$lt_save_ifs"
4072         if test "X$pkg" = "X$p"; then
4073           enable_static=yes
4074         fi
4075       done
4076       IFS="$lt_save_ifs"
4077       ;;
4078     esac
4079 else
4080   enable_static=yes
4081 fi;
4082
4083 # Check whether --enable-fast-install or --disable-fast-install was given.
4084 if test "${enable_fast_install+set}" = set; then
4085   enableval="$enable_fast_install"
4086   p=${PACKAGE-default}
4087     case $enableval in
4088     yes) enable_fast_install=yes ;;
4089     no) enable_fast_install=no ;;
4090     *)
4091       enable_fast_install=no
4092       # Look at the argument we got.  We use all the common list separators.
4093       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4094       for pkg in $enableval; do
4095         IFS="$lt_save_ifs"
4096         if test "X$pkg" = "X$p"; then
4097           enable_fast_install=yes
4098         fi
4099       done
4100       IFS="$lt_save_ifs"
4101       ;;
4102     esac
4103 else
4104   enable_fast_install=yes
4105 fi;
4106
4107 ac_aux_dir=
4108 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
4109   if test -f $ac_dir/install-sh; then
4110     ac_aux_dir=$ac_dir
4111     ac_install_sh="$ac_aux_dir/install-sh -c"
4112     break
4113   elif test -f $ac_dir/install.sh; then
4114     ac_aux_dir=$ac_dir
4115     ac_install_sh="$ac_aux_dir/install.sh -c"
4116     break
4117   elif test -f $ac_dir/shtool; then
4118     ac_aux_dir=$ac_dir
4119     ac_install_sh="$ac_aux_dir/shtool install -c"
4120     break
4121   fi
4122 done
4123 if test -z "$ac_aux_dir"; then
4124   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
4125 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
4126    { (exit 1); exit 1; }; }
4127 fi
4128 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
4129 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
4130 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
4131
4132 # Make sure we can run config.sub.
4133 $ac_config_sub sun4 >/dev/null 2>&1 ||
4134   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4135 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4136    { (exit 1); exit 1; }; }
4137
4138 echo "$as_me:$LINENO: checking build system type" >&5
4139 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4140 if test "${ac_cv_build+set}" = set; then
4141   echo $ECHO_N "(cached) $ECHO_C" >&6
4142 else
4143   ac_cv_build_alias=$build_alias
4144 test -z "$ac_cv_build_alias" &&
4145   ac_cv_build_alias=`$ac_config_guess`
4146 test -z "$ac_cv_build_alias" &&
4147   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4148 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4149    { (exit 1); exit 1; }; }
4150 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4151   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4152 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4153    { (exit 1); exit 1; }; }
4154
4155 fi
4156 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4157 echo "${ECHO_T}$ac_cv_build" >&6
4158 build=$ac_cv_build
4159 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4160 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4161 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4162
4163
4164 echo "$as_me:$LINENO: checking host system type" >&5
4165 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4166 if test "${ac_cv_host+set}" = set; then
4167   echo $ECHO_N "(cached) $ECHO_C" >&6
4168 else
4169   ac_cv_host_alias=$host_alias
4170 test -z "$ac_cv_host_alias" &&
4171   ac_cv_host_alias=$ac_cv_build_alias
4172 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4173   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4174 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4175    { (exit 1); exit 1; }; }
4176
4177 fi
4178 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4179 echo "${ECHO_T}$ac_cv_host" >&6
4180 host=$ac_cv_host
4181 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4182 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4183 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4184
4185
4186 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4187 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4188 if test "${lt_cv_path_SED+set}" = set; then
4189   echo $ECHO_N "(cached) $ECHO_C" >&6
4190 else
4191   # Loop through the user's path and test for sed and gsed.
4192 # Then use that list of sed's as ones to test for truncation.
4193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4194 for as_dir in $PATH
4195 do
4196   IFS=$as_save_IFS
4197   test -z "$as_dir" && as_dir=.
4198   for lt_ac_prog in sed gsed; do
4199     for ac_exec_ext in '' $ac_executable_extensions; do
4200       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4201         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4202       fi
4203     done
4204   done
4205 done
4206 lt_ac_max=0
4207 lt_ac_count=0
4208 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4209 # along with /bin/sed that truncates output.
4210 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4211   test ! -f $lt_ac_sed && break
4212   cat /dev/null > conftest.in
4213   lt_ac_count=0
4214   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4215   # Check for GNU sed and select it if it is found.
4216   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4217     lt_cv_path_SED=$lt_ac_sed
4218     break
4219   fi
4220   while true; do
4221     cat conftest.in conftest.in >conftest.tmp
4222     mv conftest.tmp conftest.in
4223     cp conftest.in conftest.nl
4224     echo >>conftest.nl
4225     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4226     cmp -s conftest.out conftest.nl || break
4227     # 10000 chars as input seems more than enough
4228     test $lt_ac_count -gt 10 && break
4229     lt_ac_count=`expr $lt_ac_count + 1`
4230     if test $lt_ac_count -gt $lt_ac_max; then
4231       lt_ac_max=$lt_ac_count
4232       lt_cv_path_SED=$lt_ac_sed
4233     fi
4234   done
4235 done
4236 SED=$lt_cv_path_SED
4237
4238 fi
4239
4240 echo "$as_me:$LINENO: result: $SED" >&5
4241 echo "${ECHO_T}$SED" >&6
4242
4243
4244 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4245 if test "${with_gnu_ld+set}" = set; then
4246   withval="$with_gnu_ld"
4247   test "$withval" = no || with_gnu_ld=yes
4248 else
4249   with_gnu_ld=no
4250 fi;
4251 ac_prog=ld
4252 if test "$GCC" = yes; then
4253   # Check if gcc -print-prog-name=ld gives a path.
4254   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4255 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4256   case $host in
4257   *-*-mingw*)
4258     # gcc leaves a trailing carriage return which upsets mingw
4259     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4260   *)
4261     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4262   esac
4263   case $ac_prog in
4264     # Accept absolute paths.
4265     [\\/]* | ?:[\\/]*)
4266       re_direlt='/[^/][^/]*/\.\./'
4267       # Canonicalize the pathname of ld
4268       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4269       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4270         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4271       done
4272       test -z "$LD" && LD="$ac_prog"
4273       ;;
4274   "")
4275     # If it fails, then pretend we aren't using GCC.
4276     ac_prog=ld
4277     ;;
4278   *)
4279     # If it is relative, then search for the first ld in PATH.
4280     with_gnu_ld=unknown
4281     ;;
4282   esac
4283 elif test "$with_gnu_ld" = yes; then
4284   echo "$as_me:$LINENO: checking for GNU ld" >&5
4285 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4286 else
4287   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4288 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4289 fi
4290 if test "${lt_cv_path_LD+set}" = set; then
4291   echo $ECHO_N "(cached) $ECHO_C" >&6
4292 else
4293   if test -z "$LD"; then
4294   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4295   for ac_dir in $PATH; do
4296     IFS="$lt_save_ifs"
4297     test -z "$ac_dir" && ac_dir=.
4298     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4299       lt_cv_path_LD="$ac_dir/$ac_prog"
4300       # Check to see if the program is GNU ld.  I'd rather use --version,
4301       # but apparently some GNU ld's only accept -v.
4302       # Break only if it was the GNU/non-GNU ld that we prefer.
4303       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4304       *GNU* | *'with BFD'*)
4305         test "$with_gnu_ld" != no && break
4306         ;;
4307       *)
4308         test "$with_gnu_ld" != yes && break
4309         ;;
4310       esac
4311     fi
4312   done
4313   IFS="$lt_save_ifs"
4314 else
4315   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4316 fi
4317 fi
4318
4319 LD="$lt_cv_path_LD"
4320 if test -n "$LD"; then
4321   echo "$as_me:$LINENO: result: $LD" >&5
4322 echo "${ECHO_T}$LD" >&6
4323 else
4324   echo "$as_me:$LINENO: result: no" >&5
4325 echo "${ECHO_T}no" >&6
4326 fi
4327 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4328 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4329    { (exit 1); exit 1; }; }
4330 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4331 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4332 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4333   echo $ECHO_N "(cached) $ECHO_C" >&6
4334 else
4335   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4336 case `$LD -v 2>&1 </dev/null` in
4337 *GNU* | *'with BFD'*)
4338   lt_cv_prog_gnu_ld=yes
4339   ;;
4340 *)
4341   lt_cv_prog_gnu_ld=no
4342   ;;
4343 esac
4344 fi
4345 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4346 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4347 with_gnu_ld=$lt_cv_prog_gnu_ld
4348
4349
4350 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4351 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4352 if test "${lt_cv_ld_reload_flag+set}" = set; then
4353   echo $ECHO_N "(cached) $ECHO_C" >&6
4354 else
4355   lt_cv_ld_reload_flag='-r'
4356 fi
4357 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4358 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4359 reload_flag=$lt_cv_ld_reload_flag
4360 case $reload_flag in
4361 "" | " "*) ;;
4362 *) reload_flag=" $reload_flag" ;;
4363 esac
4364 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4365
4366 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4367 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4368 if test "${lt_cv_path_NM+set}" = set; then
4369   echo $ECHO_N "(cached) $ECHO_C" >&6
4370 else
4371   if test -n "$NM"; then
4372   # Let the user override the test.
4373   lt_cv_path_NM="$NM"
4374 else
4375   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4376   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4377     IFS="$lt_save_ifs"
4378     test -z "$ac_dir" && ac_dir=.
4379     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4380     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4381       # Check to see if the nm accepts a BSD-compat flag.
4382       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4383       #   nm: unknown option "B" ignored
4384       # Tru64's nm complains that /dev/null is an invalid object file
4385       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4386       */dev/null* | *'Invalid file or object type'*)
4387         lt_cv_path_NM="$tmp_nm -B"
4388         break
4389         ;;
4390       *)
4391         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4392         */dev/null*)
4393           lt_cv_path_NM="$tmp_nm -p"
4394           break
4395           ;;
4396         *)
4397           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4398           continue # so that we can try to find one that supports BSD flags
4399           ;;
4400         esac
4401       esac
4402     fi
4403   done
4404   IFS="$lt_save_ifs"
4405   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4406 fi
4407 fi
4408 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4409 echo "${ECHO_T}$lt_cv_path_NM" >&6
4410 NM="$lt_cv_path_NM"
4411
4412 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4413 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4414 LN_S=$as_ln_s
4415 if test "$LN_S" = "ln -s"; then
4416   echo "$as_me:$LINENO: result: yes" >&5
4417 echo "${ECHO_T}yes" >&6
4418 else
4419   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4420 echo "${ECHO_T}no, using $LN_S" >&6
4421 fi
4422
4423 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4424 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4425 if test "${lt_cv_deplibs_check_method+set}" = set; then
4426   echo $ECHO_N "(cached) $ECHO_C" >&6
4427 else
4428   lt_cv_file_magic_cmd='$MAGIC_CMD'
4429 lt_cv_file_magic_test_file=
4430 lt_cv_deplibs_check_method='unknown'
4431 # Need to set the preceding variable on all platforms that support
4432 # interlibrary dependencies.
4433 # 'none' -- dependencies not supported.
4434 # `unknown' -- same as none, but documents that we really don't know.
4435 # 'pass_all' -- all dependencies passed with no checks.
4436 # 'test_compile' -- check by making test program.
4437 # 'file_magic [[regex]]' -- check by looking for files in library path
4438 # which responds to the $file_magic_cmd with a given extended regex.
4439 # If you have `file' or equivalent on your system and you're not sure
4440 # whether `pass_all' will *always* work, you probably want this one.
4441
4442 case $host_os in
4443 aix4* | aix5*)
4444   lt_cv_deplibs_check_method=pass_all
4445   ;;
4446
4447 beos*)
4448   lt_cv_deplibs_check_method=pass_all
4449   ;;
4450
4451 bsdi4*)
4452   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4453   lt_cv_file_magic_cmd='/usr/bin/file -L'
4454   lt_cv_file_magic_test_file=/shlib/libc.so
4455   ;;
4456
4457 cygwin*)
4458   # func_win32_libid is a shell function defined in ltmain.sh
4459   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4460   lt_cv_file_magic_cmd='func_win32_libid'
4461   ;;
4462
4463 mingw* | pw32*)
4464   # Base MSYS/MinGW do not provide the 'file' command needed by
4465   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4466   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4467   lt_cv_file_magic_cmd='$OBJDUMP -f'
4468   ;;
4469
4470 darwin* | rhapsody*)
4471   lt_cv_deplibs_check_method=pass_all
4472   ;;
4473
4474 freebsd* | kfreebsd*-gnu)
4475   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4476     case $host_cpu in
4477     i*86 )
4478       # Not sure whether the presence of OpenBSD here was a mistake.
4479       # Let's accept both of them until this is cleared up.
4480       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4481       lt_cv_file_magic_cmd=/usr/bin/file
4482       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4483       ;;
4484     esac
4485   else
4486     lt_cv_deplibs_check_method=pass_all
4487   fi
4488   ;;
4489
4490 gnu*)
4491   lt_cv_deplibs_check_method=pass_all
4492   ;;
4493
4494 hpux10.20* | hpux11*)
4495   lt_cv_file_magic_cmd=/usr/bin/file
4496   case "$host_cpu" in
4497   ia64*)
4498     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4499     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4500     ;;
4501   hppa*64*)
4502     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]'
4503     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4504     ;;
4505   *)
4506     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4507     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4508     ;;
4509   esac
4510   ;;
4511
4512 irix5* | irix6* | nonstopux*)
4513   case $LD in
4514   *-32|*"-32 ") libmagic=32-bit;;
4515   *-n32|*"-n32 ") libmagic=N32;;
4516   *-64|*"-64 ") libmagic=64-bit;;
4517   *) libmagic=never-match;;
4518   esac
4519   lt_cv_deplibs_check_method=pass_all
4520   ;;
4521
4522 # This must be Linux ELF.
4523 linux*)
4524   lt_cv_deplibs_check_method=pass_all
4525   ;;
4526
4527 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
4528   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4529     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4530   else
4531     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4532   fi
4533   ;;
4534
4535 newos6*)
4536   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4537   lt_cv_file_magic_cmd=/usr/bin/file
4538   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4539   ;;
4540
4541 nto-qnx*)
4542   lt_cv_deplibs_check_method=unknown
4543   ;;
4544
4545 openbsd*)
4546   lt_cv_file_magic_cmd=/usr/bin/file
4547   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4548   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4549     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4550   else
4551     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4552   fi
4553   ;;
4554
4555 osf3* | osf4* | osf5*)
4556   lt_cv_deplibs_check_method=pass_all
4557   ;;
4558
4559 sco3.2v5*)
4560   lt_cv_deplibs_check_method=pass_all
4561   ;;
4562
4563 solaris*)
4564   lt_cv_deplibs_check_method=pass_all
4565   ;;
4566
4567 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4568   case $host_vendor in
4569   motorola)
4570     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]'
4571     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4572     ;;
4573   ncr)
4574     lt_cv_deplibs_check_method=pass_all
4575     ;;
4576   sequent)
4577     lt_cv_file_magic_cmd='/bin/file'
4578     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4579     ;;
4580   sni)
4581     lt_cv_file_magic_cmd='/bin/file'
4582     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4583     lt_cv_file_magic_test_file=/lib/libc.so
4584     ;;
4585   siemens)
4586     lt_cv_deplibs_check_method=pass_all
4587     ;;
4588   esac
4589   ;;
4590
4591 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4592   lt_cv_deplibs_check_method=pass_all
4593   ;;
4594 esac
4595
4596 fi
4597 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4598 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4599 file_magic_cmd=$lt_cv_file_magic_cmd
4600 deplibs_check_method=$lt_cv_deplibs_check_method
4601 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4602
4603
4604
4605
4606 # If no C compiler was specified, use CC.
4607 LTCC=${LTCC-"$CC"}
4608
4609 # Allow CC to be a program name with arguments.
4610 compiler=$CC
4611
4612 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4613 if test "${enable_libtool_lock+set}" = set; then
4614   enableval="$enable_libtool_lock"
4615
4616 fi;
4617 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4618
4619 # Some flags need to be propagated to the compiler or linker for good
4620 # libtool support.
4621 case $host in
4622 ia64-*-hpux*)
4623   # Find out which ABI we are using.
4624   echo 'int i;' > conftest.$ac_ext
4625   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4626   (eval $ac_compile) 2>&5
4627   ac_status=$?
4628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629   (exit $ac_status); }; then
4630     case `/usr/bin/file conftest.$ac_objext` in
4631     *ELF-32*)
4632       HPUX_IA64_MODE="32"
4633       ;;
4634     *ELF-64*)
4635       HPUX_IA64_MODE="64"
4636       ;;
4637     esac
4638   fi
4639   rm -rf conftest*
4640   ;;
4641 *-*-irix6*)
4642   # Find out which ABI we are using.
4643   echo '#line 4643 "configure"' > conftest.$ac_ext
4644   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4645   (eval $ac_compile) 2>&5
4646   ac_status=$?
4647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648   (exit $ac_status); }; then
4649    if test "$lt_cv_prog_gnu_ld" = yes; then
4650     case `/usr/bin/file conftest.$ac_objext` in
4651     *32-bit*)
4652       LD="${LD-ld} -melf32bsmip"
4653       ;;
4654     *N32*)
4655       LD="${LD-ld} -melf32bmipn32"
4656       ;;
4657     *64-bit*)
4658       LD="${LD-ld} -melf64bmip"
4659       ;;
4660     esac
4661    else
4662     case `/usr/bin/file conftest.$ac_objext` in
4663     *32-bit*)
4664       LD="${LD-ld} -32"
4665       ;;
4666     *N32*)
4667       LD="${LD-ld} -n32"
4668       ;;
4669     *64-bit*)
4670       LD="${LD-ld} -64"
4671       ;;
4672     esac
4673    fi
4674   fi
4675   rm -rf conftest*
4676   ;;
4677
4678 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4679   # Find out which ABI we are using.
4680   echo 'int i;' > conftest.$ac_ext
4681   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4682   (eval $ac_compile) 2>&5
4683   ac_status=$?
4684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685   (exit $ac_status); }; then
4686     case "`/usr/bin/file conftest.o`" in
4687     *32-bit*)
4688       case $host in
4689         x86_64-*linux*)
4690           LD="${LD-ld} -m elf_i386"
4691           ;;
4692         ppc64-*linux*|powerpc64-*linux*)
4693           LD="${LD-ld} -m elf32ppclinux"
4694           ;;
4695         s390x-*linux*)
4696           LD="${LD-ld} -m elf_s390"
4697           ;;
4698         sparc64-*linux*)
4699           LD="${LD-ld} -m elf32_sparc"
4700           ;;
4701       esac
4702       ;;
4703     *64-bit*)
4704       case $host in
4705         x86_64-*linux*)
4706           LD="${LD-ld} -m elf_x86_64"
4707           ;;
4708         ppc*-*linux*|powerpc*-*linux*)
4709           LD="${LD-ld} -m elf64ppc"
4710           ;;
4711         s390*-*linux*)
4712           LD="${LD-ld} -m elf64_s390"
4713           ;;
4714         sparc*-*linux*)
4715           LD="${LD-ld} -m elf64_sparc"
4716           ;;
4717       esac
4718       ;;
4719     esac
4720   fi
4721   rm -rf conftest*
4722   ;;
4723
4724 *-*-sco3.2v5*)
4725   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4726   SAVE_CFLAGS="$CFLAGS"
4727   CFLAGS="$CFLAGS -belf"
4728   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4729 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4730 if test "${lt_cv_cc_needs_belf+set}" = set; then
4731   echo $ECHO_N "(cached) $ECHO_C" >&6
4732 else
4733   ac_ext=c
4734 ac_cpp='$CPP $CPPFLAGS'
4735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4738
4739      cat >conftest.$ac_ext <<_ACEOF
4740 /* confdefs.h.  */
4741 _ACEOF
4742 cat confdefs.h >>conftest.$ac_ext
4743 cat >>conftest.$ac_ext <<_ACEOF
4744 /* end confdefs.h.  */
4745
4746 int
4747 main ()
4748 {
4749
4750   ;
4751   return 0;
4752 }
4753 _ACEOF
4754 rm -f conftest.$ac_objext conftest$ac_exeext
4755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4756   (eval $ac_link) 2>conftest.er1
4757   ac_status=$?
4758   grep -v '^ *+' conftest.er1 >conftest.err
4759   rm -f conftest.er1
4760   cat conftest.err >&5
4761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762   (exit $ac_status); } &&
4763          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4765   (eval $ac_try) 2>&5
4766   ac_status=$?
4767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768   (exit $ac_status); }; } &&
4769          { ac_try='test -s conftest$ac_exeext'
4770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4771   (eval $ac_try) 2>&5
4772   ac_status=$?
4773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774   (exit $ac_status); }; }; then
4775   lt_cv_cc_needs_belf=yes
4776 else
4777   echo "$as_me: failed program was:" >&5
4778 sed 's/^/| /' conftest.$ac_ext >&5
4779
4780 lt_cv_cc_needs_belf=no
4781 fi
4782 rm -f conftest.err conftest.$ac_objext \
4783       conftest$ac_exeext conftest.$ac_ext
4784      ac_ext=c
4785 ac_cpp='$CPP $CPPFLAGS'
4786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4789
4790 fi
4791 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4792 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4793   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4794     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4795     CFLAGS="$SAVE_CFLAGS"
4796   fi
4797   ;;
4798
4799 esac
4800
4801 need_locks="$enable_libtool_lock"
4802
4803
4804 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4805 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4806 if test "${ac_cv_header_stdc+set}" = set; then
4807   echo $ECHO_N "(cached) $ECHO_C" >&6
4808 else
4809   cat >conftest.$ac_ext <<_ACEOF
4810 /* confdefs.h.  */
4811 _ACEOF
4812 cat confdefs.h >>conftest.$ac_ext
4813 cat >>conftest.$ac_ext <<_ACEOF
4814 /* end confdefs.h.  */
4815 #include <stdlib.h>
4816 #include <stdarg.h>
4817 #include <string.h>
4818 #include <float.h>
4819
4820 int
4821 main ()
4822 {
4823
4824   ;
4825   return 0;
4826 }
4827 _ACEOF
4828 rm -f conftest.$ac_objext
4829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4830   (eval $ac_compile) 2>conftest.er1
4831   ac_status=$?
4832   grep -v '^ *+' conftest.er1 >conftest.err
4833   rm -f conftest.er1
4834   cat conftest.err >&5
4835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836   (exit $ac_status); } &&
4837          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4839   (eval $ac_try) 2>&5
4840   ac_status=$?
4841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842   (exit $ac_status); }; } &&
4843          { ac_try='test -s conftest.$ac_objext'
4844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4845   (eval $ac_try) 2>&5
4846   ac_status=$?
4847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848   (exit $ac_status); }; }; then
4849   ac_cv_header_stdc=yes
4850 else
4851   echo "$as_me: failed program was:" >&5
4852 sed 's/^/| /' conftest.$ac_ext >&5
4853
4854 ac_cv_header_stdc=no
4855 fi
4856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4857
4858 if test $ac_cv_header_stdc = yes; then
4859   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4860   cat >conftest.$ac_ext <<_ACEOF
4861 /* confdefs.h.  */
4862 _ACEOF
4863 cat confdefs.h >>conftest.$ac_ext
4864 cat >>conftest.$ac_ext <<_ACEOF
4865 /* end confdefs.h.  */
4866 #include <string.h>
4867
4868 _ACEOF
4869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4870   $EGREP "memchr" >/dev/null 2>&1; then
4871   :
4872 else
4873   ac_cv_header_stdc=no
4874 fi
4875 rm -f conftest*
4876
4877 fi
4878
4879 if test $ac_cv_header_stdc = yes; then
4880   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4881   cat >conftest.$ac_ext <<_ACEOF
4882 /* confdefs.h.  */
4883 _ACEOF
4884 cat confdefs.h >>conftest.$ac_ext
4885 cat >>conftest.$ac_ext <<_ACEOF
4886 /* end confdefs.h.  */
4887 #include <stdlib.h>
4888
4889 _ACEOF
4890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4891   $EGREP "free" >/dev/null 2>&1; then
4892   :
4893 else
4894   ac_cv_header_stdc=no
4895 fi
4896 rm -f conftest*
4897
4898 fi
4899
4900 if test $ac_cv_header_stdc = yes; then
4901   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4902   if test "$cross_compiling" = yes; then
4903   :
4904 else
4905   cat >conftest.$ac_ext <<_ACEOF
4906 /* confdefs.h.  */
4907 _ACEOF
4908 cat confdefs.h >>conftest.$ac_ext
4909 cat >>conftest.$ac_ext <<_ACEOF
4910 /* end confdefs.h.  */
4911 #include <ctype.h>
4912 #if ((' ' & 0x0FF) == 0x020)
4913 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4914 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4915 #else
4916 # define ISLOWER(c) \
4917                    (('a' <= (c) && (c) <= 'i') \
4918                      || ('j' <= (c) && (c) <= 'r') \
4919                      || ('s' <= (c) && (c) <= 'z'))
4920 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4921 #endif
4922
4923 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4924 int
4925 main ()
4926 {
4927   int i;
4928   for (i = 0; i < 256; i++)
4929     if (XOR (islower (i), ISLOWER (i))
4930         || toupper (i) != TOUPPER (i))
4931       exit(2);
4932   exit (0);
4933 }
4934 _ACEOF
4935 rm -f conftest$ac_exeext
4936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4937   (eval $ac_link) 2>&5
4938   ac_status=$?
4939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4942   (eval $ac_try) 2>&5
4943   ac_status=$?
4944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945   (exit $ac_status); }; }; then
4946   :
4947 else
4948   echo "$as_me: program exited with status $ac_status" >&5
4949 echo "$as_me: failed program was:" >&5
4950 sed 's/^/| /' conftest.$ac_ext >&5
4951
4952 ( exit $ac_status )
4953 ac_cv_header_stdc=no
4954 fi
4955 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4956 fi
4957 fi
4958 fi
4959 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4960 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4961 if test $ac_cv_header_stdc = yes; then
4962
4963 cat >>confdefs.h <<\_ACEOF
4964 #define STDC_HEADERS 1
4965 _ACEOF
4966
4967 fi
4968
4969 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4980                   inttypes.h stdint.h unistd.h
4981 do
4982 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4983 echo "$as_me:$LINENO: checking for $ac_header" >&5
4984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4986   echo $ECHO_N "(cached) $ECHO_C" >&6
4987 else
4988   cat >conftest.$ac_ext <<_ACEOF
4989 /* confdefs.h.  */
4990 _ACEOF
4991 cat confdefs.h >>conftest.$ac_ext
4992 cat >>conftest.$ac_ext <<_ACEOF
4993 /* end confdefs.h.  */
4994 $ac_includes_default
4995
4996 #include <$ac_header>
4997 _ACEOF
4998 rm -f conftest.$ac_objext
4999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5000   (eval $ac_compile) 2>conftest.er1
5001   ac_status=$?
5002   grep -v '^ *+' conftest.er1 >conftest.err
5003   rm -f conftest.er1
5004   cat conftest.err >&5
5005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006   (exit $ac_status); } &&
5007          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5009   (eval $ac_try) 2>&5
5010   ac_status=$?
5011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012   (exit $ac_status); }; } &&
5013          { ac_try='test -s conftest.$ac_objext'
5014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5015   (eval $ac_try) 2>&5
5016   ac_status=$?
5017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018   (exit $ac_status); }; }; then
5019   eval "$as_ac_Header=yes"
5020 else
5021   echo "$as_me: failed program was:" >&5
5022 sed 's/^/| /' conftest.$ac_ext >&5
5023
5024 eval "$as_ac_Header=no"
5025 fi
5026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5027 fi
5028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5029 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5030 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5031   cat >>confdefs.h <<_ACEOF
5032 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5033 _ACEOF
5034
5035 fi
5036
5037 done
5038
5039
5040
5041 for ac_header in dlfcn.h
5042 do
5043 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5044 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5045   echo "$as_me:$LINENO: checking for $ac_header" >&5
5046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5047 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5048   echo $ECHO_N "(cached) $ECHO_C" >&6
5049 fi
5050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5051 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5052 else
5053   # Is the header compilable?
5054 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5055 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5056 cat >conftest.$ac_ext <<_ACEOF
5057 /* confdefs.h.  */
5058 _ACEOF
5059 cat confdefs.h >>conftest.$ac_ext
5060 cat >>conftest.$ac_ext <<_ACEOF
5061 /* end confdefs.h.  */
5062 $ac_includes_default
5063 #include <$ac_header>
5064 _ACEOF
5065 rm -f conftest.$ac_objext
5066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5067   (eval $ac_compile) 2>conftest.er1
5068   ac_status=$?
5069   grep -v '^ *+' conftest.er1 >conftest.err
5070   rm -f conftest.er1
5071   cat conftest.err >&5
5072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073   (exit $ac_status); } &&
5074          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5076   (eval $ac_try) 2>&5
5077   ac_status=$?
5078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079   (exit $ac_status); }; } &&
5080          { ac_try='test -s conftest.$ac_objext'
5081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5082   (eval $ac_try) 2>&5
5083   ac_status=$?
5084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085   (exit $ac_status); }; }; then
5086   ac_header_compiler=yes
5087 else
5088   echo "$as_me: failed program was:" >&5
5089 sed 's/^/| /' conftest.$ac_ext >&5
5090
5091 ac_header_compiler=no
5092 fi
5093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5094 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5095 echo "${ECHO_T}$ac_header_compiler" >&6
5096
5097 # Is the header present?
5098 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5099 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5100 cat >conftest.$ac_ext <<_ACEOF
5101 /* confdefs.h.  */
5102 _ACEOF
5103 cat confdefs.h >>conftest.$ac_ext
5104 cat >>conftest.$ac_ext <<_ACEOF
5105 /* end confdefs.h.  */
5106 #include <$ac_header>
5107 _ACEOF
5108 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5109   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5110   ac_status=$?
5111   grep -v '^ *+' conftest.er1 >conftest.err
5112   rm -f conftest.er1
5113   cat conftest.err >&5
5114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115   (exit $ac_status); } >/dev/null; then
5116   if test -s conftest.err; then
5117     ac_cpp_err=$ac_c_preproc_warn_flag
5118     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5119   else
5120     ac_cpp_err=
5121   fi
5122 else
5123   ac_cpp_err=yes
5124 fi
5125 if test -z "$ac_cpp_err"; then
5126   ac_header_preproc=yes
5127 else
5128   echo "$as_me: failed program was:" >&5
5129 sed 's/^/| /' conftest.$ac_ext >&5
5130
5131   ac_header_preproc=no
5132 fi
5133 rm -f conftest.err conftest.$ac_ext
5134 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5135 echo "${ECHO_T}$ac_header_preproc" >&6
5136
5137 # So?  What about this header?
5138 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5139   yes:no: )
5140     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5141 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5142     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5143 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5144     ac_header_preproc=yes
5145     ;;
5146   no:yes:* )
5147     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5148 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5149     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5150 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5151     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5152 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5153     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5154 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5155     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5156 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5157     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5158 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5159     (
5160       cat <<\_ASBOX
5161 ## ------------------------------------------ ##
5162 ## Report this to the AC_PACKAGE_NAME lists.  ##
5163 ## ------------------------------------------ ##
5164 _ASBOX
5165     ) |
5166       sed "s/^/$as_me: WARNING:     /" >&2
5167     ;;
5168 esac
5169 echo "$as_me:$LINENO: checking for $ac_header" >&5
5170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5171 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5172   echo $ECHO_N "(cached) $ECHO_C" >&6
5173 else
5174   eval "$as_ac_Header=\$ac_header_preproc"
5175 fi
5176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5177 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5178
5179 fi
5180 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5181   cat >>confdefs.h <<_ACEOF
5182 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5183 _ACEOF
5184
5185 fi
5186
5187 done
5188
5189 ac_ext=cc
5190 ac_cpp='$CXXCPP $CPPFLAGS'
5191 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5192 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5193 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5194 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5195 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5196 if test -z "$CXXCPP"; then
5197   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5198   echo $ECHO_N "(cached) $ECHO_C" >&6
5199 else
5200       # Double quotes because CXXCPP needs to be expanded
5201     for CXXCPP in "$CXX -E" "/lib/cpp"
5202     do
5203       ac_preproc_ok=false
5204 for ac_cxx_preproc_warn_flag in '' yes
5205 do
5206   # Use a header file that comes with gcc, so configuring glibc
5207   # with a fresh cross-compiler works.
5208   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5209   # <limits.h> exists even on freestanding compilers.
5210   # On the NeXT, cc -E runs the code through the compiler's parser,
5211   # not just through cpp. "Syntax error" is here to catch this case.
5212   cat >conftest.$ac_ext <<_ACEOF
5213 /* confdefs.h.  */
5214 _ACEOF
5215 cat confdefs.h >>conftest.$ac_ext
5216 cat >>conftest.$ac_ext <<_ACEOF
5217 /* end confdefs.h.  */
5218 #ifdef __STDC__
5219 # include <limits.h>
5220 #else
5221 # include <assert.h>
5222 #endif
5223                      Syntax error
5224 _ACEOF
5225 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5226   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5227   ac_status=$?
5228   grep -v '^ *+' conftest.er1 >conftest.err
5229   rm -f conftest.er1
5230   cat conftest.err >&5
5231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232   (exit $ac_status); } >/dev/null; then
5233   if test -s conftest.err; then
5234     ac_cpp_err=$ac_cxx_preproc_warn_flag
5235     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5236   else
5237     ac_cpp_err=
5238   fi
5239 else
5240   ac_cpp_err=yes
5241 fi
5242 if test -z "$ac_cpp_err"; then
5243   :
5244 else
5245   echo "$as_me: failed program was:" >&5
5246 sed 's/^/| /' conftest.$ac_ext >&5
5247
5248   # Broken: fails on valid input.
5249 continue
5250 fi
5251 rm -f conftest.err conftest.$ac_ext
5252
5253   # OK, works on sane cases.  Now check whether non-existent headers
5254   # can be detected and how.
5255   cat >conftest.$ac_ext <<_ACEOF
5256 /* confdefs.h.  */
5257 _ACEOF
5258 cat confdefs.h >>conftest.$ac_ext
5259 cat >>conftest.$ac_ext <<_ACEOF
5260 /* end confdefs.h.  */
5261 #include <ac_nonexistent.h>
5262 _ACEOF
5263 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5264   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5265   ac_status=$?
5266   grep -v '^ *+' conftest.er1 >conftest.err
5267   rm -f conftest.er1
5268   cat conftest.err >&5
5269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270   (exit $ac_status); } >/dev/null; then
5271   if test -s conftest.err; then
5272     ac_cpp_err=$ac_cxx_preproc_warn_flag
5273     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5274   else
5275     ac_cpp_err=
5276   fi
5277 else
5278   ac_cpp_err=yes
5279 fi
5280 if test -z "$ac_cpp_err"; then
5281   # Broken: success on invalid input.
5282 continue
5283 else
5284   echo "$as_me: failed program was:" >&5
5285 sed 's/^/| /' conftest.$ac_ext >&5
5286
5287   # Passes both tests.
5288 ac_preproc_ok=:
5289 break
5290 fi
5291 rm -f conftest.err conftest.$ac_ext
5292
5293 done
5294 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5295 rm -f conftest.err conftest.$ac_ext
5296 if $ac_preproc_ok; then
5297   break
5298 fi
5299
5300     done
5301     ac_cv_prog_CXXCPP=$CXXCPP
5302
5303 fi
5304   CXXCPP=$ac_cv_prog_CXXCPP
5305 else
5306   ac_cv_prog_CXXCPP=$CXXCPP
5307 fi
5308 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5309 echo "${ECHO_T}$CXXCPP" >&6
5310 ac_preproc_ok=false
5311 for ac_cxx_preproc_warn_flag in '' yes
5312 do
5313   # Use a header file that comes with gcc, so configuring glibc
5314   # with a fresh cross-compiler works.
5315   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5316   # <limits.h> exists even on freestanding compilers.
5317   # On the NeXT, cc -E runs the code through the compiler's parser,
5318   # not just through cpp. "Syntax error" is here to catch this case.
5319   cat >conftest.$ac_ext <<_ACEOF
5320 /* confdefs.h.  */
5321 _ACEOF
5322 cat confdefs.h >>conftest.$ac_ext
5323 cat >>conftest.$ac_ext <<_ACEOF
5324 /* end confdefs.h.  */
5325 #ifdef __STDC__
5326 # include <limits.h>
5327 #else
5328 # include <assert.h>
5329 #endif
5330                      Syntax error
5331 _ACEOF
5332 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5333   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5334   ac_status=$?
5335   grep -v '^ *+' conftest.er1 >conftest.err
5336   rm -f conftest.er1
5337   cat conftest.err >&5
5338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339   (exit $ac_status); } >/dev/null; then
5340   if test -s conftest.err; then
5341     ac_cpp_err=$ac_cxx_preproc_warn_flag
5342     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5343   else
5344     ac_cpp_err=
5345   fi
5346 else
5347   ac_cpp_err=yes
5348 fi
5349 if test -z "$ac_cpp_err"; then
5350   :
5351 else
5352   echo "$as_me: failed program was:" >&5
5353 sed 's/^/| /' conftest.$ac_ext >&5
5354
5355   # Broken: fails on valid input.
5356 continue
5357 fi
5358 rm -f conftest.err conftest.$ac_ext
5359
5360   # OK, works on sane cases.  Now check whether non-existent headers
5361   # can be detected and how.
5362   cat >conftest.$ac_ext <<_ACEOF
5363 /* confdefs.h.  */
5364 _ACEOF
5365 cat confdefs.h >>conftest.$ac_ext
5366 cat >>conftest.$ac_ext <<_ACEOF
5367 /* end confdefs.h.  */
5368 #include <ac_nonexistent.h>
5369 _ACEOF
5370 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5371   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5372   ac_status=$?
5373   grep -v '^ *+' conftest.er1 >conftest.err
5374   rm -f conftest.er1
5375   cat conftest.err >&5
5376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377   (exit $ac_status); } >/dev/null; then
5378   if test -s conftest.err; then
5379     ac_cpp_err=$ac_cxx_preproc_warn_flag
5380     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5381   else
5382     ac_cpp_err=
5383   fi
5384 else
5385   ac_cpp_err=yes
5386 fi
5387 if test -z "$ac_cpp_err"; then
5388   # Broken: success on invalid input.
5389 continue
5390 else
5391   echo "$as_me: failed program was:" >&5
5392 sed 's/^/| /' conftest.$ac_ext >&5
5393
5394   # Passes both tests.
5395 ac_preproc_ok=:
5396 break
5397 fi
5398 rm -f conftest.err conftest.$ac_ext
5399
5400 done
5401 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5402 rm -f conftest.err conftest.$ac_ext
5403 if $ac_preproc_ok; then
5404   :
5405 else
5406   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5407 See \`config.log' for more details." >&5
5408 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5409 See \`config.log' for more details." >&2;}
5410    { (exit 1); exit 1; }; }
5411 fi
5412
5413 ac_ext=cc
5414 ac_cpp='$CXXCPP $CPPFLAGS'
5415 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5416 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5417 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5418
5419
5420 ac_ext=f
5421 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5422 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5423 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5424 if test -n "$ac_tool_prefix"; then
5425   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5426   do
5427     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5428 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5429 echo "$as_me:$LINENO: checking for $ac_word" >&5
5430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5431 if test "${ac_cv_prog_F77+set}" = set; then
5432   echo $ECHO_N "(cached) $ECHO_C" >&6
5433 else
5434   if test -n "$F77"; then
5435   ac_cv_prog_F77="$F77" # Let the user override the test.
5436 else
5437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5438 for as_dir in $PATH
5439 do
5440   IFS=$as_save_IFS
5441   test -z "$as_dir" && as_dir=.
5442   for ac_exec_ext in '' $ac_executable_extensions; do
5443   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5444     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5445     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5446     break 2
5447   fi
5448 done
5449 done
5450
5451 fi
5452 fi
5453 F77=$ac_cv_prog_F77
5454 if test -n "$F77"; then
5455   echo "$as_me:$LINENO: result: $F77" >&5
5456 echo "${ECHO_T}$F77" >&6
5457 else
5458   echo "$as_me:$LINENO: result: no" >&5
5459 echo "${ECHO_T}no" >&6
5460 fi
5461
5462     test -n "$F77" && break
5463   done
5464 fi
5465 if test -z "$F77"; then
5466   ac_ct_F77=$F77
5467   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5468 do
5469   # Extract the first word of "$ac_prog", so it can be a program name with args.
5470 set dummy $ac_prog; ac_word=$2
5471 echo "$as_me:$LINENO: checking for $ac_word" >&5
5472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5473 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5474   echo $ECHO_N "(cached) $ECHO_C" >&6
5475 else
5476   if test -n "$ac_ct_F77"; then
5477   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5478 else
5479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5480 for as_dir in $PATH
5481 do
5482   IFS=$as_save_IFS
5483   test -z "$as_dir" && as_dir=.
5484   for ac_exec_ext in '' $ac_executable_extensions; do
5485   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5486     ac_cv_prog_ac_ct_F77="$ac_prog"
5487     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5488     break 2
5489   fi
5490 done
5491 done
5492
5493 fi
5494 fi
5495 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5496 if test -n "$ac_ct_F77"; then
5497   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5498 echo "${ECHO_T}$ac_ct_F77" >&6
5499 else
5500   echo "$as_me:$LINENO: result: no" >&5
5501 echo "${ECHO_T}no" >&6
5502 fi
5503
5504   test -n "$ac_ct_F77" && break
5505 done
5506
5507   F77=$ac_ct_F77
5508 fi
5509
5510
5511 # Provide some information about the compiler.
5512 echo "$as_me:5512:" \
5513      "checking for Fortran 77 compiler version" >&5
5514 ac_compiler=`set X $ac_compile; echo $2`
5515 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5516   (eval $ac_compiler --version </dev/null >&5) 2>&5
5517   ac_status=$?
5518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519   (exit $ac_status); }
5520 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5521   (eval $ac_compiler -v </dev/null >&5) 2>&5
5522   ac_status=$?
5523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524   (exit $ac_status); }
5525 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5526   (eval $ac_compiler -V </dev/null >&5) 2>&5
5527   ac_status=$?
5528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529   (exit $ac_status); }
5530 rm -f a.out
5531
5532 # If we don't use `.F' as extension, the preprocessor is not run on the
5533 # input file.  (Note that this only needs to work for GNU compilers.)
5534 ac_save_ext=$ac_ext
5535 ac_ext=F
5536 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5537 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5538 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5539   echo $ECHO_N "(cached) $ECHO_C" >&6
5540 else
5541   cat >conftest.$ac_ext <<_ACEOF
5542       program main
5543 #ifndef __GNUC__
5544        choke me
5545 #endif
5546
5547       end
5548 _ACEOF
5549 rm -f conftest.$ac_objext
5550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5551   (eval $ac_compile) 2>conftest.er1
5552   ac_status=$?
5553   grep -v '^ *+' conftest.er1 >conftest.err
5554   rm -f conftest.er1
5555   cat conftest.err >&5
5556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557   (exit $ac_status); } &&
5558          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5560   (eval $ac_try) 2>&5
5561   ac_status=$?
5562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563   (exit $ac_status); }; } &&
5564          { ac_try='test -s conftest.$ac_objext'
5565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5566   (eval $ac_try) 2>&5
5567   ac_status=$?
5568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569   (exit $ac_status); }; }; then
5570   ac_compiler_gnu=yes
5571 else
5572   echo "$as_me: failed program was:" >&5
5573 sed 's/^/| /' conftest.$ac_ext >&5
5574
5575 ac_compiler_gnu=no
5576 fi
5577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5578 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5579
5580 fi
5581 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5582 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5583 ac_ext=$ac_save_ext
5584 ac_test_FFLAGS=${FFLAGS+set}
5585 ac_save_FFLAGS=$FFLAGS
5586 FFLAGS=
5587 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5588 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5589 if test "${ac_cv_prog_f77_g+set}" = set; then
5590   echo $ECHO_N "(cached) $ECHO_C" >&6
5591 else
5592   FFLAGS=-g
5593 cat >conftest.$ac_ext <<_ACEOF
5594       program main
5595
5596       end
5597 _ACEOF
5598 rm -f conftest.$ac_objext
5599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5600   (eval $ac_compile) 2>conftest.er1
5601   ac_status=$?
5602   grep -v '^ *+' conftest.er1 >conftest.err
5603   rm -f conftest.er1
5604   cat conftest.err >&5
5605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606   (exit $ac_status); } &&
5607          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5609   (eval $ac_try) 2>&5
5610   ac_status=$?
5611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612   (exit $ac_status); }; } &&
5613          { ac_try='test -s conftest.$ac_objext'
5614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5615   (eval $ac_try) 2>&5
5616   ac_status=$?
5617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618   (exit $ac_status); }; }; then
5619   ac_cv_prog_f77_g=yes
5620 else
5621   echo "$as_me: failed program was:" >&5
5622 sed 's/^/| /' conftest.$ac_ext >&5
5623
5624 ac_cv_prog_f77_g=no
5625 fi
5626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5627
5628 fi
5629 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5630 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5631 if test "$ac_test_FFLAGS" = set; then
5632   FFLAGS=$ac_save_FFLAGS
5633 elif test $ac_cv_prog_f77_g = yes; then
5634   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5635     FFLAGS="-g -O2"
5636   else
5637     FFLAGS="-g"
5638   fi
5639 else
5640   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5641     FFLAGS="-O2"
5642   else
5643     FFLAGS=
5644   fi
5645 fi
5646
5647 G77=`test $ac_compiler_gnu = yes && echo yes`
5648 ac_ext=c
5649 ac_cpp='$CPP $CPPFLAGS'
5650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5653
5654
5655
5656 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5657
5658 # find the maximum length of command line arguments
5659 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5660 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5661 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5662   echo $ECHO_N "(cached) $ECHO_C" >&6
5663 else
5664     i=0
5665   teststring="ABCD"
5666
5667   case $build_os in
5668   msdosdjgpp*)
5669     # On DJGPP, this test can blow up pretty badly due to problems in libc
5670     # (any single argument exceeding 2000 bytes causes a buffer overrun
5671     # during glob expansion).  Even if it were fixed, the result of this
5672     # check would be larger than it should be.
5673     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5674     ;;
5675
5676   gnu*)
5677     # Under GNU Hurd, this test is not required because there is
5678     # no limit to the length of command line arguments.
5679     # Libtool will interpret -1 as no limit whatsoever
5680     lt_cv_sys_max_cmd_len=-1;
5681     ;;
5682
5683   cygwin* | mingw*)
5684     # On Win9x/ME, this test blows up -- it succeeds, but takes
5685     # about 5 minutes as the teststring grows exponentially.
5686     # Worse, since 9x/ME are not pre-emptively multitasking,
5687     # you end up with a "frozen" computer, even though with patience
5688     # the test eventually succeeds (with a max line length of 256k).
5689     # Instead, let's just punt: use the minimum linelength reported by
5690     # all of the supported platforms: 8192 (on NT/2K/XP).
5691     lt_cv_sys_max_cmd_len=8192;
5692     ;;
5693
5694   amigaos*)
5695     # On AmigaOS with pdksh, this test takes hours, literally.
5696     # So we just punt and use a minimum line length of 8192.
5697     lt_cv_sys_max_cmd_len=8192;
5698     ;;
5699
5700  *)
5701     # If test is not a shell built-in, we'll probably end up computing a
5702     # maximum length that is only half of the actual maximum length, but
5703     # we can't tell.
5704     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5705                = "XX$teststring") >/dev/null 2>&1 &&
5706             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5707             lt_cv_sys_max_cmd_len=$new_result &&
5708             test $i != 17 # 1/2 MB should be enough
5709     do
5710       i=`expr $i + 1`
5711       teststring=$teststring$teststring
5712     done
5713     teststring=
5714     # Add a significant safety factor because C++ compilers can tack on massive
5715     # amounts of additional arguments before passing them to the linker.
5716     # It appears as though 1/2 is a usable value.
5717     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5718     ;;
5719   esac
5720
5721 fi
5722
5723 if test -n $lt_cv_sys_max_cmd_len ; then
5724   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5725 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5726 else
5727   echo "$as_me:$LINENO: result: none" >&5
5728 echo "${ECHO_T}none" >&6
5729 fi
5730
5731
5732
5733
5734 # Check for command to grab the raw symbol name followed by C symbol from nm.
5735 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5736 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5737 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5738   echo $ECHO_N "(cached) $ECHO_C" >&6
5739 else
5740
5741 # These are sane defaults that work on at least a few old systems.
5742 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5743
5744 # Character class describing NM global symbol codes.
5745 symcode='[BCDEGRST]'
5746
5747 # Regexp to match symbols that can be accessed directly from C.
5748 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5749
5750 # Transform the above into a raw symbol and a C symbol.
5751 symxfrm='\1 \2\3 \3'
5752
5753 # Transform an extracted symbol line into a proper C declaration
5754 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5755
5756 # Transform an extracted symbol line into symbol name and symbol address
5757 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'"
5758
5759 # Define system-specific variables.
5760 case $host_os in
5761 aix*)
5762   symcode='[BCDT]'
5763   ;;
5764 cygwin* | mingw* | pw32*)
5765   symcode='[ABCDGISTW]'
5766   ;;
5767 hpux*) # Its linker distinguishes data from code symbols
5768   if test "$host_cpu" = ia64; then
5769     symcode='[ABCDEGRST]'
5770   fi
5771   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5772   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'"
5773   ;;
5774 irix* | nonstopux*)
5775   symcode='[BCDEGRST]'
5776   ;;
5777 osf*)
5778   symcode='[BCDEGQRST]'
5779   ;;
5780 solaris* | sysv5*)
5781   symcode='[BDRT]'
5782   ;;
5783 sysv4)
5784   symcode='[DFNSTU]'
5785   ;;
5786 esac
5787
5788 # Handle CRLF in mingw tool chain
5789 opt_cr=
5790 case $build_os in
5791 mingw*)
5792   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5793   ;;
5794 esac
5795
5796 # If we're using GNU nm, then use its standard symbol codes.
5797 case `$NM -V 2>&1` in
5798 *GNU* | *'with BFD'*)
5799   symcode='[ABCDGIRSTW]' ;;
5800 esac
5801
5802 # Try without a prefix undercore, then with it.
5803 for ac_symprfx in "" "_"; do
5804
5805   # Write the raw and C identifiers.
5806   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5807
5808   # Check to see that the pipe works correctly.
5809   pipe_works=no
5810
5811   rm -f conftest*
5812   cat > conftest.$ac_ext <<EOF
5813 #ifdef __cplusplus
5814 extern "C" {
5815 #endif
5816 char nm_test_var;
5817 void nm_test_func(){}
5818 #ifdef __cplusplus
5819 }
5820 #endif
5821 int main(){nm_test_var='a';nm_test_func();return(0);}
5822 EOF
5823
5824   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5825   (eval $ac_compile) 2>&5
5826   ac_status=$?
5827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828   (exit $ac_status); }; then
5829     # Now try to grab the symbols.
5830     nlist=conftest.nm
5831     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5832   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5833   ac_status=$?
5834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835   (exit $ac_status); } && test -s "$nlist"; then
5836       # Try sorting and uniquifying the output.
5837       if sort "$nlist" | uniq > "$nlist"T; then
5838         mv -f "$nlist"T "$nlist"
5839       else
5840         rm -f "$nlist"T
5841       fi
5842
5843       # Make sure that we snagged all the symbols we need.
5844       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5845         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5846           cat <<EOF > conftest.$ac_ext
5847 #ifdef __cplusplus
5848 extern "C" {
5849 #endif
5850
5851 EOF
5852           # Now generate the symbol file.
5853           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5854
5855           cat <<EOF >> conftest.$ac_ext
5856 #if defined (__STDC__) && __STDC__
5857 # define lt_ptr_t void *
5858 #else
5859 # define lt_ptr_t char *
5860 # define const
5861 #endif
5862
5863 /* The mapping between symbol names and symbols. */
5864 const struct {
5865   const char *name;
5866   lt_ptr_t address;
5867 }
5868 lt_preloaded_symbols[] =
5869 {
5870 EOF
5871           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5872           cat <<\EOF >> conftest.$ac_ext
5873   {0, (lt_ptr_t) 0}
5874 };
5875
5876 #ifdef __cplusplus
5877 }
5878 #endif
5879 EOF
5880           # Now try linking the two files.
5881           mv conftest.$ac_objext conftstm.$ac_objext
5882           lt_save_LIBS="$LIBS"
5883           lt_save_CFLAGS="$CFLAGS"
5884           LIBS="conftstm.$ac_objext"
5885           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5886           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5887   (eval $ac_link) 2>&5
5888   ac_status=$?
5889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5891             pipe_works=yes
5892           fi
5893           LIBS="$lt_save_LIBS"
5894           CFLAGS="$lt_save_CFLAGS"
5895         else
5896           echo "cannot find nm_test_func in $nlist" >&5
5897         fi
5898       else
5899         echo "cannot find nm_test_var in $nlist" >&5
5900       fi
5901     else
5902       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5903     fi
5904   else
5905     echo "$progname: failed program was:" >&5
5906     cat conftest.$ac_ext >&5
5907   fi
5908   rm -f conftest* conftst*
5909
5910   # Do not use the global_symbol_pipe unless it works.
5911   if test "$pipe_works" = yes; then
5912     break
5913   else
5914     lt_cv_sys_global_symbol_pipe=
5915   fi
5916 done
5917
5918 fi
5919
5920 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5921   lt_cv_sys_global_symbol_to_cdecl=
5922 fi
5923 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5924   echo "$as_me:$LINENO: result: failed" >&5
5925 echo "${ECHO_T}failed" >&6
5926 else
5927   echo "$as_me:$LINENO: result: ok" >&5
5928 echo "${ECHO_T}ok" >&6
5929 fi
5930
5931 echo "$as_me:$LINENO: checking for objdir" >&5
5932 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5933 if test "${lt_cv_objdir+set}" = set; then
5934   echo $ECHO_N "(cached) $ECHO_C" >&6
5935 else
5936   rm -f .libs 2>/dev/null
5937 mkdir .libs 2>/dev/null
5938 if test -d .libs; then
5939   lt_cv_objdir=.libs
5940 else
5941   # MS-DOS does not allow filenames that begin with a dot.
5942   lt_cv_objdir=_libs
5943 fi
5944 rmdir .libs 2>/dev/null
5945 fi
5946 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5947 echo "${ECHO_T}$lt_cv_objdir" >&6
5948 objdir=$lt_cv_objdir
5949
5950
5951
5952
5953
5954 case $host_os in
5955 aix3*)
5956   # AIX sometimes has problems with the GCC collect2 program.  For some
5957   # reason, if we set the COLLECT_NAMES environment variable, the problems
5958   # vanish in a puff of smoke.
5959   if test "X${COLLECT_NAMES+set}" != Xset; then
5960     COLLECT_NAMES=
5961     export COLLECT_NAMES
5962   fi
5963   ;;
5964 esac
5965
5966 # Sed substitution that helps us do robust quoting.  It backslashifies
5967 # metacharacters that are still active within double-quoted strings.
5968 Xsed='sed -e s/^X//'
5969 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5970
5971 # Same as above, but do not quote variable references.
5972 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5973
5974 # Sed substitution to delay expansion of an escaped shell variable in a
5975 # double_quote_subst'ed string.
5976 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5977
5978 # Sed substitution to avoid accidental globbing in evaled expressions
5979 no_glob_subst='s/\*/\\\*/g'
5980
5981 # Constants:
5982 rm="rm -f"
5983
5984 # Global variables:
5985 default_ofile=libtool
5986 can_build_shared=yes
5987
5988 # All known linkers require a `.a' archive for static linking (except M$VC,
5989 # which needs '.lib').
5990 libext=a
5991 ltmain="$ac_aux_dir/ltmain.sh"
5992 ofile="$default_ofile"
5993 with_gnu_ld="$lt_cv_prog_gnu_ld"
5994
5995 if test -n "$ac_tool_prefix"; then
5996   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5997 set dummy ${ac_tool_prefix}ar; ac_word=$2
5998 echo "$as_me:$LINENO: checking for $ac_word" >&5
5999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6000 if test "${ac_cv_prog_AR+set}" = set; then
6001   echo $ECHO_N "(cached) $ECHO_C" >&6
6002 else
6003   if test -n "$AR"; then
6004   ac_cv_prog_AR="$AR" # Let the user override the test.
6005 else
6006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6007 for as_dir in $PATH
6008 do
6009   IFS=$as_save_IFS
6010   test -z "$as_dir" && as_dir=.
6011   for ac_exec_ext in '' $ac_executable_extensions; do
6012   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6013     ac_cv_prog_AR="${ac_tool_prefix}ar"
6014     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6015     break 2
6016   fi
6017 done
6018 done
6019
6020 fi
6021 fi
6022 AR=$ac_cv_prog_AR
6023 if test -n "$AR"; then
6024   echo "$as_me:$LINENO: result: $AR" >&5
6025 echo "${ECHO_T}$AR" >&6
6026 else
6027   echo "$as_me:$LINENO: result: no" >&5
6028 echo "${ECHO_T}no" >&6
6029 fi
6030
6031 fi
6032 if test -z "$ac_cv_prog_AR"; then
6033   ac_ct_AR=$AR
6034   # Extract the first word of "ar", so it can be a program name with args.
6035 set dummy ar; ac_word=$2
6036 echo "$as_me:$LINENO: checking for $ac_word" >&5
6037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6038 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6039   echo $ECHO_N "(cached) $ECHO_C" >&6
6040 else
6041   if test -n "$ac_ct_AR"; then
6042   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6043 else
6044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6045 for as_dir in $PATH
6046 do
6047   IFS=$as_save_IFS
6048   test -z "$as_dir" && as_dir=.
6049   for ac_exec_ext in '' $ac_executable_extensions; do
6050   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6051     ac_cv_prog_ac_ct_AR="ar"
6052     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6053     break 2
6054   fi
6055 done
6056 done
6057
6058   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6059 fi
6060 fi
6061 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6062 if test -n "$ac_ct_AR"; then
6063   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6064 echo "${ECHO_T}$ac_ct_AR" >&6
6065 else
6066   echo "$as_me:$LINENO: result: no" >&5
6067 echo "${ECHO_T}no" >&6
6068 fi
6069
6070   AR=$ac_ct_AR
6071 else
6072   AR="$ac_cv_prog_AR"
6073 fi
6074
6075 if test -n "$ac_tool_prefix"; then
6076   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6077 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6078 echo "$as_me:$LINENO: checking for $ac_word" >&5
6079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6080 if test "${ac_cv_prog_RANLIB+set}" = set; then
6081   echo $ECHO_N "(cached) $ECHO_C" >&6
6082 else
6083   if test -n "$RANLIB"; then
6084   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6085 else
6086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6087 for as_dir in $PATH
6088 do
6089   IFS=$as_save_IFS
6090   test -z "$as_dir" && as_dir=.
6091   for ac_exec_ext in '' $ac_executable_extensions; do
6092   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6093     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6094     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6095     break 2
6096   fi
6097 done
6098 done
6099
6100 fi
6101 fi
6102 RANLIB=$ac_cv_prog_RANLIB
6103 if test -n "$RANLIB"; then
6104   echo "$as_me:$LINENO: result: $RANLIB" >&5
6105 echo "${ECHO_T}$RANLIB" >&6
6106 else
6107   echo "$as_me:$LINENO: result: no" >&5
6108 echo "${ECHO_T}no" >&6
6109 fi
6110
6111 fi
6112 if test -z "$ac_cv_prog_RANLIB"; then
6113   ac_ct_RANLIB=$RANLIB
6114   # Extract the first word of "ranlib", so it can be a program name with args.
6115 set dummy ranlib; ac_word=$2
6116 echo "$as_me:$LINENO: checking for $ac_word" >&5
6117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6118 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6119   echo $ECHO_N "(cached) $ECHO_C" >&6
6120 else
6121   if test -n "$ac_ct_RANLIB"; then
6122   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6123 else
6124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6125 for as_dir in $PATH
6126 do
6127   IFS=$as_save_IFS
6128   test -z "$as_dir" && as_dir=.
6129   for ac_exec_ext in '' $ac_executable_extensions; do
6130   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6131     ac_cv_prog_ac_ct_RANLIB="ranlib"
6132     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6133     break 2
6134   fi
6135 done
6136 done
6137
6138   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6139 fi
6140 fi
6141 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6142 if test -n "$ac_ct_RANLIB"; then
6143   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6144 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6145 else
6146   echo "$as_me:$LINENO: result: no" >&5
6147 echo "${ECHO_T}no" >&6
6148 fi
6149
6150   RANLIB=$ac_ct_RANLIB
6151 else
6152   RANLIB="$ac_cv_prog_RANLIB"
6153 fi
6154
6155 if test -n "$ac_tool_prefix"; then
6156   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6157 set dummy ${ac_tool_prefix}strip; ac_word=$2
6158 echo "$as_me:$LINENO: checking for $ac_word" >&5
6159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6160 if test "${ac_cv_prog_STRIP+set}" = set; then
6161   echo $ECHO_N "(cached) $ECHO_C" >&6
6162 else
6163   if test -n "$STRIP"; then
6164   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6165 else
6166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6167 for as_dir in $PATH
6168 do
6169   IFS=$as_save_IFS
6170   test -z "$as_dir" && as_dir=.
6171   for ac_exec_ext in '' $ac_executable_extensions; do
6172   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6173     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6174     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6175     break 2
6176   fi
6177 done
6178 done
6179
6180 fi
6181 fi
6182 STRIP=$ac_cv_prog_STRIP
6183 if test -n "$STRIP"; then
6184   echo "$as_me:$LINENO: result: $STRIP" >&5
6185 echo "${ECHO_T}$STRIP" >&6
6186 else
6187   echo "$as_me:$LINENO: result: no" >&5
6188 echo "${ECHO_T}no" >&6
6189 fi
6190
6191 fi
6192 if test -z "$ac_cv_prog_STRIP"; then
6193   ac_ct_STRIP=$STRIP
6194   # Extract the first word of "strip", so it can be a program name with args.
6195 set dummy strip; ac_word=$2
6196 echo "$as_me:$LINENO: checking for $ac_word" >&5
6197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6198 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6199   echo $ECHO_N "(cached) $ECHO_C" >&6
6200 else
6201   if test -n "$ac_ct_STRIP"; then
6202   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6203 else
6204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6205 for as_dir in $PATH
6206 do
6207   IFS=$as_save_IFS
6208   test -z "$as_dir" && as_dir=.
6209   for ac_exec_ext in '' $ac_executable_extensions; do
6210   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6211     ac_cv_prog_ac_ct_STRIP="strip"
6212     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6213     break 2
6214   fi
6215 done
6216 done
6217
6218   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6219 fi
6220 fi
6221 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6222 if test -n "$ac_ct_STRIP"; then
6223   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6224 echo "${ECHO_T}$ac_ct_STRIP" >&6
6225 else
6226   echo "$as_me:$LINENO: result: no" >&5
6227 echo "${ECHO_T}no" >&6
6228 fi
6229
6230   STRIP=$ac_ct_STRIP
6231 else
6232   STRIP="$ac_cv_prog_STRIP"
6233 fi
6234
6235
6236 old_CC="$CC"
6237 old_CFLAGS="$CFLAGS"
6238
6239 # Set sane defaults for various variables
6240 test -z "$AR" && AR=ar
6241 test -z "$AR_FLAGS" && AR_FLAGS=cru
6242 test -z "$AS" && AS=as
6243 test -z "$CC" && CC=cc
6244 test -z "$LTCC" && LTCC=$CC
6245 test -z "$DLLTOOL" && DLLTOOL=dlltool
6246 test -z "$LD" && LD=ld
6247 test -z "$LN_S" && LN_S="ln -s"
6248 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6249 test -z "$NM" && NM=nm
6250 test -z "$SED" && SED=sed
6251 test -z "$OBJDUMP" && OBJDUMP=objdump
6252 test -z "$RANLIB" && RANLIB=:
6253 test -z "$STRIP" && STRIP=:
6254 test -z "$ac_objext" && ac_objext=o
6255
6256 # Determine commands to create old-style static archives.
6257 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6258 old_postinstall_cmds='chmod 644 $oldlib'
6259 old_postuninstall_cmds=
6260
6261 if test -n "$RANLIB"; then
6262   case $host_os in
6263   openbsd*)
6264     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6265     ;;
6266   *)
6267     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6268     ;;
6269   esac
6270   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6271 fi
6272
6273 # Only perform the check for file, if the check method requires it
6274 case $deplibs_check_method in
6275 file_magic*)
6276   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6277     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6278 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6279 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6280   echo $ECHO_N "(cached) $ECHO_C" >&6
6281 else
6282   case $MAGIC_CMD in
6283 [\\/*] |  ?:[\\/]*)
6284   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6285   ;;
6286 *)
6287   lt_save_MAGIC_CMD="$MAGIC_CMD"
6288   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6289   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6290   for ac_dir in $ac_dummy; do
6291     IFS="$lt_save_ifs"
6292     test -z "$ac_dir" && ac_dir=.
6293     if test -f $ac_dir/${ac_tool_prefix}file; then
6294       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6295       if test -n "$file_magic_test_file"; then
6296         case $deplibs_check_method in
6297         "file_magic "*)
6298           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6299           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6300           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6301             $EGREP "$file_magic_regex" > /dev/null; then
6302             :
6303           else
6304             cat <<EOF 1>&2
6305
6306 *** Warning: the command libtool uses to detect shared libraries,
6307 *** $file_magic_cmd, produces output that libtool cannot recognize.
6308 *** The result is that libtool may fail to recognize shared libraries
6309 *** as such.  This will affect the creation of libtool libraries that
6310 *** depend on shared libraries, but programs linked with such libtool
6311 *** libraries will work regardless of this problem.  Nevertheless, you
6312 *** may want to report the problem to your system manager and/or to
6313 *** bug-libtool@gnu.org
6314
6315 EOF
6316           fi ;;
6317         esac
6318       fi
6319       break
6320     fi
6321   done
6322   IFS="$lt_save_ifs"
6323   MAGIC_CMD="$lt_save_MAGIC_CMD"
6324   ;;
6325 esac
6326 fi
6327
6328 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6329 if test -n "$MAGIC_CMD"; then
6330   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6331 echo "${ECHO_T}$MAGIC_CMD" >&6
6332 else
6333   echo "$as_me:$LINENO: result: no" >&5
6334 echo "${ECHO_T}no" >&6
6335 fi
6336
6337 if test -z "$lt_cv_path_MAGIC_CMD"; then
6338   if test -n "$ac_tool_prefix"; then
6339     echo "$as_me:$LINENO: checking for file" >&5
6340 echo $ECHO_N "checking for file... $ECHO_C" >&6
6341 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6342   echo $ECHO_N "(cached) $ECHO_C" >&6
6343 else
6344   case $MAGIC_CMD in
6345 [\\/*] |  ?:[\\/]*)
6346   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6347   ;;
6348 *)
6349   lt_save_MAGIC_CMD="$MAGIC_CMD"
6350   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6351   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6352   for ac_dir in $ac_dummy; do
6353     IFS="$lt_save_ifs"
6354     test -z "$ac_dir" && ac_dir=.
6355     if test -f $ac_dir/file; then
6356       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6357       if test -n "$file_magic_test_file"; then
6358         case $deplibs_check_method in
6359         "file_magic "*)
6360           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6361           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6362           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6363             $EGREP "$file_magic_regex" > /dev/null; then
6364             :
6365           else
6366             cat <<EOF 1>&2
6367
6368 *** Warning: the command libtool uses to detect shared libraries,
6369 *** $file_magic_cmd, produces output that libtool cannot recognize.
6370 *** The result is that libtool may fail to recognize shared libraries
6371 *** as such.  This will affect the creation of libtool libraries that
6372 *** depend on shared libraries, but programs linked with such libtool
6373 *** libraries will work regardless of this problem.  Nevertheless, you
6374 *** may want to report the problem to your system manager and/or to
6375 *** bug-libtool@gnu.org
6376
6377 EOF
6378           fi ;;
6379         esac
6380       fi
6381       break
6382     fi
6383   done
6384   IFS="$lt_save_ifs"
6385   MAGIC_CMD="$lt_save_MAGIC_CMD"
6386   ;;
6387 esac
6388 fi
6389
6390 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6391 if test -n "$MAGIC_CMD"; then
6392   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6393 echo "${ECHO_T}$MAGIC_CMD" >&6
6394 else
6395   echo "$as_me:$LINENO: result: no" >&5
6396 echo "${ECHO_T}no" >&6
6397 fi
6398
6399   else
6400     MAGIC_CMD=:
6401   fi
6402 fi
6403
6404   fi
6405   ;;
6406 esac
6407
6408 enable_dlopen=yes
6409 enable_win32_dll=no
6410
6411 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6412 if test "${enable_libtool_lock+set}" = set; then
6413   enableval="$enable_libtool_lock"
6414
6415 fi;
6416 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6417
6418
6419 # Check whether --with-pic or --without-pic was given.
6420 if test "${with_pic+set}" = set; then
6421   withval="$with_pic"
6422   pic_mode="$withval"
6423 else
6424   pic_mode=default
6425 fi;
6426 test -z "$pic_mode" && pic_mode=default
6427
6428 # Use C for the default configuration in the libtool script
6429 tagname=
6430 lt_save_CC="$CC"
6431 ac_ext=c
6432 ac_cpp='$CPP $CPPFLAGS'
6433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6436
6437
6438 # Source file extension for C test sources.
6439 ac_ext=c
6440
6441 # Object file extension for compiled C test sources.
6442 objext=o
6443 objext=$objext
6444
6445 # Code to be used in simple compile tests
6446 lt_simple_compile_test_code="int some_variable = 0;\n"
6447
6448 # Code to be used in simple link tests
6449 lt_simple_link_test_code='int main(){return(0);}\n'
6450
6451
6452 # If no C compiler was specified, use CC.
6453 LTCC=${LTCC-"$CC"}
6454
6455 # Allow CC to be a program name with arguments.
6456 compiler=$CC
6457
6458
6459 #
6460 # Check for any special shared library compilation flags.
6461 #
6462 lt_prog_cc_shlib=
6463 if test "$GCC" = no; then
6464   case $host_os in
6465   sco3.2v5*)
6466     lt_prog_cc_shlib='-belf'
6467     ;;
6468   esac
6469 fi
6470 if test -n "$lt_prog_cc_shlib"; then
6471   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6472 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6473   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6474   else
6475     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6476 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6477     lt_cv_prog_cc_can_build_shared=no
6478   fi
6479 fi
6480
6481
6482 #
6483 # Check to make sure the static flag actually works.
6484 #
6485 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6486 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6487 if test "${lt_prog_compiler_static_works+set}" = set; then
6488   echo $ECHO_N "(cached) $ECHO_C" >&6
6489 else
6490   lt_prog_compiler_static_works=no
6491    save_LDFLAGS="$LDFLAGS"
6492    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6493    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6494    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6495      # The compiler can only warn and ignore the option if not recognized
6496      # So say no if there are warnings
6497      if test -s conftest.err; then
6498        # Append any errors to the config.log.
6499        cat conftest.err 1>&5
6500      else
6501        lt_prog_compiler_static_works=yes
6502      fi
6503    fi
6504    $rm conftest*
6505    LDFLAGS="$save_LDFLAGS"
6506
6507 fi
6508 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6509 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6510
6511 if test x"$lt_prog_compiler_static_works" = xyes; then
6512     :
6513 else
6514     lt_prog_compiler_static=
6515 fi
6516
6517
6518
6519
6520 lt_prog_compiler_no_builtin_flag=
6521
6522 if test "$GCC" = yes; then
6523   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6524
6525
6526 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6527 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6528 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6529   echo $ECHO_N "(cached) $ECHO_C" >&6
6530 else
6531   lt_cv_prog_compiler_rtti_exceptions=no
6532   ac_outfile=conftest.$ac_objext
6533    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6534    lt_compiler_flag="-fno-rtti -fno-exceptions"
6535    # Insert the option either (1) after the last *FLAGS variable, or
6536    # (2) before a word containing "conftest.", or (3) at the end.
6537    # Note that $ac_compile itself does not contain backslashes and begins
6538    # with a dollar sign (not a hyphen), so the echo should work correctly.
6539    # The option is referenced via a variable to avoid confusing sed.
6540    lt_compile=`echo "$ac_compile" | $SED \
6541    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6542    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6543    -e 's:$: $lt_compiler_flag:'`
6544    (eval echo "\"\$as_me:6544: $lt_compile\"" >&5)
6545    (eval "$lt_compile" 2>conftest.err)
6546    ac_status=$?
6547    cat conftest.err >&5
6548    echo "$as_me:6548: \$? = $ac_status" >&5
6549    if (exit $ac_status) && test -s "$ac_outfile"; then
6550      # The compiler can only warn and ignore the option if not recognized
6551      # So say no if there are warnings
6552      if test ! -s conftest.err; then
6553        lt_cv_prog_compiler_rtti_exceptions=yes
6554      fi
6555    fi
6556    $rm conftest*
6557
6558 fi
6559 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6560 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6561
6562 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6563     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6564 else
6565     :
6566 fi
6567
6568 fi
6569
6570 lt_prog_compiler_wl=
6571 lt_prog_compiler_pic=
6572 lt_prog_compiler_static=
6573
6574 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6575 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6576
6577   if test "$GCC" = yes; then
6578     lt_prog_compiler_wl='-Wl,'
6579     lt_prog_compiler_static='-static'
6580
6581     case $host_os in
6582       aix*)
6583       # All AIX code is PIC.
6584       if test "$host_cpu" = ia64; then
6585         # AIX 5 now supports IA64 processor
6586         lt_prog_compiler_static='-Bstatic'
6587       fi
6588       ;;
6589
6590     amigaos*)
6591       # FIXME: we need at least 68020 code to build shared libraries, but
6592       # adding the `-m68020' flag to GCC prevents building anything better,
6593       # like `-m68040'.
6594       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6595       ;;
6596
6597     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6598       # PIC is the default for these OSes.
6599       ;;
6600
6601     mingw* | pw32* | os2*)
6602       # This hack is so that the source file can tell whether it is being
6603       # built for inclusion in a dll (and should export symbols for example).
6604       lt_prog_compiler_pic='-DDLL_EXPORT'
6605       ;;
6606
6607     darwin* | rhapsody*)
6608       # PIC is the default on this platform
6609       # Common symbols not allowed in MH_DYLIB files
6610       lt_prog_compiler_pic='-fno-common'
6611       ;;
6612
6613     msdosdjgpp*)
6614       # Just because we use GCC doesn't mean we suddenly get shared libraries
6615       # on systems that don't support them.
6616       lt_prog_compiler_can_build_shared=no
6617       enable_shared=no
6618       ;;
6619
6620     sysv4*MP*)
6621       if test -d /usr/nec; then
6622         lt_prog_compiler_pic=-Kconform_pic
6623       fi
6624       ;;
6625
6626     hpux*)
6627       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6628       # not for PA HP-UX.
6629       case "$host_cpu" in
6630       hppa*64*|ia64*)
6631         # +Z the default
6632         ;;
6633       *)
6634         lt_prog_compiler_pic='-fPIC'
6635         ;;
6636       esac
6637       ;;
6638
6639     *)
6640       lt_prog_compiler_pic='-fPIC'
6641       ;;
6642     esac
6643   else
6644     # PORTME Check for flag to pass linker flags through the system compiler.
6645     case $host_os in
6646     aix*)
6647       lt_prog_compiler_wl='-Wl,'
6648       if test "$host_cpu" = ia64; then
6649         # AIX 5 now supports IA64 processor
6650         lt_prog_compiler_static='-Bstatic'
6651       else
6652         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6653       fi
6654       ;;
6655
6656     mingw* | pw32* | os2*)
6657       # This hack is so that the source file can tell whether it is being
6658       # built for inclusion in a dll (and should export symbols for example).
6659       lt_prog_compiler_pic='-DDLL_EXPORT'
6660       ;;
6661
6662     hpux9* | hpux10* | hpux11*)
6663       lt_prog_compiler_wl='-Wl,'
6664       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6665       # not for PA HP-UX.
6666       case "$host_cpu" in
6667       hppa*64*|ia64*)
6668         # +Z the default
6669         ;;
6670       *)
6671         lt_prog_compiler_pic='+Z'
6672         ;;
6673       esac
6674       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6675       lt_prog_compiler_static='${wl}-a ${wl}archive'
6676       ;;
6677
6678     irix5* | irix6* | nonstopux*)
6679       lt_prog_compiler_wl='-Wl,'
6680       # PIC (with -KPIC) is the default.
6681       lt_prog_compiler_static='-non_shared'
6682       ;;
6683
6684     newsos6)
6685       lt_prog_compiler_pic='-KPIC'
6686       lt_prog_compiler_static='-Bstatic'
6687       ;;
6688
6689     linux*)
6690       case $CC in
6691       icc* | ecc*)
6692         lt_prog_compiler_wl='-Wl,'
6693         lt_prog_compiler_pic='-KPIC'
6694         lt_prog_compiler_static='-static'
6695         ;;
6696       ccc*)
6697         lt_prog_compiler_wl='-Wl,'
6698         # All Alpha code is PIC.
6699         lt_prog_compiler_static='-non_shared'
6700         ;;
6701       esac
6702       ;;
6703
6704     osf3* | osf4* | osf5*)
6705       lt_prog_compiler_wl='-Wl,'
6706       # All OSF/1 code is PIC.
6707       lt_prog_compiler_static='-non_shared'
6708       ;;
6709
6710     sco3.2v5*)
6711       lt_prog_compiler_pic='-Kpic'
6712       lt_prog_compiler_static='-dn'
6713       ;;
6714
6715     solaris*)
6716       lt_prog_compiler_wl='-Wl,'
6717       lt_prog_compiler_pic='-KPIC'
6718       lt_prog_compiler_static='-Bstatic'
6719       ;;
6720
6721     sunos4*)
6722       lt_prog_compiler_wl='-Qoption ld '
6723       lt_prog_compiler_pic='-PIC'
6724       lt_prog_compiler_static='-Bstatic'
6725       ;;
6726
6727     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6728       lt_prog_compiler_wl='-Wl,'
6729       lt_prog_compiler_pic='-KPIC'
6730       lt_prog_compiler_static='-Bstatic'
6731       ;;
6732
6733     sysv4*MP*)
6734       if test -d /usr/nec ;then
6735         lt_prog_compiler_pic='-Kconform_pic'
6736         lt_prog_compiler_static='-Bstatic'
6737       fi
6738       ;;
6739
6740     uts4*)
6741       lt_prog_compiler_pic='-pic'
6742       lt_prog_compiler_static='-Bstatic'
6743       ;;
6744
6745     *)
6746       lt_prog_compiler_can_build_shared=no
6747       ;;
6748     esac
6749   fi
6750
6751 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6752 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6753
6754 #
6755 # Check to make sure the PIC flag actually works.
6756 #
6757 if test -n "$lt_prog_compiler_pic"; then
6758
6759 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6760 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6761 if test "${lt_prog_compiler_pic_works+set}" = set; then
6762   echo $ECHO_N "(cached) $ECHO_C" >&6
6763 else
6764   lt_prog_compiler_pic_works=no
6765   ac_outfile=conftest.$ac_objext
6766    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6767    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6768    # Insert the option either (1) after the last *FLAGS variable, or
6769    # (2) before a word containing "conftest.", or (3) at the end.
6770    # Note that $ac_compile itself does not contain backslashes and begins
6771    # with a dollar sign (not a hyphen), so the echo should work correctly.
6772    # The option is referenced via a variable to avoid confusing sed.
6773    lt_compile=`echo "$ac_compile" | $SED \
6774    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6775    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6776    -e 's:$: $lt_compiler_flag:'`
6777    (eval echo "\"\$as_me:6777: $lt_compile\"" >&5)
6778    (eval "$lt_compile" 2>conftest.err)
6779    ac_status=$?
6780    cat conftest.err >&5
6781    echo "$as_me:6781: \$? = $ac_status" >&5
6782    if (exit $ac_status) && test -s "$ac_outfile"; then
6783      # The compiler can only warn and ignore the option if not recognized
6784      # So say no if there are warnings
6785      if test ! -s conftest.err; then
6786        lt_prog_compiler_pic_works=yes
6787      fi
6788    fi
6789    $rm conftest*
6790
6791 fi
6792 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6793 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6794
6795 if test x"$lt_prog_compiler_pic_works" = xyes; then
6796     case $lt_prog_compiler_pic in
6797      "" | " "*) ;;
6798      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6799      esac
6800 else
6801     lt_prog_compiler_pic=
6802      lt_prog_compiler_can_build_shared=no
6803 fi
6804
6805 fi
6806 case "$host_os" in
6807   # For platforms which do not support PIC, -DPIC is meaningless:
6808   *djgpp*)
6809     lt_prog_compiler_pic=
6810     ;;
6811   *)
6812     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6813     ;;
6814 esac
6815
6816 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6817 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6818 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6819   echo $ECHO_N "(cached) $ECHO_C" >&6
6820 else
6821   lt_cv_prog_compiler_c_o=no
6822    $rm -r conftest 2>/dev/null
6823    mkdir conftest
6824    cd conftest
6825    mkdir out
6826    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6827
6828    lt_compiler_flag="-o out/conftest2.$ac_objext"
6829    # Insert the option either (1) after the last *FLAGS variable, or
6830    # (2) before a word containing "conftest.", or (3) at the end.
6831    # Note that $ac_compile itself does not contain backslashes and begins
6832    # with a dollar sign (not a hyphen), so the echo should work correctly.
6833    lt_compile=`echo "$ac_compile" | $SED \
6834    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6835    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6836    -e 's:$: $lt_compiler_flag:'`
6837    (eval echo "\"\$as_me:6837: $lt_compile\"" >&5)
6838    (eval "$lt_compile" 2>out/conftest.err)
6839    ac_status=$?
6840    cat out/conftest.err >&5
6841    echo "$as_me:6841: \$? = $ac_status" >&5
6842    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6843    then
6844      # The compiler can only warn and ignore the option if not recognized
6845      # So say no if there are warnings
6846      if test ! -s out/conftest.err; then
6847        lt_cv_prog_compiler_c_o=yes
6848      fi
6849    fi
6850    chmod u+w .
6851    $rm conftest*
6852    # SGI C++ compiler will create directory out/ii_files/ for
6853    # template instantiation
6854    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6855    $rm out/* && rmdir out
6856    cd ..
6857    rmdir conftest
6858    $rm conftest*
6859
6860 fi
6861 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6862 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6863
6864
6865 hard_links="nottested"
6866 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6867   # do not overwrite the value of need_locks provided by the user
6868   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6869 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6870   hard_links=yes
6871   $rm conftest*
6872   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6873   touch conftest.a
6874   ln conftest.a conftest.b 2>&5 || hard_links=no
6875   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6876   echo "$as_me:$LINENO: result: $hard_links" >&5
6877 echo "${ECHO_T}$hard_links" >&6
6878   if test "$hard_links" = no; then
6879     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6880 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6881     need_locks=warn
6882   fi
6883 else
6884   need_locks=no
6885 fi
6886
6887 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6888 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6889
6890   runpath_var=
6891   allow_undefined_flag=
6892   enable_shared_with_static_runtimes=no
6893   archive_cmds=
6894   archive_expsym_cmds=
6895   old_archive_From_new_cmds=
6896   old_archive_from_expsyms_cmds=
6897   export_dynamic_flag_spec=
6898   whole_archive_flag_spec=
6899   thread_safe_flag_spec=
6900   hardcode_libdir_flag_spec=
6901   hardcode_libdir_flag_spec_ld=
6902   hardcode_libdir_separator=
6903   hardcode_direct=no
6904   hardcode_minus_L=no
6905   hardcode_shlibpath_var=unsupported
6906   link_all_deplibs=unknown
6907   hardcode_automatic=no
6908   module_cmds=
6909   module_expsym_cmds=
6910   always_export_symbols=no
6911   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6912   # include_expsyms should be a list of space-separated symbols to be *always*
6913   # included in the symbol list
6914   include_expsyms=
6915   # exclude_expsyms can be an extended regexp of symbols to exclude
6916   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6917   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6918   # as well as any symbol that contains `d'.
6919   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6920   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6921   # platforms (ab)use it in PIC code, but their linkers get confused if
6922   # the symbol is explicitly referenced.  Since portable code cannot
6923   # rely on this symbol name, it's probably fine to never include it in
6924   # preloaded symbol tables.
6925   extract_expsyms_cmds=
6926
6927   case $host_os in
6928   cygwin* | mingw* | pw32*)
6929     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6930     # When not using gcc, we currently assume that we are using
6931     # Microsoft Visual C++.
6932     if test "$GCC" != yes; then
6933       with_gnu_ld=no
6934     fi
6935     ;;
6936   openbsd*)
6937     with_gnu_ld=no
6938     ;;
6939   esac
6940
6941   ld_shlibs=yes
6942   if test "$with_gnu_ld" = yes; then
6943     # If archive_cmds runs LD, not CC, wlarc should be empty
6944     wlarc='${wl}'
6945
6946     # See if GNU ld supports shared libraries.
6947     case $host_os in
6948     aix3* | aix4* | aix5*)
6949       # On AIX/PPC, the GNU linker is very broken
6950       if test "$host_cpu" != ia64; then
6951         ld_shlibs=no
6952         cat <<EOF 1>&2
6953
6954 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6955 *** to be unable to reliably create shared libraries on AIX.
6956 *** Therefore, libtool is disabling shared libraries support.  If you
6957 *** really care for shared libraries, you may want to modify your PATH
6958 *** so that a non-GNU linker is found, and then restart.
6959
6960 EOF
6961       fi
6962       ;;
6963
6964     amigaos*)
6965       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)'
6966       hardcode_libdir_flag_spec='-L$libdir'
6967       hardcode_minus_L=yes
6968
6969       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6970       # that the semantics of dynamic libraries on AmigaOS, at least up
6971       # to version 4, is to share data among multiple programs linked
6972       # with the same dynamic library.  Since this doesn't match the
6973       # behavior of shared libraries on other platforms, we can't use
6974       # them.
6975       ld_shlibs=no
6976       ;;
6977
6978     beos*)
6979       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6980         allow_undefined_flag=unsupported
6981         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6982         # support --undefined.  This deserves some investigation.  FIXME
6983         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6984       else
6985         ld_shlibs=no
6986       fi
6987       ;;
6988
6989     cygwin* | mingw* | pw32*)
6990       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6991       # as there is no search path for DLLs.
6992       hardcode_libdir_flag_spec='-L$libdir'
6993       allow_undefined_flag=unsupported
6994       always_export_symbols=no
6995       enable_shared_with_static_runtimes=yes
6996       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6997
6998       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6999         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7000         # If the export-symbols file already is a .def file (1st line
7001         # is EXPORTS), use it as is; otherwise, prepend...
7002         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7003           cp $export_symbols $output_objdir/$soname.def;
7004         else
7005           echo EXPORTS > $output_objdir/$soname.def;
7006           cat $export_symbols >> $output_objdir/$soname.def;
7007         fi~
7008         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
7009       else
7010         ld_shlibs=no
7011       fi
7012       ;;
7013
7014     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7015       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7016         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7017         wlarc=
7018       else
7019         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7020         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7021       fi
7022       ;;
7023
7024     solaris* | sysv5*)
7025       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7026         ld_shlibs=no
7027         cat <<EOF 1>&2
7028
7029 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7030 *** create shared libraries on Solaris systems.  Therefore, libtool
7031 *** is disabling shared libraries support.  We urge you to upgrade GNU
7032 *** binutils to release 2.9.1 or newer.  Another option is to modify
7033 *** your PATH or compiler configuration so that the native linker is
7034 *** used, and then restart.
7035
7036 EOF
7037       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7038         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7039         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7040       else
7041         ld_shlibs=no
7042       fi
7043       ;;
7044
7045     sunos4*)
7046       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7047       wlarc=
7048       hardcode_direct=yes
7049       hardcode_shlibpath_var=no
7050       ;;
7051
7052   linux*)
7053     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7054         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7055         archive_cmds="$tmp_archive_cmds"
7056       supports_anon_versioning=no
7057       case `$LD -v 2>/dev/null` in
7058         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7059         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7060         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7061         *\ 2.11.*) ;; # other 2.11 versions
7062         *) supports_anon_versioning=yes ;;
7063       esac
7064       if test $supports_anon_versioning = yes; then
7065         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7066 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7067 $echo "local: *; };" >> $output_objdir/$libname.ver~
7068         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7069       else
7070         archive_expsym_cmds="$tmp_archive_cmds"
7071       fi
7072       link_all_deplibs=no
7073     else
7074       ld_shlibs=no
7075     fi
7076     ;;
7077
7078     *)
7079       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7080         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7081         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7082       else
7083         ld_shlibs=no
7084       fi
7085       ;;
7086     esac
7087
7088     if test "$ld_shlibs" = yes; then
7089       runpath_var=LD_RUN_PATH
7090       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7091       export_dynamic_flag_spec='${wl}--export-dynamic'
7092       # ancient GNU ld didn't support --whole-archive et. al.
7093       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7094         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7095       else
7096         whole_archive_flag_spec=
7097       fi
7098     fi
7099   else
7100     # PORTME fill in a description of your system's linker (not GNU ld)
7101     case $host_os in
7102     aix3*)
7103       allow_undefined_flag=unsupported
7104       always_export_symbols=yes
7105       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'
7106       # Note: this linker hardcodes the directories in LIBPATH if there
7107       # are no directories specified by -L.
7108       hardcode_minus_L=yes
7109       if test "$GCC" = yes && test -z "$link_static_flag"; then
7110         # Neither direct hardcoding nor static linking is supported with a
7111         # broken collect2.
7112         hardcode_direct=unsupported
7113       fi
7114       ;;
7115
7116     aix4* | aix5*)
7117       if test "$host_cpu" = ia64; then
7118         # On IA64, the linker does run time linking by default, so we don't
7119         # have to do anything special.
7120         aix_use_runtimelinking=no
7121         exp_sym_flag='-Bexport'
7122         no_entry_flag=""
7123       else
7124         # If we're using GNU nm, then we don't want the "-C" option.
7125         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7126         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7127           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'
7128         else
7129           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'
7130         fi
7131         aix_use_runtimelinking=no
7132
7133         # Test if we are trying to use run time linking or normal
7134         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7135         # need to do runtime linking.
7136         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7137           for ld_flag in $LDFLAGS; do
7138           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7139             aix_use_runtimelinking=yes
7140             break
7141           fi
7142           done
7143         esac
7144
7145         exp_sym_flag='-bexport'
7146         no_entry_flag='-bnoentry'
7147       fi
7148
7149       # When large executables or shared objects are built, AIX ld can
7150       # have problems creating the table of contents.  If linking a library
7151       # or program results in "error TOC overflow" add -mminimal-toc to
7152       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7153       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7154
7155       archive_cmds=''
7156       hardcode_direct=yes
7157       hardcode_libdir_separator=':'
7158       link_all_deplibs=yes
7159
7160       if test "$GCC" = yes; then
7161         case $host_os in aix4.012|aix4.012.*)
7162         # We only want to do this on AIX 4.2 and lower, the check
7163         # below for broken collect2 doesn't work under 4.3+
7164           collect2name=`${CC} -print-prog-name=collect2`
7165           if test -f "$collect2name" && \
7166            strings "$collect2name" | grep resolve_lib_name >/dev/null
7167           then
7168           # We have reworked collect2
7169           hardcode_direct=yes
7170           else
7171           # We have old collect2
7172           hardcode_direct=unsupported
7173           # It fails to find uninstalled libraries when the uninstalled
7174           # path is not listed in the libpath.  Setting hardcode_minus_L
7175           # to unsupported forces relinking
7176           hardcode_minus_L=yes
7177           hardcode_libdir_flag_spec='-L$libdir'
7178           hardcode_libdir_separator=
7179           fi
7180         esac
7181         shared_flag='-shared'
7182       else
7183         # not using gcc
7184         if test "$host_cpu" = ia64; then
7185         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7186         # chokes on -Wl,-G. The following line is correct:
7187           shared_flag='-G'
7188         else
7189         if test "$aix_use_runtimelinking" = yes; then
7190             shared_flag='${wl}-G'
7191           else
7192             shared_flag='${wl}-bM:SRE'
7193         fi
7194         fi
7195       fi
7196
7197       # It seems that -bexpall does not export symbols beginning with
7198       # underscore (_), so it is better to generate a list of symbols to export.
7199       always_export_symbols=yes
7200       if test "$aix_use_runtimelinking" = yes; then
7201         # Warning - without using the other runtime loading flags (-brtl),
7202         # -berok will link without error, but may produce a broken library.
7203         allow_undefined_flag='-berok'
7204        # Determine the default libpath from the value encoded in an empty executable.
7205        cat >conftest.$ac_ext <<_ACEOF
7206 /* confdefs.h.  */
7207 _ACEOF
7208 cat confdefs.h >>conftest.$ac_ext
7209 cat >>conftest.$ac_ext <<_ACEOF
7210 /* end confdefs.h.  */
7211
7212 int
7213 main ()
7214 {
7215
7216   ;
7217   return 0;
7218 }
7219 _ACEOF
7220 rm -f conftest.$ac_objext conftest$ac_exeext
7221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7222   (eval $ac_link) 2>conftest.er1
7223   ac_status=$?
7224   grep -v '^ *+' conftest.er1 >conftest.err
7225   rm -f conftest.er1
7226   cat conftest.err >&5
7227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228   (exit $ac_status); } &&
7229          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7231   (eval $ac_try) 2>&5
7232   ac_status=$?
7233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234   (exit $ac_status); }; } &&
7235          { ac_try='test -s conftest$ac_exeext'
7236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7237   (eval $ac_try) 2>&5
7238   ac_status=$?
7239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240   (exit $ac_status); }; }; then
7241
7242 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7243 }'`
7244 # Check for a 64-bit object if we didn't find anything.
7245 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; }
7246 }'`; fi
7247 else
7248   echo "$as_me: failed program was:" >&5
7249 sed 's/^/| /' conftest.$ac_ext >&5
7250
7251 fi
7252 rm -f conftest.err conftest.$ac_objext \
7253       conftest$ac_exeext conftest.$ac_ext
7254 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7255
7256        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7257         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7258        else
7259         if test "$host_cpu" = ia64; then
7260           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7261           allow_undefined_flag="-z nodefs"
7262           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7263         else
7264          # Determine the default libpath from the value encoded in an empty executable.
7265          cat >conftest.$ac_ext <<_ACEOF
7266 /* confdefs.h.  */
7267 _ACEOF
7268 cat confdefs.h >>conftest.$ac_ext
7269 cat >>conftest.$ac_ext <<_ACEOF
7270 /* end confdefs.h.  */
7271
7272 int
7273 main ()
7274 {
7275
7276   ;
7277   return 0;
7278 }
7279 _ACEOF
7280 rm -f conftest.$ac_objext conftest$ac_exeext
7281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7282   (eval $ac_link) 2>conftest.er1
7283   ac_status=$?
7284   grep -v '^ *+' conftest.er1 >conftest.err
7285   rm -f conftest.er1
7286   cat conftest.err >&5
7287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288   (exit $ac_status); } &&
7289          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7291   (eval $ac_try) 2>&5
7292   ac_status=$?
7293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294   (exit $ac_status); }; } &&
7295          { ac_try='test -s conftest$ac_exeext'
7296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7297   (eval $ac_try) 2>&5
7298   ac_status=$?
7299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300   (exit $ac_status); }; }; then
7301
7302 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7303 }'`
7304 # Check for a 64-bit object if we didn't find anything.
7305 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; }
7306 }'`; fi
7307 else
7308   echo "$as_me: failed program was:" >&5
7309 sed 's/^/| /' conftest.$ac_ext >&5
7310
7311 fi
7312 rm -f conftest.err conftest.$ac_objext \
7313       conftest$ac_exeext conftest.$ac_ext
7314 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7315
7316          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7317           # Warning - without using the other run time loading flags,
7318           # -berok will link without error, but may produce a broken library.
7319           no_undefined_flag=' ${wl}-bernotok'
7320           allow_undefined_flag=' ${wl}-berok'
7321           # -bexpall does not export symbols beginning with underscore (_)
7322           always_export_symbols=yes
7323           # Exported symbols can be pulled into shared objects from archives
7324           whole_archive_flag_spec=' '
7325           archive_cmds_need_lc=yes
7326           # This is similar to how AIX traditionally builds it's shared libraries.
7327           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7328         fi
7329       fi
7330       ;;
7331
7332     amigaos*)
7333       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)'
7334       hardcode_libdir_flag_spec='-L$libdir'
7335       hardcode_minus_L=yes
7336       # see comment about different semantics on the GNU ld section
7337       ld_shlibs=no
7338       ;;
7339
7340     bsdi4*)
7341       export_dynamic_flag_spec=-rdynamic
7342       ;;
7343
7344     cygwin* | mingw* | pw32*)
7345       # When not using gcc, we currently assume that we are using
7346       # Microsoft Visual C++.
7347       # hardcode_libdir_flag_spec is actually meaningless, as there is
7348       # no search path for DLLs.
7349       hardcode_libdir_flag_spec=' '
7350       allow_undefined_flag=unsupported
7351       # Tell ltmain to make .lib files, not .a files.
7352       libext=lib
7353       # Tell ltmain to make .dll files, not .so files.
7354       shrext_cmds=".dll"
7355       # FIXME: Setting linknames here is a bad hack.
7356       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7357       # The linker will automatically build a .lib file if we build a DLL.
7358       old_archive_From_new_cmds='true'
7359       # FIXME: Should let the user specify the lib program.
7360       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7361       fix_srcfile_path='`cygpath -w "$srcfile"`'
7362       enable_shared_with_static_runtimes=yes
7363       ;;
7364
7365     darwin* | rhapsody*)
7366     if test "$GXX" = yes ; then
7367       archive_cmds_need_lc=no
7368       case "$host_os" in
7369       rhapsody* | darwin1.[012])
7370         allow_undefined_flag='-undefined suppress'
7371         ;;
7372       *) # Darwin 1.3 on
7373       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7374         allow_undefined_flag='-flat_namespace -undefined suppress'
7375       else
7376         case ${MACOSX_DEPLOYMENT_TARGET} in
7377           10.[012])
7378             allow_undefined_flag='-flat_namespace -undefined suppress'
7379             ;;
7380           10.*)
7381             allow_undefined_flag='-undefined dynamic_lookup'
7382             ;;
7383         esac
7384       fi
7385         ;;
7386       esac
7387         lt_int_apple_cc_single_mod=no
7388         output_verbose_link_cmd='echo'
7389         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7390           lt_int_apple_cc_single_mod=yes
7391         fi
7392         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7393           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7394         else
7395         archive_cmds='$CC -r ${wl}-bind_at_load -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'
7396       fi
7397       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7398       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7399         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7400           archive_expsym_cmds='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}'
7401         else
7402           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
7403         fi
7404           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}'
7405       hardcode_direct=no
7406       hardcode_automatic=yes
7407       hardcode_shlibpath_var=unsupported
7408       whole_archive_flag_spec='-all_load $convenience'
7409       link_all_deplibs=yes
7410     else
7411       ld_shlibs=no
7412     fi
7413       ;;
7414
7415     dgux*)
7416       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7417       hardcode_libdir_flag_spec='-L$libdir'
7418       hardcode_shlibpath_var=no
7419       ;;
7420
7421     freebsd1*)
7422       ld_shlibs=no
7423       ;;
7424
7425     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7426     # support.  Future versions do this automatically, but an explicit c++rt0.o
7427     # does not break anything, and helps significantly (at the cost of a little
7428     # extra space).
7429     freebsd2.2*)
7430       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7431       hardcode_libdir_flag_spec='-R$libdir'
7432       hardcode_direct=yes
7433       hardcode_shlibpath_var=no
7434       ;;
7435
7436     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7437     freebsd2*)
7438       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7439       hardcode_direct=yes
7440       hardcode_minus_L=yes
7441       hardcode_shlibpath_var=no
7442       ;;
7443
7444     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7445     freebsd* | kfreebsd*-gnu)
7446       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7447       hardcode_libdir_flag_spec='-R$libdir'
7448       hardcode_direct=yes
7449       hardcode_shlibpath_var=no
7450       ;;
7451
7452     hpux9*)
7453       if test "$GCC" = yes; then
7454         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'
7455       else
7456         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'
7457       fi
7458       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7459       hardcode_libdir_separator=:
7460       hardcode_direct=yes
7461
7462       # hardcode_minus_L: Not really in the search PATH,
7463       # but as the default location of the library.
7464       hardcode_minus_L=yes
7465       export_dynamic_flag_spec='${wl}-E'
7466       ;;
7467
7468     hpux10* | hpux11*)
7469       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7470         case "$host_cpu" in
7471         hppa*64*|ia64*)
7472           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7473           ;;
7474         *)
7475           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7476           ;;
7477         esac
7478       else
7479         case "$host_cpu" in
7480         hppa*64*|ia64*)
7481           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7482           ;;
7483         *)
7484           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7485           ;;
7486         esac
7487       fi
7488       if test "$with_gnu_ld" = no; then
7489         case "$host_cpu" in
7490         hppa*64*)
7491           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7492           hardcode_libdir_flag_spec_ld='+b $libdir'
7493           hardcode_libdir_separator=:
7494           hardcode_direct=no
7495           hardcode_shlibpath_var=no
7496           ;;
7497         ia64*)
7498           hardcode_libdir_flag_spec='-L$libdir'
7499           hardcode_direct=no
7500           hardcode_shlibpath_var=no
7501
7502           # hardcode_minus_L: Not really in the search PATH,
7503           # but as the default location of the library.
7504           hardcode_minus_L=yes
7505           ;;
7506         *)
7507           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7508           hardcode_libdir_separator=:
7509           hardcode_direct=yes
7510           export_dynamic_flag_spec='${wl}-E'
7511
7512           # hardcode_minus_L: Not really in the search PATH,
7513           # but as the default location of the library.
7514           hardcode_minus_L=yes
7515           ;;
7516         esac
7517       fi
7518       ;;
7519
7520     irix5* | irix6* | nonstopux*)
7521       if test "$GCC" = yes; then
7522         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'
7523       else
7524         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'
7525         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7526       fi
7527       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7528       hardcode_libdir_separator=:
7529       link_all_deplibs=yes
7530       ;;
7531
7532     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7533       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7534         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7535       else
7536         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7537       fi
7538       hardcode_libdir_flag_spec='-R$libdir'
7539       hardcode_direct=yes
7540       hardcode_shlibpath_var=no
7541       ;;
7542
7543     newsos6)
7544       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7545       hardcode_direct=yes
7546       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7547       hardcode_libdir_separator=:
7548       hardcode_shlibpath_var=no
7549       ;;
7550
7551     openbsd*)
7552       hardcode_direct=yes
7553       hardcode_shlibpath_var=no
7554       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7555         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7556         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7557         export_dynamic_flag_spec='${wl}-E'
7558       else
7559        case $host_os in
7560          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7561            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7562            hardcode_libdir_flag_spec='-R$libdir'
7563            ;;
7564          *)
7565            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7566            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7567            ;;
7568        esac
7569       fi
7570       ;;
7571
7572     os2*)
7573       hardcode_libdir_flag_spec='-L$libdir'
7574       hardcode_minus_L=yes
7575       allow_undefined_flag=unsupported
7576       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'
7577       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7578       ;;
7579
7580     osf3*)
7581       if test "$GCC" = yes; then
7582         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7583         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'
7584       else
7585         allow_undefined_flag=' -expect_unresolved \*'
7586         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'
7587       fi
7588       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7589       hardcode_libdir_separator=:
7590       ;;
7591
7592     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7593       if test "$GCC" = yes; then
7594         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7595         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'
7596         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7597       else
7598         allow_undefined_flag=' -expect_unresolved \*'
7599         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'
7600         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7601         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7602
7603         # Both c and cxx compiler support -rpath directly
7604         hardcode_libdir_flag_spec='-rpath $libdir'
7605       fi
7606       hardcode_libdir_separator=:
7607       ;;
7608
7609     sco3.2v5*)
7610       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7611       hardcode_shlibpath_var=no
7612       export_dynamic_flag_spec='${wl}-Bexport'
7613       runpath_var=LD_RUN_PATH
7614       hardcode_runpath_var=yes
7615       ;;
7616
7617     solaris*)
7618       no_undefined_flag=' -z text'
7619       if test "$GCC" = yes; then
7620         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7621         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7622           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7623       else
7624         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7625         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7626         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7627       fi
7628       hardcode_libdir_flag_spec='-R$libdir'
7629       hardcode_shlibpath_var=no
7630       case $host_os in
7631       solaris2.[0-5] | solaris2.[0-5].*) ;;
7632       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7633         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7634       esac
7635       link_all_deplibs=yes
7636       ;;
7637
7638     sunos4*)
7639       if test "x$host_vendor" = xsequent; then
7640         # Use $CC to link under sequent, because it throws in some extra .o
7641         # files that make .init and .fini sections work.
7642         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7643       else
7644         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7645       fi
7646       hardcode_libdir_flag_spec='-L$libdir'
7647       hardcode_direct=yes
7648       hardcode_minus_L=yes
7649       hardcode_shlibpath_var=no
7650       ;;
7651
7652     sysv4)
7653       case $host_vendor in
7654         sni)
7655           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7656           hardcode_direct=yes # is this really true???
7657         ;;
7658         siemens)
7659           ## LD is ld it makes a PLAMLIB
7660           ## CC just makes a GrossModule.
7661           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7662           reload_cmds='$CC -r -o $output$reload_objs'
7663           hardcode_direct=no
7664         ;;
7665         motorola)
7666           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7667           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7668         ;;
7669       esac
7670       runpath_var='LD_RUN_PATH'
7671       hardcode_shlibpath_var=no
7672       ;;
7673
7674     sysv4.3*)
7675       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7676       hardcode_shlibpath_var=no
7677       export_dynamic_flag_spec='-Bexport'
7678       ;;
7679
7680     sysv4*MP*)
7681       if test -d /usr/nec; then
7682         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7683         hardcode_shlibpath_var=no
7684         runpath_var=LD_RUN_PATH
7685         hardcode_runpath_var=yes
7686         ld_shlibs=yes
7687       fi
7688       ;;
7689
7690     sysv4.2uw2*)
7691       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7692       hardcode_direct=yes
7693       hardcode_minus_L=no
7694       hardcode_shlibpath_var=no
7695       hardcode_runpath_var=yes
7696       runpath_var=LD_RUN_PATH
7697       ;;
7698
7699    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7700       no_undefined_flag='${wl}-z ${wl}text'
7701       if test "$GCC" = yes; then
7702         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7703       else
7704         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7705       fi
7706       runpath_var='LD_RUN_PATH'
7707       hardcode_shlibpath_var=no
7708       ;;
7709
7710     sysv5*)
7711       no_undefined_flag=' -z text'
7712       # $CC -shared without GNU ld will not create a library from C++
7713       # object files and a static libstdc++, better avoid it by now
7714       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7715       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7716                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7717       hardcode_libdir_flag_spec=
7718       hardcode_shlibpath_var=no
7719       runpath_var='LD_RUN_PATH'
7720       ;;
7721
7722     uts4*)
7723       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7724       hardcode_libdir_flag_spec='-L$libdir'
7725       hardcode_shlibpath_var=no
7726       ;;
7727
7728     *)
7729       ld_shlibs=no
7730       ;;
7731     esac
7732   fi
7733
7734 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7735 echo "${ECHO_T}$ld_shlibs" >&6
7736 test "$ld_shlibs" = no && can_build_shared=no
7737
7738 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7739 if test "$GCC" = yes; then
7740   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7741 fi
7742
7743 #
7744 # Do we need to explicitly link libc?
7745 #
7746 case "x$archive_cmds_need_lc" in
7747 x|xyes)
7748   # Assume -lc should be added
7749   archive_cmds_need_lc=yes
7750
7751   if test "$enable_shared" = yes && test "$GCC" = yes; then
7752     case $archive_cmds in
7753     *'~'*)
7754       # FIXME: we may have to deal with multi-command sequences.
7755       ;;
7756     '$CC '*)
7757       # Test whether the compiler implicitly links with -lc since on some
7758       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7759       # to ld, don't add -lc before -lgcc.
7760       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7761 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7762       $rm conftest*
7763       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7764
7765       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7766   (eval $ac_compile) 2>&5
7767   ac_status=$?
7768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769   (exit $ac_status); } 2>conftest.err; then
7770         soname=conftest
7771         lib=conftest
7772         libobjs=conftest.$ac_objext
7773         deplibs=
7774         wl=$lt_prog_compiler_wl
7775         compiler_flags=-v
7776         linker_flags=-v
7777         verstring=
7778         output_objdir=.
7779         libname=conftest
7780         lt_save_allow_undefined_flag=$allow_undefined_flag
7781         allow_undefined_flag=
7782         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7783   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7784   ac_status=$?
7785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786   (exit $ac_status); }
7787         then
7788           archive_cmds_need_lc=no
7789         else
7790           archive_cmds_need_lc=yes
7791         fi
7792         allow_undefined_flag=$lt_save_allow_undefined_flag
7793       else
7794         cat conftest.err 1>&5
7795       fi
7796       $rm conftest*
7797       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7798 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7799       ;;
7800     esac
7801   fi
7802   ;;
7803 esac
7804
7805 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7806 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7807 library_names_spec=
7808 libname_spec='lib$name'
7809 soname_spec=
7810 shrext_cmds=".so"
7811 postinstall_cmds=
7812 postuninstall_cmds=
7813 finish_cmds=
7814 finish_eval=
7815 shlibpath_var=
7816 shlibpath_overrides_runpath=unknown
7817 version_type=none
7818 dynamic_linker="$host_os ld.so"
7819 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7820 if test "$GCC" = yes; then
7821   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7822   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7823     # if the path contains ";" then we assume it to be the separator
7824     # otherwise default to the standard path separator (i.e. ":") - it is
7825     # assumed that no part of a normal pathname contains ";" but that should
7826     # okay in the real world where ";" in dirpaths is itself problematic.
7827     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7828   else
7829     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7830   fi
7831 else
7832   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7833 fi
7834 need_lib_prefix=unknown
7835 hardcode_into_libs=no
7836
7837 # when you set need_version to no, make sure it does not cause -set_version
7838 # flags to be left without arguments
7839 need_version=unknown
7840
7841 case $host_os in
7842 aix3*)
7843   version_type=linux
7844   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7845   shlibpath_var=LIBPATH
7846
7847   # AIX 3 has no versioning support, so we append a major version to the name.
7848   soname_spec='${libname}${release}${shared_ext}$major'
7849   ;;
7850
7851 aix4* | aix5*)
7852   version_type=linux
7853   need_lib_prefix=no
7854   need_version=no
7855   hardcode_into_libs=yes
7856   if test "$host_cpu" = ia64; then
7857     # AIX 5 supports IA64
7858     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7859     shlibpath_var=LD_LIBRARY_PATH
7860   else
7861     # With GCC up to 2.95.x, collect2 would create an import file
7862     # for dependence libraries.  The import file would start with
7863     # the line `#! .'.  This would cause the generated library to
7864     # depend on `.', always an invalid library.  This was fixed in
7865     # development snapshots of GCC prior to 3.0.
7866     case $host_os in
7867       aix4 | aix4.[01] | aix4.[01].*)
7868       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7869            echo ' yes '
7870            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7871         :
7872       else
7873         can_build_shared=no
7874       fi
7875       ;;
7876     esac
7877     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7878     # soname into executable. Probably we can add versioning support to
7879     # collect2, so additional links can be useful in future.
7880     if test "$aix_use_runtimelinking" = yes; then
7881       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7882       # instead of lib<name>.a to let people know that these are not
7883       # typical AIX shared libraries.
7884       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7885     else
7886       # We preserve .a as extension for shared libraries through AIX4.2
7887       # and later when we are not doing run time linking.
7888       library_names_spec='${libname}${release}.a $libname.a'
7889       soname_spec='${libname}${release}${shared_ext}$major'
7890     fi
7891     shlibpath_var=LIBPATH
7892   fi
7893   ;;
7894
7895 amigaos*)
7896   library_names_spec='$libname.ixlibrary $libname.a'
7897   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7898   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'
7899   ;;
7900
7901 beos*)
7902   library_names_spec='${libname}${shared_ext}'
7903   dynamic_linker="$host_os ld.so"
7904   shlibpath_var=LIBRARY_PATH
7905   ;;
7906
7907 bsdi4*)
7908   version_type=linux
7909   need_version=no
7910   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7911   soname_spec='${libname}${release}${shared_ext}$major'
7912   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7913   shlibpath_var=LD_LIBRARY_PATH
7914   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7915   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7916   # the default ld.so.conf also contains /usr/contrib/lib and
7917   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7918   # libtool to hard-code these into programs
7919   ;;
7920
7921 cygwin* | mingw* | pw32*)
7922   version_type=windows
7923   shrext_cmds=".dll"
7924   need_version=no
7925   need_lib_prefix=no
7926
7927   case $GCC,$host_os in
7928   yes,cygwin* | yes,mingw* | yes,pw32*)
7929     library_names_spec='$libname.dll.a'
7930     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7931     postinstall_cmds='base_file=`basename \${file}`~
7932       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7933       dldir=$destdir/`dirname \$dlpath`~
7934       test -d \$dldir || mkdir -p \$dldir~
7935       $install_prog $dir/$dlname \$dldir/$dlname'
7936     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7937       dlpath=$dir/\$dldll~
7938        $rm \$dlpath'
7939     shlibpath_overrides_runpath=yes
7940
7941     case $host_os in
7942     cygwin*)
7943       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7944       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7945       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7946       ;;
7947     mingw*)
7948       # MinGW DLLs use traditional 'lib' prefix
7949       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7950       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7951       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7952         # It is most probably a Windows format PATH printed by
7953         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7954         # path with ; separators, and with drive letters. We can handle the
7955         # drive letters (cygwin fileutils understands them), so leave them,
7956         # especially as we might pass files found there to a mingw objdump,
7957         # which wouldn't understand a cygwinified path. Ahh.
7958         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7959       else
7960         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7961       fi
7962       ;;
7963     pw32*)
7964       # pw32 DLLs use 'pw' prefix rather than 'lib'
7965       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7966       ;;
7967     esac
7968     ;;
7969
7970   *)
7971     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7972     ;;
7973   esac
7974   dynamic_linker='Win32 ld.exe'
7975   # FIXME: first we should search . and the directory the executable is in
7976   shlibpath_var=PATH
7977   ;;
7978
7979 darwin* | rhapsody*)
7980   dynamic_linker="$host_os dyld"
7981   version_type=darwin
7982   need_lib_prefix=no
7983   need_version=no
7984   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7985   soname_spec='${libname}${release}${major}$shared_ext'
7986   shlibpath_overrides_runpath=yes
7987   shlibpath_var=DYLD_LIBRARY_PATH
7988   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7989   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7990   if test "$GCC" = yes; then
7991     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"`
7992   else
7993     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7994   fi
7995   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7996   ;;
7997
7998 dgux*)
7999   version_type=linux
8000   need_lib_prefix=no
8001   need_version=no
8002   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8003   soname_spec='${libname}${release}${shared_ext}$major'
8004   shlibpath_var=LD_LIBRARY_PATH
8005   ;;
8006
8007 freebsd1*)
8008   dynamic_linker=no
8009   ;;
8010
8011 kfreebsd*-gnu)
8012   version_type=linux
8013   need_lib_prefix=no
8014   need_version=no
8015   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8016   soname_spec='${libname}${release}${shared_ext}$major'
8017   shlibpath_var=LD_LIBRARY_PATH
8018   shlibpath_overrides_runpath=no
8019   hardcode_into_libs=yes
8020   dynamic_linker='GNU ld.so'
8021   ;;
8022
8023 freebsd*)
8024   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8025   version_type=freebsd-$objformat
8026   case $version_type in
8027     freebsd-elf*)
8028       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8029       need_version=no
8030       need_lib_prefix=no
8031       ;;
8032     freebsd-*)
8033       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8034       need_version=yes
8035       ;;
8036   esac
8037   shlibpath_var=LD_LIBRARY_PATH
8038   case $host_os in
8039   freebsd2*)
8040     shlibpath_overrides_runpath=yes
8041     ;;
8042   freebsd3.01* | freebsdelf3.01*)
8043     shlibpath_overrides_runpath=yes
8044     hardcode_into_libs=yes
8045     ;;
8046   *) # from 3.2 on
8047     shlibpath_overrides_runpath=no
8048     hardcode_into_libs=yes
8049     ;;
8050   esac
8051   ;;
8052
8053 gnu*)
8054   version_type=linux
8055   need_lib_prefix=no
8056   need_version=no
8057   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8058   soname_spec='${libname}${release}${shared_ext}$major'
8059   shlibpath_var=LD_LIBRARY_PATH
8060   hardcode_into_libs=yes
8061   ;;
8062
8063 hpux9* | hpux10* | hpux11*)
8064   # Give a soname corresponding to the major version so that dld.sl refuses to
8065   # link against other versions.
8066   version_type=sunos
8067   need_lib_prefix=no
8068   need_version=no
8069   case "$host_cpu" in
8070   ia64*)
8071     shrext_cmds='.so'
8072     hardcode_into_libs=yes
8073     dynamic_linker="$host_os dld.so"
8074     shlibpath_var=LD_LIBRARY_PATH
8075     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8076     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8077     soname_spec='${libname}${release}${shared_ext}$major'
8078     if test "X$HPUX_IA64_MODE" = X32; then
8079       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8080     else
8081       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8082     fi
8083     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8084     ;;
8085    hppa*64*)
8086      shrext_cmds='.sl'
8087      hardcode_into_libs=yes
8088      dynamic_linker="$host_os dld.sl"
8089      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8090      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8091      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8092      soname_spec='${libname}${release}${shared_ext}$major'
8093      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8094      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8095      ;;
8096    *)
8097     shrext_cmds='.sl'
8098     dynamic_linker="$host_os dld.sl"
8099     shlibpath_var=SHLIB_PATH
8100     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8101     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8102     soname_spec='${libname}${release}${shared_ext}$major'
8103     ;;
8104   esac
8105   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8106   postinstall_cmds='chmod 555 $lib'
8107   ;;
8108
8109 irix5* | irix6* | nonstopux*)
8110   case $host_os in
8111     nonstopux*) version_type=nonstopux ;;
8112     *)
8113         if test "$lt_cv_prog_gnu_ld" = yes; then
8114                 version_type=linux
8115         else
8116                 version_type=irix
8117         fi ;;
8118   esac
8119   need_lib_prefix=no
8120   need_version=no
8121   soname_spec='${libname}${release}${shared_ext}$major'
8122   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8123   case $host_os in
8124   irix5* | nonstopux*)
8125     libsuff= shlibsuff=
8126     ;;
8127   *)
8128     case $LD in # libtool.m4 will add one of these switches to LD
8129     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8130       libsuff= shlibsuff= libmagic=32-bit;;
8131     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8132       libsuff=32 shlibsuff=N32 libmagic=N32;;
8133     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8134       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8135     *) libsuff= shlibsuff= libmagic=never-match;;
8136     esac
8137     ;;
8138   esac
8139   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8140   shlibpath_overrides_runpath=no
8141   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8142   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8143   hardcode_into_libs=yes
8144   ;;
8145
8146 # No shared lib support for Linux oldld, aout, or coff.
8147 linux*oldld* | linux*aout* | linux*coff*)
8148   dynamic_linker=no
8149   ;;
8150
8151 # This must be Linux ELF.
8152 linux*)
8153   version_type=linux
8154   need_lib_prefix=no
8155   need_version=no
8156   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8157   soname_spec='${libname}${release}${shared_ext}$major'
8158   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8159   shlibpath_var=LD_LIBRARY_PATH
8160   shlibpath_overrides_runpath=no
8161   # This implies no fast_install, which is unacceptable.
8162   # Some rework will be needed to allow for fast_install
8163   # before this can be enabled.
8164   hardcode_into_libs=yes
8165
8166   # Append ld.so.conf contents to the search path
8167   if test -f /etc/ld.so.conf; then
8168     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
8169     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8170   fi
8171
8172   # We used to test for /lib/ld.so.1 and disable shared libraries on
8173   # powerpc, because MkLinux only supported shared libraries with the
8174   # GNU dynamic linker.  Since this was broken with cross compilers,
8175   # most powerpc-linux boxes support dynamic linking these days and
8176   # people can always --disable-shared, the test was removed, and we
8177   # assume the GNU/Linux dynamic linker is in use.
8178   dynamic_linker='GNU/Linux ld.so'
8179   ;;
8180
8181 netbsdelf*-gnu)
8182   version_type=linux
8183   need_lib_prefix=no
8184   need_version=no
8185   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8186   soname_spec='${libname}${release}${shared_ext}$major'
8187   shlibpath_var=LD_LIBRARY_PATH
8188   shlibpath_overrides_runpath=no
8189   hardcode_into_libs=yes
8190   dynamic_linker='NetBSD ld.elf_so'
8191   ;;
8192
8193 knetbsd*-gnu)
8194   version_type=linux
8195   need_lib_prefix=no
8196   need_version=no
8197   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8198   soname_spec='${libname}${release}${shared_ext}$major'
8199   shlibpath_var=LD_LIBRARY_PATH
8200   shlibpath_overrides_runpath=no
8201   hardcode_into_libs=yes
8202   dynamic_linker='GNU ld.so'
8203   ;;
8204
8205 netbsd*)
8206   version_type=sunos
8207   need_lib_prefix=no
8208   need_version=no
8209   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8210     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8211     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8212     dynamic_linker='NetBSD (a.out) ld.so'
8213   else
8214     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8215     soname_spec='${libname}${release}${shared_ext}$major'
8216     dynamic_linker='NetBSD ld.elf_so'
8217   fi
8218   shlibpath_var=LD_LIBRARY_PATH
8219   shlibpath_overrides_runpath=yes
8220   hardcode_into_libs=yes
8221   ;;
8222
8223 newsos6)
8224   version_type=linux
8225   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8226   shlibpath_var=LD_LIBRARY_PATH
8227   shlibpath_overrides_runpath=yes
8228   ;;
8229
8230 nto-qnx*)
8231   version_type=linux
8232   need_lib_prefix=no
8233   need_version=no
8234   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8235   soname_spec='${libname}${release}${shared_ext}$major'
8236   shlibpath_var=LD_LIBRARY_PATH
8237   shlibpath_overrides_runpath=yes
8238   ;;
8239
8240 openbsd*)
8241   version_type=sunos
8242   need_lib_prefix=no
8243   need_version=yes
8244   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8245   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8246   shlibpath_var=LD_LIBRARY_PATH
8247   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8248     case $host_os in
8249       openbsd2.[89] | openbsd2.[89].*)
8250         shlibpath_overrides_runpath=no
8251         ;;
8252       *)
8253         shlibpath_overrides_runpath=yes
8254         ;;
8255       esac
8256   else
8257     shlibpath_overrides_runpath=yes
8258   fi
8259   ;;
8260
8261 os2*)
8262   libname_spec='$name'
8263   shrext_cmds=".dll"
8264   need_lib_prefix=no
8265   library_names_spec='$libname${shared_ext} $libname.a'
8266   dynamic_linker='OS/2 ld.exe'
8267   shlibpath_var=LIBPATH
8268   ;;
8269
8270 osf3* | osf4* | osf5*)
8271   version_type=osf
8272   need_lib_prefix=no
8273   need_version=no
8274   soname_spec='${libname}${release}${shared_ext}$major'
8275   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8276   shlibpath_var=LD_LIBRARY_PATH
8277   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8278   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8279   ;;
8280
8281 sco3.2v5*)
8282   version_type=osf
8283   soname_spec='${libname}${release}${shared_ext}$major'
8284   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8285   shlibpath_var=LD_LIBRARY_PATH
8286   ;;
8287
8288 solaris*)
8289   version_type=linux
8290   need_lib_prefix=no
8291   need_version=no
8292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8293   soname_spec='${libname}${release}${shared_ext}$major'
8294   shlibpath_var=LD_LIBRARY_PATH
8295   shlibpath_overrides_runpath=yes
8296   hardcode_into_libs=yes
8297   # ldd complains unless libraries are executable
8298   postinstall_cmds='chmod +x $lib'
8299   ;;
8300
8301 sunos4*)
8302   version_type=sunos
8303   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8304   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8305   shlibpath_var=LD_LIBRARY_PATH
8306   shlibpath_overrides_runpath=yes
8307   if test "$with_gnu_ld" = yes; then
8308     need_lib_prefix=no
8309   fi
8310   need_version=yes
8311   ;;
8312
8313 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8314   version_type=linux
8315   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8316   soname_spec='${libname}${release}${shared_ext}$major'
8317   shlibpath_var=LD_LIBRARY_PATH
8318   case $host_vendor in
8319     sni)
8320       shlibpath_overrides_runpath=no
8321       need_lib_prefix=no
8322       export_dynamic_flag_spec='${wl}-Blargedynsym'
8323       runpath_var=LD_RUN_PATH
8324       ;;
8325     siemens)
8326       need_lib_prefix=no
8327       ;;
8328     motorola)
8329       need_lib_prefix=no
8330       need_version=no
8331       shlibpath_overrides_runpath=no
8332       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8333       ;;
8334   esac
8335   ;;
8336
8337 sysv4*MP*)
8338   if test -d /usr/nec ;then
8339     version_type=linux
8340     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8341     soname_spec='$libname${shared_ext}.$major'
8342     shlibpath_var=LD_LIBRARY_PATH
8343   fi
8344   ;;
8345
8346 uts4*)
8347   version_type=linux
8348   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8349   soname_spec='${libname}${release}${shared_ext}$major'
8350   shlibpath_var=LD_LIBRARY_PATH
8351   ;;
8352
8353 *)
8354   dynamic_linker=no
8355   ;;
8356 esac
8357 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8358 echo "${ECHO_T}$dynamic_linker" >&6
8359 test "$dynamic_linker" = no && can_build_shared=no
8360
8361 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8362 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8363 hardcode_action=
8364 if test -n "$hardcode_libdir_flag_spec" || \
8365    test -n "$runpath_var " || \
8366    test "X$hardcode_automatic"="Xyes" ; then
8367
8368   # We can hardcode non-existant directories.
8369   if test "$hardcode_direct" != no &&
8370      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8371      # have to relink, otherwise we might link with an installed library
8372      # when we should be linking with a yet-to-be-installed one
8373      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8374      test "$hardcode_minus_L" != no; then
8375     # Linking always hardcodes the temporary library directory.
8376     hardcode_action=relink
8377   else
8378     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8379     hardcode_action=immediate
8380   fi
8381 else
8382   # We cannot hardcode anything, or else we can only hardcode existing
8383   # directories.
8384   hardcode_action=unsupported
8385 fi
8386 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8387 echo "${ECHO_T}$hardcode_action" >&6
8388
8389 if test "$hardcode_action" = relink; then
8390   # Fast installation is not supported
8391   enable_fast_install=no
8392 elif test "$shlibpath_overrides_runpath" = yes ||
8393      test "$enable_shared" = no; then
8394   # Fast installation is not necessary
8395   enable_fast_install=needless
8396 fi
8397
8398 striplib=
8399 old_striplib=
8400 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8401 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8402 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8403   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8404   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8405   echo "$as_me:$LINENO: result: yes" >&5
8406 echo "${ECHO_T}yes" >&6
8407 else
8408 # FIXME - insert some real tests, host_os isn't really good enough
8409   case $host_os in
8410    darwin*)
8411        if test -n "$STRIP" ; then
8412          striplib="$STRIP -x"
8413          echo "$as_me:$LINENO: result: yes" >&5
8414 echo "${ECHO_T}yes" >&6
8415        else
8416   echo "$as_me:$LINENO: result: no" >&5
8417 echo "${ECHO_T}no" >&6
8418 fi
8419        ;;
8420    *)
8421   echo "$as_me:$LINENO: result: no" >&5
8422 echo "${ECHO_T}no" >&6
8423     ;;
8424   esac
8425 fi
8426
8427 if test "x$enable_dlopen" != xyes; then
8428   enable_dlopen=unknown
8429   enable_dlopen_self=unknown
8430   enable_dlopen_self_static=unknown
8431 else
8432   lt_cv_dlopen=no
8433   lt_cv_dlopen_libs=
8434
8435   case $host_os in
8436   beos*)
8437     lt_cv_dlopen="load_add_on"
8438     lt_cv_dlopen_libs=
8439     lt_cv_dlopen_self=yes
8440     ;;
8441
8442   mingw* | pw32*)
8443     lt_cv_dlopen="LoadLibrary"
8444     lt_cv_dlopen_libs=
8445    ;;
8446
8447   cygwin*)
8448     lt_cv_dlopen="dlopen"
8449     lt_cv_dlopen_libs=
8450    ;;
8451
8452   darwin*)
8453   # if libdl is installed we need to link against it
8454     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8455 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8456 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8457   echo $ECHO_N "(cached) $ECHO_C" >&6
8458 else
8459   ac_check_lib_save_LIBS=$LIBS
8460 LIBS="-ldl  $LIBS"
8461 cat >conftest.$ac_ext <<_ACEOF
8462 /* confdefs.h.  */
8463 _ACEOF
8464 cat confdefs.h >>conftest.$ac_ext
8465 cat >>conftest.$ac_ext <<_ACEOF
8466 /* end confdefs.h.  */
8467
8468 /* Override any gcc2 internal prototype to avoid an error.  */
8469 #ifdef __cplusplus
8470 extern "C"
8471 #endif
8472 /* We use char because int might match the return type of a gcc2
8473    builtin and then its argument prototype would still apply.  */
8474 char dlopen ();
8475 int
8476 main ()
8477 {
8478 dlopen ();
8479   ;
8480   return 0;
8481 }
8482 _ACEOF
8483 rm -f conftest.$ac_objext conftest$ac_exeext
8484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8485   (eval $ac_link) 2>conftest.er1
8486   ac_status=$?
8487   grep -v '^ *+' conftest.er1 >conftest.err
8488   rm -f conftest.er1
8489   cat conftest.err >&5
8490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491   (exit $ac_status); } &&
8492          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8494   (eval $ac_try) 2>&5
8495   ac_status=$?
8496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497   (exit $ac_status); }; } &&
8498          { ac_try='test -s conftest$ac_exeext'
8499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8500   (eval $ac_try) 2>&5
8501   ac_status=$?
8502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503   (exit $ac_status); }; }; then
8504   ac_cv_lib_dl_dlopen=yes
8505 else
8506   echo "$as_me: failed program was:" >&5
8507 sed 's/^/| /' conftest.$ac_ext >&5
8508
8509 ac_cv_lib_dl_dlopen=no
8510 fi
8511 rm -f conftest.err conftest.$ac_objext \
8512       conftest$ac_exeext conftest.$ac_ext
8513 LIBS=$ac_check_lib_save_LIBS
8514 fi
8515 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8516 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8517 if test $ac_cv_lib_dl_dlopen = yes; then
8518   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8519 else
8520
8521     lt_cv_dlopen="dyld"
8522     lt_cv_dlopen_libs=
8523     lt_cv_dlopen_self=yes
8524
8525 fi
8526
8527    ;;
8528
8529   *)
8530     echo "$as_me:$LINENO: checking for shl_load" >&5
8531 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8532 if test "${ac_cv_func_shl_load+set}" = set; then
8533   echo $ECHO_N "(cached) $ECHO_C" >&6
8534 else
8535   cat >conftest.$ac_ext <<_ACEOF
8536 /* confdefs.h.  */
8537 _ACEOF
8538 cat confdefs.h >>conftest.$ac_ext
8539 cat >>conftest.$ac_ext <<_ACEOF
8540 /* end confdefs.h.  */
8541 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8542    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8543 #define shl_load innocuous_shl_load
8544
8545 /* System header to define __stub macros and hopefully few prototypes,
8546     which can conflict with char shl_load (); below.
8547     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8548     <limits.h> exists even on freestanding compilers.  */
8549
8550 #ifdef __STDC__
8551 # include <limits.h>
8552 #else
8553 # include <assert.h>
8554 #endif
8555
8556 #undef shl_load
8557
8558 /* Override any gcc2 internal prototype to avoid an error.  */
8559 #ifdef __cplusplus
8560 extern "C"
8561 {
8562 #endif
8563 /* We use char because int might match the return type of a gcc2
8564    builtin and then its argument prototype would still apply.  */
8565 char shl_load ();
8566 /* The GNU C library defines this for functions which it implements
8567     to always fail with ENOSYS.  Some functions are actually named
8568     something starting with __ and the normal name is an alias.  */
8569 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8570 choke me
8571 #else
8572 char (*f) () = shl_load;
8573 #endif
8574 #ifdef __cplusplus
8575 }
8576 #endif
8577
8578 int
8579 main ()
8580 {
8581 return f != shl_load;
8582   ;
8583   return 0;
8584 }
8585 _ACEOF
8586 rm -f conftest.$ac_objext conftest$ac_exeext
8587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8588   (eval $ac_link) 2>conftest.er1
8589   ac_status=$?
8590   grep -v '^ *+' conftest.er1 >conftest.err
8591   rm -f conftest.er1
8592   cat conftest.err >&5
8593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594   (exit $ac_status); } &&
8595          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8597   (eval $ac_try) 2>&5
8598   ac_status=$?
8599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600   (exit $ac_status); }; } &&
8601          { ac_try='test -s conftest$ac_exeext'
8602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8603   (eval $ac_try) 2>&5
8604   ac_status=$?
8605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606   (exit $ac_status); }; }; then
8607   ac_cv_func_shl_load=yes
8608 else
8609   echo "$as_me: failed program was:" >&5
8610 sed 's/^/| /' conftest.$ac_ext >&5
8611
8612 ac_cv_func_shl_load=no
8613 fi
8614 rm -f conftest.err conftest.$ac_objext \
8615       conftest$ac_exeext conftest.$ac_ext
8616 fi
8617 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8618 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8619 if test $ac_cv_func_shl_load = yes; then
8620   lt_cv_dlopen="shl_load"
8621 else
8622   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8623 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8624 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8625   echo $ECHO_N "(cached) $ECHO_C" >&6
8626 else
8627   ac_check_lib_save_LIBS=$LIBS
8628 LIBS="-ldld  $LIBS"
8629 cat >conftest.$ac_ext <<_ACEOF
8630 /* confdefs.h.  */
8631 _ACEOF
8632 cat confdefs.h >>conftest.$ac_ext
8633 cat >>conftest.$ac_ext <<_ACEOF
8634 /* end confdefs.h.  */
8635
8636 /* Override any gcc2 internal prototype to avoid an error.  */
8637 #ifdef __cplusplus
8638 extern "C"
8639 #endif
8640 /* We use char because int might match the return type of a gcc2
8641    builtin and then its argument prototype would still apply.  */
8642 char shl_load ();
8643 int
8644 main ()
8645 {
8646 shl_load ();
8647   ;
8648   return 0;
8649 }
8650 _ACEOF
8651 rm -f conftest.$ac_objext conftest$ac_exeext
8652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8653   (eval $ac_link) 2>conftest.er1
8654   ac_status=$?
8655   grep -v '^ *+' conftest.er1 >conftest.err
8656   rm -f conftest.er1
8657   cat conftest.err >&5
8658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659   (exit $ac_status); } &&
8660          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8662   (eval $ac_try) 2>&5
8663   ac_status=$?
8664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665   (exit $ac_status); }; } &&
8666          { ac_try='test -s conftest$ac_exeext'
8667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8668   (eval $ac_try) 2>&5
8669   ac_status=$?
8670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671   (exit $ac_status); }; }; then
8672   ac_cv_lib_dld_shl_load=yes
8673 else
8674   echo "$as_me: failed program was:" >&5
8675 sed 's/^/| /' conftest.$ac_ext >&5
8676
8677 ac_cv_lib_dld_shl_load=no
8678 fi
8679 rm -f conftest.err conftest.$ac_objext \
8680       conftest$ac_exeext conftest.$ac_ext
8681 LIBS=$ac_check_lib_save_LIBS
8682 fi
8683 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8684 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8685 if test $ac_cv_lib_dld_shl_load = yes; then
8686   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8687 else
8688   echo "$as_me:$LINENO: checking for dlopen" >&5
8689 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8690 if test "${ac_cv_func_dlopen+set}" = set; then
8691   echo $ECHO_N "(cached) $ECHO_C" >&6
8692 else
8693   cat >conftest.$ac_ext <<_ACEOF
8694 /* confdefs.h.  */
8695 _ACEOF
8696 cat confdefs.h >>conftest.$ac_ext
8697 cat >>conftest.$ac_ext <<_ACEOF
8698 /* end confdefs.h.  */
8699 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8700    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8701 #define dlopen innocuous_dlopen
8702
8703 /* System header to define __stub macros and hopefully few prototypes,
8704     which can conflict with char dlopen (); below.
8705     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8706     <limits.h> exists even on freestanding compilers.  */
8707
8708 #ifdef __STDC__
8709 # include <limits.h>
8710 #else
8711 # include <assert.h>
8712 #endif
8713
8714 #undef dlopen
8715
8716 /* Override any gcc2 internal prototype to avoid an error.  */
8717 #ifdef __cplusplus
8718 extern "C"
8719 {
8720 #endif
8721 /* We use char because int might match the return type of a gcc2
8722    builtin and then its argument prototype would still apply.  */
8723 char dlopen ();
8724 /* The GNU C library defines this for functions which it implements
8725     to always fail with ENOSYS.  Some functions are actually named
8726     something starting with __ and the normal name is an alias.  */
8727 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8728 choke me
8729 #else
8730 char (*f) () = dlopen;
8731 #endif
8732 #ifdef __cplusplus
8733 }
8734 #endif
8735
8736 int
8737 main ()
8738 {
8739 return f != dlopen;
8740   ;
8741   return 0;
8742 }
8743 _ACEOF
8744 rm -f conftest.$ac_objext conftest$ac_exeext
8745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8746   (eval $ac_link) 2>conftest.er1
8747   ac_status=$?
8748   grep -v '^ *+' conftest.er1 >conftest.err
8749   rm -f conftest.er1
8750   cat conftest.err >&5
8751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752   (exit $ac_status); } &&
8753          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8755   (eval $ac_try) 2>&5
8756   ac_status=$?
8757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758   (exit $ac_status); }; } &&
8759          { ac_try='test -s conftest$ac_exeext'
8760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8761   (eval $ac_try) 2>&5
8762   ac_status=$?
8763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764   (exit $ac_status); }; }; then
8765   ac_cv_func_dlopen=yes
8766 else
8767   echo "$as_me: failed program was:" >&5
8768 sed 's/^/| /' conftest.$ac_ext >&5
8769
8770 ac_cv_func_dlopen=no
8771 fi
8772 rm -f conftest.err conftest.$ac_objext \
8773       conftest$ac_exeext conftest.$ac_ext
8774 fi
8775 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8776 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8777 if test $ac_cv_func_dlopen = yes; then
8778   lt_cv_dlopen="dlopen"
8779 else
8780   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8781 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8782 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8783   echo $ECHO_N "(cached) $ECHO_C" >&6
8784 else
8785   ac_check_lib_save_LIBS=$LIBS
8786 LIBS="-ldl  $LIBS"
8787 cat >conftest.$ac_ext <<_ACEOF
8788 /* confdefs.h.  */
8789 _ACEOF
8790 cat confdefs.h >>conftest.$ac_ext
8791 cat >>conftest.$ac_ext <<_ACEOF
8792 /* end confdefs.h.  */
8793
8794 /* Override any gcc2 internal prototype to avoid an error.  */
8795 #ifdef __cplusplus
8796 extern "C"
8797 #endif
8798 /* We use char because int might match the return type of a gcc2
8799    builtin and then its argument prototype would still apply.  */
8800 char dlopen ();
8801 int
8802 main ()
8803 {
8804 dlopen ();
8805   ;
8806   return 0;
8807 }
8808 _ACEOF
8809 rm -f conftest.$ac_objext conftest$ac_exeext
8810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8811   (eval $ac_link) 2>conftest.er1
8812   ac_status=$?
8813   grep -v '^ *+' conftest.er1 >conftest.err
8814   rm -f conftest.er1
8815   cat conftest.err >&5
8816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817   (exit $ac_status); } &&
8818          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8820   (eval $ac_try) 2>&5
8821   ac_status=$?
8822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823   (exit $ac_status); }; } &&
8824          { ac_try='test -s conftest$ac_exeext'
8825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8826   (eval $ac_try) 2>&5
8827   ac_status=$?
8828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829   (exit $ac_status); }; }; then
8830   ac_cv_lib_dl_dlopen=yes
8831 else
8832   echo "$as_me: failed program was:" >&5
8833 sed 's/^/| /' conftest.$ac_ext >&5
8834
8835 ac_cv_lib_dl_dlopen=no
8836 fi
8837 rm -f conftest.err conftest.$ac_objext \
8838       conftest$ac_exeext conftest.$ac_ext
8839 LIBS=$ac_check_lib_save_LIBS
8840 fi
8841 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8842 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8843 if test $ac_cv_lib_dl_dlopen = yes; then
8844   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8845 else
8846   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8847 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8848 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8849   echo $ECHO_N "(cached) $ECHO_C" >&6
8850 else
8851   ac_check_lib_save_LIBS=$LIBS
8852 LIBS="-lsvld  $LIBS"
8853 cat >conftest.$ac_ext <<_ACEOF
8854 /* confdefs.h.  */
8855 _ACEOF
8856 cat confdefs.h >>conftest.$ac_ext
8857 cat >>conftest.$ac_ext <<_ACEOF
8858 /* end confdefs.h.  */
8859
8860 /* Override any gcc2 internal prototype to avoid an error.  */
8861 #ifdef __cplusplus
8862 extern "C"
8863 #endif
8864 /* We use char because int might match the return type of a gcc2
8865    builtin and then its argument prototype would still apply.  */
8866 char dlopen ();
8867 int
8868 main ()
8869 {
8870 dlopen ();
8871   ;
8872   return 0;
8873 }
8874 _ACEOF
8875 rm -f conftest.$ac_objext conftest$ac_exeext
8876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8877   (eval $ac_link) 2>conftest.er1
8878   ac_status=$?
8879   grep -v '^ *+' conftest.er1 >conftest.err
8880   rm -f conftest.er1
8881   cat conftest.err >&5
8882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883   (exit $ac_status); } &&
8884          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8886   (eval $ac_try) 2>&5
8887   ac_status=$?
8888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889   (exit $ac_status); }; } &&
8890          { ac_try='test -s conftest$ac_exeext'
8891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8892   (eval $ac_try) 2>&5
8893   ac_status=$?
8894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895   (exit $ac_status); }; }; then
8896   ac_cv_lib_svld_dlopen=yes
8897 else
8898   echo "$as_me: failed program was:" >&5
8899 sed 's/^/| /' conftest.$ac_ext >&5
8900
8901 ac_cv_lib_svld_dlopen=no
8902 fi
8903 rm -f conftest.err conftest.$ac_objext \
8904       conftest$ac_exeext conftest.$ac_ext
8905 LIBS=$ac_check_lib_save_LIBS
8906 fi
8907 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8908 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8909 if test $ac_cv_lib_svld_dlopen = yes; then
8910   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8911 else
8912   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8913 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8914 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8915   echo $ECHO_N "(cached) $ECHO_C" >&6
8916 else
8917   ac_check_lib_save_LIBS=$LIBS
8918 LIBS="-ldld  $LIBS"
8919 cat >conftest.$ac_ext <<_ACEOF
8920 /* confdefs.h.  */
8921 _ACEOF
8922 cat confdefs.h >>conftest.$ac_ext
8923 cat >>conftest.$ac_ext <<_ACEOF
8924 /* end confdefs.h.  */
8925
8926 /* Override any gcc2 internal prototype to avoid an error.  */
8927 #ifdef __cplusplus
8928 extern "C"
8929 #endif
8930 /* We use char because int might match the return type of a gcc2
8931    builtin and then its argument prototype would still apply.  */
8932 char dld_link ();
8933 int
8934 main ()
8935 {
8936 dld_link ();
8937   ;
8938   return 0;
8939 }
8940 _ACEOF
8941 rm -f conftest.$ac_objext conftest$ac_exeext
8942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8943   (eval $ac_link) 2>conftest.er1
8944   ac_status=$?
8945   grep -v '^ *+' conftest.er1 >conftest.err
8946   rm -f conftest.er1
8947   cat conftest.err >&5
8948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949   (exit $ac_status); } &&
8950          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8952   (eval $ac_try) 2>&5
8953   ac_status=$?
8954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955   (exit $ac_status); }; } &&
8956          { ac_try='test -s conftest$ac_exeext'
8957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8958   (eval $ac_try) 2>&5
8959   ac_status=$?
8960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961   (exit $ac_status); }; }; then
8962   ac_cv_lib_dld_dld_link=yes
8963 else
8964   echo "$as_me: failed program was:" >&5
8965 sed 's/^/| /' conftest.$ac_ext >&5
8966
8967 ac_cv_lib_dld_dld_link=no
8968 fi
8969 rm -f conftest.err conftest.$ac_objext \
8970       conftest$ac_exeext conftest.$ac_ext
8971 LIBS=$ac_check_lib_save_LIBS
8972 fi
8973 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8974 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8975 if test $ac_cv_lib_dld_dld_link = yes; then
8976   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8977 fi
8978
8979
8980 fi
8981
8982
8983 fi
8984
8985
8986 fi
8987
8988
8989 fi
8990
8991
8992 fi
8993
8994     ;;
8995   esac
8996
8997   if test "x$lt_cv_dlopen" != xno; then
8998     enable_dlopen=yes
8999   else
9000     enable_dlopen=no
9001   fi
9002
9003   case $lt_cv_dlopen in
9004   dlopen)
9005     save_CPPFLAGS="$CPPFLAGS"
9006     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9007
9008     save_LDFLAGS="$LDFLAGS"
9009     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9010
9011     save_LIBS="$LIBS"
9012     LIBS="$lt_cv_dlopen_libs $LIBS"
9013
9014     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9015 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9016 if test "${lt_cv_dlopen_self+set}" = set; then
9017   echo $ECHO_N "(cached) $ECHO_C" >&6
9018 else
9019           if test "$cross_compiling" = yes; then :
9020   lt_cv_dlopen_self=cross
9021 else
9022   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9023   lt_status=$lt_dlunknown
9024   cat > conftest.$ac_ext <<EOF
9025 #line 9025 "configure"
9026 #include "confdefs.h"
9027
9028 #if HAVE_DLFCN_H
9029 #include <dlfcn.h>
9030 #endif
9031
9032 #include <stdio.h>
9033
9034 #ifdef RTLD_GLOBAL
9035 #  define LT_DLGLOBAL           RTLD_GLOBAL
9036 #else
9037 #  ifdef DL_GLOBAL
9038 #    define LT_DLGLOBAL         DL_GLOBAL
9039 #  else
9040 #    define LT_DLGLOBAL         0
9041 #  endif
9042 #endif
9043
9044 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9045    find out it does not work in some platform. */
9046 #ifndef LT_DLLAZY_OR_NOW
9047 #  ifdef RTLD_LAZY
9048 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9049 #  else
9050 #    ifdef DL_LAZY
9051 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9052 #    else
9053 #      ifdef RTLD_NOW
9054 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9055 #      else
9056 #        ifdef DL_NOW
9057 #          define LT_DLLAZY_OR_NOW      DL_NOW
9058 #        else
9059 #          define LT_DLLAZY_OR_NOW      0
9060 #        endif
9061 #      endif
9062 #    endif
9063 #  endif
9064 #endif
9065
9066 #ifdef __cplusplus
9067 extern "C" void exit (int);
9068 #endif
9069
9070 void fnord() { int i=42;}
9071 int main ()
9072 {
9073   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9074   int status = $lt_dlunknown;
9075
9076   if (self)
9077     {
9078       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9079       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9080       /* dlclose (self); */
9081     }
9082
9083     exit (status);
9084 }
9085 EOF
9086   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9087   (eval $ac_link) 2>&5
9088   ac_status=$?
9089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9091     (./conftest; exit; ) 2>/dev/null
9092     lt_status=$?
9093     case x$lt_status in
9094       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9095       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9096       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9097     esac
9098   else :
9099     # compilation failed
9100     lt_cv_dlopen_self=no
9101   fi
9102 fi
9103 rm -fr conftest*
9104
9105
9106 fi
9107 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9108 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9109
9110     if test "x$lt_cv_dlopen_self" = xyes; then
9111       LDFLAGS="$LDFLAGS $link_static_flag"
9112       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9113 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9114 if test "${lt_cv_dlopen_self_static+set}" = set; then
9115   echo $ECHO_N "(cached) $ECHO_C" >&6
9116 else
9117           if test "$cross_compiling" = yes; then :
9118   lt_cv_dlopen_self_static=cross
9119 else
9120   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9121   lt_status=$lt_dlunknown
9122   cat > conftest.$ac_ext <<EOF
9123 #line 9123 "configure"
9124 #include "confdefs.h"
9125
9126 #if HAVE_DLFCN_H
9127 #include <dlfcn.h>
9128 #endif
9129
9130 #include <stdio.h>
9131
9132 #ifdef RTLD_GLOBAL
9133 #  define LT_DLGLOBAL           RTLD_GLOBAL
9134 #else
9135 #  ifdef DL_GLOBAL
9136 #    define LT_DLGLOBAL         DL_GLOBAL
9137 #  else
9138 #    define LT_DLGLOBAL         0
9139 #  endif
9140 #endif
9141
9142 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9143    find out it does not work in some platform. */
9144 #ifndef LT_DLLAZY_OR_NOW
9145 #  ifdef RTLD_LAZY
9146 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9147 #  else
9148 #    ifdef DL_LAZY
9149 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9150 #    else
9151 #      ifdef RTLD_NOW
9152 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9153 #      else
9154 #        ifdef DL_NOW
9155 #          define LT_DLLAZY_OR_NOW      DL_NOW
9156 #        else
9157 #          define LT_DLLAZY_OR_NOW      0
9158 #        endif
9159 #      endif
9160 #    endif
9161 #  endif
9162 #endif
9163
9164 #ifdef __cplusplus
9165 extern "C" void exit (int);
9166 #endif
9167
9168 void fnord() { int i=42;}
9169 int main ()
9170 {
9171   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9172   int status = $lt_dlunknown;
9173
9174   if (self)
9175     {
9176       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9177       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9178       /* dlclose (self); */
9179     }
9180
9181     exit (status);
9182 }
9183 EOF
9184   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9185   (eval $ac_link) 2>&5
9186   ac_status=$?
9187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9189     (./conftest; exit; ) 2>/dev/null
9190     lt_status=$?
9191     case x$lt_status in
9192       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9193       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9194       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9195     esac
9196   else :
9197     # compilation failed
9198     lt_cv_dlopen_self_static=no
9199   fi
9200 fi
9201 rm -fr conftest*
9202
9203
9204 fi
9205 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9206 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9207     fi
9208
9209     CPPFLAGS="$save_CPPFLAGS"
9210     LDFLAGS="$save_LDFLAGS"
9211     LIBS="$save_LIBS"
9212     ;;
9213   esac
9214
9215   case $lt_cv_dlopen_self in
9216   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9217   *) enable_dlopen_self=unknown ;;
9218   esac
9219
9220   case $lt_cv_dlopen_self_static in
9221   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9222   *) enable_dlopen_self_static=unknown ;;
9223   esac
9224 fi
9225
9226
9227 # Report which librarie types wil actually be built
9228 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9229 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9230 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9231 echo "${ECHO_T}$can_build_shared" >&6
9232
9233 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9234 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9235 test "$can_build_shared" = "no" && enable_shared=no
9236
9237 # On AIX, shared libraries and static libraries use the same namespace, and
9238 # are all built from PIC.
9239 case "$host_os" in
9240 aix3*)
9241   test "$enable_shared" = yes && enable_static=no
9242   if test -n "$RANLIB"; then
9243     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9244     postinstall_cmds='$RANLIB $lib'
9245   fi
9246   ;;
9247
9248 aix4* | aix5*)
9249   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9250     test "$enable_shared" = yes && enable_static=no
9251   fi
9252   ;;
9253   darwin* | rhapsody*)
9254   if test "$GCC" = yes; then
9255     archive_cmds_need_lc=no
9256     case "$host_os" in
9257     rhapsody* | darwin1.[012])
9258       allow_undefined_flag='-undefined suppress'
9259       ;;
9260     *) # Darwin 1.3 on
9261       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9262         allow_undefined_flag='-flat_namespace -undefined suppress'
9263       else
9264         case ${MACOSX_DEPLOYMENT_TARGET} in
9265           10.[012])
9266             allow_undefined_flag='-flat_namespace -undefined suppress'
9267             ;;
9268           10.*)
9269             allow_undefined_flag='-undefined dynamic_lookup'
9270             ;;
9271         esac
9272       fi
9273       ;;
9274     esac
9275     output_verbose_link_cmd='echo'
9276     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9277     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9278     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9279     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}'
9280     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}'
9281     hardcode_direct=no
9282     hardcode_automatic=yes
9283     hardcode_shlibpath_var=unsupported
9284     whole_archive_flag_spec='-all_load $convenience'
9285     link_all_deplibs=yes
9286   else
9287     ld_shlibs=no
9288   fi
9289     ;;
9290 esac
9291 echo "$as_me:$LINENO: result: $enable_shared" >&5
9292 echo "${ECHO_T}$enable_shared" >&6
9293
9294 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9295 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9296 # Make sure either enable_shared or enable_static is yes.
9297 test "$enable_shared" = yes || enable_static=yes
9298 echo "$as_me:$LINENO: result: $enable_static" >&5
9299 echo "${ECHO_T}$enable_static" >&6
9300
9301 # The else clause should only fire when bootstrapping the
9302 # libtool distribution, otherwise you forgot to ship ltmain.sh
9303 # with your package, and you will get complaints that there are
9304 # no rules to generate ltmain.sh.
9305 if test -f "$ltmain"; then
9306   # See if we are running on zsh, and set the options which allow our commands through
9307   # without removal of \ escapes.
9308   if test -n "${ZSH_VERSION+set}" ; then
9309     setopt NO_GLOB_SUBST
9310   fi
9311   # Now quote all the things that may contain metacharacters while being
9312   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9313   # variables and quote the copies for generation of the libtool script.
9314   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9315     SED SHELL STRIP \
9316     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9317     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9318     deplibs_check_method reload_flag reload_cmds need_locks \
9319     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9320     lt_cv_sys_global_symbol_to_c_name_address \
9321     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9322     old_postinstall_cmds old_postuninstall_cmds \
9323     compiler \
9324     CC \
9325     LD \
9326     lt_prog_compiler_wl \
9327     lt_prog_compiler_pic \
9328     lt_prog_compiler_static \
9329     lt_prog_compiler_no_builtin_flag \
9330     export_dynamic_flag_spec \
9331     thread_safe_flag_spec \
9332     whole_archive_flag_spec \
9333     enable_shared_with_static_runtimes \
9334     old_archive_cmds \
9335     old_archive_from_new_cmds \
9336     predep_objects \
9337     postdep_objects \
9338     predeps \
9339     postdeps \
9340     compiler_lib_search_path \
9341     archive_cmds \
9342     archive_expsym_cmds \
9343     postinstall_cmds \
9344     postuninstall_cmds \
9345     old_archive_from_expsyms_cmds \
9346     allow_undefined_flag \
9347     no_undefined_flag \
9348     export_symbols_cmds \
9349     hardcode_libdir_flag_spec \
9350     hardcode_libdir_flag_spec_ld \
9351     hardcode_libdir_separator \
9352     hardcode_automatic \
9353     module_cmds \
9354     module_expsym_cmds \
9355     lt_cv_prog_compiler_c_o \
9356     exclude_expsyms \
9357     include_expsyms; do
9358
9359     case $var in
9360     old_archive_cmds | \
9361     old_archive_from_new_cmds | \
9362     archive_cmds | \
9363     archive_expsym_cmds | \
9364     module_cmds | \
9365     module_expsym_cmds | \
9366     old_archive_from_expsyms_cmds | \
9367     export_symbols_cmds | \
9368     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9369     postinstall_cmds | postuninstall_cmds | \
9370     old_postinstall_cmds | old_postuninstall_cmds | \
9371     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9372       # Double-quote double-evaled strings.
9373       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9374       ;;
9375     *)
9376       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9377       ;;
9378     esac
9379   done
9380
9381   case $lt_echo in
9382   *'\$0 --fallback-echo"')
9383     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9384     ;;
9385   esac
9386
9387 cfgfile="${ofile}T"
9388   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9389   $rm -f "$cfgfile"
9390   { echo "$as_me:$LINENO: creating $ofile" >&5
9391 echo "$as_me: creating $ofile" >&6;}
9392
9393   cat <<__EOF__ >> "$cfgfile"
9394 #! $SHELL
9395
9396 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9397 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9398 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9399 #
9400 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9401 # Free Software Foundation, Inc.
9402 #
9403 # This file is part of GNU Libtool:
9404 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9405 #
9406 # This program is free software; you can redistribute it and/or modify
9407 # it under the terms of the GNU General Public License as published by
9408 # the Free Software Foundation; either version 2 of the License, or
9409 # (at your option) any later version.
9410 #
9411 # This program is distributed in the hope that it will be useful, but
9412 # WITHOUT ANY WARRANTY; without even the implied warranty of
9413 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9414 # General Public License for more details.
9415 #
9416 # You should have received a copy of the GNU General Public License
9417 # along with this program; if not, write to the Free Software
9418 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9419 #
9420 # As a special exception to the GNU General Public License, if you
9421 # distribute this file as part of a program that contains a
9422 # configuration script generated by Autoconf, you may include it under
9423 # the same distribution terms that you use for the rest of that program.
9424
9425 # A sed program that does not truncate output.
9426 SED=$lt_SED
9427
9428 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9429 Xsed="$SED -e s/^X//"
9430
9431 # The HP-UX ksh and POSIX shell print the target directory to stdout
9432 # if CDPATH is set.
9433 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9434
9435 # The names of the tagged configurations supported by this script.
9436 available_tags=
9437
9438 # ### BEGIN LIBTOOL CONFIG
9439
9440 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9441
9442 # Shell to use when invoking shell scripts.
9443 SHELL=$lt_SHELL
9444
9445 # Whether or not to build shared libraries.
9446 build_libtool_libs=$enable_shared
9447
9448 # Whether or not to build static libraries.
9449 build_old_libs=$enable_static
9450
9451 # Whether or not to add -lc for building shared libraries.
9452 build_libtool_need_lc=$archive_cmds_need_lc
9453
9454 # Whether or not to disallow shared libs when runtime libs are static
9455 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9456
9457 # Whether or not to optimize for fast installation.
9458 fast_install=$enable_fast_install
9459
9460 # The host system.
9461 host_alias=$host_alias
9462 host=$host
9463
9464 # An echo program that does not interpret backslashes.
9465 echo=$lt_echo
9466
9467 # The archiver.
9468 AR=$lt_AR
9469 AR_FLAGS=$lt_AR_FLAGS
9470
9471 # A C compiler.
9472 LTCC=$lt_LTCC
9473
9474 # A language-specific compiler.
9475 CC=$lt_compiler
9476
9477 # Is the compiler the GNU C compiler?
9478 with_gcc=$GCC
9479
9480 # An ERE matcher.
9481 EGREP=$lt_EGREP
9482
9483 # The linker used to build libraries.
9484 LD=$lt_LD
9485
9486 # Whether we need hard or soft links.
9487 LN_S=$lt_LN_S
9488
9489 # A BSD-compatible nm program.
9490 NM=$lt_NM
9491
9492 # A symbol stripping program
9493 STRIP=$lt_STRIP
9494
9495 # Used to examine libraries when file_magic_cmd begins "file"
9496 MAGIC_CMD=$MAGIC_CMD
9497
9498 # Used on cygwin: DLL creation program.
9499 DLLTOOL="$DLLTOOL"
9500
9501 # Used on cygwin: object dumper.
9502 OBJDUMP="$OBJDUMP"
9503
9504 # Used on cygwin: assembler.
9505 AS="$AS"
9506
9507 # The name of the directory that contains temporary libtool files.
9508 objdir=$objdir
9509
9510 # How to create reloadable object files.
9511 reload_flag=$lt_reload_flag
9512 reload_cmds=$lt_reload_cmds
9513
9514 # How to pass a linker flag through the compiler.
9515 wl=$lt_lt_prog_compiler_wl
9516
9517 # Object file suffix (normally "o").
9518 objext="$ac_objext"
9519
9520 # Old archive suffix (normally "a").
9521 libext="$libext"
9522
9523 # Shared library suffix (normally ".so").
9524 shrext_cmds='$shrext_cmds'
9525
9526 # Executable file suffix (normally "").
9527 exeext="$exeext"
9528
9529 # Additional compiler flags for building library objects.
9530 pic_flag=$lt_lt_prog_compiler_pic
9531 pic_mode=$pic_mode
9532
9533 # What is the maximum length of a command?
9534 max_cmd_len=$lt_cv_sys_max_cmd_len
9535
9536 # Does compiler simultaneously support -c and -o options?
9537 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9538
9539 # Must we lock files when doing compilation ?
9540 need_locks=$lt_need_locks
9541
9542 # Do we need the lib prefix for modules?
9543 need_lib_prefix=$need_lib_prefix
9544
9545 # Do we need a version for libraries?
9546 need_version=$need_version
9547
9548 # Whether dlopen is supported.
9549 dlopen_support=$enable_dlopen
9550
9551 # Whether dlopen of programs is supported.
9552 dlopen_self=$enable_dlopen_self
9553
9554 # Whether dlopen of statically linked programs is supported.
9555 dlopen_self_static=$enable_dlopen_self_static
9556
9557 # Compiler flag to prevent dynamic linking.
9558 link_static_flag=$lt_lt_prog_compiler_static
9559
9560 # Compiler flag to turn off builtin functions.
9561 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9562
9563 # Compiler flag to allow reflexive dlopens.
9564 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9565
9566 # Compiler flag to generate shared objects directly from archives.
9567 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9568
9569 # Compiler flag to generate thread-safe objects.
9570 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9571
9572 # Library versioning type.
9573 version_type=$version_type
9574
9575 # Format of library name prefix.
9576 libname_spec=$lt_libname_spec
9577
9578 # List of archive names.  First name is the real one, the rest are links.
9579 # The last name is the one that the linker finds with -lNAME.
9580 library_names_spec=$lt_library_names_spec
9581
9582 # The coded name of the library, if different from the real name.
9583 soname_spec=$lt_soname_spec
9584
9585 # Commands used to build and install an old-style archive.
9586 RANLIB=$lt_RANLIB
9587 old_archive_cmds=$lt_old_archive_cmds
9588 old_postinstall_cmds=$lt_old_postinstall_cmds
9589 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9590
9591 # Create an old-style archive from a shared archive.
9592 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9593
9594 # Create a temporary old-style archive to link instead of a shared archive.
9595 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9596
9597 # Commands used to build and install a shared archive.
9598 archive_cmds=$lt_archive_cmds
9599 archive_expsym_cmds=$lt_archive_expsym_cmds
9600 postinstall_cmds=$lt_postinstall_cmds
9601 postuninstall_cmds=$lt_postuninstall_cmds
9602
9603 # Commands used to build a loadable module (assumed same as above if empty)
9604 module_cmds=$lt_module_cmds
9605 module_expsym_cmds=$lt_module_expsym_cmds
9606
9607 # Commands to strip libraries.
9608 old_striplib=$lt_old_striplib
9609 striplib=$lt_striplib
9610
9611 # Dependencies to place before the objects being linked to create a
9612 # shared library.
9613 predep_objects=$lt_predep_objects
9614
9615 # Dependencies to place after the objects being linked to create a
9616 # shared library.
9617 postdep_objects=$lt_postdep_objects
9618
9619 # Dependencies to place before the objects being linked to create a
9620 # shared library.
9621 predeps=$lt_predeps
9622
9623 # Dependencies to place after the objects being linked to create a
9624 # shared library.
9625 postdeps=$lt_postdeps
9626
9627 # The library search path used internally by the compiler when linking
9628 # a shared library.
9629 compiler_lib_search_path=$lt_compiler_lib_search_path
9630
9631 # Method to check whether dependent libraries are shared objects.
9632 deplibs_check_method=$lt_deplibs_check_method
9633
9634 # Command to use when deplibs_check_method == file_magic.
9635 file_magic_cmd=$lt_file_magic_cmd
9636
9637 # Flag that allows shared libraries with undefined symbols to be built.
9638 allow_undefined_flag=$lt_allow_undefined_flag
9639
9640 # Flag that forces no undefined symbols.
9641 no_undefined_flag=$lt_no_undefined_flag
9642
9643 # Commands used to finish a libtool library installation in a directory.
9644 finish_cmds=$lt_finish_cmds
9645
9646 # Same as above, but a single script fragment to be evaled but not shown.
9647 finish_eval=$lt_finish_eval
9648
9649 # Take the output of nm and produce a listing of raw symbols and C names.
9650 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9651
9652 # Transform the output of nm in a proper C declaration
9653 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9654
9655 # Transform the output of nm in a C name address pair
9656 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9657
9658 # This is the shared library runtime path variable.
9659 runpath_var=$runpath_var
9660
9661 # This is the shared library path variable.
9662 shlibpath_var=$shlibpath_var
9663
9664 # Is shlibpath searched before the hard-coded library search path?
9665 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9666
9667 # How to hardcode a shared library path into an executable.
9668 hardcode_action=$hardcode_action
9669
9670 # Whether we should hardcode library paths into libraries.
9671 hardcode_into_libs=$hardcode_into_libs
9672
9673 # Flag to hardcode \$libdir into a binary during linking.
9674 # This must work even if \$libdir does not exist.
9675 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9676
9677 # If ld is used when linking, flag to hardcode \$libdir into
9678 # a binary during linking. This must work even if \$libdir does
9679 # not exist.
9680 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9681
9682 # Whether we need a single -rpath flag with a separated argument.
9683 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9684
9685 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9686 # resulting binary.
9687 hardcode_direct=$hardcode_direct
9688
9689 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9690 # resulting binary.
9691 hardcode_minus_L=$hardcode_minus_L
9692
9693 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9694 # the resulting binary.
9695 hardcode_shlibpath_var=$hardcode_shlibpath_var
9696
9697 # Set to yes if building a shared library automatically hardcodes DIR into the library
9698 # and all subsequent libraries and executables linked against it.
9699 hardcode_automatic=$hardcode_automatic
9700
9701 # Variables whose values should be saved in libtool wrapper scripts and
9702 # restored at relink time.
9703 variables_saved_for_relink="$variables_saved_for_relink"
9704
9705 # Whether libtool must link a program against all its dependency libraries.
9706 link_all_deplibs=$link_all_deplibs
9707
9708 # Compile-time system search path for libraries
9709 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9710
9711 # Run-time system search path for libraries
9712 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9713
9714 # Fix the shell variable \$srcfile for the compiler.
9715 fix_srcfile_path="$fix_srcfile_path"
9716
9717 # Set to yes if exported symbols are required.
9718 always_export_symbols=$always_export_symbols
9719
9720 # The commands to list exported symbols.
9721 export_symbols_cmds=$lt_export_symbols_cmds
9722
9723 # The commands to extract the exported symbol list from a shared archive.
9724 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9725
9726 # Symbols that should not be listed in the preloaded symbols.
9727 exclude_expsyms=$lt_exclude_expsyms
9728
9729 # Symbols that must always be exported.
9730 include_expsyms=$lt_include_expsyms
9731
9732 # ### END LIBTOOL CONFIG
9733
9734 __EOF__
9735
9736
9737   case $host_os in
9738   aix3*)
9739     cat <<\EOF >> "$cfgfile"
9740
9741 # AIX sometimes has problems with the GCC collect2 program.  For some
9742 # reason, if we set the COLLECT_NAMES environment variable, the problems
9743 # vanish in a puff of smoke.
9744 if test "X${COLLECT_NAMES+set}" != Xset; then
9745   COLLECT_NAMES=
9746   export COLLECT_NAMES
9747 fi
9748 EOF
9749     ;;
9750   esac
9751
9752   # We use sed instead of cat because bash on DJGPP gets confused if
9753   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9754   # text mode, it properly converts lines to CR/LF.  This bash problem
9755   # is reportedly fixed, but why not run on old versions too?
9756   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9757
9758   mv -f "$cfgfile" "$ofile" || \
9759     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9760   chmod +x "$ofile"
9761
9762 else
9763   # If there is no Makefile yet, we rely on a make rule to execute
9764   # `config.status --recheck' to rerun these tests and create the
9765   # libtool script then.
9766   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9767   if test -f "$ltmain_in"; then
9768     test -f Makefile && make "$ltmain"
9769   fi
9770 fi
9771
9772
9773 ac_ext=c
9774 ac_cpp='$CPP $CPPFLAGS'
9775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9778
9779 CC="$lt_save_CC"
9780
9781
9782 # Check whether --with-tags or --without-tags was given.
9783 if test "${with_tags+set}" = set; then
9784   withval="$with_tags"
9785   tagnames="$withval"
9786 fi;
9787
9788 if test -f "$ltmain" && test -n "$tagnames"; then
9789   if test ! -f "${ofile}"; then
9790     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9791 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9792   fi
9793
9794   if test -z "$LTCC"; then
9795     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9796     if test -z "$LTCC"; then
9797       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9798 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9799     else
9800       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9801 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9802     fi
9803   fi
9804
9805   # Extract list of available tagged configurations in $ofile.
9806   # Note that this assumes the entire list is on one line.
9807   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9808
9809   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9810   for tagname in $tagnames; do
9811     IFS="$lt_save_ifs"
9812     # Check whether tagname contains only valid characters
9813     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9814     "") ;;
9815     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9816 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9817    { (exit 1); exit 1; }; }
9818         ;;
9819     esac
9820
9821     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9822     then
9823       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9824 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9825    { (exit 1); exit 1; }; }
9826     fi
9827
9828     # Update the list of available tags.
9829     if test -n "$tagname"; then
9830       echo appending configuration tag \"$tagname\" to $ofile
9831
9832       case $tagname in
9833       CXX)
9834         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9835           ac_ext=cc
9836 ac_cpp='$CXXCPP $CPPFLAGS'
9837 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9838 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9839 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9840
9841
9842
9843
9844 archive_cmds_need_lc_CXX=no
9845 allow_undefined_flag_CXX=
9846 always_export_symbols_CXX=no
9847 archive_expsym_cmds_CXX=
9848 export_dynamic_flag_spec_CXX=
9849 hardcode_direct_CXX=no
9850 hardcode_libdir_flag_spec_CXX=
9851 hardcode_libdir_flag_spec_ld_CXX=
9852 hardcode_libdir_separator_CXX=
9853 hardcode_minus_L_CXX=no
9854 hardcode_automatic_CXX=no
9855 module_cmds_CXX=
9856 module_expsym_cmds_CXX=
9857 link_all_deplibs_CXX=unknown
9858 old_archive_cmds_CXX=$old_archive_cmds
9859 no_undefined_flag_CXX=
9860 whole_archive_flag_spec_CXX=
9861 enable_shared_with_static_runtimes_CXX=no
9862
9863 # Dependencies to place before and after the object being linked:
9864 predep_objects_CXX=
9865 postdep_objects_CXX=
9866 predeps_CXX=
9867 postdeps_CXX=
9868 compiler_lib_search_path_CXX=
9869
9870 # Source file extension for C++ test sources.
9871 ac_ext=cc
9872
9873 # Object file extension for compiled C++ test sources.
9874 objext=o
9875 objext_CXX=$objext
9876
9877 # Code to be used in simple compile tests
9878 lt_simple_compile_test_code="int some_variable = 0;\n"
9879
9880 # Code to be used in simple link tests
9881 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9882
9883 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9884
9885 # If no C compiler was specified, use CC.
9886 LTCC=${LTCC-"$CC"}
9887
9888 # Allow CC to be a program name with arguments.
9889 compiler=$CC
9890
9891
9892 # Allow CC to be a program name with arguments.
9893 lt_save_CC=$CC
9894 lt_save_LD=$LD
9895 lt_save_GCC=$GCC
9896 GCC=$GXX
9897 lt_save_with_gnu_ld=$with_gnu_ld
9898 lt_save_path_LD=$lt_cv_path_LD
9899 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9900   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9901 else
9902   unset lt_cv_prog_gnu_ld
9903 fi
9904 if test -n "${lt_cv_path_LDCXX+set}"; then
9905   lt_cv_path_LD=$lt_cv_path_LDCXX
9906 else
9907   unset lt_cv_path_LD
9908 fi
9909 test -z "${LDCXX+set}" || LD=$LDCXX
9910 CC=${CXX-"c++"}
9911 compiler=$CC
9912 compiler_CXX=$CC
9913 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9914
9915 # We don't want -fno-exception wen compiling C++ code, so set the
9916 # no_builtin_flag separately
9917 if test "$GXX" = yes; then
9918   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9919 else
9920   lt_prog_compiler_no_builtin_flag_CXX=
9921 fi
9922
9923 if test "$GXX" = yes; then
9924   # Set up default GNU C++ configuration
9925
9926
9927 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9928 if test "${with_gnu_ld+set}" = set; then
9929   withval="$with_gnu_ld"
9930   test "$withval" = no || with_gnu_ld=yes
9931 else
9932   with_gnu_ld=no
9933 fi;
9934 ac_prog=ld
9935 if test "$GCC" = yes; then
9936   # Check if gcc -print-prog-name=ld gives a path.
9937   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9938 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9939   case $host in
9940   *-*-mingw*)
9941     # gcc leaves a trailing carriage return which upsets mingw
9942     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9943   *)
9944     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9945   esac
9946   case $ac_prog in
9947     # Accept absolute paths.
9948     [\\/]* | ?:[\\/]*)
9949       re_direlt='/[^/][^/]*/\.\./'
9950       # Canonicalize the pathname of ld
9951       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9952       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9953         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9954       done
9955       test -z "$LD" && LD="$ac_prog"
9956       ;;
9957   "")
9958     # If it fails, then pretend we aren't using GCC.
9959     ac_prog=ld
9960     ;;
9961   *)
9962     # If it is relative, then search for the first ld in PATH.
9963     with_gnu_ld=unknown
9964     ;;
9965   esac
9966 elif test "$with_gnu_ld" = yes; then
9967   echo "$as_me:$LINENO: checking for GNU ld" >&5
9968 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9969 else
9970   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9971 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9972 fi
9973 if test "${lt_cv_path_LD+set}" = set; then
9974   echo $ECHO_N "(cached) $ECHO_C" >&6
9975 else
9976   if test -z "$LD"; then
9977   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9978   for ac_dir in $PATH; do
9979     IFS="$lt_save_ifs"
9980     test -z "$ac_dir" && ac_dir=.
9981     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9982       lt_cv_path_LD="$ac_dir/$ac_prog"
9983       # Check to see if the program is GNU ld.  I'd rather use --version,
9984       # but apparently some GNU ld's only accept -v.
9985       # Break only if it was the GNU/non-GNU ld that we prefer.
9986       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9987       *GNU* | *'with BFD'*)
9988         test "$with_gnu_ld" != no && break
9989         ;;
9990       *)
9991         test "$with_gnu_ld" != yes && break
9992         ;;
9993       esac
9994     fi
9995   done
9996   IFS="$lt_save_ifs"
9997 else
9998   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9999 fi
10000 fi
10001
10002 LD="$lt_cv_path_LD"
10003 if test -n "$LD"; then
10004   echo "$as_me:$LINENO: result: $LD" >&5
10005 echo "${ECHO_T}$LD" >&6
10006 else
10007   echo "$as_me:$LINENO: result: no" >&5
10008 echo "${ECHO_T}no" >&6
10009 fi
10010 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10011 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10012    { (exit 1); exit 1; }; }
10013 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10014 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10015 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10016   echo $ECHO_N "(cached) $ECHO_C" >&6
10017 else
10018   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10019 case `$LD -v 2>&1 </dev/null` in
10020 *GNU* | *'with BFD'*)
10021   lt_cv_prog_gnu_ld=yes
10022   ;;
10023 *)
10024   lt_cv_prog_gnu_ld=no
10025   ;;
10026 esac
10027 fi
10028 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10029 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10030 with_gnu_ld=$lt_cv_prog_gnu_ld
10031
10032
10033
10034   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10035   # archiving commands below assume that GNU ld is being used.
10036   if test "$with_gnu_ld" = yes; then
10037     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10038     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'
10039
10040     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10041     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10042
10043     # If archive_cmds runs LD, not CC, wlarc should be empty
10044     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10045     #     investigate it a little bit more. (MM)
10046     wlarc='${wl}'
10047
10048     # ancient GNU ld didn't support --whole-archive et. al.
10049     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10050         grep 'no-whole-archive' > /dev/null; then
10051       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10052     else
10053       whole_archive_flag_spec_CXX=
10054     fi
10055   else
10056     with_gnu_ld=no
10057     wlarc=
10058
10059     # A generic and very simple default shared library creation
10060     # command for GNU C++ for the case where it uses the native
10061     # linker, instead of GNU ld.  If possible, this setting should
10062     # overridden to take advantage of the native linker features on
10063     # the platform it is being used on.
10064     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10065   fi
10066
10067   # Commands to make compiler produce verbose output that lists
10068   # what "hidden" libraries, object files and flags are used when
10069   # linking a shared library.
10070   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10071
10072 else
10073   GXX=no
10074   with_gnu_ld=no
10075   wlarc=
10076 fi
10077
10078 # PORTME: fill in a description of your system's C++ link characteristics
10079 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10080 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10081 ld_shlibs_CXX=yes
10082 case $host_os in
10083   aix3*)
10084     # FIXME: insert proper C++ library support
10085     ld_shlibs_CXX=no
10086     ;;
10087   aix4* | aix5*)
10088     if test "$host_cpu" = ia64; then
10089       # On IA64, the linker does run time linking by default, so we don't
10090       # have to do anything special.
10091       aix_use_runtimelinking=no
10092       exp_sym_flag='-Bexport'
10093       no_entry_flag=""
10094     else
10095       aix_use_runtimelinking=no
10096
10097       # Test if we are trying to use run time linking or normal
10098       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10099       # need to do runtime linking.
10100       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10101         for ld_flag in $LDFLAGS; do
10102           case $ld_flag in
10103           *-brtl*)
10104             aix_use_runtimelinking=yes
10105             break
10106             ;;
10107           esac
10108         done
10109       esac
10110
10111       exp_sym_flag='-bexport'
10112       no_entry_flag='-bnoentry'
10113     fi
10114
10115     # When large executables or shared objects are built, AIX ld can
10116     # have problems creating the table of contents.  If linking a library
10117     # or program results in "error TOC overflow" add -mminimal-toc to
10118     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10119     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10120
10121     archive_cmds_CXX=''
10122     hardcode_direct_CXX=yes
10123     hardcode_libdir_separator_CXX=':'
10124     link_all_deplibs_CXX=yes
10125
10126     if test "$GXX" = yes; then
10127       case $host_os in aix4.012|aix4.012.*)
10128       # We only want to do this on AIX 4.2 and lower, the check
10129       # below for broken collect2 doesn't work under 4.3+
10130         collect2name=`${CC} -print-prog-name=collect2`
10131         if test -f "$collect2name" && \
10132            strings "$collect2name" | grep resolve_lib_name >/dev/null
10133         then
10134           # We have reworked collect2
10135           hardcode_direct_CXX=yes
10136         else
10137           # We have old collect2
10138           hardcode_direct_CXX=unsupported
10139           # It fails to find uninstalled libraries when the uninstalled
10140           # path is not listed in the libpath.  Setting hardcode_minus_L
10141           # to unsupported forces relinking
10142           hardcode_minus_L_CXX=yes
10143           hardcode_libdir_flag_spec_CXX='-L$libdir'
10144           hardcode_libdir_separator_CXX=
10145         fi
10146       esac
10147       shared_flag='-shared'
10148     else
10149       # not using gcc
10150       if test "$host_cpu" = ia64; then
10151         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10152         # chokes on -Wl,-G. The following line is correct:
10153         shared_flag='-G'
10154       else
10155         if test "$aix_use_runtimelinking" = yes; then
10156           shared_flag='${wl}-G'
10157         else
10158           shared_flag='${wl}-bM:SRE'
10159         fi
10160       fi
10161     fi
10162
10163     # It seems that -bexpall does not export symbols beginning with
10164     # underscore (_), so it is better to generate a list of symbols to export.
10165     always_export_symbols_CXX=yes
10166     if test "$aix_use_runtimelinking" = yes; then
10167       # Warning - without using the other runtime loading flags (-brtl),
10168       # -berok will link without error, but may produce a broken library.
10169       allow_undefined_flag_CXX='-berok'
10170       # Determine the default libpath from the value encoded in an empty executable.
10171       cat >conftest.$ac_ext <<_ACEOF
10172 /* confdefs.h.  */
10173 _ACEOF
10174 cat confdefs.h >>conftest.$ac_ext
10175 cat >>conftest.$ac_ext <<_ACEOF
10176 /* end confdefs.h.  */
10177
10178 int
10179 main ()
10180 {
10181
10182   ;
10183   return 0;
10184 }
10185 _ACEOF
10186 rm -f conftest.$ac_objext conftest$ac_exeext
10187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10188   (eval $ac_link) 2>conftest.er1
10189   ac_status=$?
10190   grep -v '^ *+' conftest.er1 >conftest.err
10191   rm -f conftest.er1
10192   cat conftest.err >&5
10193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194   (exit $ac_status); } &&
10195          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
10196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10197   (eval $ac_try) 2>&5
10198   ac_status=$?
10199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200   (exit $ac_status); }; } &&
10201          { ac_try='test -s conftest$ac_exeext'
10202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10203   (eval $ac_try) 2>&5
10204   ac_status=$?
10205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206   (exit $ac_status); }; }; then
10207
10208 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10209 }'`
10210 # Check for a 64-bit object if we didn't find anything.
10211 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; }
10212 }'`; fi
10213 else
10214   echo "$as_me: failed program was:" >&5
10215 sed 's/^/| /' conftest.$ac_ext >&5
10216
10217 fi
10218 rm -f conftest.err conftest.$ac_objext \
10219       conftest$ac_exeext conftest.$ac_ext
10220 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10221
10222       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10223
10224       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10225      else
10226       if test "$host_cpu" = ia64; then
10227         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10228         allow_undefined_flag_CXX="-z nodefs"
10229         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10230       else
10231         # Determine the default libpath from the value encoded in an empty executable.
10232         cat >conftest.$ac_ext <<_ACEOF
10233 /* confdefs.h.  */
10234 _ACEOF
10235 cat confdefs.h >>conftest.$ac_ext
10236 cat >>conftest.$ac_ext <<_ACEOF
10237 /* end confdefs.h.  */
10238
10239 int
10240 main ()
10241 {
10242
10243   ;
10244   return 0;
10245 }
10246 _ACEOF
10247 rm -f conftest.$ac_objext conftest$ac_exeext
10248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10249   (eval $ac_link) 2>conftest.er1
10250   ac_status=$?
10251   grep -v '^ *+' conftest.er1 >conftest.err
10252   rm -f conftest.er1
10253   cat conftest.err >&5
10254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255   (exit $ac_status); } &&
10256          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
10257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10258   (eval $ac_try) 2>&5
10259   ac_status=$?
10260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261   (exit $ac_status); }; } &&
10262          { ac_try='test -s conftest$ac_exeext'
10263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10264   (eval $ac_try) 2>&5
10265   ac_status=$?
10266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267   (exit $ac_status); }; }; then
10268
10269 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10270 }'`
10271 # Check for a 64-bit object if we didn't find anything.
10272 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; }
10273 }'`; fi
10274 else
10275   echo "$as_me: failed program was:" >&5
10276 sed 's/^/| /' conftest.$ac_ext >&5
10277
10278 fi
10279 rm -f conftest.err conftest.$ac_objext \
10280       conftest$ac_exeext conftest.$ac_ext
10281 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10282
10283         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10284         # Warning - without using the other run time loading flags,
10285         # -berok will link without error, but may produce a broken library.
10286         no_undefined_flag_CXX=' ${wl}-bernotok'
10287         allow_undefined_flag_CXX=' ${wl}-berok'
10288         # -bexpall does not export symbols beginning with underscore (_)
10289         always_export_symbols_CXX=yes
10290         # Exported symbols can be pulled into shared objects from archives
10291         whole_archive_flag_spec_CXX=' '
10292         archive_cmds_need_lc_CXX=yes
10293         # This is similar to how AIX traditionally builds it's shared libraries.
10294         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10295       fi
10296     fi
10297     ;;
10298   chorus*)
10299     case $cc_basename in
10300       *)
10301         # FIXME: insert proper C++ library support
10302         ld_shlibs_CXX=no
10303         ;;
10304     esac
10305     ;;
10306
10307   cygwin* | mingw* | pw32*)
10308     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10309     # as there is no search path for DLLs.
10310     hardcode_libdir_flag_spec_CXX='-L$libdir'
10311     allow_undefined_flag_CXX=unsupported
10312     always_export_symbols_CXX=no
10313     enable_shared_with_static_runtimes_CXX=yes
10314
10315     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10316       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10317       # If the export-symbols file already is a .def file (1st line
10318       # is EXPORTS), use it as is; otherwise, prepend...
10319       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10320         cp $export_symbols $output_objdir/$soname.def;
10321       else
10322         echo EXPORTS > $output_objdir/$soname.def;
10323         cat $export_symbols >> $output_objdir/$soname.def;
10324       fi~
10325       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10326     else
10327       ld_shlibs_CXX=no
10328     fi
10329   ;;
10330
10331   darwin* | rhapsody*)
10332   if test "$GXX" = yes; then
10333     archive_cmds_need_lc_CXX=no
10334     case "$host_os" in
10335     rhapsody* | darwin1.[012])
10336       allow_undefined_flag_CXX='-undefined suppress'
10337       ;;
10338     *) # Darwin 1.3 on
10339       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10340         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10341       else
10342         case ${MACOSX_DEPLOYMENT_TARGET} in
10343           10.[012])
10344             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10345             ;;
10346           10.*)
10347             allow_undefined_flag_CXX='-undefined dynamic_lookup'
10348             ;;
10349         esac
10350       fi
10351       ;;
10352     esac
10353     lt_int_apple_cc_single_mod=no
10354     output_verbose_link_cmd='echo'
10355     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10356       lt_int_apple_cc_single_mod=yes
10357     fi
10358     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10359       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10360     else
10361       archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
10362     fi
10363     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10364
10365     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10366     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10367       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}'
10368     else
10369       archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
10370     fi
10371     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}'
10372     hardcode_direct_CXX=no
10373     hardcode_automatic_CXX=yes
10374     hardcode_shlibpath_var_CXX=unsupported
10375     whole_archive_flag_spec_CXX='-all_load $convenience'
10376     link_all_deplibs_CXX=yes
10377   else
10378     ld_shlibs_CXX=no
10379   fi
10380     ;;
10381
10382   dgux*)
10383     case $cc_basename in
10384       ec++)
10385         # FIXME: insert proper C++ library support
10386         ld_shlibs_CXX=no
10387         ;;
10388       ghcx)
10389         # Green Hills C++ Compiler
10390         # FIXME: insert proper C++ library support
10391         ld_shlibs_CXX=no
10392         ;;
10393       *)
10394         # FIXME: insert proper C++ library support
10395         ld_shlibs_CXX=no
10396         ;;
10397     esac
10398     ;;
10399   freebsd12*)
10400     # C++ shared libraries reported to be fairly broken before switch to ELF
10401     ld_shlibs_CXX=no
10402     ;;
10403   freebsd-elf*)
10404     archive_cmds_need_lc_CXX=no
10405     ;;
10406   freebsd* | kfreebsd*-gnu)
10407     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10408     # conventions
10409     ld_shlibs_CXX=yes
10410     ;;
10411   gnu*)
10412     ;;
10413   hpux9*)
10414     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10415     hardcode_libdir_separator_CXX=:
10416     export_dynamic_flag_spec_CXX='${wl}-E'
10417     hardcode_direct_CXX=yes
10418     hardcode_minus_L_CXX=yes # Not in the search PATH,
10419                                 # but as the default
10420                                 # location of the library.
10421
10422     case $cc_basename in
10423     CC)
10424       # FIXME: insert proper C++ library support
10425       ld_shlibs_CXX=no
10426       ;;
10427     aCC)
10428       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'
10429       # Commands to make compiler produce verbose output that lists
10430       # what "hidden" libraries, object files and flags are used when
10431       # linking a shared library.
10432       #
10433       # There doesn't appear to be a way to prevent this compiler from
10434       # explicitly linking system object files so we need to strip them
10435       # from the output so that they don't get included in the library
10436       # dependencies.
10437       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'
10438       ;;
10439     *)
10440       if test "$GXX" = yes; then
10441         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'
10442       else
10443         # FIXME: insert proper C++ library support
10444         ld_shlibs_CXX=no
10445       fi
10446       ;;
10447     esac
10448     ;;
10449   hpux10*|hpux11*)
10450     if test $with_gnu_ld = no; then
10451       case "$host_cpu" in
10452       hppa*64*)
10453         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10454         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10455         hardcode_libdir_separator_CXX=:
10456         ;;
10457       ia64*)
10458         hardcode_libdir_flag_spec_CXX='-L$libdir'
10459         ;;
10460       *)
10461         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10462         hardcode_libdir_separator_CXX=:
10463         export_dynamic_flag_spec_CXX='${wl}-E'
10464         ;;
10465       esac
10466     fi
10467     case "$host_cpu" in
10468     hppa*64*)
10469       hardcode_direct_CXX=no
10470       hardcode_shlibpath_var_CXX=no
10471       ;;
10472     ia64*)
10473       hardcode_direct_CXX=no
10474       hardcode_shlibpath_var_CXX=no
10475       hardcode_minus_L_CXX=yes # Not in the search PATH,
10476                                               # but as the default
10477                                               # location of the library.
10478       ;;
10479     *)
10480       hardcode_direct_CXX=yes
10481       hardcode_minus_L_CXX=yes # Not in the search PATH,
10482                                               # but as the default
10483                                               # location of the library.
10484       ;;
10485     esac
10486
10487     case $cc_basename in
10488       CC)
10489         # FIXME: insert proper C++ library support
10490         ld_shlibs_CXX=no
10491         ;;
10492       aCC)
10493         case "$host_cpu" in
10494         hppa*64*|ia64*)
10495           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10496           ;;
10497         *)
10498           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10499           ;;
10500         esac
10501         # Commands to make compiler produce verbose output that lists
10502         # what "hidden" libraries, object files and flags are used when
10503         # linking a shared library.
10504         #
10505         # There doesn't appear to be a way to prevent this compiler from
10506         # explicitly linking system object files so we need to strip them
10507         # from the output so that they don't get included in the library
10508         # dependencies.
10509         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'
10510         ;;
10511       *)
10512         if test "$GXX" = yes; then
10513           if test $with_gnu_ld = no; then
10514             case "$host_cpu" in
10515             ia64*|hppa*64*)
10516               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10517               ;;
10518             *)
10519               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'
10520               ;;
10521             esac
10522           fi
10523         else
10524           # FIXME: insert proper C++ library support
10525           ld_shlibs_CXX=no
10526         fi
10527         ;;
10528     esac
10529     ;;
10530   irix5* | irix6*)
10531     case $cc_basename in
10532       CC)
10533         # SGI C++
10534         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 ${objdir}/so_locations -o $lib'
10535
10536         # Archives containing C++ object files must be created using
10537         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10538         # necessary to make sure instantiated templates are included
10539         # in the archive.
10540         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10541         ;;
10542       *)
10543         if test "$GXX" = yes; then
10544           if test "$with_gnu_ld" = no; then
10545             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}${objdir}/so_locations -o $lib'
10546           else
10547             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'
10548           fi
10549         fi
10550         link_all_deplibs_CXX=yes
10551         ;;
10552     esac
10553     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10554     hardcode_libdir_separator_CXX=:
10555     ;;
10556   linux*)
10557     case $cc_basename in
10558       KCC)
10559         # Kuck and Associates, Inc. (KAI) C++ Compiler
10560
10561         # KCC will only create a shared library if the output file
10562         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10563         # to its proper name (with version) after linking.
10564         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'
10565         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'
10566         # Commands to make compiler produce verbose output that lists
10567         # what "hidden" libraries, object files and flags are used when
10568         # linking a shared library.
10569         #
10570         # There doesn't appear to be a way to prevent this compiler from
10571         # explicitly linking system object files so we need to strip them
10572         # from the output so that they don't get included in the library
10573         # dependencies.
10574         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'
10575
10576         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10577         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10578
10579         # Archives containing C++ object files must be created using
10580         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10581         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10582         ;;
10583       icpc)
10584         # Intel C++
10585         with_gnu_ld=yes
10586         archive_cmds_need_lc_CXX=no
10587         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10588         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'
10589         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10590         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10591         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10592         ;;
10593       cxx)
10594         # Compaq C++
10595         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10596         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'
10597
10598         runpath_var=LD_RUN_PATH
10599         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10600         hardcode_libdir_separator_CXX=:
10601
10602         # Commands to make compiler produce verbose output that lists
10603         # what "hidden" libraries, object files and flags are used when
10604         # linking a shared library.
10605         #
10606         # There doesn't appear to be a way to prevent this compiler from
10607         # explicitly linking system object files so we need to strip them
10608         # from the output so that they don't get included in the library
10609         # dependencies.
10610         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'
10611         ;;
10612     esac
10613     ;;
10614   lynxos*)
10615     # FIXME: insert proper C++ library support
10616     ld_shlibs_CXX=no
10617     ;;
10618   m88k*)
10619     # FIXME: insert proper C++ library support
10620     ld_shlibs_CXX=no
10621     ;;
10622   mvs*)
10623     case $cc_basename in
10624       cxx)
10625         # FIXME: insert proper C++ library support
10626         ld_shlibs_CXX=no
10627         ;;
10628       *)
10629         # FIXME: insert proper C++ library support
10630         ld_shlibs_CXX=no
10631         ;;
10632     esac
10633     ;;
10634   netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10635     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10636       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10637       wlarc=
10638       hardcode_libdir_flag_spec_CXX='-R$libdir'
10639       hardcode_direct_CXX=yes
10640       hardcode_shlibpath_var_CXX=no
10641     fi
10642     # Workaround some broken pre-1.5 toolchains
10643     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10644     ;;
10645   osf3*)
10646     case $cc_basename in
10647       KCC)
10648         # Kuck and Associates, Inc. (KAI) C++ Compiler
10649
10650         # KCC will only create a shared library if the output file
10651         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10652         # to its proper name (with version) after linking.
10653         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'
10654
10655         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10656         hardcode_libdir_separator_CXX=:
10657
10658         # Archives containing C++ object files must be created using
10659         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10660         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10661
10662         ;;
10663       RCC)
10664         # Rational C++ 2.4.1
10665         # FIXME: insert proper C++ library support
10666         ld_shlibs_CXX=no
10667         ;;
10668       cxx)
10669         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10670         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 ${objdir}/so_locations -o $lib'
10671
10672         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10673         hardcode_libdir_separator_CXX=:
10674
10675         # Commands to make compiler produce verbose output that lists
10676         # what "hidden" libraries, object files and flags are used when
10677         # linking a shared library.
10678         #
10679         # There doesn't appear to be a way to prevent this compiler from
10680         # explicitly linking system object files so we need to strip them
10681         # from the output so that they don't get included in the library
10682         # dependencies.
10683         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'
10684         ;;
10685       *)
10686         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10687           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10688           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}${objdir}/so_locations -o $lib'
10689
10690           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10691           hardcode_libdir_separator_CXX=:
10692
10693           # Commands to make compiler produce verbose output that lists
10694           # what "hidden" libraries, object files and flags are used when
10695           # linking a shared library.
10696           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10697
10698         else
10699           # FIXME: insert proper C++ library support
10700           ld_shlibs_CXX=no
10701         fi
10702         ;;
10703     esac
10704     ;;
10705   osf4* | osf5*)
10706     case $cc_basename in
10707       KCC)
10708         # Kuck and Associates, Inc. (KAI) C++ Compiler
10709
10710         # KCC will only create a shared library if the output file
10711         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10712         # to its proper name (with version) after linking.
10713         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'
10714
10715         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10716         hardcode_libdir_separator_CXX=:
10717
10718         # Archives containing C++ object files must be created using
10719         # the KAI C++ compiler.
10720         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10721         ;;
10722       RCC)
10723         # Rational C++ 2.4.1
10724         # FIXME: insert proper C++ library support
10725         ld_shlibs_CXX=no
10726         ;;
10727       cxx)
10728         allow_undefined_flag_CXX=' -expect_unresolved \*'
10729         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 ${objdir}/so_locations -o $lib'
10730         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10731           echo "-hidden">> $lib.exp~
10732           $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 $objdir/so_locations -o $lib~
10733           $rm $lib.exp'
10734
10735         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10736         hardcode_libdir_separator_CXX=:
10737
10738         # Commands to make compiler produce verbose output that lists
10739         # what "hidden" libraries, object files and flags are used when
10740         # linking a shared library.
10741         #
10742         # There doesn't appear to be a way to prevent this compiler from
10743         # explicitly linking system object files so we need to strip them
10744         # from the output so that they don't get included in the library
10745         # dependencies.
10746         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'
10747         ;;
10748       *)
10749         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10750           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10751          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}${objdir}/so_locations -o $lib'
10752
10753           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10754           hardcode_libdir_separator_CXX=:
10755
10756           # Commands to make compiler produce verbose output that lists
10757           # what "hidden" libraries, object files and flags are used when
10758           # linking a shared library.
10759           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10760
10761         else
10762           # FIXME: insert proper C++ library support
10763           ld_shlibs_CXX=no
10764         fi
10765         ;;
10766     esac
10767     ;;
10768   psos*)
10769     # FIXME: insert proper C++ library support
10770     ld_shlibs_CXX=no
10771     ;;
10772   sco*)
10773     archive_cmds_need_lc_CXX=no
10774     case $cc_basename in
10775       CC)
10776         # FIXME: insert proper C++ library support
10777         ld_shlibs_CXX=no
10778         ;;
10779       *)
10780         # FIXME: insert proper C++ library support
10781         ld_shlibs_CXX=no
10782         ;;
10783     esac
10784     ;;
10785   sunos4*)
10786     case $cc_basename in
10787       CC)
10788         # Sun C++ 4.x
10789         # FIXME: insert proper C++ library support
10790         ld_shlibs_CXX=no
10791         ;;
10792       lcc)
10793         # Lucid
10794         # FIXME: insert proper C++ library support
10795         ld_shlibs_CXX=no
10796         ;;
10797       *)
10798         # FIXME: insert proper C++ library support
10799         ld_shlibs_CXX=no
10800         ;;
10801     esac
10802     ;;
10803   solaris*)
10804     case $cc_basename in
10805       CC)
10806         # Sun C++ 4.2, 5.x and Centerline C++
10807         no_undefined_flag_CXX=' -zdefs'
10808         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10809         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10810         $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10811
10812         hardcode_libdir_flag_spec_CXX='-R$libdir'
10813         hardcode_shlibpath_var_CXX=no
10814         case $host_os in
10815           solaris2.0-5 | solaris2.0-5.*) ;;
10816           *)
10817             # The C++ compiler is used as linker so we must use $wl
10818             # flag to pass the commands to the underlying system
10819             # linker.
10820             # Supported since Solaris 2.6 (maybe 2.5.1?)
10821             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10822             ;;
10823         esac
10824         link_all_deplibs_CXX=yes
10825
10826         # Commands to make compiler produce verbose output that lists
10827         # what "hidden" libraries, object files and flags are used when
10828         # linking a shared library.
10829         #
10830         # There doesn't appear to be a way to prevent this compiler from
10831         # explicitly linking system object files so we need to strip them
10832         # from the output so that they don't get included in the library
10833         # dependencies.
10834         output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10835
10836         # Archives containing C++ object files must be created using
10837         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10838         # necessary to make sure instantiated templates are included
10839         # in the archive.
10840         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10841         ;;
10842       gcx)
10843         # Green Hills C++ Compiler
10844         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10845
10846         # The C++ compiler must be used to create the archive.
10847         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10848         ;;
10849       *)
10850         # GNU C++ compiler with Solaris linker
10851         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10852           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10853           if $CC --version | grep -v '^2\.7' > /dev/null; then
10854             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10855             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10856                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10857
10858             # Commands to make compiler produce verbose output that lists
10859             # what "hidden" libraries, object files and flags are used when
10860             # linking a shared library.
10861             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10862           else
10863             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10864             # platform.
10865             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10866             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10867                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10868
10869             # Commands to make compiler produce verbose output that lists
10870             # what "hidden" libraries, object files and flags are used when
10871             # linking a shared library.
10872             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10873           fi
10874
10875           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10876         fi
10877         ;;
10878     esac
10879     ;;
10880   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10881     archive_cmds_need_lc_CXX=no
10882     ;;
10883   tandem*)
10884     case $cc_basename in
10885       NCC)
10886         # NonStop-UX NCC 3.20
10887         # FIXME: insert proper C++ library support
10888         ld_shlibs_CXX=no
10889         ;;
10890       *)
10891         # FIXME: insert proper C++ library support
10892         ld_shlibs_CXX=no
10893         ;;
10894     esac
10895     ;;
10896   vxworks*)
10897     # FIXME: insert proper C++ library support
10898     ld_shlibs_CXX=no
10899     ;;
10900   *)
10901     # FIXME: insert proper C++ library support
10902     ld_shlibs_CXX=no
10903     ;;
10904 esac
10905 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10906 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10907 test "$ld_shlibs_CXX" = no && can_build_shared=no
10908
10909 GCC_CXX="$GXX"
10910 LD_CXX="$LD"
10911
10912
10913 cat > conftest.$ac_ext <<EOF
10914 class Foo
10915 {
10916 public:
10917   Foo (void) { a = 0; }
10918 private:
10919   int a;
10920 };
10921 EOF
10922
10923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10924   (eval $ac_compile) 2>&5
10925   ac_status=$?
10926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927   (exit $ac_status); }; then
10928   # Parse the compiler output and extract the necessary
10929   # objects, libraries and library flags.
10930
10931   # Sentinel used to keep track of whether or not we are before
10932   # the conftest object file.
10933   pre_test_object_deps_done=no
10934
10935   # The `*' in the case matches for architectures that use `case' in
10936   # $output_verbose_cmd can trigger glob expansion during the loop
10937   # eval without this substitution.
10938   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10939
10940   for p in `eval $output_verbose_link_cmd`; do
10941     case $p in
10942
10943     -L* | -R* | -l*)
10944        # Some compilers place space between "-{L,R}" and the path.
10945        # Remove the space.
10946        if test $p = "-L" \
10947           || test $p = "-R"; then
10948          prev=$p
10949          continue
10950        else
10951          prev=
10952        fi
10953
10954        if test "$pre_test_object_deps_done" = no; then
10955          case $p in
10956          -L* | -R*)
10957            # Internal compiler library paths should come after those
10958            # provided the user.  The postdeps already come after the
10959            # user supplied libs so there is no need to process them.
10960            if test -z "$compiler_lib_search_path_CXX"; then
10961              compiler_lib_search_path_CXX="${prev}${p}"
10962            else
10963              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10964            fi
10965            ;;
10966          # The "-l" case would never come before the object being
10967          # linked, so don't bother handling this case.
10968          esac
10969        else
10970          if test -z "$postdeps_CXX"; then
10971            postdeps_CXX="${prev}${p}"
10972          else
10973            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10974          fi
10975        fi
10976        ;;
10977
10978     *.$objext)
10979        # This assumes that the test object file only shows up
10980        # once in the compiler output.
10981        if test "$p" = "conftest.$objext"; then
10982          pre_test_object_deps_done=yes
10983          continue
10984        fi
10985
10986        if test "$pre_test_object_deps_done" = no; then
10987          if test -z "$predep_objects_CXX"; then
10988            predep_objects_CXX="$p"
10989          else
10990            predep_objects_CXX="$predep_objects_CXX $p"
10991          fi
10992        else
10993          if test -z "$postdep_objects_CXX"; then
10994            postdep_objects_CXX="$p"
10995          else
10996            postdep_objects_CXX="$postdep_objects_CXX $p"
10997          fi
10998        fi
10999        ;;
11000
11001     *) ;; # Ignore the rest.
11002
11003     esac
11004   done
11005
11006   # Clean up.
11007   rm -f a.out a.exe
11008 else
11009   echo "libtool.m4: error: problem compiling CXX test program"
11010 fi
11011
11012 $rm -f confest.$objext
11013
11014 case " $postdeps_CXX " in
11015 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11016 esac
11017
11018 lt_prog_compiler_wl_CXX=
11019 lt_prog_compiler_pic_CXX=
11020 lt_prog_compiler_static_CXX=
11021
11022 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11023 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11024
11025   # C++ specific cases for pic, static, wl, etc.
11026   if test "$GXX" = yes; then
11027     lt_prog_compiler_wl_CXX='-Wl,'
11028     lt_prog_compiler_static_CXX='-static'
11029
11030     case $host_os in
11031     aix*)
11032       # All AIX code is PIC.
11033       if test "$host_cpu" = ia64; then
11034         # AIX 5 now supports IA64 processor
11035         lt_prog_compiler_static_CXX='-Bstatic'
11036       fi
11037       ;;
11038     amigaos*)
11039       # FIXME: we need at least 68020 code to build shared libraries, but
11040       # adding the `-m68020' flag to GCC prevents building anything better,
11041       # like `-m68040'.
11042       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11043       ;;
11044     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11045       # PIC is the default for these OSes.
11046       ;;
11047     mingw* | os2* | pw32*)
11048       # This hack is so that the source file can tell whether it is being
11049       # built for inclusion in a dll (and should export symbols for example).
11050       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11051       ;;
11052     darwin* | rhapsody*)
11053       # PIC is the default on this platform
11054       # Common symbols not allowed in MH_DYLIB files
11055       lt_prog_compiler_pic_CXX='-fno-common'
11056       ;;
11057     *djgpp*)
11058       # DJGPP does not support shared libraries at all
11059       lt_prog_compiler_pic_CXX=
11060       ;;
11061     sysv4*MP*)
11062       if test -d /usr/nec; then
11063         lt_prog_compiler_pic_CXX=-Kconform_pic
11064       fi
11065       ;;
11066     hpux*)
11067       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11068       # not for PA HP-UX.
11069       case "$host_cpu" in
11070       hppa*64*|ia64*)
11071         ;;
11072       *)
11073         lt_prog_compiler_pic_CXX='-fPIC'
11074         ;;
11075       esac
11076       ;;
11077     *)
11078       lt_prog_compiler_pic_CXX='-fPIC'
11079       ;;
11080     esac
11081   else
11082     case $host_os in
11083       aix4* | aix5*)
11084         # All AIX code is PIC.
11085         if test "$host_cpu" = ia64; then
11086           # AIX 5 now supports IA64 processor
11087           lt_prog_compiler_static_CXX='-Bstatic'
11088         else
11089           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11090         fi
11091         ;;
11092       chorus*)
11093         case $cc_basename in
11094         cxch68)
11095           # Green Hills C++ Compiler
11096           # _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"
11097           ;;
11098         esac
11099         ;;
11100       dgux*)
11101         case $cc_basename in
11102           ec++)
11103             lt_prog_compiler_pic_CXX='-KPIC'
11104             ;;
11105           ghcx)
11106             # Green Hills C++ Compiler
11107             lt_prog_compiler_pic_CXX='-pic'
11108             ;;
11109           *)
11110             ;;
11111         esac
11112         ;;
11113       freebsd* | kfreebsd*-gnu)
11114         # FreeBSD uses GNU C++
11115         ;;
11116       hpux9* | hpux10* | hpux11*)
11117         case $cc_basename in
11118           CC)
11119             lt_prog_compiler_wl_CXX='-Wl,'
11120             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11121             if test "$host_cpu" != ia64; then
11122               lt_prog_compiler_pic_CXX='+Z'
11123             fi
11124             ;;
11125           aCC)
11126             lt_prog_compiler_wl_CXX='-Wl,'
11127             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11128             case "$host_cpu" in
11129             hppa*64*|ia64*)
11130               # +Z the default
11131               ;;
11132             *)
11133               lt_prog_compiler_pic_CXX='+Z'
11134               ;;
11135             esac
11136             ;;
11137           *)
11138             ;;
11139         esac
11140         ;;
11141       irix5* | irix6* | nonstopux*)
11142         case $cc_basename in
11143           CC)
11144             lt_prog_compiler_wl_CXX='-Wl,'
11145             lt_prog_compiler_static_CXX='-non_shared'
11146             # CC pic flag -KPIC is the default.
11147             ;;
11148           *)
11149             ;;
11150         esac
11151         ;;
11152       linux*)
11153         case $cc_basename in
11154           KCC)
11155             # KAI C++ Compiler
11156             lt_prog_compiler_wl_CXX='--backend -Wl,'
11157             lt_prog_compiler_pic_CXX='-fPIC'
11158             ;;
11159           icpc)
11160             # Intel C++
11161             lt_prog_compiler_wl_CXX='-Wl,'
11162             lt_prog_compiler_pic_CXX='-KPIC'
11163             lt_prog_compiler_static_CXX='-static'
11164             ;;
11165           cxx)
11166             # Compaq C++
11167             # Make sure the PIC flag is empty.  It appears that all Alpha
11168             # Linux and Compaq Tru64 Unix objects are PIC.
11169             lt_prog_compiler_pic_CXX=
11170             lt_prog_compiler_static_CXX='-non_shared'
11171             ;;
11172           *)
11173             ;;
11174         esac
11175         ;;
11176       lynxos*)
11177         ;;
11178       m88k*)
11179         ;;
11180       mvs*)
11181         case $cc_basename in
11182           cxx)
11183             lt_prog_compiler_pic_CXX='-W c,exportall'
11184             ;;
11185           *)
11186             ;;
11187         esac
11188         ;;
11189       netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11190         ;;
11191       osf3* | osf4* | osf5*)
11192         case $cc_basename in
11193           KCC)
11194             lt_prog_compiler_wl_CXX='--backend -Wl,'
11195             ;;
11196           RCC)
11197             # Rational C++ 2.4.1
11198             lt_prog_compiler_pic_CXX='-pic'
11199             ;;
11200           cxx)
11201             # Digital/Compaq C++
11202             lt_prog_compiler_wl_CXX='-Wl,'
11203             # Make sure the PIC flag is empty.  It appears that all Alpha
11204             # Linux and Compaq Tru64 Unix objects are PIC.
11205             lt_prog_compiler_pic_CXX=
11206             lt_prog_compiler_static_CXX='-non_shared'
11207             ;;
11208           *)
11209             ;;
11210         esac
11211         ;;
11212       psos*)
11213         ;;
11214       sco*)
11215         case $cc_basename in
11216           CC)
11217             lt_prog_compiler_pic_CXX='-fPIC'
11218             ;;
11219           *)
11220             ;;
11221         esac
11222         ;;
11223       solaris*)
11224         case $cc_basename in
11225           CC)
11226             # Sun C++ 4.2, 5.x and Centerline C++
11227             lt_prog_compiler_pic_CXX='-KPIC'
11228             lt_prog_compiler_static_CXX='-Bstatic'
11229             lt_prog_compiler_wl_CXX='-Qoption ld '
11230             ;;
11231           gcx)
11232             # Green Hills C++ Compiler
11233             lt_prog_compiler_pic_CXX='-PIC'
11234             ;;
11235           *)
11236             ;;
11237         esac
11238         ;;
11239       sunos4*)
11240         case $cc_basename in
11241           CC)
11242             # Sun C++ 4.x
11243             lt_prog_compiler_pic_CXX='-pic'
11244             lt_prog_compiler_static_CXX='-Bstatic'
11245             ;;
11246           lcc)
11247             # Lucid
11248             lt_prog_compiler_pic_CXX='-pic'
11249             ;;
11250           *)
11251             ;;
11252         esac
11253         ;;
11254       tandem*)
11255         case $cc_basename in
11256           NCC)
11257             # NonStop-UX NCC 3.20
11258             lt_prog_compiler_pic_CXX='-KPIC'
11259             ;;
11260           *)
11261             ;;
11262         esac
11263         ;;
11264       unixware*)
11265         ;;
11266       vxworks*)
11267         ;;
11268       *)
11269         lt_prog_compiler_can_build_shared_CXX=no
11270         ;;
11271     esac
11272   fi
11273
11274 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11275 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11276
11277 #
11278 # Check to make sure the PIC flag actually works.
11279 #
11280 if test -n "$lt_prog_compiler_pic_CXX"; then
11281
11282 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11283 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11284 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11285   echo $ECHO_N "(cached) $ECHO_C" >&6
11286 else
11287   lt_prog_compiler_pic_works_CXX=no
11288   ac_outfile=conftest.$ac_objext
11289    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11290    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11291    # Insert the option either (1) after the last *FLAGS variable, or
11292    # (2) before a word containing "conftest.", or (3) at the end.
11293    # Note that $ac_compile itself does not contain backslashes and begins
11294    # with a dollar sign (not a hyphen), so the echo should work correctly.
11295    # The option is referenced via a variable to avoid confusing sed.
11296    lt_compile=`echo "$ac_compile" | $SED \
11297    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11298    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11299    -e 's:$: $lt_compiler_flag:'`
11300    (eval echo "\"\$as_me:11300: $lt_compile\"" >&5)
11301    (eval "$lt_compile" 2>conftest.err)
11302    ac_status=$?
11303    cat conftest.err >&5
11304    echo "$as_me:11304: \$? = $ac_status" >&5
11305    if (exit $ac_status) && test -s "$ac_outfile"; then
11306      # The compiler can only warn and ignore the option if not recognized
11307      # So say no if there are warnings
11308      if test ! -s conftest.err; then
11309        lt_prog_compiler_pic_works_CXX=yes
11310      fi
11311    fi
11312    $rm conftest*
11313
11314 fi
11315 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11316 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11317
11318 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11319     case $lt_prog_compiler_pic_CXX in
11320      "" | " "*) ;;
11321      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11322      esac
11323 else
11324     lt_prog_compiler_pic_CXX=
11325      lt_prog_compiler_can_build_shared_CXX=no
11326 fi
11327
11328 fi
11329 case "$host_os" in
11330   # For platforms which do not support PIC, -DPIC is meaningless:
11331   *djgpp*)
11332     lt_prog_compiler_pic_CXX=
11333     ;;
11334   *)
11335     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11336     ;;
11337 esac
11338
11339 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11340 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11341 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11342   echo $ECHO_N "(cached) $ECHO_C" >&6
11343 else
11344   lt_cv_prog_compiler_c_o_CXX=no
11345    $rm -r conftest 2>/dev/null
11346    mkdir conftest
11347    cd conftest
11348    mkdir out
11349    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11350
11351    lt_compiler_flag="-o out/conftest2.$ac_objext"
11352    # Insert the option either (1) after the last *FLAGS variable, or
11353    # (2) before a word containing "conftest.", or (3) at the end.
11354    # Note that $ac_compile itself does not contain backslashes and begins
11355    # with a dollar sign (not a hyphen), so the echo should work correctly.
11356    lt_compile=`echo "$ac_compile" | $SED \
11357    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11358    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11359    -e 's:$: $lt_compiler_flag:'`
11360    (eval echo "\"\$as_me:11360: $lt_compile\"" >&5)
11361    (eval "$lt_compile" 2>out/conftest.err)
11362    ac_status=$?
11363    cat out/conftest.err >&5
11364    echo "$as_me:11364: \$? = $ac_status" >&5
11365    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11366    then
11367      # The compiler can only warn and ignore the option if not recognized
11368      # So say no if there are warnings
11369      if test ! -s out/conftest.err; then
11370        lt_cv_prog_compiler_c_o_CXX=yes
11371      fi
11372    fi
11373    chmod u+w .
11374    $rm conftest*
11375    # SGI C++ compiler will create directory out/ii_files/ for
11376    # template instantiation
11377    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11378    $rm out/* && rmdir out
11379    cd ..
11380    rmdir conftest
11381    $rm conftest*
11382
11383 fi
11384 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11385 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11386
11387
11388 hard_links="nottested"
11389 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11390   # do not overwrite the value of need_locks provided by the user
11391   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11392 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11393   hard_links=yes
11394   $rm conftest*
11395   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11396   touch conftest.a
11397   ln conftest.a conftest.b 2>&5 || hard_links=no
11398   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11399   echo "$as_me:$LINENO: result: $hard_links" >&5
11400 echo "${ECHO_T}$hard_links" >&6
11401   if test "$hard_links" = no; then
11402     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11403 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11404     need_locks=warn
11405   fi
11406 else
11407   need_locks=no
11408 fi
11409
11410 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11411 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11412
11413   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11414   case $host_os in
11415   aix4* | aix5*)
11416     # If we're using GNU nm, then we don't want the "-C" option.
11417     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11418     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11419       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'
11420     else
11421       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'
11422     fi
11423     ;;
11424   pw32*)
11425     export_symbols_cmds_CXX="$ltdll_cmds"
11426   ;;
11427   cygwin* | mingw*)
11428     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11429   ;;
11430   linux*)
11431     link_all_deplibs_CXX=no
11432   ;;
11433   *)
11434     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11435   ;;
11436   esac
11437
11438 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11439 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11440 test "$ld_shlibs_CXX" = no && can_build_shared=no
11441
11442 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11443 if test "$GCC" = yes; then
11444   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11445 fi
11446
11447 #
11448 # Do we need to explicitly link libc?
11449 #
11450 case "x$archive_cmds_need_lc_CXX" in
11451 x|xyes)
11452   # Assume -lc should be added
11453   archive_cmds_need_lc_CXX=yes
11454
11455   if test "$enable_shared" = yes && test "$GCC" = yes; then
11456     case $archive_cmds_CXX in
11457     *'~'*)
11458       # FIXME: we may have to deal with multi-command sequences.
11459       ;;
11460     '$CC '*)
11461       # Test whether the compiler implicitly links with -lc since on some
11462       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11463       # to ld, don't add -lc before -lgcc.
11464       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11465 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11466       $rm conftest*
11467       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11468
11469       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11470   (eval $ac_compile) 2>&5
11471   ac_status=$?
11472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473   (exit $ac_status); } 2>conftest.err; then
11474         soname=conftest
11475         lib=conftest
11476         libobjs=conftest.$ac_objext
11477         deplibs=
11478         wl=$lt_prog_compiler_wl_CXX
11479         compiler_flags=-v
11480         linker_flags=-v
11481         verstring=
11482         output_objdir=.
11483         libname=conftest
11484         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11485         allow_undefined_flag_CXX=
11486         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11487   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11488   ac_status=$?
11489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490   (exit $ac_status); }
11491         then
11492           archive_cmds_need_lc_CXX=no
11493         else
11494           archive_cmds_need_lc_CXX=yes
11495         fi
11496         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11497       else
11498         cat conftest.err 1>&5
11499       fi
11500       $rm conftest*
11501       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11502 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11503       ;;
11504     esac
11505   fi
11506   ;;
11507 esac
11508
11509 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11510 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11511 library_names_spec=
11512 libname_spec='lib$name'
11513 soname_spec=
11514 shrext_cmds=".so"
11515 postinstall_cmds=
11516 postuninstall_cmds=
11517 finish_cmds=
11518 finish_eval=
11519 shlibpath_var=
11520 shlibpath_overrides_runpath=unknown
11521 version_type=none
11522 dynamic_linker="$host_os ld.so"
11523 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11524 if test "$GCC" = yes; then
11525   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11526   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11527     # if the path contains ";" then we assume it to be the separator
11528     # otherwise default to the standard path separator (i.e. ":") - it is
11529     # assumed that no part of a normal pathname contains ";" but that should
11530     # okay in the real world where ";" in dirpaths is itself problematic.
11531     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11532   else
11533     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11534   fi
11535 else
11536   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11537 fi
11538 need_lib_prefix=unknown
11539 hardcode_into_libs=no
11540
11541 # when you set need_version to no, make sure it does not cause -set_version
11542 # flags to be left without arguments
11543 need_version=unknown
11544
11545 case $host_os in
11546 aix3*)
11547   version_type=linux
11548   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11549   shlibpath_var=LIBPATH
11550
11551   # AIX 3 has no versioning support, so we append a major version to the name.
11552   soname_spec='${libname}${release}${shared_ext}$major'
11553   ;;
11554
11555 aix4* | aix5*)
11556   version_type=linux
11557   need_lib_prefix=no
11558   need_version=no
11559   hardcode_into_libs=yes
11560   if test "$host_cpu" = ia64; then
11561     # AIX 5 supports IA64
11562     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11563     shlibpath_var=LD_LIBRARY_PATH
11564   else
11565     # With GCC up to 2.95.x, collect2 would create an import file
11566     # for dependence libraries.  The import file would start with
11567     # the line `#! .'.  This would cause the generated library to
11568     # depend on `.', always an invalid library.  This was fixed in
11569     # development snapshots of GCC prior to 3.0.
11570     case $host_os in
11571       aix4 | aix4.[01] | aix4.[01].*)
11572       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11573            echo ' yes '
11574            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11575         :
11576       else
11577         can_build_shared=no
11578       fi
11579       ;;
11580     esac
11581     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11582     # soname into executable. Probably we can add versioning support to
11583     # collect2, so additional links can be useful in future.
11584     if test "$aix_use_runtimelinking" = yes; then
11585       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11586       # instead of lib<name>.a to let people know that these are not
11587       # typical AIX shared libraries.
11588       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11589     else
11590       # We preserve .a as extension for shared libraries through AIX4.2
11591       # and later when we are not doing run time linking.
11592       library_names_spec='${libname}${release}.a $libname.a'
11593       soname_spec='${libname}${release}${shared_ext}$major'
11594     fi
11595     shlibpath_var=LIBPATH
11596   fi
11597   ;;
11598
11599 amigaos*)
11600   library_names_spec='$libname.ixlibrary $libname.a'
11601   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11602   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'
11603   ;;
11604
11605 beos*)
11606   library_names_spec='${libname}${shared_ext}'
11607   dynamic_linker="$host_os ld.so"
11608   shlibpath_var=LIBRARY_PATH
11609   ;;
11610
11611 bsdi4*)
11612   version_type=linux
11613   need_version=no
11614   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11615   soname_spec='${libname}${release}${shared_ext}$major'
11616   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11617   shlibpath_var=LD_LIBRARY_PATH
11618   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11619   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11620   # the default ld.so.conf also contains /usr/contrib/lib and
11621   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11622   # libtool to hard-code these into programs
11623   ;;
11624
11625 cygwin* | mingw* | pw32*)
11626   version_type=windows
11627   shrext_cmds=".dll"
11628   need_version=no
11629   need_lib_prefix=no
11630
11631   case $GCC,$host_os in
11632   yes,cygwin* | yes,mingw* | yes,pw32*)
11633     library_names_spec='$libname.dll.a'
11634     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11635     postinstall_cmds='base_file=`basename \${file}`~
11636       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11637       dldir=$destdir/`dirname \$dlpath`~
11638       test -d \$dldir || mkdir -p \$dldir~
11639       $install_prog $dir/$dlname \$dldir/$dlname'
11640     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11641       dlpath=$dir/\$dldll~
11642        $rm \$dlpath'
11643     shlibpath_overrides_runpath=yes
11644
11645     case $host_os in
11646     cygwin*)
11647       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11648       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11649       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11650       ;;
11651     mingw*)
11652       # MinGW DLLs use traditional 'lib' prefix
11653       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11654       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11655       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11656         # It is most probably a Windows format PATH printed by
11657         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11658         # path with ; separators, and with drive letters. We can handle the
11659         # drive letters (cygwin fileutils understands them), so leave them,
11660         # especially as we might pass files found there to a mingw objdump,
11661         # which wouldn't understand a cygwinified path. Ahh.
11662         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11663       else
11664         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11665       fi
11666       ;;
11667     pw32*)
11668       # pw32 DLLs use 'pw' prefix rather than 'lib'
11669       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11670       ;;
11671     esac
11672     ;;
11673
11674   *)
11675     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11676     ;;
11677   esac
11678   dynamic_linker='Win32 ld.exe'
11679   # FIXME: first we should search . and the directory the executable is in
11680   shlibpath_var=PATH
11681   ;;
11682
11683 darwin* | rhapsody*)
11684   dynamic_linker="$host_os dyld"
11685   version_type=darwin
11686   need_lib_prefix=no
11687   need_version=no
11688   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11689   soname_spec='${libname}${release}${major}$shared_ext'
11690   shlibpath_overrides_runpath=yes
11691   shlibpath_var=DYLD_LIBRARY_PATH
11692   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11693   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11694   if test "$GCC" = yes; then
11695     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"`
11696   else
11697     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11698   fi
11699   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11700   ;;
11701
11702 dgux*)
11703   version_type=linux
11704   need_lib_prefix=no
11705   need_version=no
11706   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11707   soname_spec='${libname}${release}${shared_ext}$major'
11708   shlibpath_var=LD_LIBRARY_PATH
11709   ;;
11710
11711 freebsd1*)
11712   dynamic_linker=no
11713   ;;
11714
11715 kfreebsd*-gnu)
11716   version_type=linux
11717   need_lib_prefix=no
11718   need_version=no
11719   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11720   soname_spec='${libname}${release}${shared_ext}$major'
11721   shlibpath_var=LD_LIBRARY_PATH
11722   shlibpath_overrides_runpath=no
11723   hardcode_into_libs=yes
11724   dynamic_linker='GNU ld.so'
11725   ;;
11726
11727 freebsd*)
11728   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11729   version_type=freebsd-$objformat
11730   case $version_type in
11731     freebsd-elf*)
11732       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11733       need_version=no
11734       need_lib_prefix=no
11735       ;;
11736     freebsd-*)
11737       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11738       need_version=yes
11739       ;;
11740   esac
11741   shlibpath_var=LD_LIBRARY_PATH
11742   case $host_os in
11743   freebsd2*)
11744     shlibpath_overrides_runpath=yes
11745     ;;
11746   freebsd3.01* | freebsdelf3.01*)
11747     shlibpath_overrides_runpath=yes
11748     hardcode_into_libs=yes
11749     ;;
11750   *) # from 3.2 on
11751     shlibpath_overrides_runpath=no
11752     hardcode_into_libs=yes
11753     ;;
11754   esac
11755   ;;
11756
11757 gnu*)
11758   version_type=linux
11759   need_lib_prefix=no
11760   need_version=no
11761   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11762   soname_spec='${libname}${release}${shared_ext}$major'
11763   shlibpath_var=LD_LIBRARY_PATH
11764   hardcode_into_libs=yes
11765   ;;
11766
11767 hpux9* | hpux10* | hpux11*)
11768   # Give a soname corresponding to the major version so that dld.sl refuses to
11769   # link against other versions.
11770   version_type=sunos
11771   need_lib_prefix=no
11772   need_version=no
11773   case "$host_cpu" in
11774   ia64*)
11775     shrext_cmds='.so'
11776     hardcode_into_libs=yes
11777     dynamic_linker="$host_os dld.so"
11778     shlibpath_var=LD_LIBRARY_PATH
11779     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11780     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11781     soname_spec='${libname}${release}${shared_ext}$major'
11782     if test "X$HPUX_IA64_MODE" = X32; then
11783       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11784     else
11785       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11786     fi
11787     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11788     ;;
11789    hppa*64*)
11790      shrext_cmds='.sl'
11791      hardcode_into_libs=yes
11792      dynamic_linker="$host_os dld.sl"
11793      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11794      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11795      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11796      soname_spec='${libname}${release}${shared_ext}$major'
11797      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11798      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11799      ;;
11800    *)
11801     shrext_cmds='.sl'
11802     dynamic_linker="$host_os dld.sl"
11803     shlibpath_var=SHLIB_PATH
11804     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11805     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11806     soname_spec='${libname}${release}${shared_ext}$major'
11807     ;;
11808   esac
11809   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11810   postinstall_cmds='chmod 555 $lib'
11811   ;;
11812
11813 irix5* | irix6* | nonstopux*)
11814   case $host_os in
11815     nonstopux*) version_type=nonstopux ;;
11816     *)
11817         if test "$lt_cv_prog_gnu_ld" = yes; then
11818                 version_type=linux
11819         else
11820                 version_type=irix
11821         fi ;;
11822   esac
11823   need_lib_prefix=no
11824   need_version=no
11825   soname_spec='${libname}${release}${shared_ext}$major'
11826   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11827   case $host_os in
11828   irix5* | nonstopux*)
11829     libsuff= shlibsuff=
11830     ;;
11831   *)
11832     case $LD in # libtool.m4 will add one of these switches to LD
11833     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11834       libsuff= shlibsuff= libmagic=32-bit;;
11835     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11836       libsuff=32 shlibsuff=N32 libmagic=N32;;
11837     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11838       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11839     *) libsuff= shlibsuff= libmagic=never-match;;
11840     esac
11841     ;;
11842   esac
11843   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11844   shlibpath_overrides_runpath=no
11845   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11846   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11847   hardcode_into_libs=yes
11848   ;;
11849
11850 # No shared lib support for Linux oldld, aout, or coff.
11851 linux*oldld* | linux*aout* | linux*coff*)
11852   dynamic_linker=no
11853   ;;
11854
11855 # This must be Linux ELF.
11856 linux*)
11857   version_type=linux
11858   need_lib_prefix=no
11859   need_version=no
11860   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11861   soname_spec='${libname}${release}${shared_ext}$major'
11862   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11863   shlibpath_var=LD_LIBRARY_PATH
11864   shlibpath_overrides_runpath=no
11865   # This implies no fast_install, which is unacceptable.
11866   # Some rework will be needed to allow for fast_install
11867   # before this can be enabled.
11868   hardcode_into_libs=yes
11869
11870   # Append ld.so.conf contents to the search path
11871   if test -f /etc/ld.so.conf; then
11872     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11873     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11874   fi
11875
11876   # We used to test for /lib/ld.so.1 and disable shared libraries on
11877   # powerpc, because MkLinux only supported shared libraries with the
11878   # GNU dynamic linker.  Since this was broken with cross compilers,
11879   # most powerpc-linux boxes support dynamic linking these days and
11880   # people can always --disable-shared, the test was removed, and we
11881   # assume the GNU/Linux dynamic linker is in use.
11882   dynamic_linker='GNU/Linux ld.so'
11883   ;;
11884
11885 netbsdelf*-gnu)
11886   version_type=linux
11887   need_lib_prefix=no
11888   need_version=no
11889   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11890   soname_spec='${libname}${release}${shared_ext}$major'
11891   shlibpath_var=LD_LIBRARY_PATH
11892   shlibpath_overrides_runpath=no
11893   hardcode_into_libs=yes
11894   dynamic_linker='NetBSD ld.elf_so'
11895   ;;
11896
11897 knetbsd*-gnu)
11898   version_type=linux
11899   need_lib_prefix=no
11900   need_version=no
11901   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11902   soname_spec='${libname}${release}${shared_ext}$major'
11903   shlibpath_var=LD_LIBRARY_PATH
11904   shlibpath_overrides_runpath=no
11905   hardcode_into_libs=yes
11906   dynamic_linker='GNU ld.so'
11907   ;;
11908
11909 netbsd*)
11910   version_type=sunos
11911   need_lib_prefix=no
11912   need_version=no
11913   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11914     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11915     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11916     dynamic_linker='NetBSD (a.out) ld.so'
11917   else
11918     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11919     soname_spec='${libname}${release}${shared_ext}$major'
11920     dynamic_linker='NetBSD ld.elf_so'
11921   fi
11922   shlibpath_var=LD_LIBRARY_PATH
11923   shlibpath_overrides_runpath=yes
11924   hardcode_into_libs=yes
11925   ;;
11926
11927 newsos6)
11928   version_type=linux
11929   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11930   shlibpath_var=LD_LIBRARY_PATH
11931   shlibpath_overrides_runpath=yes
11932   ;;
11933
11934 nto-qnx*)
11935   version_type=linux
11936   need_lib_prefix=no
11937   need_version=no
11938   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11939   soname_spec='${libname}${release}${shared_ext}$major'
11940   shlibpath_var=LD_LIBRARY_PATH
11941   shlibpath_overrides_runpath=yes
11942   ;;
11943
11944 openbsd*)
11945   version_type=sunos
11946   need_lib_prefix=no
11947   need_version=yes
11948   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11949   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11950   shlibpath_var=LD_LIBRARY_PATH
11951   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11952     case $host_os in
11953       openbsd2.[89] | openbsd2.[89].*)
11954         shlibpath_overrides_runpath=no
11955         ;;
11956       *)
11957         shlibpath_overrides_runpath=yes
11958         ;;
11959       esac
11960   else
11961     shlibpath_overrides_runpath=yes
11962   fi
11963   ;;
11964
11965 os2*)
11966   libname_spec='$name'
11967   shrext_cmds=".dll"
11968   need_lib_prefix=no
11969   library_names_spec='$libname${shared_ext} $libname.a'
11970   dynamic_linker='OS/2 ld.exe'
11971   shlibpath_var=LIBPATH
11972   ;;
11973
11974 osf3* | osf4* | osf5*)
11975   version_type=osf
11976   need_lib_prefix=no
11977   need_version=no
11978   soname_spec='${libname}${release}${shared_ext}$major'
11979   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11980   shlibpath_var=LD_LIBRARY_PATH
11981   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11982   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11983   ;;
11984
11985 sco3.2v5*)
11986   version_type=osf
11987   soname_spec='${libname}${release}${shared_ext}$major'
11988   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11989   shlibpath_var=LD_LIBRARY_PATH
11990   ;;
11991
11992 solaris*)
11993   version_type=linux
11994   need_lib_prefix=no
11995   need_version=no
11996   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11997   soname_spec='${libname}${release}${shared_ext}$major'
11998   shlibpath_var=LD_LIBRARY_PATH
11999   shlibpath_overrides_runpath=yes
12000   hardcode_into_libs=yes
12001   # ldd complains unless libraries are executable
12002   postinstall_cmds='chmod +x $lib'
12003   ;;
12004
12005 sunos4*)
12006   version_type=sunos
12007   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12008   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12009   shlibpath_var=LD_LIBRARY_PATH
12010   shlibpath_overrides_runpath=yes
12011   if test "$with_gnu_ld" = yes; then
12012     need_lib_prefix=no
12013   fi
12014   need_version=yes
12015   ;;
12016
12017 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12018   version_type=linux
12019   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12020   soname_spec='${libname}${release}${shared_ext}$major'
12021   shlibpath_var=LD_LIBRARY_PATH
12022   case $host_vendor in
12023     sni)
12024       shlibpath_overrides_runpath=no
12025       need_lib_prefix=no
12026       export_dynamic_flag_spec='${wl}-Blargedynsym'
12027       runpath_var=LD_RUN_PATH
12028       ;;
12029     siemens)
12030       need_lib_prefix=no
12031       ;;
12032     motorola)
12033       need_lib_prefix=no
12034       need_version=no
12035       shlibpath_overrides_runpath=no
12036       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12037       ;;
12038   esac
12039   ;;
12040
12041 sysv4*MP*)
12042   if test -d /usr/nec ;then
12043     version_type=linux
12044     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12045     soname_spec='$libname${shared_ext}.$major'
12046     shlibpath_var=LD_LIBRARY_PATH
12047   fi
12048   ;;
12049
12050 uts4*)
12051   version_type=linux
12052   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12053   soname_spec='${libname}${release}${shared_ext}$major'
12054   shlibpath_var=LD_LIBRARY_PATH
12055   ;;
12056
12057 *)
12058   dynamic_linker=no
12059   ;;
12060 esac
12061 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12062 echo "${ECHO_T}$dynamic_linker" >&6
12063 test "$dynamic_linker" = no && can_build_shared=no
12064
12065 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12066 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12067 hardcode_action_CXX=
12068 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12069    test -n "$runpath_var CXX" || \
12070    test "X$hardcode_automatic_CXX"="Xyes" ; then
12071
12072   # We can hardcode non-existant directories.
12073   if test "$hardcode_direct_CXX" != no &&
12074      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12075      # have to relink, otherwise we might link with an installed library
12076      # when we should be linking with a yet-to-be-installed one
12077      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12078      test "$hardcode_minus_L_CXX" != no; then
12079     # Linking always hardcodes the temporary library directory.
12080     hardcode_action_CXX=relink
12081   else
12082     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12083     hardcode_action_CXX=immediate
12084   fi
12085 else
12086   # We cannot hardcode anything, or else we can only hardcode existing
12087   # directories.
12088   hardcode_action_CXX=unsupported
12089 fi
12090 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12091 echo "${ECHO_T}$hardcode_action_CXX" >&6
12092
12093 if test "$hardcode_action_CXX" = relink; then
12094   # Fast installation is not supported
12095   enable_fast_install=no
12096 elif test "$shlibpath_overrides_runpath" = yes ||
12097      test "$enable_shared" = no; then
12098   # Fast installation is not necessary
12099   enable_fast_install=needless
12100 fi
12101
12102 striplib=
12103 old_striplib=
12104 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12105 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12106 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12107   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12108   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12109   echo "$as_me:$LINENO: result: yes" >&5
12110 echo "${ECHO_T}yes" >&6
12111 else
12112 # FIXME - insert some real tests, host_os isn't really good enough
12113   case $host_os in
12114    darwin*)
12115        if test -n "$STRIP" ; then
12116          striplib="$STRIP -x"
12117          echo "$as_me:$LINENO: result: yes" >&5
12118 echo "${ECHO_T}yes" >&6
12119        else
12120   echo "$as_me:$LINENO: result: no" >&5
12121 echo "${ECHO_T}no" >&6
12122 fi
12123        ;;
12124    *)
12125   echo "$as_me:$LINENO: result: no" >&5
12126 echo "${ECHO_T}no" >&6
12127     ;;
12128   esac
12129 fi
12130
12131 if test "x$enable_dlopen" != xyes; then
12132   enable_dlopen=unknown
12133   enable_dlopen_self=unknown
12134   enable_dlopen_self_static=unknown
12135 else
12136   lt_cv_dlopen=no
12137   lt_cv_dlopen_libs=
12138
12139   case $host_os in
12140   beos*)
12141     lt_cv_dlopen="load_add_on"
12142     lt_cv_dlopen_libs=
12143     lt_cv_dlopen_self=yes
12144     ;;
12145
12146   mingw* | pw32*)
12147     lt_cv_dlopen="LoadLibrary"
12148     lt_cv_dlopen_libs=
12149    ;;
12150
12151   cygwin*)
12152     lt_cv_dlopen="dlopen"
12153     lt_cv_dlopen_libs=
12154    ;;
12155
12156   darwin*)
12157   # if libdl is installed we need to link against it
12158     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12159 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12160 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12161   echo $ECHO_N "(cached) $ECHO_C" >&6
12162 else
12163   ac_check_lib_save_LIBS=$LIBS
12164 LIBS="-ldl  $LIBS"
12165 cat >conftest.$ac_ext <<_ACEOF
12166 /* confdefs.h.  */
12167 _ACEOF
12168 cat confdefs.h >>conftest.$ac_ext
12169 cat >>conftest.$ac_ext <<_ACEOF
12170 /* end confdefs.h.  */
12171
12172 /* Override any gcc2 internal prototype to avoid an error.  */
12173 #ifdef __cplusplus
12174 extern "C"
12175 #endif
12176 /* We use char because int might match the return type of a gcc2
12177    builtin and then its argument prototype would still apply.  */
12178 char dlopen ();
12179 int
12180 main ()
12181 {
12182 dlopen ();
12183   ;
12184   return 0;
12185 }
12186 _ACEOF
12187 rm -f conftest.$ac_objext conftest$ac_exeext
12188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12189   (eval $ac_link) 2>conftest.er1
12190   ac_status=$?
12191   grep -v '^ *+' conftest.er1 >conftest.err
12192   rm -f conftest.er1
12193   cat conftest.err >&5
12194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195   (exit $ac_status); } &&
12196          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12198   (eval $ac_try) 2>&5
12199   ac_status=$?
12200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201   (exit $ac_status); }; } &&
12202          { ac_try='test -s conftest$ac_exeext'
12203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12204   (eval $ac_try) 2>&5
12205   ac_status=$?
12206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207   (exit $ac_status); }; }; then
12208   ac_cv_lib_dl_dlopen=yes
12209 else
12210   echo "$as_me: failed program was:" >&5
12211 sed 's/^/| /' conftest.$ac_ext >&5
12212
12213 ac_cv_lib_dl_dlopen=no
12214 fi
12215 rm -f conftest.err conftest.$ac_objext \
12216       conftest$ac_exeext conftest.$ac_ext
12217 LIBS=$ac_check_lib_save_LIBS
12218 fi
12219 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12220 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12221 if test $ac_cv_lib_dl_dlopen = yes; then
12222   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12223 else
12224
12225     lt_cv_dlopen="dyld"
12226     lt_cv_dlopen_libs=
12227     lt_cv_dlopen_self=yes
12228
12229 fi
12230
12231    ;;
12232
12233   *)
12234     echo "$as_me:$LINENO: checking for shl_load" >&5
12235 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12236 if test "${ac_cv_func_shl_load+set}" = set; then
12237   echo $ECHO_N "(cached) $ECHO_C" >&6
12238 else
12239   cat >conftest.$ac_ext <<_ACEOF
12240 /* confdefs.h.  */
12241 _ACEOF
12242 cat confdefs.h >>conftest.$ac_ext
12243 cat >>conftest.$ac_ext <<_ACEOF
12244 /* end confdefs.h.  */
12245 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12246    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12247 #define shl_load innocuous_shl_load
12248
12249 /* System header to define __stub macros and hopefully few prototypes,
12250     which can conflict with char shl_load (); below.
12251     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12252     <limits.h> exists even on freestanding compilers.  */
12253
12254 #ifdef __STDC__
12255 # include <limits.h>
12256 #else
12257 # include <assert.h>
12258 #endif
12259
12260 #undef shl_load
12261
12262 /* Override any gcc2 internal prototype to avoid an error.  */
12263 #ifdef __cplusplus
12264 extern "C"
12265 {
12266 #endif
12267 /* We use char because int might match the return type of a gcc2
12268    builtin and then its argument prototype would still apply.  */
12269 char shl_load ();
12270 /* The GNU C library defines this for functions which it implements
12271     to always fail with ENOSYS.  Some functions are actually named
12272     something starting with __ and the normal name is an alias.  */
12273 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12274 choke me
12275 #else
12276 char (*f) () = shl_load;
12277 #endif
12278 #ifdef __cplusplus
12279 }
12280 #endif
12281
12282 int
12283 main ()
12284 {
12285 return f != shl_load;
12286   ;
12287   return 0;
12288 }
12289 _ACEOF
12290 rm -f conftest.$ac_objext conftest$ac_exeext
12291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12292   (eval $ac_link) 2>conftest.er1
12293   ac_status=$?
12294   grep -v '^ *+' conftest.er1 >conftest.err
12295   rm -f conftest.er1
12296   cat conftest.err >&5
12297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298   (exit $ac_status); } &&
12299          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12301   (eval $ac_try) 2>&5
12302   ac_status=$?
12303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304   (exit $ac_status); }; } &&
12305          { ac_try='test -s conftest$ac_exeext'
12306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12307   (eval $ac_try) 2>&5
12308   ac_status=$?
12309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310   (exit $ac_status); }; }; then
12311   ac_cv_func_shl_load=yes
12312 else
12313   echo "$as_me: failed program was:" >&5
12314 sed 's/^/| /' conftest.$ac_ext >&5
12315
12316 ac_cv_func_shl_load=no
12317 fi
12318 rm -f conftest.err conftest.$ac_objext \
12319       conftest$ac_exeext conftest.$ac_ext
12320 fi
12321 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12322 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12323 if test $ac_cv_func_shl_load = yes; then
12324   lt_cv_dlopen="shl_load"
12325 else
12326   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12327 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12328 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12329   echo $ECHO_N "(cached) $ECHO_C" >&6
12330 else
12331   ac_check_lib_save_LIBS=$LIBS
12332 LIBS="-ldld  $LIBS"
12333 cat >conftest.$ac_ext <<_ACEOF
12334 /* confdefs.h.  */
12335 _ACEOF
12336 cat confdefs.h >>conftest.$ac_ext
12337 cat >>conftest.$ac_ext <<_ACEOF
12338 /* end confdefs.h.  */
12339
12340 /* Override any gcc2 internal prototype to avoid an error.  */
12341 #ifdef __cplusplus
12342 extern "C"
12343 #endif
12344 /* We use char because int might match the return type of a gcc2
12345    builtin and then its argument prototype would still apply.  */
12346 char shl_load ();
12347 int
12348 main ()
12349 {
12350 shl_load ();
12351   ;
12352   return 0;
12353 }
12354 _ACEOF
12355 rm -f conftest.$ac_objext conftest$ac_exeext
12356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12357   (eval $ac_link) 2>conftest.er1
12358   ac_status=$?
12359   grep -v '^ *+' conftest.er1 >conftest.err
12360   rm -f conftest.er1
12361   cat conftest.err >&5
12362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363   (exit $ac_status); } &&
12364          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12366   (eval $ac_try) 2>&5
12367   ac_status=$?
12368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369   (exit $ac_status); }; } &&
12370          { ac_try='test -s conftest$ac_exeext'
12371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12372   (eval $ac_try) 2>&5
12373   ac_status=$?
12374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375   (exit $ac_status); }; }; then
12376   ac_cv_lib_dld_shl_load=yes
12377 else
12378   echo "$as_me: failed program was:" >&5
12379 sed 's/^/| /' conftest.$ac_ext >&5
12380
12381 ac_cv_lib_dld_shl_load=no
12382 fi
12383 rm -f conftest.err conftest.$ac_objext \
12384       conftest$ac_exeext conftest.$ac_ext
12385 LIBS=$ac_check_lib_save_LIBS
12386 fi
12387 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12388 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12389 if test $ac_cv_lib_dld_shl_load = yes; then
12390   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12391 else
12392   echo "$as_me:$LINENO: checking for dlopen" >&5
12393 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12394 if test "${ac_cv_func_dlopen+set}" = set; then
12395   echo $ECHO_N "(cached) $ECHO_C" >&6
12396 else
12397   cat >conftest.$ac_ext <<_ACEOF
12398 /* confdefs.h.  */
12399 _ACEOF
12400 cat confdefs.h >>conftest.$ac_ext
12401 cat >>conftest.$ac_ext <<_ACEOF
12402 /* end confdefs.h.  */
12403 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12404    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12405 #define dlopen innocuous_dlopen
12406
12407 /* System header to define __stub macros and hopefully few prototypes,
12408     which can conflict with char dlopen (); below.
12409     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12410     <limits.h> exists even on freestanding compilers.  */
12411
12412 #ifdef __STDC__
12413 # include <limits.h>
12414 #else
12415 # include <assert.h>
12416 #endif
12417
12418 #undef dlopen
12419
12420 /* Override any gcc2 internal prototype to avoid an error.  */
12421 #ifdef __cplusplus
12422 extern "C"
12423 {
12424 #endif
12425 /* We use char because int might match the return type of a gcc2
12426    builtin and then its argument prototype would still apply.  */
12427 char dlopen ();
12428 /* The GNU C library defines this for functions which it implements
12429     to always fail with ENOSYS.  Some functions are actually named
12430     something starting with __ and the normal name is an alias.  */
12431 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12432 choke me
12433 #else
12434 char (*f) () = dlopen;
12435 #endif
12436 #ifdef __cplusplus
12437 }
12438 #endif
12439
12440 int
12441 main ()
12442 {
12443 return f != dlopen;
12444   ;
12445   return 0;
12446 }
12447 _ACEOF
12448 rm -f conftest.$ac_objext conftest$ac_exeext
12449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12450   (eval $ac_link) 2>conftest.er1
12451   ac_status=$?
12452   grep -v '^ *+' conftest.er1 >conftest.err
12453   rm -f conftest.er1
12454   cat conftest.err >&5
12455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456   (exit $ac_status); } &&
12457          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12459   (eval $ac_try) 2>&5
12460   ac_status=$?
12461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462   (exit $ac_status); }; } &&
12463          { ac_try='test -s conftest$ac_exeext'
12464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12465   (eval $ac_try) 2>&5
12466   ac_status=$?
12467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468   (exit $ac_status); }; }; then
12469   ac_cv_func_dlopen=yes
12470 else
12471   echo "$as_me: failed program was:" >&5
12472 sed 's/^/| /' conftest.$ac_ext >&5
12473
12474 ac_cv_func_dlopen=no
12475 fi
12476 rm -f conftest.err conftest.$ac_objext \
12477       conftest$ac_exeext conftest.$ac_ext
12478 fi
12479 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12480 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12481 if test $ac_cv_func_dlopen = yes; then
12482   lt_cv_dlopen="dlopen"
12483 else
12484   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12485 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12486 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12487   echo $ECHO_N "(cached) $ECHO_C" >&6
12488 else
12489   ac_check_lib_save_LIBS=$LIBS
12490 LIBS="-ldl  $LIBS"
12491 cat >conftest.$ac_ext <<_ACEOF
12492 /* confdefs.h.  */
12493 _ACEOF
12494 cat confdefs.h >>conftest.$ac_ext
12495 cat >>conftest.$ac_ext <<_ACEOF
12496 /* end confdefs.h.  */
12497
12498 /* Override any gcc2 internal prototype to avoid an error.  */
12499 #ifdef __cplusplus
12500 extern "C"
12501 #endif
12502 /* We use char because int might match the return type of a gcc2
12503    builtin and then its argument prototype would still apply.  */
12504 char dlopen ();
12505 int
12506 main ()
12507 {
12508 dlopen ();
12509   ;
12510   return 0;
12511 }
12512 _ACEOF
12513 rm -f conftest.$ac_objext conftest$ac_exeext
12514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12515   (eval $ac_link) 2>conftest.er1
12516   ac_status=$?
12517   grep -v '^ *+' conftest.er1 >conftest.err
12518   rm -f conftest.er1
12519   cat conftest.err >&5
12520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521   (exit $ac_status); } &&
12522          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12524   (eval $ac_try) 2>&5
12525   ac_status=$?
12526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527   (exit $ac_status); }; } &&
12528          { ac_try='test -s conftest$ac_exeext'
12529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12530   (eval $ac_try) 2>&5
12531   ac_status=$?
12532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533   (exit $ac_status); }; }; then
12534   ac_cv_lib_dl_dlopen=yes
12535 else
12536   echo "$as_me: failed program was:" >&5
12537 sed 's/^/| /' conftest.$ac_ext >&5
12538
12539 ac_cv_lib_dl_dlopen=no
12540 fi
12541 rm -f conftest.err conftest.$ac_objext \
12542       conftest$ac_exeext conftest.$ac_ext
12543 LIBS=$ac_check_lib_save_LIBS
12544 fi
12545 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12546 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12547 if test $ac_cv_lib_dl_dlopen = yes; then
12548   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12549 else
12550   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12551 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12552 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12553   echo $ECHO_N "(cached) $ECHO_C" >&6
12554 else
12555   ac_check_lib_save_LIBS=$LIBS
12556 LIBS="-lsvld  $LIBS"
12557 cat >conftest.$ac_ext <<_ACEOF
12558 /* confdefs.h.  */
12559 _ACEOF
12560 cat confdefs.h >>conftest.$ac_ext
12561 cat >>conftest.$ac_ext <<_ACEOF
12562 /* end confdefs.h.  */
12563
12564 /* Override any gcc2 internal prototype to avoid an error.  */
12565 #ifdef __cplusplus
12566 extern "C"
12567 #endif
12568 /* We use char because int might match the return type of a gcc2
12569    builtin and then its argument prototype would still apply.  */
12570 char dlopen ();
12571 int
12572 main ()
12573 {
12574 dlopen ();
12575   ;
12576   return 0;
12577 }
12578 _ACEOF
12579 rm -f conftest.$ac_objext conftest$ac_exeext
12580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12581   (eval $ac_link) 2>conftest.er1
12582   ac_status=$?
12583   grep -v '^ *+' conftest.er1 >conftest.err
12584   rm -f conftest.er1
12585   cat conftest.err >&5
12586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587   (exit $ac_status); } &&
12588          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12590   (eval $ac_try) 2>&5
12591   ac_status=$?
12592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593   (exit $ac_status); }; } &&
12594          { ac_try='test -s conftest$ac_exeext'
12595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12596   (eval $ac_try) 2>&5
12597   ac_status=$?
12598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599   (exit $ac_status); }; }; then
12600   ac_cv_lib_svld_dlopen=yes
12601 else
12602   echo "$as_me: failed program was:" >&5
12603 sed 's/^/| /' conftest.$ac_ext >&5
12604
12605 ac_cv_lib_svld_dlopen=no
12606 fi
12607 rm -f conftest.err conftest.$ac_objext \
12608       conftest$ac_exeext conftest.$ac_ext
12609 LIBS=$ac_check_lib_save_LIBS
12610 fi
12611 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12612 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12613 if test $ac_cv_lib_svld_dlopen = yes; then
12614   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12615 else
12616   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12617 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12618 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12619   echo $ECHO_N "(cached) $ECHO_C" >&6
12620 else
12621   ac_check_lib_save_LIBS=$LIBS
12622 LIBS="-ldld  $LIBS"
12623 cat >conftest.$ac_ext <<_ACEOF
12624 /* confdefs.h.  */
12625 _ACEOF
12626 cat confdefs.h >>conftest.$ac_ext
12627 cat >>conftest.$ac_ext <<_ACEOF
12628 /* end confdefs.h.  */
12629
12630 /* Override any gcc2 internal prototype to avoid an error.  */
12631 #ifdef __cplusplus
12632 extern "C"
12633 #endif
12634 /* We use char because int might match the return type of a gcc2
12635    builtin and then its argument prototype would still apply.  */
12636 char dld_link ();
12637 int
12638 main ()
12639 {
12640 dld_link ();
12641   ;
12642   return 0;
12643 }
12644 _ACEOF
12645 rm -f conftest.$ac_objext conftest$ac_exeext
12646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12647   (eval $ac_link) 2>conftest.er1
12648   ac_status=$?
12649   grep -v '^ *+' conftest.er1 >conftest.err
12650   rm -f conftest.er1
12651   cat conftest.err >&5
12652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653   (exit $ac_status); } &&
12654          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12656   (eval $ac_try) 2>&5
12657   ac_status=$?
12658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659   (exit $ac_status); }; } &&
12660          { ac_try='test -s conftest$ac_exeext'
12661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12662   (eval $ac_try) 2>&5
12663   ac_status=$?
12664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665   (exit $ac_status); }; }; then
12666   ac_cv_lib_dld_dld_link=yes
12667 else
12668   echo "$as_me: failed program was:" >&5
12669 sed 's/^/| /' conftest.$ac_ext >&5
12670
12671 ac_cv_lib_dld_dld_link=no
12672 fi
12673 rm -f conftest.err conftest.$ac_objext \
12674       conftest$ac_exeext conftest.$ac_ext
12675 LIBS=$ac_check_lib_save_LIBS
12676 fi
12677 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12678 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12679 if test $ac_cv_lib_dld_dld_link = yes; then
12680   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12681 fi
12682
12683
12684 fi
12685
12686
12687 fi
12688
12689
12690 fi
12691
12692
12693 fi
12694
12695
12696 fi
12697
12698     ;;
12699   esac
12700
12701   if test "x$lt_cv_dlopen" != xno; then
12702     enable_dlopen=yes
12703   else
12704     enable_dlopen=no
12705   fi
12706
12707   case $lt_cv_dlopen in
12708   dlopen)
12709     save_CPPFLAGS="$CPPFLAGS"
12710     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12711
12712     save_LDFLAGS="$LDFLAGS"
12713     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12714
12715     save_LIBS="$LIBS"
12716     LIBS="$lt_cv_dlopen_libs $LIBS"
12717
12718     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12719 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12720 if test "${lt_cv_dlopen_self+set}" = set; then
12721   echo $ECHO_N "(cached) $ECHO_C" >&6
12722 else
12723           if test "$cross_compiling" = yes; then :
12724   lt_cv_dlopen_self=cross
12725 else
12726   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12727   lt_status=$lt_dlunknown
12728   cat > conftest.$ac_ext <<EOF
12729 #line 12729 "configure"
12730 #include "confdefs.h"
12731
12732 #if HAVE_DLFCN_H
12733 #include <dlfcn.h>
12734 #endif
12735
12736 #include <stdio.h>
12737
12738 #ifdef RTLD_GLOBAL
12739 #  define LT_DLGLOBAL           RTLD_GLOBAL
12740 #else
12741 #  ifdef DL_GLOBAL
12742 #    define LT_DLGLOBAL         DL_GLOBAL
12743 #  else
12744 #    define LT_DLGLOBAL         0
12745 #  endif
12746 #endif
12747
12748 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12749    find out it does not work in some platform. */
12750 #ifndef LT_DLLAZY_OR_NOW
12751 #  ifdef RTLD_LAZY
12752 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12753 #  else
12754 #    ifdef DL_LAZY
12755 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12756 #    else
12757 #      ifdef RTLD_NOW
12758 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12759 #      else
12760 #        ifdef DL_NOW
12761 #          define LT_DLLAZY_OR_NOW      DL_NOW
12762 #        else
12763 #          define LT_DLLAZY_OR_NOW      0
12764 #        endif
12765 #      endif
12766 #    endif
12767 #  endif
12768 #endif
12769
12770 #ifdef __cplusplus
12771 extern "C" void exit (int);
12772 #endif
12773
12774 void fnord() { int i=42;}
12775 int main ()
12776 {
12777   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12778   int status = $lt_dlunknown;
12779
12780   if (self)
12781     {
12782       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12783       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12784       /* dlclose (self); */
12785     }
12786
12787     exit (status);
12788 }
12789 EOF
12790   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12791   (eval $ac_link) 2>&5
12792   ac_status=$?
12793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12795     (./conftest; exit; ) 2>/dev/null
12796     lt_status=$?
12797     case x$lt_status in
12798       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12799       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12800       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12801     esac
12802   else :
12803     # compilation failed
12804     lt_cv_dlopen_self=no
12805   fi
12806 fi
12807 rm -fr conftest*
12808
12809
12810 fi
12811 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12812 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12813
12814     if test "x$lt_cv_dlopen_self" = xyes; then
12815       LDFLAGS="$LDFLAGS $link_static_flag"
12816       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12817 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12818 if test "${lt_cv_dlopen_self_static+set}" = set; then
12819   echo $ECHO_N "(cached) $ECHO_C" >&6
12820 else
12821           if test "$cross_compiling" = yes; then :
12822   lt_cv_dlopen_self_static=cross
12823 else
12824   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12825   lt_status=$lt_dlunknown
12826   cat > conftest.$ac_ext <<EOF
12827 #line 12827 "configure"
12828 #include "confdefs.h"
12829
12830 #if HAVE_DLFCN_H
12831 #include <dlfcn.h>
12832 #endif
12833
12834 #include <stdio.h>
12835
12836 #ifdef RTLD_GLOBAL
12837 #  define LT_DLGLOBAL           RTLD_GLOBAL
12838 #else
12839 #  ifdef DL_GLOBAL
12840 #    define LT_DLGLOBAL         DL_GLOBAL
12841 #  else
12842 #    define LT_DLGLOBAL         0
12843 #  endif
12844 #endif
12845
12846 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12847    find out it does not work in some platform. */
12848 #ifndef LT_DLLAZY_OR_NOW
12849 #  ifdef RTLD_LAZY
12850 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12851 #  else
12852 #    ifdef DL_LAZY
12853 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12854 #    else
12855 #      ifdef RTLD_NOW
12856 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12857 #      else
12858 #        ifdef DL_NOW
12859 #          define LT_DLLAZY_OR_NOW      DL_NOW
12860 #        else
12861 #          define LT_DLLAZY_OR_NOW      0
12862 #        endif
12863 #      endif
12864 #    endif
12865 #  endif
12866 #endif
12867
12868 #ifdef __cplusplus
12869 extern "C" void exit (int);
12870 #endif
12871
12872 void fnord() { int i=42;}
12873 int main ()
12874 {
12875   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12876   int status = $lt_dlunknown;
12877
12878   if (self)
12879     {
12880       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12881       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12882       /* dlclose (self); */
12883     }
12884
12885     exit (status);
12886 }
12887 EOF
12888   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12889   (eval $ac_link) 2>&5
12890   ac_status=$?
12891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12893     (./conftest; exit; ) 2>/dev/null
12894     lt_status=$?
12895     case x$lt_status in
12896       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12897       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12898       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12899     esac
12900   else :
12901     # compilation failed
12902     lt_cv_dlopen_self_static=no
12903   fi
12904 fi
12905 rm -fr conftest*
12906
12907
12908 fi
12909 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12910 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12911     fi
12912
12913     CPPFLAGS="$save_CPPFLAGS"
12914     LDFLAGS="$save_LDFLAGS"
12915     LIBS="$save_LIBS"
12916     ;;
12917   esac
12918
12919   case $lt_cv_dlopen_self in
12920   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12921   *) enable_dlopen_self=unknown ;;
12922   esac
12923
12924   case $lt_cv_dlopen_self_static in
12925   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12926   *) enable_dlopen_self_static=unknown ;;
12927   esac
12928 fi
12929
12930
12931 # The else clause should only fire when bootstrapping the
12932 # libtool distribution, otherwise you forgot to ship ltmain.sh
12933 # with your package, and you will get complaints that there are
12934 # no rules to generate ltmain.sh.
12935 if test -f "$ltmain"; then
12936   # See if we are running on zsh, and set the options which allow our commands through
12937   # without removal of \ escapes.
12938   if test -n "${ZSH_VERSION+set}" ; then
12939     setopt NO_GLOB_SUBST
12940   fi
12941   # Now quote all the things that may contain metacharacters while being
12942   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12943   # variables and quote the copies for generation of the libtool script.
12944   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12945     SED SHELL STRIP \
12946     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12947     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12948     deplibs_check_method reload_flag reload_cmds need_locks \
12949     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12950     lt_cv_sys_global_symbol_to_c_name_address \
12951     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12952     old_postinstall_cmds old_postuninstall_cmds \
12953     compiler_CXX \
12954     CC_CXX \
12955     LD_CXX \
12956     lt_prog_compiler_wl_CXX \
12957     lt_prog_compiler_pic_CXX \
12958     lt_prog_compiler_static_CXX \
12959     lt_prog_compiler_no_builtin_flag_CXX \
12960     export_dynamic_flag_spec_CXX \
12961     thread_safe_flag_spec_CXX \
12962     whole_archive_flag_spec_CXX \
12963     enable_shared_with_static_runtimes_CXX \
12964     old_archive_cmds_CXX \
12965     old_archive_from_new_cmds_CXX \
12966     predep_objects_CXX \
12967     postdep_objects_CXX \
12968     predeps_CXX \
12969     postdeps_CXX \
12970     compiler_lib_search_path_CXX \
12971     archive_cmds_CXX \
12972     archive_expsym_cmds_CXX \
12973     postinstall_cmds_CXX \
12974     postuninstall_cmds_CXX \
12975     old_archive_from_expsyms_cmds_CXX \
12976     allow_undefined_flag_CXX \
12977     no_undefined_flag_CXX \
12978     export_symbols_cmds_CXX \
12979     hardcode_libdir_flag_spec_CXX \
12980     hardcode_libdir_flag_spec_ld_CXX \
12981     hardcode_libdir_separator_CXX \
12982     hardcode_automatic_CXX \
12983     module_cmds_CXX \
12984     module_expsym_cmds_CXX \
12985     lt_cv_prog_compiler_c_o_CXX \
12986     exclude_expsyms_CXX \
12987     include_expsyms_CXX; do
12988
12989     case $var in
12990     old_archive_cmds_CXX | \
12991     old_archive_from_new_cmds_CXX | \
12992     archive_cmds_CXX | \
12993     archive_expsym_cmds_CXX | \
12994     module_cmds_CXX | \
12995     module_expsym_cmds_CXX | \
12996     old_archive_from_expsyms_cmds_CXX | \
12997     export_symbols_cmds_CXX | \
12998     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12999     postinstall_cmds | postuninstall_cmds | \
13000     old_postinstall_cmds | old_postuninstall_cmds | \
13001     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13002       # Double-quote double-evaled strings.
13003       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13004       ;;
13005     *)
13006       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13007       ;;
13008     esac
13009   done
13010
13011   case $lt_echo in
13012   *'\$0 --fallback-echo"')
13013     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13014     ;;
13015   esac
13016
13017 cfgfile="$ofile"
13018
13019   cat <<__EOF__ >> "$cfgfile"
13020 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13021
13022 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13023
13024 # Shell to use when invoking shell scripts.
13025 SHELL=$lt_SHELL
13026
13027 # Whether or not to build shared libraries.
13028 build_libtool_libs=$enable_shared
13029
13030 # Whether or not to build static libraries.
13031 build_old_libs=$enable_static
13032
13033 # Whether or not to add -lc for building shared libraries.
13034 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13035
13036 # Whether or not to disallow shared libs when runtime libs are static
13037 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13038
13039 # Whether or not to optimize for fast installation.
13040 fast_install=$enable_fast_install
13041
13042 # The host system.
13043 host_alias=$host_alias
13044 host=$host
13045
13046 # An echo program that does not interpret backslashes.
13047 echo=$lt_echo
13048
13049 # The archiver.
13050 AR=$lt_AR
13051 AR_FLAGS=$lt_AR_FLAGS
13052
13053 # A C compiler.
13054 LTCC=$lt_LTCC
13055
13056 # A language-specific compiler.
13057 CC=$lt_compiler_CXX
13058
13059 # Is the compiler the GNU C compiler?
13060 with_gcc=$GCC_CXX
13061
13062 # An ERE matcher.
13063 EGREP=$lt_EGREP
13064
13065 # The linker used to build libraries.
13066 LD=$lt_LD_CXX
13067
13068 # Whether we need hard or soft links.
13069 LN_S=$lt_LN_S
13070
13071 # A BSD-compatible nm program.
13072 NM=$lt_NM
13073
13074 # A symbol stripping program
13075 STRIP=$lt_STRIP
13076
13077 # Used to examine libraries when file_magic_cmd begins "file"
13078 MAGIC_CMD=$MAGIC_CMD
13079
13080 # Used on cygwin: DLL creation program.
13081 DLLTOOL="$DLLTOOL"
13082
13083 # Used on cygwin: object dumper.
13084 OBJDUMP="$OBJDUMP"
13085
13086 # Used on cygwin: assembler.
13087 AS="$AS"
13088
13089 # The name of the directory that contains temporary libtool files.
13090 objdir=$objdir
13091
13092 # How to create reloadable object files.
13093 reload_flag=$lt_reload_flag
13094 reload_cmds=$lt_reload_cmds
13095
13096 # How to pass a linker flag through the compiler.
13097 wl=$lt_lt_prog_compiler_wl_CXX
13098
13099 # Object file suffix (normally "o").
13100 objext="$ac_objext"
13101
13102 # Old archive suffix (normally "a").
13103 libext="$libext"
13104
13105 # Shared library suffix (normally ".so").
13106 shrext_cmds='$shrext_cmds'
13107
13108 # Executable file suffix (normally "").
13109 exeext="$exeext"
13110
13111 # Additional compiler flags for building library objects.
13112 pic_flag=$lt_lt_prog_compiler_pic_CXX
13113 pic_mode=$pic_mode
13114
13115 # What is the maximum length of a command?
13116 max_cmd_len=$lt_cv_sys_max_cmd_len
13117
13118 # Does compiler simultaneously support -c and -o options?
13119 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13120
13121 # Must we lock files when doing compilation ?
13122 need_locks=$lt_need_locks
13123
13124 # Do we need the lib prefix for modules?
13125 need_lib_prefix=$need_lib_prefix
13126
13127 # Do we need a version for libraries?
13128 need_version=$need_version
13129
13130 # Whether dlopen is supported.
13131 dlopen_support=$enable_dlopen
13132
13133 # Whether dlopen of programs is supported.
13134 dlopen_self=$enable_dlopen_self
13135
13136 # Whether dlopen of statically linked programs is supported.
13137 dlopen_self_static=$enable_dlopen_self_static
13138
13139 # Compiler flag to prevent dynamic linking.
13140 link_static_flag=$lt_lt_prog_compiler_static_CXX
13141
13142 # Compiler flag to turn off builtin functions.
13143 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13144
13145 # Compiler flag to allow reflexive dlopens.
13146 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13147
13148 # Compiler flag to generate shared objects directly from archives.
13149 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13150
13151 # Compiler flag to generate thread-safe objects.
13152 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13153
13154 # Library versioning type.
13155 version_type=$version_type
13156
13157 # Format of library name prefix.
13158 libname_spec=$lt_libname_spec
13159
13160 # List of archive names.  First name is the real one, the rest are links.
13161 # The last name is the one that the linker finds with -lNAME.
13162 library_names_spec=$lt_library_names_spec
13163
13164 # The coded name of the library, if different from the real name.
13165 soname_spec=$lt_soname_spec
13166
13167 # Commands used to build and install an old-style archive.
13168 RANLIB=$lt_RANLIB
13169 old_archive_cmds=$lt_old_archive_cmds_CXX
13170 old_postinstall_cmds=$lt_old_postinstall_cmds
13171 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13172
13173 # Create an old-style archive from a shared archive.
13174 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13175
13176 # Create a temporary old-style archive to link instead of a shared archive.
13177 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13178
13179 # Commands used to build and install a shared archive.
13180 archive_cmds=$lt_archive_cmds_CXX
13181 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13182 postinstall_cmds=$lt_postinstall_cmds
13183 postuninstall_cmds=$lt_postuninstall_cmds
13184
13185 # Commands used to build a loadable module (assumed same as above if empty)
13186 module_cmds=$lt_module_cmds_CXX
13187 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13188
13189 # Commands to strip libraries.
13190 old_striplib=$lt_old_striplib
13191 striplib=$lt_striplib
13192
13193 # Dependencies to place before the objects being linked to create a
13194 # shared library.
13195 predep_objects=$lt_predep_objects_CXX
13196
13197 # Dependencies to place after the objects being linked to create a
13198 # shared library.
13199 postdep_objects=$lt_postdep_objects_CXX
13200
13201 # Dependencies to place before the objects being linked to create a
13202 # shared library.
13203 predeps=$lt_predeps_CXX
13204
13205 # Dependencies to place after the objects being linked to create a
13206 # shared library.
13207 postdeps=$lt_postdeps_CXX
13208
13209 # The library search path used internally by the compiler when linking
13210 # a shared library.
13211 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13212
13213 # Method to check whether dependent libraries are shared objects.
13214 deplibs_check_method=$lt_deplibs_check_method
13215
13216 # Command to use when deplibs_check_method == file_magic.
13217 file_magic_cmd=$lt_file_magic_cmd
13218
13219 # Flag that allows shared libraries with undefined symbols to be built.
13220 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13221
13222 # Flag that forces no undefined symbols.
13223 no_undefined_flag=$lt_no_undefined_flag_CXX
13224
13225 # Commands used to finish a libtool library installation in a directory.
13226 finish_cmds=$lt_finish_cmds
13227
13228 # Same as above, but a single script fragment to be evaled but not shown.
13229 finish_eval=$lt_finish_eval
13230
13231 # Take the output of nm and produce a listing of raw symbols and C names.
13232 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13233
13234 # Transform the output of nm in a proper C declaration
13235 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13236
13237 # Transform the output of nm in a C name address pair
13238 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13239
13240 # This is the shared library runtime path variable.
13241 runpath_var=$runpath_var
13242
13243 # This is the shared library path variable.
13244 shlibpath_var=$shlibpath_var
13245
13246 # Is shlibpath searched before the hard-coded library search path?
13247 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13248
13249 # How to hardcode a shared library path into an executable.
13250 hardcode_action=$hardcode_action_CXX
13251
13252 # Whether we should hardcode library paths into libraries.
13253 hardcode_into_libs=$hardcode_into_libs
13254
13255 # Flag to hardcode \$libdir into a binary during linking.
13256 # This must work even if \$libdir does not exist.
13257 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13258
13259 # If ld is used when linking, flag to hardcode \$libdir into
13260 # a binary during linking. This must work even if \$libdir does
13261 # not exist.
13262 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13263
13264 # Whether we need a single -rpath flag with a separated argument.
13265 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13266
13267 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13268 # resulting binary.
13269 hardcode_direct=$hardcode_direct_CXX
13270
13271 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13272 # resulting binary.
13273 hardcode_minus_L=$hardcode_minus_L_CXX
13274
13275 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13276 # the resulting binary.
13277 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13278
13279 # Set to yes if building a shared library automatically hardcodes DIR into the library
13280 # and all subsequent libraries and executables linked against it.
13281 hardcode_automatic=$hardcode_automatic_CXX
13282
13283 # Variables whose values should be saved in libtool wrapper scripts and
13284 # restored at relink time.
13285 variables_saved_for_relink="$variables_saved_for_relink"
13286
13287 # Whether libtool must link a program against all its dependency libraries.
13288 link_all_deplibs=$link_all_deplibs_CXX
13289
13290 # Compile-time system search path for libraries
13291 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13292
13293 # Run-time system search path for libraries
13294 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13295
13296 # Fix the shell variable \$srcfile for the compiler.
13297 fix_srcfile_path="$fix_srcfile_path_CXX"
13298
13299 # Set to yes if exported symbols are required.
13300 always_export_symbols=$always_export_symbols_CXX
13301
13302 # The commands to list exported symbols.
13303 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13304
13305 # The commands to extract the exported symbol list from a shared archive.
13306 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13307
13308 # Symbols that should not be listed in the preloaded symbols.
13309 exclude_expsyms=$lt_exclude_expsyms_CXX
13310
13311 # Symbols that must always be exported.
13312 include_expsyms=$lt_include_expsyms_CXX
13313
13314 # ### END LIBTOOL TAG CONFIG: $tagname
13315
13316 __EOF__
13317
13318
13319 else
13320   # If there is no Makefile yet, we rely on a make rule to execute
13321   # `config.status --recheck' to rerun these tests and create the
13322   # libtool script then.
13323   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13324   if test -f "$ltmain_in"; then
13325     test -f Makefile && make "$ltmain"
13326   fi
13327 fi
13328
13329
13330 ac_ext=c
13331 ac_cpp='$CPP $CPPFLAGS'
13332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13335
13336 CC=$lt_save_CC
13337 LDCXX=$LD
13338 LD=$lt_save_LD
13339 GCC=$lt_save_GCC
13340 with_gnu_ldcxx=$with_gnu_ld
13341 with_gnu_ld=$lt_save_with_gnu_ld
13342 lt_cv_path_LDCXX=$lt_cv_path_LD
13343 lt_cv_path_LD=$lt_save_path_LD
13344 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13345 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13346
13347         else
13348           tagname=""
13349         fi
13350         ;;
13351
13352       F77)
13353         if test -n "$F77" && test "X$F77" != "Xno"; then
13354
13355 ac_ext=f
13356 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13357 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13358 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13359
13360
13361 archive_cmds_need_lc_F77=no
13362 allow_undefined_flag_F77=
13363 always_export_symbols_F77=no
13364 archive_expsym_cmds_F77=
13365 export_dynamic_flag_spec_F77=
13366 hardcode_direct_F77=no
13367 hardcode_libdir_flag_spec_F77=
13368 hardcode_libdir_flag_spec_ld_F77=
13369 hardcode_libdir_separator_F77=
13370 hardcode_minus_L_F77=no
13371 hardcode_automatic_F77=no
13372 module_cmds_F77=
13373 module_expsym_cmds_F77=
13374 link_all_deplibs_F77=unknown
13375 old_archive_cmds_F77=$old_archive_cmds
13376 no_undefined_flag_F77=
13377 whole_archive_flag_spec_F77=
13378 enable_shared_with_static_runtimes_F77=no
13379
13380 # Source file extension for f77 test sources.
13381 ac_ext=f
13382
13383 # Object file extension for compiled f77 test sources.
13384 objext=o
13385 objext_F77=$objext
13386
13387 # Code to be used in simple compile tests
13388 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13389
13390 # Code to be used in simple link tests
13391 lt_simple_link_test_code="      program t\n      end\n"
13392
13393 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13394
13395 # If no C compiler was specified, use CC.
13396 LTCC=${LTCC-"$CC"}
13397
13398 # Allow CC to be a program name with arguments.
13399 compiler=$CC
13400
13401
13402 # Allow CC to be a program name with arguments.
13403 lt_save_CC="$CC"
13404 CC=${F77-"f77"}
13405 compiler=$CC
13406 compiler_F77=$CC
13407 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13408
13409 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13410 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13411 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13412 echo "${ECHO_T}$can_build_shared" >&6
13413
13414 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13415 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13416 test "$can_build_shared" = "no" && enable_shared=no
13417
13418 # On AIX, shared libraries and static libraries use the same namespace, and
13419 # are all built from PIC.
13420 case "$host_os" in
13421 aix3*)
13422   test "$enable_shared" = yes && enable_static=no
13423   if test -n "$RANLIB"; then
13424     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13425     postinstall_cmds='$RANLIB $lib'
13426   fi
13427   ;;
13428 aix4* | aix5*)
13429   test "$enable_shared" = yes && enable_static=no
13430   ;;
13431 esac
13432 echo "$as_me:$LINENO: result: $enable_shared" >&5
13433 echo "${ECHO_T}$enable_shared" >&6
13434
13435 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13436 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13437 # Make sure either enable_shared or enable_static is yes.
13438 test "$enable_shared" = yes || enable_static=yes
13439 echo "$as_me:$LINENO: result: $enable_static" >&5
13440 echo "${ECHO_T}$enable_static" >&6
13441
13442 test "$ld_shlibs_F77" = no && can_build_shared=no
13443
13444 GCC_F77="$G77"
13445 LD_F77="$LD"
13446
13447 lt_prog_compiler_wl_F77=
13448 lt_prog_compiler_pic_F77=
13449 lt_prog_compiler_static_F77=
13450
13451 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13452 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13453
13454   if test "$GCC" = yes; then
13455     lt_prog_compiler_wl_F77='-Wl,'
13456     lt_prog_compiler_static_F77='-static'
13457
13458     case $host_os in
13459       aix*)
13460       # All AIX code is PIC.
13461       if test "$host_cpu" = ia64; then
13462         # AIX 5 now supports IA64 processor
13463         lt_prog_compiler_static_F77='-Bstatic'
13464       fi
13465       ;;
13466
13467     amigaos*)
13468       # FIXME: we need at least 68020 code to build shared libraries, but
13469       # adding the `-m68020' flag to GCC prevents building anything better,
13470       # like `-m68040'.
13471       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13472       ;;
13473
13474     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13475       # PIC is the default for these OSes.
13476       ;;
13477
13478     mingw* | pw32* | os2*)
13479       # This hack is so that the source file can tell whether it is being
13480       # built for inclusion in a dll (and should export symbols for example).
13481       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13482       ;;
13483
13484     darwin* | rhapsody*)
13485       # PIC is the default on this platform
13486       # Common symbols not allowed in MH_DYLIB files
13487       lt_prog_compiler_pic_F77='-fno-common'
13488       ;;
13489
13490     msdosdjgpp*)
13491       # Just because we use GCC doesn't mean we suddenly get shared libraries
13492       # on systems that don't support them.
13493       lt_prog_compiler_can_build_shared_F77=no
13494       enable_shared=no
13495       ;;
13496
13497     sysv4*MP*)
13498       if test -d /usr/nec; then
13499         lt_prog_compiler_pic_F77=-Kconform_pic
13500       fi
13501       ;;
13502
13503     hpux*)
13504       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13505       # not for PA HP-UX.
13506       case "$host_cpu" in
13507       hppa*64*|ia64*)
13508         # +Z the default
13509         ;;
13510       *)
13511         lt_prog_compiler_pic_F77='-fPIC'
13512         ;;
13513       esac
13514       ;;
13515
13516     *)
13517       lt_prog_compiler_pic_F77='-fPIC'
13518       ;;
13519     esac
13520   else
13521     # PORTME Check for flag to pass linker flags through the system compiler.
13522     case $host_os in
13523     aix*)
13524       lt_prog_compiler_wl_F77='-Wl,'
13525       if test "$host_cpu" = ia64; then
13526         # AIX 5 now supports IA64 processor
13527         lt_prog_compiler_static_F77='-Bstatic'
13528       else
13529         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13530       fi
13531       ;;
13532
13533     mingw* | pw32* | os2*)
13534       # This hack is so that the source file can tell whether it is being
13535       # built for inclusion in a dll (and should export symbols for example).
13536       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13537       ;;
13538
13539     hpux9* | hpux10* | hpux11*)
13540       lt_prog_compiler_wl_F77='-Wl,'
13541       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13542       # not for PA HP-UX.
13543       case "$host_cpu" in
13544       hppa*64*|ia64*)
13545         # +Z the default
13546         ;;
13547       *)
13548         lt_prog_compiler_pic_F77='+Z'
13549         ;;
13550       esac
13551       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13552       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13553       ;;
13554
13555     irix5* | irix6* | nonstopux*)
13556       lt_prog_compiler_wl_F77='-Wl,'
13557       # PIC (with -KPIC) is the default.
13558       lt_prog_compiler_static_F77='-non_shared'
13559       ;;
13560
13561     newsos6)
13562       lt_prog_compiler_pic_F77='-KPIC'
13563       lt_prog_compiler_static_F77='-Bstatic'
13564       ;;
13565
13566     linux*)
13567       case $CC in
13568       icc* | ecc*)
13569         lt_prog_compiler_wl_F77='-Wl,'
13570         lt_prog_compiler_pic_F77='-KPIC'
13571         lt_prog_compiler_static_F77='-static'
13572         ;;
13573       ccc*)
13574         lt_prog_compiler_wl_F77='-Wl,'
13575         # All Alpha code is PIC.
13576         lt_prog_compiler_static_F77='-non_shared'
13577         ;;
13578       esac
13579       ;;
13580
13581     osf3* | osf4* | osf5*)
13582       lt_prog_compiler_wl_F77='-Wl,'
13583       # All OSF/1 code is PIC.
13584       lt_prog_compiler_static_F77='-non_shared'
13585       ;;
13586
13587     sco3.2v5*)
13588       lt_prog_compiler_pic_F77='-Kpic'
13589       lt_prog_compiler_static_F77='-dn'
13590       ;;
13591
13592     solaris*)
13593       lt_prog_compiler_wl_F77='-Wl,'
13594       lt_prog_compiler_pic_F77='-KPIC'
13595       lt_prog_compiler_static_F77='-Bstatic'
13596       ;;
13597
13598     sunos4*)
13599       lt_prog_compiler_wl_F77='-Qoption ld '
13600       lt_prog_compiler_pic_F77='-PIC'
13601       lt_prog_compiler_static_F77='-Bstatic'
13602       ;;
13603
13604     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13605       lt_prog_compiler_wl_F77='-Wl,'
13606       lt_prog_compiler_pic_F77='-KPIC'
13607       lt_prog_compiler_static_F77='-Bstatic'
13608       ;;
13609
13610     sysv4*MP*)
13611       if test -d /usr/nec ;then
13612         lt_prog_compiler_pic_F77='-Kconform_pic'
13613         lt_prog_compiler_static_F77='-Bstatic'
13614       fi
13615       ;;
13616
13617     uts4*)
13618       lt_prog_compiler_pic_F77='-pic'
13619       lt_prog_compiler_static_F77='-Bstatic'
13620       ;;
13621
13622     *)
13623       lt_prog_compiler_can_build_shared_F77=no
13624       ;;
13625     esac
13626   fi
13627
13628 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13629 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13630
13631 #
13632 # Check to make sure the PIC flag actually works.
13633 #
13634 if test -n "$lt_prog_compiler_pic_F77"; then
13635
13636 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13637 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13638 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13639   echo $ECHO_N "(cached) $ECHO_C" >&6
13640 else
13641   lt_prog_compiler_pic_works_F77=no
13642   ac_outfile=conftest.$ac_objext
13643    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13644    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13645    # Insert the option either (1) after the last *FLAGS variable, or
13646    # (2) before a word containing "conftest.", or (3) at the end.
13647    # Note that $ac_compile itself does not contain backslashes and begins
13648    # with a dollar sign (not a hyphen), so the echo should work correctly.
13649    # The option is referenced via a variable to avoid confusing sed.
13650    lt_compile=`echo "$ac_compile" | $SED \
13651    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13652    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13653    -e 's:$: $lt_compiler_flag:'`
13654    (eval echo "\"\$as_me:13654: $lt_compile\"" >&5)
13655    (eval "$lt_compile" 2>conftest.err)
13656    ac_status=$?
13657    cat conftest.err >&5
13658    echo "$as_me:13658: \$? = $ac_status" >&5
13659    if (exit $ac_status) && test -s "$ac_outfile"; then
13660      # The compiler can only warn and ignore the option if not recognized
13661      # So say no if there are warnings
13662      if test ! -s conftest.err; then
13663        lt_prog_compiler_pic_works_F77=yes
13664      fi
13665    fi
13666    $rm conftest*
13667
13668 fi
13669 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13670 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13671
13672 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13673     case $lt_prog_compiler_pic_F77 in
13674      "" | " "*) ;;
13675      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13676      esac
13677 else
13678     lt_prog_compiler_pic_F77=
13679      lt_prog_compiler_can_build_shared_F77=no
13680 fi
13681
13682 fi
13683 case "$host_os" in
13684   # For platforms which do not support PIC, -DPIC is meaningless:
13685   *djgpp*)
13686     lt_prog_compiler_pic_F77=
13687     ;;
13688   *)
13689     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13690     ;;
13691 esac
13692
13693 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13694 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13695 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13696   echo $ECHO_N "(cached) $ECHO_C" >&6
13697 else
13698   lt_cv_prog_compiler_c_o_F77=no
13699    $rm -r conftest 2>/dev/null
13700    mkdir conftest
13701    cd conftest
13702    mkdir out
13703    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13704
13705    lt_compiler_flag="-o out/conftest2.$ac_objext"
13706    # Insert the option either (1) after the last *FLAGS variable, or
13707    # (2) before a word containing "conftest.", or (3) at the end.
13708    # Note that $ac_compile itself does not contain backslashes and begins
13709    # with a dollar sign (not a hyphen), so the echo should work correctly.
13710    lt_compile=`echo "$ac_compile" | $SED \
13711    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13712    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13713    -e 's:$: $lt_compiler_flag:'`
13714    (eval echo "\"\$as_me:13714: $lt_compile\"" >&5)
13715    (eval "$lt_compile" 2>out/conftest.err)
13716    ac_status=$?
13717    cat out/conftest.err >&5
13718    echo "$as_me:13718: \$? = $ac_status" >&5
13719    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13720    then
13721      # The compiler can only warn and ignore the option if not recognized
13722      # So say no if there are warnings
13723      if test ! -s out/conftest.err; then
13724        lt_cv_prog_compiler_c_o_F77=yes
13725      fi
13726    fi
13727    chmod u+w .
13728    $rm conftest*
13729    # SGI C++ compiler will create directory out/ii_files/ for
13730    # template instantiation
13731    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13732    $rm out/* && rmdir out
13733    cd ..
13734    rmdir conftest
13735    $rm conftest*
13736
13737 fi
13738 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13739 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13740
13741
13742 hard_links="nottested"
13743 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13744   # do not overwrite the value of need_locks provided by the user
13745   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13746 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13747   hard_links=yes
13748   $rm conftest*
13749   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13750   touch conftest.a
13751   ln conftest.a conftest.b 2>&5 || hard_links=no
13752   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13753   echo "$as_me:$LINENO: result: $hard_links" >&5
13754 echo "${ECHO_T}$hard_links" >&6
13755   if test "$hard_links" = no; then
13756     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13757 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13758     need_locks=warn
13759   fi
13760 else
13761   need_locks=no
13762 fi
13763
13764 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13765 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13766
13767   runpath_var=
13768   allow_undefined_flag_F77=
13769   enable_shared_with_static_runtimes_F77=no
13770   archive_cmds_F77=
13771   archive_expsym_cmds_F77=
13772   old_archive_From_new_cmds_F77=
13773   old_archive_from_expsyms_cmds_F77=
13774   export_dynamic_flag_spec_F77=
13775   whole_archive_flag_spec_F77=
13776   thread_safe_flag_spec_F77=
13777   hardcode_libdir_flag_spec_F77=
13778   hardcode_libdir_flag_spec_ld_F77=
13779   hardcode_libdir_separator_F77=
13780   hardcode_direct_F77=no
13781   hardcode_minus_L_F77=no
13782   hardcode_shlibpath_var_F77=unsupported
13783   link_all_deplibs_F77=unknown
13784   hardcode_automatic_F77=no
13785   module_cmds_F77=
13786   module_expsym_cmds_F77=
13787   always_export_symbols_F77=no
13788   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13789   # include_expsyms should be a list of space-separated symbols to be *always*
13790   # included in the symbol list
13791   include_expsyms_F77=
13792   # exclude_expsyms can be an extended regexp of symbols to exclude
13793   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13794   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13795   # as well as any symbol that contains `d'.
13796   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13797   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13798   # platforms (ab)use it in PIC code, but their linkers get confused if
13799   # the symbol is explicitly referenced.  Since portable code cannot
13800   # rely on this symbol name, it's probably fine to never include it in
13801   # preloaded symbol tables.
13802   extract_expsyms_cmds=
13803
13804   case $host_os in
13805   cygwin* | mingw* | pw32*)
13806     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13807     # When not using gcc, we currently assume that we are using
13808     # Microsoft Visual C++.
13809     if test "$GCC" != yes; then
13810       with_gnu_ld=no
13811     fi
13812     ;;
13813   openbsd*)
13814     with_gnu_ld=no
13815     ;;
13816   esac
13817
13818   ld_shlibs_F77=yes
13819   if test "$with_gnu_ld" = yes; then
13820     # If archive_cmds runs LD, not CC, wlarc should be empty
13821     wlarc='${wl}'
13822
13823     # See if GNU ld supports shared libraries.
13824     case $host_os in
13825     aix3* | aix4* | aix5*)
13826       # On AIX/PPC, the GNU linker is very broken
13827       if test "$host_cpu" != ia64; then
13828         ld_shlibs_F77=no
13829         cat <<EOF 1>&2
13830
13831 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13832 *** to be unable to reliably create shared libraries on AIX.
13833 *** Therefore, libtool is disabling shared libraries support.  If you
13834 *** really care for shared libraries, you may want to modify your PATH
13835 *** so that a non-GNU linker is found, and then restart.
13836
13837 EOF
13838       fi
13839       ;;
13840
13841     amigaos*)
13842       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)'
13843       hardcode_libdir_flag_spec_F77='-L$libdir'
13844       hardcode_minus_L_F77=yes
13845
13846       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13847       # that the semantics of dynamic libraries on AmigaOS, at least up
13848       # to version 4, is to share data among multiple programs linked
13849       # with the same dynamic library.  Since this doesn't match the
13850       # behavior of shared libraries on other platforms, we can't use
13851       # them.
13852       ld_shlibs_F77=no
13853       ;;
13854
13855     beos*)
13856       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13857         allow_undefined_flag_F77=unsupported
13858         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13859         # support --undefined.  This deserves some investigation.  FIXME
13860         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13861       else
13862         ld_shlibs_F77=no
13863       fi
13864       ;;
13865
13866     cygwin* | mingw* | pw32*)
13867       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13868       # as there is no search path for DLLs.
13869       hardcode_libdir_flag_spec_F77='-L$libdir'
13870       allow_undefined_flag_F77=unsupported
13871       always_export_symbols_F77=no
13872       enable_shared_with_static_runtimes_F77=yes
13873       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13874
13875       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13876         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13877         # If the export-symbols file already is a .def file (1st line
13878         # is EXPORTS), use it as is; otherwise, prepend...
13879         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13880           cp $export_symbols $output_objdir/$soname.def;
13881         else
13882           echo EXPORTS > $output_objdir/$soname.def;
13883           cat $export_symbols >> $output_objdir/$soname.def;
13884         fi~
13885         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13886       else
13887         ld_shlibs=no
13888       fi
13889       ;;
13890
13891     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13892       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13893         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13894         wlarc=
13895       else
13896         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13897         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13898       fi
13899       ;;
13900
13901     solaris* | sysv5*)
13902       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13903         ld_shlibs_F77=no
13904         cat <<EOF 1>&2
13905
13906 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13907 *** create shared libraries on Solaris systems.  Therefore, libtool
13908 *** is disabling shared libraries support.  We urge you to upgrade GNU
13909 *** binutils to release 2.9.1 or newer.  Another option is to modify
13910 *** your PATH or compiler configuration so that the native linker is
13911 *** used, and then restart.
13912
13913 EOF
13914       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13915         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13916         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13917       else
13918         ld_shlibs_F77=no
13919       fi
13920       ;;
13921
13922     sunos4*)
13923       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13924       wlarc=
13925       hardcode_direct_F77=yes
13926       hardcode_shlibpath_var_F77=no
13927       ;;
13928
13929   linux*)
13930     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13931         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13932         archive_cmds_F77="$tmp_archive_cmds"
13933       supports_anon_versioning=no
13934       case `$LD -v 2>/dev/null` in
13935         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13936         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13937         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13938         *\ 2.11.*) ;; # other 2.11 versions
13939         *) supports_anon_versioning=yes ;;
13940       esac
13941       if test $supports_anon_versioning = yes; then
13942         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13943 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13944 $echo "local: *; };" >> $output_objdir/$libname.ver~
13945         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13946       else
13947         archive_expsym_cmds_F77="$tmp_archive_cmds"
13948       fi
13949       link_all_deplibs_F77=no
13950     else
13951       ld_shlibs_F77=no
13952     fi
13953     ;;
13954
13955     *)
13956       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13957         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13958         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13959       else
13960         ld_shlibs_F77=no
13961       fi
13962       ;;
13963     esac
13964
13965     if test "$ld_shlibs_F77" = yes; then
13966       runpath_var=LD_RUN_PATH
13967       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13968       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13969       # ancient GNU ld didn't support --whole-archive et. al.
13970       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13971         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13972       else
13973         whole_archive_flag_spec_F77=
13974       fi
13975     fi
13976   else
13977     # PORTME fill in a description of your system's linker (not GNU ld)
13978     case $host_os in
13979     aix3*)
13980       allow_undefined_flag_F77=unsupported
13981       always_export_symbols_F77=yes
13982       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'
13983       # Note: this linker hardcodes the directories in LIBPATH if there
13984       # are no directories specified by -L.
13985       hardcode_minus_L_F77=yes
13986       if test "$GCC" = yes && test -z "$link_static_flag"; then
13987         # Neither direct hardcoding nor static linking is supported with a
13988         # broken collect2.
13989         hardcode_direct_F77=unsupported
13990       fi
13991       ;;
13992
13993     aix4* | aix5*)
13994       if test "$host_cpu" = ia64; then
13995         # On IA64, the linker does run time linking by default, so we don't
13996         # have to do anything special.
13997         aix_use_runtimelinking=no
13998         exp_sym_flag='-Bexport'
13999         no_entry_flag=""
14000       else
14001         # If we're using GNU nm, then we don't want the "-C" option.
14002         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14003         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14004           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'
14005         else
14006           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'
14007         fi
14008         aix_use_runtimelinking=no
14009
14010         # Test if we are trying to use run time linking or normal
14011         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14012         # need to do runtime linking.
14013         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14014           for ld_flag in $LDFLAGS; do
14015           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14016             aix_use_runtimelinking=yes
14017             break
14018           fi
14019           done
14020         esac
14021
14022         exp_sym_flag='-bexport'
14023         no_entry_flag='-bnoentry'
14024       fi
14025
14026       # When large executables or shared objects are built, AIX ld can
14027       # have problems creating the table of contents.  If linking a library
14028       # or program results in "error TOC overflow" add -mminimal-toc to
14029       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14030       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14031
14032       archive_cmds_F77=''
14033       hardcode_direct_F77=yes
14034       hardcode_libdir_separator_F77=':'
14035       link_all_deplibs_F77=yes
14036
14037       if test "$GCC" = yes; then
14038         case $host_os in aix4.012|aix4.012.*)
14039         # We only want to do this on AIX 4.2 and lower, the check
14040         # below for broken collect2 doesn't work under 4.3+
14041           collect2name=`${CC} -print-prog-name=collect2`
14042           if test -f "$collect2name" && \
14043            strings "$collect2name" | grep resolve_lib_name >/dev/null
14044           then
14045           # We have reworked collect2
14046           hardcode_direct_F77=yes
14047           else
14048           # We have old collect2
14049           hardcode_direct_F77=unsupported
14050           # It fails to find uninstalled libraries when the uninstalled
14051           # path is not listed in the libpath.  Setting hardcode_minus_L
14052           # to unsupported forces relinking
14053           hardcode_minus_L_F77=yes
14054           hardcode_libdir_flag_spec_F77='-L$libdir'
14055           hardcode_libdir_separator_F77=
14056           fi
14057         esac
14058         shared_flag='-shared'
14059       else
14060         # not using gcc
14061         if test "$host_cpu" = ia64; then
14062         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14063         # chokes on -Wl,-G. The following line is correct:
14064           shared_flag='-G'
14065         else
14066         if test "$aix_use_runtimelinking" = yes; then
14067             shared_flag='${wl}-G'
14068           else
14069             shared_flag='${wl}-bM:SRE'
14070         fi
14071         fi
14072       fi
14073
14074       # It seems that -bexpall does not export symbols beginning with
14075       # underscore (_), so it is better to generate a list of symbols to export.
14076       always_export_symbols_F77=yes
14077       if test "$aix_use_runtimelinking" = yes; then
14078         # Warning - without using the other runtime loading flags (-brtl),
14079         # -berok will link without error, but may produce a broken library.
14080         allow_undefined_flag_F77='-berok'
14081        # Determine the default libpath from the value encoded in an empty executable.
14082        cat >conftest.$ac_ext <<_ACEOF
14083       program main
14084
14085       end
14086 _ACEOF
14087 rm -f conftest.$ac_objext conftest$ac_exeext
14088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14089   (eval $ac_link) 2>conftest.er1
14090   ac_status=$?
14091   grep -v '^ *+' conftest.er1 >conftest.err
14092   rm -f conftest.er1
14093   cat conftest.err >&5
14094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095   (exit $ac_status); } &&
14096          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
14097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14098   (eval $ac_try) 2>&5
14099   ac_status=$?
14100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101   (exit $ac_status); }; } &&
14102          { ac_try='test -s conftest$ac_exeext'
14103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14104   (eval $ac_try) 2>&5
14105   ac_status=$?
14106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107   (exit $ac_status); }; }; then
14108
14109 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14110 }'`
14111 # Check for a 64-bit object if we didn't find anything.
14112 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; }
14113 }'`; fi
14114 else
14115   echo "$as_me: failed program was:" >&5
14116 sed 's/^/| /' conftest.$ac_ext >&5
14117
14118 fi
14119 rm -f conftest.err conftest.$ac_objext \
14120       conftest$ac_exeext conftest.$ac_ext
14121 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14122
14123        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14124         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14125        else
14126         if test "$host_cpu" = ia64; then
14127           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14128           allow_undefined_flag_F77="-z nodefs"
14129           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14130         else
14131          # Determine the default libpath from the value encoded in an empty executable.
14132          cat >conftest.$ac_ext <<_ACEOF
14133       program main
14134
14135       end
14136 _ACEOF
14137 rm -f conftest.$ac_objext conftest$ac_exeext
14138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14139   (eval $ac_link) 2>conftest.er1
14140   ac_status=$?
14141   grep -v '^ *+' conftest.er1 >conftest.err
14142   rm -f conftest.er1
14143   cat conftest.err >&5
14144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145   (exit $ac_status); } &&
14146          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
14147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14148   (eval $ac_try) 2>&5
14149   ac_status=$?
14150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151   (exit $ac_status); }; } &&
14152          { ac_try='test -s conftest$ac_exeext'
14153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14154   (eval $ac_try) 2>&5
14155   ac_status=$?
14156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157   (exit $ac_status); }; }; then
14158
14159 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14160 }'`
14161 # Check for a 64-bit object if we didn't find anything.
14162 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; }
14163 }'`; fi
14164 else
14165   echo "$as_me: failed program was:" >&5
14166 sed 's/^/| /' conftest.$ac_ext >&5
14167
14168 fi
14169 rm -f conftest.err conftest.$ac_objext \
14170       conftest$ac_exeext conftest.$ac_ext
14171 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14172
14173          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14174           # Warning - without using the other run time loading flags,
14175           # -berok will link without error, but may produce a broken library.
14176           no_undefined_flag_F77=' ${wl}-bernotok'
14177           allow_undefined_flag_F77=' ${wl}-berok'
14178           # -bexpall does not export symbols beginning with underscore (_)
14179           always_export_symbols_F77=yes
14180           # Exported symbols can be pulled into shared objects from archives
14181           whole_archive_flag_spec_F77=' '
14182           archive_cmds_need_lc_F77=yes
14183           # This is similar to how AIX traditionally builds it's shared libraries.
14184           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14185         fi
14186       fi
14187       ;;
14188
14189     amigaos*)
14190       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)'
14191       hardcode_libdir_flag_spec_F77='-L$libdir'
14192       hardcode_minus_L_F77=yes
14193       # see comment about different semantics on the GNU ld section
14194       ld_shlibs_F77=no
14195       ;;
14196
14197     bsdi4*)
14198       export_dynamic_flag_spec_F77=-rdynamic
14199       ;;
14200
14201     cygwin* | mingw* | pw32*)
14202       # When not using gcc, we currently assume that we are using
14203       # Microsoft Visual C++.
14204       # hardcode_libdir_flag_spec is actually meaningless, as there is
14205       # no search path for DLLs.
14206       hardcode_libdir_flag_spec_F77=' '
14207       allow_undefined_flag_F77=unsupported
14208       # Tell ltmain to make .lib files, not .a files.
14209       libext=lib
14210       # Tell ltmain to make .dll files, not .so files.
14211       shrext_cmds=".dll"
14212       # FIXME: Setting linknames here is a bad hack.
14213       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14214       # The linker will automatically build a .lib file if we build a DLL.
14215       old_archive_From_new_cmds_F77='true'
14216       # FIXME: Should let the user specify the lib program.
14217       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14218       fix_srcfile_path='`cygpath -w "$srcfile"`'
14219       enable_shared_with_static_runtimes_F77=yes
14220       ;;
14221
14222     darwin* | rhapsody*)
14223     if test "$GXX" = yes ; then
14224       archive_cmds_need_lc_F77=no
14225       case "$host_os" in
14226       rhapsody* | darwin1.[012])
14227         allow_undefined_flag_F77='-undefined suppress'
14228         ;;
14229       *) # Darwin 1.3 on
14230       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14231         allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14232       else
14233         case ${MACOSX_DEPLOYMENT_TARGET} in
14234           10.[012])
14235             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14236             ;;
14237           10.*)
14238             allow_undefined_flag_F77='-undefined dynamic_lookup'
14239             ;;
14240         esac
14241       fi
14242         ;;
14243       esac
14244         lt_int_apple_cc_single_mod=no
14245         output_verbose_link_cmd='echo'
14246         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14247           lt_int_apple_cc_single_mod=yes
14248         fi
14249         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14250           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14251         else
14252         archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
14253       fi
14254       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14255       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14256         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14257           archive_expsym_cmds_F77='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}'
14258         else
14259           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
14260         fi
14261           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}'
14262       hardcode_direct_F77=no
14263       hardcode_automatic_F77=yes
14264       hardcode_shlibpath_var_F77=unsupported
14265       whole_archive_flag_spec_F77='-all_load $convenience'
14266       link_all_deplibs_F77=yes
14267     else
14268       ld_shlibs_F77=no
14269     fi
14270       ;;
14271
14272     dgux*)
14273       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14274       hardcode_libdir_flag_spec_F77='-L$libdir'
14275       hardcode_shlibpath_var_F77=no
14276       ;;
14277
14278     freebsd1*)
14279       ld_shlibs_F77=no
14280       ;;
14281
14282     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14283     # support.  Future versions do this automatically, but an explicit c++rt0.o
14284     # does not break anything, and helps significantly (at the cost of a little
14285     # extra space).
14286     freebsd2.2*)
14287       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14288       hardcode_libdir_flag_spec_F77='-R$libdir'
14289       hardcode_direct_F77=yes
14290       hardcode_shlibpath_var_F77=no
14291       ;;
14292
14293     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14294     freebsd2*)
14295       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14296       hardcode_direct_F77=yes
14297       hardcode_minus_L_F77=yes
14298       hardcode_shlibpath_var_F77=no
14299       ;;
14300
14301     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14302     freebsd* | kfreebsd*-gnu)
14303       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14304       hardcode_libdir_flag_spec_F77='-R$libdir'
14305       hardcode_direct_F77=yes
14306       hardcode_shlibpath_var_F77=no
14307       ;;
14308
14309     hpux9*)
14310       if test "$GCC" = yes; then
14311         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'
14312       else
14313         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'
14314       fi
14315       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14316       hardcode_libdir_separator_F77=:
14317       hardcode_direct_F77=yes
14318
14319       # hardcode_minus_L: Not really in the search PATH,
14320       # but as the default location of the library.
14321       hardcode_minus_L_F77=yes
14322       export_dynamic_flag_spec_F77='${wl}-E'
14323       ;;
14324
14325     hpux10* | hpux11*)
14326       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14327         case "$host_cpu" in
14328         hppa*64*|ia64*)
14329           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14330           ;;
14331         *)
14332           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14333           ;;
14334         esac
14335       else
14336         case "$host_cpu" in
14337         hppa*64*|ia64*)
14338           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14339           ;;
14340         *)
14341           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14342           ;;
14343         esac
14344       fi
14345       if test "$with_gnu_ld" = no; then
14346         case "$host_cpu" in
14347         hppa*64*)
14348           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14349           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14350           hardcode_libdir_separator_F77=:
14351           hardcode_direct_F77=no
14352           hardcode_shlibpath_var_F77=no
14353           ;;
14354         ia64*)
14355           hardcode_libdir_flag_spec_F77='-L$libdir'
14356           hardcode_direct_F77=no
14357           hardcode_shlibpath_var_F77=no
14358
14359           # hardcode_minus_L: Not really in the search PATH,
14360           # but as the default location of the library.
14361           hardcode_minus_L_F77=yes
14362           ;;
14363         *)
14364           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14365           hardcode_libdir_separator_F77=:
14366           hardcode_direct_F77=yes
14367           export_dynamic_flag_spec_F77='${wl}-E'
14368
14369           # hardcode_minus_L: Not really in the search PATH,
14370           # but as the default location of the library.
14371           hardcode_minus_L_F77=yes
14372           ;;
14373         esac
14374       fi
14375       ;;
14376
14377     irix5* | irix6* | nonstopux*)
14378       if test "$GCC" = yes; then
14379         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'
14380       else
14381         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'
14382         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14383       fi
14384       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14385       hardcode_libdir_separator_F77=:
14386       link_all_deplibs_F77=yes
14387       ;;
14388
14389     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14390       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14391         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14392       else
14393         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14394       fi
14395       hardcode_libdir_flag_spec_F77='-R$libdir'
14396       hardcode_direct_F77=yes
14397       hardcode_shlibpath_var_F77=no
14398       ;;
14399
14400     newsos6)
14401       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14402       hardcode_direct_F77=yes
14403       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14404       hardcode_libdir_separator_F77=:
14405       hardcode_shlibpath_var_F77=no
14406       ;;
14407
14408     openbsd*)
14409       hardcode_direct_F77=yes
14410       hardcode_shlibpath_var_F77=no
14411       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14412         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14413         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14414         export_dynamic_flag_spec_F77='${wl}-E'
14415       else
14416        case $host_os in
14417          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14418            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14419            hardcode_libdir_flag_spec_F77='-R$libdir'
14420            ;;
14421          *)
14422            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14423            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14424            ;;
14425        esac
14426       fi
14427       ;;
14428
14429     os2*)
14430       hardcode_libdir_flag_spec_F77='-L$libdir'
14431       hardcode_minus_L_F77=yes
14432       allow_undefined_flag_F77=unsupported
14433       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'
14434       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14435       ;;
14436
14437     osf3*)
14438       if test "$GCC" = yes; then
14439         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14440         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'
14441       else
14442         allow_undefined_flag_F77=' -expect_unresolved \*'
14443         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'
14444       fi
14445       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14446       hardcode_libdir_separator_F77=:
14447       ;;
14448
14449     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14450       if test "$GCC" = yes; then
14451         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14452         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'
14453         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14454       else
14455         allow_undefined_flag_F77=' -expect_unresolved \*'
14456         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'
14457         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~
14458         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14459
14460         # Both c and cxx compiler support -rpath directly
14461         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14462       fi
14463       hardcode_libdir_separator_F77=:
14464       ;;
14465
14466     sco3.2v5*)
14467       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14468       hardcode_shlibpath_var_F77=no
14469       export_dynamic_flag_spec_F77='${wl}-Bexport'
14470       runpath_var=LD_RUN_PATH
14471       hardcode_runpath_var=yes
14472       ;;
14473
14474     solaris*)
14475       no_undefined_flag_F77=' -z text'
14476       if test "$GCC" = yes; then
14477         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14478         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14479           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14480       else
14481         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14482         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14483         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14484       fi
14485       hardcode_libdir_flag_spec_F77='-R$libdir'
14486       hardcode_shlibpath_var_F77=no
14487       case $host_os in
14488       solaris2.[0-5] | solaris2.[0-5].*) ;;
14489       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14490         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14491       esac
14492       link_all_deplibs_F77=yes
14493       ;;
14494
14495     sunos4*)
14496       if test "x$host_vendor" = xsequent; then
14497         # Use $CC to link under sequent, because it throws in some extra .o
14498         # files that make .init and .fini sections work.
14499         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14500       else
14501         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14502       fi
14503       hardcode_libdir_flag_spec_F77='-L$libdir'
14504       hardcode_direct_F77=yes
14505       hardcode_minus_L_F77=yes
14506       hardcode_shlibpath_var_F77=no
14507       ;;
14508
14509     sysv4)
14510       case $host_vendor in
14511         sni)
14512           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14513           hardcode_direct_F77=yes # is this really true???
14514         ;;
14515         siemens)
14516           ## LD is ld it makes a PLAMLIB
14517           ## CC just makes a GrossModule.
14518           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14519           reload_cmds_F77='$CC -r -o $output$reload_objs'
14520           hardcode_direct_F77=no
14521         ;;
14522         motorola)
14523           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14524           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14525         ;;
14526       esac
14527       runpath_var='LD_RUN_PATH'
14528       hardcode_shlibpath_var_F77=no
14529       ;;
14530
14531     sysv4.3*)
14532       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14533       hardcode_shlibpath_var_F77=no
14534       export_dynamic_flag_spec_F77='-Bexport'
14535       ;;
14536
14537     sysv4*MP*)
14538       if test -d /usr/nec; then
14539         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14540         hardcode_shlibpath_var_F77=no
14541         runpath_var=LD_RUN_PATH
14542         hardcode_runpath_var=yes
14543         ld_shlibs_F77=yes
14544       fi
14545       ;;
14546
14547     sysv4.2uw2*)
14548       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14549       hardcode_direct_F77=yes
14550       hardcode_minus_L_F77=no
14551       hardcode_shlibpath_var_F77=no
14552       hardcode_runpath_var=yes
14553       runpath_var=LD_RUN_PATH
14554       ;;
14555
14556    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14557       no_undefined_flag_F77='${wl}-z ${wl}text'
14558       if test "$GCC" = yes; then
14559         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14560       else
14561         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14562       fi
14563       runpath_var='LD_RUN_PATH'
14564       hardcode_shlibpath_var_F77=no
14565       ;;
14566
14567     sysv5*)
14568       no_undefined_flag_F77=' -z text'
14569       # $CC -shared without GNU ld will not create a library from C++
14570       # object files and a static libstdc++, better avoid it by now
14571       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14572       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14573                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14574       hardcode_libdir_flag_spec_F77=
14575       hardcode_shlibpath_var_F77=no
14576       runpath_var='LD_RUN_PATH'
14577       ;;
14578
14579     uts4*)
14580       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14581       hardcode_libdir_flag_spec_F77='-L$libdir'
14582       hardcode_shlibpath_var_F77=no
14583       ;;
14584
14585     *)
14586       ld_shlibs_F77=no
14587       ;;
14588     esac
14589   fi
14590
14591 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14592 echo "${ECHO_T}$ld_shlibs_F77" >&6
14593 test "$ld_shlibs_F77" = no && can_build_shared=no
14594
14595 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14596 if test "$GCC" = yes; then
14597   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14598 fi
14599
14600 #
14601 # Do we need to explicitly link libc?
14602 #
14603 case "x$archive_cmds_need_lc_F77" in
14604 x|xyes)
14605   # Assume -lc should be added
14606   archive_cmds_need_lc_F77=yes
14607
14608   if test "$enable_shared" = yes && test "$GCC" = yes; then
14609     case $archive_cmds_F77 in
14610     *'~'*)
14611       # FIXME: we may have to deal with multi-command sequences.
14612       ;;
14613     '$CC '*)
14614       # Test whether the compiler implicitly links with -lc since on some
14615       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14616       # to ld, don't add -lc before -lgcc.
14617       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14618 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14619       $rm conftest*
14620       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14621
14622       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14623   (eval $ac_compile) 2>&5
14624   ac_status=$?
14625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626   (exit $ac_status); } 2>conftest.err; then
14627         soname=conftest
14628         lib=conftest
14629         libobjs=conftest.$ac_objext
14630         deplibs=
14631         wl=$lt_prog_compiler_wl_F77
14632         compiler_flags=-v
14633         linker_flags=-v
14634         verstring=
14635         output_objdir=.
14636         libname=conftest
14637         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14638         allow_undefined_flag_F77=
14639         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14640   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14641   ac_status=$?
14642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643   (exit $ac_status); }
14644         then
14645           archive_cmds_need_lc_F77=no
14646         else
14647           archive_cmds_need_lc_F77=yes
14648         fi
14649         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14650       else
14651         cat conftest.err 1>&5
14652       fi
14653       $rm conftest*
14654       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14655 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14656       ;;
14657     esac
14658   fi
14659   ;;
14660 esac
14661
14662 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14663 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14664 library_names_spec=
14665 libname_spec='lib$name'
14666 soname_spec=
14667 shrext_cmds=".so"
14668 postinstall_cmds=
14669 postuninstall_cmds=
14670 finish_cmds=
14671 finish_eval=
14672 shlibpath_var=
14673 shlibpath_overrides_runpath=unknown
14674 version_type=none
14675 dynamic_linker="$host_os ld.so"
14676 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14677 if test "$GCC" = yes; then
14678   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14679   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14680     # if the path contains ";" then we assume it to be the separator
14681     # otherwise default to the standard path separator (i.e. ":") - it is
14682     # assumed that no part of a normal pathname contains ";" but that should
14683     # okay in the real world where ";" in dirpaths is itself problematic.
14684     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14685   else
14686     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14687   fi
14688 else
14689   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14690 fi
14691 need_lib_prefix=unknown
14692 hardcode_into_libs=no
14693
14694 # when you set need_version to no, make sure it does not cause -set_version
14695 # flags to be left without arguments
14696 need_version=unknown
14697
14698 case $host_os in
14699 aix3*)
14700   version_type=linux
14701   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14702   shlibpath_var=LIBPATH
14703
14704   # AIX 3 has no versioning support, so we append a major version to the name.
14705   soname_spec='${libname}${release}${shared_ext}$major'
14706   ;;
14707
14708 aix4* | aix5*)
14709   version_type=linux
14710   need_lib_prefix=no
14711   need_version=no
14712   hardcode_into_libs=yes
14713   if test "$host_cpu" = ia64; then
14714     # AIX 5 supports IA64
14715     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14716     shlibpath_var=LD_LIBRARY_PATH
14717   else
14718     # With GCC up to 2.95.x, collect2 would create an import file
14719     # for dependence libraries.  The import file would start with
14720     # the line `#! .'.  This would cause the generated library to
14721     # depend on `.', always an invalid library.  This was fixed in
14722     # development snapshots of GCC prior to 3.0.
14723     case $host_os in
14724       aix4 | aix4.[01] | aix4.[01].*)
14725       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14726            echo ' yes '
14727            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14728         :
14729       else
14730         can_build_shared=no
14731       fi
14732       ;;
14733     esac
14734     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14735     # soname into executable. Probably we can add versioning support to
14736     # collect2, so additional links can be useful in future.
14737     if test "$aix_use_runtimelinking" = yes; then
14738       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14739       # instead of lib<name>.a to let people know that these are not
14740       # typical AIX shared libraries.
14741       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14742     else
14743       # We preserve .a as extension for shared libraries through AIX4.2
14744       # and later when we are not doing run time linking.
14745       library_names_spec='${libname}${release}.a $libname.a'
14746       soname_spec='${libname}${release}${shared_ext}$major'
14747     fi
14748     shlibpath_var=LIBPATH
14749   fi
14750   ;;
14751
14752 amigaos*)
14753   library_names_spec='$libname.ixlibrary $libname.a'
14754   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14755   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'
14756   ;;
14757
14758 beos*)
14759   library_names_spec='${libname}${shared_ext}'
14760   dynamic_linker="$host_os ld.so"
14761   shlibpath_var=LIBRARY_PATH
14762   ;;
14763
14764 bsdi4*)
14765   version_type=linux
14766   need_version=no
14767   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14768   soname_spec='${libname}${release}${shared_ext}$major'
14769   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14770   shlibpath_var=LD_LIBRARY_PATH
14771   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14772   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14773   # the default ld.so.conf also contains /usr/contrib/lib and
14774   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14775   # libtool to hard-code these into programs
14776   ;;
14777
14778 cygwin* | mingw* | pw32*)
14779   version_type=windows
14780   shrext_cmds=".dll"
14781   need_version=no
14782   need_lib_prefix=no
14783
14784   case $GCC,$host_os in
14785   yes,cygwin* | yes,mingw* | yes,pw32*)
14786     library_names_spec='$libname.dll.a'
14787     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14788     postinstall_cmds='base_file=`basename \${file}`~
14789       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14790       dldir=$destdir/`dirname \$dlpath`~
14791       test -d \$dldir || mkdir -p \$dldir~
14792       $install_prog $dir/$dlname \$dldir/$dlname'
14793     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14794       dlpath=$dir/\$dldll~
14795        $rm \$dlpath'
14796     shlibpath_overrides_runpath=yes
14797
14798     case $host_os in
14799     cygwin*)
14800       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14801       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14802       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14803       ;;
14804     mingw*)
14805       # MinGW DLLs use traditional 'lib' prefix
14806       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14807       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14808       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14809         # It is most probably a Windows format PATH printed by
14810         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14811         # path with ; separators, and with drive letters. We can handle the
14812         # drive letters (cygwin fileutils understands them), so leave them,
14813         # especially as we might pass files found there to a mingw objdump,
14814         # which wouldn't understand a cygwinified path. Ahh.
14815         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14816       else
14817         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14818       fi
14819       ;;
14820     pw32*)
14821       # pw32 DLLs use 'pw' prefix rather than 'lib'
14822       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14823       ;;
14824     esac
14825     ;;
14826
14827   *)
14828     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14829     ;;
14830   esac
14831   dynamic_linker='Win32 ld.exe'
14832   # FIXME: first we should search . and the directory the executable is in
14833   shlibpath_var=PATH
14834   ;;
14835
14836 darwin* | rhapsody*)
14837   dynamic_linker="$host_os dyld"
14838   version_type=darwin
14839   need_lib_prefix=no
14840   need_version=no
14841   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14842   soname_spec='${libname}${release}${major}$shared_ext'
14843   shlibpath_overrides_runpath=yes
14844   shlibpath_var=DYLD_LIBRARY_PATH
14845   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14846   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14847   if test "$GCC" = yes; then
14848     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"`
14849   else
14850     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14851   fi
14852   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14853   ;;
14854
14855 dgux*)
14856   version_type=linux
14857   need_lib_prefix=no
14858   need_version=no
14859   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14860   soname_spec='${libname}${release}${shared_ext}$major'
14861   shlibpath_var=LD_LIBRARY_PATH
14862   ;;
14863
14864 freebsd1*)
14865   dynamic_linker=no
14866   ;;
14867
14868 kfreebsd*-gnu)
14869   version_type=linux
14870   need_lib_prefix=no
14871   need_version=no
14872   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14873   soname_spec='${libname}${release}${shared_ext}$major'
14874   shlibpath_var=LD_LIBRARY_PATH
14875   shlibpath_overrides_runpath=no
14876   hardcode_into_libs=yes
14877   dynamic_linker='GNU ld.so'
14878   ;;
14879
14880 freebsd*)
14881   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14882   version_type=freebsd-$objformat
14883   case $version_type in
14884     freebsd-elf*)
14885       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14886       need_version=no
14887       need_lib_prefix=no
14888       ;;
14889     freebsd-*)
14890       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14891       need_version=yes
14892       ;;
14893   esac
14894   shlibpath_var=LD_LIBRARY_PATH
14895   case $host_os in
14896   freebsd2*)
14897     shlibpath_overrides_runpath=yes
14898     ;;
14899   freebsd3.01* | freebsdelf3.01*)
14900     shlibpath_overrides_runpath=yes
14901     hardcode_into_libs=yes
14902     ;;
14903   *) # from 3.2 on
14904     shlibpath_overrides_runpath=no
14905     hardcode_into_libs=yes
14906     ;;
14907   esac
14908   ;;
14909
14910 gnu*)
14911   version_type=linux
14912   need_lib_prefix=no
14913   need_version=no
14914   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14915   soname_spec='${libname}${release}${shared_ext}$major'
14916   shlibpath_var=LD_LIBRARY_PATH
14917   hardcode_into_libs=yes
14918   ;;
14919
14920 hpux9* | hpux10* | hpux11*)
14921   # Give a soname corresponding to the major version so that dld.sl refuses to
14922   # link against other versions.
14923   version_type=sunos
14924   need_lib_prefix=no
14925   need_version=no
14926   case "$host_cpu" in
14927   ia64*)
14928     shrext_cmds='.so'
14929     hardcode_into_libs=yes
14930     dynamic_linker="$host_os dld.so"
14931     shlibpath_var=LD_LIBRARY_PATH
14932     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14933     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14934     soname_spec='${libname}${release}${shared_ext}$major'
14935     if test "X$HPUX_IA64_MODE" = X32; then
14936       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14937     else
14938       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14939     fi
14940     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14941     ;;
14942    hppa*64*)
14943      shrext_cmds='.sl'
14944      hardcode_into_libs=yes
14945      dynamic_linker="$host_os dld.sl"
14946      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14947      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14948      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14949      soname_spec='${libname}${release}${shared_ext}$major'
14950      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14951      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14952      ;;
14953    *)
14954     shrext_cmds='.sl'
14955     dynamic_linker="$host_os dld.sl"
14956     shlibpath_var=SHLIB_PATH
14957     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14958     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14959     soname_spec='${libname}${release}${shared_ext}$major'
14960     ;;
14961   esac
14962   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14963   postinstall_cmds='chmod 555 $lib'
14964   ;;
14965
14966 irix5* | irix6* | nonstopux*)
14967   case $host_os in
14968     nonstopux*) version_type=nonstopux ;;
14969     *)
14970         if test "$lt_cv_prog_gnu_ld" = yes; then
14971                 version_type=linux
14972         else
14973                 version_type=irix
14974         fi ;;
14975   esac
14976   need_lib_prefix=no
14977   need_version=no
14978   soname_spec='${libname}${release}${shared_ext}$major'
14979   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14980   case $host_os in
14981   irix5* | nonstopux*)
14982     libsuff= shlibsuff=
14983     ;;
14984   *)
14985     case $LD in # libtool.m4 will add one of these switches to LD
14986     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14987       libsuff= shlibsuff= libmagic=32-bit;;
14988     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14989       libsuff=32 shlibsuff=N32 libmagic=N32;;
14990     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14991       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14992     *) libsuff= shlibsuff= libmagic=never-match;;
14993     esac
14994     ;;
14995   esac
14996   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14997   shlibpath_overrides_runpath=no
14998   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14999   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15000   hardcode_into_libs=yes
15001   ;;
15002
15003 # No shared lib support for Linux oldld, aout, or coff.
15004 linux*oldld* | linux*aout* | linux*coff*)
15005   dynamic_linker=no
15006   ;;
15007
15008 # This must be Linux ELF.
15009 linux*)
15010   version_type=linux
15011   need_lib_prefix=no
15012   need_version=no
15013   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15014   soname_spec='${libname}${release}${shared_ext}$major'
15015   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15016   shlibpath_var=LD_LIBRARY_PATH
15017   shlibpath_overrides_runpath=no
15018   # This implies no fast_install, which is unacceptable.
15019   # Some rework will be needed to allow for fast_install
15020   # before this can be enabled.
15021   hardcode_into_libs=yes
15022
15023   # Append ld.so.conf contents to the search path
15024   if test -f /etc/ld.so.conf; then
15025     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
15026     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15027   fi
15028
15029   # We used to test for /lib/ld.so.1 and disable shared libraries on
15030   # powerpc, because MkLinux only supported shared libraries with the
15031   # GNU dynamic linker.  Since this was broken with cross compilers,
15032   # most powerpc-linux boxes support dynamic linking these days and
15033   # people can always --disable-shared, the test was removed, and we
15034   # assume the GNU/Linux dynamic linker is in use.
15035   dynamic_linker='GNU/Linux ld.so'
15036   ;;
15037
15038 netbsdelf*-gnu)
15039   version_type=linux
15040   need_lib_prefix=no
15041   need_version=no
15042   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15043   soname_spec='${libname}${release}${shared_ext}$major'
15044   shlibpath_var=LD_LIBRARY_PATH
15045   shlibpath_overrides_runpath=no
15046   hardcode_into_libs=yes
15047   dynamic_linker='NetBSD ld.elf_so'
15048   ;;
15049
15050 knetbsd*-gnu)
15051   version_type=linux
15052   need_lib_prefix=no
15053   need_version=no
15054   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15055   soname_spec='${libname}${release}${shared_ext}$major'
15056   shlibpath_var=LD_LIBRARY_PATH
15057   shlibpath_overrides_runpath=no
15058   hardcode_into_libs=yes
15059   dynamic_linker='GNU ld.so'
15060   ;;
15061
15062 netbsd*)
15063   version_type=sunos
15064   need_lib_prefix=no
15065   need_version=no
15066   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15067     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15068     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15069     dynamic_linker='NetBSD (a.out) ld.so'
15070   else
15071     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15072     soname_spec='${libname}${release}${shared_ext}$major'
15073     dynamic_linker='NetBSD ld.elf_so'
15074   fi
15075   shlibpath_var=LD_LIBRARY_PATH
15076   shlibpath_overrides_runpath=yes
15077   hardcode_into_libs=yes
15078   ;;
15079
15080 newsos6)
15081   version_type=linux
15082   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15083   shlibpath_var=LD_LIBRARY_PATH
15084   shlibpath_overrides_runpath=yes
15085   ;;
15086
15087 nto-qnx*)
15088   version_type=linux
15089   need_lib_prefix=no
15090   need_version=no
15091   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15092   soname_spec='${libname}${release}${shared_ext}$major'
15093   shlibpath_var=LD_LIBRARY_PATH
15094   shlibpath_overrides_runpath=yes
15095   ;;
15096
15097 openbsd*)
15098   version_type=sunos
15099   need_lib_prefix=no
15100   need_version=yes
15101   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15102   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15103   shlibpath_var=LD_LIBRARY_PATH
15104   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15105     case $host_os in
15106       openbsd2.[89] | openbsd2.[89].*)
15107         shlibpath_overrides_runpath=no
15108         ;;
15109       *)
15110         shlibpath_overrides_runpath=yes
15111         ;;
15112       esac
15113   else
15114     shlibpath_overrides_runpath=yes
15115   fi
15116   ;;
15117
15118 os2*)
15119   libname_spec='$name'
15120   shrext_cmds=".dll"
15121   need_lib_prefix=no
15122   library_names_spec='$libname${shared_ext} $libname.a'
15123   dynamic_linker='OS/2 ld.exe'
15124   shlibpath_var=LIBPATH
15125   ;;
15126
15127 osf3* | osf4* | osf5*)
15128   version_type=osf
15129   need_lib_prefix=no
15130   need_version=no
15131   soname_spec='${libname}${release}${shared_ext}$major'
15132   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15133   shlibpath_var=LD_LIBRARY_PATH
15134   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15135   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15136   ;;
15137
15138 sco3.2v5*)
15139   version_type=osf
15140   soname_spec='${libname}${release}${shared_ext}$major'
15141   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15142   shlibpath_var=LD_LIBRARY_PATH
15143   ;;
15144
15145 solaris*)
15146   version_type=linux
15147   need_lib_prefix=no
15148   need_version=no
15149   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15150   soname_spec='${libname}${release}${shared_ext}$major'
15151   shlibpath_var=LD_LIBRARY_PATH
15152   shlibpath_overrides_runpath=yes
15153   hardcode_into_libs=yes
15154   # ldd complains unless libraries are executable
15155   postinstall_cmds='chmod +x $lib'
15156   ;;
15157
15158 sunos4*)
15159   version_type=sunos
15160   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15161   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15162   shlibpath_var=LD_LIBRARY_PATH
15163   shlibpath_overrides_runpath=yes
15164   if test "$with_gnu_ld" = yes; then
15165     need_lib_prefix=no
15166   fi
15167   need_version=yes
15168   ;;
15169
15170 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15171   version_type=linux
15172   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15173   soname_spec='${libname}${release}${shared_ext}$major'
15174   shlibpath_var=LD_LIBRARY_PATH
15175   case $host_vendor in
15176     sni)
15177       shlibpath_overrides_runpath=no
15178       need_lib_prefix=no
15179       export_dynamic_flag_spec='${wl}-Blargedynsym'
15180       runpath_var=LD_RUN_PATH
15181       ;;
15182     siemens)
15183       need_lib_prefix=no
15184       ;;
15185     motorola)
15186       need_lib_prefix=no
15187       need_version=no
15188       shlibpath_overrides_runpath=no
15189       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15190       ;;
15191   esac
15192   ;;
15193
15194 sysv4*MP*)
15195   if test -d /usr/nec ;then
15196     version_type=linux
15197     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15198     soname_spec='$libname${shared_ext}.$major'
15199     shlibpath_var=LD_LIBRARY_PATH
15200   fi
15201   ;;
15202
15203 uts4*)
15204   version_type=linux
15205   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15206   soname_spec='${libname}${release}${shared_ext}$major'
15207   shlibpath_var=LD_LIBRARY_PATH
15208   ;;
15209
15210 *)
15211   dynamic_linker=no
15212   ;;
15213 esac
15214 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15215 echo "${ECHO_T}$dynamic_linker" >&6
15216 test "$dynamic_linker" = no && can_build_shared=no
15217
15218 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15219 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15220 hardcode_action_F77=
15221 if test -n "$hardcode_libdir_flag_spec_F77" || \
15222    test -n "$runpath_var F77" || \
15223    test "X$hardcode_automatic_F77"="Xyes" ; then
15224
15225   # We can hardcode non-existant directories.
15226   if test "$hardcode_direct_F77" != no &&
15227      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15228      # have to relink, otherwise we might link with an installed library
15229      # when we should be linking with a yet-to-be-installed one
15230      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15231      test "$hardcode_minus_L_F77" != no; then
15232     # Linking always hardcodes the temporary library directory.
15233     hardcode_action_F77=relink
15234   else
15235     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15236     hardcode_action_F77=immediate
15237   fi
15238 else
15239   # We cannot hardcode anything, or else we can only hardcode existing
15240   # directories.
15241   hardcode_action_F77=unsupported
15242 fi
15243 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15244 echo "${ECHO_T}$hardcode_action_F77" >&6
15245
15246 if test "$hardcode_action_F77" = relink; then
15247   # Fast installation is not supported
15248   enable_fast_install=no
15249 elif test "$shlibpath_overrides_runpath" = yes ||
15250      test "$enable_shared" = no; then
15251   # Fast installation is not necessary
15252   enable_fast_install=needless
15253 fi
15254
15255 striplib=
15256 old_striplib=
15257 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15258 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15259 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15260   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15261   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15262   echo "$as_me:$LINENO: result: yes" >&5
15263 echo "${ECHO_T}yes" >&6
15264 else
15265 # FIXME - insert some real tests, host_os isn't really good enough
15266   case $host_os in
15267    darwin*)
15268        if test -n "$STRIP" ; then
15269          striplib="$STRIP -x"
15270          echo "$as_me:$LINENO: result: yes" >&5
15271 echo "${ECHO_T}yes" >&6
15272        else
15273   echo "$as_me:$LINENO: result: no" >&5
15274 echo "${ECHO_T}no" >&6
15275 fi
15276        ;;
15277    *)
15278   echo "$as_me:$LINENO: result: no" >&5
15279 echo "${ECHO_T}no" >&6
15280     ;;
15281   esac
15282 fi
15283
15284
15285
15286 # The else clause should only fire when bootstrapping the
15287 # libtool distribution, otherwise you forgot to ship ltmain.sh
15288 # with your package, and you will get complaints that there are
15289 # no rules to generate ltmain.sh.
15290 if test -f "$ltmain"; then
15291   # See if we are running on zsh, and set the options which allow our commands through
15292   # without removal of \ escapes.
15293   if test -n "${ZSH_VERSION+set}" ; then
15294     setopt NO_GLOB_SUBST
15295   fi
15296   # Now quote all the things that may contain metacharacters while being
15297   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15298   # variables and quote the copies for generation of the libtool script.
15299   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15300     SED SHELL STRIP \
15301     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15302     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15303     deplibs_check_method reload_flag reload_cmds need_locks \
15304     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15305     lt_cv_sys_global_symbol_to_c_name_address \
15306     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15307     old_postinstall_cmds old_postuninstall_cmds \
15308     compiler_F77 \
15309     CC_F77 \
15310     LD_F77 \
15311     lt_prog_compiler_wl_F77 \
15312     lt_prog_compiler_pic_F77 \
15313     lt_prog_compiler_static_F77 \
15314     lt_prog_compiler_no_builtin_flag_F77 \
15315     export_dynamic_flag_spec_F77 \
15316     thread_safe_flag_spec_F77 \
15317     whole_archive_flag_spec_F77 \
15318     enable_shared_with_static_runtimes_F77 \
15319     old_archive_cmds_F77 \
15320     old_archive_from_new_cmds_F77 \
15321     predep_objects_F77 \
15322     postdep_objects_F77 \
15323     predeps_F77 \
15324     postdeps_F77 \
15325     compiler_lib_search_path_F77 \
15326     archive_cmds_F77 \
15327     archive_expsym_cmds_F77 \
15328     postinstall_cmds_F77 \
15329     postuninstall_cmds_F77 \
15330     old_archive_from_expsyms_cmds_F77 \
15331     allow_undefined_flag_F77 \
15332     no_undefined_flag_F77 \
15333     export_symbols_cmds_F77 \
15334     hardcode_libdir_flag_spec_F77 \
15335     hardcode_libdir_flag_spec_ld_F77 \
15336     hardcode_libdir_separator_F77 \
15337     hardcode_automatic_F77 \
15338     module_cmds_F77 \
15339     module_expsym_cmds_F77 \
15340     lt_cv_prog_compiler_c_o_F77 \
15341     exclude_expsyms_F77 \
15342     include_expsyms_F77; do
15343
15344     case $var in
15345     old_archive_cmds_F77 | \
15346     old_archive_from_new_cmds_F77 | \
15347     archive_cmds_F77 | \
15348     archive_expsym_cmds_F77 | \
15349     module_cmds_F77 | \
15350     module_expsym_cmds_F77 | \
15351     old_archive_from_expsyms_cmds_F77 | \
15352     export_symbols_cmds_F77 | \
15353     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15354     postinstall_cmds | postuninstall_cmds | \
15355     old_postinstall_cmds | old_postuninstall_cmds | \
15356     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15357       # Double-quote double-evaled strings.
15358       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15359       ;;
15360     *)
15361       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15362       ;;
15363     esac
15364   done
15365
15366   case $lt_echo in
15367   *'\$0 --fallback-echo"')
15368     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15369     ;;
15370   esac
15371
15372 cfgfile="$ofile"
15373
15374   cat <<__EOF__ >> "$cfgfile"
15375 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15376
15377 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15378
15379 # Shell to use when invoking shell scripts.
15380 SHELL=$lt_SHELL
15381
15382 # Whether or not to build shared libraries.
15383 build_libtool_libs=$enable_shared
15384
15385 # Whether or not to build static libraries.
15386 build_old_libs=$enable_static
15387
15388 # Whether or not to add -lc for building shared libraries.
15389 build_libtool_need_lc=$archive_cmds_need_lc_F77
15390
15391 # Whether or not to disallow shared libs when runtime libs are static
15392 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15393
15394 # Whether or not to optimize for fast installation.
15395 fast_install=$enable_fast_install
15396
15397 # The host system.
15398 host_alias=$host_alias
15399 host=$host
15400
15401 # An echo program that does not interpret backslashes.
15402 echo=$lt_echo
15403
15404 # The archiver.
15405 AR=$lt_AR
15406 AR_FLAGS=$lt_AR_FLAGS
15407
15408 # A C compiler.
15409 LTCC=$lt_LTCC
15410
15411 # A language-specific compiler.
15412 CC=$lt_compiler_F77
15413
15414 # Is the compiler the GNU C compiler?
15415 with_gcc=$GCC_F77
15416
15417 # An ERE matcher.
15418 EGREP=$lt_EGREP
15419
15420 # The linker used to build libraries.
15421 LD=$lt_LD_F77
15422
15423 # Whether we need hard or soft links.
15424 LN_S=$lt_LN_S
15425
15426 # A BSD-compatible nm program.
15427 NM=$lt_NM
15428
15429 # A symbol stripping program
15430 STRIP=$lt_STRIP
15431
15432 # Used to examine libraries when file_magic_cmd begins "file"
15433 MAGIC_CMD=$MAGIC_CMD
15434
15435 # Used on cygwin: DLL creation program.
15436 DLLTOOL="$DLLTOOL"
15437
15438 # Used on cygwin: object dumper.
15439 OBJDUMP="$OBJDUMP"
15440
15441 # Used on cygwin: assembler.
15442 AS="$AS"
15443
15444 # The name of the directory that contains temporary libtool files.
15445 objdir=$objdir
15446
15447 # How to create reloadable object files.
15448 reload_flag=$lt_reload_flag
15449 reload_cmds=$lt_reload_cmds
15450
15451 # How to pass a linker flag through the compiler.
15452 wl=$lt_lt_prog_compiler_wl_F77
15453
15454 # Object file suffix (normally "o").
15455 objext="$ac_objext"
15456
15457 # Old archive suffix (normally "a").
15458 libext="$libext"
15459
15460 # Shared library suffix (normally ".so").
15461 shrext_cmds='$shrext_cmds'
15462
15463 # Executable file suffix (normally "").
15464 exeext="$exeext"
15465
15466 # Additional compiler flags for building library objects.
15467 pic_flag=$lt_lt_prog_compiler_pic_F77
15468 pic_mode=$pic_mode
15469
15470 # What is the maximum length of a command?
15471 max_cmd_len=$lt_cv_sys_max_cmd_len
15472
15473 # Does compiler simultaneously support -c and -o options?
15474 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15475
15476 # Must we lock files when doing compilation ?
15477 need_locks=$lt_need_locks
15478
15479 # Do we need the lib prefix for modules?
15480 need_lib_prefix=$need_lib_prefix
15481
15482 # Do we need a version for libraries?
15483 need_version=$need_version
15484
15485 # Whether dlopen is supported.
15486 dlopen_support=$enable_dlopen
15487
15488 # Whether dlopen of programs is supported.
15489 dlopen_self=$enable_dlopen_self
15490
15491 # Whether dlopen of statically linked programs is supported.
15492 dlopen_self_static=$enable_dlopen_self_static
15493
15494 # Compiler flag to prevent dynamic linking.
15495 link_static_flag=$lt_lt_prog_compiler_static_F77
15496
15497 # Compiler flag to turn off builtin functions.
15498 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15499
15500 # Compiler flag to allow reflexive dlopens.
15501 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15502
15503 # Compiler flag to generate shared objects directly from archives.
15504 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15505
15506 # Compiler flag to generate thread-safe objects.
15507 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15508
15509 # Library versioning type.
15510 version_type=$version_type
15511
15512 # Format of library name prefix.
15513 libname_spec=$lt_libname_spec
15514
15515 # List of archive names.  First name is the real one, the rest are links.
15516 # The last name is the one that the linker finds with -lNAME.
15517 library_names_spec=$lt_library_names_spec
15518
15519 # The coded name of the library, if different from the real name.
15520 soname_spec=$lt_soname_spec
15521
15522 # Commands used to build and install an old-style archive.
15523 RANLIB=$lt_RANLIB
15524 old_archive_cmds=$lt_old_archive_cmds_F77
15525 old_postinstall_cmds=$lt_old_postinstall_cmds
15526 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15527
15528 # Create an old-style archive from a shared archive.
15529 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15530
15531 # Create a temporary old-style archive to link instead of a shared archive.
15532 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15533
15534 # Commands used to build and install a shared archive.
15535 archive_cmds=$lt_archive_cmds_F77
15536 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15537 postinstall_cmds=$lt_postinstall_cmds
15538 postuninstall_cmds=$lt_postuninstall_cmds
15539
15540 # Commands used to build a loadable module (assumed same as above if empty)
15541 module_cmds=$lt_module_cmds_F77
15542 module_expsym_cmds=$lt_module_expsym_cmds_F77
15543
15544 # Commands to strip libraries.
15545 old_striplib=$lt_old_striplib
15546 striplib=$lt_striplib
15547
15548 # Dependencies to place before the objects being linked to create a
15549 # shared library.
15550 predep_objects=$lt_predep_objects_F77
15551
15552 # Dependencies to place after the objects being linked to create a
15553 # shared library.
15554 postdep_objects=$lt_postdep_objects_F77
15555
15556 # Dependencies to place before the objects being linked to create a
15557 # shared library.
15558 predeps=$lt_predeps_F77
15559
15560 # Dependencies to place after the objects being linked to create a
15561 # shared library.
15562 postdeps=$lt_postdeps_F77
15563
15564 # The library search path used internally by the compiler when linking
15565 # a shared library.
15566 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15567
15568 # Method to check whether dependent libraries are shared objects.
15569 deplibs_check_method=$lt_deplibs_check_method
15570
15571 # Command to use when deplibs_check_method == file_magic.
15572 file_magic_cmd=$lt_file_magic_cmd
15573
15574 # Flag that allows shared libraries with undefined symbols to be built.
15575 allow_undefined_flag=$lt_allow_undefined_flag_F77
15576
15577 # Flag that forces no undefined symbols.
15578 no_undefined_flag=$lt_no_undefined_flag_F77
15579
15580 # Commands used to finish a libtool library installation in a directory.
15581 finish_cmds=$lt_finish_cmds
15582
15583 # Same as above, but a single script fragment to be evaled but not shown.
15584 finish_eval=$lt_finish_eval
15585
15586 # Take the output of nm and produce a listing of raw symbols and C names.
15587 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15588
15589 # Transform the output of nm in a proper C declaration
15590 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15591
15592 # Transform the output of nm in a C name address pair
15593 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15594
15595 # This is the shared library runtime path variable.
15596 runpath_var=$runpath_var
15597
15598 # This is the shared library path variable.
15599 shlibpath_var=$shlibpath_var
15600
15601 # Is shlibpath searched before the hard-coded library search path?
15602 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15603
15604 # How to hardcode a shared library path into an executable.
15605 hardcode_action=$hardcode_action_F77
15606
15607 # Whether we should hardcode library paths into libraries.
15608 hardcode_into_libs=$hardcode_into_libs
15609
15610 # Flag to hardcode \$libdir into a binary during linking.
15611 # This must work even if \$libdir does not exist.
15612 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15613
15614 # If ld is used when linking, flag to hardcode \$libdir into
15615 # a binary during linking. This must work even if \$libdir does
15616 # not exist.
15617 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15618
15619 # Whether we need a single -rpath flag with a separated argument.
15620 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15621
15622 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15623 # resulting binary.
15624 hardcode_direct=$hardcode_direct_F77
15625
15626 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15627 # resulting binary.
15628 hardcode_minus_L=$hardcode_minus_L_F77
15629
15630 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15631 # the resulting binary.
15632 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15633
15634 # Set to yes if building a shared library automatically hardcodes DIR into the library
15635 # and all subsequent libraries and executables linked against it.
15636 hardcode_automatic=$hardcode_automatic_F77
15637
15638 # Variables whose values should be saved in libtool wrapper scripts and
15639 # restored at relink time.
15640 variables_saved_for_relink="$variables_saved_for_relink"
15641
15642 # Whether libtool must link a program against all its dependency libraries.
15643 link_all_deplibs=$link_all_deplibs_F77
15644
15645 # Compile-time system search path for libraries
15646 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15647
15648 # Run-time system search path for libraries
15649 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15650
15651 # Fix the shell variable \$srcfile for the compiler.
15652 fix_srcfile_path="$fix_srcfile_path_F77"
15653
15654 # Set to yes if exported symbols are required.
15655 always_export_symbols=$always_export_symbols_F77
15656
15657 # The commands to list exported symbols.
15658 export_symbols_cmds=$lt_export_symbols_cmds_F77
15659
15660 # The commands to extract the exported symbol list from a shared archive.
15661 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15662
15663 # Symbols that should not be listed in the preloaded symbols.
15664 exclude_expsyms=$lt_exclude_expsyms_F77
15665
15666 # Symbols that must always be exported.
15667 include_expsyms=$lt_include_expsyms_F77
15668
15669 # ### END LIBTOOL TAG CONFIG: $tagname
15670
15671 __EOF__
15672
15673
15674 else
15675   # If there is no Makefile yet, we rely on a make rule to execute
15676   # `config.status --recheck' to rerun these tests and create the
15677   # libtool script then.
15678   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15679   if test -f "$ltmain_in"; then
15680     test -f Makefile && make "$ltmain"
15681   fi
15682 fi
15683
15684
15685 ac_ext=c
15686 ac_cpp='$CPP $CPPFLAGS'
15687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15690
15691 CC="$lt_save_CC"
15692
15693         else
15694           tagname=""
15695         fi
15696         ;;
15697
15698       GCJ)
15699         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15700
15701
15702
15703 # Source file extension for Java test sources.
15704 ac_ext=java
15705
15706 # Object file extension for compiled Java test sources.
15707 objext=o
15708 objext_GCJ=$objext
15709
15710 # Code to be used in simple compile tests
15711 lt_simple_compile_test_code="class foo {}\n"
15712
15713 # Code to be used in simple link tests
15714 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15715
15716 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15717
15718 # If no C compiler was specified, use CC.
15719 LTCC=${LTCC-"$CC"}
15720
15721 # Allow CC to be a program name with arguments.
15722 compiler=$CC
15723
15724
15725 # Allow CC to be a program name with arguments.
15726 lt_save_CC="$CC"
15727 CC=${GCJ-"gcj"}
15728 compiler=$CC
15729 compiler_GCJ=$CC
15730
15731 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15732 archive_cmds_need_lc_GCJ=no
15733
15734
15735 lt_prog_compiler_no_builtin_flag_GCJ=
15736
15737 if test "$GCC" = yes; then
15738   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15739
15740
15741 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15742 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15743 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15744   echo $ECHO_N "(cached) $ECHO_C" >&6
15745 else
15746   lt_cv_prog_compiler_rtti_exceptions=no
15747   ac_outfile=conftest.$ac_objext
15748    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15749    lt_compiler_flag="-fno-rtti -fno-exceptions"
15750    # Insert the option either (1) after the last *FLAGS variable, or
15751    # (2) before a word containing "conftest.", or (3) at the end.
15752    # Note that $ac_compile itself does not contain backslashes and begins
15753    # with a dollar sign (not a hyphen), so the echo should work correctly.
15754    # The option is referenced via a variable to avoid confusing sed.
15755    lt_compile=`echo "$ac_compile" | $SED \
15756    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15757    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15758    -e 's:$: $lt_compiler_flag:'`
15759    (eval echo "\"\$as_me:15759: $lt_compile\"" >&5)
15760    (eval "$lt_compile" 2>conftest.err)
15761    ac_status=$?
15762    cat conftest.err >&5
15763    echo "$as_me:15763: \$? = $ac_status" >&5
15764    if (exit $ac_status) && test -s "$ac_outfile"; then
15765      # The compiler can only warn and ignore the option if not recognized
15766      # So say no if there are warnings
15767      if test ! -s conftest.err; then
15768        lt_cv_prog_compiler_rtti_exceptions=yes
15769      fi
15770    fi
15771    $rm conftest*
15772
15773 fi
15774 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15775 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15776
15777 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15778     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15779 else
15780     :
15781 fi
15782
15783 fi
15784
15785 lt_prog_compiler_wl_GCJ=
15786 lt_prog_compiler_pic_GCJ=
15787 lt_prog_compiler_static_GCJ=
15788
15789 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15790 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15791
15792   if test "$GCC" = yes; then
15793     lt_prog_compiler_wl_GCJ='-Wl,'
15794     lt_prog_compiler_static_GCJ='-static'
15795
15796     case $host_os in
15797       aix*)
15798       # All AIX code is PIC.
15799       if test "$host_cpu" = ia64; then
15800         # AIX 5 now supports IA64 processor
15801         lt_prog_compiler_static_GCJ='-Bstatic'
15802       fi
15803       ;;
15804
15805     amigaos*)
15806       # FIXME: we need at least 68020 code to build shared libraries, but
15807       # adding the `-m68020' flag to GCC prevents building anything better,
15808       # like `-m68040'.
15809       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15810       ;;
15811
15812     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15813       # PIC is the default for these OSes.
15814       ;;
15815
15816     mingw* | pw32* | os2*)
15817       # This hack is so that the source file can tell whether it is being
15818       # built for inclusion in a dll (and should export symbols for example).
15819       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15820       ;;
15821
15822     darwin* | rhapsody*)
15823       # PIC is the default on this platform
15824       # Common symbols not allowed in MH_DYLIB files
15825       lt_prog_compiler_pic_GCJ='-fno-common'
15826       ;;
15827
15828     msdosdjgpp*)
15829       # Just because we use GCC doesn't mean we suddenly get shared libraries
15830       # on systems that don't support them.
15831       lt_prog_compiler_can_build_shared_GCJ=no
15832       enable_shared=no
15833       ;;
15834
15835     sysv4*MP*)
15836       if test -d /usr/nec; then
15837         lt_prog_compiler_pic_GCJ=-Kconform_pic
15838       fi
15839       ;;
15840
15841     hpux*)
15842       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15843       # not for PA HP-UX.
15844       case "$host_cpu" in
15845       hppa*64*|ia64*)
15846         # +Z the default
15847         ;;
15848       *)
15849         lt_prog_compiler_pic_GCJ='-fPIC'
15850         ;;
15851       esac
15852       ;;
15853
15854     *)
15855       lt_prog_compiler_pic_GCJ='-fPIC'
15856       ;;
15857     esac
15858   else
15859     # PORTME Check for flag to pass linker flags through the system compiler.
15860     case $host_os in
15861     aix*)
15862       lt_prog_compiler_wl_GCJ='-Wl,'
15863       if test "$host_cpu" = ia64; then
15864         # AIX 5 now supports IA64 processor
15865         lt_prog_compiler_static_GCJ='-Bstatic'
15866       else
15867         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15868       fi
15869       ;;
15870
15871     mingw* | pw32* | os2*)
15872       # This hack is so that the source file can tell whether it is being
15873       # built for inclusion in a dll (and should export symbols for example).
15874       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15875       ;;
15876
15877     hpux9* | hpux10* | hpux11*)
15878       lt_prog_compiler_wl_GCJ='-Wl,'
15879       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15880       # not for PA HP-UX.
15881       case "$host_cpu" in
15882       hppa*64*|ia64*)
15883         # +Z the default
15884         ;;
15885       *)
15886         lt_prog_compiler_pic_GCJ='+Z'
15887         ;;
15888       esac
15889       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15890       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15891       ;;
15892
15893     irix5* | irix6* | nonstopux*)
15894       lt_prog_compiler_wl_GCJ='-Wl,'
15895       # PIC (with -KPIC) is the default.
15896       lt_prog_compiler_static_GCJ='-non_shared'
15897       ;;
15898
15899     newsos6)
15900       lt_prog_compiler_pic_GCJ='-KPIC'
15901       lt_prog_compiler_static_GCJ='-Bstatic'
15902       ;;
15903
15904     linux*)
15905       case $CC in
15906       icc* | ecc*)
15907         lt_prog_compiler_wl_GCJ='-Wl,'
15908         lt_prog_compiler_pic_GCJ='-KPIC'
15909         lt_prog_compiler_static_GCJ='-static'
15910         ;;
15911       ccc*)
15912         lt_prog_compiler_wl_GCJ='-Wl,'
15913         # All Alpha code is PIC.
15914         lt_prog_compiler_static_GCJ='-non_shared'
15915         ;;
15916       esac
15917       ;;
15918
15919     osf3* | osf4* | osf5*)
15920       lt_prog_compiler_wl_GCJ='-Wl,'
15921       # All OSF/1 code is PIC.
15922       lt_prog_compiler_static_GCJ='-non_shared'
15923       ;;
15924
15925     sco3.2v5*)
15926       lt_prog_compiler_pic_GCJ='-Kpic'
15927       lt_prog_compiler_static_GCJ='-dn'
15928       ;;
15929
15930     solaris*)
15931       lt_prog_compiler_wl_GCJ='-Wl,'
15932       lt_prog_compiler_pic_GCJ='-KPIC'
15933       lt_prog_compiler_static_GCJ='-Bstatic'
15934       ;;
15935
15936     sunos4*)
15937       lt_prog_compiler_wl_GCJ='-Qoption ld '
15938       lt_prog_compiler_pic_GCJ='-PIC'
15939       lt_prog_compiler_static_GCJ='-Bstatic'
15940       ;;
15941
15942     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15943       lt_prog_compiler_wl_GCJ='-Wl,'
15944       lt_prog_compiler_pic_GCJ='-KPIC'
15945       lt_prog_compiler_static_GCJ='-Bstatic'
15946       ;;
15947
15948     sysv4*MP*)
15949       if test -d /usr/nec ;then
15950         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15951         lt_prog_compiler_static_GCJ='-Bstatic'
15952       fi
15953       ;;
15954
15955     uts4*)
15956       lt_prog_compiler_pic_GCJ='-pic'
15957       lt_prog_compiler_static_GCJ='-Bstatic'
15958       ;;
15959
15960     *)
15961       lt_prog_compiler_can_build_shared_GCJ=no
15962       ;;
15963     esac
15964   fi
15965
15966 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15967 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15968
15969 #
15970 # Check to make sure the PIC flag actually works.
15971 #
15972 if test -n "$lt_prog_compiler_pic_GCJ"; then
15973
15974 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15975 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15976 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15977   echo $ECHO_N "(cached) $ECHO_C" >&6
15978 else
15979   lt_prog_compiler_pic_works_GCJ=no
15980   ac_outfile=conftest.$ac_objext
15981    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15982    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15983    # Insert the option either (1) after the last *FLAGS variable, or
15984    # (2) before a word containing "conftest.", or (3) at the end.
15985    # Note that $ac_compile itself does not contain backslashes and begins
15986    # with a dollar sign (not a hyphen), so the echo should work correctly.
15987    # The option is referenced via a variable to avoid confusing sed.
15988    lt_compile=`echo "$ac_compile" | $SED \
15989    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15990    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15991    -e 's:$: $lt_compiler_flag:'`
15992    (eval echo "\"\$as_me:15992: $lt_compile\"" >&5)
15993    (eval "$lt_compile" 2>conftest.err)
15994    ac_status=$?
15995    cat conftest.err >&5
15996    echo "$as_me:15996: \$? = $ac_status" >&5
15997    if (exit $ac_status) && test -s "$ac_outfile"; then
15998      # The compiler can only warn and ignore the option if not recognized
15999      # So say no if there are warnings
16000      if test ! -s conftest.err; then
16001        lt_prog_compiler_pic_works_GCJ=yes
16002      fi
16003    fi
16004    $rm conftest*
16005
16006 fi
16007 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16008 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16009
16010 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16011     case $lt_prog_compiler_pic_GCJ in
16012      "" | " "*) ;;
16013      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16014      esac
16015 else
16016     lt_prog_compiler_pic_GCJ=
16017      lt_prog_compiler_can_build_shared_GCJ=no
16018 fi
16019
16020 fi
16021 case "$host_os" in
16022   # For platforms which do not support PIC, -DPIC is meaningless:
16023   *djgpp*)
16024     lt_prog_compiler_pic_GCJ=
16025     ;;
16026   *)
16027     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16028     ;;
16029 esac
16030
16031 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16032 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16033 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16034   echo $ECHO_N "(cached) $ECHO_C" >&6
16035 else
16036   lt_cv_prog_compiler_c_o_GCJ=no
16037    $rm -r conftest 2>/dev/null
16038    mkdir conftest
16039    cd conftest
16040    mkdir out
16041    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16042
16043    lt_compiler_flag="-o out/conftest2.$ac_objext"
16044    # Insert the option either (1) after the last *FLAGS variable, or
16045    # (2) before a word containing "conftest.", or (3) at the end.
16046    # Note that $ac_compile itself does not contain backslashes and begins
16047    # with a dollar sign (not a hyphen), so the echo should work correctly.
16048    lt_compile=`echo "$ac_compile" | $SED \
16049    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16050    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16051    -e 's:$: $lt_compiler_flag:'`
16052    (eval echo "\"\$as_me:16052: $lt_compile\"" >&5)
16053    (eval "$lt_compile" 2>out/conftest.err)
16054    ac_status=$?
16055    cat out/conftest.err >&5
16056    echo "$as_me:16056: \$? = $ac_status" >&5
16057    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16058    then
16059      # The compiler can only warn and ignore the option if not recognized
16060      # So say no if there are warnings
16061      if test ! -s out/conftest.err; then
16062        lt_cv_prog_compiler_c_o_GCJ=yes
16063      fi
16064    fi
16065    chmod u+w .
16066    $rm conftest*
16067    # SGI C++ compiler will create directory out/ii_files/ for
16068    # template instantiation
16069    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16070    $rm out/* && rmdir out
16071    cd ..
16072    rmdir conftest
16073    $rm conftest*
16074
16075 fi
16076 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16077 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16078
16079
16080 hard_links="nottested"
16081 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16082   # do not overwrite the value of need_locks provided by the user
16083   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16084 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16085   hard_links=yes
16086   $rm conftest*
16087   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16088   touch conftest.a
16089   ln conftest.a conftest.b 2>&5 || hard_links=no
16090   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16091   echo "$as_me:$LINENO: result: $hard_links" >&5
16092 echo "${ECHO_T}$hard_links" >&6
16093   if test "$hard_links" = no; then
16094     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16095 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16096     need_locks=warn
16097   fi
16098 else
16099   need_locks=no
16100 fi
16101
16102 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16103 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16104
16105   runpath_var=
16106   allow_undefined_flag_GCJ=
16107   enable_shared_with_static_runtimes_GCJ=no
16108   archive_cmds_GCJ=
16109   archive_expsym_cmds_GCJ=
16110   old_archive_From_new_cmds_GCJ=
16111   old_archive_from_expsyms_cmds_GCJ=
16112   export_dynamic_flag_spec_GCJ=
16113   whole_archive_flag_spec_GCJ=
16114   thread_safe_flag_spec_GCJ=
16115   hardcode_libdir_flag_spec_GCJ=
16116   hardcode_libdir_flag_spec_ld_GCJ=
16117   hardcode_libdir_separator_GCJ=
16118   hardcode_direct_GCJ=no
16119   hardcode_minus_L_GCJ=no
16120   hardcode_shlibpath_var_GCJ=unsupported
16121   link_all_deplibs_GCJ=unknown
16122   hardcode_automatic_GCJ=no
16123   module_cmds_GCJ=
16124   module_expsym_cmds_GCJ=
16125   always_export_symbols_GCJ=no
16126   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16127   # include_expsyms should be a list of space-separated symbols to be *always*
16128   # included in the symbol list
16129   include_expsyms_GCJ=
16130   # exclude_expsyms can be an extended regexp of symbols to exclude
16131   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16132   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16133   # as well as any symbol that contains `d'.
16134   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16135   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16136   # platforms (ab)use it in PIC code, but their linkers get confused if
16137   # the symbol is explicitly referenced.  Since portable code cannot
16138   # rely on this symbol name, it's probably fine to never include it in
16139   # preloaded symbol tables.
16140   extract_expsyms_cmds=
16141
16142   case $host_os in
16143   cygwin* | mingw* | pw32*)
16144     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16145     # When not using gcc, we currently assume that we are using
16146     # Microsoft Visual C++.
16147     if test "$GCC" != yes; then
16148       with_gnu_ld=no
16149     fi
16150     ;;
16151   openbsd*)
16152     with_gnu_ld=no
16153     ;;
16154   esac
16155
16156   ld_shlibs_GCJ=yes
16157   if test "$with_gnu_ld" = yes; then
16158     # If archive_cmds runs LD, not CC, wlarc should be empty
16159     wlarc='${wl}'
16160
16161     # See if GNU ld supports shared libraries.
16162     case $host_os in
16163     aix3* | aix4* | aix5*)
16164       # On AIX/PPC, the GNU linker is very broken
16165       if test "$host_cpu" != ia64; then
16166         ld_shlibs_GCJ=no
16167         cat <<EOF 1>&2
16168
16169 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16170 *** to be unable to reliably create shared libraries on AIX.
16171 *** Therefore, libtool is disabling shared libraries support.  If you
16172 *** really care for shared libraries, you may want to modify your PATH
16173 *** so that a non-GNU linker is found, and then restart.
16174
16175 EOF
16176       fi
16177       ;;
16178
16179     amigaos*)
16180       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)'
16181       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16182       hardcode_minus_L_GCJ=yes
16183
16184       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16185       # that the semantics of dynamic libraries on AmigaOS, at least up
16186       # to version 4, is to share data among multiple programs linked
16187       # with the same dynamic library.  Since this doesn't match the
16188       # behavior of shared libraries on other platforms, we can't use
16189       # them.
16190       ld_shlibs_GCJ=no
16191       ;;
16192
16193     beos*)
16194       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16195         allow_undefined_flag_GCJ=unsupported
16196         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16197         # support --undefined.  This deserves some investigation.  FIXME
16198         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16199       else
16200         ld_shlibs_GCJ=no
16201       fi
16202       ;;
16203
16204     cygwin* | mingw* | pw32*)
16205       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16206       # as there is no search path for DLLs.
16207       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16208       allow_undefined_flag_GCJ=unsupported
16209       always_export_symbols_GCJ=no
16210       enable_shared_with_static_runtimes_GCJ=yes
16211       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16212
16213       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16214         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16215         # If the export-symbols file already is a .def file (1st line
16216         # is EXPORTS), use it as is; otherwise, prepend...
16217         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16218           cp $export_symbols $output_objdir/$soname.def;
16219         else
16220           echo EXPORTS > $output_objdir/$soname.def;
16221           cat $export_symbols >> $output_objdir/$soname.def;
16222         fi~
16223         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16224       else
16225         ld_shlibs=no
16226       fi
16227       ;;
16228
16229     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16230       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16231         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16232         wlarc=
16233       else
16234         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16235         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16236       fi
16237       ;;
16238
16239     solaris* | sysv5*)
16240       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16241         ld_shlibs_GCJ=no
16242         cat <<EOF 1>&2
16243
16244 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16245 *** create shared libraries on Solaris systems.  Therefore, libtool
16246 *** is disabling shared libraries support.  We urge you to upgrade GNU
16247 *** binutils to release 2.9.1 or newer.  Another option is to modify
16248 *** your PATH or compiler configuration so that the native linker is
16249 *** used, and then restart.
16250
16251 EOF
16252       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16253         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16254         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16255       else
16256         ld_shlibs_GCJ=no
16257       fi
16258       ;;
16259
16260     sunos4*)
16261       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16262       wlarc=
16263       hardcode_direct_GCJ=yes
16264       hardcode_shlibpath_var_GCJ=no
16265       ;;
16266
16267   linux*)
16268     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16269         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16270         archive_cmds_GCJ="$tmp_archive_cmds"
16271       supports_anon_versioning=no
16272       case `$LD -v 2>/dev/null` in
16273         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16274         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16275         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16276         *\ 2.11.*) ;; # other 2.11 versions
16277         *) supports_anon_versioning=yes ;;
16278       esac
16279       if test $supports_anon_versioning = yes; then
16280         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16281 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16282 $echo "local: *; };" >> $output_objdir/$libname.ver~
16283         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16284       else
16285         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16286       fi
16287       link_all_deplibs_GCJ=no
16288     else
16289       ld_shlibs_GCJ=no
16290     fi
16291     ;;
16292
16293     *)
16294       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16295         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16296         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16297       else
16298         ld_shlibs_GCJ=no
16299       fi
16300       ;;
16301     esac
16302
16303     if test "$ld_shlibs_GCJ" = yes; then
16304       runpath_var=LD_RUN_PATH
16305       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16306       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16307       # ancient GNU ld didn't support --whole-archive et. al.
16308       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16309         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16310       else
16311         whole_archive_flag_spec_GCJ=
16312       fi
16313     fi
16314   else
16315     # PORTME fill in a description of your system's linker (not GNU ld)
16316     case $host_os in
16317     aix3*)
16318       allow_undefined_flag_GCJ=unsupported
16319       always_export_symbols_GCJ=yes
16320       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'
16321       # Note: this linker hardcodes the directories in LIBPATH if there
16322       # are no directories specified by -L.
16323       hardcode_minus_L_GCJ=yes
16324       if test "$GCC" = yes && test -z "$link_static_flag"; then
16325         # Neither direct hardcoding nor static linking is supported with a
16326         # broken collect2.
16327         hardcode_direct_GCJ=unsupported
16328       fi
16329       ;;
16330
16331     aix4* | aix5*)
16332       if test "$host_cpu" = ia64; then
16333         # On IA64, the linker does run time linking by default, so we don't
16334         # have to do anything special.
16335         aix_use_runtimelinking=no
16336         exp_sym_flag='-Bexport'
16337         no_entry_flag=""
16338       else
16339         # If we're using GNU nm, then we don't want the "-C" option.
16340         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16341         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16342           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'
16343         else
16344           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'
16345         fi
16346         aix_use_runtimelinking=no
16347
16348         # Test if we are trying to use run time linking or normal
16349         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16350         # need to do runtime linking.
16351         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16352           for ld_flag in $LDFLAGS; do
16353           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16354             aix_use_runtimelinking=yes
16355             break
16356           fi
16357           done
16358         esac
16359
16360         exp_sym_flag='-bexport'
16361         no_entry_flag='-bnoentry'
16362       fi
16363
16364       # When large executables or shared objects are built, AIX ld can
16365       # have problems creating the table of contents.  If linking a library
16366       # or program results in "error TOC overflow" add -mminimal-toc to
16367       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16368       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16369
16370       archive_cmds_GCJ=''
16371       hardcode_direct_GCJ=yes
16372       hardcode_libdir_separator_GCJ=':'
16373       link_all_deplibs_GCJ=yes
16374
16375       if test "$GCC" = yes; then
16376         case $host_os in aix4.012|aix4.012.*)
16377         # We only want to do this on AIX 4.2 and lower, the check
16378         # below for broken collect2 doesn't work under 4.3+
16379           collect2name=`${CC} -print-prog-name=collect2`
16380           if test -f "$collect2name" && \
16381            strings "$collect2name" | grep resolve_lib_name >/dev/null
16382           then
16383           # We have reworked collect2
16384           hardcode_direct_GCJ=yes
16385           else
16386           # We have old collect2
16387           hardcode_direct_GCJ=unsupported
16388           # It fails to find uninstalled libraries when the uninstalled
16389           # path is not listed in the libpath.  Setting hardcode_minus_L
16390           # to unsupported forces relinking
16391           hardcode_minus_L_GCJ=yes
16392           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16393           hardcode_libdir_separator_GCJ=
16394           fi
16395         esac
16396         shared_flag='-shared'
16397       else
16398         # not using gcc
16399         if test "$host_cpu" = ia64; then
16400         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16401         # chokes on -Wl,-G. The following line is correct:
16402           shared_flag='-G'
16403         else
16404         if test "$aix_use_runtimelinking" = yes; then
16405             shared_flag='${wl}-G'
16406           else
16407             shared_flag='${wl}-bM:SRE'
16408         fi
16409         fi
16410       fi
16411
16412       # It seems that -bexpall does not export symbols beginning with
16413       # underscore (_), so it is better to generate a list of symbols to export.
16414       always_export_symbols_GCJ=yes
16415       if test "$aix_use_runtimelinking" = yes; then
16416         # Warning - without using the other runtime loading flags (-brtl),
16417         # -berok will link without error, but may produce a broken library.
16418         allow_undefined_flag_GCJ='-berok'
16419        # Determine the default libpath from the value encoded in an empty executable.
16420        cat >conftest.$ac_ext <<_ACEOF
16421 /* confdefs.h.  */
16422 _ACEOF
16423 cat confdefs.h >>conftest.$ac_ext
16424 cat >>conftest.$ac_ext <<_ACEOF
16425 /* end confdefs.h.  */
16426
16427 int
16428 main ()
16429 {
16430
16431   ;
16432   return 0;
16433 }
16434 _ACEOF
16435 rm -f conftest.$ac_objext conftest$ac_exeext
16436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16437   (eval $ac_link) 2>conftest.er1
16438   ac_status=$?
16439   grep -v '^ *+' conftest.er1 >conftest.err
16440   rm -f conftest.er1
16441   cat conftest.err >&5
16442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443   (exit $ac_status); } &&
16444          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16446   (eval $ac_try) 2>&5
16447   ac_status=$?
16448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449   (exit $ac_status); }; } &&
16450          { ac_try='test -s conftest$ac_exeext'
16451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16452   (eval $ac_try) 2>&5
16453   ac_status=$?
16454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16455   (exit $ac_status); }; }; then
16456
16457 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16458 }'`
16459 # Check for a 64-bit object if we didn't find anything.
16460 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; }
16461 }'`; fi
16462 else
16463   echo "$as_me: failed program was:" >&5
16464 sed 's/^/| /' conftest.$ac_ext >&5
16465
16466 fi
16467 rm -f conftest.err conftest.$ac_objext \
16468       conftest$ac_exeext conftest.$ac_ext
16469 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16470
16471        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16472         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16473        else
16474         if test "$host_cpu" = ia64; then
16475           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16476           allow_undefined_flag_GCJ="-z nodefs"
16477           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16478         else
16479          # Determine the default libpath from the value encoded in an empty executable.
16480          cat >conftest.$ac_ext <<_ACEOF
16481 /* confdefs.h.  */
16482 _ACEOF
16483 cat confdefs.h >>conftest.$ac_ext
16484 cat >>conftest.$ac_ext <<_ACEOF
16485 /* end confdefs.h.  */
16486
16487 int
16488 main ()
16489 {
16490
16491   ;
16492   return 0;
16493 }
16494 _ACEOF
16495 rm -f conftest.$ac_objext conftest$ac_exeext
16496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16497   (eval $ac_link) 2>conftest.er1
16498   ac_status=$?
16499   grep -v '^ *+' conftest.er1 >conftest.err
16500   rm -f conftest.er1
16501   cat conftest.err >&5
16502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503   (exit $ac_status); } &&
16504          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16506   (eval $ac_try) 2>&5
16507   ac_status=$?
16508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509   (exit $ac_status); }; } &&
16510          { ac_try='test -s conftest$ac_exeext'
16511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16512   (eval $ac_try) 2>&5
16513   ac_status=$?
16514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16515   (exit $ac_status); }; }; then
16516
16517 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16518 }'`
16519 # Check for a 64-bit object if we didn't find anything.
16520 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; }
16521 }'`; fi
16522 else
16523   echo "$as_me: failed program was:" >&5
16524 sed 's/^/| /' conftest.$ac_ext >&5
16525
16526 fi
16527 rm -f conftest.err conftest.$ac_objext \
16528       conftest$ac_exeext conftest.$ac_ext
16529 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16530
16531          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16532           # Warning - without using the other run time loading flags,
16533           # -berok will link without error, but may produce a broken library.
16534           no_undefined_flag_GCJ=' ${wl}-bernotok'
16535           allow_undefined_flag_GCJ=' ${wl}-berok'
16536           # -bexpall does not export symbols beginning with underscore (_)
16537           always_export_symbols_GCJ=yes
16538           # Exported symbols can be pulled into shared objects from archives
16539           whole_archive_flag_spec_GCJ=' '
16540           archive_cmds_need_lc_GCJ=yes
16541           # This is similar to how AIX traditionally builds it's shared libraries.
16542           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16543         fi
16544       fi
16545       ;;
16546
16547     amigaos*)
16548       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)'
16549       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16550       hardcode_minus_L_GCJ=yes
16551       # see comment about different semantics on the GNU ld section
16552       ld_shlibs_GCJ=no
16553       ;;
16554
16555     bsdi4*)
16556       export_dynamic_flag_spec_GCJ=-rdynamic
16557       ;;
16558
16559     cygwin* | mingw* | pw32*)
16560       # When not using gcc, we currently assume that we are using
16561       # Microsoft Visual C++.
16562       # hardcode_libdir_flag_spec is actually meaningless, as there is
16563       # no search path for DLLs.
16564       hardcode_libdir_flag_spec_GCJ=' '
16565       allow_undefined_flag_GCJ=unsupported
16566       # Tell ltmain to make .lib files, not .a files.
16567       libext=lib
16568       # Tell ltmain to make .dll files, not .so files.
16569       shrext_cmds=".dll"
16570       # FIXME: Setting linknames here is a bad hack.
16571       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16572       # The linker will automatically build a .lib file if we build a DLL.
16573       old_archive_From_new_cmds_GCJ='true'
16574       # FIXME: Should let the user specify the lib program.
16575       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16576       fix_srcfile_path='`cygpath -w "$srcfile"`'
16577       enable_shared_with_static_runtimes_GCJ=yes
16578       ;;
16579
16580     darwin* | rhapsody*)
16581     if test "$GXX" = yes ; then
16582       archive_cmds_need_lc_GCJ=no
16583       case "$host_os" in
16584       rhapsody* | darwin1.[012])
16585         allow_undefined_flag_GCJ='-undefined suppress'
16586         ;;
16587       *) # Darwin 1.3 on
16588       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16589         allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16590       else
16591         case ${MACOSX_DEPLOYMENT_TARGET} in
16592           10.[012])
16593             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16594             ;;
16595           10.*)
16596             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16597             ;;
16598         esac
16599       fi
16600         ;;
16601       esac
16602         lt_int_apple_cc_single_mod=no
16603         output_verbose_link_cmd='echo'
16604         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16605           lt_int_apple_cc_single_mod=yes
16606         fi
16607         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16608           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16609         else
16610         archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
16611       fi
16612       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16613       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16614         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16615           archive_expsym_cmds_GCJ='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}'
16616         else
16617           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
16618         fi
16619           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}'
16620       hardcode_direct_GCJ=no
16621       hardcode_automatic_GCJ=yes
16622       hardcode_shlibpath_var_GCJ=unsupported
16623       whole_archive_flag_spec_GCJ='-all_load $convenience'
16624       link_all_deplibs_GCJ=yes
16625     else
16626       ld_shlibs_GCJ=no
16627     fi
16628       ;;
16629
16630     dgux*)
16631       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16632       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16633       hardcode_shlibpath_var_GCJ=no
16634       ;;
16635
16636     freebsd1*)
16637       ld_shlibs_GCJ=no
16638       ;;
16639
16640     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16641     # support.  Future versions do this automatically, but an explicit c++rt0.o
16642     # does not break anything, and helps significantly (at the cost of a little
16643     # extra space).
16644     freebsd2.2*)
16645       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16646       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16647       hardcode_direct_GCJ=yes
16648       hardcode_shlibpath_var_GCJ=no
16649       ;;
16650
16651     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16652     freebsd2*)
16653       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16654       hardcode_direct_GCJ=yes
16655       hardcode_minus_L_GCJ=yes
16656       hardcode_shlibpath_var_GCJ=no
16657       ;;
16658
16659     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16660     freebsd* | kfreebsd*-gnu)
16661       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16662       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16663       hardcode_direct_GCJ=yes
16664       hardcode_shlibpath_var_GCJ=no
16665       ;;
16666
16667     hpux9*)
16668       if test "$GCC" = yes; then
16669         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'
16670       else
16671         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'
16672       fi
16673       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16674       hardcode_libdir_separator_GCJ=:
16675       hardcode_direct_GCJ=yes
16676
16677       # hardcode_minus_L: Not really in the search PATH,
16678       # but as the default location of the library.
16679       hardcode_minus_L_GCJ=yes
16680       export_dynamic_flag_spec_GCJ='${wl}-E'
16681       ;;
16682
16683     hpux10* | hpux11*)
16684       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16685         case "$host_cpu" in
16686         hppa*64*|ia64*)
16687           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16688           ;;
16689         *)
16690           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16691           ;;
16692         esac
16693       else
16694         case "$host_cpu" in
16695         hppa*64*|ia64*)
16696           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16697           ;;
16698         *)
16699           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16700           ;;
16701         esac
16702       fi
16703       if test "$with_gnu_ld" = no; then
16704         case "$host_cpu" in
16705         hppa*64*)
16706           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16707           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16708           hardcode_libdir_separator_GCJ=:
16709           hardcode_direct_GCJ=no
16710           hardcode_shlibpath_var_GCJ=no
16711           ;;
16712         ia64*)
16713           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16714           hardcode_direct_GCJ=no
16715           hardcode_shlibpath_var_GCJ=no
16716
16717           # hardcode_minus_L: Not really in the search PATH,
16718           # but as the default location of the library.
16719           hardcode_minus_L_GCJ=yes
16720           ;;
16721         *)
16722           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16723           hardcode_libdir_separator_GCJ=:
16724           hardcode_direct_GCJ=yes
16725           export_dynamic_flag_spec_GCJ='${wl}-E'
16726
16727           # hardcode_minus_L: Not really in the search PATH,
16728           # but as the default location of the library.
16729           hardcode_minus_L_GCJ=yes
16730           ;;
16731         esac
16732       fi
16733       ;;
16734
16735     irix5* | irix6* | nonstopux*)
16736       if test "$GCC" = yes; then
16737         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'
16738       else
16739         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'
16740         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16741       fi
16742       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16743       hardcode_libdir_separator_GCJ=:
16744       link_all_deplibs_GCJ=yes
16745       ;;
16746
16747     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16748       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16749         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16750       else
16751         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16752       fi
16753       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16754       hardcode_direct_GCJ=yes
16755       hardcode_shlibpath_var_GCJ=no
16756       ;;
16757
16758     newsos6)
16759       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16760       hardcode_direct_GCJ=yes
16761       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16762       hardcode_libdir_separator_GCJ=:
16763       hardcode_shlibpath_var_GCJ=no
16764       ;;
16765
16766     openbsd*)
16767       hardcode_direct_GCJ=yes
16768       hardcode_shlibpath_var_GCJ=no
16769       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16770         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16771         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16772         export_dynamic_flag_spec_GCJ='${wl}-E'
16773       else
16774        case $host_os in
16775          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16776            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16777            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16778            ;;
16779          *)
16780            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16781            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16782            ;;
16783        esac
16784       fi
16785       ;;
16786
16787     os2*)
16788       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16789       hardcode_minus_L_GCJ=yes
16790       allow_undefined_flag_GCJ=unsupported
16791       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'
16792       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16793       ;;
16794
16795     osf3*)
16796       if test "$GCC" = yes; then
16797         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16798         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'
16799       else
16800         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16801         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'
16802       fi
16803       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16804       hardcode_libdir_separator_GCJ=:
16805       ;;
16806
16807     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16808       if test "$GCC" = yes; then
16809         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16810         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'
16811         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16812       else
16813         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16814         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'
16815         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~
16816         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16817
16818         # Both c and cxx compiler support -rpath directly
16819         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16820       fi
16821       hardcode_libdir_separator_GCJ=:
16822       ;;
16823
16824     sco3.2v5*)
16825       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16826       hardcode_shlibpath_var_GCJ=no
16827       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16828       runpath_var=LD_RUN_PATH
16829       hardcode_runpath_var=yes
16830       ;;
16831
16832     solaris*)
16833       no_undefined_flag_GCJ=' -z text'
16834       if test "$GCC" = yes; then
16835         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16836         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16837           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16838       else
16839         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16840         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16841         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16842       fi
16843       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16844       hardcode_shlibpath_var_GCJ=no
16845       case $host_os in
16846       solaris2.[0-5] | solaris2.[0-5].*) ;;
16847       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16848         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16849       esac
16850       link_all_deplibs_GCJ=yes
16851       ;;
16852
16853     sunos4*)
16854       if test "x$host_vendor" = xsequent; then
16855         # Use $CC to link under sequent, because it throws in some extra .o
16856         # files that make .init and .fini sections work.
16857         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16858       else
16859         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16860       fi
16861       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16862       hardcode_direct_GCJ=yes
16863       hardcode_minus_L_GCJ=yes
16864       hardcode_shlibpath_var_GCJ=no
16865       ;;
16866
16867     sysv4)
16868       case $host_vendor in
16869         sni)
16870           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16871           hardcode_direct_GCJ=yes # is this really true???
16872         ;;
16873         siemens)
16874           ## LD is ld it makes a PLAMLIB
16875           ## CC just makes a GrossModule.
16876           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16877           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16878           hardcode_direct_GCJ=no
16879         ;;
16880         motorola)
16881           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16882           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16883         ;;
16884       esac
16885       runpath_var='LD_RUN_PATH'
16886       hardcode_shlibpath_var_GCJ=no
16887       ;;
16888
16889     sysv4.3*)
16890       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16891       hardcode_shlibpath_var_GCJ=no
16892       export_dynamic_flag_spec_GCJ='-Bexport'
16893       ;;
16894
16895     sysv4*MP*)
16896       if test -d /usr/nec; then
16897         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16898         hardcode_shlibpath_var_GCJ=no
16899         runpath_var=LD_RUN_PATH
16900         hardcode_runpath_var=yes
16901         ld_shlibs_GCJ=yes
16902       fi
16903       ;;
16904
16905     sysv4.2uw2*)
16906       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16907       hardcode_direct_GCJ=yes
16908       hardcode_minus_L_GCJ=no
16909       hardcode_shlibpath_var_GCJ=no
16910       hardcode_runpath_var=yes
16911       runpath_var=LD_RUN_PATH
16912       ;;
16913
16914    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16915       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16916       if test "$GCC" = yes; then
16917         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16918       else
16919         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16920       fi
16921       runpath_var='LD_RUN_PATH'
16922       hardcode_shlibpath_var_GCJ=no
16923       ;;
16924
16925     sysv5*)
16926       no_undefined_flag_GCJ=' -z text'
16927       # $CC -shared without GNU ld will not create a library from C++
16928       # object files and a static libstdc++, better avoid it by now
16929       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16930       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16931                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16932       hardcode_libdir_flag_spec_GCJ=
16933       hardcode_shlibpath_var_GCJ=no
16934       runpath_var='LD_RUN_PATH'
16935       ;;
16936
16937     uts4*)
16938       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16939       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16940       hardcode_shlibpath_var_GCJ=no
16941       ;;
16942
16943     *)
16944       ld_shlibs_GCJ=no
16945       ;;
16946     esac
16947   fi
16948
16949 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16950 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16951 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16952
16953 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16954 if test "$GCC" = yes; then
16955   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16956 fi
16957
16958 #
16959 # Do we need to explicitly link libc?
16960 #
16961 case "x$archive_cmds_need_lc_GCJ" in
16962 x|xyes)
16963   # Assume -lc should be added
16964   archive_cmds_need_lc_GCJ=yes
16965
16966   if test "$enable_shared" = yes && test "$GCC" = yes; then
16967     case $archive_cmds_GCJ in
16968     *'~'*)
16969       # FIXME: we may have to deal with multi-command sequences.
16970       ;;
16971     '$CC '*)
16972       # Test whether the compiler implicitly links with -lc since on some
16973       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16974       # to ld, don't add -lc before -lgcc.
16975       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16976 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16977       $rm conftest*
16978       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16979
16980       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16981   (eval $ac_compile) 2>&5
16982   ac_status=$?
16983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984   (exit $ac_status); } 2>conftest.err; then
16985         soname=conftest
16986         lib=conftest
16987         libobjs=conftest.$ac_objext
16988         deplibs=
16989         wl=$lt_prog_compiler_wl_GCJ
16990         compiler_flags=-v
16991         linker_flags=-v
16992         verstring=
16993         output_objdir=.
16994         libname=conftest
16995         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16996         allow_undefined_flag_GCJ=
16997         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16998   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16999   ac_status=$?
17000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17001   (exit $ac_status); }
17002         then
17003           archive_cmds_need_lc_GCJ=no
17004         else
17005           archive_cmds_need_lc_GCJ=yes
17006         fi
17007         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17008       else
17009         cat conftest.err 1>&5
17010       fi
17011       $rm conftest*
17012       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17013 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17014       ;;
17015     esac
17016   fi
17017   ;;
17018 esac
17019
17020 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17021 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17022 library_names_spec=
17023 libname_spec='lib$name'
17024 soname_spec=
17025 shrext_cmds=".so"
17026 postinstall_cmds=
17027 postuninstall_cmds=
17028 finish_cmds=
17029 finish_eval=
17030 shlibpath_var=
17031 shlibpath_overrides_runpath=unknown
17032 version_type=none
17033 dynamic_linker="$host_os ld.so"
17034 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17035 if test "$GCC" = yes; then
17036   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17037   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17038     # if the path contains ";" then we assume it to be the separator
17039     # otherwise default to the standard path separator (i.e. ":") - it is
17040     # assumed that no part of a normal pathname contains ";" but that should
17041     # okay in the real world where ";" in dirpaths is itself problematic.
17042     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17043   else
17044     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17045   fi
17046 else
17047   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17048 fi
17049 need_lib_prefix=unknown
17050 hardcode_into_libs=no
17051
17052 # when you set need_version to no, make sure it does not cause -set_version
17053 # flags to be left without arguments
17054 need_version=unknown
17055
17056 case $host_os in
17057 aix3*)
17058   version_type=linux
17059   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17060   shlibpath_var=LIBPATH
17061
17062   # AIX 3 has no versioning support, so we append a major version to the name.
17063   soname_spec='${libname}${release}${shared_ext}$major'
17064   ;;
17065
17066 aix4* | aix5*)
17067   version_type=linux
17068   need_lib_prefix=no
17069   need_version=no
17070   hardcode_into_libs=yes
17071   if test "$host_cpu" = ia64; then
17072     # AIX 5 supports IA64
17073     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17074     shlibpath_var=LD_LIBRARY_PATH
17075   else
17076     # With GCC up to 2.95.x, collect2 would create an import file
17077     # for dependence libraries.  The import file would start with
17078     # the line `#! .'.  This would cause the generated library to
17079     # depend on `.', always an invalid library.  This was fixed in
17080     # development snapshots of GCC prior to 3.0.
17081     case $host_os in
17082       aix4 | aix4.[01] | aix4.[01].*)
17083       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17084            echo ' yes '
17085            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17086         :
17087       else
17088         can_build_shared=no
17089       fi
17090       ;;
17091     esac
17092     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17093     # soname into executable. Probably we can add versioning support to
17094     # collect2, so additional links can be useful in future.
17095     if test "$aix_use_runtimelinking" = yes; then
17096       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17097       # instead of lib<name>.a to let people know that these are not
17098       # typical AIX shared libraries.
17099       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17100     else
17101       # We preserve .a as extension for shared libraries through AIX4.2
17102       # and later when we are not doing run time linking.
17103       library_names_spec='${libname}${release}.a $libname.a'
17104       soname_spec='${libname}${release}${shared_ext}$major'
17105     fi
17106     shlibpath_var=LIBPATH
17107   fi
17108   ;;
17109
17110 amigaos*)
17111   library_names_spec='$libname.ixlibrary $libname.a'
17112   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17113   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'
17114   ;;
17115
17116 beos*)
17117   library_names_spec='${libname}${shared_ext}'
17118   dynamic_linker="$host_os ld.so"
17119   shlibpath_var=LIBRARY_PATH
17120   ;;
17121
17122 bsdi4*)
17123   version_type=linux
17124   need_version=no
17125   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17126   soname_spec='${libname}${release}${shared_ext}$major'
17127   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17128   shlibpath_var=LD_LIBRARY_PATH
17129   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17130   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17131   # the default ld.so.conf also contains /usr/contrib/lib and
17132   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17133   # libtool to hard-code these into programs
17134   ;;
17135
17136 cygwin* | mingw* | pw32*)
17137   version_type=windows
17138   shrext_cmds=".dll"
17139   need_version=no
17140   need_lib_prefix=no
17141
17142   case $GCC,$host_os in
17143   yes,cygwin* | yes,mingw* | yes,pw32*)
17144     library_names_spec='$libname.dll.a'
17145     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17146     postinstall_cmds='base_file=`basename \${file}`~
17147       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17148       dldir=$destdir/`dirname \$dlpath`~
17149       test -d \$dldir || mkdir -p \$dldir~
17150       $install_prog $dir/$dlname \$dldir/$dlname'
17151     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17152       dlpath=$dir/\$dldll~
17153        $rm \$dlpath'
17154     shlibpath_overrides_runpath=yes
17155
17156     case $host_os in
17157     cygwin*)
17158       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17159       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17160       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17161       ;;
17162     mingw*)
17163       # MinGW DLLs use traditional 'lib' prefix
17164       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17165       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17166       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17167         # It is most probably a Windows format PATH printed by
17168         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17169         # path with ; separators, and with drive letters. We can handle the
17170         # drive letters (cygwin fileutils understands them), so leave them,
17171         # especially as we might pass files found there to a mingw objdump,
17172         # which wouldn't understand a cygwinified path. Ahh.
17173         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17174       else
17175         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17176       fi
17177       ;;
17178     pw32*)
17179       # pw32 DLLs use 'pw' prefix rather than 'lib'
17180       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17181       ;;
17182     esac
17183     ;;
17184
17185   *)
17186     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17187     ;;
17188   esac
17189   dynamic_linker='Win32 ld.exe'
17190   # FIXME: first we should search . and the directory the executable is in
17191   shlibpath_var=PATH
17192   ;;
17193
17194 darwin* | rhapsody*)
17195   dynamic_linker="$host_os dyld"
17196   version_type=darwin
17197   need_lib_prefix=no
17198   need_version=no
17199   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17200   soname_spec='${libname}${release}${major}$shared_ext'
17201   shlibpath_overrides_runpath=yes
17202   shlibpath_var=DYLD_LIBRARY_PATH
17203   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17204   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17205   if test "$GCC" = yes; then
17206     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"`
17207   else
17208     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17209   fi
17210   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17211   ;;
17212
17213 dgux*)
17214   version_type=linux
17215   need_lib_prefix=no
17216   need_version=no
17217   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17218   soname_spec='${libname}${release}${shared_ext}$major'
17219   shlibpath_var=LD_LIBRARY_PATH
17220   ;;
17221
17222 freebsd1*)
17223   dynamic_linker=no
17224   ;;
17225
17226 kfreebsd*-gnu)
17227   version_type=linux
17228   need_lib_prefix=no
17229   need_version=no
17230   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17231   soname_spec='${libname}${release}${shared_ext}$major'
17232   shlibpath_var=LD_LIBRARY_PATH
17233   shlibpath_overrides_runpath=no
17234   hardcode_into_libs=yes
17235   dynamic_linker='GNU ld.so'
17236   ;;
17237
17238 freebsd*)
17239   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17240   version_type=freebsd-$objformat
17241   case $version_type in
17242     freebsd-elf*)
17243       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17244       need_version=no
17245       need_lib_prefix=no
17246       ;;
17247     freebsd-*)
17248       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17249       need_version=yes
17250       ;;
17251   esac
17252   shlibpath_var=LD_LIBRARY_PATH
17253   case $host_os in
17254   freebsd2*)
17255     shlibpath_overrides_runpath=yes
17256     ;;
17257   freebsd3.01* | freebsdelf3.01*)
17258     shlibpath_overrides_runpath=yes
17259     hardcode_into_libs=yes
17260     ;;
17261   *) # from 3.2 on
17262     shlibpath_overrides_runpath=no
17263     hardcode_into_libs=yes
17264     ;;
17265   esac
17266   ;;
17267
17268 gnu*)
17269   version_type=linux
17270   need_lib_prefix=no
17271   need_version=no
17272   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17273   soname_spec='${libname}${release}${shared_ext}$major'
17274   shlibpath_var=LD_LIBRARY_PATH
17275   hardcode_into_libs=yes
17276   ;;
17277
17278 hpux9* | hpux10* | hpux11*)
17279   # Give a soname corresponding to the major version so that dld.sl refuses to
17280   # link against other versions.
17281   version_type=sunos
17282   need_lib_prefix=no
17283   need_version=no
17284   case "$host_cpu" in
17285   ia64*)
17286     shrext_cmds='.so'
17287     hardcode_into_libs=yes
17288     dynamic_linker="$host_os dld.so"
17289     shlibpath_var=LD_LIBRARY_PATH
17290     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17291     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17292     soname_spec='${libname}${release}${shared_ext}$major'
17293     if test "X$HPUX_IA64_MODE" = X32; then
17294       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17295     else
17296       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17297     fi
17298     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17299     ;;
17300    hppa*64*)
17301      shrext_cmds='.sl'
17302      hardcode_into_libs=yes
17303      dynamic_linker="$host_os dld.sl"
17304      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17305      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17306      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17307      soname_spec='${libname}${release}${shared_ext}$major'
17308      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17309      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17310      ;;
17311    *)
17312     shrext_cmds='.sl'
17313     dynamic_linker="$host_os dld.sl"
17314     shlibpath_var=SHLIB_PATH
17315     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17316     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17317     soname_spec='${libname}${release}${shared_ext}$major'
17318     ;;
17319   esac
17320   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17321   postinstall_cmds='chmod 555 $lib'
17322   ;;
17323
17324 irix5* | irix6* | nonstopux*)
17325   case $host_os in
17326     nonstopux*) version_type=nonstopux ;;
17327     *)
17328         if test "$lt_cv_prog_gnu_ld" = yes; then
17329                 version_type=linux
17330         else
17331                 version_type=irix
17332         fi ;;
17333   esac
17334   need_lib_prefix=no
17335   need_version=no
17336   soname_spec='${libname}${release}${shared_ext}$major'
17337   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17338   case $host_os in
17339   irix5* | nonstopux*)
17340     libsuff= shlibsuff=
17341     ;;
17342   *)
17343     case $LD in # libtool.m4 will add one of these switches to LD
17344     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17345       libsuff= shlibsuff= libmagic=32-bit;;
17346     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17347       libsuff=32 shlibsuff=N32 libmagic=N32;;
17348     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17349       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17350     *) libsuff= shlibsuff= libmagic=never-match;;
17351     esac
17352     ;;
17353   esac
17354   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17355   shlibpath_overrides_runpath=no
17356   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17357   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17358   hardcode_into_libs=yes
17359   ;;
17360
17361 # No shared lib support for Linux oldld, aout, or coff.
17362 linux*oldld* | linux*aout* | linux*coff*)
17363   dynamic_linker=no
17364   ;;
17365
17366 # This must be Linux ELF.
17367 linux*)
17368   version_type=linux
17369   need_lib_prefix=no
17370   need_version=no
17371   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17372   soname_spec='${libname}${release}${shared_ext}$major'
17373   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17374   shlibpath_var=LD_LIBRARY_PATH
17375   shlibpath_overrides_runpath=no
17376   # This implies no fast_install, which is unacceptable.
17377   # Some rework will be needed to allow for fast_install
17378   # before this can be enabled.
17379   hardcode_into_libs=yes
17380
17381   # Append ld.so.conf contents to the search path
17382   if test -f /etc/ld.so.conf; then
17383     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17384     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17385   fi
17386
17387   # We used to test for /lib/ld.so.1 and disable shared libraries on
17388   # powerpc, because MkLinux only supported shared libraries with the
17389   # GNU dynamic linker.  Since this was broken with cross compilers,
17390   # most powerpc-linux boxes support dynamic linking these days and
17391   # people can always --disable-shared, the test was removed, and we
17392   # assume the GNU/Linux dynamic linker is in use.
17393   dynamic_linker='GNU/Linux ld.so'
17394   ;;
17395
17396 netbsdelf*-gnu)
17397   version_type=linux
17398   need_lib_prefix=no
17399   need_version=no
17400   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17401   soname_spec='${libname}${release}${shared_ext}$major'
17402   shlibpath_var=LD_LIBRARY_PATH
17403   shlibpath_overrides_runpath=no
17404   hardcode_into_libs=yes
17405   dynamic_linker='NetBSD ld.elf_so'
17406   ;;
17407
17408 knetbsd*-gnu)
17409   version_type=linux
17410   need_lib_prefix=no
17411   need_version=no
17412   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17413   soname_spec='${libname}${release}${shared_ext}$major'
17414   shlibpath_var=LD_LIBRARY_PATH
17415   shlibpath_overrides_runpath=no
17416   hardcode_into_libs=yes
17417   dynamic_linker='GNU ld.so'
17418   ;;
17419
17420 netbsd*)
17421   version_type=sunos
17422   need_lib_prefix=no
17423   need_version=no
17424   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17425     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17426     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17427     dynamic_linker='NetBSD (a.out) ld.so'
17428   else
17429     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17430     soname_spec='${libname}${release}${shared_ext}$major'
17431     dynamic_linker='NetBSD ld.elf_so'
17432   fi
17433   shlibpath_var=LD_LIBRARY_PATH
17434   shlibpath_overrides_runpath=yes
17435   hardcode_into_libs=yes
17436   ;;
17437
17438 newsos6)
17439   version_type=linux
17440   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17441   shlibpath_var=LD_LIBRARY_PATH
17442   shlibpath_overrides_runpath=yes
17443   ;;
17444
17445 nto-qnx*)
17446   version_type=linux
17447   need_lib_prefix=no
17448   need_version=no
17449   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17450   soname_spec='${libname}${release}${shared_ext}$major'
17451   shlibpath_var=LD_LIBRARY_PATH
17452   shlibpath_overrides_runpath=yes
17453   ;;
17454
17455 openbsd*)
17456   version_type=sunos
17457   need_lib_prefix=no
17458   need_version=yes
17459   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17460   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17461   shlibpath_var=LD_LIBRARY_PATH
17462   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17463     case $host_os in
17464       openbsd2.[89] | openbsd2.[89].*)
17465         shlibpath_overrides_runpath=no
17466         ;;
17467       *)
17468         shlibpath_overrides_runpath=yes
17469         ;;
17470       esac
17471   else
17472     shlibpath_overrides_runpath=yes
17473   fi
17474   ;;
17475
17476 os2*)
17477   libname_spec='$name'
17478   shrext_cmds=".dll"
17479   need_lib_prefix=no
17480   library_names_spec='$libname${shared_ext} $libname.a'
17481   dynamic_linker='OS/2 ld.exe'
17482   shlibpath_var=LIBPATH
17483   ;;
17484
17485 osf3* | osf4* | osf5*)
17486   version_type=osf
17487   need_lib_prefix=no
17488   need_version=no
17489   soname_spec='${libname}${release}${shared_ext}$major'
17490   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17491   shlibpath_var=LD_LIBRARY_PATH
17492   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17493   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17494   ;;
17495
17496 sco3.2v5*)
17497   version_type=osf
17498   soname_spec='${libname}${release}${shared_ext}$major'
17499   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17500   shlibpath_var=LD_LIBRARY_PATH
17501   ;;
17502
17503 solaris*)
17504   version_type=linux
17505   need_lib_prefix=no
17506   need_version=no
17507   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17508   soname_spec='${libname}${release}${shared_ext}$major'
17509   shlibpath_var=LD_LIBRARY_PATH
17510   shlibpath_overrides_runpath=yes
17511   hardcode_into_libs=yes
17512   # ldd complains unless libraries are executable
17513   postinstall_cmds='chmod +x $lib'
17514   ;;
17515
17516 sunos4*)
17517   version_type=sunos
17518   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17519   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17520   shlibpath_var=LD_LIBRARY_PATH
17521   shlibpath_overrides_runpath=yes
17522   if test "$with_gnu_ld" = yes; then
17523     need_lib_prefix=no
17524   fi
17525   need_version=yes
17526   ;;
17527
17528 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17529   version_type=linux
17530   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17531   soname_spec='${libname}${release}${shared_ext}$major'
17532   shlibpath_var=LD_LIBRARY_PATH
17533   case $host_vendor in
17534     sni)
17535       shlibpath_overrides_runpath=no
17536       need_lib_prefix=no
17537       export_dynamic_flag_spec='${wl}-Blargedynsym'
17538       runpath_var=LD_RUN_PATH
17539       ;;
17540     siemens)
17541       need_lib_prefix=no
17542       ;;
17543     motorola)
17544       need_lib_prefix=no
17545       need_version=no
17546       shlibpath_overrides_runpath=no
17547       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17548       ;;
17549   esac
17550   ;;
17551
17552 sysv4*MP*)
17553   if test -d /usr/nec ;then
17554     version_type=linux
17555     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17556     soname_spec='$libname${shared_ext}.$major'
17557     shlibpath_var=LD_LIBRARY_PATH
17558   fi
17559   ;;
17560
17561 uts4*)
17562   version_type=linux
17563   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17564   soname_spec='${libname}${release}${shared_ext}$major'
17565   shlibpath_var=LD_LIBRARY_PATH
17566   ;;
17567
17568 *)
17569   dynamic_linker=no
17570   ;;
17571 esac
17572 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17573 echo "${ECHO_T}$dynamic_linker" >&6
17574 test "$dynamic_linker" = no && can_build_shared=no
17575
17576 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17577 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17578 hardcode_action_GCJ=
17579 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17580    test -n "$runpath_var GCJ" || \
17581    test "X$hardcode_automatic_GCJ"="Xyes" ; then
17582
17583   # We can hardcode non-existant directories.
17584   if test "$hardcode_direct_GCJ" != no &&
17585      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17586      # have to relink, otherwise we might link with an installed library
17587      # when we should be linking with a yet-to-be-installed one
17588      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17589      test "$hardcode_minus_L_GCJ" != no; then
17590     # Linking always hardcodes the temporary library directory.
17591     hardcode_action_GCJ=relink
17592   else
17593     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17594     hardcode_action_GCJ=immediate
17595   fi
17596 else
17597   # We cannot hardcode anything, or else we can only hardcode existing
17598   # directories.
17599   hardcode_action_GCJ=unsupported
17600 fi
17601 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17602 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17603
17604 if test "$hardcode_action_GCJ" = relink; then
17605   # Fast installation is not supported
17606   enable_fast_install=no
17607 elif test "$shlibpath_overrides_runpath" = yes ||
17608      test "$enable_shared" = no; then
17609   # Fast installation is not necessary
17610   enable_fast_install=needless
17611 fi
17612
17613 striplib=
17614 old_striplib=
17615 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17616 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17617 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17618   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17619   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17620   echo "$as_me:$LINENO: result: yes" >&5
17621 echo "${ECHO_T}yes" >&6
17622 else
17623 # FIXME - insert some real tests, host_os isn't really good enough
17624   case $host_os in
17625    darwin*)
17626        if test -n "$STRIP" ; then
17627          striplib="$STRIP -x"
17628          echo "$as_me:$LINENO: result: yes" >&5
17629 echo "${ECHO_T}yes" >&6
17630        else
17631   echo "$as_me:$LINENO: result: no" >&5
17632 echo "${ECHO_T}no" >&6
17633 fi
17634        ;;
17635    *)
17636   echo "$as_me:$LINENO: result: no" >&5
17637 echo "${ECHO_T}no" >&6
17638     ;;
17639   esac
17640 fi
17641
17642 if test "x$enable_dlopen" != xyes; then
17643   enable_dlopen=unknown
17644   enable_dlopen_self=unknown
17645   enable_dlopen_self_static=unknown
17646 else
17647   lt_cv_dlopen=no
17648   lt_cv_dlopen_libs=
17649
17650   case $host_os in
17651   beos*)
17652     lt_cv_dlopen="load_add_on"
17653     lt_cv_dlopen_libs=
17654     lt_cv_dlopen_self=yes
17655     ;;
17656
17657   mingw* | pw32*)
17658     lt_cv_dlopen="LoadLibrary"
17659     lt_cv_dlopen_libs=
17660    ;;
17661
17662   cygwin*)
17663     lt_cv_dlopen="dlopen"
17664     lt_cv_dlopen_libs=
17665    ;;
17666
17667   darwin*)
17668   # if libdl is installed we need to link against it
17669     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17670 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17671 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17672   echo $ECHO_N "(cached) $ECHO_C" >&6
17673 else
17674   ac_check_lib_save_LIBS=$LIBS
17675 LIBS="-ldl  $LIBS"
17676 cat >conftest.$ac_ext <<_ACEOF
17677 /* confdefs.h.  */
17678 _ACEOF
17679 cat confdefs.h >>conftest.$ac_ext
17680 cat >>conftest.$ac_ext <<_ACEOF
17681 /* end confdefs.h.  */
17682
17683 /* Override any gcc2 internal prototype to avoid an error.  */
17684 #ifdef __cplusplus
17685 extern "C"
17686 #endif
17687 /* We use char because int might match the return type of a gcc2
17688    builtin and then its argument prototype would still apply.  */
17689 char dlopen ();
17690 int
17691 main ()
17692 {
17693 dlopen ();
17694   ;
17695   return 0;
17696 }
17697 _ACEOF
17698 rm -f conftest.$ac_objext conftest$ac_exeext
17699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17700   (eval $ac_link) 2>conftest.er1
17701   ac_status=$?
17702   grep -v '^ *+' conftest.er1 >conftest.err
17703   rm -f conftest.er1
17704   cat conftest.err >&5
17705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706   (exit $ac_status); } &&
17707          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17709   (eval $ac_try) 2>&5
17710   ac_status=$?
17711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17712   (exit $ac_status); }; } &&
17713          { ac_try='test -s conftest$ac_exeext'
17714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17715   (eval $ac_try) 2>&5
17716   ac_status=$?
17717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718   (exit $ac_status); }; }; then
17719   ac_cv_lib_dl_dlopen=yes
17720 else
17721   echo "$as_me: failed program was:" >&5
17722 sed 's/^/| /' conftest.$ac_ext >&5
17723
17724 ac_cv_lib_dl_dlopen=no
17725 fi
17726 rm -f conftest.err conftest.$ac_objext \
17727       conftest$ac_exeext conftest.$ac_ext
17728 LIBS=$ac_check_lib_save_LIBS
17729 fi
17730 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17731 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17732 if test $ac_cv_lib_dl_dlopen = yes; then
17733   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17734 else
17735
17736     lt_cv_dlopen="dyld"
17737     lt_cv_dlopen_libs=
17738     lt_cv_dlopen_self=yes
17739
17740 fi
17741
17742    ;;
17743
17744   *)
17745     echo "$as_me:$LINENO: checking for shl_load" >&5
17746 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17747 if test "${ac_cv_func_shl_load+set}" = set; then
17748   echo $ECHO_N "(cached) $ECHO_C" >&6
17749 else
17750   cat >conftest.$ac_ext <<_ACEOF
17751 /* confdefs.h.  */
17752 _ACEOF
17753 cat confdefs.h >>conftest.$ac_ext
17754 cat >>conftest.$ac_ext <<_ACEOF
17755 /* end confdefs.h.  */
17756 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17757    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17758 #define shl_load innocuous_shl_load
17759
17760 /* System header to define __stub macros and hopefully few prototypes,
17761     which can conflict with char shl_load (); below.
17762     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17763     <limits.h> exists even on freestanding compilers.  */
17764
17765 #ifdef __STDC__
17766 # include <limits.h>
17767 #else
17768 # include <assert.h>
17769 #endif
17770
17771 #undef shl_load
17772
17773 /* Override any gcc2 internal prototype to avoid an error.  */
17774 #ifdef __cplusplus
17775 extern "C"
17776 {
17777 #endif
17778 /* We use char because int might match the return type of a gcc2
17779    builtin and then its argument prototype would still apply.  */
17780 char shl_load ();
17781 /* The GNU C library defines this for functions which it implements
17782     to always fail with ENOSYS.  Some functions are actually named
17783     something starting with __ and the normal name is an alias.  */
17784 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17785 choke me
17786 #else
17787 char (*f) () = shl_load;
17788 #endif
17789 #ifdef __cplusplus
17790 }
17791 #endif
17792
17793 int
17794 main ()
17795 {
17796 return f != shl_load;
17797   ;
17798   return 0;
17799 }
17800 _ACEOF
17801 rm -f conftest.$ac_objext conftest$ac_exeext
17802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17803   (eval $ac_link) 2>conftest.er1
17804   ac_status=$?
17805   grep -v '^ *+' conftest.er1 >conftest.err
17806   rm -f conftest.er1
17807   cat conftest.err >&5
17808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809   (exit $ac_status); } &&
17810          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17812   (eval $ac_try) 2>&5
17813   ac_status=$?
17814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815   (exit $ac_status); }; } &&
17816          { ac_try='test -s conftest$ac_exeext'
17817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17818   (eval $ac_try) 2>&5
17819   ac_status=$?
17820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821   (exit $ac_status); }; }; then
17822   ac_cv_func_shl_load=yes
17823 else
17824   echo "$as_me: failed program was:" >&5
17825 sed 's/^/| /' conftest.$ac_ext >&5
17826
17827 ac_cv_func_shl_load=no
17828 fi
17829 rm -f conftest.err conftest.$ac_objext \
17830       conftest$ac_exeext conftest.$ac_ext
17831 fi
17832 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17833 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17834 if test $ac_cv_func_shl_load = yes; then
17835   lt_cv_dlopen="shl_load"
17836 else
17837   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17838 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17839 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17840   echo $ECHO_N "(cached) $ECHO_C" >&6
17841 else
17842   ac_check_lib_save_LIBS=$LIBS
17843 LIBS="-ldld  $LIBS"
17844 cat >conftest.$ac_ext <<_ACEOF
17845 /* confdefs.h.  */
17846 _ACEOF
17847 cat confdefs.h >>conftest.$ac_ext
17848 cat >>conftest.$ac_ext <<_ACEOF
17849 /* end confdefs.h.  */
17850
17851 /* Override any gcc2 internal prototype to avoid an error.  */
17852 #ifdef __cplusplus
17853 extern "C"
17854 #endif
17855 /* We use char because int might match the return type of a gcc2
17856    builtin and then its argument prototype would still apply.  */
17857 char shl_load ();
17858 int
17859 main ()
17860 {
17861 shl_load ();
17862   ;
17863   return 0;
17864 }
17865 _ACEOF
17866 rm -f conftest.$ac_objext conftest$ac_exeext
17867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17868   (eval $ac_link) 2>conftest.er1
17869   ac_status=$?
17870   grep -v '^ *+' conftest.er1 >conftest.err
17871   rm -f conftest.er1
17872   cat conftest.err >&5
17873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874   (exit $ac_status); } &&
17875          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17877   (eval $ac_try) 2>&5
17878   ac_status=$?
17879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880   (exit $ac_status); }; } &&
17881          { ac_try='test -s conftest$ac_exeext'
17882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17883   (eval $ac_try) 2>&5
17884   ac_status=$?
17885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886   (exit $ac_status); }; }; then
17887   ac_cv_lib_dld_shl_load=yes
17888 else
17889   echo "$as_me: failed program was:" >&5
17890 sed 's/^/| /' conftest.$ac_ext >&5
17891
17892 ac_cv_lib_dld_shl_load=no
17893 fi
17894 rm -f conftest.err conftest.$ac_objext \
17895       conftest$ac_exeext conftest.$ac_ext
17896 LIBS=$ac_check_lib_save_LIBS
17897 fi
17898 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17899 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17900 if test $ac_cv_lib_dld_shl_load = yes; then
17901   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17902 else
17903   echo "$as_me:$LINENO: checking for dlopen" >&5
17904 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17905 if test "${ac_cv_func_dlopen+set}" = set; then
17906   echo $ECHO_N "(cached) $ECHO_C" >&6
17907 else
17908   cat >conftest.$ac_ext <<_ACEOF
17909 /* confdefs.h.  */
17910 _ACEOF
17911 cat confdefs.h >>conftest.$ac_ext
17912 cat >>conftest.$ac_ext <<_ACEOF
17913 /* end confdefs.h.  */
17914 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17915    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17916 #define dlopen innocuous_dlopen
17917
17918 /* System header to define __stub macros and hopefully few prototypes,
17919     which can conflict with char dlopen (); below.
17920     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17921     <limits.h> exists even on freestanding compilers.  */
17922
17923 #ifdef __STDC__
17924 # include <limits.h>
17925 #else
17926 # include <assert.h>
17927 #endif
17928
17929 #undef dlopen
17930
17931 /* Override any gcc2 internal prototype to avoid an error.  */
17932 #ifdef __cplusplus
17933 extern "C"
17934 {
17935 #endif
17936 /* We use char because int might match the return type of a gcc2
17937    builtin and then its argument prototype would still apply.  */
17938 char dlopen ();
17939 /* The GNU C library defines this for functions which it implements
17940     to always fail with ENOSYS.  Some functions are actually named
17941     something starting with __ and the normal name is an alias.  */
17942 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17943 choke me
17944 #else
17945 char (*f) () = dlopen;
17946 #endif
17947 #ifdef __cplusplus
17948 }
17949 #endif
17950
17951 int
17952 main ()
17953 {
17954 return f != dlopen;
17955   ;
17956   return 0;
17957 }
17958 _ACEOF
17959 rm -f conftest.$ac_objext conftest$ac_exeext
17960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17961   (eval $ac_link) 2>conftest.er1
17962   ac_status=$?
17963   grep -v '^ *+' conftest.er1 >conftest.err
17964   rm -f conftest.er1
17965   cat conftest.err >&5
17966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967   (exit $ac_status); } &&
17968          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17970   (eval $ac_try) 2>&5
17971   ac_status=$?
17972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17973   (exit $ac_status); }; } &&
17974          { ac_try='test -s conftest$ac_exeext'
17975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17976   (eval $ac_try) 2>&5
17977   ac_status=$?
17978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979   (exit $ac_status); }; }; then
17980   ac_cv_func_dlopen=yes
17981 else
17982   echo "$as_me: failed program was:" >&5
17983 sed 's/^/| /' conftest.$ac_ext >&5
17984
17985 ac_cv_func_dlopen=no
17986 fi
17987 rm -f conftest.err conftest.$ac_objext \
17988       conftest$ac_exeext conftest.$ac_ext
17989 fi
17990 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17991 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17992 if test $ac_cv_func_dlopen = yes; then
17993   lt_cv_dlopen="dlopen"
17994 else
17995   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17996 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17997 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17998   echo $ECHO_N "(cached) $ECHO_C" >&6
17999 else
18000   ac_check_lib_save_LIBS=$LIBS
18001 LIBS="-ldl  $LIBS"
18002 cat >conftest.$ac_ext <<_ACEOF
18003 /* confdefs.h.  */
18004 _ACEOF
18005 cat confdefs.h >>conftest.$ac_ext
18006 cat >>conftest.$ac_ext <<_ACEOF
18007 /* end confdefs.h.  */
18008
18009 /* Override any gcc2 internal prototype to avoid an error.  */
18010 #ifdef __cplusplus
18011 extern "C"
18012 #endif
18013 /* We use char because int might match the return type of a gcc2
18014    builtin and then its argument prototype would still apply.  */
18015 char dlopen ();
18016 int
18017 main ()
18018 {
18019 dlopen ();
18020   ;
18021   return 0;
18022 }
18023 _ACEOF
18024 rm -f conftest.$ac_objext conftest$ac_exeext
18025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18026   (eval $ac_link) 2>conftest.er1
18027   ac_status=$?
18028   grep -v '^ *+' conftest.er1 >conftest.err
18029   rm -f conftest.er1
18030   cat conftest.err >&5
18031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032   (exit $ac_status); } &&
18033          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18035   (eval $ac_try) 2>&5
18036   ac_status=$?
18037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18038   (exit $ac_status); }; } &&
18039          { ac_try='test -s conftest$ac_exeext'
18040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18041   (eval $ac_try) 2>&5
18042   ac_status=$?
18043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18044   (exit $ac_status); }; }; then
18045   ac_cv_lib_dl_dlopen=yes
18046 else
18047   echo "$as_me: failed program was:" >&5
18048 sed 's/^/| /' conftest.$ac_ext >&5
18049
18050 ac_cv_lib_dl_dlopen=no
18051 fi
18052 rm -f conftest.err conftest.$ac_objext \
18053       conftest$ac_exeext conftest.$ac_ext
18054 LIBS=$ac_check_lib_save_LIBS
18055 fi
18056 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18057 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18058 if test $ac_cv_lib_dl_dlopen = yes; then
18059   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18060 else
18061   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18062 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18063 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18064   echo $ECHO_N "(cached) $ECHO_C" >&6
18065 else
18066   ac_check_lib_save_LIBS=$LIBS
18067 LIBS="-lsvld  $LIBS"
18068 cat >conftest.$ac_ext <<_ACEOF
18069 /* confdefs.h.  */
18070 _ACEOF
18071 cat confdefs.h >>conftest.$ac_ext
18072 cat >>conftest.$ac_ext <<_ACEOF
18073 /* end confdefs.h.  */
18074
18075 /* Override any gcc2 internal prototype to avoid an error.  */
18076 #ifdef __cplusplus
18077 extern "C"
18078 #endif
18079 /* We use char because int might match the return type of a gcc2
18080    builtin and then its argument prototype would still apply.  */
18081 char dlopen ();
18082 int
18083 main ()
18084 {
18085 dlopen ();
18086   ;
18087   return 0;
18088 }
18089 _ACEOF
18090 rm -f conftest.$ac_objext conftest$ac_exeext
18091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18092   (eval $ac_link) 2>conftest.er1
18093   ac_status=$?
18094   grep -v '^ *+' conftest.er1 >conftest.err
18095   rm -f conftest.er1
18096   cat conftest.err >&5
18097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18098   (exit $ac_status); } &&
18099          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18101   (eval $ac_try) 2>&5
18102   ac_status=$?
18103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18104   (exit $ac_status); }; } &&
18105          { ac_try='test -s conftest$ac_exeext'
18106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18107   (eval $ac_try) 2>&5
18108   ac_status=$?
18109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110   (exit $ac_status); }; }; then
18111   ac_cv_lib_svld_dlopen=yes
18112 else
18113   echo "$as_me: failed program was:" >&5
18114 sed 's/^/| /' conftest.$ac_ext >&5
18115
18116 ac_cv_lib_svld_dlopen=no
18117 fi
18118 rm -f conftest.err conftest.$ac_objext \
18119       conftest$ac_exeext conftest.$ac_ext
18120 LIBS=$ac_check_lib_save_LIBS
18121 fi
18122 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18123 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18124 if test $ac_cv_lib_svld_dlopen = yes; then
18125   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18126 else
18127   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18128 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18129 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18130   echo $ECHO_N "(cached) $ECHO_C" >&6
18131 else
18132   ac_check_lib_save_LIBS=$LIBS
18133 LIBS="-ldld  $LIBS"
18134 cat >conftest.$ac_ext <<_ACEOF
18135 /* confdefs.h.  */
18136 _ACEOF
18137 cat confdefs.h >>conftest.$ac_ext
18138 cat >>conftest.$ac_ext <<_ACEOF
18139 /* end confdefs.h.  */
18140
18141 /* Override any gcc2 internal prototype to avoid an error.  */
18142 #ifdef __cplusplus
18143 extern "C"
18144 #endif
18145 /* We use char because int might match the return type of a gcc2
18146    builtin and then its argument prototype would still apply.  */
18147 char dld_link ();
18148 int
18149 main ()
18150 {
18151 dld_link ();
18152   ;
18153   return 0;
18154 }
18155 _ACEOF
18156 rm -f conftest.$ac_objext conftest$ac_exeext
18157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18158   (eval $ac_link) 2>conftest.er1
18159   ac_status=$?
18160   grep -v '^ *+' conftest.er1 >conftest.err
18161   rm -f conftest.er1
18162   cat conftest.err >&5
18163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164   (exit $ac_status); } &&
18165          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18167   (eval $ac_try) 2>&5
18168   ac_status=$?
18169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170   (exit $ac_status); }; } &&
18171          { ac_try='test -s conftest$ac_exeext'
18172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18173   (eval $ac_try) 2>&5
18174   ac_status=$?
18175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176   (exit $ac_status); }; }; then
18177   ac_cv_lib_dld_dld_link=yes
18178 else
18179   echo "$as_me: failed program was:" >&5
18180 sed 's/^/| /' conftest.$ac_ext >&5
18181
18182 ac_cv_lib_dld_dld_link=no
18183 fi
18184 rm -f conftest.err conftest.$ac_objext \
18185       conftest$ac_exeext conftest.$ac_ext
18186 LIBS=$ac_check_lib_save_LIBS
18187 fi
18188 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18189 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18190 if test $ac_cv_lib_dld_dld_link = yes; then
18191   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18192 fi
18193
18194
18195 fi
18196
18197
18198 fi
18199
18200
18201 fi
18202
18203
18204 fi
18205
18206
18207 fi
18208
18209     ;;
18210   esac
18211
18212   if test "x$lt_cv_dlopen" != xno; then
18213     enable_dlopen=yes
18214   else
18215     enable_dlopen=no
18216   fi
18217
18218   case $lt_cv_dlopen in
18219   dlopen)
18220     save_CPPFLAGS="$CPPFLAGS"
18221     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18222
18223     save_LDFLAGS="$LDFLAGS"
18224     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18225
18226     save_LIBS="$LIBS"
18227     LIBS="$lt_cv_dlopen_libs $LIBS"
18228
18229     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18230 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18231 if test "${lt_cv_dlopen_self+set}" = set; then
18232   echo $ECHO_N "(cached) $ECHO_C" >&6
18233 else
18234           if test "$cross_compiling" = yes; then :
18235   lt_cv_dlopen_self=cross
18236 else
18237   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18238   lt_status=$lt_dlunknown
18239   cat > conftest.$ac_ext <<EOF
18240 #line 18240 "configure"
18241 #include "confdefs.h"
18242
18243 #if HAVE_DLFCN_H
18244 #include <dlfcn.h>
18245 #endif
18246
18247 #include <stdio.h>
18248
18249 #ifdef RTLD_GLOBAL
18250 #  define LT_DLGLOBAL           RTLD_GLOBAL
18251 #else
18252 #  ifdef DL_GLOBAL
18253 #    define LT_DLGLOBAL         DL_GLOBAL
18254 #  else
18255 #    define LT_DLGLOBAL         0
18256 #  endif
18257 #endif
18258
18259 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18260    find out it does not work in some platform. */
18261 #ifndef LT_DLLAZY_OR_NOW
18262 #  ifdef RTLD_LAZY
18263 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18264 #  else
18265 #    ifdef DL_LAZY
18266 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18267 #    else
18268 #      ifdef RTLD_NOW
18269 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18270 #      else
18271 #        ifdef DL_NOW
18272 #          define LT_DLLAZY_OR_NOW      DL_NOW
18273 #        else
18274 #          define LT_DLLAZY_OR_NOW      0
18275 #        endif
18276 #      endif
18277 #    endif
18278 #  endif
18279 #endif
18280
18281 #ifdef __cplusplus
18282 extern "C" void exit (int);
18283 #endif
18284
18285 void fnord() { int i=42;}
18286 int main ()
18287 {
18288   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18289   int status = $lt_dlunknown;
18290
18291   if (self)
18292     {
18293       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18294       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18295       /* dlclose (self); */
18296     }
18297
18298     exit (status);
18299 }
18300 EOF
18301   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18302   (eval $ac_link) 2>&5
18303   ac_status=$?
18304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18306     (./conftest; exit; ) 2>/dev/null
18307     lt_status=$?
18308     case x$lt_status in
18309       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18310       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18311       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18312     esac
18313   else :
18314     # compilation failed
18315     lt_cv_dlopen_self=no
18316   fi
18317 fi
18318 rm -fr conftest*
18319
18320
18321 fi
18322 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18323 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18324
18325     if test "x$lt_cv_dlopen_self" = xyes; then
18326       LDFLAGS="$LDFLAGS $link_static_flag"
18327       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18328 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18329 if test "${lt_cv_dlopen_self_static+set}" = set; then
18330   echo $ECHO_N "(cached) $ECHO_C" >&6
18331 else
18332           if test "$cross_compiling" = yes; then :
18333   lt_cv_dlopen_self_static=cross
18334 else
18335   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18336   lt_status=$lt_dlunknown
18337   cat > conftest.$ac_ext <<EOF
18338 #line 18338 "configure"
18339 #include "confdefs.h"
18340
18341 #if HAVE_DLFCN_H
18342 #include <dlfcn.h>
18343 #endif
18344
18345 #include <stdio.h>
18346
18347 #ifdef RTLD_GLOBAL
18348 #  define LT_DLGLOBAL           RTLD_GLOBAL
18349 #else
18350 #  ifdef DL_GLOBAL
18351 #    define LT_DLGLOBAL         DL_GLOBAL
18352 #  else
18353 #    define LT_DLGLOBAL         0
18354 #  endif
18355 #endif
18356
18357 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18358    find out it does not work in some platform. */
18359 #ifndef LT_DLLAZY_OR_NOW
18360 #  ifdef RTLD_LAZY
18361 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18362 #  else
18363 #    ifdef DL_LAZY
18364 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18365 #    else
18366 #      ifdef RTLD_NOW
18367 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18368 #      else
18369 #        ifdef DL_NOW
18370 #          define LT_DLLAZY_OR_NOW      DL_NOW
18371 #        else
18372 #          define LT_DLLAZY_OR_NOW      0
18373 #        endif
18374 #      endif
18375 #    endif
18376 #  endif
18377 #endif
18378
18379 #ifdef __cplusplus
18380 extern "C" void exit (int);
18381 #endif
18382
18383 void fnord() { int i=42;}
18384 int main ()
18385 {
18386   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18387   int status = $lt_dlunknown;
18388
18389   if (self)
18390     {
18391       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18392       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18393       /* dlclose (self); */
18394     }
18395
18396     exit (status);
18397 }
18398 EOF
18399   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18400   (eval $ac_link) 2>&5
18401   ac_status=$?
18402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18403   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18404     (./conftest; exit; ) 2>/dev/null
18405     lt_status=$?
18406     case x$lt_status in
18407       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18408       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18409       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18410     esac
18411   else :
18412     # compilation failed
18413     lt_cv_dlopen_self_static=no
18414   fi
18415 fi
18416 rm -fr conftest*
18417
18418
18419 fi
18420 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18421 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18422     fi
18423
18424     CPPFLAGS="$save_CPPFLAGS"
18425     LDFLAGS="$save_LDFLAGS"
18426     LIBS="$save_LIBS"
18427     ;;
18428   esac
18429
18430   case $lt_cv_dlopen_self in
18431   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18432   *) enable_dlopen_self=unknown ;;
18433   esac
18434
18435   case $lt_cv_dlopen_self_static in
18436   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18437   *) enable_dlopen_self_static=unknown ;;
18438   esac
18439 fi
18440
18441
18442 # The else clause should only fire when bootstrapping the
18443 # libtool distribution, otherwise you forgot to ship ltmain.sh
18444 # with your package, and you will get complaints that there are
18445 # no rules to generate ltmain.sh.
18446 if test -f "$ltmain"; then
18447   # See if we are running on zsh, and set the options which allow our commands through
18448   # without removal of \ escapes.
18449   if test -n "${ZSH_VERSION+set}" ; then
18450     setopt NO_GLOB_SUBST
18451   fi
18452   # Now quote all the things that may contain metacharacters while being
18453   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18454   # variables and quote the copies for generation of the libtool script.
18455   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18456     SED SHELL STRIP \
18457     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18458     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18459     deplibs_check_method reload_flag reload_cmds need_locks \
18460     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18461     lt_cv_sys_global_symbol_to_c_name_address \
18462     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18463     old_postinstall_cmds old_postuninstall_cmds \
18464     compiler_GCJ \
18465     CC_GCJ \
18466     LD_GCJ \
18467     lt_prog_compiler_wl_GCJ \
18468     lt_prog_compiler_pic_GCJ \
18469     lt_prog_compiler_static_GCJ \
18470     lt_prog_compiler_no_builtin_flag_GCJ \
18471     export_dynamic_flag_spec_GCJ \
18472     thread_safe_flag_spec_GCJ \
18473     whole_archive_flag_spec_GCJ \
18474     enable_shared_with_static_runtimes_GCJ \
18475     old_archive_cmds_GCJ \
18476     old_archive_from_new_cmds_GCJ \
18477     predep_objects_GCJ \
18478     postdep_objects_GCJ \
18479     predeps_GCJ \
18480     postdeps_GCJ \
18481     compiler_lib_search_path_GCJ \
18482     archive_cmds_GCJ \
18483     archive_expsym_cmds_GCJ \
18484     postinstall_cmds_GCJ \
18485     postuninstall_cmds_GCJ \
18486     old_archive_from_expsyms_cmds_GCJ \
18487     allow_undefined_flag_GCJ \
18488     no_undefined_flag_GCJ \
18489     export_symbols_cmds_GCJ \
18490     hardcode_libdir_flag_spec_GCJ \
18491     hardcode_libdir_flag_spec_ld_GCJ \
18492     hardcode_libdir_separator_GCJ \
18493     hardcode_automatic_GCJ \
18494     module_cmds_GCJ \
18495     module_expsym_cmds_GCJ \
18496     lt_cv_prog_compiler_c_o_GCJ \
18497     exclude_expsyms_GCJ \
18498     include_expsyms_GCJ; do
18499
18500     case $var in
18501     old_archive_cmds_GCJ | \
18502     old_archive_from_new_cmds_GCJ | \
18503     archive_cmds_GCJ | \
18504     archive_expsym_cmds_GCJ | \
18505     module_cmds_GCJ | \
18506     module_expsym_cmds_GCJ | \
18507     old_archive_from_expsyms_cmds_GCJ | \
18508     export_symbols_cmds_GCJ | \
18509     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18510     postinstall_cmds | postuninstall_cmds | \
18511     old_postinstall_cmds | old_postuninstall_cmds | \
18512     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18513       # Double-quote double-evaled strings.
18514       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18515       ;;
18516     *)
18517       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18518       ;;
18519     esac
18520   done
18521
18522   case $lt_echo in
18523   *'\$0 --fallback-echo"')
18524     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18525     ;;
18526   esac
18527
18528 cfgfile="$ofile"
18529
18530   cat <<__EOF__ >> "$cfgfile"
18531 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18532
18533 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18534
18535 # Shell to use when invoking shell scripts.
18536 SHELL=$lt_SHELL
18537
18538 # Whether or not to build shared libraries.
18539 build_libtool_libs=$enable_shared
18540
18541 # Whether or not to build static libraries.
18542 build_old_libs=$enable_static
18543
18544 # Whether or not to add -lc for building shared libraries.
18545 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18546
18547 # Whether or not to disallow shared libs when runtime libs are static
18548 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18549
18550 # Whether or not to optimize for fast installation.
18551 fast_install=$enable_fast_install
18552
18553 # The host system.
18554 host_alias=$host_alias
18555 host=$host
18556
18557 # An echo program that does not interpret backslashes.
18558 echo=$lt_echo
18559
18560 # The archiver.
18561 AR=$lt_AR
18562 AR_FLAGS=$lt_AR_FLAGS
18563
18564 # A C compiler.
18565 LTCC=$lt_LTCC
18566
18567 # A language-specific compiler.
18568 CC=$lt_compiler_GCJ
18569
18570 # Is the compiler the GNU C compiler?
18571 with_gcc=$GCC_GCJ
18572
18573 # An ERE matcher.
18574 EGREP=$lt_EGREP
18575
18576 # The linker used to build libraries.
18577 LD=$lt_LD_GCJ
18578
18579 # Whether we need hard or soft links.
18580 LN_S=$lt_LN_S
18581
18582 # A BSD-compatible nm program.
18583 NM=$lt_NM
18584
18585 # A symbol stripping program
18586 STRIP=$lt_STRIP
18587
18588 # Used to examine libraries when file_magic_cmd begins "file"
18589 MAGIC_CMD=$MAGIC_CMD
18590
18591 # Used on cygwin: DLL creation program.
18592 DLLTOOL="$DLLTOOL"
18593
18594 # Used on cygwin: object dumper.
18595 OBJDUMP="$OBJDUMP"
18596
18597 # Used on cygwin: assembler.
18598 AS="$AS"
18599
18600 # The name of the directory that contains temporary libtool files.
18601 objdir=$objdir
18602
18603 # How to create reloadable object files.
18604 reload_flag=$lt_reload_flag
18605 reload_cmds=$lt_reload_cmds
18606
18607 # How to pass a linker flag through the compiler.
18608 wl=$lt_lt_prog_compiler_wl_GCJ
18609
18610 # Object file suffix (normally "o").
18611 objext="$ac_objext"
18612
18613 # Old archive suffix (normally "a").
18614 libext="$libext"
18615
18616 # Shared library suffix (normally ".so").
18617 shrext_cmds='$shrext_cmds'
18618
18619 # Executable file suffix (normally "").
18620 exeext="$exeext"
18621
18622 # Additional compiler flags for building library objects.
18623 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18624 pic_mode=$pic_mode
18625
18626 # What is the maximum length of a command?
18627 max_cmd_len=$lt_cv_sys_max_cmd_len
18628
18629 # Does compiler simultaneously support -c and -o options?
18630 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18631
18632 # Must we lock files when doing compilation ?
18633 need_locks=$lt_need_locks
18634
18635 # Do we need the lib prefix for modules?
18636 need_lib_prefix=$need_lib_prefix
18637
18638 # Do we need a version for libraries?
18639 need_version=$need_version
18640
18641 # Whether dlopen is supported.
18642 dlopen_support=$enable_dlopen
18643
18644 # Whether dlopen of programs is supported.
18645 dlopen_self=$enable_dlopen_self
18646
18647 # Whether dlopen of statically linked programs is supported.
18648 dlopen_self_static=$enable_dlopen_self_static
18649
18650 # Compiler flag to prevent dynamic linking.
18651 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18652
18653 # Compiler flag to turn off builtin functions.
18654 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18655
18656 # Compiler flag to allow reflexive dlopens.
18657 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18658
18659 # Compiler flag to generate shared objects directly from archives.
18660 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18661
18662 # Compiler flag to generate thread-safe objects.
18663 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18664
18665 # Library versioning type.
18666 version_type=$version_type
18667
18668 # Format of library name prefix.
18669 libname_spec=$lt_libname_spec
18670
18671 # List of archive names.  First name is the real one, the rest are links.
18672 # The last name is the one that the linker finds with -lNAME.
18673 library_names_spec=$lt_library_names_spec
18674
18675 # The coded name of the library, if different from the real name.
18676 soname_spec=$lt_soname_spec
18677
18678 # Commands used to build and install an old-style archive.
18679 RANLIB=$lt_RANLIB
18680 old_archive_cmds=$lt_old_archive_cmds_GCJ
18681 old_postinstall_cmds=$lt_old_postinstall_cmds
18682 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18683
18684 # Create an old-style archive from a shared archive.
18685 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18686
18687 # Create a temporary old-style archive to link instead of a shared archive.
18688 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18689
18690 # Commands used to build and install a shared archive.
18691 archive_cmds=$lt_archive_cmds_GCJ
18692 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18693 postinstall_cmds=$lt_postinstall_cmds
18694 postuninstall_cmds=$lt_postuninstall_cmds
18695
18696 # Commands used to build a loadable module (assumed same as above if empty)
18697 module_cmds=$lt_module_cmds_GCJ
18698 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18699
18700 # Commands to strip libraries.
18701 old_striplib=$lt_old_striplib
18702 striplib=$lt_striplib
18703
18704 # Dependencies to place before the objects being linked to create a
18705 # shared library.
18706 predep_objects=$lt_predep_objects_GCJ
18707
18708 # Dependencies to place after the objects being linked to create a
18709 # shared library.
18710 postdep_objects=$lt_postdep_objects_GCJ
18711
18712 # Dependencies to place before the objects being linked to create a
18713 # shared library.
18714 predeps=$lt_predeps_GCJ
18715
18716 # Dependencies to place after the objects being linked to create a
18717 # shared library.
18718 postdeps=$lt_postdeps_GCJ
18719
18720 # The library search path used internally by the compiler when linking
18721 # a shared library.
18722 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18723
18724 # Method to check whether dependent libraries are shared objects.
18725 deplibs_check_method=$lt_deplibs_check_method
18726
18727 # Command to use when deplibs_check_method == file_magic.
18728 file_magic_cmd=$lt_file_magic_cmd
18729
18730 # Flag that allows shared libraries with undefined symbols to be built.
18731 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18732
18733 # Flag that forces no undefined symbols.
18734 no_undefined_flag=$lt_no_undefined_flag_GCJ
18735
18736 # Commands used to finish a libtool library installation in a directory.
18737 finish_cmds=$lt_finish_cmds
18738
18739 # Same as above, but a single script fragment to be evaled but not shown.
18740 finish_eval=$lt_finish_eval
18741
18742 # Take the output of nm and produce a listing of raw symbols and C names.
18743 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18744
18745 # Transform the output of nm in a proper C declaration
18746 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18747
18748 # Transform the output of nm in a C name address pair
18749 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18750
18751 # This is the shared library runtime path variable.
18752 runpath_var=$runpath_var
18753
18754 # This is the shared library path variable.
18755 shlibpath_var=$shlibpath_var
18756
18757 # Is shlibpath searched before the hard-coded library search path?
18758 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18759
18760 # How to hardcode a shared library path into an executable.
18761 hardcode_action=$hardcode_action_GCJ
18762
18763 # Whether we should hardcode library paths into libraries.
18764 hardcode_into_libs=$hardcode_into_libs
18765
18766 # Flag to hardcode \$libdir into a binary during linking.
18767 # This must work even if \$libdir does not exist.
18768 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18769
18770 # If ld is used when linking, flag to hardcode \$libdir into
18771 # a binary during linking. This must work even if \$libdir does
18772 # not exist.
18773 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18774
18775 # Whether we need a single -rpath flag with a separated argument.
18776 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18777
18778 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18779 # resulting binary.
18780 hardcode_direct=$hardcode_direct_GCJ
18781
18782 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18783 # resulting binary.
18784 hardcode_minus_L=$hardcode_minus_L_GCJ
18785
18786 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18787 # the resulting binary.
18788 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18789
18790 # Set to yes if building a shared library automatically hardcodes DIR into the library
18791 # and all subsequent libraries and executables linked against it.
18792 hardcode_automatic=$hardcode_automatic_GCJ
18793
18794 # Variables whose values should be saved in libtool wrapper scripts and
18795 # restored at relink time.
18796 variables_saved_for_relink="$variables_saved_for_relink"
18797
18798 # Whether libtool must link a program against all its dependency libraries.
18799 link_all_deplibs=$link_all_deplibs_GCJ
18800
18801 # Compile-time system search path for libraries
18802 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18803
18804 # Run-time system search path for libraries
18805 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18806
18807 # Fix the shell variable \$srcfile for the compiler.
18808 fix_srcfile_path="$fix_srcfile_path_GCJ"
18809
18810 # Set to yes if exported symbols are required.
18811 always_export_symbols=$always_export_symbols_GCJ
18812
18813 # The commands to list exported symbols.
18814 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18815
18816 # The commands to extract the exported symbol list from a shared archive.
18817 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18818
18819 # Symbols that should not be listed in the preloaded symbols.
18820 exclude_expsyms=$lt_exclude_expsyms_GCJ
18821
18822 # Symbols that must always be exported.
18823 include_expsyms=$lt_include_expsyms_GCJ
18824
18825 # ### END LIBTOOL TAG CONFIG: $tagname
18826
18827 __EOF__
18828
18829
18830 else
18831   # If there is no Makefile yet, we rely on a make rule to execute
18832   # `config.status --recheck' to rerun these tests and create the
18833   # libtool script then.
18834   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18835   if test -f "$ltmain_in"; then
18836     test -f Makefile && make "$ltmain"
18837   fi
18838 fi
18839
18840
18841 ac_ext=c
18842 ac_cpp='$CPP $CPPFLAGS'
18843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18846
18847 CC="$lt_save_CC"
18848
18849         else
18850           tagname=""
18851         fi
18852         ;;
18853
18854       RC)
18855
18856
18857
18858 # Source file extension for RC test sources.
18859 ac_ext=rc
18860
18861 # Object file extension for compiled RC test sources.
18862 objext=o
18863 objext_RC=$objext
18864
18865 # Code to be used in simple compile tests
18866 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18867
18868 # Code to be used in simple link tests
18869 lt_simple_link_test_code="$lt_simple_compile_test_code"
18870
18871 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18872
18873 # If no C compiler was specified, use CC.
18874 LTCC=${LTCC-"$CC"}
18875
18876 # Allow CC to be a program name with arguments.
18877 compiler=$CC
18878
18879
18880 # Allow CC to be a program name with arguments.
18881 lt_save_CC="$CC"
18882 CC=${RC-"windres"}
18883 compiler=$CC
18884 compiler_RC=$CC
18885 lt_cv_prog_compiler_c_o_RC=yes
18886
18887 # The else clause should only fire when bootstrapping the
18888 # libtool distribution, otherwise you forgot to ship ltmain.sh
18889 # with your package, and you will get complaints that there are
18890 # no rules to generate ltmain.sh.
18891 if test -f "$ltmain"; then
18892   # See if we are running on zsh, and set the options which allow our commands through
18893   # without removal of \ escapes.
18894   if test -n "${ZSH_VERSION+set}" ; then
18895     setopt NO_GLOB_SUBST
18896   fi
18897   # Now quote all the things that may contain metacharacters while being
18898   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18899   # variables and quote the copies for generation of the libtool script.
18900   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18901     SED SHELL STRIP \
18902     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18903     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18904     deplibs_check_method reload_flag reload_cmds need_locks \
18905     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18906     lt_cv_sys_global_symbol_to_c_name_address \
18907     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18908     old_postinstall_cmds old_postuninstall_cmds \
18909     compiler_RC \
18910     CC_RC \
18911     LD_RC \
18912     lt_prog_compiler_wl_RC \
18913     lt_prog_compiler_pic_RC \
18914     lt_prog_compiler_static_RC \
18915     lt_prog_compiler_no_builtin_flag_RC \
18916     export_dynamic_flag_spec_RC \
18917     thread_safe_flag_spec_RC \
18918     whole_archive_flag_spec_RC \
18919     enable_shared_with_static_runtimes_RC \
18920     old_archive_cmds_RC \
18921     old_archive_from_new_cmds_RC \
18922     predep_objects_RC \
18923     postdep_objects_RC \
18924     predeps_RC \
18925     postdeps_RC \
18926     compiler_lib_search_path_RC \
18927     archive_cmds_RC \
18928     archive_expsym_cmds_RC \
18929     postinstall_cmds_RC \
18930     postuninstall_cmds_RC \
18931     old_archive_from_expsyms_cmds_RC \
18932     allow_undefined_flag_RC \
18933     no_undefined_flag_RC \
18934     export_symbols_cmds_RC \
18935     hardcode_libdir_flag_spec_RC \
18936     hardcode_libdir_flag_spec_ld_RC \
18937     hardcode_libdir_separator_RC \
18938     hardcode_automatic_RC \
18939     module_cmds_RC \
18940     module_expsym_cmds_RC \
18941     lt_cv_prog_compiler_c_o_RC \
18942     exclude_expsyms_RC \
18943     include_expsyms_RC; do
18944
18945     case $var in
18946     old_archive_cmds_RC | \
18947     old_archive_from_new_cmds_RC | \
18948     archive_cmds_RC | \
18949     archive_expsym_cmds_RC | \
18950     module_cmds_RC | \
18951     module_expsym_cmds_RC | \
18952     old_archive_from_expsyms_cmds_RC | \
18953     export_symbols_cmds_RC | \
18954     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18955     postinstall_cmds | postuninstall_cmds | \
18956     old_postinstall_cmds | old_postuninstall_cmds | \
18957     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18958       # Double-quote double-evaled strings.
18959       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18960       ;;
18961     *)
18962       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18963       ;;
18964     esac
18965   done
18966
18967   case $lt_echo in
18968   *'\$0 --fallback-echo"')
18969     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18970     ;;
18971   esac
18972
18973 cfgfile="$ofile"
18974
18975   cat <<__EOF__ >> "$cfgfile"
18976 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18977
18978 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18979
18980 # Shell to use when invoking shell scripts.
18981 SHELL=$lt_SHELL
18982
18983 # Whether or not to build shared libraries.
18984 build_libtool_libs=$enable_shared
18985
18986 # Whether or not to build static libraries.
18987 build_old_libs=$enable_static
18988
18989 # Whether or not to add -lc for building shared libraries.
18990 build_libtool_need_lc=$archive_cmds_need_lc_RC
18991
18992 # Whether or not to disallow shared libs when runtime libs are static
18993 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18994
18995 # Whether or not to optimize for fast installation.
18996 fast_install=$enable_fast_install
18997
18998 # The host system.
18999 host_alias=$host_alias
19000 host=$host
19001
19002 # An echo program that does not interpret backslashes.
19003 echo=$lt_echo
19004
19005 # The archiver.
19006 AR=$lt_AR
19007 AR_FLAGS=$lt_AR_FLAGS
19008
19009 # A C compiler.
19010 LTCC=$lt_LTCC
19011
19012 # A language-specific compiler.
19013 CC=$lt_compiler_RC
19014
19015 # Is the compiler the GNU C compiler?
19016 with_gcc=$GCC_RC
19017
19018 # An ERE matcher.
19019 EGREP=$lt_EGREP
19020
19021 # The linker used to build libraries.
19022 LD=$lt_LD_RC
19023
19024 # Whether we need hard or soft links.
19025 LN_S=$lt_LN_S
19026
19027 # A BSD-compatible nm program.
19028 NM=$lt_NM
19029
19030 # A symbol stripping program
19031 STRIP=$lt_STRIP
19032
19033 # Used to examine libraries when file_magic_cmd begins "file"
19034 MAGIC_CMD=$MAGIC_CMD
19035
19036 # Used on cygwin: DLL creation program.
19037 DLLTOOL="$DLLTOOL"
19038
19039 # Used on cygwin: object dumper.
19040 OBJDUMP="$OBJDUMP"
19041
19042 # Used on cygwin: assembler.
19043 AS="$AS"
19044
19045 # The name of the directory that contains temporary libtool files.
19046 objdir=$objdir
19047
19048 # How to create reloadable object files.
19049 reload_flag=$lt_reload_flag
19050 reload_cmds=$lt_reload_cmds
19051
19052 # How to pass a linker flag through the compiler.
19053 wl=$lt_lt_prog_compiler_wl_RC
19054
19055 # Object file suffix (normally "o").
19056 objext="$ac_objext"
19057
19058 # Old archive suffix (normally "a").
19059 libext="$libext"
19060
19061 # Shared library suffix (normally ".so").
19062 shrext_cmds='$shrext_cmds'
19063
19064 # Executable file suffix (normally "").
19065 exeext="$exeext"
19066
19067 # Additional compiler flags for building library objects.
19068 pic_flag=$lt_lt_prog_compiler_pic_RC
19069 pic_mode=$pic_mode
19070
19071 # What is the maximum length of a command?
19072 max_cmd_len=$lt_cv_sys_max_cmd_len
19073
19074 # Does compiler simultaneously support -c and -o options?
19075 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19076
19077 # Must we lock files when doing compilation ?
19078 need_locks=$lt_need_locks
19079
19080 # Do we need the lib prefix for modules?
19081 need_lib_prefix=$need_lib_prefix
19082
19083 # Do we need a version for libraries?
19084 need_version=$need_version
19085
19086 # Whether dlopen is supported.
19087 dlopen_support=$enable_dlopen
19088
19089 # Whether dlopen of programs is supported.
19090 dlopen_self=$enable_dlopen_self
19091
19092 # Whether dlopen of statically linked programs is supported.
19093 dlopen_self_static=$enable_dlopen_self_static
19094
19095 # Compiler flag to prevent dynamic linking.
19096 link_static_flag=$lt_lt_prog_compiler_static_RC
19097
19098 # Compiler flag to turn off builtin functions.
19099 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19100
19101 # Compiler flag to allow reflexive dlopens.
19102 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19103
19104 # Compiler flag to generate shared objects directly from archives.
19105 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19106
19107 # Compiler flag to generate thread-safe objects.
19108 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19109
19110 # Library versioning type.
19111 version_type=$version_type
19112
19113 # Format of library name prefix.
19114 libname_spec=$lt_libname_spec
19115
19116 # List of archive names.  First name is the real one, the rest are links.
19117 # The last name is the one that the linker finds with -lNAME.
19118 library_names_spec=$lt_library_names_spec
19119
19120 # The coded name of the library, if different from the real name.
19121 soname_spec=$lt_soname_spec
19122
19123 # Commands used to build and install an old-style archive.
19124 RANLIB=$lt_RANLIB
19125 old_archive_cmds=$lt_old_archive_cmds_RC
19126 old_postinstall_cmds=$lt_old_postinstall_cmds
19127 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19128
19129 # Create an old-style archive from a shared archive.
19130 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19131
19132 # Create a temporary old-style archive to link instead of a shared archive.
19133 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19134
19135 # Commands used to build and install a shared archive.
19136 archive_cmds=$lt_archive_cmds_RC
19137 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19138 postinstall_cmds=$lt_postinstall_cmds
19139 postuninstall_cmds=$lt_postuninstall_cmds
19140
19141 # Commands used to build a loadable module (assumed same as above if empty)
19142 module_cmds=$lt_module_cmds_RC
19143 module_expsym_cmds=$lt_module_expsym_cmds_RC
19144
19145 # Commands to strip libraries.
19146 old_striplib=$lt_old_striplib
19147 striplib=$lt_striplib
19148
19149 # Dependencies to place before the objects being linked to create a
19150 # shared library.
19151 predep_objects=$lt_predep_objects_RC
19152
19153 # Dependencies to place after the objects being linked to create a
19154 # shared library.
19155 postdep_objects=$lt_postdep_objects_RC
19156
19157 # Dependencies to place before the objects being linked to create a
19158 # shared library.
19159 predeps=$lt_predeps_RC
19160
19161 # Dependencies to place after the objects being linked to create a
19162 # shared library.
19163 postdeps=$lt_postdeps_RC
19164
19165 # The library search path used internally by the compiler when linking
19166 # a shared library.
19167 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19168
19169 # Method to check whether dependent libraries are shared objects.
19170 deplibs_check_method=$lt_deplibs_check_method
19171
19172 # Command to use when deplibs_check_method == file_magic.
19173 file_magic_cmd=$lt_file_magic_cmd
19174
19175 # Flag that allows shared libraries with undefined symbols to be built.
19176 allow_undefined_flag=$lt_allow_undefined_flag_RC
19177
19178 # Flag that forces no undefined symbols.
19179 no_undefined_flag=$lt_no_undefined_flag_RC
19180
19181 # Commands used to finish a libtool library installation in a directory.
19182 finish_cmds=$lt_finish_cmds
19183
19184 # Same as above, but a single script fragment to be evaled but not shown.
19185 finish_eval=$lt_finish_eval
19186
19187 # Take the output of nm and produce a listing of raw symbols and C names.
19188 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19189
19190 # Transform the output of nm in a proper C declaration
19191 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19192
19193 # Transform the output of nm in a C name address pair
19194 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19195
19196 # This is the shared library runtime path variable.
19197 runpath_var=$runpath_var
19198
19199 # This is the shared library path variable.
19200 shlibpath_var=$shlibpath_var
19201
19202 # Is shlibpath searched before the hard-coded library search path?
19203 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19204
19205 # How to hardcode a shared library path into an executable.
19206 hardcode_action=$hardcode_action_RC
19207
19208 # Whether we should hardcode library paths into libraries.
19209 hardcode_into_libs=$hardcode_into_libs
19210
19211 # Flag to hardcode \$libdir into a binary during linking.
19212 # This must work even if \$libdir does not exist.
19213 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19214
19215 # If ld is used when linking, flag to hardcode \$libdir into
19216 # a binary during linking. This must work even if \$libdir does
19217 # not exist.
19218 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19219
19220 # Whether we need a single -rpath flag with a separated argument.
19221 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19222
19223 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19224 # resulting binary.
19225 hardcode_direct=$hardcode_direct_RC
19226
19227 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19228 # resulting binary.
19229 hardcode_minus_L=$hardcode_minus_L_RC
19230
19231 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19232 # the resulting binary.
19233 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19234
19235 # Set to yes if building a shared library automatically hardcodes DIR into the library
19236 # and all subsequent libraries and executables linked against it.
19237 hardcode_automatic=$hardcode_automatic_RC
19238
19239 # Variables whose values should be saved in libtool wrapper scripts and
19240 # restored at relink time.
19241 variables_saved_for_relink="$variables_saved_for_relink"
19242
19243 # Whether libtool must link a program against all its dependency libraries.
19244 link_all_deplibs=$link_all_deplibs_RC
19245
19246 # Compile-time system search path for libraries
19247 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19248
19249 # Run-time system search path for libraries
19250 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19251
19252 # Fix the shell variable \$srcfile for the compiler.
19253 fix_srcfile_path="$fix_srcfile_path_RC"
19254
19255 # Set to yes if exported symbols are required.
19256 always_export_symbols=$always_export_symbols_RC
19257
19258 # The commands to list exported symbols.
19259 export_symbols_cmds=$lt_export_symbols_cmds_RC
19260
19261 # The commands to extract the exported symbol list from a shared archive.
19262 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19263
19264 # Symbols that should not be listed in the preloaded symbols.
19265 exclude_expsyms=$lt_exclude_expsyms_RC
19266
19267 # Symbols that must always be exported.
19268 include_expsyms=$lt_include_expsyms_RC
19269
19270 # ### END LIBTOOL TAG CONFIG: $tagname
19271
19272 __EOF__
19273
19274
19275 else
19276   # If there is no Makefile yet, we rely on a make rule to execute
19277   # `config.status --recheck' to rerun these tests and create the
19278   # libtool script then.
19279   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19280   if test -f "$ltmain_in"; then
19281     test -f Makefile && make "$ltmain"
19282   fi
19283 fi
19284
19285
19286 ac_ext=c
19287 ac_cpp='$CPP $CPPFLAGS'
19288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19291
19292 CC="$lt_save_CC"
19293
19294         ;;
19295
19296       *)
19297         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19298 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19299    { (exit 1); exit 1; }; }
19300         ;;
19301       esac
19302
19303       # Append the new tag name to the list of available tags.
19304       if test -n "$tagname" ; then
19305       available_tags="$available_tags $tagname"
19306     fi
19307     fi
19308   done
19309   IFS="$lt_save_ifs"
19310
19311   # Now substitute the updated list of available tags.
19312   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19313     mv "${ofile}T" "$ofile"
19314     chmod +x "$ofile"
19315   else
19316     rm -f "${ofile}T"
19317     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19318 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19319    { (exit 1); exit 1; }; }
19320   fi
19321 fi
19322
19323
19324
19325 # This can be used to rebuild libtool when needed
19326 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19327
19328 # Always use our own libtool.
19329 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19330
19331 # Prevent multiple expansion
19332
19333
19334
19335
19336
19337
19338
19339
19340
19341
19342
19343
19344 # Check whether --with-system-libtool or --without-system-libtool was given.
19345 if test "${with_system_libtool+set}" = set; then
19346   withval="$with_system_libtool"
19347    # Extract the first word of "libtool", so it can be a program name with args.
19348 set dummy libtool; ac_word=$2
19349 echo "$as_me:$LINENO: checking for $ac_word" >&5
19350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19351 if test "${ac_cv_path_LIBTOOL+set}" = set; then
19352   echo $ECHO_N "(cached) $ECHO_C" >&6
19353 else
19354   case $LIBTOOL in
19355   [\\/]* | ?:[\\/]*)
19356   ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
19357   ;;
19358   *)
19359   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19360 as_dummy="$PATH:/usr/local/bin"
19361 for as_dir in $as_dummy
19362 do
19363   IFS=$as_save_IFS
19364   test -z "$as_dir" && as_dir=.
19365   for ac_exec_ext in '' $ac_executable_extensions; do
19366   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19367     ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
19368     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19369     break 2
19370   fi
19371 done
19372 done
19373
19374   ;;
19375 esac
19376 fi
19377 LIBTOOL=$ac_cv_path_LIBTOOL
19378
19379 if test -n "$LIBTOOL"; then
19380   echo "$as_me:$LINENO: result: $LIBTOOL" >&5
19381 echo "${ECHO_T}$LIBTOOL" >&6
19382 else
19383   echo "$as_me:$LINENO: result: no" >&5
19384 echo "${ECHO_T}no" >&6
19385 fi
19386
19387 else
19388
19389   LIBTOOL="`pwd`/libtool"
19390
19391
19392
19393
19394
19395
19396
19397
19398
19399
19400
19401
19402
19403
19404 fi;
19405
19406
19407
19408 # Check whether --enable-strict-dependencies or --disable-strict-dependencies was given.
19409 if test "${enable_strict_dependencies+set}" = set; then
19410   enableval="$enable_strict_dependencies"
19411
19412 fi;
19413
19414 logdir='${localstatedir}/log/radius'
19415 echo "$as_me:$LINENO: checking logdir" >&5
19416 echo $ECHO_N "checking logdir... $ECHO_C" >&6
19417
19418 # Check whether --with-logdir or --without-logdir was given.
19419 if test "${with_logdir+set}" = set; then
19420   withval="$with_logdir"
19421    case "$withval" in
19422     no)
19423         { { echo "$as_me:$LINENO: error: Need logdir" >&5
19424 echo "$as_me: error: Need logdir" >&2;}
19425    { (exit 1); exit 1; }; }
19426         ;;
19427     yes)
19428         ;;
19429     *)
19430         logdir="$withval"
19431         ;;
19432   esac
19433
19434 fi;
19435
19436 echo "$as_me:$LINENO: result: $logdir" >&5
19437 echo "${ECHO_T}$logdir" >&6
19438
19439 radacctdir='${logdir}/radacct'
19440 echo "$as_me:$LINENO: checking radacctdir" >&5
19441 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6
19442
19443 # Check whether --with-radacctdir or --without-radacctdir was given.
19444 if test "${with_radacctdir+set}" = set; then
19445   withval="$with_radacctdir"
19446    case "$withval" in
19447     no)
19448         { { echo "$as_me:$LINENO: error: Need radacctdir" >&5
19449 echo "$as_me: error: Need radacctdir" >&2;}
19450    { (exit 1); exit 1; }; }
19451         ;;
19452     yes)
19453         ;;
19454     *)
19455         radacctdir="$withval"
19456         ;;
19457   esac
19458
19459 fi;
19460
19461 echo "$as_me:$LINENO: result: $radacctdir" >&5
19462 echo "${ECHO_T}$radacctdir" >&6
19463
19464 raddbdir='${sysconfdir}/raddb'
19465 echo "$as_me:$LINENO: checking raddbdir" >&5
19466 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6
19467
19468 # Check whether --with-raddbdir or --without-raddbdir was given.
19469 if test "${with_raddbdir+set}" = set; then
19470   withval="$with_raddbdir"
19471    case "$withval" in
19472     no)
19473         { { echo "$as_me:$LINENO: error: Need raddbdir" >&5
19474 echo "$as_me: error: Need raddbdir" >&2;}
19475    { (exit 1); exit 1; }; }
19476         ;;
19477     yes)
19478         ;;
19479     *)
19480         raddbdir="$withval"
19481         ;;
19482   esac
19483
19484 fi;
19485
19486 echo "$as_me:$LINENO: result: $raddbdir" >&5
19487 echo "${ECHO_T}$raddbdir" >&6
19488
19489 ASCEND_BINARY=yes
19490
19491 # Check whether --with-ascend-binary or --without-ascend-binary was given.
19492 if test "${with_ascend_binary+set}" = set; then
19493   withval="$with_ascend_binary"
19494    case "$withval" in
19495     yes)
19496         ;;
19497     *)
19498         ASCEND_BINARY=""
19499   esac
19500
19501 fi;
19502 if test "X$ASCEND_BINARY" = "Xyes"; then
19503
19504 cat >>confdefs.h <<\_ACEOF
19505 #define ASCEND_BINARY
19506 _ACEOF
19507
19508 fi
19509
19510 WITH_THREADS=yes
19511
19512 # Check whether --with-threads or --without-threads was given.
19513 if test "${with_threads+set}" = set; then
19514   withval="$with_threads"
19515    case "$withval" in
19516     yes)
19517         ;;
19518     *)
19519         WITH_THREADS=""
19520   esac
19521
19522 fi;
19523
19524 WITH_SNMP=yes
19525
19526 # Check whether --with-snmp or --without-snmp was given.
19527 if test "${with_snmp+set}" = set; then
19528   withval="$with_snmp"
19529    case "$withval" in
19530     yes)
19531         ;;
19532     *)
19533         WITH_SNMP=no
19534   esac
19535
19536 fi;
19537
19538
19539 STATIC_MODULES=
19540
19541 # Check whether --with-static_modules or --without-static_modules was given.
19542 if test "${with_static_modules+set}" = set; then
19543   withval="$with_static_modules"
19544
19545   for i in $withval; do
19546     STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
19547   done
19548
19549 fi;
19550
19551 # Check whether --enable-developer or --disable-developer was given.
19552 if test "${enable_developer+set}" = set; then
19553   enableval="$enable_developer"
19554    case "$enableval" in
19555     no)
19556         developer=no
19557         ;;
19558     *)
19559         developer=yes
19560   esac
19561
19562 fi;
19563
19564 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
19565     developer="yes"
19566 fi
19567
19568 EXPERIMENTAL=
19569
19570 # Check whether --with-experimental-modules or --without-experimental-modules was given.
19571 if test "${with_experimental_modules+set}" = set; then
19572   withval="$with_experimental_modules"
19573    case "$withval" in
19574     yes)
19575         EXPERIMENTAL=yes
19576         ;;
19577     *)
19578   esac
19579
19580 fi;
19581
19582 OPENSSL_INCLUDE_DIR=
19583
19584 # Check whether --with-openssl-includes or --without-openssl-includes was given.
19585 if test "${with_openssl_includes+set}" = set; then
19586   withval="$with_openssl_includes"
19587    case "$withval" in
19588     *) OPENSSL_INCLUDE_DIR="$withval"
19589         ;;
19590   esac
19591
19592 fi;
19593
19594 OPENSSL_LIB_DIR=
19595
19596 # Check whether --with-openssl-libraries or --without-openssl-libraries was given.
19597 if test "${with_openssl_libraries+set}" = set; then
19598   withval="$with_openssl_libraries"
19599    case "$withval" in
19600     *) OPENSSL_LIB_DIR="$withval"
19601         ;;
19602   esac
19603
19604 fi;
19605
19606
19607
19608 # Check whether --with-rlm-FOO-lib-dir or --without-rlm-FOO-lib-dir was given.
19609 if test "${with_rlm_FOO_lib_dir+set}" = set; then
19610   withval="$with_rlm_FOO_lib_dir"
19611    case "$withval" in
19612     *)
19613         ;;
19614   esac
19615
19616 fi;
19617
19618
19619 # Check whether --with-rlm-FOO-include-dir or --without-rlm-FOO-include-dir was given.
19620 if test "${with_rlm_FOO_include_dir+set}" = set; then
19621   withval="$with_rlm_FOO_include_dir"
19622    case "$withval" in
19623     *)
19624         ;;
19625   esac
19626
19627 fi;
19628
19629
19630 WITH_UDPFROMTO=no
19631
19632 # Check whether --with-udpfromto or --without-udpfromto was given.
19633 if test "${with_udpfromto+set}" = set; then
19634   withval="$with_udpfromto"
19635    case "$withval" in
19636     yes)
19637         WITH_UDPFROMTO=yes
19638         ;;
19639     *)
19640         WITH_UDPFROMTO=no
19641   esac
19642
19643 fi;
19644
19645 if test "x$WITH_UDPFROMTO" = "xyes"; then
19646
19647 cat >>confdefs.h <<\_ACEOF
19648 #define WITH_UDPFROMTO
19649 _ACEOF
19650
19651 fi
19652
19653
19654 CHECKRAD=checkrad.pl
19655 # Extract the first word of "perl", so it can be a program name with args.
19656 set dummy perl; ac_word=$2
19657 echo "$as_me:$LINENO: checking for $ac_word" >&5
19658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19659 if test "${ac_cv_path_PERL+set}" = set; then
19660   echo $ECHO_N "(cached) $ECHO_C" >&6
19661 else
19662   case $PERL in
19663   [\\/]* | ?:[\\/]*)
19664   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19665   ;;
19666   *)
19667   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19668 for as_dir in $PATH
19669 do
19670   IFS=$as_save_IFS
19671   test -z "$as_dir" && as_dir=.
19672   for ac_exec_ext in '' $ac_executable_extensions; do
19673   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19674     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19675     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19676     break 2
19677   fi
19678 done
19679 done
19680
19681   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
19682   ;;
19683 esac
19684 fi
19685 PERL=$ac_cv_path_PERL
19686
19687 if test -n "$PERL"; then
19688   echo "$as_me:$LINENO: result: $PERL" >&5
19689 echo "${ECHO_T}$PERL" >&6
19690 else
19691   echo "$as_me:$LINENO: result: no" >&5
19692 echo "${ECHO_T}no" >&6
19693 fi
19694
19695 if test "x$ac_cv_path_PERL" = "x"; then
19696   { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
19697 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19698 fi
19699 # Extract the first word of "snmpget", so it can be a program name with args.
19700 set dummy snmpget; ac_word=$2
19701 echo "$as_me:$LINENO: checking for $ac_word" >&5
19702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19703 if test "${ac_cv_path_SNMPGET+set}" = set; then
19704   echo $ECHO_N "(cached) $ECHO_C" >&6
19705 else
19706   case $SNMPGET in
19707   [\\/]* | ?:[\\/]*)
19708   ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
19709   ;;
19710   *)
19711   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19712 for as_dir in $PATH
19713 do
19714   IFS=$as_save_IFS
19715   test -z "$as_dir" && as_dir=.
19716   for ac_exec_ext in '' $ac_executable_extensions; do
19717   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19718     ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
19719     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19720     break 2
19721   fi
19722 done
19723 done
19724
19725   ;;
19726 esac
19727 fi
19728 SNMPGET=$ac_cv_path_SNMPGET
19729
19730 if test -n "$SNMPGET"; then
19731   echo "$as_me:$LINENO: result: $SNMPGET" >&5
19732 echo "${ECHO_T}$SNMPGET" >&6
19733 else
19734   echo "$as_me:$LINENO: result: no" >&5
19735 echo "${ECHO_T}no" >&6
19736 fi
19737
19738 if test "x$ac_cv_path_SNMPGET" = "x"; then
19739   { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
19740 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19741 fi
19742
19743 # Extract the first word of "snmpwalk", so it can be a program name with args.
19744 set dummy snmpwalk; ac_word=$2
19745 echo "$as_me:$LINENO: checking for $ac_word" >&5
19746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19747 if test "${ac_cv_path_SNMPWALK+set}" = set; then
19748   echo $ECHO_N "(cached) $ECHO_C" >&6
19749 else
19750   case $SNMPWALK in
19751   [\\/]* | ?:[\\/]*)
19752   ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
19753   ;;
19754   *)
19755   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19756 for as_dir in $PATH
19757 do
19758   IFS=$as_save_IFS
19759   test -z "$as_dir" && as_dir=.
19760   for ac_exec_ext in '' $ac_executable_extensions; do
19761   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19762     ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
19763     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19764     break 2
19765   fi
19766 done
19767 done
19768
19769   ;;
19770 esac
19771 fi
19772 SNMPWALK=$ac_cv_path_SNMPWALK
19773
19774 if test -n "$SNMPWALK"; then
19775   echo "$as_me:$LINENO: result: $SNMPWALK" >&5
19776 echo "${ECHO_T}$SNMPWALK" >&6
19777 else
19778   echo "$as_me:$LINENO: result: no" >&5
19779 echo "${ECHO_T}no" >&6
19780 fi
19781
19782 if test "x$ac_cv_path_SNMPWALK" = "x"; then
19783   { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
19784 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19785 fi
19786
19787 # Extract the first word of "rusers", so it can be a program name with args.
19788 set dummy rusers; ac_word=$2
19789 echo "$as_me:$LINENO: checking for $ac_word" >&5
19790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19791 if test "${ac_cv_path_RUSERS+set}" = set; then
19792   echo $ECHO_N "(cached) $ECHO_C" >&6
19793 else
19794   case $RUSERS in
19795   [\\/]* | ?:[\\/]*)
19796   ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
19797   ;;
19798   *)
19799   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19800 for as_dir in $PATH
19801 do
19802   IFS=$as_save_IFS
19803   test -z "$as_dir" && as_dir=.
19804   for ac_exec_ext in '' $ac_executable_extensions; do
19805   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19806     ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
19807     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19808     break 2
19809   fi
19810 done
19811 done
19812
19813   test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
19814   ;;
19815 esac
19816 fi
19817 RUSERS=$ac_cv_path_RUSERS
19818
19819 if test -n "$RUSERS"; then
19820   echo "$as_me:$LINENO: result: $RUSERS" >&5
19821 echo "${ECHO_T}$RUSERS" >&6
19822 else
19823   echo "$as_me:$LINENO: result: no" >&5
19824 echo "${ECHO_T}no" >&6
19825 fi
19826
19827
19828 missing_dir=`cd $ac_aux_dir && pwd`
19829 # expand $ac_aux_dir to an absolute path
19830 am_aux_dir=`cd $ac_aux_dir && pwd`
19831
19832 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
19833 # Use eval to expand $SHELL
19834 if eval "$MISSING --run true"; then
19835   am_missing_run="$MISSING --run "
19836 else
19837   am_missing_run=
19838   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
19839 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
19840 fi
19841
19842
19843 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
19844
19845
19846 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
19847
19848
19849 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
19850
19851
19852 # Extract the first word of "locate", so it can be a program name with args.
19853 set dummy locate; ac_word=$2
19854 echo "$as_me:$LINENO: checking for $ac_word" >&5
19855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19856 if test "${ac_cv_path_LOCATE+set}" = set; then
19857   echo $ECHO_N "(cached) $ECHO_C" >&6
19858 else
19859   case $LOCATE in
19860   [\\/]* | ?:[\\/]*)
19861   ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
19862   ;;
19863   *)
19864   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19865 for as_dir in $PATH
19866 do
19867   IFS=$as_save_IFS
19868   test -z "$as_dir" && as_dir=.
19869   for ac_exec_ext in '' $ac_executable_extensions; do
19870   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19871     ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
19872     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19873     break 2
19874   fi
19875 done
19876 done
19877
19878   ;;
19879 esac
19880 fi
19881 LOCATE=$ac_cv_path_LOCATE
19882
19883 if test -n "$LOCATE"; then
19884   echo "$as_me:$LINENO: result: $LOCATE" >&5
19885 echo "${ECHO_T}$LOCATE" >&6
19886 else
19887   echo "$as_me:$LINENO: result: no" >&5
19888 echo "${ECHO_T}no" >&6
19889 fi
19890
19891 # Extract the first word of "dirname", so it can be a program name with args.
19892 set dummy dirname; ac_word=$2
19893 echo "$as_me:$LINENO: checking for $ac_word" >&5
19894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19895 if test "${ac_cv_path_DIRNAME+set}" = set; then
19896   echo $ECHO_N "(cached) $ECHO_C" >&6
19897 else
19898   case $DIRNAME in
19899   [\\/]* | ?:[\\/]*)
19900   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
19901   ;;
19902   *)
19903   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19904 for as_dir in $PATH
19905 do
19906   IFS=$as_save_IFS
19907   test -z "$as_dir" && as_dir=.
19908   for ac_exec_ext in '' $ac_executable_extensions; do
19909   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19910     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
19911     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19912     break 2
19913   fi
19914 done
19915 done
19916
19917   ;;
19918 esac
19919 fi
19920 DIRNAME=$ac_cv_path_DIRNAME
19921
19922 if test -n "$DIRNAME"; then
19923   echo "$as_me:$LINENO: result: $DIRNAME" >&5
19924 echo "${ECHO_T}$DIRNAME" >&6
19925 else
19926   echo "$as_me:$LINENO: result: no" >&5
19927 echo "${ECHO_T}no" >&6
19928 fi
19929
19930 # Extract the first word of "grep", so it can be a program name with args.
19931 set dummy grep; ac_word=$2
19932 echo "$as_me:$LINENO: checking for $ac_word" >&5
19933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19934 if test "${ac_cv_path_GREP+set}" = set; then
19935   echo $ECHO_N "(cached) $ECHO_C" >&6
19936 else
19937   case $GREP in
19938   [\\/]* | ?:[\\/]*)
19939   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
19940   ;;
19941   *)
19942   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19943 for as_dir in $PATH
19944 do
19945   IFS=$as_save_IFS
19946   test -z "$as_dir" && as_dir=.
19947   for ac_exec_ext in '' $ac_executable_extensions; do
19948   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19949     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
19950     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19951     break 2
19952   fi
19953 done
19954 done
19955
19956   ;;
19957 esac
19958 fi
19959 GREP=$ac_cv_path_GREP
19960
19961 if test -n "$GREP"; then
19962   echo "$as_me:$LINENO: result: $GREP" >&5
19963 echo "${ECHO_T}$GREP" >&6
19964 else
19965   echo "$as_me:$LINENO: result: no" >&5
19966 echo "${ECHO_T}no" >&6
19967 fi
19968
19969
19970
19971 old_CFLAGS=$CFLAGS
19972 if test "x$WITH_THREADS" = "xyes"; then
19973   if test $ac_cv_prog_suncc = "yes"; then
19974     CFLAGS="$CFLAGS -mt"
19975   fi
19976
19977
19978 for ac_header in pthread.h
19979 do
19980 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19981 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19982   echo "$as_me:$LINENO: checking for $ac_header" >&5
19983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19984 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19985   echo $ECHO_N "(cached) $ECHO_C" >&6
19986 fi
19987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19988 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19989 else
19990   # Is the header compilable?
19991 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19992 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19993 cat >conftest.$ac_ext <<_ACEOF
19994 /* confdefs.h.  */
19995 _ACEOF
19996 cat confdefs.h >>conftest.$ac_ext
19997 cat >>conftest.$ac_ext <<_ACEOF
19998 /* end confdefs.h.  */
19999 $ac_includes_default
20000 #include <$ac_header>
20001 _ACEOF
20002 rm -f conftest.$ac_objext
20003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20004   (eval $ac_compile) 2>conftest.er1
20005   ac_status=$?
20006   grep -v '^ *+' conftest.er1 >conftest.err
20007   rm -f conftest.er1
20008   cat conftest.err >&5
20009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20010   (exit $ac_status); } &&
20011          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20013   (eval $ac_try) 2>&5
20014   ac_status=$?
20015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016   (exit $ac_status); }; } &&
20017          { ac_try='test -s conftest.$ac_objext'
20018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20019   (eval $ac_try) 2>&5
20020   ac_status=$?
20021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022   (exit $ac_status); }; }; then
20023   ac_header_compiler=yes
20024 else
20025   echo "$as_me: failed program was:" >&5
20026 sed 's/^/| /' conftest.$ac_ext >&5
20027
20028 ac_header_compiler=no
20029 fi
20030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20031 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20032 echo "${ECHO_T}$ac_header_compiler" >&6
20033
20034 # Is the header present?
20035 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20036 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20037 cat >conftest.$ac_ext <<_ACEOF
20038 /* confdefs.h.  */
20039 _ACEOF
20040 cat confdefs.h >>conftest.$ac_ext
20041 cat >>conftest.$ac_ext <<_ACEOF
20042 /* end confdefs.h.  */
20043 #include <$ac_header>
20044 _ACEOF
20045 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20046   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20047   ac_status=$?
20048   grep -v '^ *+' conftest.er1 >conftest.err
20049   rm -f conftest.er1
20050   cat conftest.err >&5
20051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052   (exit $ac_status); } >/dev/null; then
20053   if test -s conftest.err; then
20054     ac_cpp_err=$ac_c_preproc_warn_flag
20055     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20056   else
20057     ac_cpp_err=
20058   fi
20059 else
20060   ac_cpp_err=yes
20061 fi
20062 if test -z "$ac_cpp_err"; then
20063   ac_header_preproc=yes
20064 else
20065   echo "$as_me: failed program was:" >&5
20066 sed 's/^/| /' conftest.$ac_ext >&5
20067
20068   ac_header_preproc=no
20069 fi
20070 rm -f conftest.err conftest.$ac_ext
20071 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20072 echo "${ECHO_T}$ac_header_preproc" >&6
20073
20074 # So?  What about this header?
20075 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20076   yes:no: )
20077     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20078 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20079     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20080 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20081     ac_header_preproc=yes
20082     ;;
20083   no:yes:* )
20084     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20085 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20086     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20087 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20088     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20089 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20090     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20091 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20092     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20093 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20094     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20095 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20096     (
20097       cat <<\_ASBOX
20098 ## ------------------------------------------ ##
20099 ## Report this to the AC_PACKAGE_NAME lists.  ##
20100 ## ------------------------------------------ ##
20101 _ASBOX
20102     ) |
20103       sed "s/^/$as_me: WARNING:     /" >&2
20104     ;;
20105 esac
20106 echo "$as_me:$LINENO: checking for $ac_header" >&5
20107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20109   echo $ECHO_N "(cached) $ECHO_C" >&6
20110 else
20111   eval "$as_ac_Header=\$ac_header_preproc"
20112 fi
20113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20114 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20115
20116 fi
20117 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20118   cat >>confdefs.h <<_ACEOF
20119 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20120 _ACEOF
20121
20122 else
20123    WITH_THREADS="no"
20124 fi
20125
20126 done
20127
20128
20129   echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20130 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
20131 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20132   echo $ECHO_N "(cached) $ECHO_C" >&6
20133 else
20134   ac_check_lib_save_LIBS=$LIBS
20135 LIBS="-lpthread  $LIBS"
20136 cat >conftest.$ac_ext <<_ACEOF
20137 /* confdefs.h.  */
20138 _ACEOF
20139 cat confdefs.h >>conftest.$ac_ext
20140 cat >>conftest.$ac_ext <<_ACEOF
20141 /* end confdefs.h.  */
20142
20143 /* Override any gcc2 internal prototype to avoid an error.  */
20144 #ifdef __cplusplus
20145 extern "C"
20146 #endif
20147 /* We use char because int might match the return type of a gcc2
20148    builtin and then its argument prototype would still apply.  */
20149 char pthread_create ();
20150 int
20151 main ()
20152 {
20153 pthread_create ();
20154   ;
20155   return 0;
20156 }
20157 _ACEOF
20158 rm -f conftest.$ac_objext conftest$ac_exeext
20159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20160   (eval $ac_link) 2>conftest.er1
20161   ac_status=$?
20162   grep -v '^ *+' conftest.er1 >conftest.err
20163   rm -f conftest.er1
20164   cat conftest.err >&5
20165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20166   (exit $ac_status); } &&
20167          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20169   (eval $ac_try) 2>&5
20170   ac_status=$?
20171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20172   (exit $ac_status); }; } &&
20173          { ac_try='test -s conftest$ac_exeext'
20174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20175   (eval $ac_try) 2>&5
20176   ac_status=$?
20177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20178   (exit $ac_status); }; }; then
20179   ac_cv_lib_pthread_pthread_create=yes
20180 else
20181   echo "$as_me: failed program was:" >&5
20182 sed 's/^/| /' conftest.$ac_ext >&5
20183
20184 ac_cv_lib_pthread_pthread_create=no
20185 fi
20186 rm -f conftest.err conftest.$ac_objext \
20187       conftest$ac_exeext conftest.$ac_ext
20188 LIBS=$ac_check_lib_save_LIBS
20189 fi
20190 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20191 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
20192 if test $ac_cv_lib_pthread_pthread_create = yes; then
20193    CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
20194                   LIBS="$LIBS -lpthread"
20195 else
20196   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
20197 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
20198 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
20199   echo $ECHO_N "(cached) $ECHO_C" >&6
20200 else
20201   ac_check_lib_save_LIBS=$LIBS
20202 LIBS="-lc_r  $LIBS"
20203 cat >conftest.$ac_ext <<_ACEOF
20204 /* confdefs.h.  */
20205 _ACEOF
20206 cat confdefs.h >>conftest.$ac_ext
20207 cat >>conftest.$ac_ext <<_ACEOF
20208 /* end confdefs.h.  */
20209
20210 /* Override any gcc2 internal prototype to avoid an error.  */
20211 #ifdef __cplusplus
20212 extern "C"
20213 #endif
20214 /* We use char because int might match the return type of a gcc2
20215    builtin and then its argument prototype would still apply.  */
20216 char pthread_create ();
20217 int
20218 main ()
20219 {
20220 pthread_create ();
20221   ;
20222   return 0;
20223 }
20224 _ACEOF
20225 rm -f conftest.$ac_objext conftest$ac_exeext
20226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20227   (eval $ac_link) 2>conftest.er1
20228   ac_status=$?
20229   grep -v '^ *+' conftest.er1 >conftest.err
20230   rm -f conftest.er1
20231   cat conftest.err >&5
20232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233   (exit $ac_status); } &&
20234          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20236   (eval $ac_try) 2>&5
20237   ac_status=$?
20238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239   (exit $ac_status); }; } &&
20240          { ac_try='test -s conftest$ac_exeext'
20241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20242   (eval $ac_try) 2>&5
20243   ac_status=$?
20244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245   (exit $ac_status); }; }; then
20246   ac_cv_lib_c_r_pthread_create=yes
20247 else
20248   echo "$as_me: failed program was:" >&5
20249 sed 's/^/| /' conftest.$ac_ext >&5
20250
20251 ac_cv_lib_c_r_pthread_create=no
20252 fi
20253 rm -f conftest.err conftest.$ac_objext \
20254       conftest$ac_exeext conftest.$ac_ext
20255 LIBS=$ac_check_lib_save_LIBS
20256 fi
20257 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
20258 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
20259 if test $ac_cv_lib_c_r_pthread_create = yes; then
20260    CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
20261 else
20262    WITH_THREADS="no"
20263
20264 fi
20265
20266
20267 fi
20268
20269 fi
20270
20271 if test "x$WITH_THREADS" != "xyes"; then
20272   CFLAGS=$old_CFLAGS
20273   ac_cv_header_pthread_h="no"
20274   WITH_THREADS=no
20275 else
20276
20277   echo "$as_me:$LINENO: checking for library containing sem_init" >&5
20278 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
20279 if test "${ac_cv_search_sem_init+set}" = set; then
20280   echo $ECHO_N "(cached) $ECHO_C" >&6
20281 else
20282   ac_func_search_save_LIBS=$LIBS
20283 ac_cv_search_sem_init=no
20284 cat >conftest.$ac_ext <<_ACEOF
20285 /* confdefs.h.  */
20286 _ACEOF
20287 cat confdefs.h >>conftest.$ac_ext
20288 cat >>conftest.$ac_ext <<_ACEOF
20289 /* end confdefs.h.  */
20290
20291 /* Override any gcc2 internal prototype to avoid an error.  */
20292 #ifdef __cplusplus
20293 extern "C"
20294 #endif
20295 /* We use char because int might match the return type of a gcc2
20296    builtin and then its argument prototype would still apply.  */
20297 char sem_init ();
20298 int
20299 main ()
20300 {
20301 sem_init ();
20302   ;
20303   return 0;
20304 }
20305 _ACEOF
20306 rm -f conftest.$ac_objext conftest$ac_exeext
20307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20308   (eval $ac_link) 2>conftest.er1
20309   ac_status=$?
20310   grep -v '^ *+' conftest.er1 >conftest.err
20311   rm -f conftest.er1
20312   cat conftest.err >&5
20313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314   (exit $ac_status); } &&
20315          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20317   (eval $ac_try) 2>&5
20318   ac_status=$?
20319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320   (exit $ac_status); }; } &&
20321          { ac_try='test -s conftest$ac_exeext'
20322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20323   (eval $ac_try) 2>&5
20324   ac_status=$?
20325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20326   (exit $ac_status); }; }; then
20327   ac_cv_search_sem_init="none required"
20328 else
20329   echo "$as_me: failed program was:" >&5
20330 sed 's/^/| /' conftest.$ac_ext >&5
20331
20332 fi
20333 rm -f conftest.err conftest.$ac_objext \
20334       conftest$ac_exeext conftest.$ac_ext
20335 if test "$ac_cv_search_sem_init" = no; then
20336   for ac_lib in pthread sem posix4 rt semaphore; do
20337     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20338     cat >conftest.$ac_ext <<_ACEOF
20339 /* confdefs.h.  */
20340 _ACEOF
20341 cat confdefs.h >>conftest.$ac_ext
20342 cat >>conftest.$ac_ext <<_ACEOF
20343 /* end confdefs.h.  */
20344
20345 /* Override any gcc2 internal prototype to avoid an error.  */
20346 #ifdef __cplusplus
20347 extern "C"
20348 #endif
20349 /* We use char because int might match the return type of a gcc2
20350    builtin and then its argument prototype would still apply.  */
20351 char sem_init ();
20352 int
20353 main ()
20354 {
20355 sem_init ();
20356   ;
20357   return 0;
20358 }
20359 _ACEOF
20360 rm -f conftest.$ac_objext conftest$ac_exeext
20361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20362   (eval $ac_link) 2>conftest.er1
20363   ac_status=$?
20364   grep -v '^ *+' conftest.er1 >conftest.err
20365   rm -f conftest.er1
20366   cat conftest.err >&5
20367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368   (exit $ac_status); } &&
20369          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20371   (eval $ac_try) 2>&5
20372   ac_status=$?
20373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20374   (exit $ac_status); }; } &&
20375          { ac_try='test -s conftest$ac_exeext'
20376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20377   (eval $ac_try) 2>&5
20378   ac_status=$?
20379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380   (exit $ac_status); }; }; then
20381   ac_cv_search_sem_init="-l$ac_lib"
20382 break
20383 else
20384   echo "$as_me: failed program was:" >&5
20385 sed 's/^/| /' conftest.$ac_ext >&5
20386
20387 fi
20388 rm -f conftest.err conftest.$ac_objext \
20389       conftest$ac_exeext conftest.$ac_ext
20390   done
20391 fi
20392 LIBS=$ac_func_search_save_LIBS
20393 fi
20394 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
20395 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
20396 if test "$ac_cv_search_sem_init" != no; then
20397   test "$ac_cv_search_sem_init" = "none required" || LIBS="$ac_cv_search_sem_init $LIBS"
20398
20399 else
20400   { { 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
20401 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;}
20402    { (exit 1); exit 1; }; }
20403
20404 fi
20405
20406 fi
20407
20408
20409 echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
20410 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6
20411 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
20412   echo $ECHO_N "(cached) $ECHO_C" >&6
20413 else
20414   ac_check_lib_save_LIBS=$LIBS
20415 LIBS="-lsocket  $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 gcc2 internal prototype to avoid an error.  */
20424 #ifdef __cplusplus
20425 extern "C"
20426 #endif
20427 /* We use char because int might match the return type of a gcc2
20428    builtin and then its argument prototype would still apply.  */
20429 char getsockname ();
20430 int
20431 main ()
20432 {
20433 getsockname ();
20434   ;
20435   return 0;
20436 }
20437 _ACEOF
20438 rm -f conftest.$ac_objext conftest$ac_exeext
20439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20440   (eval $ac_link) 2>conftest.er1
20441   ac_status=$?
20442   grep -v '^ *+' conftest.er1 >conftest.err
20443   rm -f conftest.er1
20444   cat conftest.err >&5
20445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446   (exit $ac_status); } &&
20447          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20449   (eval $ac_try) 2>&5
20450   ac_status=$?
20451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452   (exit $ac_status); }; } &&
20453          { ac_try='test -s conftest$ac_exeext'
20454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20455   (eval $ac_try) 2>&5
20456   ac_status=$?
20457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458   (exit $ac_status); }; }; then
20459   ac_cv_lib_socket_getsockname=yes
20460 else
20461   echo "$as_me: failed program was:" >&5
20462 sed 's/^/| /' conftest.$ac_ext >&5
20463
20464 ac_cv_lib_socket_getsockname=no
20465 fi
20466 rm -f conftest.err conftest.$ac_objext \
20467       conftest$ac_exeext conftest.$ac_ext
20468 LIBS=$ac_check_lib_save_LIBS
20469 fi
20470 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
20471 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6
20472 if test $ac_cv_lib_socket_getsockname = yes; then
20473   cat >>confdefs.h <<_ACEOF
20474 #define HAVE_LIBSOCKET 1
20475 _ACEOF
20476
20477   LIBS="-lsocket $LIBS"
20478
20479 fi
20480
20481
20482
20483 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
20484 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
20485 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
20486   echo $ECHO_N "(cached) $ECHO_C" >&6
20487 else
20488   ac_check_lib_save_LIBS=$LIBS
20489 LIBS="-lresolv  $LIBS"
20490 cat >conftest.$ac_ext <<_ACEOF
20491 /* confdefs.h.  */
20492 _ACEOF
20493 cat confdefs.h >>conftest.$ac_ext
20494 cat >>conftest.$ac_ext <<_ACEOF
20495 /* end confdefs.h.  */
20496
20497 /* Override any gcc2 internal prototype to avoid an error.  */
20498 #ifdef __cplusplus
20499 extern "C"
20500 #endif
20501 /* We use char because int might match the return type of a gcc2
20502    builtin and then its argument prototype would still apply.  */
20503 char inet_aton ();
20504 int
20505 main ()
20506 {
20507 inet_aton ();
20508   ;
20509   return 0;
20510 }
20511 _ACEOF
20512 rm -f conftest.$ac_objext conftest$ac_exeext
20513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20514   (eval $ac_link) 2>conftest.er1
20515   ac_status=$?
20516   grep -v '^ *+' conftest.er1 >conftest.err
20517   rm -f conftest.er1
20518   cat conftest.err >&5
20519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20520   (exit $ac_status); } &&
20521          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20523   (eval $ac_try) 2>&5
20524   ac_status=$?
20525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20526   (exit $ac_status); }; } &&
20527          { ac_try='test -s conftest$ac_exeext'
20528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20529   (eval $ac_try) 2>&5
20530   ac_status=$?
20531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20532   (exit $ac_status); }; }; then
20533   ac_cv_lib_resolv_inet_aton=yes
20534 else
20535   echo "$as_me: failed program was:" >&5
20536 sed 's/^/| /' conftest.$ac_ext >&5
20537
20538 ac_cv_lib_resolv_inet_aton=no
20539 fi
20540 rm -f conftest.err conftest.$ac_objext \
20541       conftest$ac_exeext conftest.$ac_ext
20542 LIBS=$ac_check_lib_save_LIBS
20543 fi
20544 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
20545 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
20546 if test $ac_cv_lib_resolv_inet_aton = yes; then
20547   cat >>confdefs.h <<_ACEOF
20548 #define HAVE_LIBRESOLV 1
20549 _ACEOF
20550
20551   LIBS="-lresolv $LIBS"
20552
20553 fi
20554
20555
20556
20557 echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
20558 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6
20559 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
20560   echo $ECHO_N "(cached) $ECHO_C" >&6
20561 else
20562   ac_check_lib_save_LIBS=$LIBS
20563 LIBS="-lnsl  $LIBS"
20564 cat >conftest.$ac_ext <<_ACEOF
20565 /* confdefs.h.  */
20566 _ACEOF
20567 cat confdefs.h >>conftest.$ac_ext
20568 cat >>conftest.$ac_ext <<_ACEOF
20569 /* end confdefs.h.  */
20570
20571 /* Override any gcc2 internal prototype to avoid an error.  */
20572 #ifdef __cplusplus
20573 extern "C"
20574 #endif
20575 /* We use char because int might match the return type of a gcc2
20576    builtin and then its argument prototype would still apply.  */
20577 char inet_ntoa ();
20578 int
20579 main ()
20580 {
20581 inet_ntoa ();
20582   ;
20583   return 0;
20584 }
20585 _ACEOF
20586 rm -f conftest.$ac_objext conftest$ac_exeext
20587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20588   (eval $ac_link) 2>conftest.er1
20589   ac_status=$?
20590   grep -v '^ *+' conftest.er1 >conftest.err
20591   rm -f conftest.er1
20592   cat conftest.err >&5
20593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20594   (exit $ac_status); } &&
20595          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20597   (eval $ac_try) 2>&5
20598   ac_status=$?
20599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20600   (exit $ac_status); }; } &&
20601          { ac_try='test -s conftest$ac_exeext'
20602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20603   (eval $ac_try) 2>&5
20604   ac_status=$?
20605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20606   (exit $ac_status); }; }; then
20607   ac_cv_lib_nsl_inet_ntoa=yes
20608 else
20609   echo "$as_me: failed program was:" >&5
20610 sed 's/^/| /' conftest.$ac_ext >&5
20611
20612 ac_cv_lib_nsl_inet_ntoa=no
20613 fi
20614 rm -f conftest.err conftest.$ac_objext \
20615       conftest$ac_exeext conftest.$ac_ext
20616 LIBS=$ac_check_lib_save_LIBS
20617 fi
20618 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
20619 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6
20620 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
20621   cat >>confdefs.h <<_ACEOF
20622 #define HAVE_LIBNSL 1
20623 _ACEOF
20624
20625   LIBS="-lnsl $LIBS"
20626
20627 fi
20628
20629
20630 OPENSSL_LIBS=
20631 old_LIBS=$LIBS
20632 if test "x$OPENSSL_LIB_DIR" != "x"; then
20633     LIBS="-L$OPENSSL_LIB_DIR $LIBS"
20634 fi
20635 echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
20636 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6
20637 if test "${ac_cv_lib_crypto_DH_new+set}" = set; then
20638   echo $ECHO_N "(cached) $ECHO_C" >&6
20639 else
20640   ac_check_lib_save_LIBS=$LIBS
20641 LIBS="-lcrypto  $LIBS"
20642 cat >conftest.$ac_ext <<_ACEOF
20643 /* confdefs.h.  */
20644 _ACEOF
20645 cat confdefs.h >>conftest.$ac_ext
20646 cat >>conftest.$ac_ext <<_ACEOF
20647 /* end confdefs.h.  */
20648
20649 /* Override any gcc2 internal prototype to avoid an error.  */
20650 #ifdef __cplusplus
20651 extern "C"
20652 #endif
20653 /* We use char because int might match the return type of a gcc2
20654    builtin and then its argument prototype would still apply.  */
20655 char DH_new ();
20656 int
20657 main ()
20658 {
20659 DH_new ();
20660   ;
20661   return 0;
20662 }
20663 _ACEOF
20664 rm -f conftest.$ac_objext conftest$ac_exeext
20665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20666   (eval $ac_link) 2>conftest.er1
20667   ac_status=$?
20668   grep -v '^ *+' conftest.er1 >conftest.err
20669   rm -f conftest.er1
20670   cat conftest.err >&5
20671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20672   (exit $ac_status); } &&
20673          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20675   (eval $ac_try) 2>&5
20676   ac_status=$?
20677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20678   (exit $ac_status); }; } &&
20679          { ac_try='test -s conftest$ac_exeext'
20680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20681   (eval $ac_try) 2>&5
20682   ac_status=$?
20683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684   (exit $ac_status); }; }; then
20685   ac_cv_lib_crypto_DH_new=yes
20686 else
20687   echo "$as_me: failed program was:" >&5
20688 sed 's/^/| /' conftest.$ac_ext >&5
20689
20690 ac_cv_lib_crypto_DH_new=no
20691 fi
20692 rm -f conftest.err conftest.$ac_objext \
20693       conftest$ac_exeext conftest.$ac_ext
20694 LIBS=$ac_check_lib_save_LIBS
20695 fi
20696 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DH_new" >&5
20697 echo "${ECHO_T}$ac_cv_lib_crypto_DH_new" >&6
20698 if test $ac_cv_lib_crypto_DH_new = yes; then
20699
20700
20701 cat >>confdefs.h <<\_ACEOF
20702 #define HAVE_LIBCRYPTO 1
20703 _ACEOF
20704
20705         echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
20706 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6
20707 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
20708   echo $ECHO_N "(cached) $ECHO_C" >&6
20709 else
20710   ac_check_lib_save_LIBS=$LIBS
20711 LIBS="-lssl  $LIBS"
20712 cat >conftest.$ac_ext <<_ACEOF
20713 /* confdefs.h.  */
20714 _ACEOF
20715 cat confdefs.h >>conftest.$ac_ext
20716 cat >>conftest.$ac_ext <<_ACEOF
20717 /* end confdefs.h.  */
20718
20719 /* Override any gcc2 internal prototype to avoid an error.  */
20720 #ifdef __cplusplus
20721 extern "C"
20722 #endif
20723 /* We use char because int might match the return type of a gcc2
20724    builtin and then its argument prototype would still apply.  */
20725 char SSL_new ();
20726 int
20727 main ()
20728 {
20729 SSL_new ();
20730   ;
20731   return 0;
20732 }
20733 _ACEOF
20734 rm -f conftest.$ac_objext conftest$ac_exeext
20735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20736   (eval $ac_link) 2>conftest.er1
20737   ac_status=$?
20738   grep -v '^ *+' conftest.er1 >conftest.err
20739   rm -f conftest.er1
20740   cat conftest.err >&5
20741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20742   (exit $ac_status); } &&
20743          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20745   (eval $ac_try) 2>&5
20746   ac_status=$?
20747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748   (exit $ac_status); }; } &&
20749          { ac_try='test -s conftest$ac_exeext'
20750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20751   (eval $ac_try) 2>&5
20752   ac_status=$?
20753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754   (exit $ac_status); }; }; then
20755   ac_cv_lib_ssl_SSL_new=yes
20756 else
20757   echo "$as_me: failed program was:" >&5
20758 sed 's/^/| /' conftest.$ac_ext >&5
20759
20760 ac_cv_lib_ssl_SSL_new=no
20761 fi
20762 rm -f conftest.err conftest.$ac_objext \
20763       conftest$ac_exeext conftest.$ac_ext
20764 LIBS=$ac_check_lib_save_LIBS
20765 fi
20766 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
20767 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6
20768 if test $ac_cv_lib_ssl_SSL_new = yes; then
20769
20770
20771 cat >>confdefs.h <<\_ACEOF
20772 #define HAVE_LIBSSL 1
20773 _ACEOF
20774
20775                 if test "x$OPENSSL_LIB_DIR" != "x"; then
20776                     OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
20777                 fi
20778                 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
20779
20780 fi
20781
20782
20783 fi
20784
20785 LIBS=$old_LIBS
20786
20787 PCAP_LIBS=
20788 echo "$as_me:$LINENO: checking for pcap_open_live in -lpcap" >&5
20789 echo $ECHO_N "checking for pcap_open_live in -lpcap... $ECHO_C" >&6
20790 if test "${ac_cv_lib_pcap_pcap_open_live+set}" = set; then
20791   echo $ECHO_N "(cached) $ECHO_C" >&6
20792 else
20793   ac_check_lib_save_LIBS=$LIBS
20794 LIBS="-lpcap  $LIBS"
20795 cat >conftest.$ac_ext <<_ACEOF
20796 /* confdefs.h.  */
20797 _ACEOF
20798 cat confdefs.h >>conftest.$ac_ext
20799 cat >>conftest.$ac_ext <<_ACEOF
20800 /* end confdefs.h.  */
20801
20802 /* Override any gcc2 internal prototype to avoid an error.  */
20803 #ifdef __cplusplus
20804 extern "C"
20805 #endif
20806 /* We use char because int might match the return type of a gcc2
20807    builtin and then its argument prototype would still apply.  */
20808 char pcap_open_live ();
20809 int
20810 main ()
20811 {
20812 pcap_open_live ();
20813   ;
20814   return 0;
20815 }
20816 _ACEOF
20817 rm -f conftest.$ac_objext conftest$ac_exeext
20818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20819   (eval $ac_link) 2>conftest.er1
20820   ac_status=$?
20821   grep -v '^ *+' conftest.er1 >conftest.err
20822   rm -f conftest.er1
20823   cat conftest.err >&5
20824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825   (exit $ac_status); } &&
20826          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20828   (eval $ac_try) 2>&5
20829   ac_status=$?
20830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831   (exit $ac_status); }; } &&
20832          { ac_try='test -s conftest$ac_exeext'
20833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20834   (eval $ac_try) 2>&5
20835   ac_status=$?
20836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837   (exit $ac_status); }; }; then
20838   ac_cv_lib_pcap_pcap_open_live=yes
20839 else
20840   echo "$as_me: failed program was:" >&5
20841 sed 's/^/| /' conftest.$ac_ext >&5
20842
20843 ac_cv_lib_pcap_pcap_open_live=no
20844 fi
20845 rm -f conftest.err conftest.$ac_objext \
20846       conftest$ac_exeext conftest.$ac_ext
20847 LIBS=$ac_check_lib_save_LIBS
20848 fi
20849 echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_pcap_open_live" >&5
20850 echo "${ECHO_T}$ac_cv_lib_pcap_pcap_open_live" >&6
20851 if test $ac_cv_lib_pcap_pcap_open_live = yes; then
20852    PCAP_LIBS="-lpcap"
20853
20854 cat >>confdefs.h <<\_ACEOF
20855 #define HAVE_LIBPCAP 1
20856 _ACEOF
20857
20858
20859 else
20860    { echo "$as_me:$LINENO: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
20861 echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
20862 fi
20863
20864
20865
20866 case "$host" in
20867 *-interix*)
20868         CFLAGS="$CFLAGS -D_ALL_SOURCE"
20869         ;;
20870 *-darwin*)
20871         CFLAGS="$CFLAGS -DDARWIN"
20872         ;;
20873 esac
20874
20875
20876
20877
20878
20879
20880 ac_header_dirent=no
20881 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20882   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20883 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20884 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
20885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20886   echo $ECHO_N "(cached) $ECHO_C" >&6
20887 else
20888   cat >conftest.$ac_ext <<_ACEOF
20889 /* confdefs.h.  */
20890 _ACEOF
20891 cat confdefs.h >>conftest.$ac_ext
20892 cat >>conftest.$ac_ext <<_ACEOF
20893 /* end confdefs.h.  */
20894 #include <sys/types.h>
20895 #include <$ac_hdr>
20896
20897 int
20898 main ()
20899 {
20900 if ((DIR *) 0)
20901 return 0;
20902   ;
20903   return 0;
20904 }
20905 _ACEOF
20906 rm -f conftest.$ac_objext
20907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20908   (eval $ac_compile) 2>conftest.er1
20909   ac_status=$?
20910   grep -v '^ *+' conftest.er1 >conftest.err
20911   rm -f conftest.er1
20912   cat conftest.err >&5
20913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20914   (exit $ac_status); } &&
20915          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20917   (eval $ac_try) 2>&5
20918   ac_status=$?
20919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20920   (exit $ac_status); }; } &&
20921          { ac_try='test -s conftest.$ac_objext'
20922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20923   (eval $ac_try) 2>&5
20924   ac_status=$?
20925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20926   (exit $ac_status); }; }; then
20927   eval "$as_ac_Header=yes"
20928 else
20929   echo "$as_me: failed program was:" >&5
20930 sed 's/^/| /' conftest.$ac_ext >&5
20931
20932 eval "$as_ac_Header=no"
20933 fi
20934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20935 fi
20936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20937 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20938 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20939   cat >>confdefs.h <<_ACEOF
20940 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20941 _ACEOF
20942
20943 ac_header_dirent=$ac_hdr; break
20944 fi
20945
20946 done
20947 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20948 if test $ac_header_dirent = dirent.h; then
20949   echo "$as_me:$LINENO: checking for library containing opendir" >&5
20950 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20951 if test "${ac_cv_search_opendir+set}" = set; then
20952   echo $ECHO_N "(cached) $ECHO_C" >&6
20953 else
20954   ac_func_search_save_LIBS=$LIBS
20955 ac_cv_search_opendir=no
20956 cat >conftest.$ac_ext <<_ACEOF
20957 /* confdefs.h.  */
20958 _ACEOF
20959 cat confdefs.h >>conftest.$ac_ext
20960 cat >>conftest.$ac_ext <<_ACEOF
20961 /* end confdefs.h.  */
20962
20963 /* Override any gcc2 internal prototype to avoid an error.  */
20964 #ifdef __cplusplus
20965 extern "C"
20966 #endif
20967 /* We use char because int might match the return type of a gcc2
20968    builtin and then its argument prototype would still apply.  */
20969 char opendir ();
20970 int
20971 main ()
20972 {
20973 opendir ();
20974   ;
20975   return 0;
20976 }
20977 _ACEOF
20978 rm -f conftest.$ac_objext conftest$ac_exeext
20979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20980   (eval $ac_link) 2>conftest.er1
20981   ac_status=$?
20982   grep -v '^ *+' conftest.er1 >conftest.err
20983   rm -f conftest.er1
20984   cat conftest.err >&5
20985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986   (exit $ac_status); } &&
20987          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20989   (eval $ac_try) 2>&5
20990   ac_status=$?
20991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992   (exit $ac_status); }; } &&
20993          { ac_try='test -s conftest$ac_exeext'
20994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20995   (eval $ac_try) 2>&5
20996   ac_status=$?
20997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998   (exit $ac_status); }; }; then
20999   ac_cv_search_opendir="none required"
21000 else
21001   echo "$as_me: failed program was:" >&5
21002 sed 's/^/| /' conftest.$ac_ext >&5
21003
21004 fi
21005 rm -f conftest.err conftest.$ac_objext \
21006       conftest$ac_exeext conftest.$ac_ext
21007 if test "$ac_cv_search_opendir" = no; then
21008   for ac_lib in dir; do
21009     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21010     cat >conftest.$ac_ext <<_ACEOF
21011 /* confdefs.h.  */
21012 _ACEOF
21013 cat confdefs.h >>conftest.$ac_ext
21014 cat >>conftest.$ac_ext <<_ACEOF
21015 /* end confdefs.h.  */
21016
21017 /* Override any gcc2 internal prototype to avoid an error.  */
21018 #ifdef __cplusplus
21019 extern "C"
21020 #endif
21021 /* We use char because int might match the return type of a gcc2
21022    builtin and then its argument prototype would still apply.  */
21023 char opendir ();
21024 int
21025 main ()
21026 {
21027 opendir ();
21028   ;
21029   return 0;
21030 }
21031 _ACEOF
21032 rm -f conftest.$ac_objext conftest$ac_exeext
21033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21034   (eval $ac_link) 2>conftest.er1
21035   ac_status=$?
21036   grep -v '^ *+' conftest.er1 >conftest.err
21037   rm -f conftest.er1
21038   cat conftest.err >&5
21039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21040   (exit $ac_status); } &&
21041          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21043   (eval $ac_try) 2>&5
21044   ac_status=$?
21045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21046   (exit $ac_status); }; } &&
21047          { ac_try='test -s conftest$ac_exeext'
21048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21049   (eval $ac_try) 2>&5
21050   ac_status=$?
21051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21052   (exit $ac_status); }; }; then
21053   ac_cv_search_opendir="-l$ac_lib"
21054 break
21055 else
21056   echo "$as_me: failed program was:" >&5
21057 sed 's/^/| /' conftest.$ac_ext >&5
21058
21059 fi
21060 rm -f conftest.err conftest.$ac_objext \
21061       conftest$ac_exeext conftest.$ac_ext
21062   done
21063 fi
21064 LIBS=$ac_func_search_save_LIBS
21065 fi
21066 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
21067 echo "${ECHO_T}$ac_cv_search_opendir" >&6
21068 if test "$ac_cv_search_opendir" != no; then
21069   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
21070
21071 fi
21072
21073 else
21074   echo "$as_me:$LINENO: checking for library containing opendir" >&5
21075 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
21076 if test "${ac_cv_search_opendir+set}" = set; then
21077   echo $ECHO_N "(cached) $ECHO_C" >&6
21078 else
21079   ac_func_search_save_LIBS=$LIBS
21080 ac_cv_search_opendir=no
21081 cat >conftest.$ac_ext <<_ACEOF
21082 /* confdefs.h.  */
21083 _ACEOF
21084 cat confdefs.h >>conftest.$ac_ext
21085 cat >>conftest.$ac_ext <<_ACEOF
21086 /* end confdefs.h.  */
21087
21088 /* Override any gcc2 internal prototype to avoid an error.  */
21089 #ifdef __cplusplus
21090 extern "C"
21091 #endif
21092 /* We use char because int might match the return type of a gcc2
21093    builtin and then its argument prototype would still apply.  */
21094 char opendir ();
21095 int
21096 main ()
21097 {
21098 opendir ();
21099   ;
21100   return 0;
21101 }
21102 _ACEOF
21103 rm -f conftest.$ac_objext conftest$ac_exeext
21104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21105   (eval $ac_link) 2>conftest.er1
21106   ac_status=$?
21107   grep -v '^ *+' conftest.er1 >conftest.err
21108   rm -f conftest.er1
21109   cat conftest.err >&5
21110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21111   (exit $ac_status); } &&
21112          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21114   (eval $ac_try) 2>&5
21115   ac_status=$?
21116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117   (exit $ac_status); }; } &&
21118          { ac_try='test -s conftest$ac_exeext'
21119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21120   (eval $ac_try) 2>&5
21121   ac_status=$?
21122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21123   (exit $ac_status); }; }; then
21124   ac_cv_search_opendir="none required"
21125 else
21126   echo "$as_me: failed program was:" >&5
21127 sed 's/^/| /' conftest.$ac_ext >&5
21128
21129 fi
21130 rm -f conftest.err conftest.$ac_objext \
21131       conftest$ac_exeext conftest.$ac_ext
21132 if test "$ac_cv_search_opendir" = no; then
21133   for ac_lib in x; do
21134     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21135     cat >conftest.$ac_ext <<_ACEOF
21136 /* confdefs.h.  */
21137 _ACEOF
21138 cat confdefs.h >>conftest.$ac_ext
21139 cat >>conftest.$ac_ext <<_ACEOF
21140 /* end confdefs.h.  */
21141
21142 /* Override any gcc2 internal prototype to avoid an error.  */
21143 #ifdef __cplusplus
21144 extern "C"
21145 #endif
21146 /* We use char because int might match the return type of a gcc2
21147    builtin and then its argument prototype would still apply.  */
21148 char opendir ();
21149 int
21150 main ()
21151 {
21152 opendir ();
21153   ;
21154   return 0;
21155 }
21156 _ACEOF
21157 rm -f conftest.$ac_objext conftest$ac_exeext
21158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21159   (eval $ac_link) 2>conftest.er1
21160   ac_status=$?
21161   grep -v '^ *+' conftest.er1 >conftest.err
21162   rm -f conftest.er1
21163   cat conftest.err >&5
21164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165   (exit $ac_status); } &&
21166          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21168   (eval $ac_try) 2>&5
21169   ac_status=$?
21170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171   (exit $ac_status); }; } &&
21172          { ac_try='test -s conftest$ac_exeext'
21173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21174   (eval $ac_try) 2>&5
21175   ac_status=$?
21176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21177   (exit $ac_status); }; }; then
21178   ac_cv_search_opendir="-l$ac_lib"
21179 break
21180 else
21181   echo "$as_me: failed program was:" >&5
21182 sed 's/^/| /' conftest.$ac_ext >&5
21183
21184 fi
21185 rm -f conftest.err conftest.$ac_objext \
21186       conftest$ac_exeext conftest.$ac_ext
21187   done
21188 fi
21189 LIBS=$ac_func_search_save_LIBS
21190 fi
21191 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
21192 echo "${ECHO_T}$ac_cv_search_opendir" >&6
21193 if test "$ac_cv_search_opendir" != no; then
21194   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
21195
21196 fi
21197
21198 fi
21199
21200 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21201 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
21202 if test "${ac_cv_header_stdc+set}" = set; then
21203   echo $ECHO_N "(cached) $ECHO_C" >&6
21204 else
21205   cat >conftest.$ac_ext <<_ACEOF
21206 /* confdefs.h.  */
21207 _ACEOF
21208 cat confdefs.h >>conftest.$ac_ext
21209 cat >>conftest.$ac_ext <<_ACEOF
21210 /* end confdefs.h.  */
21211 #include <stdlib.h>
21212 #include <stdarg.h>
21213 #include <string.h>
21214 #include <float.h>
21215
21216 int
21217 main ()
21218 {
21219
21220   ;
21221   return 0;
21222 }
21223 _ACEOF
21224 rm -f conftest.$ac_objext
21225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21226   (eval $ac_compile) 2>conftest.er1
21227   ac_status=$?
21228   grep -v '^ *+' conftest.er1 >conftest.err
21229   rm -f conftest.er1
21230   cat conftest.err >&5
21231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21232   (exit $ac_status); } &&
21233          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21235   (eval $ac_try) 2>&5
21236   ac_status=$?
21237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21238   (exit $ac_status); }; } &&
21239          { ac_try='test -s conftest.$ac_objext'
21240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21241   (eval $ac_try) 2>&5
21242   ac_status=$?
21243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244   (exit $ac_status); }; }; then
21245   ac_cv_header_stdc=yes
21246 else
21247   echo "$as_me: failed program was:" >&5
21248 sed 's/^/| /' conftest.$ac_ext >&5
21249
21250 ac_cv_header_stdc=no
21251 fi
21252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21253
21254 if test $ac_cv_header_stdc = yes; then
21255   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21256   cat >conftest.$ac_ext <<_ACEOF
21257 /* confdefs.h.  */
21258 _ACEOF
21259 cat confdefs.h >>conftest.$ac_ext
21260 cat >>conftest.$ac_ext <<_ACEOF
21261 /* end confdefs.h.  */
21262 #include <string.h>
21263
21264 _ACEOF
21265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21266   $EGREP "memchr" >/dev/null 2>&1; then
21267   :
21268 else
21269   ac_cv_header_stdc=no
21270 fi
21271 rm -f conftest*
21272
21273 fi
21274
21275 if test $ac_cv_header_stdc = yes; then
21276   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21277   cat >conftest.$ac_ext <<_ACEOF
21278 /* confdefs.h.  */
21279 _ACEOF
21280 cat confdefs.h >>conftest.$ac_ext
21281 cat >>conftest.$ac_ext <<_ACEOF
21282 /* end confdefs.h.  */
21283 #include <stdlib.h>
21284
21285 _ACEOF
21286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21287   $EGREP "free" >/dev/null 2>&1; then
21288   :
21289 else
21290   ac_cv_header_stdc=no
21291 fi
21292 rm -f conftest*
21293
21294 fi
21295
21296 if test $ac_cv_header_stdc = yes; then
21297   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21298   if test "$cross_compiling" = yes; then
21299   :
21300 else
21301   cat >conftest.$ac_ext <<_ACEOF
21302 /* confdefs.h.  */
21303 _ACEOF
21304 cat confdefs.h >>conftest.$ac_ext
21305 cat >>conftest.$ac_ext <<_ACEOF
21306 /* end confdefs.h.  */
21307 #include <ctype.h>
21308 #if ((' ' & 0x0FF) == 0x020)
21309 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21310 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21311 #else
21312 # define ISLOWER(c) \
21313                    (('a' <= (c) && (c) <= 'i') \
21314                      || ('j' <= (c) && (c) <= 'r') \
21315                      || ('s' <= (c) && (c) <= 'z'))
21316 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21317 #endif
21318
21319 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21320 int
21321 main ()
21322 {
21323   int i;
21324   for (i = 0; i < 256; i++)
21325     if (XOR (islower (i), ISLOWER (i))
21326         || toupper (i) != TOUPPER (i))
21327       exit(2);
21328   exit (0);
21329 }
21330 _ACEOF
21331 rm -f conftest$ac_exeext
21332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21333   (eval $ac_link) 2>&5
21334   ac_status=$?
21335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21336   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21338   (eval $ac_try) 2>&5
21339   ac_status=$?
21340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21341   (exit $ac_status); }; }; then
21342   :
21343 else
21344   echo "$as_me: program exited with status $ac_status" >&5
21345 echo "$as_me: failed program was:" >&5
21346 sed 's/^/| /' conftest.$ac_ext >&5
21347
21348 ( exit $ac_status )
21349 ac_cv_header_stdc=no
21350 fi
21351 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21352 fi
21353 fi
21354 fi
21355 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21356 echo "${ECHO_T}$ac_cv_header_stdc" >&6
21357 if test $ac_cv_header_stdc = yes; then
21358
21359 cat >>confdefs.h <<\_ACEOF
21360 #define STDC_HEADERS 1
21361 _ACEOF
21362
21363 fi
21364
21365 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21366 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
21367 if test "${ac_cv_header_time+set}" = set; then
21368   echo $ECHO_N "(cached) $ECHO_C" >&6
21369 else
21370   cat >conftest.$ac_ext <<_ACEOF
21371 /* confdefs.h.  */
21372 _ACEOF
21373 cat confdefs.h >>conftest.$ac_ext
21374 cat >>conftest.$ac_ext <<_ACEOF
21375 /* end confdefs.h.  */
21376 #include <sys/types.h>
21377 #include <sys/time.h>
21378 #include <time.h>
21379
21380 int
21381 main ()
21382 {
21383 if ((struct tm *) 0)
21384 return 0;
21385   ;
21386   return 0;
21387 }
21388 _ACEOF
21389 rm -f conftest.$ac_objext
21390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21391   (eval $ac_compile) 2>conftest.er1
21392   ac_status=$?
21393   grep -v '^ *+' conftest.er1 >conftest.err
21394   rm -f conftest.er1
21395   cat conftest.err >&5
21396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21397   (exit $ac_status); } &&
21398          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21400   (eval $ac_try) 2>&5
21401   ac_status=$?
21402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21403   (exit $ac_status); }; } &&
21404          { ac_try='test -s conftest.$ac_objext'
21405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21406   (eval $ac_try) 2>&5
21407   ac_status=$?
21408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21409   (exit $ac_status); }; }; then
21410   ac_cv_header_time=yes
21411 else
21412   echo "$as_me: failed program was:" >&5
21413 sed 's/^/| /' conftest.$ac_ext >&5
21414
21415 ac_cv_header_time=no
21416 fi
21417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21418 fi
21419 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21420 echo "${ECHO_T}$ac_cv_header_time" >&6
21421 if test $ac_cv_header_time = yes; then
21422
21423 cat >>confdefs.h <<\_ACEOF
21424 #define TIME_WITH_SYS_TIME 1
21425 _ACEOF
21426
21427 fi
21428
21429 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
21430 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
21431 if test "${ac_cv_header_sys_wait_h+set}" = set; then
21432   echo $ECHO_N "(cached) $ECHO_C" >&6
21433 else
21434   cat >conftest.$ac_ext <<_ACEOF
21435 /* confdefs.h.  */
21436 _ACEOF
21437 cat confdefs.h >>conftest.$ac_ext
21438 cat >>conftest.$ac_ext <<_ACEOF
21439 /* end confdefs.h.  */
21440 #include <sys/types.h>
21441 #include <sys/wait.h>
21442 #ifndef WEXITSTATUS
21443 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
21444 #endif
21445 #ifndef WIFEXITED
21446 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21447 #endif
21448
21449 int
21450 main ()
21451 {
21452   int s;
21453   wait (&s);
21454   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21455   ;
21456   return 0;
21457 }
21458 _ACEOF
21459 rm -f conftest.$ac_objext
21460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21461   (eval $ac_compile) 2>conftest.er1
21462   ac_status=$?
21463   grep -v '^ *+' conftest.er1 >conftest.err
21464   rm -f conftest.er1
21465   cat conftest.err >&5
21466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21467   (exit $ac_status); } &&
21468          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21470   (eval $ac_try) 2>&5
21471   ac_status=$?
21472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21473   (exit $ac_status); }; } &&
21474          { ac_try='test -s conftest.$ac_objext'
21475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21476   (eval $ac_try) 2>&5
21477   ac_status=$?
21478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21479   (exit $ac_status); }; }; then
21480   ac_cv_header_sys_wait_h=yes
21481 else
21482   echo "$as_me: failed program was:" >&5
21483 sed 's/^/| /' conftest.$ac_ext >&5
21484
21485 ac_cv_header_sys_wait_h=no
21486 fi
21487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21488 fi
21489 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21490 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
21491 if test $ac_cv_header_sys_wait_h = yes; then
21492
21493 cat >>confdefs.h <<\_ACEOF
21494 #define HAVE_SYS_WAIT_H 1
21495 _ACEOF
21496
21497 fi
21498
21499
21500
21501
21502
21503
21504
21505
21506
21507
21508
21509
21510
21511
21512
21513
21514
21515
21516
21517
21518
21519
21520
21521
21522
21523
21524
21525
21526
21527
21528
21529 for ac_header in \
21530         unistd.h \
21531         crypt.h \
21532         errno.h \
21533         resource.h \
21534         getopt.h \
21535         malloc.h \
21536         utmp.h \
21537         utmpx.h \
21538         signal.h \
21539         sys/select.h \
21540         syslog.h \
21541         inttypes.h \
21542         stdint.h \
21543         stdio.h \
21544         netdb.h \
21545         semaphore.h \
21546         arpa/inet.h \
21547         netinet/in.h \
21548         sys/types.h \
21549         sys/socket.h \
21550         sys/time.h \
21551         sys/wait.h \
21552         sys/security.h \
21553         fcntl.h \
21554         sys/fcntl.h \
21555         net/if.h \
21556         prot.h \
21557         sia.h \
21558         siad.h
21559
21560 do
21561 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21562 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21563   echo "$as_me:$LINENO: checking for $ac_header" >&5
21564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21565 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21566   echo $ECHO_N "(cached) $ECHO_C" >&6
21567 fi
21568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21569 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21570 else
21571   # Is the header compilable?
21572 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21573 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21574 cat >conftest.$ac_ext <<_ACEOF
21575 /* confdefs.h.  */
21576 _ACEOF
21577 cat confdefs.h >>conftest.$ac_ext
21578 cat >>conftest.$ac_ext <<_ACEOF
21579 /* end confdefs.h.  */
21580 $ac_includes_default
21581 #include <$ac_header>
21582 _ACEOF
21583 rm -f conftest.$ac_objext
21584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21585   (eval $ac_compile) 2>conftest.er1
21586   ac_status=$?
21587   grep -v '^ *+' conftest.er1 >conftest.err
21588   rm -f conftest.er1
21589   cat conftest.err >&5
21590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591   (exit $ac_status); } &&
21592          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21594   (eval $ac_try) 2>&5
21595   ac_status=$?
21596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21597   (exit $ac_status); }; } &&
21598          { ac_try='test -s conftest.$ac_objext'
21599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21600   (eval $ac_try) 2>&5
21601   ac_status=$?
21602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21603   (exit $ac_status); }; }; then
21604   ac_header_compiler=yes
21605 else
21606   echo "$as_me: failed program was:" >&5
21607 sed 's/^/| /' conftest.$ac_ext >&5
21608
21609 ac_header_compiler=no
21610 fi
21611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21612 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21613 echo "${ECHO_T}$ac_header_compiler" >&6
21614
21615 # Is the header present?
21616 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21617 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21618 cat >conftest.$ac_ext <<_ACEOF
21619 /* confdefs.h.  */
21620 _ACEOF
21621 cat confdefs.h >>conftest.$ac_ext
21622 cat >>conftest.$ac_ext <<_ACEOF
21623 /* end confdefs.h.  */
21624 #include <$ac_header>
21625 _ACEOF
21626 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21627   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21628   ac_status=$?
21629   grep -v '^ *+' conftest.er1 >conftest.err
21630   rm -f conftest.er1
21631   cat conftest.err >&5
21632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21633   (exit $ac_status); } >/dev/null; then
21634   if test -s conftest.err; then
21635     ac_cpp_err=$ac_c_preproc_warn_flag
21636     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21637   else
21638     ac_cpp_err=
21639   fi
21640 else
21641   ac_cpp_err=yes
21642 fi
21643 if test -z "$ac_cpp_err"; then
21644   ac_header_preproc=yes
21645 else
21646   echo "$as_me: failed program was:" >&5
21647 sed 's/^/| /' conftest.$ac_ext >&5
21648
21649   ac_header_preproc=no
21650 fi
21651 rm -f conftest.err conftest.$ac_ext
21652 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21653 echo "${ECHO_T}$ac_header_preproc" >&6
21654
21655 # So?  What about this header?
21656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21657   yes:no: )
21658     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21659 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21660     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21661 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21662     ac_header_preproc=yes
21663     ;;
21664   no:yes:* )
21665     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21666 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21667     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21668 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21669     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21670 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21671     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21672 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21673     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21674 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21675     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21676 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21677     (
21678       cat <<\_ASBOX
21679 ## ------------------------------------------ ##
21680 ## Report this to the AC_PACKAGE_NAME lists.  ##
21681 ## ------------------------------------------ ##
21682 _ASBOX
21683     ) |
21684       sed "s/^/$as_me: WARNING:     /" >&2
21685     ;;
21686 esac
21687 echo "$as_me:$LINENO: checking for $ac_header" >&5
21688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21690   echo $ECHO_N "(cached) $ECHO_C" >&6
21691 else
21692   eval "$as_ac_Header=\$ac_header_preproc"
21693 fi
21694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21695 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21696
21697 fi
21698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21699   cat >>confdefs.h <<_ACEOF
21700 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21701 _ACEOF
21702
21703 fi
21704
21705 done
21706
21707
21708 REGEX=no
21709 if test "${ac_cv_header_regex_h+set}" = set; then
21710   echo "$as_me:$LINENO: checking for regex.h" >&5
21711 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
21712 if test "${ac_cv_header_regex_h+set}" = set; then
21713   echo $ECHO_N "(cached) $ECHO_C" >&6
21714 fi
21715 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21716 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
21717 else
21718   # Is the header compilable?
21719 echo "$as_me:$LINENO: checking regex.h usability" >&5
21720 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
21721 cat >conftest.$ac_ext <<_ACEOF
21722 /* confdefs.h.  */
21723 _ACEOF
21724 cat confdefs.h >>conftest.$ac_ext
21725 cat >>conftest.$ac_ext <<_ACEOF
21726 /* end confdefs.h.  */
21727 $ac_includes_default
21728 #include <regex.h>
21729 _ACEOF
21730 rm -f conftest.$ac_objext
21731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21732   (eval $ac_compile) 2>conftest.er1
21733   ac_status=$?
21734   grep -v '^ *+' conftest.er1 >conftest.err
21735   rm -f conftest.er1
21736   cat conftest.err >&5
21737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21738   (exit $ac_status); } &&
21739          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21741   (eval $ac_try) 2>&5
21742   ac_status=$?
21743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21744   (exit $ac_status); }; } &&
21745          { ac_try='test -s conftest.$ac_objext'
21746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21747   (eval $ac_try) 2>&5
21748   ac_status=$?
21749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750   (exit $ac_status); }; }; then
21751   ac_header_compiler=yes
21752 else
21753   echo "$as_me: failed program was:" >&5
21754 sed 's/^/| /' conftest.$ac_ext >&5
21755
21756 ac_header_compiler=no
21757 fi
21758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21759 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21760 echo "${ECHO_T}$ac_header_compiler" >&6
21761
21762 # Is the header present?
21763 echo "$as_me:$LINENO: checking regex.h presence" >&5
21764 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
21765 cat >conftest.$ac_ext <<_ACEOF
21766 /* confdefs.h.  */
21767 _ACEOF
21768 cat confdefs.h >>conftest.$ac_ext
21769 cat >>conftest.$ac_ext <<_ACEOF
21770 /* end confdefs.h.  */
21771 #include <regex.h>
21772 _ACEOF
21773 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21774   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21775   ac_status=$?
21776   grep -v '^ *+' conftest.er1 >conftest.err
21777   rm -f conftest.er1
21778   cat conftest.err >&5
21779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21780   (exit $ac_status); } >/dev/null; then
21781   if test -s conftest.err; then
21782     ac_cpp_err=$ac_c_preproc_warn_flag
21783     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21784   else
21785     ac_cpp_err=
21786   fi
21787 else
21788   ac_cpp_err=yes
21789 fi
21790 if test -z "$ac_cpp_err"; then
21791   ac_header_preproc=yes
21792 else
21793   echo "$as_me: failed program was:" >&5
21794 sed 's/^/| /' conftest.$ac_ext >&5
21795
21796   ac_header_preproc=no
21797 fi
21798 rm -f conftest.err conftest.$ac_ext
21799 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21800 echo "${ECHO_T}$ac_header_preproc" >&6
21801
21802 # So?  What about this header?
21803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21804   yes:no: )
21805     { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
21806 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21807     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
21808 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
21809     ac_header_preproc=yes
21810     ;;
21811   no:yes:* )
21812     { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
21813 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
21814     { echo "$as_me:$LINENO: WARNING: regex.h:     check for missing prerequisite headers?" >&5
21815 echo "$as_me: WARNING: regex.h:     check for missing prerequisite headers?" >&2;}
21816     { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
21817 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
21818     { echo "$as_me:$LINENO: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&5
21819 echo "$as_me: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21820     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
21821 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
21822     { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
21823 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
21824     (
21825       cat <<\_ASBOX
21826 ## ------------------------------------------ ##
21827 ## Report this to the AC_PACKAGE_NAME lists.  ##
21828 ## ------------------------------------------ ##
21829 _ASBOX
21830     ) |
21831       sed "s/^/$as_me: WARNING:     /" >&2
21832     ;;
21833 esac
21834 echo "$as_me:$LINENO: checking for regex.h" >&5
21835 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
21836 if test "${ac_cv_header_regex_h+set}" = set; then
21837   echo $ECHO_N "(cached) $ECHO_C" >&6
21838 else
21839   ac_cv_header_regex_h=$ac_header_preproc
21840 fi
21841 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21842 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
21843
21844 fi
21845 if test $ac_cv_header_regex_h = yes; then
21846
21847 cat >>confdefs.h <<\_ACEOF
21848 #define HAVE_REGEX_H
21849 _ACEOF
21850
21851 fi
21852
21853
21854 if test "x$ac_cv_header_regex_h" = "xyes"; then
21855   REGEX_EXTENDED=no
21856   REGEX=yes
21857   cat >conftest.$ac_ext <<_ACEOF
21858 /* confdefs.h.  */
21859 _ACEOF
21860 cat confdefs.h >>conftest.$ac_ext
21861 cat >>conftest.$ac_ext <<_ACEOF
21862 /* end confdefs.h.  */
21863 #include <regex.h>
21864      #ifdef REG_EXTENDED
21865        yes
21866      #endif
21867
21868 _ACEOF
21869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21870   $EGREP "yes" >/dev/null 2>&1; then
21871
21872 cat >>confdefs.h <<\_ACEOF
21873 #define HAVE_REG_EXTENDED
21874 _ACEOF
21875  REGEX_EXTENDED=yes
21876 fi
21877 rm -f conftest*
21878
21879 fi
21880
21881
21882
21883 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
21884 then
21885
21886 cat >>confdefs.h <<\_ACEOF
21887 #define OSFC2
21888 _ACEOF
21889
21890 fi
21891
21892 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
21893 then
21894
21895 cat >>confdefs.h <<\_ACEOF
21896 #define OSFSIA
21897 _ACEOF
21898
21899 fi
21900
21901 OPENSSL_INCLUDE="-DNO_OPENSSL"
21902 if test "x$OPENSSL_LIBS" = "x"; then
21903     { echo "$as_me:$LINENO: skipping test for openssl/ssl.h" >&5
21904 echo "$as_me: skipping test for openssl/ssl.h" >&6;}
21905 else
21906     old_CPPFLAGS=$CPPFLAGS
21907     if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21908         CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
21909     fi
21910         CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
21911
21912
21913
21914
21915 for ac_header in \
21916         openssl/ssl.h \
21917         openssl/crypto.h \
21918         openssl/err.h \
21919         openssl/engine.h
21920 do
21921 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21922 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21923   echo "$as_me:$LINENO: checking for $ac_header" >&5
21924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21925 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21926   echo $ECHO_N "(cached) $ECHO_C" >&6
21927 fi
21928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21929 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21930 else
21931   # Is the header compilable?
21932 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21933 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21934 cat >conftest.$ac_ext <<_ACEOF
21935 /* confdefs.h.  */
21936 _ACEOF
21937 cat confdefs.h >>conftest.$ac_ext
21938 cat >>conftest.$ac_ext <<_ACEOF
21939 /* end confdefs.h.  */
21940 $ac_includes_default
21941 #include <$ac_header>
21942 _ACEOF
21943 rm -f conftest.$ac_objext
21944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21945   (eval $ac_compile) 2>conftest.er1
21946   ac_status=$?
21947   grep -v '^ *+' conftest.er1 >conftest.err
21948   rm -f conftest.er1
21949   cat conftest.err >&5
21950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21951   (exit $ac_status); } &&
21952          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21954   (eval $ac_try) 2>&5
21955   ac_status=$?
21956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21957   (exit $ac_status); }; } &&
21958          { ac_try='test -s conftest.$ac_objext'
21959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21960   (eval $ac_try) 2>&5
21961   ac_status=$?
21962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21963   (exit $ac_status); }; }; then
21964   ac_header_compiler=yes
21965 else
21966   echo "$as_me: failed program was:" >&5
21967 sed 's/^/| /' conftest.$ac_ext >&5
21968
21969 ac_header_compiler=no
21970 fi
21971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21972 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21973 echo "${ECHO_T}$ac_header_compiler" >&6
21974
21975 # Is the header present?
21976 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21977 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21978 cat >conftest.$ac_ext <<_ACEOF
21979 /* confdefs.h.  */
21980 _ACEOF
21981 cat confdefs.h >>conftest.$ac_ext
21982 cat >>conftest.$ac_ext <<_ACEOF
21983 /* end confdefs.h.  */
21984 #include <$ac_header>
21985 _ACEOF
21986 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&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; then
21994   if test -s conftest.err; then
21995     ac_cpp_err=$ac_c_preproc_warn_flag
21996     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21997   else
21998     ac_cpp_err=
21999   fi
22000 else
22001   ac_cpp_err=yes
22002 fi
22003 if test -z "$ac_cpp_err"; then
22004   ac_header_preproc=yes
22005 else
22006   echo "$as_me: failed program was:" >&5
22007 sed 's/^/| /' conftest.$ac_ext >&5
22008
22009   ac_header_preproc=no
22010 fi
22011 rm -f conftest.err conftest.$ac_ext
22012 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22013 echo "${ECHO_T}$ac_header_preproc" >&6
22014
22015 # So?  What about this header?
22016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22017   yes:no: )
22018     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22019 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22020     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22021 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22022     ac_header_preproc=yes
22023     ;;
22024   no:yes:* )
22025     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22026 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22027     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22028 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22029     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22030 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22031     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22032 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22033     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22034 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22035     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22036 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22037     (
22038       cat <<\_ASBOX
22039 ## ------------------------------------------ ##
22040 ## Report this to the AC_PACKAGE_NAME lists.  ##
22041 ## ------------------------------------------ ##
22042 _ASBOX
22043     ) |
22044       sed "s/^/$as_me: WARNING:     /" >&2
22045     ;;
22046 esac
22047 echo "$as_me:$LINENO: checking for $ac_header" >&5
22048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22050   echo $ECHO_N "(cached) $ECHO_C" >&6
22051 else
22052   eval "$as_ac_Header=\$ac_header_preproc"
22053 fi
22054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22055 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22056
22057 fi
22058 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22059   cat >>confdefs.h <<_ACEOF
22060 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22061 _ACEOF
22062
22063 else
22064   OPENSSL_LIBS=
22065
22066 fi
22067
22068 done
22069
22070     if test "x$OPENSSL_LIBS" != "x"; then
22071         echo "$as_me:$LINENO: checking for OpenSSL version >= 0.9.7" >&5
22072 echo $ECHO_N "checking for OpenSSL version >= 0.9.7... $ECHO_C" >&6
22073         cat >conftest.$ac_ext <<_ACEOF
22074 /* confdefs.h.  */
22075 _ACEOF
22076 cat confdefs.h >>conftest.$ac_ext
22077 cat >>conftest.$ac_ext <<_ACEOF
22078 /* end confdefs.h.  */
22079 #include <openssl/crypto.h>
22080              #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
22081              yes
22082              #endif
22083
22084 _ACEOF
22085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22086   $EGREP "yes" >/dev/null 2>&1; then
22087   goodssl="yes"
22088 fi
22089 rm -f conftest*
22090
22091         if test "x$goodssl" != "xyes"; then
22092             echo "$as_me:$LINENO: result: no" >&5
22093 echo "${ECHO_T}no" >&6
22094             OPENSSL_LIBS=
22095         else
22096             echo "$as_me:$LINENO: result: yes" >&5
22097 echo "${ECHO_T}yes" >&6
22098             if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
22099                 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
22100             else
22101                 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
22102             fi
22103         fi
22104     fi
22105     CPPFLAGS=$old_CPPFLAGS
22106 fi
22107
22108
22109 export OPENSSL_LIBS
22110
22111 if test "x$PCAP_LIBS" = x; then
22112     { echo "$as_me:$LINENO: skipping test for pcap.h." >&5
22113 echo "$as_me: skipping test for pcap.h." >&6;}
22114 else
22115     if test "${ac_cv_header_pcap_h+set}" = set; then
22116   echo "$as_me:$LINENO: checking for pcap.h" >&5
22117 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6
22118 if test "${ac_cv_header_pcap_h+set}" = set; then
22119   echo $ECHO_N "(cached) $ECHO_C" >&6
22120 fi
22121 echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
22122 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6
22123 else
22124   # Is the header compilable?
22125 echo "$as_me:$LINENO: checking pcap.h usability" >&5
22126 echo $ECHO_N "checking pcap.h usability... $ECHO_C" >&6
22127 cat >conftest.$ac_ext <<_ACEOF
22128 /* confdefs.h.  */
22129 _ACEOF
22130 cat confdefs.h >>conftest.$ac_ext
22131 cat >>conftest.$ac_ext <<_ACEOF
22132 /* end confdefs.h.  */
22133 $ac_includes_default
22134 #include <pcap.h>
22135 _ACEOF
22136 rm -f conftest.$ac_objext
22137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22138   (eval $ac_compile) 2>conftest.er1
22139   ac_status=$?
22140   grep -v '^ *+' conftest.er1 >conftest.err
22141   rm -f conftest.er1
22142   cat conftest.err >&5
22143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22144   (exit $ac_status); } &&
22145          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22147   (eval $ac_try) 2>&5
22148   ac_status=$?
22149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22150   (exit $ac_status); }; } &&
22151          { ac_try='test -s conftest.$ac_objext'
22152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22153   (eval $ac_try) 2>&5
22154   ac_status=$?
22155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22156   (exit $ac_status); }; }; then
22157   ac_header_compiler=yes
22158 else
22159   echo "$as_me: failed program was:" >&5
22160 sed 's/^/| /' conftest.$ac_ext >&5
22161
22162 ac_header_compiler=no
22163 fi
22164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22165 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22166 echo "${ECHO_T}$ac_header_compiler" >&6
22167
22168 # Is the header present?
22169 echo "$as_me:$LINENO: checking pcap.h presence" >&5
22170 echo $ECHO_N "checking pcap.h presence... $ECHO_C" >&6
22171 cat >conftest.$ac_ext <<_ACEOF
22172 /* confdefs.h.  */
22173 _ACEOF
22174 cat confdefs.h >>conftest.$ac_ext
22175 cat >>conftest.$ac_ext <<_ACEOF
22176 /* end confdefs.h.  */
22177 #include <pcap.h>
22178 _ACEOF
22179 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22180   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22181   ac_status=$?
22182   grep -v '^ *+' conftest.er1 >conftest.err
22183   rm -f conftest.er1
22184   cat conftest.err >&5
22185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22186   (exit $ac_status); } >/dev/null; then
22187   if test -s conftest.err; then
22188     ac_cpp_err=$ac_c_preproc_warn_flag
22189     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22190   else
22191     ac_cpp_err=
22192   fi
22193 else
22194   ac_cpp_err=yes
22195 fi
22196 if test -z "$ac_cpp_err"; then
22197   ac_header_preproc=yes
22198 else
22199   echo "$as_me: failed program was:" >&5
22200 sed 's/^/| /' conftest.$ac_ext >&5
22201
22202   ac_header_preproc=no
22203 fi
22204 rm -f conftest.err conftest.$ac_ext
22205 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22206 echo "${ECHO_T}$ac_header_preproc" >&6
22207
22208 # So?  What about this header?
22209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22210   yes:no: )
22211     { echo "$as_me:$LINENO: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
22212 echo "$as_me: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22213     { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the compiler's result" >&5
22214 echo "$as_me: WARNING: pcap.h: proceeding with the compiler's result" >&2;}
22215     ac_header_preproc=yes
22216     ;;
22217   no:yes:* )
22218     { echo "$as_me:$LINENO: WARNING: pcap.h: present but cannot be compiled" >&5
22219 echo "$as_me: WARNING: pcap.h: present but cannot be compiled" >&2;}
22220     { echo "$as_me:$LINENO: WARNING: pcap.h:     check for missing prerequisite headers?" >&5
22221 echo "$as_me: WARNING: pcap.h:     check for missing prerequisite headers?" >&2;}
22222     { echo "$as_me:$LINENO: WARNING: pcap.h: see the Autoconf documentation" >&5
22223 echo "$as_me: WARNING: pcap.h: see the Autoconf documentation" >&2;}
22224     { echo "$as_me:$LINENO: WARNING: pcap.h:     section \"Present But Cannot Be Compiled\"" >&5
22225 echo "$as_me: WARNING: pcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22226     { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the preprocessor's result" >&5
22227 echo "$as_me: WARNING: pcap.h: proceeding with the preprocessor's result" >&2;}
22228     { echo "$as_me:$LINENO: WARNING: pcap.h: in the future, the compiler will take precedence" >&5
22229 echo "$as_me: WARNING: pcap.h: in the future, the compiler will take precedence" >&2;}
22230     (
22231       cat <<\_ASBOX
22232 ## ------------------------------------------ ##
22233 ## Report this to the AC_PACKAGE_NAME lists.  ##
22234 ## ------------------------------------------ ##
22235 _ASBOX
22236     ) |
22237       sed "s/^/$as_me: WARNING:     /" >&2
22238     ;;
22239 esac
22240 echo "$as_me:$LINENO: checking for pcap.h" >&5
22241 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6
22242 if test "${ac_cv_header_pcap_h+set}" = set; then
22243   echo $ECHO_N "(cached) $ECHO_C" >&6
22244 else
22245   ac_cv_header_pcap_h=$ac_header_preproc
22246 fi
22247 echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
22248 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6
22249
22250 fi
22251 if test $ac_cv_header_pcap_h = yes; then
22252
22253 cat >>confdefs.h <<\_ACEOF
22254 #define HAVE_PCAP_H 1
22255 _ACEOF
22256
22257 else
22258    PCAP_LIBS=
22259         { echo "$as_me:$LINENO: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
22260 echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
22261
22262 fi
22263
22264
22265 fi
22266
22267
22268
22269 echo "$as_me:$LINENO: checking for off_t" >&5
22270 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
22271 if test "${ac_cv_type_off_t+set}" = set; then
22272   echo $ECHO_N "(cached) $ECHO_C" >&6
22273 else
22274   cat >conftest.$ac_ext <<_ACEOF
22275 /* confdefs.h.  */
22276 _ACEOF
22277 cat confdefs.h >>conftest.$ac_ext
22278 cat >>conftest.$ac_ext <<_ACEOF
22279 /* end confdefs.h.  */
22280 $ac_includes_default
22281 int
22282 main ()
22283 {
22284 if ((off_t *) 0)
22285   return 0;
22286 if (sizeof (off_t))
22287   return 0;
22288   ;
22289   return 0;
22290 }
22291 _ACEOF
22292 rm -f conftest.$ac_objext
22293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22294   (eval $ac_compile) 2>conftest.er1
22295   ac_status=$?
22296   grep -v '^ *+' conftest.er1 >conftest.err
22297   rm -f conftest.er1
22298   cat conftest.err >&5
22299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22300   (exit $ac_status); } &&
22301          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22303   (eval $ac_try) 2>&5
22304   ac_status=$?
22305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22306   (exit $ac_status); }; } &&
22307          { ac_try='test -s conftest.$ac_objext'
22308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22309   (eval $ac_try) 2>&5
22310   ac_status=$?
22311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22312   (exit $ac_status); }; }; then
22313   ac_cv_type_off_t=yes
22314 else
22315   echo "$as_me: failed program was:" >&5
22316 sed 's/^/| /' conftest.$ac_ext >&5
22317
22318 ac_cv_type_off_t=no
22319 fi
22320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22321 fi
22322 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22323 echo "${ECHO_T}$ac_cv_type_off_t" >&6
22324 if test $ac_cv_type_off_t = yes; then
22325   :
22326 else
22327
22328 cat >>confdefs.h <<_ACEOF
22329 #define off_t long
22330 _ACEOF
22331
22332 fi
22333
22334 echo "$as_me:$LINENO: checking for pid_t" >&5
22335 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
22336 if test "${ac_cv_type_pid_t+set}" = set; then
22337   echo $ECHO_N "(cached) $ECHO_C" >&6
22338 else
22339   cat >conftest.$ac_ext <<_ACEOF
22340 /* confdefs.h.  */
22341 _ACEOF
22342 cat confdefs.h >>conftest.$ac_ext
22343 cat >>conftest.$ac_ext <<_ACEOF
22344 /* end confdefs.h.  */
22345 $ac_includes_default
22346 int
22347 main ()
22348 {
22349 if ((pid_t *) 0)
22350   return 0;
22351 if (sizeof (pid_t))
22352   return 0;
22353   ;
22354   return 0;
22355 }
22356 _ACEOF
22357 rm -f conftest.$ac_objext
22358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22359   (eval $ac_compile) 2>conftest.er1
22360   ac_status=$?
22361   grep -v '^ *+' conftest.er1 >conftest.err
22362   rm -f conftest.er1
22363   cat conftest.err >&5
22364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22365   (exit $ac_status); } &&
22366          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22368   (eval $ac_try) 2>&5
22369   ac_status=$?
22370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22371   (exit $ac_status); }; } &&
22372          { ac_try='test -s conftest.$ac_objext'
22373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22374   (eval $ac_try) 2>&5
22375   ac_status=$?
22376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22377   (exit $ac_status); }; }; then
22378   ac_cv_type_pid_t=yes
22379 else
22380   echo "$as_me: failed program was:" >&5
22381 sed 's/^/| /' conftest.$ac_ext >&5
22382
22383 ac_cv_type_pid_t=no
22384 fi
22385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22386 fi
22387 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22388 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
22389 if test $ac_cv_type_pid_t = yes; then
22390   :
22391 else
22392
22393 cat >>confdefs.h <<_ACEOF
22394 #define pid_t int
22395 _ACEOF
22396
22397 fi
22398
22399 echo "$as_me:$LINENO: checking for size_t" >&5
22400 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22401 if test "${ac_cv_type_size_t+set}" = set; then
22402   echo $ECHO_N "(cached) $ECHO_C" >&6
22403 else
22404   cat >conftest.$ac_ext <<_ACEOF
22405 /* confdefs.h.  */
22406 _ACEOF
22407 cat confdefs.h >>conftest.$ac_ext
22408 cat >>conftest.$ac_ext <<_ACEOF
22409 /* end confdefs.h.  */
22410 $ac_includes_default
22411 int
22412 main ()
22413 {
22414 if ((size_t *) 0)
22415   return 0;
22416 if (sizeof (size_t))
22417   return 0;
22418   ;
22419   return 0;
22420 }
22421 _ACEOF
22422 rm -f conftest.$ac_objext
22423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22424   (eval $ac_compile) 2>conftest.er1
22425   ac_status=$?
22426   grep -v '^ *+' conftest.er1 >conftest.err
22427   rm -f conftest.er1
22428   cat conftest.err >&5
22429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22430   (exit $ac_status); } &&
22431          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22433   (eval $ac_try) 2>&5
22434   ac_status=$?
22435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22436   (exit $ac_status); }; } &&
22437          { ac_try='test -s conftest.$ac_objext'
22438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22439   (eval $ac_try) 2>&5
22440   ac_status=$?
22441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22442   (exit $ac_status); }; }; then
22443   ac_cv_type_size_t=yes
22444 else
22445   echo "$as_me: failed program was:" >&5
22446 sed 's/^/| /' conftest.$ac_ext >&5
22447
22448 ac_cv_type_size_t=no
22449 fi
22450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22451 fi
22452 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22453 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22454 if test $ac_cv_type_size_t = yes; then
22455   :
22456 else
22457
22458 cat >>confdefs.h <<_ACEOF
22459 #define size_t unsigned
22460 _ACEOF
22461
22462 fi
22463
22464 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22465 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
22466 if test "${ac_cv_type_uid_t+set}" = set; then
22467   echo $ECHO_N "(cached) $ECHO_C" >&6
22468 else
22469   cat >conftest.$ac_ext <<_ACEOF
22470 /* confdefs.h.  */
22471 _ACEOF
22472 cat confdefs.h >>conftest.$ac_ext
22473 cat >>conftest.$ac_ext <<_ACEOF
22474 /* end confdefs.h.  */
22475 #include <sys/types.h>
22476
22477 _ACEOF
22478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22479   $EGREP "uid_t" >/dev/null 2>&1; then
22480   ac_cv_type_uid_t=yes
22481 else
22482   ac_cv_type_uid_t=no
22483 fi
22484 rm -f conftest*
22485
22486 fi
22487 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22488 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
22489 if test $ac_cv_type_uid_t = no; then
22490
22491 cat >>confdefs.h <<\_ACEOF
22492 #define uid_t int
22493 _ACEOF
22494
22495
22496 cat >>confdefs.h <<\_ACEOF
22497 #define gid_t int
22498 _ACEOF
22499
22500 fi
22501
22502
22503
22504   echo "$as_me:$LINENO: checking for socklen_t" >&5
22505 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
22506 if test "${ac_cv_type_socklen_t+set}" = set; then
22507   echo $ECHO_N "(cached) $ECHO_C" >&6
22508 else
22509    ac_cv_type_socklen_t=no
22510       cat >conftest.$ac_ext <<_ACEOF
22511 /* confdefs.h.  */
22512 _ACEOF
22513 cat confdefs.h >>conftest.$ac_ext
22514 cat >>conftest.$ac_ext <<_ACEOF
22515 /* end confdefs.h.  */
22516 #ifdef HAVE_SYS_TYPES_H
22517 #include <sys/types.h>
22518 #endif
22519 #ifdef HAVE_SYS_SOCKET_H
22520 #include <sys/socket.h>
22521 #endif
22522
22523 int
22524 main ()
22525 {
22526 socklen_t foo
22527   ;
22528   return 0;
22529 }
22530 _ACEOF
22531 rm -f conftest.$ac_objext
22532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22533   (eval $ac_compile) 2>conftest.er1
22534   ac_status=$?
22535   grep -v '^ *+' conftest.er1 >conftest.err
22536   rm -f conftest.er1
22537   cat conftest.err >&5
22538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539   (exit $ac_status); } &&
22540          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22542   (eval $ac_try) 2>&5
22543   ac_status=$?
22544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22545   (exit $ac_status); }; } &&
22546          { ac_try='test -s conftest.$ac_objext'
22547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22548   (eval $ac_try) 2>&5
22549   ac_status=$?
22550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22551   (exit $ac_status); }; }; then
22552   ac_cv_type_socklen_t=yes
22553 else
22554   echo "$as_me: failed program was:" >&5
22555 sed 's/^/| /' conftest.$ac_ext >&5
22556
22557 fi
22558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22559
22560
22561 fi
22562 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
22563 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
22564
22565   if test "$ac_cv_type_socklen_t" != "yes"; then
22566
22567 cat >>confdefs.h <<\_ACEOF
22568 #define socklen_t int
22569 _ACEOF
22570
22571   fi
22572
22573
22574
22575   echo "$as_me:$LINENO: checking for uint8_t" >&5
22576 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
22577 if test "${ac_cv_type_uint8_t+set}" = set; then
22578   echo $ECHO_N "(cached) $ECHO_C" >&6
22579 else
22580    ac_cv_type_uint8_t=no
22581       cat >conftest.$ac_ext <<_ACEOF
22582 /* confdefs.h.  */
22583 _ACEOF
22584 cat confdefs.h >>conftest.$ac_ext
22585 cat >>conftest.$ac_ext <<_ACEOF
22586 /* end confdefs.h.  */
22587 #ifdef HAVE_INTTYPES_H
22588 #include <inttypes.h>
22589 #endif
22590 #ifdef HAVE_STDINT_H
22591 #include <stdint.h>
22592 #endif
22593
22594 int
22595 main ()
22596 {
22597 uint8_t foo
22598   ;
22599   return 0;
22600 }
22601 _ACEOF
22602 rm -f conftest.$ac_objext
22603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22604   (eval $ac_compile) 2>conftest.er1
22605   ac_status=$?
22606   grep -v '^ *+' conftest.er1 >conftest.err
22607   rm -f conftest.er1
22608   cat conftest.err >&5
22609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22610   (exit $ac_status); } &&
22611          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22613   (eval $ac_try) 2>&5
22614   ac_status=$?
22615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22616   (exit $ac_status); }; } &&
22617          { ac_try='test -s conftest.$ac_objext'
22618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22619   (eval $ac_try) 2>&5
22620   ac_status=$?
22621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22622   (exit $ac_status); }; }; then
22623   ac_cv_type_uint8_t=yes
22624 else
22625   echo "$as_me: failed program was:" >&5
22626 sed 's/^/| /' conftest.$ac_ext >&5
22627
22628 fi
22629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22630
22631
22632 fi
22633 echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
22634 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
22635
22636   if test "$ac_cv_type_uint8_t" != "yes"; then
22637
22638 cat >>confdefs.h <<\_ACEOF
22639 #define uint8_t unsigned char
22640 _ACEOF
22641
22642   fi
22643
22644
22645
22646   echo "$as_me:$LINENO: checking for uint16_t" >&5
22647 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
22648 if test "${ac_cv_type_uint16_t+set}" = set; then
22649   echo $ECHO_N "(cached) $ECHO_C" >&6
22650 else
22651    ac_cv_type_uint16_t=no
22652       cat >conftest.$ac_ext <<_ACEOF
22653 /* confdefs.h.  */
22654 _ACEOF
22655 cat confdefs.h >>conftest.$ac_ext
22656 cat >>conftest.$ac_ext <<_ACEOF
22657 /* end confdefs.h.  */
22658 #ifdef HAVE_INTTYPES_H
22659 #include <inttypes.h>
22660 #endif
22661 #ifdef HAVE_STDINT_H
22662 #include <stdint.h>
22663 #endif
22664
22665 int
22666 main ()
22667 {
22668 uint16_t foo
22669   ;
22670   return 0;
22671 }
22672 _ACEOF
22673 rm -f conftest.$ac_objext
22674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22675   (eval $ac_compile) 2>conftest.er1
22676   ac_status=$?
22677   grep -v '^ *+' conftest.er1 >conftest.err
22678   rm -f conftest.er1
22679   cat conftest.err >&5
22680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22681   (exit $ac_status); } &&
22682          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22684   (eval $ac_try) 2>&5
22685   ac_status=$?
22686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22687   (exit $ac_status); }; } &&
22688          { ac_try='test -s conftest.$ac_objext'
22689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22690   (eval $ac_try) 2>&5
22691   ac_status=$?
22692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22693   (exit $ac_status); }; }; then
22694   ac_cv_type_uint16_t=yes
22695 else
22696   echo "$as_me: failed program was:" >&5
22697 sed 's/^/| /' conftest.$ac_ext >&5
22698
22699 fi
22700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22701
22702
22703 fi
22704 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
22705 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
22706
22707   if test "$ac_cv_type_uint16_t" != "yes"; then
22708
22709 cat >>confdefs.h <<\_ACEOF
22710 #define uint16_t unsigned short
22711 _ACEOF
22712
22713   fi
22714
22715
22716
22717   echo "$as_me:$LINENO: checking for uint32_t" >&5
22718 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
22719 if test "${ac_cv_type_uint32_t+set}" = set; then
22720   echo $ECHO_N "(cached) $ECHO_C" >&6
22721 else
22722    ac_cv_type_uint32_t=no
22723       cat >conftest.$ac_ext <<_ACEOF
22724 /* confdefs.h.  */
22725 _ACEOF
22726 cat confdefs.h >>conftest.$ac_ext
22727 cat >>conftest.$ac_ext <<_ACEOF
22728 /* end confdefs.h.  */
22729 #ifdef HAVE_INTTYPES_H
22730 #include <inttypes.h>
22731 #endif
22732 #ifdef HAVE_STDINT_H
22733 #include <stdint.h>
22734 #endif
22735
22736 int
22737 main ()
22738 {
22739 uint32_t foo
22740   ;
22741   return 0;
22742 }
22743 _ACEOF
22744 rm -f conftest.$ac_objext
22745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22746   (eval $ac_compile) 2>conftest.er1
22747   ac_status=$?
22748   grep -v '^ *+' conftest.er1 >conftest.err
22749   rm -f conftest.er1
22750   cat conftest.err >&5
22751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22752   (exit $ac_status); } &&
22753          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22755   (eval $ac_try) 2>&5
22756   ac_status=$?
22757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22758   (exit $ac_status); }; } &&
22759          { ac_try='test -s conftest.$ac_objext'
22760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22761   (eval $ac_try) 2>&5
22762   ac_status=$?
22763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22764   (exit $ac_status); }; }; then
22765   ac_cv_type_uint32_t=yes
22766 else
22767   echo "$as_me: failed program was:" >&5
22768 sed 's/^/| /' conftest.$ac_ext >&5
22769
22770 fi
22771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22772
22773
22774 fi
22775 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
22776 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
22777
22778   if test "$ac_cv_type_uint32_t" != "yes"; then
22779
22780 cat >>confdefs.h <<\_ACEOF
22781 #define uint32_t unsigned int
22782 _ACEOF
22783
22784   fi
22785
22786
22787 echo "$as_me:$LINENO: checking for struct in6_addr" >&5
22788 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6
22789 if test "${ac_cv_type_struct_in6_addr+set}" = set; then
22790   echo $ECHO_N "(cached) $ECHO_C" >&6
22791 else
22792   cat >conftest.$ac_ext <<_ACEOF
22793 /* confdefs.h.  */
22794 _ACEOF
22795 cat confdefs.h >>conftest.$ac_ext
22796 cat >>conftest.$ac_ext <<_ACEOF
22797 /* end confdefs.h.  */
22798
22799 #ifdef HAVE_NETINET_IN_H
22800 #include <netinet/in.h>
22801 #endif
22802
22803
22804 int
22805 main ()
22806 {
22807 if ((struct in6_addr *) 0)
22808   return 0;
22809 if (sizeof (struct in6_addr))
22810   return 0;
22811   ;
22812   return 0;
22813 }
22814 _ACEOF
22815 rm -f conftest.$ac_objext
22816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22817   (eval $ac_compile) 2>conftest.er1
22818   ac_status=$?
22819   grep -v '^ *+' conftest.er1 >conftest.err
22820   rm -f conftest.er1
22821   cat conftest.err >&5
22822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22823   (exit $ac_status); } &&
22824          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22826   (eval $ac_try) 2>&5
22827   ac_status=$?
22828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22829   (exit $ac_status); }; } &&
22830          { ac_try='test -s conftest.$ac_objext'
22831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22832   (eval $ac_try) 2>&5
22833   ac_status=$?
22834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22835   (exit $ac_status); }; }; then
22836   ac_cv_type_struct_in6_addr=yes
22837 else
22838   echo "$as_me: failed program was:" >&5
22839 sed 's/^/| /' conftest.$ac_ext >&5
22840
22841 ac_cv_type_struct_in6_addr=no
22842 fi
22843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22844 fi
22845 echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
22846 echo "${ECHO_T}$ac_cv_type_struct_in6_addr" >&6
22847 if test $ac_cv_type_struct_in6_addr = yes; then
22848
22849 cat >>confdefs.h <<\_ACEOF
22850 #define HAVE_STRUCT_IN6_ADDR 1
22851 _ACEOF
22852
22853 fi
22854
22855
22856 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
22857 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
22858 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
22859   echo $ECHO_N "(cached) $ECHO_C" >&6
22860 else
22861   cat >conftest.$ac_ext <<_ACEOF
22862 /* confdefs.h.  */
22863 _ACEOF
22864 cat confdefs.h >>conftest.$ac_ext
22865 cat >>conftest.$ac_ext <<_ACEOF
22866 /* end confdefs.h.  */
22867
22868 #ifdef HAVE_NETINET_IN_H
22869 #include <netinet/in.h>
22870 #endif
22871 #ifdef HAVE_SYS_SOCKET_H
22872 #include <sys/socket.h>
22873 #endif
22874
22875
22876 int
22877 main ()
22878 {
22879 if ((struct sockaddr_storage *) 0)
22880   return 0;
22881 if (sizeof (struct sockaddr_storage))
22882   return 0;
22883   ;
22884   return 0;
22885 }
22886 _ACEOF
22887 rm -f conftest.$ac_objext
22888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22889   (eval $ac_compile) 2>conftest.er1
22890   ac_status=$?
22891   grep -v '^ *+' conftest.er1 >conftest.err
22892   rm -f conftest.er1
22893   cat conftest.err >&5
22894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22895   (exit $ac_status); } &&
22896          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22898   (eval $ac_try) 2>&5
22899   ac_status=$?
22900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22901   (exit $ac_status); }; } &&
22902          { ac_try='test -s conftest.$ac_objext'
22903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22904   (eval $ac_try) 2>&5
22905   ac_status=$?
22906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22907   (exit $ac_status); }; }; then
22908   ac_cv_type_struct_sockaddr_storage=yes
22909 else
22910   echo "$as_me: failed program was:" >&5
22911 sed 's/^/| /' conftest.$ac_ext >&5
22912
22913 ac_cv_type_struct_sockaddr_storage=no
22914 fi
22915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22916 fi
22917 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
22918 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
22919 if test $ac_cv_type_struct_sockaddr_storage = yes; then
22920
22921 cat >>confdefs.h <<\_ACEOF
22922 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
22923 _ACEOF
22924
22925 fi
22926
22927
22928 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
22929 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
22930 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
22931   echo $ECHO_N "(cached) $ECHO_C" >&6
22932 else
22933   cat >conftest.$ac_ext <<_ACEOF
22934 /* confdefs.h.  */
22935 _ACEOF
22936 cat confdefs.h >>conftest.$ac_ext
22937 cat >>conftest.$ac_ext <<_ACEOF
22938 /* end confdefs.h.  */
22939
22940 #ifdef HAVE_NETINET_IN_H
22941 #include <netinet/in.h>
22942 #endif
22943
22944
22945 int
22946 main ()
22947 {
22948 if ((struct sockaddr_in6 *) 0)
22949   return 0;
22950 if (sizeof (struct sockaddr_in6))
22951   return 0;
22952   ;
22953   return 0;
22954 }
22955 _ACEOF
22956 rm -f conftest.$ac_objext
22957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22958   (eval $ac_compile) 2>conftest.er1
22959   ac_status=$?
22960   grep -v '^ *+' conftest.er1 >conftest.err
22961   rm -f conftest.er1
22962   cat conftest.err >&5
22963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22964   (exit $ac_status); } &&
22965          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22967   (eval $ac_try) 2>&5
22968   ac_status=$?
22969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22970   (exit $ac_status); }; } &&
22971          { ac_try='test -s conftest.$ac_objext'
22972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22973   (eval $ac_try) 2>&5
22974   ac_status=$?
22975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22976   (exit $ac_status); }; }; then
22977   ac_cv_type_struct_sockaddr_in6=yes
22978 else
22979   echo "$as_me: failed program was:" >&5
22980 sed 's/^/| /' conftest.$ac_ext >&5
22981
22982 ac_cv_type_struct_sockaddr_in6=no
22983 fi
22984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22985 fi
22986 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
22987 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
22988 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
22989
22990 cat >>confdefs.h <<\_ACEOF
22991 #define HAVE_STRUCT_SOCKADDR_IN6 1
22992 _ACEOF
22993
22994 fi
22995
22996
22997 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
22998 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
22999 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
23000   echo $ECHO_N "(cached) $ECHO_C" >&6
23001 else
23002   cat >conftest.$ac_ext <<_ACEOF
23003 /* confdefs.h.  */
23004 _ACEOF
23005 cat confdefs.h >>conftest.$ac_ext
23006 cat >>conftest.$ac_ext <<_ACEOF
23007 /* end confdefs.h.  */
23008
23009 #ifdef HAVE_SYS_TYPES_H
23010 #include <sys/types.h>
23011 #endif
23012 #ifdef HAVE_SYS_SOCKET_H
23013 #include <sys/socket.h>
23014 #endif
23015 #ifdef HAVE_NETDB_H
23016 #include <netdb.h>
23017 #endif
23018
23019
23020 int
23021 main ()
23022 {
23023 if ((struct addrinfo *) 0)
23024   return 0;
23025 if (sizeof (struct addrinfo))
23026   return 0;
23027   ;
23028   return 0;
23029 }
23030 _ACEOF
23031 rm -f conftest.$ac_objext
23032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23033   (eval $ac_compile) 2>conftest.er1
23034   ac_status=$?
23035   grep -v '^ *+' conftest.er1 >conftest.err
23036   rm -f conftest.er1
23037   cat conftest.err >&5
23038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23039   (exit $ac_status); } &&
23040          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23042   (eval $ac_try) 2>&5
23043   ac_status=$?
23044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23045   (exit $ac_status); }; } &&
23046          { ac_try='test -s conftest.$ac_objext'
23047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23048   (eval $ac_try) 2>&5
23049   ac_status=$?
23050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23051   (exit $ac_status); }; }; then
23052   ac_cv_type_struct_addrinfo=yes
23053 else
23054   echo "$as_me: failed program was:" >&5
23055 sed 's/^/| /' conftest.$ac_ext >&5
23056
23057 ac_cv_type_struct_addrinfo=no
23058 fi
23059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23060 fi
23061 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
23062 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
23063 if test $ac_cv_type_struct_addrinfo = yes; then
23064
23065 cat >>confdefs.h <<\_ACEOF
23066 #define HAVE_STRUCT_ADDRINFO 1
23067 _ACEOF
23068
23069 fi
23070
23071
23072
23073
23074
23075
23076
23077
23078
23079
23080
23081
23082
23083
23084
23085
23086
23087
23088
23089
23090
23091
23092
23093
23094
23095
23096
23097
23098
23099
23100 for ac_func in \
23101         getopt_long \
23102         lockf \
23103         strsignal \
23104         sigaction \
23105         sigprocmask \
23106         pthread_sigmask \
23107         snprintf \
23108         vsnprintf \
23109         setsid \
23110         strncasecmp \
23111         strcasecmp \
23112         localtime_r \
23113         ctime_r \
23114         gmtime_r \
23115         strsep \
23116         inet_aton \
23117         inet_pton \
23118         inet_ntop \
23119         gethostname \
23120         setlinebuf \
23121         setvbuf \
23122         getusershell \
23123         initgroups \
23124         getaddrinfo \
23125         getnameinfo \
23126         closefrom \
23127         strlcat \
23128         strlcpy
23129
23130 do
23131 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23132 echo "$as_me:$LINENO: checking for $ac_func" >&5
23133 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23134 if eval "test \"\${$as_ac_var+set}\" = set"; then
23135   echo $ECHO_N "(cached) $ECHO_C" >&6
23136 else
23137   cat >conftest.$ac_ext <<_ACEOF
23138 /* confdefs.h.  */
23139 _ACEOF
23140 cat confdefs.h >>conftest.$ac_ext
23141 cat >>conftest.$ac_ext <<_ACEOF
23142 /* end confdefs.h.  */
23143 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23144    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23145 #define $ac_func innocuous_$ac_func
23146
23147 /* System header to define __stub macros and hopefully few prototypes,
23148     which can conflict with char $ac_func (); below.
23149     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23150     <limits.h> exists even on freestanding compilers.  */
23151
23152 #ifdef __STDC__
23153 # include <limits.h>
23154 #else
23155 # include <assert.h>
23156 #endif
23157
23158 #undef $ac_func
23159
23160 /* Override any gcc2 internal prototype to avoid an error.  */
23161 #ifdef __cplusplus
23162 extern "C"
23163 {
23164 #endif
23165 /* We use char because int might match the return type of a gcc2
23166    builtin and then its argument prototype would still apply.  */
23167 char $ac_func ();
23168 /* The GNU C library defines this for functions which it implements
23169     to always fail with ENOSYS.  Some functions are actually named
23170     something starting with __ and the normal name is an alias.  */
23171 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23172 choke me
23173 #else
23174 char (*f) () = $ac_func;
23175 #endif
23176 #ifdef __cplusplus
23177 }
23178 #endif
23179
23180 int
23181 main ()
23182 {
23183 return f != $ac_func;
23184   ;
23185   return 0;
23186 }
23187 _ACEOF
23188 rm -f conftest.$ac_objext conftest$ac_exeext
23189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23190   (eval $ac_link) 2>conftest.er1
23191   ac_status=$?
23192   grep -v '^ *+' conftest.er1 >conftest.err
23193   rm -f conftest.er1
23194   cat conftest.err >&5
23195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23196   (exit $ac_status); } &&
23197          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23199   (eval $ac_try) 2>&5
23200   ac_status=$?
23201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23202   (exit $ac_status); }; } &&
23203          { ac_try='test -s conftest$ac_exeext'
23204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23205   (eval $ac_try) 2>&5
23206   ac_status=$?
23207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23208   (exit $ac_status); }; }; then
23209   eval "$as_ac_var=yes"
23210 else
23211   echo "$as_me: failed program was:" >&5
23212 sed 's/^/| /' conftest.$ac_ext >&5
23213
23214 eval "$as_ac_var=no"
23215 fi
23216 rm -f conftest.err conftest.$ac_objext \
23217       conftest$ac_exeext conftest.$ac_ext
23218 fi
23219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23220 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23221 if test `eval echo '${'$as_ac_var'}'` = yes; then
23222   cat >>confdefs.h <<_ACEOF
23223 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23224 _ACEOF
23225
23226 fi
23227 done
23228
23229 for ac_func in \
23230         crypt \
23231         strncasecmp \
23232         strcasecmp \
23233         inet_aton \
23234         gethostname \
23235         setlinebuf \
23236         getusershell \
23237         endusershell
23238
23239 do
23240 echo "$as_me:$LINENO: checking whether $ac_func must be declared" >&5
23241 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6
23242 if eval "test \"\${radius_cv_decl_needed_$ac_func+set}\" = set"; then
23243   echo $ECHO_N "(cached) $ECHO_C" >&6
23244 else
23245   cat >conftest.$ac_ext <<_ACEOF
23246 /* confdefs.h.  */
23247 _ACEOF
23248 cat confdefs.h >>conftest.$ac_ext
23249 cat >>conftest.$ac_ext <<_ACEOF
23250 /* end confdefs.h.  */
23251
23252 #include <stdio.h>
23253 #include <string.h>
23254 #ifdef HAVE_UNISTD_H
23255 #include <unistd.h>
23256 #endif
23257 #ifdef HAVE_CRYPT_H
23258 #include <crypt.h>
23259 #endif
23260 #ifdef HAVE_ERRNO_H
23261 #include <errno.h>
23262 #endif
23263 #ifdef HAVE_RESOURCE_H
23264 #include <resource.h>
23265 #endif
23266 #ifdef HAVE_GETOPT_H
23267 #include <getopt.h>
23268 #endif
23269 #ifdef HAVE_MALLOC_H
23270 #include <malloc.h>
23271 #endif
23272 #ifdef HAVE_UTMP_H
23273 #include <utmp.h>
23274 #endif
23275 #ifdef HAVE_UTMPX_H
23276 #include <utmpx.h>
23277 #endif
23278 #ifdef HAVE_SYS_SELECT_H
23279 #include <sys/select.h>
23280 #endif
23281 #ifdef HAVE_DLFCN_H
23282 #include <dlfcn.h>
23283 #endif
23284 #ifdef HAVE_REGEX_H
23285 #include <regex.h>
23286 #endif
23287 #ifdef HAVE_SYSLOG_H
23288 #include <syslog.h>
23289 #endif
23290 #ifdef HAVE_INTTYPES_H
23291 #include <inttypes.h>
23292 #endif
23293 #ifdef HAVE_STDINT_H
23294 #include <stdint.h>
23295 #endif
23296 #ifdef HAVE_ARPA_INET_H
23297 #include <arpa/inet.h>
23298 #endif
23299
23300 int
23301 main ()
23302 {
23303 char *(*pfn) = (char *(*)) $ac_func
23304   ;
23305   return 0;
23306 }
23307 _ACEOF
23308 rm -f conftest.$ac_objext
23309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23310   (eval $ac_compile) 2>conftest.er1
23311   ac_status=$?
23312   grep -v '^ *+' conftest.er1 >conftest.err
23313   rm -f conftest.er1
23314   cat conftest.err >&5
23315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23316   (exit $ac_status); } &&
23317          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23319   (eval $ac_try) 2>&5
23320   ac_status=$?
23321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23322   (exit $ac_status); }; } &&
23323          { ac_try='test -s conftest.$ac_objext'
23324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23325   (eval $ac_try) 2>&5
23326   ac_status=$?
23327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23328   (exit $ac_status); }; }; then
23329   eval "radius_cv_decl_needed_$ac_func=no"
23330 else
23331   echo "$as_me: failed program was:" >&5
23332 sed 's/^/| /' conftest.$ac_ext >&5
23333
23334 eval "radius_cv_decl_needed_$ac_func=yes"
23335 fi
23336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23337 fi
23338
23339 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
23340   echo "$as_me:$LINENO: result: yes" >&5
23341 echo "${ECHO_T}yes" >&6
23342   radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23343   cat >>confdefs.h <<_ACEOF
23344 #define $radius_tr_decl 1
23345 _ACEOF
23346
23347 else
23348   echo "$as_me:$LINENO: result: no" >&5
23349 echo "${ECHO_T}no" >&6
23350 fi
23351
23352 done
23353
23354
23355 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23356 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
23357 if test "${ac_cv_type_signal+set}" = set; then
23358   echo $ECHO_N "(cached) $ECHO_C" >&6
23359 else
23360   cat >conftest.$ac_ext <<_ACEOF
23361 /* confdefs.h.  */
23362 _ACEOF
23363 cat confdefs.h >>conftest.$ac_ext
23364 cat >>conftest.$ac_ext <<_ACEOF
23365 /* end confdefs.h.  */
23366 #include <sys/types.h>
23367 #include <signal.h>
23368 #ifdef signal
23369 # undef signal
23370 #endif
23371 #ifdef __cplusplus
23372 extern "C" void (*signal (int, void (*)(int)))(int);
23373 #else
23374 void (*signal ()) ();
23375 #endif
23376
23377 int
23378 main ()
23379 {
23380 int i;
23381   ;
23382   return 0;
23383 }
23384 _ACEOF
23385 rm -f conftest.$ac_objext
23386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23387   (eval $ac_compile) 2>conftest.er1
23388   ac_status=$?
23389   grep -v '^ *+' conftest.er1 >conftest.err
23390   rm -f conftest.er1
23391   cat conftest.err >&5
23392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23393   (exit $ac_status); } &&
23394          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23396   (eval $ac_try) 2>&5
23397   ac_status=$?
23398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23399   (exit $ac_status); }; } &&
23400          { ac_try='test -s conftest.$ac_objext'
23401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23402   (eval $ac_try) 2>&5
23403   ac_status=$?
23404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23405   (exit $ac_status); }; }; then
23406   ac_cv_type_signal=void
23407 else
23408   echo "$as_me: failed program was:" >&5
23409 sed 's/^/| /' conftest.$ac_ext >&5
23410
23411 ac_cv_type_signal=int
23412 fi
23413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23414 fi
23415 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23416 echo "${ECHO_T}$ac_cv_type_signal" >&6
23417
23418 cat >>confdefs.h <<_ACEOF
23419 #define RETSIGTYPE $ac_cv_type_signal
23420 _ACEOF
23421
23422
23423
23424 if test "x$ac_cv_header_utmpx_h" = "xyes"
23425 then
23426
23427   echo "$as_me:$LINENO: checking for ut_xtime in struct utmpx" >&5
23428 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6
23429
23430
23431   cat >conftest.$ac_ext <<_ACEOF
23432 /* confdefs.h.  */
23433 _ACEOF
23434 cat confdefs.h >>conftest.$ac_ext
23435 cat >>conftest.$ac_ext <<_ACEOF
23436 /* end confdefs.h.  */
23437
23438 #include <utmpx.h>
23439 #ifndef offsetof
23440 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23441 #endif
23442
23443 int
23444 main ()
23445 {
23446  int foo = offsetof(struct utmpx, ut_xtime)
23447   ;
23448   return 0;
23449 }
23450 _ACEOF
23451 rm -f conftest.$ac_objext
23452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23453   (eval $ac_compile) 2>conftest.er1
23454   ac_status=$?
23455   grep -v '^ *+' conftest.er1 >conftest.err
23456   rm -f conftest.er1
23457   cat conftest.err >&5
23458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23459   (exit $ac_status); } &&
23460          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23462   (eval $ac_try) 2>&5
23463   ac_status=$?
23464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23465   (exit $ac_status); }; } &&
23466          { ac_try='test -s conftest.$ac_objext'
23467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23468   (eval $ac_try) 2>&5
23469   ac_status=$?
23470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23471   (exit $ac_status); }; }; then
23472   has_element=" "
23473 else
23474   echo "$as_me: failed program was:" >&5
23475 sed 's/^/| /' conftest.$ac_ext >&5
23476
23477 has_element=
23478 fi
23479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23480
23481   ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
23482   if test "x$has_element" != "x"; then
23483     echo "$as_me:$LINENO: result: yes" >&5
23484 echo "${ECHO_T}yes" >&6
23485     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
23486   else
23487     echo "$as_me:$LINENO: result: no" >&5
23488 echo "${ECHO_T}no" >&6
23489     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
23490  fi
23491
23492  if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
23493  then
23494
23495 cat >>confdefs.h <<\_ACEOF
23496 #define ut_xtime ut_tv.tv_sec
23497 _ACEOF
23498
23499  fi
23500 fi
23501
23502
23503   echo "$as_me:$LINENO: checking for ipi_addr in struct in_pktinfo" >&5
23504 echo $ECHO_N "checking for ipi_addr in struct in_pktinfo... $ECHO_C" >&6
23505
23506
23507   cat >conftest.$ac_ext <<_ACEOF
23508 /* confdefs.h.  */
23509 _ACEOF
23510 cat confdefs.h >>conftest.$ac_ext
23511 cat >>conftest.$ac_ext <<_ACEOF
23512 /* end confdefs.h.  */
23513
23514 #include <netinet/in.h>
23515 #ifndef offsetof
23516 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23517 #endif
23518
23519 int
23520 main ()
23521 {
23522  int foo = offsetof(struct in_pktinfo, ipi_addr)
23523   ;
23524   return 0;
23525 }
23526 _ACEOF
23527 rm -f conftest.$ac_objext
23528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23529   (eval $ac_compile) 2>conftest.er1
23530   ac_status=$?
23531   grep -v '^ *+' conftest.er1 >conftest.err
23532   rm -f conftest.er1
23533   cat conftest.err >&5
23534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23535   (exit $ac_status); } &&
23536          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23538   (eval $ac_try) 2>&5
23539   ac_status=$?
23540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23541   (exit $ac_status); }; } &&
23542          { ac_try='test -s conftest.$ac_objext'
23543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23544   (eval $ac_try) 2>&5
23545   ac_status=$?
23546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23547   (exit $ac_status); }; }; then
23548   has_element=" "
23549 else
23550   echo "$as_me: failed program was:" >&5
23551 sed 's/^/| /' conftest.$ac_ext >&5
23552
23553 has_element=
23554 fi
23555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23556
23557   ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
23558   if test "x$has_element" != "x"; then
23559     echo "$as_me:$LINENO: result: yes" >&5
23560 echo "${ECHO_T}yes" >&6
23561     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
23562   else
23563     echo "$as_me:$LINENO: result: no" >&5
23564 echo "${ECHO_T}no" >&6
23565     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
23566  fi
23567
23568 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
23569 then
23570
23571 cat >>confdefs.h <<\_ACEOF
23572 #define HAVE_IP_PKTINFO
23573 _ACEOF
23574
23575 fi
23576
23577
23578   echo "$as_me:$LINENO: checking for ipi6_addr in struct in6_pktinfo" >&5
23579 echo $ECHO_N "checking for ipi6_addr in struct in6_pktinfo... $ECHO_C" >&6
23580
23581
23582   cat >conftest.$ac_ext <<_ACEOF
23583 /* confdefs.h.  */
23584 _ACEOF
23585 cat confdefs.h >>conftest.$ac_ext
23586 cat >>conftest.$ac_ext <<_ACEOF
23587 /* end confdefs.h.  */
23588
23589 #include <netinet/in.h>
23590 #ifndef offsetof
23591 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23592 #endif
23593
23594 int
23595 main ()
23596 {
23597  int foo = offsetof(struct in6_pktinfo, ipi6_addr)
23598   ;
23599   return 0;
23600 }
23601 _ACEOF
23602 rm -f conftest.$ac_objext
23603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23604   (eval $ac_compile) 2>conftest.er1
23605   ac_status=$?
23606   grep -v '^ *+' conftest.er1 >conftest.err
23607   rm -f conftest.er1
23608   cat conftest.err >&5
23609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23610   (exit $ac_status); } &&
23611          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23613   (eval $ac_try) 2>&5
23614   ac_status=$?
23615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23616   (exit $ac_status); }; } &&
23617          { ac_try='test -s conftest.$ac_objext'
23618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23619   (eval $ac_try) 2>&5
23620   ac_status=$?
23621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23622   (exit $ac_status); }; }; then
23623   has_element=" "
23624 else
23625   echo "$as_me: failed program was:" >&5
23626 sed 's/^/| /' conftest.$ac_ext >&5
23627
23628 has_element=
23629 fi
23630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23631
23632   ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
23633   if test "x$has_element" != "x"; then
23634     echo "$as_me:$LINENO: result: yes" >&5
23635 echo "${ECHO_T}yes" >&6
23636     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
23637   else
23638     echo "$as_me:$LINENO: result: no" >&5
23639 echo "${ECHO_T}no" >&6
23640     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
23641  fi
23642
23643 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
23644 then
23645
23646 cat >>confdefs.h <<\_ACEOF
23647 #define HAVE_IN6_PKTINFO
23648 _ACEOF
23649
23650 fi
23651
23652
23653 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23654 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
23655 if test "${ac_cv_c_const+set}" = set; then
23656   echo $ECHO_N "(cached) $ECHO_C" >&6
23657 else
23658   cat >conftest.$ac_ext <<_ACEOF
23659 /* confdefs.h.  */
23660 _ACEOF
23661 cat confdefs.h >>conftest.$ac_ext
23662 cat >>conftest.$ac_ext <<_ACEOF
23663 /* end confdefs.h.  */
23664
23665 int
23666 main ()
23667 {
23668 /* FIXME: Include the comments suggested by Paul. */
23669 #ifndef __cplusplus
23670   /* Ultrix mips cc rejects this.  */
23671   typedef int charset[2];
23672   const charset x;
23673   /* SunOS 4.1.1 cc rejects this.  */
23674   char const *const *ccp;
23675   char **p;
23676   /* NEC SVR4.0.2 mips cc rejects this.  */
23677   struct point {int x, y;};
23678   static struct point const zero = {0,0};
23679   /* AIX XL C 1.02.0.0 rejects this.
23680      It does not let you subtract one const X* pointer from another in
23681      an arm of an if-expression whose if-part is not a constant
23682      expression */
23683   const char *g = "string";
23684   ccp = &g + (g ? g-g : 0);
23685   /* HPUX 7.0 cc rejects these. */
23686   ++ccp;
23687   p = (char**) ccp;
23688   ccp = (char const *const *) p;
23689   { /* SCO 3.2v4 cc rejects this.  */
23690     char *t;
23691     char const *s = 0 ? (char *) 0 : (char const *) 0;
23692
23693     *t++ = 0;
23694   }
23695   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23696     int x[] = {25, 17};
23697     const int *foo = &x[0];
23698     ++foo;
23699   }
23700   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23701     typedef const int *iptr;
23702     iptr p = 0;
23703     ++p;
23704   }
23705   { /* AIX XL C 1.02.0.0 rejects this saying
23706        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23707     struct s { int j; const int *ap[3]; };
23708     struct s *b; b->j = 5;
23709   }
23710   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23711     const int foo = 10;
23712   }
23713 #endif
23714
23715   ;
23716   return 0;
23717 }
23718 _ACEOF
23719 rm -f conftest.$ac_objext
23720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23721   (eval $ac_compile) 2>conftest.er1
23722   ac_status=$?
23723   grep -v '^ *+' conftest.er1 >conftest.err
23724   rm -f conftest.er1
23725   cat conftest.err >&5
23726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23727   (exit $ac_status); } &&
23728          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23730   (eval $ac_try) 2>&5
23731   ac_status=$?
23732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23733   (exit $ac_status); }; } &&
23734          { ac_try='test -s conftest.$ac_objext'
23735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23736   (eval $ac_try) 2>&5
23737   ac_status=$?
23738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23739   (exit $ac_status); }; }; then
23740   ac_cv_c_const=yes
23741 else
23742   echo "$as_me: failed program was:" >&5
23743 sed 's/^/| /' conftest.$ac_ext >&5
23744
23745 ac_cv_c_const=no
23746 fi
23747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23748 fi
23749 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23750 echo "${ECHO_T}$ac_cv_c_const" >&6
23751 if test $ac_cv_c_const = no; then
23752
23753 cat >>confdefs.h <<\_ACEOF
23754 #define const
23755 _ACEOF
23756
23757 fi
23758
23759
23760 echo "$as_me:$LINENO: checking type of OS" >&5
23761 echo $ECHO_N "checking type of OS... $ECHO_C" >&6
23762 OS=`uname -s`
23763 echo "$as_me:$LINENO: result: $OS" >&5
23764 echo "${ECHO_T}$OS" >&6
23765 if test "$OS" = "OS/2"; then
23766         LIBPREFIX=
23767 else
23768         LIBPREFIX=lib
23769 fi
23770
23771
23772 if test "x$GCC" = "xyes"; then
23773     CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
23774 fi
23775
23776 echo "$as_me:$LINENO: checking for developer gcc flags" >&5
23777 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6
23778 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
23779   devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
23780   CFLAGS="$CFLAGS $devflags"
23781   INSTALLSTRIP=""
23782   echo "$as_me:$LINENO: result: yes.  Using $devflags" >&5
23783 echo "${ECHO_T}yes.  Using $devflags" >&6
23784 else
23785   devflags=""
23786   CFLAGS="$CFLAGS -DNDEBUG"
23787   INSTALLSTRIP="-s"
23788   echo "$as_me:$LINENO: result: no." >&5
23789 echo "${ECHO_T}no." >&6
23790 fi
23791
23792
23793 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
23794 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
23795 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
23796   echo $ECHO_N "(cached) $ECHO_C" >&6
23797 else
23798   ac_check_lib_save_LIBS=$LIBS
23799 LIBS="-lcrypt  $LIBS"
23800 cat >conftest.$ac_ext <<_ACEOF
23801 /* confdefs.h.  */
23802 _ACEOF
23803 cat confdefs.h >>conftest.$ac_ext
23804 cat >>conftest.$ac_ext <<_ACEOF
23805 /* end confdefs.h.  */
23806
23807 /* Override any gcc2 internal prototype to avoid an error.  */
23808 #ifdef __cplusplus
23809 extern "C"
23810 #endif
23811 /* We use char because int might match the return type of a gcc2
23812    builtin and then its argument prototype would still apply.  */
23813 char crypt ();
23814 int
23815 main ()
23816 {
23817 crypt ();
23818   ;
23819   return 0;
23820 }
23821 _ACEOF
23822 rm -f conftest.$ac_objext conftest$ac_exeext
23823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23824   (eval $ac_link) 2>conftest.er1
23825   ac_status=$?
23826   grep -v '^ *+' conftest.er1 >conftest.err
23827   rm -f conftest.er1
23828   cat conftest.err >&5
23829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23830   (exit $ac_status); } &&
23831          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23833   (eval $ac_try) 2>&5
23834   ac_status=$?
23835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23836   (exit $ac_status); }; } &&
23837          { ac_try='test -s conftest$ac_exeext'
23838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23839   (eval $ac_try) 2>&5
23840   ac_status=$?
23841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23842   (exit $ac_status); }; }; then
23843   ac_cv_lib_crypt_crypt=yes
23844 else
23845   echo "$as_me: failed program was:" >&5
23846 sed 's/^/| /' conftest.$ac_ext >&5
23847
23848 ac_cv_lib_crypt_crypt=no
23849 fi
23850 rm -f conftest.err conftest.$ac_objext \
23851       conftest$ac_exeext conftest.$ac_ext
23852 LIBS=$ac_check_lib_save_LIBS
23853 fi
23854 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
23855 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
23856 if test $ac_cv_lib_crypt_crypt = yes; then
23857   CRYPTLIB="-lcrypt"
23858
23859 fi
23860
23861 if test "$CRYPTLIB" != ""; then
23862
23863 cat >>confdefs.h <<\_ACEOF
23864 #define HAVE_CRYPT
23865 _ACEOF
23866
23867 else
23868   echo "$as_me:$LINENO: checking for crypt" >&5
23869 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
23870 if test "${ac_cv_func_crypt+set}" = set; then
23871   echo $ECHO_N "(cached) $ECHO_C" >&6
23872 else
23873   cat >conftest.$ac_ext <<_ACEOF
23874 /* confdefs.h.  */
23875 _ACEOF
23876 cat confdefs.h >>conftest.$ac_ext
23877 cat >>conftest.$ac_ext <<_ACEOF
23878 /* end confdefs.h.  */
23879 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
23880    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23881 #define crypt innocuous_crypt
23882
23883 /* System header to define __stub macros and hopefully few prototypes,
23884     which can conflict with char crypt (); below.
23885     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23886     <limits.h> exists even on freestanding compilers.  */
23887
23888 #ifdef __STDC__
23889 # include <limits.h>
23890 #else
23891 # include <assert.h>
23892 #endif
23893
23894 #undef crypt
23895
23896 /* Override any gcc2 internal prototype to avoid an error.  */
23897 #ifdef __cplusplus
23898 extern "C"
23899 {
23900 #endif
23901 /* We use char because int might match the return type of a gcc2
23902    builtin and then its argument prototype would still apply.  */
23903 char crypt ();
23904 /* The GNU C library defines this for functions which it implements
23905     to always fail with ENOSYS.  Some functions are actually named
23906     something starting with __ and the normal name is an alias.  */
23907 #if defined (__stub_crypt) || defined (__stub___crypt)
23908 choke me
23909 #else
23910 char (*f) () = crypt;
23911 #endif
23912 #ifdef __cplusplus
23913 }
23914 #endif
23915
23916 int
23917 main ()
23918 {
23919 return f != crypt;
23920   ;
23921   return 0;
23922 }
23923 _ACEOF
23924 rm -f conftest.$ac_objext conftest$ac_exeext
23925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23926   (eval $ac_link) 2>conftest.er1
23927   ac_status=$?
23928   grep -v '^ *+' conftest.er1 >conftest.err
23929   rm -f conftest.er1
23930   cat conftest.err >&5
23931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23932   (exit $ac_status); } &&
23933          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23935   (eval $ac_try) 2>&5
23936   ac_status=$?
23937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23938   (exit $ac_status); }; } &&
23939          { ac_try='test -s conftest$ac_exeext'
23940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23941   (eval $ac_try) 2>&5
23942   ac_status=$?
23943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23944   (exit $ac_status); }; }; then
23945   ac_cv_func_crypt=yes
23946 else
23947   echo "$as_me: failed program was:" >&5
23948 sed 's/^/| /' conftest.$ac_ext >&5
23949
23950 ac_cv_func_crypt=no
23951 fi
23952 rm -f conftest.err conftest.$ac_objext \
23953       conftest$ac_exeext conftest.$ac_ext
23954 fi
23955 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
23956 echo "${ECHO_T}$ac_cv_func_crypt" >&6
23957 if test $ac_cv_func_crypt = yes; then
23958
23959 cat >>confdefs.h <<\_ACEOF
23960 #define HAVE_CRYPT
23961 _ACEOF
23962
23963 fi
23964
23965 fi
23966
23967 echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
23968 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6
23969 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
23970   echo $ECHO_N "(cached) $ECHO_C" >&6
23971 else
23972   ac_check_lib_save_LIBS=$LIBS
23973 LIBS="-lcipher  $LIBS"
23974 cat >conftest.$ac_ext <<_ACEOF
23975 /* confdefs.h.  */
23976 _ACEOF
23977 cat confdefs.h >>conftest.$ac_ext
23978 cat >>conftest.$ac_ext <<_ACEOF
23979 /* end confdefs.h.  */
23980
23981 /* Override any gcc2 internal prototype to avoid an error.  */
23982 #ifdef __cplusplus
23983 extern "C"
23984 #endif
23985 /* We use char because int might match the return type of a gcc2
23986    builtin and then its argument prototype would still apply.  */
23987 char setkey ();
23988 int
23989 main ()
23990 {
23991 setkey ();
23992   ;
23993   return 0;
23994 }
23995 _ACEOF
23996 rm -f conftest.$ac_objext conftest$ac_exeext
23997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23998   (eval $ac_link) 2>conftest.er1
23999   ac_status=$?
24000   grep -v '^ *+' conftest.er1 >conftest.err
24001   rm -f conftest.er1
24002   cat conftest.err >&5
24003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24004   (exit $ac_status); } &&
24005          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24007   (eval $ac_try) 2>&5
24008   ac_status=$?
24009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24010   (exit $ac_status); }; } &&
24011          { ac_try='test -s conftest$ac_exeext'
24012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24013   (eval $ac_try) 2>&5
24014   ac_status=$?
24015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24016   (exit $ac_status); }; }; then
24017   ac_cv_lib_cipher_setkey=yes
24018 else
24019   echo "$as_me: failed program was:" >&5
24020 sed 's/^/| /' conftest.$ac_ext >&5
24021
24022 ac_cv_lib_cipher_setkey=no
24023 fi
24024 rm -f conftest.err conftest.$ac_objext \
24025       conftest$ac_exeext conftest.$ac_ext
24026 LIBS=$ac_check_lib_save_LIBS
24027 fi
24028 echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
24029 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6
24030 if test $ac_cv_lib_cipher_setkey = yes; then
24031   CRYPTLIB="${CRYPTLIB} -lcipher"
24032
24033 fi
24034
24035
24036
24037 if test "x$WITH_SNMP" = "xyes"; then
24038
24039
24040
24041
24042 echo "$as_me:$LINENO: checking for asn1.h,snmp.h,snmp_impl.h" >&5
24043 echo $ECHO_N "checking for asn1.h,snmp.h,snmp_impl.h... $ECHO_C" >&6
24044
24045 cat >conftest.$ac_ext <<_ACEOF
24046 /* confdefs.h.  */
24047 _ACEOF
24048 cat confdefs.h >>conftest.$ac_ext
24049 cat >>conftest.$ac_ext <<_ACEOF
24050 /* end confdefs.h.  */
24051
24052 #ifdef HAVE_SYS_TYPES_H
24053 #include <sys/types.h>
24054 #endif
24055 #ifdef HAVE_STDINT_H
24056 #include <stdint.h>
24057 #endif
24058 #ifdef HAVE_STDIO_H
24059 #include <stdio.h>
24060 #endif
24061 #ifdef HAVE_NETDB_H
24062 #include <netdb.h>
24063 #endif
24064 #ifdef HAVE_UNISTD_H
24065 #include <unistd.h>
24066 #endif
24067 #include <ucd-snmp/ucd-snmp-config.h>
24068 #include <ucd-snmp/asn1.h>
24069 #include <ucd-snmp/snmp.h>
24070 #include <ucd-snmp/snmp_impl.h>
24071 int
24072 main ()
24073 {
24074  int a = 1;
24075   ;
24076   return 0;
24077 }
24078 _ACEOF
24079 rm -f conftest.$ac_objext
24080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24081   (eval $ac_compile) 2>conftest.er1
24082   ac_status=$?
24083   grep -v '^ *+' conftest.er1 >conftest.err
24084   rm -f conftest.er1
24085   cat conftest.err >&5
24086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24087   (exit $ac_status); } &&
24088          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24090   (eval $ac_try) 2>&5
24091   ac_status=$?
24092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24093   (exit $ac_status); }; } &&
24094          { ac_try='test -s conftest.$ac_objext'
24095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24096   (eval $ac_try) 2>&5
24097   ac_status=$?
24098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24099   (exit $ac_status); }; }; then
24100   SNMP_INCLUDE="";ucdsnmp=yes
24101 else
24102   echo "$as_me: failed program was:" >&5
24103 sed 's/^/| /' conftest.$ac_ext >&5
24104
24105 ucdsnmp=
24106 fi
24107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24108
24109 if test "x$ucdsnmp" = "x"; then
24110   old_CFLAGS="$CFLAGS"
24111   for try in /usr/include /usr/local/include $snmp_include_dir; do
24112     CFLAGS="$old_CFLAGS -I$try"
24113     cat >conftest.$ac_ext <<_ACEOF
24114 /* confdefs.h.  */
24115 _ACEOF
24116 cat confdefs.h >>conftest.$ac_ext
24117 cat >>conftest.$ac_ext <<_ACEOF
24118 /* end confdefs.h.  */
24119
24120 #ifdef HAVE_SYS_TYPES_H
24121 #include <sys/types.h>
24122 #endif
24123 #ifdef HAVE_STDINT_H
24124 #include <stdint.h>
24125 #endif
24126 #ifdef HAVE_STDIO_H
24127 #include <stdio.h>
24128 #endif
24129 #ifdef HAVE_NETDB_H
24130 #include <netdb.h>
24131 #endif
24132 #ifdef HAVE_UNISTD_H
24133 #include <unistd.h>
24134 #endif
24135 #include <ucd-snmp/ucd-snmp-config.h>
24136 #include <ucd-snmp/asn1.h>
24137 #include <ucd-snmp/snmp.h>
24138 #include <ucd-snmp/snmp_impl.h>
24139 int
24140 main ()
24141 {
24142  int a = 1;
24143   ;
24144   return 0;
24145 }
24146 _ACEOF
24147 rm -f conftest.$ac_objext
24148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24149   (eval $ac_compile) 2>conftest.er1
24150   ac_status=$?
24151   grep -v '^ *+' conftest.er1 >conftest.err
24152   rm -f conftest.er1
24153   cat conftest.err >&5
24154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24155   (exit $ac_status); } &&
24156          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24158   (eval $ac_try) 2>&5
24159   ac_status=$?
24160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24161   (exit $ac_status); }; } &&
24162          { ac_try='test -s conftest.$ac_objext'
24163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24164   (eval $ac_try) 2>&5
24165   ac_status=$?
24166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24167   (exit $ac_status); }; }; then
24168   SNMP_INCLUDE="-I$try";ucdsnmp=yes
24169 else
24170   echo "$as_me: failed program was:" >&5
24171 sed 's/^/| /' conftest.$ac_ext >&5
24172
24173 ucdsnmp=
24174 fi
24175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24176     if test "x$ucdsnmp" != "x"; then
24177       break;
24178     fi
24179   done
24180   CFLAGS="$old_CFLAGS"
24181 fi
24182
24183 if test "x$ucdsnmp" = "x"; then
24184   old_CFLAGS="$CFLAGS"
24185   for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
24186     CFLAGS="$old_CFLAGS -I$try"
24187 cat >conftest.$ac_ext <<_ACEOF
24188 /* confdefs.h.  */
24189 _ACEOF
24190 cat confdefs.h >>conftest.$ac_ext
24191 cat >>conftest.$ac_ext <<_ACEOF
24192 /* end confdefs.h.  */
24193
24194 #ifdef HAVE_SYS_TYPES_H
24195 #include <sys/types.h>
24196 #endif
24197 #ifdef HAVE_STDINT_H
24198 #include <stdint.h>
24199 #endif
24200 #ifdef HAVE_STDIO_H
24201 #include <stdio.h>
24202 #endif
24203 #ifdef HAVE_NETDB_H
24204 #include <netdb.h>
24205 #endif
24206 #ifdef HAVE_UNISTD_H
24207 #include <unistd.h>
24208 #endif
24209 #include <asn1.h>
24210 #include <snmp.h>
24211 #include <snmp_impl.h>
24212 int
24213 main ()
24214 {
24215  int a = 1;
24216   ;
24217   return 0;
24218 }
24219 _ACEOF
24220 rm -f conftest.$ac_objext
24221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24222   (eval $ac_compile) 2>conftest.er1
24223   ac_status=$?
24224   grep -v '^ *+' conftest.er1 >conftest.err
24225   rm -f conftest.er1
24226   cat conftest.err >&5
24227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24228   (exit $ac_status); } &&
24229          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24231   (eval $ac_try) 2>&5
24232   ac_status=$?
24233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24234   (exit $ac_status); }; } &&
24235          { ac_try='test -s conftest.$ac_objext'
24236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24237   (eval $ac_try) 2>&5
24238   ac_status=$?
24239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24240   (exit $ac_status); }; }; then
24241   SNMP_INCLUDE="";ucdsnmp=no
24242 else
24243   echo "$as_me: failed program was:" >&5
24244 sed 's/^/| /' conftest.$ac_ext >&5
24245
24246 ucdsnmp=
24247 fi
24248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24249     if test "x$ucdsnmp" != "x"; then
24250       break;
24251     fi
24252   done
24253   CFLAGS="$old_CFLAGS"
24254 fi
24255
24256 if test "x$ucdsnmp" = "x"; then
24257   old_CFLAGS="$CFLAGS"
24258   for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
24259     CFLAGS="$old_CFLAGS -I$try"
24260     cat >conftest.$ac_ext <<_ACEOF
24261 /* confdefs.h.  */
24262 _ACEOF
24263 cat confdefs.h >>conftest.$ac_ext
24264 cat >>conftest.$ac_ext <<_ACEOF
24265 /* end confdefs.h.  */
24266
24267 #ifdef HAVE_SYS_TYPES_H
24268 #include <sys/types.h>
24269 #endif
24270 #ifdef HAVE_STDINT_H
24271 #include <stdint.h>
24272 #endif
24273 #ifdef HAVE_STDIO_H
24274 #include <stdio.h>
24275 #endif
24276 #ifdef HAVE_NETDB_H
24277 #include <netdb.h>
24278 #endif
24279 #ifdef HAVE_UNISTD_H
24280 #include <unistd.h>
24281 #endif
24282 #include <asn1.h>
24283 #include <snmp.h>
24284 #include <snmp_impl.h>
24285 int
24286 main ()
24287 {
24288  int a = 1;
24289   ;
24290   return 0;
24291 }
24292 _ACEOF
24293 rm -f conftest.$ac_objext
24294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24295   (eval $ac_compile) 2>conftest.er1
24296   ac_status=$?
24297   grep -v '^ *+' conftest.er1 >conftest.err
24298   rm -f conftest.er1
24299   cat conftest.err >&5
24300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24301   (exit $ac_status); } &&
24302          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24304   (eval $ac_try) 2>&5
24305   ac_status=$?
24306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24307   (exit $ac_status); }; } &&
24308          { ac_try='test -s conftest.$ac_objext'
24309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24310   (eval $ac_try) 2>&5
24311   ac_status=$?
24312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24313   (exit $ac_status); }; }; then
24314   SNMP_INCLUDE="-I$try";ucdsnmp=no
24315 else
24316   echo "$as_me: failed program was:" >&5
24317 sed 's/^/| /' conftest.$ac_ext >&5
24318
24319 ucdsnmp=
24320 fi
24321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24322     if test "x$ucdsnmp" != "x"; then
24323       break;
24324     fi
24325   done
24326   CFLAGS="$old_CFLAGS"
24327 fi
24328
24329 if test "x$ucdsnmp" = "x"; then
24330   echo "$as_me:$LINENO: result: no" >&5
24331 echo "${ECHO_T}no" >&6
24332 else
24333   if test "x$ucdsnmp" = "xyes"; then
24334     echo "$as_me:$LINENO: result: (ucd-snmp)yes" >&5
24335 echo "${ECHO_T}(ucd-snmp)yes" >&6
24336
24337 cat >>confdefs.h <<\_ACEOF
24338 #define HAVE_UCD_SNMP_ASN1_SNMP_SNMPIMPL_H
24339 _ACEOF
24340
24341   else
24342     echo "$as_me:$LINENO: result: yes" >&5
24343 echo "${ECHO_T}yes" >&6
24344
24345 cat >>confdefs.h <<\_ACEOF
24346 #define HAVE_ASN1_SNMP_SNMPIMPL_H
24347 _ACEOF
24348
24349   fi
24350   echo "$as_me:$LINENO: checking for snmp_build_var_op in -lsnmp" >&5
24351 echo $ECHO_N "checking for snmp_build_var_op in -lsnmp... $ECHO_C" >&6
24352
24353   old_LIBS="$LIBS"
24354   LIBS="$old_LIBS -lsnmp"
24355   cat >conftest.$ac_ext <<_ACEOF
24356 /* confdefs.h.  */
24357 _ACEOF
24358 cat confdefs.h >>conftest.$ac_ext
24359 cat >>conftest.$ac_ext <<_ACEOF
24360 /* end confdefs.h.  */
24361 extern char snmp_build_var_op();
24362 int
24363 main ()
24364 {
24365  snmp_build_var_op()
24366   ;
24367   return 0;
24368 }
24369 _ACEOF
24370 rm -f conftest.$ac_objext conftest$ac_exeext
24371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24372   (eval $ac_link) 2>conftest.er1
24373   ac_status=$?
24374   grep -v '^ *+' conftest.er1 >conftest.err
24375   rm -f conftest.er1
24376   cat conftest.err >&5
24377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24378   (exit $ac_status); } &&
24379          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24381   (eval $ac_try) 2>&5
24382   ac_status=$?
24383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24384   (exit $ac_status); }; } &&
24385          { ac_try='test -s conftest$ac_exeext'
24386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24387   (eval $ac_try) 2>&5
24388   ac_status=$?
24389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24390   (exit $ac_status); }; }; then
24391   SNMP_LIBS="-lsnmp"
24392 else
24393   echo "$as_me: failed program was:" >&5
24394 sed 's/^/| /' conftest.$ac_ext >&5
24395
24396 SNMP_LIBS=
24397 fi
24398 rm -f conftest.err conftest.$ac_objext \
24399       conftest$ac_exeext conftest.$ac_ext
24400
24401   if test "x$SNMP_LIBS" = "x"; then
24402     for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $with_snmp_lib_dir; do
24403       LIBS="$old_LIBS -L$try -lsnmp"
24404       cat >conftest.$ac_ext <<_ACEOF
24405 /* confdefs.h.  */
24406 _ACEOF
24407 cat confdefs.h >>conftest.$ac_ext
24408 cat >>conftest.$ac_ext <<_ACEOF
24409 /* end confdefs.h.  */
24410 extern char snmp_build_var_op();
24411 int
24412 main ()
24413 {
24414  snmp_build_var_op()
24415   ;
24416   return 0;
24417 }
24418 _ACEOF
24419 rm -f conftest.$ac_objext conftest$ac_exeext
24420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24421   (eval $ac_link) 2>conftest.er1
24422   ac_status=$?
24423   grep -v '^ *+' conftest.er1 >conftest.err
24424   rm -f conftest.er1
24425   cat conftest.err >&5
24426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24427   (exit $ac_status); } &&
24428          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24430   (eval $ac_try) 2>&5
24431   ac_status=$?
24432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24433   (exit $ac_status); }; } &&
24434          { ac_try='test -s conftest$ac_exeext'
24435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24436   (eval $ac_try) 2>&5
24437   ac_status=$?
24438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24439   (exit $ac_status); }; }; then
24440   SNMP_LIBS="-L$try -lsnmp"
24441 else
24442   echo "$as_me: failed program was:" >&5
24443 sed 's/^/| /' conftest.$ac_ext >&5
24444
24445 SNMP_LIBS=
24446 fi
24447 rm -f conftest.err conftest.$ac_objext \
24448       conftest$ac_exeext conftest.$ac_ext
24449       if test "x$SNMP_LIBS" != "x"; then
24450         break;
24451       fi
24452       LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
24453       cat >conftest.$ac_ext <<_ACEOF
24454 /* confdefs.h.  */
24455 _ACEOF
24456 cat confdefs.h >>conftest.$ac_ext
24457 cat >>conftest.$ac_ext <<_ACEOF
24458 /* end confdefs.h.  */
24459 extern char snmp_build_var_op();
24460 int
24461 main ()
24462 {
24463  snmp_build_var_op()
24464   ;
24465   return 0;
24466 }
24467 _ACEOF
24468 rm -f conftest.$ac_objext conftest$ac_exeext
24469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24470   (eval $ac_link) 2>conftest.er1
24471   ac_status=$?
24472   grep -v '^ *+' conftest.er1 >conftest.err
24473   rm -f conftest.er1
24474   cat conftest.err >&5
24475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24476   (exit $ac_status); } &&
24477          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24479   (eval $ac_try) 2>&5
24480   ac_status=$?
24481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24482   (exit $ac_status); }; } &&
24483          { ac_try='test -s conftest$ac_exeext'
24484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24485   (eval $ac_try) 2>&5
24486   ac_status=$?
24487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24488   (exit $ac_status); }; }; then
24489   SNMP_LIBS="-L$try -lsnmp -lcrypto"
24490 else
24491   echo "$as_me: failed program was:" >&5
24492 sed 's/^/| /' conftest.$ac_ext >&5
24493
24494 SNMP_LIBS=
24495 fi
24496 rm -f conftest.err conftest.$ac_objext \
24497       conftest$ac_exeext conftest.$ac_ext
24498       if test "x$SNMP_LIBS" != "x"; then
24499         break;
24500       fi
24501       LIBS="$old_LIBS -L$try -lsnmp -lcrypto -lkstat"
24502       cat >conftest.$ac_ext <<_ACEOF
24503 /* confdefs.h.  */
24504 _ACEOF
24505 cat confdefs.h >>conftest.$ac_ext
24506 cat >>conftest.$ac_ext <<_ACEOF
24507 /* end confdefs.h.  */
24508 extern char snmp_build_var_op();
24509 int
24510 main ()
24511 {
24512  snmp_build_var_op()
24513   ;
24514   return 0;
24515 }
24516 _ACEOF
24517 rm -f conftest.$ac_objext conftest$ac_exeext
24518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24519   (eval $ac_link) 2>conftest.er1
24520   ac_status=$?
24521   grep -v '^ *+' conftest.er1 >conftest.err
24522   rm -f conftest.er1
24523   cat conftest.err >&5
24524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24525   (exit $ac_status); } &&
24526          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24528   (eval $ac_try) 2>&5
24529   ac_status=$?
24530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24531   (exit $ac_status); }; } &&
24532          { ac_try='test -s conftest$ac_exeext'
24533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24534   (eval $ac_try) 2>&5
24535   ac_status=$?
24536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24537   (exit $ac_status); }; }; then
24538   SNMP_LIBS="-L$try -lsnmp -lcrypto -lkstat"
24539 else
24540   echo "$as_me: failed program was:" >&5
24541 sed 's/^/| /' conftest.$ac_ext >&5
24542
24543 SNMP_LIBS=
24544 fi
24545 rm -f conftest.err conftest.$ac_objext \
24546       conftest$ac_exeext conftest.$ac_ext
24547       if test "x$SNMP_LIBS" != "x"; then
24548         break;
24549       fi
24550     done
24551   fi
24552   LIBS="$old_LIBS"
24553
24554           CFLAGS="$old_CFLAGS"
24555   if test "x$SNMP_LIBS" = "x"; then
24556     echo "$as_me:$LINENO: result: no" >&5
24557 echo "${ECHO_T}no" >&6
24558     SNMP_INCLUDE=
24559   else
24560     echo "$as_me:$LINENO: result: yes" >&5
24561 echo "${ECHO_T}yes" >&6
24562
24563 cat >>confdefs.h <<\_ACEOF
24564 #define WITH_SNMP
24565 _ACEOF
24566
24567
24568 cat >>confdefs.h <<\_ACEOF
24569 #define HAVE_LIBSNMP
24570 _ACEOF
24571
24572   fi
24573 fi
24574
24575 fi
24576
24577
24578 cat >>confdefs.h <<\_ACEOF
24579 #define GNUSTYLE 1
24580 _ACEOF
24581
24582
24583 cat >>confdefs.h <<\_ACEOF
24584 #define SYSVSTYLE 2
24585 _ACEOF
24586
24587
24588 cat >>confdefs.h <<\_ACEOF
24589 #define BSDSTYLE 3
24590 _ACEOF
24591
24592 gethostbyaddrrstyle=""
24593 echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
24594 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6
24595 case "$host" in
24596 *-freebsd*)
24597
24598 cat >>confdefs.h <<\_ACEOF
24599 #define GETHOSTBYADDRRSTYLE BSDSTYLE
24600 _ACEOF
24601
24602         gethostbyaddrrstyle=BSD
24603         { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
24604 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
24605         ;;
24606 esac
24607 if test "x$gethostbyaddrrstyle" = "x"; then
24608         cat >conftest.$ac_ext <<_ACEOF
24609 /* confdefs.h.  */
24610 _ACEOF
24611 cat confdefs.h >>conftest.$ac_ext
24612 cat >>conftest.$ac_ext <<_ACEOF
24613 /* end confdefs.h.  */
24614
24615 #include <stdio.h>
24616 #include <netdb.h>
24617
24618 int
24619 main ()
24620 {
24621  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
24622   ;
24623   return 0;
24624 }
24625 _ACEOF
24626 rm -f conftest.$ac_objext conftest$ac_exeext
24627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24628   (eval $ac_link) 2>conftest.er1
24629   ac_status=$?
24630   grep -v '^ *+' conftest.er1 >conftest.err
24631   rm -f conftest.er1
24632   cat conftest.err >&5
24633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24634   (exit $ac_status); } &&
24635          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24637   (eval $ac_try) 2>&5
24638   ac_status=$?
24639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24640   (exit $ac_status); }; } &&
24641          { ac_try='test -s conftest$ac_exeext'
24642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24643   (eval $ac_try) 2>&5
24644   ac_status=$?
24645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24646   (exit $ac_status); }; }; then
24647
24648
24649 cat >>confdefs.h <<\_ACEOF
24650 #define GETHOSTBYADDRRSTYLE GNUSTYLE
24651 _ACEOF
24652
24653         gethostbyaddrrstyle=GNU
24654
24655 else
24656   echo "$as_me: failed program was:" >&5
24657 sed 's/^/| /' conftest.$ac_ext >&5
24658
24659 fi
24660 rm -f conftest.err conftest.$ac_objext \
24661       conftest$ac_exeext conftest.$ac_ext
24662 fi
24663 if test "x$gethostbyaddrrstyle" = "x"; then
24664         cat >conftest.$ac_ext <<_ACEOF
24665 /* confdefs.h.  */
24666 _ACEOF
24667 cat confdefs.h >>conftest.$ac_ext
24668 cat >>conftest.$ac_ext <<_ACEOF
24669 /* end confdefs.h.  */
24670
24671 #include <stdio.h>
24672 #include <netdb.h>
24673
24674 int
24675 main ()
24676 {
24677  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
24678   ;
24679   return 0;
24680 }
24681 _ACEOF
24682 rm -f conftest.$ac_objext conftest$ac_exeext
24683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24684   (eval $ac_link) 2>conftest.er1
24685   ac_status=$?
24686   grep -v '^ *+' conftest.er1 >conftest.err
24687   rm -f conftest.er1
24688   cat conftest.err >&5
24689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24690   (exit $ac_status); } &&
24691          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24693   (eval $ac_try) 2>&5
24694   ac_status=$?
24695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24696   (exit $ac_status); }; } &&
24697          { ac_try='test -s conftest$ac_exeext'
24698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24699   (eval $ac_try) 2>&5
24700   ac_status=$?
24701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24702   (exit $ac_status); }; }; then
24703
24704
24705 cat >>confdefs.h <<\_ACEOF
24706 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
24707 _ACEOF
24708
24709                 gethostbyaddrrstyle=SYSV
24710
24711 else
24712   echo "$as_me: failed program was:" >&5
24713 sed 's/^/| /' conftest.$ac_ext >&5
24714
24715 fi
24716 rm -f conftest.err conftest.$ac_objext \
24717       conftest$ac_exeext conftest.$ac_ext
24718 fi
24719 if test "x$gethostbyaddrrstyle" = "x"; then
24720         cat >conftest.$ac_ext <<_ACEOF
24721 /* confdefs.h.  */
24722 _ACEOF
24723 cat confdefs.h >>conftest.$ac_ext
24724 cat >>conftest.$ac_ext <<_ACEOF
24725 /* end confdefs.h.  */
24726
24727 #include <stdio.h>
24728 #include <netdb.h>
24729
24730 int
24731 main ()
24732 {
24733  gethostbyaddr(NULL, 0, 0)
24734   ;
24735   return 0;
24736 }
24737 _ACEOF
24738 rm -f conftest.$ac_objext conftest$ac_exeext
24739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24740   (eval $ac_link) 2>conftest.er1
24741   ac_status=$?
24742   grep -v '^ *+' conftest.er1 >conftest.err
24743   rm -f conftest.er1
24744   cat conftest.err >&5
24745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24746   (exit $ac_status); } &&
24747          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24749   (eval $ac_try) 2>&5
24750   ac_status=$?
24751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24752   (exit $ac_status); }; } &&
24753          { ac_try='test -s conftest$ac_exeext'
24754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24755   (eval $ac_try) 2>&5
24756   ac_status=$?
24757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24758   (exit $ac_status); }; }; then
24759
24760
24761 cat >>confdefs.h <<\_ACEOF
24762 #define GETHOSTBYADDRRSTYLE BSDSTYLE
24763 _ACEOF
24764
24765                 gethostbyaddrrstyle=BSD
24766
24767 else
24768   echo "$as_me: failed program was:" >&5
24769 sed 's/^/| /' conftest.$ac_ext >&5
24770
24771 fi
24772 rm -f conftest.err conftest.$ac_objext \
24773       conftest$ac_exeext conftest.$ac_ext
24774 fi
24775
24776 if test "x$gethostbyaddrrstyle" = "x"; then
24777         echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
24778 echo "${ECHO_T}none!  It must not exist, here." >&6
24779 else
24780         echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
24781 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6
24782 fi
24783
24784 if test "x$gethostbyaddrrstyle" = "xBSD"; then
24785         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
24786 echo "$as_me: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
24787 fi
24788
24789 gethostbynamerstyle=""
24790 echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
24791 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6
24792 cat >conftest.$ac_ext <<_ACEOF
24793 /* confdefs.h.  */
24794 _ACEOF
24795 cat confdefs.h >>conftest.$ac_ext
24796 cat >>conftest.$ac_ext <<_ACEOF
24797 /* end confdefs.h.  */
24798
24799 #include <stdio.h>
24800 #include <netdb.h>
24801
24802 int
24803 main ()
24804 {
24805  gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
24806   ;
24807   return 0;
24808 }
24809 _ACEOF
24810 rm -f conftest.$ac_objext conftest$ac_exeext
24811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24812   (eval $ac_link) 2>conftest.er1
24813   ac_status=$?
24814   grep -v '^ *+' conftest.er1 >conftest.err
24815   rm -f conftest.er1
24816   cat conftest.err >&5
24817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24818   (exit $ac_status); } &&
24819          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24821   (eval $ac_try) 2>&5
24822   ac_status=$?
24823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24824   (exit $ac_status); }; } &&
24825          { ac_try='test -s conftest$ac_exeext'
24826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24827   (eval $ac_try) 2>&5
24828   ac_status=$?
24829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24830   (exit $ac_status); }; }; then
24831
24832
24833 cat >>confdefs.h <<\_ACEOF
24834 #define GETHOSTBYNAMERSTYLE GNUSTYLE
24835 _ACEOF
24836
24837         gethostbynamerstyle=GNU
24838
24839 else
24840   echo "$as_me: failed program was:" >&5
24841 sed 's/^/| /' conftest.$ac_ext >&5
24842
24843 fi
24844 rm -f conftest.err conftest.$ac_objext \
24845       conftest$ac_exeext conftest.$ac_ext
24846 if test "x$gethostbynamerstyle" = "x"; then
24847         cat >conftest.$ac_ext <<_ACEOF
24848 /* confdefs.h.  */
24849 _ACEOF
24850 cat confdefs.h >>conftest.$ac_ext
24851 cat >>conftest.$ac_ext <<_ACEOF
24852 /* end confdefs.h.  */
24853
24854 #include <stdio.h>
24855 #include <netdb.h>
24856
24857 int
24858 main ()
24859 {
24860  gethostbyname_r(NULL, NULL, NULL, 0, NULL)
24861   ;
24862   return 0;
24863 }
24864 _ACEOF
24865 rm -f conftest.$ac_objext conftest$ac_exeext
24866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24867   (eval $ac_link) 2>conftest.er1
24868   ac_status=$?
24869   grep -v '^ *+' conftest.er1 >conftest.err
24870   rm -f conftest.er1
24871   cat conftest.err >&5
24872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24873   (exit $ac_status); } &&
24874          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24876   (eval $ac_try) 2>&5
24877   ac_status=$?
24878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24879   (exit $ac_status); }; } &&
24880          { ac_try='test -s conftest$ac_exeext'
24881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24882   (eval $ac_try) 2>&5
24883   ac_status=$?
24884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24885   (exit $ac_status); }; }; then
24886
24887
24888 cat >>confdefs.h <<\_ACEOF
24889 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
24890 _ACEOF
24891
24892                 gethostbynamerstyle=SYSV
24893
24894 else
24895   echo "$as_me: failed program was:" >&5
24896 sed 's/^/| /' conftest.$ac_ext >&5
24897
24898 fi
24899 rm -f conftest.err conftest.$ac_objext \
24900       conftest$ac_exeext conftest.$ac_ext
24901 fi
24902 if test "x$gethostbynamerstyle" = "x"; then
24903         cat >conftest.$ac_ext <<_ACEOF
24904 /* confdefs.h.  */
24905 _ACEOF
24906 cat confdefs.h >>conftest.$ac_ext
24907 cat >>conftest.$ac_ext <<_ACEOF
24908 /* end confdefs.h.  */
24909
24910 #include <stdio.h>
24911 #include <netdb.h>
24912
24913 int
24914 main ()
24915 {
24916  gethostbyname(NULL)
24917   ;
24918   return 0;
24919 }
24920 _ACEOF
24921 rm -f conftest.$ac_objext conftest$ac_exeext
24922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24923   (eval $ac_link) 2>conftest.er1
24924   ac_status=$?
24925   grep -v '^ *+' conftest.er1 >conftest.err
24926   rm -f conftest.er1
24927   cat conftest.err >&5
24928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24929   (exit $ac_status); } &&
24930          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24932   (eval $ac_try) 2>&5
24933   ac_status=$?
24934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24935   (exit $ac_status); }; } &&
24936          { ac_try='test -s conftest$ac_exeext'
24937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24938   (eval $ac_try) 2>&5
24939   ac_status=$?
24940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24941   (exit $ac_status); }; }; then
24942
24943
24944 cat >>confdefs.h <<\_ACEOF
24945 #define GETHOSTBYNAMERSTYLE BSDSTYLE
24946 _ACEOF
24947
24948                 gethostbynamerstyle=BSD
24949
24950 else
24951   echo "$as_me: failed program was:" >&5
24952 sed 's/^/| /' conftest.$ac_ext >&5
24953
24954 fi
24955 rm -f conftest.err conftest.$ac_objext \
24956       conftest$ac_exeext conftest.$ac_ext
24957 fi
24958
24959 if test "x$gethostbynamerstyle" = "x"; then
24960         echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
24961 echo "${ECHO_T}none!  It must not exist, here." >&6
24962 else
24963         echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
24964 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6
24965 fi
24966
24967 if test "x$gethostbynamerstyle" = "xBSD"; then
24968         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
24969 echo "$as_me: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
24970 fi
24971
24972
24973 cat >>confdefs.h <<\_ACEOF
24974 #define POSIXSTYLE 1
24975 _ACEOF
24976
24977
24978 cat >>confdefs.h <<\_ACEOF
24979 #define SOLARISSTYLE 2
24980 _ACEOF
24981
24982 ctimerstyle=""
24983 echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
24984 echo $ECHO_N "checking ctime_r() syntax... $ECHO_C" >&6
24985 cat >conftest.$ac_ext <<_ACEOF
24986 /* confdefs.h.  */
24987 _ACEOF
24988 cat confdefs.h >>conftest.$ac_ext
24989 cat >>conftest.$ac_ext <<_ACEOF
24990 /* end confdefs.h.  */
24991
24992 #include <time.h>
24993
24994 int
24995 main ()
24996 {
24997  ctime_r(NULL, NULL, 0)
24998   ;
24999   return 0;
25000 }
25001 _ACEOF
25002 rm -f conftest.$ac_objext conftest$ac_exeext
25003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25004   (eval $ac_link) 2>conftest.er1
25005   ac_status=$?
25006   grep -v '^ *+' conftest.er1 >conftest.err
25007   rm -f conftest.er1
25008   cat conftest.err >&5
25009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25010   (exit $ac_status); } &&
25011          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25013   (eval $ac_try) 2>&5
25014   ac_status=$?
25015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25016   (exit $ac_status); }; } &&
25017          { ac_try='test -s conftest$ac_exeext'
25018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25019   (eval $ac_try) 2>&5
25020   ac_status=$?
25021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25022   (exit $ac_status); }; }; then
25023
25024
25025 cat >>confdefs.h <<\_ACEOF
25026 #define CTIMERSTYLE SOLARISSTYLE
25027 _ACEOF
25028
25029         ctimerstyle="SOLARIS"
25030
25031 else
25032   echo "$as_me: failed program was:" >&5
25033 sed 's/^/| /' conftest.$ac_ext >&5
25034
25035 fi
25036 rm -f conftest.err conftest.$ac_objext \
25037       conftest$ac_exeext conftest.$ac_ext
25038 if test "x$ctimerstyle" = "x"; then
25039         cat >conftest.$ac_ext <<_ACEOF
25040 /* confdefs.h.  */
25041 _ACEOF
25042 cat confdefs.h >>conftest.$ac_ext
25043 cat >>conftest.$ac_ext <<_ACEOF
25044 /* end confdefs.h.  */
25045
25046 #include <time.h>
25047
25048 int
25049 main ()
25050 {
25051  ctime_r(NULL, NULL)
25052   ;
25053   return 0;
25054 }
25055 _ACEOF
25056 rm -f conftest.$ac_objext conftest$ac_exeext
25057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25058   (eval $ac_link) 2>conftest.er1
25059   ac_status=$?
25060   grep -v '^ *+' conftest.er1 >conftest.err
25061   rm -f conftest.er1
25062   cat conftest.err >&5
25063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25064   (exit $ac_status); } &&
25065          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25067   (eval $ac_try) 2>&5
25068   ac_status=$?
25069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25070   (exit $ac_status); }; } &&
25071          { ac_try='test -s conftest$ac_exeext'
25072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25073   (eval $ac_try) 2>&5
25074   ac_status=$?
25075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25076   (exit $ac_status); }; }; then
25077
25078
25079 cat >>confdefs.h <<\_ACEOF
25080 #define CTIMERSTYLE POSIXSTYLE
25081 _ACEOF
25082
25083                 ctimerstyle="POSIX"
25084
25085 else
25086   echo "$as_me: failed program was:" >&5
25087 sed 's/^/| /' conftest.$ac_ext >&5
25088
25089 fi
25090 rm -f conftest.err conftest.$ac_objext \
25091       conftest$ac_exeext conftest.$ac_ext
25092 fi
25093
25094 if test "x$ctimerstyle" = "x"; then
25095         echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
25096 echo "${ECHO_T}none!  It must not exist, here." >&6
25097 else
25098         echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
25099 echo "${ECHO_T}${ctimerstyle}-style" >&6
25100 fi
25101
25102 HOSTINFO=$host
25103
25104
25105
25106 top_builddir=`pwd`
25107 export top_builddir
25108 echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
25109 echo "${ECHO_T}top_builddir=$top_builddir" >&6
25110
25111
25112
25113 if test "x$INCLTDL" != "x";then
25114   INCLTDL='-I${top_builddir}/''libltdl'
25115 fi
25116
25117
25118
25119 mysubdirs="$LIBLTDLPATH"
25120 if test "x$EXPERIMENTAL" = "xyes"; then
25121   bar=`ls -1 "${srcdir}"/src/modules/rlm_*/configure | sed 's%/configure%%'`
25122     mysubdirs=`echo $mysubdirs $bar`
25123 else
25124         for bar in `cat "${srcdir}"/src/modules/stable`; do
25125     if test -f "${srcdir}"/src/modules/$bar/configure; then
25126       mysubdirs="$mysubdirs src/modules/$bar"
25127     fi
25128   done
25129 fi
25130
25131 MODULES=
25132 if test "x$EXPERIMENTAL" = "xyes"; then
25133   for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
25134     MODULES="$MODULES $foo"
25135   done
25136 else
25137             for foo in `cat "${srcdir}"/src/modules/stable`; do
25138     MODULES="$MODULES $foo"
25139    done
25140 fi
25141
25142
25143
25144 subdirs="$subdirs $mysubdirs"
25145
25146
25147
25148
25149           ac_config_commands="$ac_config_commands stamp-h"
25150
25151           ac_config_commands="$ac_config_commands build-radpaths-h"
25152
25153           ac_config_commands="$ac_config_commands main-chmod"
25154
25155           ac_config_commands="$ac_config_commands scripts-chmod"
25156
25157
25158
25159
25160
25161 USE_SHARED_LIBS=$enable_shared
25162
25163 USE_STATIC_LIBS=$enable_static
25164
25165
25166
25167
25168
25169
25170                                                                                                                                                       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/radrelay.conf"
25171 cat >confcache <<\_ACEOF
25172 # This file is a shell script that caches the results of configure
25173 # tests run on this system so they can be shared between configure
25174 # scripts and configure runs, see configure's option --config-cache.
25175 # It is not useful on other systems.  If it contains results you don't
25176 # want to keep, you may remove or edit it.
25177 #
25178 # config.status only pays attention to the cache file if you give it
25179 # the --recheck option to rerun configure.
25180 #
25181 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25182 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25183 # following values.
25184
25185 _ACEOF
25186
25187 # The following way of writing the cache mishandles newlines in values,
25188 # but we know of no workaround that is simple, portable, and efficient.
25189 # So, don't put newlines in cache variables' values.
25190 # Ultrix sh set writes to stderr and can't be redirected directly,
25191 # and sets the high bit in the cache file unless we assign to the vars.
25192 {
25193   (set) 2>&1 |
25194     case `(ac_space=' '; set | grep ac_space) 2>&1` in
25195     *ac_space=\ *)
25196       # `set' does not quote correctly, so add quotes (double-quote
25197       # substitution turns \\\\ into \\, and sed turns \\ into \).
25198       sed -n \
25199         "s/'/'\\\\''/g;
25200           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25201       ;;
25202     *)
25203       # `set' quotes correctly as required by POSIX, so do not add quotes.
25204       sed -n \
25205         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
25206       ;;
25207     esac;
25208 } |
25209   sed '
25210      t clear
25211      : clear
25212      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25213      t end
25214      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25215      : end' >>confcache
25216 if diff $cache_file confcache >/dev/null 2>&1; then :; else
25217   if test -w $cache_file; then
25218     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
25219     cat confcache >$cache_file
25220   else
25221     echo "not updating unwritable cache $cache_file"
25222   fi
25223 fi
25224 rm -f confcache
25225
25226 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25227 # Let make expand exec_prefix.
25228 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25229
25230 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25231 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25232 # trailing colons and then remove the whole line if VPATH becomes empty
25233 # (actually we leave an empty line to preserve line numbers).
25234 if test "x$srcdir" = x.; then
25235   ac_vpsub='/^[  ]*VPATH[        ]*=/{
25236 s/:*\$(srcdir):*/:/;
25237 s/:*\${srcdir}:*/:/;
25238 s/:*@srcdir@:*/:/;
25239 s/^\([^=]*=[     ]*\):*/\1/;
25240 s/:*$//;
25241 s/^[^=]*=[       ]*$//;
25242 }'
25243 fi
25244
25245 DEFS=-DHAVE_CONFIG_H
25246
25247 ac_libobjs=
25248 ac_ltlibobjs=
25249 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25250   # 1. Remove the extension, and $U if already installed.
25251   ac_i=`echo "$ac_i" |
25252          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
25253   # 2. Add them.
25254   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
25255   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
25256 done
25257 LIBOBJS=$ac_libobjs
25258
25259 LTLIBOBJS=$ac_ltlibobjs
25260
25261
25262
25263 : ${CONFIG_STATUS=./config.status}
25264 ac_clean_files_save=$ac_clean_files
25265 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25266 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25267 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25268 cat >$CONFIG_STATUS <<_ACEOF
25269 #! $SHELL
25270 # Generated by $as_me.
25271 # Run this file to recreate the current configuration.
25272 # Compiler output produced by configure, useful for debugging
25273 # configure, is in config.log if it exists.
25274
25275 debug=false
25276 ac_cs_recheck=false
25277 ac_cs_silent=false
25278 SHELL=\${CONFIG_SHELL-$SHELL}
25279 _ACEOF
25280
25281 cat >>$CONFIG_STATUS <<\_ACEOF
25282 ## --------------------- ##
25283 ## M4sh Initialization.  ##
25284 ## --------------------- ##
25285
25286 # Be Bourne compatible
25287 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25288   emulate sh
25289   NULLCMD=:
25290   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25291   # is contrary to our usage.  Disable this feature.
25292   alias -g '${1+"$@"}'='"$@"'
25293 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25294   set -o posix
25295 fi
25296 DUALCASE=1; export DUALCASE # for MKS sh
25297
25298 # Support unset when possible.
25299 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25300   as_unset=unset
25301 else
25302   as_unset=false
25303 fi
25304
25305
25306 # Work around bugs in pre-3.0 UWIN ksh.
25307 $as_unset ENV MAIL MAILPATH
25308 PS1='$ '
25309 PS2='> '
25310 PS4='+ '
25311
25312 # NLS nuisances.
25313 for as_var in \
25314   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25315   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25316   LC_TELEPHONE LC_TIME
25317 do
25318   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25319     eval $as_var=C; export $as_var
25320   else
25321     $as_unset $as_var
25322   fi
25323 done
25324
25325 # Required to use basename.
25326 if expr a : '\(a\)' >/dev/null 2>&1; then
25327   as_expr=expr
25328 else
25329   as_expr=false
25330 fi
25331
25332 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
25333   as_basename=basename
25334 else
25335   as_basename=false
25336 fi
25337
25338
25339 # Name of the executable.
25340 as_me=`$as_basename "$0" ||
25341 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25342          X"$0" : 'X\(//\)$' \| \
25343          X"$0" : 'X\(/\)$' \| \
25344          .     : '\(.\)' 2>/dev/null ||
25345 echo X/"$0" |
25346     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
25347           /^X\/\(\/\/\)$/{ s//\1/; q; }
25348           /^X\/\(\/\).*/{ s//\1/; q; }
25349           s/.*/./; q'`
25350
25351
25352 # PATH needs CR, and LINENO needs CR and PATH.
25353 # Avoid depending upon Character Ranges.
25354 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25355 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25356 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25357 as_cr_digits='0123456789'
25358 as_cr_alnum=$as_cr_Letters$as_cr_digits
25359
25360 # The user is always right.
25361 if test "${PATH_SEPARATOR+set}" != set; then
25362   echo "#! /bin/sh" >conf$$.sh
25363   echo  "exit 0"   >>conf$$.sh
25364   chmod +x conf$$.sh
25365   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25366     PATH_SEPARATOR=';'
25367   else
25368     PATH_SEPARATOR=:
25369   fi
25370   rm -f conf$$.sh
25371 fi
25372
25373
25374   as_lineno_1=$LINENO
25375   as_lineno_2=$LINENO
25376   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25377   test "x$as_lineno_1" != "x$as_lineno_2" &&
25378   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
25379   # Find who we are.  Look in the path if we contain no path at all
25380   # relative or not.
25381   case $0 in
25382     *[\\/]* ) as_myself=$0 ;;
25383     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25384 for as_dir in $PATH
25385 do
25386   IFS=$as_save_IFS
25387   test -z "$as_dir" && as_dir=.
25388   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25389 done
25390
25391        ;;
25392   esac
25393   # We did not find ourselves, most probably we were run as `sh COMMAND'
25394   # in which case we are not to be found in the path.
25395   if test "x$as_myself" = x; then
25396     as_myself=$0
25397   fi
25398   if test ! -f "$as_myself"; then
25399     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
25400 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
25401    { (exit 1); exit 1; }; }
25402   fi
25403   case $CONFIG_SHELL in
25404   '')
25405     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25406 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
25407 do
25408   IFS=$as_save_IFS
25409   test -z "$as_dir" && as_dir=.
25410   for as_base in sh bash ksh sh5; do
25411          case $as_dir in
25412          /*)
25413            if ("$as_dir/$as_base" -c '
25414   as_lineno_1=$LINENO
25415   as_lineno_2=$LINENO
25416   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25417   test "x$as_lineno_1" != "x$as_lineno_2" &&
25418   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
25419              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
25420              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
25421              CONFIG_SHELL=$as_dir/$as_base
25422              export CONFIG_SHELL
25423              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
25424            fi;;
25425          esac
25426        done
25427 done
25428 ;;
25429   esac
25430
25431   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25432   # uniformly replaced by the line number.  The first 'sed' inserts a
25433   # line-number line before each line; the second 'sed' does the real
25434   # work.  The second script uses 'N' to pair each line-number line
25435   # with the numbered line, and appends trailing '-' during
25436   # substitution so that $LINENO is not a special case at line end.
25437   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25438   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
25439   sed '=' <$as_myself |
25440     sed '
25441       N
25442       s,$,-,
25443       : loop
25444       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
25445       t loop
25446       s,-$,,
25447       s,^['$as_cr_digits']*\n,,
25448     ' >$as_me.lineno &&
25449   chmod +x $as_me.lineno ||
25450     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
25451 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
25452    { (exit 1); exit 1; }; }
25453
25454   # Don't try to exec as it changes $[0], causing all sort of problems
25455   # (the dirname of $[0] is not the place where we might find the
25456   # original and so on.  Autoconf is especially sensible to this).
25457   . ./$as_me.lineno
25458   # Exit status is that of the last command.
25459   exit
25460 }
25461
25462
25463 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
25464   *c*,-n*) ECHO_N= ECHO_C='
25465 ' ECHO_T='      ' ;;
25466   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
25467   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
25468 esac
25469
25470 if expr a : '\(a\)' >/dev/null 2>&1; then
25471   as_expr=expr
25472 else
25473   as_expr=false
25474 fi
25475
25476 rm -f conf$$ conf$$.exe conf$$.file
25477 echo >conf$$.file
25478 if ln -s conf$$.file conf$$ 2>/dev/null; then
25479   # We could just check for DJGPP; but this test a) works b) is more generic
25480   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
25481   if test -f conf$$.exe; then
25482     # Don't use ln at all; we don't have any links
25483     as_ln_s='cp -p'
25484   else
25485     as_ln_s='ln -s'
25486   fi
25487 elif ln conf$$.file conf$$ 2>/dev/null; then
25488   as_ln_s=ln
25489 else
25490   as_ln_s='cp -p'
25491 fi
25492 rm -f conf$$ conf$$.exe conf$$.file
25493
25494 if mkdir -p . 2>/dev/null; then
25495   as_mkdir_p=:
25496 else
25497   test -d ./-p && rmdir ./-p
25498   as_mkdir_p=false
25499 fi
25500
25501 as_executable_p="test -f"
25502
25503 # Sed expression to map a string onto a valid CPP name.
25504 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25505
25506 # Sed expression to map a string onto a valid variable name.
25507 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25508
25509
25510 # IFS
25511 # We need space, tab and new line, in precisely that order.
25512 as_nl='
25513 '
25514 IFS="   $as_nl"
25515
25516 # CDPATH.
25517 $as_unset CDPATH
25518
25519 exec 6>&1
25520
25521 # Open the log real soon, to keep \$[0] and so on meaningful, and to
25522 # report actual input values of CONFIG_FILES etc. instead of their
25523 # values after options handling.  Logging --version etc. is OK.
25524 exec 5>>config.log
25525 {
25526   echo
25527   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25528 ## Running $as_me. ##
25529 _ASBOX
25530 } >&5
25531 cat >&5 <<_CSEOF
25532
25533 This file was extended by $as_me, which was
25534 generated by GNU Autoconf 2.59.  Invocation command line was
25535
25536   CONFIG_FILES    = $CONFIG_FILES
25537   CONFIG_HEADERS  = $CONFIG_HEADERS
25538   CONFIG_LINKS    = $CONFIG_LINKS
25539   CONFIG_COMMANDS = $CONFIG_COMMANDS
25540   $ $0 $@
25541
25542 _CSEOF
25543 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
25544 echo >&5
25545 _ACEOF
25546
25547 # Files that config.status was made for.
25548 if test -n "$ac_config_files"; then
25549   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
25550 fi
25551
25552 if test -n "$ac_config_headers"; then
25553   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
25554 fi
25555
25556 if test -n "$ac_config_links"; then
25557   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
25558 fi
25559
25560 if test -n "$ac_config_commands"; then
25561   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25562 fi
25563
25564 cat >>$CONFIG_STATUS <<\_ACEOF
25565
25566 ac_cs_usage="\
25567 \`$as_me' instantiates files from templates according to the
25568 current configuration.
25569
25570 Usage: $0 [OPTIONS] [FILE]...
25571
25572   -h, --help       print this help, then exit
25573   -V, --version    print version number, then exit
25574   -q, --quiet      do not print progress messages
25575   -d, --debug      don't remove temporary files
25576       --recheck    update $as_me by reconfiguring in the same conditions
25577   --file=FILE[:TEMPLATE]
25578                    instantiate the configuration file FILE
25579   --header=FILE[:TEMPLATE]
25580                    instantiate the configuration header FILE
25581
25582 Configuration files:
25583 $config_files
25584
25585 Configuration headers:
25586 $config_headers
25587
25588 Configuration commands:
25589 $config_commands
25590
25591 Report bugs to <bug-autoconf@gnu.org>."
25592 _ACEOF
25593
25594 cat >>$CONFIG_STATUS <<_ACEOF
25595 ac_cs_version="\\
25596 config.status
25597 configured by $0, generated by GNU Autoconf 2.59,
25598   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25599
25600 Copyright (C) 2003 Free Software Foundation, Inc.
25601 This config.status script is free software; the Free Software Foundation
25602 gives unlimited permission to copy, distribute and modify it."
25603 srcdir=$srcdir
25604 _ACEOF
25605
25606 cat >>$CONFIG_STATUS <<\_ACEOF
25607 # If no file are specified by the user, then we need to provide default
25608 # value.  By we need to know if files were specified by the user.
25609 ac_need_defaults=:
25610 while test $# != 0
25611 do
25612   case $1 in
25613   --*=*)
25614     ac_option=`expr "x$1" : 'x\([^=]*\)='`
25615     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
25616     ac_shift=:
25617     ;;
25618   -*)
25619     ac_option=$1
25620     ac_optarg=$2
25621     ac_shift=shift
25622     ;;
25623   *) # This is not an option, so the user has probably given explicit
25624      # arguments.
25625      ac_option=$1
25626      ac_need_defaults=false;;
25627   esac
25628
25629   case $ac_option in
25630   # Handling of the options.
25631 _ACEOF
25632 cat >>$CONFIG_STATUS <<\_ACEOF
25633   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25634     ac_cs_recheck=: ;;
25635   --version | --vers* | -V )
25636     echo "$ac_cs_version"; exit 0 ;;
25637   --he | --h)
25638     # Conflict between --help and --header
25639     { { echo "$as_me:$LINENO: error: ambiguous option: $1
25640 Try \`$0 --help' for more information." >&5
25641 echo "$as_me: error: ambiguous option: $1
25642 Try \`$0 --help' for more information." >&2;}
25643    { (exit 1); exit 1; }; };;
25644   --help | --hel | -h )
25645     echo "$ac_cs_usage"; exit 0 ;;
25646   --debug | --d* | -d )
25647     debug=: ;;
25648   --file | --fil | --fi | --f )
25649     $ac_shift
25650     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25651     ac_need_defaults=false;;
25652   --header | --heade | --head | --hea )
25653     $ac_shift
25654     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25655     ac_need_defaults=false;;
25656   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25657   | -silent | --silent | --silen | --sile | --sil | --si | --s)
25658     ac_cs_silent=: ;;
25659
25660   # This is an error.
25661   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
25662 Try \`$0 --help' for more information." >&5
25663 echo "$as_me: error: unrecognized option: $1
25664 Try \`$0 --help' for more information." >&2;}
25665    { (exit 1); exit 1; }; } ;;
25666
25667   *) ac_config_targets="$ac_config_targets $1" ;;
25668
25669   esac
25670   shift
25671 done
25672
25673 ac_configure_extra_args=
25674
25675 if $ac_cs_silent; then
25676   exec 6>/dev/null
25677   ac_configure_extra_args="$ac_configure_extra_args --silent"
25678 fi
25679
25680 _ACEOF
25681 cat >>$CONFIG_STATUS <<_ACEOF
25682 if \$ac_cs_recheck; then
25683   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25684   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25685 fi
25686
25687 _ACEOF
25688
25689
25690
25691
25692
25693 cat >>$CONFIG_STATUS <<\_ACEOF
25694 for ac_config_target in $ac_config_targets
25695 do
25696   case "$ac_config_target" in
25697   # Handling of arguments.
25698   "./Make.inc" ) CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
25699   "./src/include/build-radpaths-h" ) CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
25700   "./src/main/Makefile" ) CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
25701   "./src/main/checkrad.pl" ) CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
25702   "./src/main/radlast" ) CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
25703   "./src/main/radtest" ) CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
25704   "./scripts/rc.radiusd" ) CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
25705   "./scripts/radwatch" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
25706   "./scripts/check-radiusd-config" ) CONFIG_FILES="$CONFIG_FILES ./scripts/check-radiusd-config" ;;
25707   "./scripts/radiusd.cron.daily" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
25708   "./scripts/radiusd.cron.monthly" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
25709   "./scripts/cryptpasswd" ) CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
25710   "./raddb/dictionary" ) CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
25711   "./raddb/radiusd.conf" ) CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
25712   "./raddb/radrelay.conf" ) CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
25713   "stamp-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
25714   "build-radpaths-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
25715   "main-chmod" ) CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
25716   "scripts-chmod" ) CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
25717   "src/include/autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
25718   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25719 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25720    { (exit 1); exit 1; }; };;
25721   esac
25722 done
25723
25724 # If the user did not use the arguments to specify the items to instantiate,
25725 # then the envvar interface is used.  Set only those that are not.
25726 # We use the long form for the default assignment because of an extremely
25727 # bizarre bug on SunOS 4.1.3.
25728 if $ac_need_defaults; then
25729   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25730   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25731   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25732 fi
25733
25734 # Have a temporary directory for convenience.  Make it in the build tree
25735 # simply because there is no reason to put it here, and in addition,
25736 # creating and moving files from /tmp can sometimes cause problems.
25737 # Create a temporary directory, and hook for its removal unless debugging.
25738 $debug ||
25739 {
25740   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25741   trap '{ (exit 1); exit 1; }' 1 2 13 15
25742 }
25743
25744 # Create a (secure) tmp directory for tmp files.
25745
25746 {
25747   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
25748   test -n "$tmp" && test -d "$tmp"
25749 }  ||
25750 {
25751   tmp=./confstat$$-$RANDOM
25752   (umask 077 && mkdir $tmp)
25753 } ||
25754 {
25755    echo "$me: cannot create a temporary directory in ." >&2
25756    { (exit 1); exit 1; }
25757 }
25758
25759 _ACEOF
25760
25761 cat >>$CONFIG_STATUS <<_ACEOF
25762
25763 #
25764 # CONFIG_FILES section.
25765 #
25766
25767 # No need to generate the scripts if there are no CONFIG_FILES.
25768 # This happens for instance when ./config.status config.h
25769 if test -n "\$CONFIG_FILES"; then
25770   # Protect against being on the right side of a sed subst in config.status.
25771   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25772    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25773 s,@SHELL@,$SHELL,;t t
25774 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25775 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25776 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25777 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25778 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25779 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25780 s,@exec_prefix@,$exec_prefix,;t t
25781 s,@prefix@,$prefix,;t t
25782 s,@program_transform_name@,$program_transform_name,;t t
25783 s,@bindir@,$bindir,;t t
25784 s,@sbindir@,$sbindir,;t t
25785 s,@libexecdir@,$libexecdir,;t t
25786 s,@datadir@,$datadir,;t t
25787 s,@sysconfdir@,$sysconfdir,;t t
25788 s,@sharedstatedir@,$sharedstatedir,;t t
25789 s,@localstatedir@,$localstatedir,;t t
25790 s,@libdir@,$libdir,;t t
25791 s,@includedir@,$includedir,;t t
25792 s,@oldincludedir@,$oldincludedir,;t t
25793 s,@infodir@,$infodir,;t t
25794 s,@mandir@,$mandir,;t t
25795 s,@build_alias@,$build_alias,;t t
25796 s,@host_alias@,$host_alias,;t t
25797 s,@target_alias@,$target_alias,;t t
25798 s,@DEFS@,$DEFS,;t t
25799 s,@ECHO_C@,$ECHO_C,;t t
25800 s,@ECHO_N@,$ECHO_N,;t t
25801 s,@ECHO_T@,$ECHO_T,;t t
25802 s,@LIBS@,$LIBS,;t t
25803 s,@CC@,$CC,;t t
25804 s,@CFLAGS@,$CFLAGS,;t t
25805 s,@LDFLAGS@,$LDFLAGS,;t t
25806 s,@CPPFLAGS@,$CPPFLAGS,;t t
25807 s,@ac_ct_CC@,$ac_ct_CC,;t t
25808 s,@EXEEXT@,$EXEEXT,;t t
25809 s,@OBJEXT@,$OBJEXT,;t t
25810 s,@CXX@,$CXX,;t t
25811 s,@CXXFLAGS@,$CXXFLAGS,;t t
25812 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
25813 s,@CPP@,$CPP,;t t
25814 s,@EGREP@,$EGREP,;t t
25815 s,@RANLIB@,$RANLIB,;t t
25816 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25817 s,@GMAKE@,$GMAKE,;t t
25818 s,@MAKE@,$MAKE,;t t
25819 s,@LIBLTDLPATH@,$LIBLTDLPATH,;t t
25820 s,@LIBTOOL@,$LIBTOOL,;t t
25821 s,@build@,$build,;t t
25822 s,@build_cpu@,$build_cpu,;t t
25823 s,@build_vendor@,$build_vendor,;t t
25824 s,@build_os@,$build_os,;t t
25825 s,@host@,$host,;t t
25826 s,@host_cpu@,$host_cpu,;t t
25827 s,@host_vendor@,$host_vendor,;t t
25828 s,@host_os@,$host_os,;t t
25829 s,@LN_S@,$LN_S,;t t
25830 s,@ECHO@,$ECHO,;t t
25831 s,@AR@,$AR,;t t
25832 s,@ac_ct_AR@,$ac_ct_AR,;t t
25833 s,@STRIP@,$STRIP,;t t
25834 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
25835 s,@CXXCPP@,$CXXCPP,;t t
25836 s,@F77@,$F77,;t t
25837 s,@FFLAGS@,$FFLAGS,;t t
25838 s,@ac_ct_F77@,$ac_ct_F77,;t t
25839 s,@logdir@,$logdir,;t t
25840 s,@radacctdir@,$radacctdir,;t t
25841 s,@raddbdir@,$raddbdir,;t t
25842 s,@PERL@,$PERL,;t t
25843 s,@SNMPGET@,$SNMPGET,;t t
25844 s,@SNMPWALK@,$SNMPWALK,;t t
25845 s,@RUSERS@,$RUSERS,;t t
25846 s,@ACLOCAL@,$ACLOCAL,;t t
25847 s,@AUTOCONF@,$AUTOCONF,;t t
25848 s,@AUTOHEADER@,$AUTOHEADER,;t t
25849 s,@LOCATE@,$LOCATE,;t t
25850 s,@DIRNAME@,$DIRNAME,;t t
25851 s,@GREP@,$GREP,;t t
25852 s,@REGEX@,$REGEX,;t t
25853 s,@REGEX_EXTENDED@,$REGEX_EXTENDED,;t t
25854 s,@OPENSSL_INCLUDE@,$OPENSSL_INCLUDE,;t t
25855 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
25856 s,@PCAP_LIBS@,$PCAP_LIBS,;t t
25857 s,@LIBPREFIX@,$LIBPREFIX,;t t
25858 s,@CRYPTLIB@,$CRYPTLIB,;t t
25859 s,@SNMP_LIBS@,$SNMP_LIBS,;t t
25860 s,@SNMP_INCLUDE@,$SNMP_INCLUDE,;t t
25861 s,@HOSTINFO@,$HOSTINFO,;t t
25862 s,@LIBLTDL@,$LIBLTDL,;t t
25863 s,@INCLTDL@,$INCLTDL,;t t
25864 s,@subdirs@,$subdirs,;t t
25865 s,@MODULES@,$MODULES,;t t
25866 s,@INSTALLSTRIP@,$INSTALLSTRIP,;t t
25867 s,@USE_SHARED_LIBS@,$USE_SHARED_LIBS,;t t
25868 s,@USE_STATIC_LIBS@,$USE_STATIC_LIBS,;t t
25869 s,@STATIC_MODULES@,$STATIC_MODULES,;t t
25870 s,@RADIUSD_MAJOR_VERSION@,$RADIUSD_MAJOR_VERSION,;t t
25871 s,@RADIUSD_MINOR_VERSION@,$RADIUSD_MINOR_VERSION,;t t
25872 s,@RADIUSD_VERSION@,$RADIUSD_VERSION,;t t
25873 s,@LIBOBJS@,$LIBOBJS,;t t
25874 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
25875 CEOF
25876
25877 _ACEOF
25878
25879   cat >>$CONFIG_STATUS <<\_ACEOF
25880   # Split the substitutions into bite-sized pieces for seds with
25881   # small command number limits, like on Digital OSF/1 and HP-UX.
25882   ac_max_sed_lines=48
25883   ac_sed_frag=1 # Number of current file.
25884   ac_beg=1 # First line for current file.
25885   ac_end=$ac_max_sed_lines # Line after last line for current file.
25886   ac_more_lines=:
25887   ac_sed_cmds=
25888   while $ac_more_lines; do
25889     if test $ac_beg -gt 1; then
25890       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25891     else
25892       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25893     fi
25894     if test ! -s $tmp/subs.frag; then
25895       ac_more_lines=false
25896     else
25897       # The purpose of the label and of the branching condition is to
25898       # speed up the sed processing (if there are no `@' at all, there
25899       # is no need to browse any of the substitutions).
25900       # These are the two extra sed commands mentioned above.
25901       (echo ':t
25902   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25903       if test -z "$ac_sed_cmds"; then
25904         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25905       else
25906         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25907       fi
25908       ac_sed_frag=`expr $ac_sed_frag + 1`
25909       ac_beg=$ac_end
25910       ac_end=`expr $ac_end + $ac_max_sed_lines`
25911     fi
25912   done
25913   if test -z "$ac_sed_cmds"; then
25914     ac_sed_cmds=cat
25915   fi
25916 fi # test -n "$CONFIG_FILES"
25917
25918 _ACEOF
25919 cat >>$CONFIG_STATUS <<\_ACEOF
25920 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25921   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25922   case $ac_file in
25923   - | *:- | *:-:* ) # input from stdin
25924         cat >$tmp/stdin
25925         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25926         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25927   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25928         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25929   * )   ac_file_in=$ac_file.in ;;
25930   esac
25931
25932   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25933   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25934 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25935          X"$ac_file" : 'X\(//\)[^/]' \| \
25936          X"$ac_file" : 'X\(//\)$' \| \
25937          X"$ac_file" : 'X\(/\)' \| \
25938          .     : '\(.\)' 2>/dev/null ||
25939 echo X"$ac_file" |
25940     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25941           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25942           /^X\(\/\/\)$/{ s//\1/; q; }
25943           /^X\(\/\).*/{ s//\1/; q; }
25944           s/.*/./; q'`
25945   { if $as_mkdir_p; then
25946     mkdir -p "$ac_dir"
25947   else
25948     as_dir="$ac_dir"
25949     as_dirs=
25950     while test ! -d "$as_dir"; do
25951       as_dirs="$as_dir $as_dirs"
25952       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25953 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25954          X"$as_dir" : 'X\(//\)[^/]' \| \
25955          X"$as_dir" : 'X\(//\)$' \| \
25956          X"$as_dir" : 'X\(/\)' \| \
25957          .     : '\(.\)' 2>/dev/null ||
25958 echo X"$as_dir" |
25959     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25960           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25961           /^X\(\/\/\)$/{ s//\1/; q; }
25962           /^X\(\/\).*/{ s//\1/; q; }
25963           s/.*/./; q'`
25964     done
25965     test ! -n "$as_dirs" || mkdir $as_dirs
25966   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25967 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25968    { (exit 1); exit 1; }; }; }
25969
25970   ac_builddir=.
25971
25972 if test "$ac_dir" != .; then
25973   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25974   # A "../" for each directory in $ac_dir_suffix.
25975   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25976 else
25977   ac_dir_suffix= ac_top_builddir=
25978 fi
25979
25980 case $srcdir in
25981   .)  # No --srcdir option.  We are building in place.
25982     ac_srcdir=.
25983     if test -z "$ac_top_builddir"; then
25984        ac_top_srcdir=.
25985     else
25986        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25987     fi ;;
25988   [\\/]* | ?:[\\/]* )  # Absolute path.
25989     ac_srcdir=$srcdir$ac_dir_suffix;
25990     ac_top_srcdir=$srcdir ;;
25991   *) # Relative path.
25992     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25993     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25994 esac
25995
25996 # Do not use `cd foo && pwd` to compute absolute paths, because
25997 # the directories may not exist.
25998 case `pwd` in
25999 .) ac_abs_builddir="$ac_dir";;
26000 *)
26001   case "$ac_dir" in
26002   .) ac_abs_builddir=`pwd`;;
26003   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26004   *) ac_abs_builddir=`pwd`/"$ac_dir";;
26005   esac;;
26006 esac
26007 case $ac_abs_builddir in
26008 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26009 *)
26010   case ${ac_top_builddir}. in
26011   .) ac_abs_top_builddir=$ac_abs_builddir;;
26012   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26013   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26014   esac;;
26015 esac
26016 case $ac_abs_builddir in
26017 .) ac_abs_srcdir=$ac_srcdir;;
26018 *)
26019   case $ac_srcdir in
26020   .) ac_abs_srcdir=$ac_abs_builddir;;
26021   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26022   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26023   esac;;
26024 esac
26025 case $ac_abs_builddir in
26026 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26027 *)
26028   case $ac_top_srcdir in
26029   .) ac_abs_top_srcdir=$ac_abs_builddir;;
26030   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26031   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26032   esac;;
26033 esac
26034
26035
26036
26037   # Let's still pretend it is `configure' which instantiates (i.e., don't
26038   # use $as_me), people would be surprised to read:
26039   #    /* config.h.  Generated by config.status.  */
26040   if test x"$ac_file" = x-; then
26041     configure_input=
26042   else
26043     configure_input="$ac_file.  "
26044   fi
26045   configure_input=$configure_input"Generated from `echo $ac_file_in |
26046                                      sed 's,.*/,,'` by configure."
26047
26048   # First look for the input files in the build tree, otherwise in the
26049   # src tree.
26050   ac_file_inputs=`IFS=:
26051     for f in $ac_file_in; do
26052       case $f in
26053       -) echo $tmp/stdin ;;
26054       [\\/$]*)
26055          # Absolute (can't be DOS-style, as IFS=:)
26056          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26057 echo "$as_me: error: cannot find input file: $f" >&2;}
26058    { (exit 1); exit 1; }; }
26059          echo "$f";;
26060       *) # Relative
26061          if test -f "$f"; then
26062            # Build tree
26063            echo "$f"
26064          elif test -f "$srcdir/$f"; then
26065            # Source tree
26066            echo "$srcdir/$f"
26067          else
26068            # /dev/null tree
26069            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26070 echo "$as_me: error: cannot find input file: $f" >&2;}
26071    { (exit 1); exit 1; }; }
26072          fi;;
26073       esac
26074     done` || { (exit 1); exit 1; }
26075
26076   if test x"$ac_file" != x-; then
26077     { echo "$as_me:$LINENO: creating $ac_file" >&5
26078 echo "$as_me: creating $ac_file" >&6;}
26079     rm -f "$ac_file"
26080   fi
26081 _ACEOF
26082 cat >>$CONFIG_STATUS <<_ACEOF
26083   sed "$ac_vpsub
26084 $extrasub
26085 _ACEOF
26086 cat >>$CONFIG_STATUS <<\_ACEOF
26087 :t
26088 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26089 s,@configure_input@,$configure_input,;t t
26090 s,@srcdir@,$ac_srcdir,;t t
26091 s,@abs_srcdir@,$ac_abs_srcdir,;t t
26092 s,@top_srcdir@,$ac_top_srcdir,;t t
26093 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
26094 s,@builddir@,$ac_builddir,;t t
26095 s,@abs_builddir@,$ac_abs_builddir,;t t
26096 s,@top_builddir@,$ac_top_builddir,;t t
26097 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
26098 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
26099   rm -f $tmp/stdin
26100   if test x"$ac_file" != x-; then
26101     mv $tmp/out $ac_file
26102   else
26103     cat $tmp/out
26104     rm -f $tmp/out
26105   fi
26106
26107 done
26108 _ACEOF
26109 cat >>$CONFIG_STATUS <<\_ACEOF
26110
26111 #
26112 # CONFIG_HEADER section.
26113 #
26114
26115 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
26116 # NAME is the cpp macro being defined and VALUE is the value it is being given.
26117 #
26118 # ac_d sets the value in "#define NAME VALUE" lines.
26119 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
26120 ac_dB='[         ].*$,\1#\2'
26121 ac_dC=' '
26122 ac_dD=',;t'
26123 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
26124 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
26125 ac_uB='$,\1#\2define\3'
26126 ac_uC=' '
26127 ac_uD=',;t'
26128
26129 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
26130   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26131   case $ac_file in
26132   - | *:- | *:-:* ) # input from stdin
26133         cat >$tmp/stdin
26134         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26135         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26136   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26137         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26138   * )   ac_file_in=$ac_file.in ;;
26139   esac
26140
26141   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
26142 echo "$as_me: creating $ac_file" >&6;}
26143
26144   # First look for the input files in the build tree, otherwise in the
26145   # src tree.
26146   ac_file_inputs=`IFS=:
26147     for f in $ac_file_in; do
26148       case $f in
26149       -) echo $tmp/stdin ;;
26150       [\\/$]*)
26151          # Absolute (can't be DOS-style, as IFS=:)
26152          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26153 echo "$as_me: error: cannot find input file: $f" >&2;}
26154    { (exit 1); exit 1; }; }
26155          # Do quote $f, to prevent DOS paths from being IFS'd.
26156          echo "$f";;
26157       *) # Relative
26158          if test -f "$f"; then
26159            # Build tree
26160            echo "$f"
26161          elif test -f "$srcdir/$f"; then
26162            # Source tree
26163            echo "$srcdir/$f"
26164          else
26165            # /dev/null tree
26166            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26167 echo "$as_me: error: cannot find input file: $f" >&2;}
26168    { (exit 1); exit 1; }; }
26169          fi;;
26170       esac
26171     done` || { (exit 1); exit 1; }
26172   # Remove the trailing spaces.
26173   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
26174
26175 _ACEOF
26176
26177 # Transform confdefs.h into two sed scripts, `conftest.defines' and
26178 # `conftest.undefs', that substitutes the proper values into
26179 # config.h.in to produce config.h.  The first handles `#define'
26180 # templates, and the second `#undef' templates.
26181 # And first: Protect against being on the right side of a sed subst in
26182 # config.status.  Protect against being in an unquoted here document
26183 # in config.status.
26184 rm -f conftest.defines conftest.undefs
26185 # Using a here document instead of a string reduces the quoting nightmare.
26186 # Putting comments in sed scripts is not portable.
26187 #
26188 # `end' is used to avoid that the second main sed command (meant for
26189 # 0-ary CPP macros) applies to n-ary macro definitions.
26190 # See the Autoconf documentation for `clear'.
26191 cat >confdef2sed.sed <<\_ACEOF
26192 s/[\\&,]/\\&/g
26193 s,[\\$`],\\&,g
26194 t clear
26195 : clear
26196 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
26197 t end
26198 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
26199 : end
26200 _ACEOF
26201 # If some macros were called several times there might be several times
26202 # the same #defines, which is useless.  Nevertheless, we may not want to
26203 # sort them, since we want the *last* AC-DEFINE to be honored.
26204 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
26205 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
26206 rm -f confdef2sed.sed
26207
26208 # This sed command replaces #undef with comments.  This is necessary, for
26209 # example, in the case of _POSIX_SOURCE, which is predefined and required
26210 # on some systems where configure will not decide to define it.
26211 cat >>conftest.undefs <<\_ACEOF
26212 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
26213 _ACEOF
26214
26215 # Break up conftest.defines because some shells have a limit on the size
26216 # of here documents, and old seds have small limits too (100 cmds).
26217 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
26218 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
26219 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
26220 echo '  :' >>$CONFIG_STATUS
26221 rm -f conftest.tail
26222 while grep . conftest.defines >/dev/null
26223 do
26224   # Write a limited-size here document to $tmp/defines.sed.
26225   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
26226   # Speed up: don't consider the non `#define' lines.
26227   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
26228   # Work around the forget-to-reset-the-flag bug.
26229   echo 't clr' >>$CONFIG_STATUS
26230   echo ': clr' >>$CONFIG_STATUS
26231   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
26232   echo 'CEOF
26233   sed -f $tmp/defines.sed $tmp/in >$tmp/out
26234   rm -f $tmp/in
26235   mv $tmp/out $tmp/in
26236 ' >>$CONFIG_STATUS
26237   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
26238   rm -f conftest.defines
26239   mv conftest.tail conftest.defines
26240 done
26241 rm -f conftest.defines
26242 echo '  fi # grep' >>$CONFIG_STATUS
26243 echo >>$CONFIG_STATUS
26244
26245 # Break up conftest.undefs because some shells have a limit on the size
26246 # of here documents, and old seds have small limits too (100 cmds).
26247 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
26248 rm -f conftest.tail
26249 while grep . conftest.undefs >/dev/null
26250 do
26251   # Write a limited-size here document to $tmp/undefs.sed.
26252   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
26253   # Speed up: don't consider the non `#undef'
26254   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
26255   # Work around the forget-to-reset-the-flag bug.
26256   echo 't clr' >>$CONFIG_STATUS
26257   echo ': clr' >>$CONFIG_STATUS
26258   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
26259   echo 'CEOF
26260   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
26261   rm -f $tmp/in
26262   mv $tmp/out $tmp/in
26263 ' >>$CONFIG_STATUS
26264   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
26265   rm -f conftest.undefs
26266   mv conftest.tail conftest.undefs
26267 done
26268 rm -f conftest.undefs
26269
26270 cat >>$CONFIG_STATUS <<\_ACEOF
26271   # Let's still pretend it is `configure' which instantiates (i.e., don't
26272   # use $as_me), people would be surprised to read:
26273   #    /* config.h.  Generated by config.status.  */
26274   if test x"$ac_file" = x-; then
26275     echo "/* Generated by configure.  */" >$tmp/config.h
26276   else
26277     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
26278   fi
26279   cat $tmp/in >>$tmp/config.h
26280   rm -f $tmp/in
26281   if test x"$ac_file" != x-; then
26282     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
26283       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26284 echo "$as_me: $ac_file is unchanged" >&6;}
26285     else
26286       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26287 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26288          X"$ac_file" : 'X\(//\)[^/]' \| \
26289          X"$ac_file" : 'X\(//\)$' \| \
26290          X"$ac_file" : 'X\(/\)' \| \
26291          .     : '\(.\)' 2>/dev/null ||
26292 echo X"$ac_file" |
26293     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26294           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26295           /^X\(\/\/\)$/{ s//\1/; q; }
26296           /^X\(\/\).*/{ s//\1/; q; }
26297           s/.*/./; q'`
26298       { if $as_mkdir_p; then
26299     mkdir -p "$ac_dir"
26300   else
26301     as_dir="$ac_dir"
26302     as_dirs=
26303     while test ! -d "$as_dir"; do
26304       as_dirs="$as_dir $as_dirs"
26305       as_dir=`(dirname "$as_dir") 2>/dev/null ||
26306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26307          X"$as_dir" : 'X\(//\)[^/]' \| \
26308          X"$as_dir" : 'X\(//\)$' \| \
26309          X"$as_dir" : 'X\(/\)' \| \
26310          .     : '\(.\)' 2>/dev/null ||
26311 echo X"$as_dir" |
26312     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26313           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26314           /^X\(\/\/\)$/{ s//\1/; q; }
26315           /^X\(\/\).*/{ s//\1/; q; }
26316           s/.*/./; q'`
26317     done
26318     test ! -n "$as_dirs" || mkdir $as_dirs
26319   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26320 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26321    { (exit 1); exit 1; }; }; }
26322
26323       rm -f $ac_file
26324       mv $tmp/config.h $ac_file
26325     fi
26326   else
26327     cat $tmp/config.h
26328     rm -f $tmp/config.h
26329   fi
26330 done
26331 _ACEOF
26332 cat >>$CONFIG_STATUS <<\_ACEOF
26333
26334 #
26335 # CONFIG_COMMANDS section.
26336 #
26337 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
26338   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
26339   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
26340   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
26341 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26342          X"$ac_dest" : 'X\(//\)[^/]' \| \
26343          X"$ac_dest" : 'X\(//\)$' \| \
26344          X"$ac_dest" : 'X\(/\)' \| \
26345          .     : '\(.\)' 2>/dev/null ||
26346 echo X"$ac_dest" |
26347     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26348           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26349           /^X\(\/\/\)$/{ s//\1/; q; }
26350           /^X\(\/\).*/{ s//\1/; q; }
26351           s/.*/./; q'`
26352   { if $as_mkdir_p; then
26353     mkdir -p "$ac_dir"
26354   else
26355     as_dir="$ac_dir"
26356     as_dirs=
26357     while test ! -d "$as_dir"; do
26358       as_dirs="$as_dir $as_dirs"
26359       as_dir=`(dirname "$as_dir") 2>/dev/null ||
26360 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26361          X"$as_dir" : 'X\(//\)[^/]' \| \
26362          X"$as_dir" : 'X\(//\)$' \| \
26363          X"$as_dir" : 'X\(/\)' \| \
26364          .     : '\(.\)' 2>/dev/null ||
26365 echo X"$as_dir" |
26366     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26367           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26368           /^X\(\/\/\)$/{ s//\1/; q; }
26369           /^X\(\/\).*/{ s//\1/; q; }
26370           s/.*/./; q'`
26371     done
26372     test ! -n "$as_dirs" || mkdir $as_dirs
26373   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26374 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26375    { (exit 1); exit 1; }; }; }
26376
26377   ac_builddir=.
26378
26379 if test "$ac_dir" != .; then
26380   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26381   # A "../" for each directory in $ac_dir_suffix.
26382   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26383 else
26384   ac_dir_suffix= ac_top_builddir=
26385 fi
26386
26387 case $srcdir in
26388   .)  # No --srcdir option.  We are building in place.
26389     ac_srcdir=.
26390     if test -z "$ac_top_builddir"; then
26391        ac_top_srcdir=.
26392     else
26393        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26394     fi ;;
26395   [\\/]* | ?:[\\/]* )  # Absolute path.
26396     ac_srcdir=$srcdir$ac_dir_suffix;
26397     ac_top_srcdir=$srcdir ;;
26398   *) # Relative path.
26399     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26400     ac_top_srcdir=$ac_top_builddir$srcdir ;;
26401 esac
26402
26403 # Do not use `cd foo && pwd` to compute absolute paths, because
26404 # the directories may not exist.
26405 case `pwd` in
26406 .) ac_abs_builddir="$ac_dir";;
26407 *)
26408   case "$ac_dir" in
26409   .) ac_abs_builddir=`pwd`;;
26410   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26411   *) ac_abs_builddir=`pwd`/"$ac_dir";;
26412   esac;;
26413 esac
26414 case $ac_abs_builddir in
26415 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26416 *)
26417   case ${ac_top_builddir}. in
26418   .) ac_abs_top_builddir=$ac_abs_builddir;;
26419   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26420   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26421   esac;;
26422 esac
26423 case $ac_abs_builddir in
26424 .) ac_abs_srcdir=$ac_srcdir;;
26425 *)
26426   case $ac_srcdir in
26427   .) ac_abs_srcdir=$ac_abs_builddir;;
26428   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26429   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26430   esac;;
26431 esac
26432 case $ac_abs_builddir in
26433 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26434 *)
26435   case $ac_top_srcdir in
26436   .) ac_abs_top_srcdir=$ac_abs_builddir;;
26437   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26438   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26439   esac;;
26440 esac
26441
26442
26443   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
26444 echo "$as_me: executing $ac_dest commands" >&6;}
26445   case $ac_dest in
26446     stamp-h ) echo timestamp > src/include/stamp-h ;;
26447     build-radpaths-h ) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
26448     main-chmod ) (cd ./src/main   && chmod +x checkrad.pl radlast radtest) ;;
26449     scripts-chmod ) (cd ./scripts    && chmod +x rc.radiusd radwatch check-radiusd-config radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
26450   esac
26451 done
26452 _ACEOF
26453
26454 cat >>$CONFIG_STATUS <<\_ACEOF
26455
26456 { (exit 0); exit 0; }
26457 _ACEOF
26458 chmod +x $CONFIG_STATUS
26459 ac_clean_files=$ac_clean_files_save
26460
26461
26462 # configure is writing to config.log, and then calls config.status.
26463 # config.status does its own redirection, appending to config.log.
26464 # Unfortunately, on DOS this fails, as config.log is still kept open
26465 # by configure, so config.status won't be able to write to it; its
26466 # output is simply discarded.  So we exec the FD to /dev/null,
26467 # effectively closing config.log, so it can be properly (re)opened and
26468 # appended to by config.status.  When coming back to configure, we
26469 # need to make the FD available again.
26470 if test "$no_create" != yes; then
26471   ac_cs_success=:
26472   ac_config_status_args=
26473   test "$silent" = yes &&
26474     ac_config_status_args="$ac_config_status_args --quiet"
26475   exec 5>/dev/null
26476   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26477   exec 5>>config.log
26478   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26479   # would make configure fail if this is the last instruction.
26480   $ac_cs_success || { (exit 1); exit 1; }
26481 fi
26482
26483 #
26484 # CONFIG_SUBDIRS section.
26485 #
26486 if test "$no_recursion" != yes; then
26487
26488   # Remove --cache-file and --srcdir arguments so they do not pile up.
26489   ac_sub_configure_args=
26490   ac_prev=
26491   for ac_arg in $ac_configure_args; do
26492     if test -n "$ac_prev"; then
26493       ac_prev=
26494       continue
26495     fi
26496     case $ac_arg in
26497     -cache-file | --cache-file | --cache-fil | --cache-fi \
26498     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
26499       ac_prev=cache_file ;;
26500     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
26501     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
26502     | --c=*)
26503       ;;
26504     --config-cache | -C)
26505       ;;
26506     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
26507       ac_prev=srcdir ;;
26508     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
26509       ;;
26510     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
26511       ac_prev=prefix ;;
26512     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
26513       ;;
26514     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
26515     esac
26516   done
26517
26518   # Always prepend --prefix to ensure using the same prefix
26519   # in subdir configurations.
26520   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
26521
26522   ac_popdir=`pwd`
26523   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
26524
26525     # Do not complain, so a configure script can configure whichever
26526     # parts of a large source tree are present.
26527     test -d $srcdir/$ac_dir || continue
26528
26529     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
26530 echo "$as_me: configuring in $ac_dir" >&6;}
26531     { if $as_mkdir_p; then
26532     mkdir -p "$ac_dir"
26533   else
26534     as_dir="$ac_dir"
26535     as_dirs=
26536     while test ! -d "$as_dir"; do
26537       as_dirs="$as_dir $as_dirs"
26538       as_dir=`(dirname "$as_dir") 2>/dev/null ||
26539 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26540          X"$as_dir" : 'X\(//\)[^/]' \| \
26541          X"$as_dir" : 'X\(//\)$' \| \
26542          X"$as_dir" : 'X\(/\)' \| \
26543          .     : '\(.\)' 2>/dev/null ||
26544 echo X"$as_dir" |
26545     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26546           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26547           /^X\(\/\/\)$/{ s//\1/; q; }
26548           /^X\(\/\).*/{ s//\1/; q; }
26549           s/.*/./; q'`
26550     done
26551     test ! -n "$as_dirs" || mkdir $as_dirs
26552   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26553 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26554    { (exit 1); exit 1; }; }; }
26555
26556     ac_builddir=.
26557
26558 if test "$ac_dir" != .; then
26559   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26560   # A "../" for each directory in $ac_dir_suffix.
26561   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26562 else
26563   ac_dir_suffix= ac_top_builddir=
26564 fi
26565
26566 case $srcdir in
26567   .)  # No --srcdir option.  We are building in place.
26568     ac_srcdir=.
26569     if test -z "$ac_top_builddir"; then
26570        ac_top_srcdir=.
26571     else
26572        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26573     fi ;;
26574   [\\/]* | ?:[\\/]* )  # Absolute path.
26575     ac_srcdir=$srcdir$ac_dir_suffix;
26576     ac_top_srcdir=$srcdir ;;
26577   *) # Relative path.
26578     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26579     ac_top_srcdir=$ac_top_builddir$srcdir ;;
26580 esac
26581
26582 # Do not use `cd foo && pwd` to compute absolute paths, because
26583 # the directories may not exist.
26584 case `pwd` in
26585 .) ac_abs_builddir="$ac_dir";;
26586 *)
26587   case "$ac_dir" in
26588   .) ac_abs_builddir=`pwd`;;
26589   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26590   *) ac_abs_builddir=`pwd`/"$ac_dir";;
26591   esac;;
26592 esac
26593 case $ac_abs_builddir in
26594 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26595 *)
26596   case ${ac_top_builddir}. in
26597   .) ac_abs_top_builddir=$ac_abs_builddir;;
26598   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26599   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26600   esac;;
26601 esac
26602 case $ac_abs_builddir in
26603 .) ac_abs_srcdir=$ac_srcdir;;
26604 *)
26605   case $ac_srcdir in
26606   .) ac_abs_srcdir=$ac_abs_builddir;;
26607   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26608   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26609   esac;;
26610 esac
26611 case $ac_abs_builddir in
26612 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26613 *)
26614   case $ac_top_srcdir in
26615   .) ac_abs_top_srcdir=$ac_abs_builddir;;
26616   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26617   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26618   esac;;
26619 esac
26620
26621
26622     cd $ac_dir
26623
26624     # Check for guested configure; otherwise get Cygnus style configure.
26625     if test -f $ac_srcdir/configure.gnu; then
26626       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
26627     elif test -f $ac_srcdir/configure; then
26628       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
26629     elif test -f $ac_srcdir/configure.in; then
26630       ac_sub_configure=$ac_configure
26631     else
26632       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
26633 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
26634       ac_sub_configure=
26635     fi
26636
26637     # The recursion is here.
26638     if test -n "$ac_sub_configure"; then
26639       # Make the cache file name correct relative to the subdirectory.
26640       case $cache_file in
26641       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
26642       *) # Relative path.
26643         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
26644       esac
26645
26646       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
26647 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
26648       # The eval makes quoting arguments work.
26649       eval $ac_sub_configure $ac_sub_configure_args \
26650            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
26651         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
26652 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
26653    { (exit 1); exit 1; }; }
26654     fi
26655
26656     cd "$ac_popdir"
26657   done
26658 fi
26659