Port "use_tunneled_reply" fix for MS-CHAP from branch_1_1
[freeradius.git] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.231 .
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 docdir 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-docdir=DIR       Directory for documentation DATADIR/doc/freeradius
1044   --with-logdir=DIR       Directory for logfiles LOCALSTATEDIR/log/radius
1045   --with-radacctdir=DIR   Directory for detail files LOGDIR/radacct
1046   --with-raddbdir=DIR     Directory for config files SYSCONFDIR/raddb
1047   --with-ascend-binary    Include support for Ascend binary filter attributes (default=yes)
1048   --with-threads          Use threads, if available.  (default=yes)
1049   --with-snmp             Compile in SNMP support. (default=yes)
1050   --with-static-modules=QUOTED-MODULE-LIST
1051  --with-modules=QUOTED-MODULE-LIST
1052   --with-experimental-modules      Use experimental and unstable modules. (default=no)
1053   --with-openssl-includes=DIR      Directory to look for OpenSSL include files
1054   --with-openssl-libraries=DIR     Directory to look for OpenSSL library files
1055   --with-rlm-FOO-lib-dir=DIR       Directory to look for library files used by module FOO
1056   --with-rlm-FOO-include-dir=DIR   Directory to look for include files used by module FOO
1057   --with-udpfromto        Compile in UDPFROMTO support. (default=no)
1058
1059 Some influential environment variables:
1060   CC          C compiler command
1061   CFLAGS      C compiler flags
1062   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1063               nonstandard directory <lib dir>
1064   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1065               headers in a nonstandard directory <include dir>
1066   CXX         C++ compiler command
1067   CXXFLAGS    C++ compiler flags
1068   CPP         C preprocessor
1069   CXXCPP      C++ preprocessor
1070   F77         Fortran 77 compiler command
1071   FFLAGS      Fortran 77 compiler flags
1072
1073 Use these variables to override the choices made by `configure' or to help
1074 it to find libraries and programs with nonstandard names/locations.
1075
1076 _ACEOF
1077 fi
1078
1079 if test "$ac_init_help" = "recursive"; then
1080   # If there are subdirs, report their specific --help.
1081   ac_popdir=`pwd`
1082   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1083     test -d $ac_dir || continue
1084     ac_builddir=.
1085
1086 if test "$ac_dir" != .; then
1087   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1088   # A "../" for each directory in $ac_dir_suffix.
1089   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1090 else
1091   ac_dir_suffix= ac_top_builddir=
1092 fi
1093
1094 case $srcdir in
1095   .)  # No --srcdir option.  We are building in place.
1096     ac_srcdir=.
1097     if test -z "$ac_top_builddir"; then
1098        ac_top_srcdir=.
1099     else
1100        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1101     fi ;;
1102   [\\/]* | ?:[\\/]* )  # Absolute path.
1103     ac_srcdir=$srcdir$ac_dir_suffix;
1104     ac_top_srcdir=$srcdir ;;
1105   *) # Relative path.
1106     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1107     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1108 esac
1109
1110 # Do not use `cd foo && pwd` to compute absolute paths, because
1111 # the directories may not exist.
1112 case `pwd` in
1113 .) ac_abs_builddir="$ac_dir";;
1114 *)
1115   case "$ac_dir" in
1116   .) ac_abs_builddir=`pwd`;;
1117   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1118   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1119   esac;;
1120 esac
1121 case $ac_abs_builddir in
1122 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1123 *)
1124   case ${ac_top_builddir}. in
1125   .) ac_abs_top_builddir=$ac_abs_builddir;;
1126   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1127   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1128   esac;;
1129 esac
1130 case $ac_abs_builddir in
1131 .) ac_abs_srcdir=$ac_srcdir;;
1132 *)
1133   case $ac_srcdir in
1134   .) ac_abs_srcdir=$ac_abs_builddir;;
1135   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1136   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1137   esac;;
1138 esac
1139 case $ac_abs_builddir in
1140 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1141 *)
1142   case $ac_top_srcdir in
1143   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1144   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1145   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1146   esac;;
1147 esac
1148
1149     cd $ac_dir
1150     # Check for guested configure; otherwise get Cygnus style configure.
1151     if test -f $ac_srcdir/configure.gnu; then
1152       echo
1153       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1154     elif test -f $ac_srcdir/configure; then
1155       echo
1156       $SHELL $ac_srcdir/configure  --help=recursive
1157     elif test -f $ac_srcdir/configure.ac ||
1158            test -f $ac_srcdir/configure.in; then
1159       echo
1160       $ac_configure --help
1161     else
1162       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1163     fi
1164     cd "$ac_popdir"
1165   done
1166 fi
1167
1168 test -n "$ac_init_help" && exit 0
1169 if $ac_init_version; then
1170   cat <<\_ACEOF
1171
1172 Copyright (C) 2003 Free Software Foundation, Inc.
1173 This configure script is free software; the Free Software Foundation
1174 gives unlimited permission to copy, distribute and modify it.
1175 _ACEOF
1176   exit 0
1177 fi
1178 exec 5>config.log
1179 cat >&5 <<_ACEOF
1180 This file contains any messages produced by compilers while
1181 running configure, to aid debugging if configure makes a mistake.
1182
1183 It was created by $as_me, which was
1184 generated by GNU Autoconf 2.59.  Invocation command line was
1185
1186   $ $0 $@
1187
1188 _ACEOF
1189 {
1190 cat <<_ASUNAME
1191 ## --------- ##
1192 ## Platform. ##
1193 ## --------- ##
1194
1195 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1196 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1197 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1198 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1199 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1200
1201 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1202 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1203
1204 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1205 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1206 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1207 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1208 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1209 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1210 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1211
1212 _ASUNAME
1213
1214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1215 for as_dir in $PATH
1216 do
1217   IFS=$as_save_IFS
1218   test -z "$as_dir" && as_dir=.
1219   echo "PATH: $as_dir"
1220 done
1221
1222 } >&5
1223
1224 cat >&5 <<_ACEOF
1225
1226
1227 ## ----------- ##
1228 ## Core tests. ##
1229 ## ----------- ##
1230
1231 _ACEOF
1232
1233
1234 # Keep a trace of the command line.
1235 # Strip out --no-create and --no-recursion so they do not pile up.
1236 # Strip out --silent because we don't want to record it for future runs.
1237 # Also quote any args containing shell meta-characters.
1238 # Make two passes to allow for proper duplicate-argument suppression.
1239 ac_configure_args=
1240 ac_configure_args0=
1241 ac_configure_args1=
1242 ac_sep=
1243 ac_must_keep_next=false
1244 for ac_pass in 1 2
1245 do
1246   for ac_arg
1247   do
1248     case $ac_arg in
1249     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1250     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1251     | -silent | --silent | --silen | --sile | --sil)
1252       continue ;;
1253     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1254       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1255     esac
1256     case $ac_pass in
1257     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1258     2)
1259       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1260       if test $ac_must_keep_next = true; then
1261         ac_must_keep_next=false # Got value, back to normal.
1262       else
1263         case $ac_arg in
1264           *=* | --config-cache | -C | -disable-* | --disable-* \
1265           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1266           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1267           | -with-* | --with-* | -without-* | --without-* | --x)
1268             case "$ac_configure_args0 " in
1269               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1270             esac
1271             ;;
1272           -* ) ac_must_keep_next=true ;;
1273         esac
1274       fi
1275       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1276       # Get rid of the leading space.
1277       ac_sep=" "
1278       ;;
1279     esac
1280   done
1281 done
1282 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1283 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1284
1285 # When interrupted or exit'd, cleanup temporary files, and complete
1286 # config.log.  We remove comments because anyway the quotes in there
1287 # would cause problems or look ugly.
1288 # WARNING: Be sure not to use single quotes in there, as some shells,
1289 # such as our DU 5.0 friend, will then `close' the trap.
1290 trap 'exit_status=$?
1291   # Save into config.log some information that might help in debugging.
1292   {
1293     echo
1294
1295     cat <<\_ASBOX
1296 ## ---------------- ##
1297 ## Cache variables. ##
1298 ## ---------------- ##
1299 _ASBOX
1300     echo
1301     # The following way of writing the cache mishandles newlines in values,
1302 {
1303   (set) 2>&1 |
1304     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1305     *ac_space=\ *)
1306       sed -n \
1307         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1308           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1309       ;;
1310     *)
1311       sed -n \
1312         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1313       ;;
1314     esac;
1315 }
1316     echo
1317
1318     cat <<\_ASBOX
1319 ## ----------------- ##
1320 ## Output variables. ##
1321 ## ----------------- ##
1322 _ASBOX
1323     echo
1324     for ac_var in $ac_subst_vars
1325     do
1326       eval ac_val=$`echo $ac_var`
1327       echo "$ac_var='"'"'$ac_val'"'"'"
1328     done | sort
1329     echo
1330
1331     if test -n "$ac_subst_files"; then
1332       cat <<\_ASBOX
1333 ## ------------- ##
1334 ## Output files. ##
1335 ## ------------- ##
1336 _ASBOX
1337       echo
1338       for ac_var in $ac_subst_files
1339       do
1340         eval ac_val=$`echo $ac_var`
1341         echo "$ac_var='"'"'$ac_val'"'"'"
1342       done | sort
1343       echo
1344     fi
1345
1346     if test -s confdefs.h; then
1347       cat <<\_ASBOX
1348 ## ----------- ##
1349 ## confdefs.h. ##
1350 ## ----------- ##
1351 _ASBOX
1352       echo
1353       sed "/^$/d" confdefs.h | sort
1354       echo
1355     fi
1356     test "$ac_signal" != 0 &&
1357       echo "$as_me: caught signal $ac_signal"
1358     echo "$as_me: exit $exit_status"
1359   } >&5
1360   rm -f core *.core &&
1361   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1362     exit $exit_status
1363      ' 0
1364 for ac_signal in 1 2 13 15; do
1365   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1366 done
1367 ac_signal=0
1368
1369 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1370 rm -rf conftest* confdefs.h
1371 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1372 echo >confdefs.h
1373
1374 # Predefined preprocessor variables.
1375
1376 cat >>confdefs.h <<_ACEOF
1377 #define PACKAGE_NAME "$PACKAGE_NAME"
1378 _ACEOF
1379
1380
1381 cat >>confdefs.h <<_ACEOF
1382 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1383 _ACEOF
1384
1385
1386 cat >>confdefs.h <<_ACEOF
1387 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1388 _ACEOF
1389
1390
1391 cat >>confdefs.h <<_ACEOF
1392 #define PACKAGE_STRING "$PACKAGE_STRING"
1393 _ACEOF
1394
1395
1396 cat >>confdefs.h <<_ACEOF
1397 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1398 _ACEOF
1399
1400
1401 # Let the site file select an alternate cache file if it wants to.
1402 # Prefer explicitly selected file to automatically selected ones.
1403 if test -z "$CONFIG_SITE"; then
1404   if test "x$prefix" != xNONE; then
1405     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1406   else
1407     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1408   fi
1409 fi
1410 for ac_site_file in $CONFIG_SITE; do
1411   if test -r "$ac_site_file"; then
1412     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1413 echo "$as_me: loading site script $ac_site_file" >&6;}
1414     sed 's/^/| /' "$ac_site_file" >&5
1415     . "$ac_site_file"
1416   fi
1417 done
1418
1419 if test -r "$cache_file"; then
1420   # Some versions of bash will fail to source /dev/null (special
1421   # files actually), so we avoid doing that.
1422   if test -f "$cache_file"; then
1423     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1424 echo "$as_me: loading cache $cache_file" >&6;}
1425     case $cache_file in
1426       [\\/]* | ?:[\\/]* ) . $cache_file;;
1427       *)                      . ./$cache_file;;
1428     esac
1429   fi
1430 else
1431   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1432 echo "$as_me: creating cache $cache_file" >&6;}
1433   >$cache_file
1434 fi
1435
1436 # Check that the precious variables saved in the cache have kept the same
1437 # value.
1438 ac_cache_corrupted=false
1439 for ac_var in `(set) 2>&1 |
1440                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1441   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1442   eval ac_new_set=\$ac_env_${ac_var}_set
1443   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1444   eval ac_new_val="\$ac_env_${ac_var}_value"
1445   case $ac_old_set,$ac_new_set in
1446     set,)
1447       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1448 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1449       ac_cache_corrupted=: ;;
1450     ,set)
1451       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1452 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1453       ac_cache_corrupted=: ;;
1454     ,);;
1455     *)
1456       if test "x$ac_old_val" != "x$ac_new_val"; then
1457         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1458 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1459         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1460 echo "$as_me:   former value:  $ac_old_val" >&2;}
1461         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1462 echo "$as_me:   current value: $ac_new_val" >&2;}
1463         ac_cache_corrupted=:
1464       fi;;
1465   esac
1466   # Pass precious variables to config.status.
1467   if test "$ac_new_set" = set; then
1468     case $ac_new_val in
1469     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1470       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1471     *) ac_arg=$ac_var=$ac_new_val ;;
1472     esac
1473     case " $ac_configure_args " in
1474       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1475       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1476     esac
1477   fi
1478 done
1479 if $ac_cache_corrupted; then
1480   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1481 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1482   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1483 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1484    { (exit 1); exit 1; }; }
1485 fi
1486
1487 ac_ext=c
1488 ac_cpp='$CPP $CPPFLAGS'
1489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511           ac_config_headers="$ac_config_headers src/include/autoconf.h"
1512
1513
1514 RADIUSD_MAJOR_VERSION=2
1515 RADIUSD_MINOR_VERSION=0.0-pre0
1516 RADIUSD_VERSION="${RADIUSD_MAJOR_VERSION}.${RADIUSD_MINOR_VERSION}"
1517 PACKAGE=freeradius
1518
1519
1520 ac_ext=c
1521 ac_cpp='$CPP $CPPFLAGS'
1522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1525 if test -n "$ac_tool_prefix"; then
1526   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1527 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1528 echo "$as_me:$LINENO: checking for $ac_word" >&5
1529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1530 if test "${ac_cv_prog_CC+set}" = set; then
1531   echo $ECHO_N "(cached) $ECHO_C" >&6
1532 else
1533   if test -n "$CC"; then
1534   ac_cv_prog_CC="$CC" # Let the user override the test.
1535 else
1536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1537 for as_dir in $PATH
1538 do
1539   IFS=$as_save_IFS
1540   test -z "$as_dir" && as_dir=.
1541   for ac_exec_ext in '' $ac_executable_extensions; do
1542   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1543     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1544     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1545     break 2
1546   fi
1547 done
1548 done
1549
1550 fi
1551 fi
1552 CC=$ac_cv_prog_CC
1553 if test -n "$CC"; then
1554   echo "$as_me:$LINENO: result: $CC" >&5
1555 echo "${ECHO_T}$CC" >&6
1556 else
1557   echo "$as_me:$LINENO: result: no" >&5
1558 echo "${ECHO_T}no" >&6
1559 fi
1560
1561 fi
1562 if test -z "$ac_cv_prog_CC"; then
1563   ac_ct_CC=$CC
1564   # Extract the first word of "gcc", so it can be a program name with args.
1565 set dummy gcc; ac_word=$2
1566 echo "$as_me:$LINENO: checking for $ac_word" >&5
1567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1568 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1569   echo $ECHO_N "(cached) $ECHO_C" >&6
1570 else
1571   if test -n "$ac_ct_CC"; then
1572   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1573 else
1574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1575 for as_dir in $PATH
1576 do
1577   IFS=$as_save_IFS
1578   test -z "$as_dir" && as_dir=.
1579   for ac_exec_ext in '' $ac_executable_extensions; do
1580   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1581     ac_cv_prog_ac_ct_CC="gcc"
1582     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1583     break 2
1584   fi
1585 done
1586 done
1587
1588 fi
1589 fi
1590 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1591 if test -n "$ac_ct_CC"; then
1592   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1593 echo "${ECHO_T}$ac_ct_CC" >&6
1594 else
1595   echo "$as_me:$LINENO: result: no" >&5
1596 echo "${ECHO_T}no" >&6
1597 fi
1598
1599   CC=$ac_ct_CC
1600 else
1601   CC="$ac_cv_prog_CC"
1602 fi
1603
1604 if test -z "$CC"; then
1605   if test -n "$ac_tool_prefix"; then
1606   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1607 set dummy ${ac_tool_prefix}cc; ac_word=$2
1608 echo "$as_me:$LINENO: checking for $ac_word" >&5
1609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1610 if test "${ac_cv_prog_CC+set}" = set; then
1611   echo $ECHO_N "(cached) $ECHO_C" >&6
1612 else
1613   if test -n "$CC"; then
1614   ac_cv_prog_CC="$CC" # Let the user override the test.
1615 else
1616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1617 for as_dir in $PATH
1618 do
1619   IFS=$as_save_IFS
1620   test -z "$as_dir" && as_dir=.
1621   for ac_exec_ext in '' $ac_executable_extensions; do
1622   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1623     ac_cv_prog_CC="${ac_tool_prefix}cc"
1624     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1625     break 2
1626   fi
1627 done
1628 done
1629
1630 fi
1631 fi
1632 CC=$ac_cv_prog_CC
1633 if test -n "$CC"; then
1634   echo "$as_me:$LINENO: result: $CC" >&5
1635 echo "${ECHO_T}$CC" >&6
1636 else
1637   echo "$as_me:$LINENO: result: no" >&5
1638 echo "${ECHO_T}no" >&6
1639 fi
1640
1641 fi
1642 if test -z "$ac_cv_prog_CC"; then
1643   ac_ct_CC=$CC
1644   # Extract the first word of "cc", so it can be a program name with args.
1645 set dummy cc; ac_word=$2
1646 echo "$as_me:$LINENO: checking for $ac_word" >&5
1647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1648 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1649   echo $ECHO_N "(cached) $ECHO_C" >&6
1650 else
1651   if test -n "$ac_ct_CC"; then
1652   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1653 else
1654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1655 for as_dir in $PATH
1656 do
1657   IFS=$as_save_IFS
1658   test -z "$as_dir" && as_dir=.
1659   for ac_exec_ext in '' $ac_executable_extensions; do
1660   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1661     ac_cv_prog_ac_ct_CC="cc"
1662     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1663     break 2
1664   fi
1665 done
1666 done
1667
1668 fi
1669 fi
1670 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1671 if test -n "$ac_ct_CC"; then
1672   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1673 echo "${ECHO_T}$ac_ct_CC" >&6
1674 else
1675   echo "$as_me:$LINENO: result: no" >&5
1676 echo "${ECHO_T}no" >&6
1677 fi
1678
1679   CC=$ac_ct_CC
1680 else
1681   CC="$ac_cv_prog_CC"
1682 fi
1683
1684 fi
1685 if test -z "$CC"; then
1686   # Extract the first word of "cc", so it can be a program name with args.
1687 set dummy cc; ac_word=$2
1688 echo "$as_me:$LINENO: checking for $ac_word" >&5
1689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1690 if test "${ac_cv_prog_CC+set}" = set; then
1691   echo $ECHO_N "(cached) $ECHO_C" >&6
1692 else
1693   if test -n "$CC"; then
1694   ac_cv_prog_CC="$CC" # Let the user override the test.
1695 else
1696   ac_prog_rejected=no
1697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1698 for as_dir in $PATH
1699 do
1700   IFS=$as_save_IFS
1701   test -z "$as_dir" && as_dir=.
1702   for ac_exec_ext in '' $ac_executable_extensions; do
1703   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1704     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1705        ac_prog_rejected=yes
1706        continue
1707      fi
1708     ac_cv_prog_CC="cc"
1709     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1710     break 2
1711   fi
1712 done
1713 done
1714
1715 if test $ac_prog_rejected = yes; then
1716   # We found a bogon in the path, so make sure we never use it.
1717   set dummy $ac_cv_prog_CC
1718   shift
1719   if test $# != 0; then
1720     # We chose a different compiler from the bogus one.
1721     # However, it has the same basename, so the bogon will be chosen
1722     # first if we set CC to just the basename; use the full file name.
1723     shift
1724     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1725   fi
1726 fi
1727 fi
1728 fi
1729 CC=$ac_cv_prog_CC
1730 if test -n "$CC"; then
1731   echo "$as_me:$LINENO: result: $CC" >&5
1732 echo "${ECHO_T}$CC" >&6
1733 else
1734   echo "$as_me:$LINENO: result: no" >&5
1735 echo "${ECHO_T}no" >&6
1736 fi
1737
1738 fi
1739 if test -z "$CC"; then
1740   if test -n "$ac_tool_prefix"; then
1741   for ac_prog in cl
1742   do
1743     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1744 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1745 echo "$as_me:$LINENO: checking for $ac_word" >&5
1746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1747 if test "${ac_cv_prog_CC+set}" = set; then
1748   echo $ECHO_N "(cached) $ECHO_C" >&6
1749 else
1750   if test -n "$CC"; then
1751   ac_cv_prog_CC="$CC" # Let the user override the test.
1752 else
1753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1754 for as_dir in $PATH
1755 do
1756   IFS=$as_save_IFS
1757   test -z "$as_dir" && as_dir=.
1758   for ac_exec_ext in '' $ac_executable_extensions; do
1759   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1760     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1761     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1762     break 2
1763   fi
1764 done
1765 done
1766
1767 fi
1768 fi
1769 CC=$ac_cv_prog_CC
1770 if test -n "$CC"; then
1771   echo "$as_me:$LINENO: result: $CC" >&5
1772 echo "${ECHO_T}$CC" >&6
1773 else
1774   echo "$as_me:$LINENO: result: no" >&5
1775 echo "${ECHO_T}no" >&6
1776 fi
1777
1778     test -n "$CC" && break
1779   done
1780 fi
1781 if test -z "$CC"; then
1782   ac_ct_CC=$CC
1783   for ac_prog in cl
1784 do
1785   # Extract the first word of "$ac_prog", so it can be a program name with args.
1786 set dummy $ac_prog; ac_word=$2
1787 echo "$as_me:$LINENO: checking for $ac_word" >&5
1788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1789 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1790   echo $ECHO_N "(cached) $ECHO_C" >&6
1791 else
1792   if test -n "$ac_ct_CC"; then
1793   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1794 else
1795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1796 for as_dir in $PATH
1797 do
1798   IFS=$as_save_IFS
1799   test -z "$as_dir" && as_dir=.
1800   for ac_exec_ext in '' $ac_executable_extensions; do
1801   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1802     ac_cv_prog_ac_ct_CC="$ac_prog"
1803     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1804     break 2
1805   fi
1806 done
1807 done
1808
1809 fi
1810 fi
1811 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1812 if test -n "$ac_ct_CC"; then
1813   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1814 echo "${ECHO_T}$ac_ct_CC" >&6
1815 else
1816   echo "$as_me:$LINENO: result: no" >&5
1817 echo "${ECHO_T}no" >&6
1818 fi
1819
1820   test -n "$ac_ct_CC" && break
1821 done
1822
1823   CC=$ac_ct_CC
1824 fi
1825
1826 fi
1827
1828
1829 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1830 See \`config.log' for more details." >&5
1831 echo "$as_me: error: no acceptable C compiler found in \$PATH
1832 See \`config.log' for more details." >&2;}
1833    { (exit 1); exit 1; }; }
1834
1835 # Provide some information about the compiler.
1836 echo "$as_me:$LINENO:" \
1837      "checking for C compiler version" >&5
1838 ac_compiler=`set X $ac_compile; echo $2`
1839 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1840   (eval $ac_compiler --version </dev/null >&5) 2>&5
1841   ac_status=$?
1842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1843   (exit $ac_status); }
1844 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1845   (eval $ac_compiler -v </dev/null >&5) 2>&5
1846   ac_status=$?
1847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1848   (exit $ac_status); }
1849 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1850   (eval $ac_compiler -V </dev/null >&5) 2>&5
1851   ac_status=$?
1852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1853   (exit $ac_status); }
1854
1855 cat >conftest.$ac_ext <<_ACEOF
1856 /* confdefs.h.  */
1857 _ACEOF
1858 cat confdefs.h >>conftest.$ac_ext
1859 cat >>conftest.$ac_ext <<_ACEOF
1860 /* end confdefs.h.  */
1861
1862 int
1863 main ()
1864 {
1865
1866   ;
1867   return 0;
1868 }
1869 _ACEOF
1870 ac_clean_files_save=$ac_clean_files
1871 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1872 # Try to create an executable without -o first, disregard a.out.
1873 # It will help us diagnose broken compilers, and finding out an intuition
1874 # of exeext.
1875 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1876 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1877 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1878 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1879   (eval $ac_link_default) 2>&5
1880   ac_status=$?
1881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1882   (exit $ac_status); }; then
1883   # Find the output, starting from the most likely.  This scheme is
1884 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1885 # resort.
1886
1887 # Be careful to initialize this variable, since it used to be cached.
1888 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1889 ac_cv_exeext=
1890 # b.out is created by i960 compilers.
1891 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1892 do
1893   test -f "$ac_file" || continue
1894   case $ac_file in
1895     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1896         ;;
1897     conftest.$ac_ext )
1898         # This is the source file.
1899         ;;
1900     [ab].out )
1901         # We found the default executable, but exeext='' is most
1902         # certainly right.
1903         break;;
1904     *.* )
1905         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1906         # FIXME: I believe we export ac_cv_exeext for Libtool,
1907         # but it would be cool to find out if it's true.  Does anybody
1908         # maintain Libtool? --akim.
1909         export ac_cv_exeext
1910         break;;
1911     * )
1912         break;;
1913   esac
1914 done
1915 else
1916   echo "$as_me: failed program was:" >&5
1917 sed 's/^/| /' conftest.$ac_ext >&5
1918
1919 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1920 See \`config.log' for more details." >&5
1921 echo "$as_me: error: C compiler cannot create executables
1922 See \`config.log' for more details." >&2;}
1923    { (exit 77); exit 77; }; }
1924 fi
1925
1926 ac_exeext=$ac_cv_exeext
1927 echo "$as_me:$LINENO: result: $ac_file" >&5
1928 echo "${ECHO_T}$ac_file" >&6
1929
1930 # Check the compiler produces executables we can run.  If not, either
1931 # the compiler is broken, or we cross compile.
1932 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1933 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1934 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1935 # If not cross compiling, check that we can run a simple program.
1936 if test "$cross_compiling" != yes; then
1937   if { ac_try='./$ac_file'
1938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1939   (eval $ac_try) 2>&5
1940   ac_status=$?
1941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1942   (exit $ac_status); }; }; then
1943     cross_compiling=no
1944   else
1945     if test "$cross_compiling" = maybe; then
1946         cross_compiling=yes
1947     else
1948         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1949 If you meant to cross compile, use \`--host'.
1950 See \`config.log' for more details." >&5
1951 echo "$as_me: error: cannot run C compiled programs.
1952 If you meant to cross compile, use \`--host'.
1953 See \`config.log' for more details." >&2;}
1954    { (exit 1); exit 1; }; }
1955     fi
1956   fi
1957 fi
1958 echo "$as_me:$LINENO: result: yes" >&5
1959 echo "${ECHO_T}yes" >&6
1960
1961 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1962 ac_clean_files=$ac_clean_files_save
1963 # Check the compiler produces executables we can run.  If not, either
1964 # the compiler is broken, or we cross compile.
1965 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1966 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1967 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1968 echo "${ECHO_T}$cross_compiling" >&6
1969
1970 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1971 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1973   (eval $ac_link) 2>&5
1974   ac_status=$?
1975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1976   (exit $ac_status); }; then
1977   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1978 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1979 # work properly (i.e., refer to `conftest.exe'), while it won't with
1980 # `rm'.
1981 for ac_file in conftest.exe conftest conftest.*; do
1982   test -f "$ac_file" || continue
1983   case $ac_file in
1984     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1985     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1986           export ac_cv_exeext
1987           break;;
1988     * ) break;;
1989   esac
1990 done
1991 else
1992   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1993 See \`config.log' for more details." >&5
1994 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1995 See \`config.log' for more details." >&2;}
1996    { (exit 1); exit 1; }; }
1997 fi
1998
1999 rm -f conftest$ac_cv_exeext
2000 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2001 echo "${ECHO_T}$ac_cv_exeext" >&6
2002
2003 rm -f conftest.$ac_ext
2004 EXEEXT=$ac_cv_exeext
2005 ac_exeext=$EXEEXT
2006 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2007 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2008 if test "${ac_cv_objext+set}" = set; then
2009   echo $ECHO_N "(cached) $ECHO_C" >&6
2010 else
2011   cat >conftest.$ac_ext <<_ACEOF
2012 /* confdefs.h.  */
2013 _ACEOF
2014 cat confdefs.h >>conftest.$ac_ext
2015 cat >>conftest.$ac_ext <<_ACEOF
2016 /* end confdefs.h.  */
2017
2018 int
2019 main ()
2020 {
2021
2022   ;
2023   return 0;
2024 }
2025 _ACEOF
2026 rm -f conftest.o conftest.obj
2027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2028   (eval $ac_compile) 2>&5
2029   ac_status=$?
2030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2031   (exit $ac_status); }; then
2032   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2033   case $ac_file in
2034     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2035     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2036        break;;
2037   esac
2038 done
2039 else
2040   echo "$as_me: failed program was:" >&5
2041 sed 's/^/| /' conftest.$ac_ext >&5
2042
2043 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2044 See \`config.log' for more details." >&5
2045 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2046 See \`config.log' for more details." >&2;}
2047    { (exit 1); exit 1; }; }
2048 fi
2049
2050 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2051 fi
2052 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2053 echo "${ECHO_T}$ac_cv_objext" >&6
2054 OBJEXT=$ac_cv_objext
2055 ac_objext=$OBJEXT
2056 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2057 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2058 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2059   echo $ECHO_N "(cached) $ECHO_C" >&6
2060 else
2061   cat >conftest.$ac_ext <<_ACEOF
2062 /* confdefs.h.  */
2063 _ACEOF
2064 cat confdefs.h >>conftest.$ac_ext
2065 cat >>conftest.$ac_ext <<_ACEOF
2066 /* end confdefs.h.  */
2067
2068 int
2069 main ()
2070 {
2071 #ifndef __GNUC__
2072        choke me
2073 #endif
2074
2075   ;
2076   return 0;
2077 }
2078 _ACEOF
2079 rm -f conftest.$ac_objext
2080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2081   (eval $ac_compile) 2>conftest.er1
2082   ac_status=$?
2083   grep -v '^ *+' conftest.er1 >conftest.err
2084   rm -f conftest.er1
2085   cat conftest.err >&5
2086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2087   (exit $ac_status); } &&
2088          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2090   (eval $ac_try) 2>&5
2091   ac_status=$?
2092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093   (exit $ac_status); }; } &&
2094          { ac_try='test -s conftest.$ac_objext'
2095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2096   (eval $ac_try) 2>&5
2097   ac_status=$?
2098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099   (exit $ac_status); }; }; then
2100   ac_compiler_gnu=yes
2101 else
2102   echo "$as_me: failed program was:" >&5
2103 sed 's/^/| /' conftest.$ac_ext >&5
2104
2105 ac_compiler_gnu=no
2106 fi
2107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2108 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2109
2110 fi
2111 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2112 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2113 GCC=`test $ac_compiler_gnu = yes && echo yes`
2114 ac_test_CFLAGS=${CFLAGS+set}
2115 ac_save_CFLAGS=$CFLAGS
2116 CFLAGS="-g"
2117 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2118 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2119 if test "${ac_cv_prog_cc_g+set}" = set; then
2120   echo $ECHO_N "(cached) $ECHO_C" >&6
2121 else
2122   cat >conftest.$ac_ext <<_ACEOF
2123 /* confdefs.h.  */
2124 _ACEOF
2125 cat confdefs.h >>conftest.$ac_ext
2126 cat >>conftest.$ac_ext <<_ACEOF
2127 /* end confdefs.h.  */
2128
2129 int
2130 main ()
2131 {
2132
2133   ;
2134   return 0;
2135 }
2136 _ACEOF
2137 rm -f conftest.$ac_objext
2138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2139   (eval $ac_compile) 2>conftest.er1
2140   ac_status=$?
2141   grep -v '^ *+' conftest.er1 >conftest.err
2142   rm -f conftest.er1
2143   cat conftest.err >&5
2144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145   (exit $ac_status); } &&
2146          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2148   (eval $ac_try) 2>&5
2149   ac_status=$?
2150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151   (exit $ac_status); }; } &&
2152          { ac_try='test -s conftest.$ac_objext'
2153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2154   (eval $ac_try) 2>&5
2155   ac_status=$?
2156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157   (exit $ac_status); }; }; then
2158   ac_cv_prog_cc_g=yes
2159 else
2160   echo "$as_me: failed program was:" >&5
2161 sed 's/^/| /' conftest.$ac_ext >&5
2162
2163 ac_cv_prog_cc_g=no
2164 fi
2165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2166 fi
2167 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2168 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2169 if test "$ac_test_CFLAGS" = set; then
2170   CFLAGS=$ac_save_CFLAGS
2171 elif test $ac_cv_prog_cc_g = yes; then
2172   if test "$GCC" = yes; then
2173     CFLAGS="-g -O2"
2174   else
2175     CFLAGS="-g"
2176   fi
2177 else
2178   if test "$GCC" = yes; then
2179     CFLAGS="-O2"
2180   else
2181     CFLAGS=
2182   fi
2183 fi
2184 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2185 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2186 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2187   echo $ECHO_N "(cached) $ECHO_C" >&6
2188 else
2189   ac_cv_prog_cc_stdc=no
2190 ac_save_CC=$CC
2191 cat >conftest.$ac_ext <<_ACEOF
2192 /* confdefs.h.  */
2193 _ACEOF
2194 cat confdefs.h >>conftest.$ac_ext
2195 cat >>conftest.$ac_ext <<_ACEOF
2196 /* end confdefs.h.  */
2197 #include <stdarg.h>
2198 #include <stdio.h>
2199 #include <sys/types.h>
2200 #include <sys/stat.h>
2201 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2202 struct buf { int x; };
2203 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2204 static char *e (p, i)
2205      char **p;
2206      int i;
2207 {
2208   return p[i];
2209 }
2210 static char *f (char * (*g) (char **, int), char **p, ...)
2211 {
2212   char *s;
2213   va_list v;
2214   va_start (v,p);
2215   s = g (p, va_arg (v,int));
2216   va_end (v);
2217   return s;
2218 }
2219
2220 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2221    function prototypes and stuff, but not '\xHH' hex character constants.
2222    These don't provoke an error unfortunately, instead are silently treated
2223    as 'x'.  The following induces an error, until -std1 is added to get
2224    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2225    array size at least.  It's necessary to write '\x00'==0 to get something
2226    that's true only with -std1.  */
2227 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2228
2229 int test (int i, double x);
2230 struct s1 {int (*f) (int a);};
2231 struct s2 {int (*f) (double a);};
2232 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2233 int argc;
2234 char **argv;
2235 int
2236 main ()
2237 {
2238 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2239   ;
2240   return 0;
2241 }
2242 _ACEOF
2243 # Don't try gcc -ansi; that turns off useful extensions and
2244 # breaks some systems' header files.
2245 # AIX                   -qlanglvl=ansi
2246 # Ultrix and OSF/1      -std1
2247 # HP-UX 10.20 and later -Ae
2248 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2249 # SVR4                  -Xc -D__EXTENSIONS__
2250 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2251 do
2252   CC="$ac_save_CC $ac_arg"
2253   rm -f conftest.$ac_objext
2254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2255   (eval $ac_compile) 2>conftest.er1
2256   ac_status=$?
2257   grep -v '^ *+' conftest.er1 >conftest.err
2258   rm -f conftest.er1
2259   cat conftest.err >&5
2260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261   (exit $ac_status); } &&
2262          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2264   (eval $ac_try) 2>&5
2265   ac_status=$?
2266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267   (exit $ac_status); }; } &&
2268          { ac_try='test -s conftest.$ac_objext'
2269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2270   (eval $ac_try) 2>&5
2271   ac_status=$?
2272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273   (exit $ac_status); }; }; then
2274   ac_cv_prog_cc_stdc=$ac_arg
2275 break
2276 else
2277   echo "$as_me: failed program was:" >&5
2278 sed 's/^/| /' conftest.$ac_ext >&5
2279
2280 fi
2281 rm -f conftest.err conftest.$ac_objext
2282 done
2283 rm -f conftest.$ac_ext conftest.$ac_objext
2284 CC=$ac_save_CC
2285
2286 fi
2287
2288 case "x$ac_cv_prog_cc_stdc" in
2289   x|xno)
2290     echo "$as_me:$LINENO: result: none needed" >&5
2291 echo "${ECHO_T}none needed" >&6 ;;
2292   *)
2293     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2294 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2295     CC="$CC $ac_cv_prog_cc_stdc" ;;
2296 esac
2297
2298 # Some people use a C++ compiler to compile C.  Since we use `exit',
2299 # in C++ we need to declare it.  In case someone uses the same compiler
2300 # for both compiling C and C++ we need to have the C++ compiler decide
2301 # the declaration of exit, since it's the most demanding environment.
2302 cat >conftest.$ac_ext <<_ACEOF
2303 #ifndef __cplusplus
2304   choke me
2305 #endif
2306 _ACEOF
2307 rm -f conftest.$ac_objext
2308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2309   (eval $ac_compile) 2>conftest.er1
2310   ac_status=$?
2311   grep -v '^ *+' conftest.er1 >conftest.err
2312   rm -f conftest.er1
2313   cat conftest.err >&5
2314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315   (exit $ac_status); } &&
2316          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2318   (eval $ac_try) 2>&5
2319   ac_status=$?
2320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321   (exit $ac_status); }; } &&
2322          { ac_try='test -s conftest.$ac_objext'
2323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2324   (eval $ac_try) 2>&5
2325   ac_status=$?
2326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327   (exit $ac_status); }; }; then
2328   for ac_declaration in \
2329    '' \
2330    'extern "C" void std::exit (int) throw (); using std::exit;' \
2331    'extern "C" void std::exit (int); using std::exit;' \
2332    'extern "C" void exit (int) throw ();' \
2333    'extern "C" void exit (int);' \
2334    'void exit (int);'
2335 do
2336   cat >conftest.$ac_ext <<_ACEOF
2337 /* confdefs.h.  */
2338 _ACEOF
2339 cat confdefs.h >>conftest.$ac_ext
2340 cat >>conftest.$ac_ext <<_ACEOF
2341 /* end confdefs.h.  */
2342 $ac_declaration
2343 #include <stdlib.h>
2344 int
2345 main ()
2346 {
2347 exit (42);
2348   ;
2349   return 0;
2350 }
2351 _ACEOF
2352 rm -f conftest.$ac_objext
2353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2354   (eval $ac_compile) 2>conftest.er1
2355   ac_status=$?
2356   grep -v '^ *+' conftest.er1 >conftest.err
2357   rm -f conftest.er1
2358   cat conftest.err >&5
2359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360   (exit $ac_status); } &&
2361          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2363   (eval $ac_try) 2>&5
2364   ac_status=$?
2365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366   (exit $ac_status); }; } &&
2367          { ac_try='test -s conftest.$ac_objext'
2368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2369   (eval $ac_try) 2>&5
2370   ac_status=$?
2371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372   (exit $ac_status); }; }; then
2373   :
2374 else
2375   echo "$as_me: failed program was:" >&5
2376 sed 's/^/| /' conftest.$ac_ext >&5
2377
2378 continue
2379 fi
2380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2381   cat >conftest.$ac_ext <<_ACEOF
2382 /* confdefs.h.  */
2383 _ACEOF
2384 cat confdefs.h >>conftest.$ac_ext
2385 cat >>conftest.$ac_ext <<_ACEOF
2386 /* end confdefs.h.  */
2387 $ac_declaration
2388 int
2389 main ()
2390 {
2391 exit (42);
2392   ;
2393   return 0;
2394 }
2395 _ACEOF
2396 rm -f conftest.$ac_objext
2397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2398   (eval $ac_compile) 2>conftest.er1
2399   ac_status=$?
2400   grep -v '^ *+' conftest.er1 >conftest.err
2401   rm -f conftest.er1
2402   cat conftest.err >&5
2403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404   (exit $ac_status); } &&
2405          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407   (eval $ac_try) 2>&5
2408   ac_status=$?
2409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410   (exit $ac_status); }; } &&
2411          { ac_try='test -s conftest.$ac_objext'
2412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2413   (eval $ac_try) 2>&5
2414   ac_status=$?
2415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416   (exit $ac_status); }; }; then
2417   break
2418 else
2419   echo "$as_me: failed program was:" >&5
2420 sed 's/^/| /' conftest.$ac_ext >&5
2421
2422 fi
2423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2424 done
2425 rm -f conftest*
2426 if test -n "$ac_declaration"; then
2427   echo '#ifdef __cplusplus' >>confdefs.h
2428   echo $ac_declaration      >>confdefs.h
2429   echo '#endif'             >>confdefs.h
2430 fi
2431
2432 else
2433   echo "$as_me: failed program was:" >&5
2434 sed 's/^/| /' conftest.$ac_ext >&5
2435
2436 fi
2437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2438 ac_ext=c
2439 ac_cpp='$CPP $CPPFLAGS'
2440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2443
2444 ac_ext=cc
2445 ac_cpp='$CXXCPP $CPPFLAGS'
2446 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2447 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2448 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2449 if test -n "$ac_tool_prefix"; then
2450   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2451   do
2452     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2453 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2454 echo "$as_me:$LINENO: checking for $ac_word" >&5
2455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2456 if test "${ac_cv_prog_CXX+set}" = set; then
2457   echo $ECHO_N "(cached) $ECHO_C" >&6
2458 else
2459   if test -n "$CXX"; then
2460   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2461 else
2462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2463 for as_dir in $PATH
2464 do
2465   IFS=$as_save_IFS
2466   test -z "$as_dir" && as_dir=.
2467   for ac_exec_ext in '' $ac_executable_extensions; do
2468   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2469     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2470     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2471     break 2
2472   fi
2473 done
2474 done
2475
2476 fi
2477 fi
2478 CXX=$ac_cv_prog_CXX
2479 if test -n "$CXX"; then
2480   echo "$as_me:$LINENO: result: $CXX" >&5
2481 echo "${ECHO_T}$CXX" >&6
2482 else
2483   echo "$as_me:$LINENO: result: no" >&5
2484 echo "${ECHO_T}no" >&6
2485 fi
2486
2487     test -n "$CXX" && break
2488   done
2489 fi
2490 if test -z "$CXX"; then
2491   ac_ct_CXX=$CXX
2492   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2493 do
2494   # Extract the first word of "$ac_prog", so it can be a program name with args.
2495 set dummy $ac_prog; ac_word=$2
2496 echo "$as_me:$LINENO: checking for $ac_word" >&5
2497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2498 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2499   echo $ECHO_N "(cached) $ECHO_C" >&6
2500 else
2501   if test -n "$ac_ct_CXX"; then
2502   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2503 else
2504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505 for as_dir in $PATH
2506 do
2507   IFS=$as_save_IFS
2508   test -z "$as_dir" && as_dir=.
2509   for ac_exec_ext in '' $ac_executable_extensions; do
2510   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2511     ac_cv_prog_ac_ct_CXX="$ac_prog"
2512     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2513     break 2
2514   fi
2515 done
2516 done
2517
2518 fi
2519 fi
2520 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2521 if test -n "$ac_ct_CXX"; then
2522   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2523 echo "${ECHO_T}$ac_ct_CXX" >&6
2524 else
2525   echo "$as_me:$LINENO: result: no" >&5
2526 echo "${ECHO_T}no" >&6
2527 fi
2528
2529   test -n "$ac_ct_CXX" && break
2530 done
2531 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2532
2533   CXX=$ac_ct_CXX
2534 fi
2535
2536
2537 # Provide some information about the compiler.
2538 echo "$as_me:$LINENO:" \
2539      "checking for C++ compiler version" >&5
2540 ac_compiler=`set X $ac_compile; echo $2`
2541 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2542   (eval $ac_compiler --version </dev/null >&5) 2>&5
2543   ac_status=$?
2544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545   (exit $ac_status); }
2546 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2547   (eval $ac_compiler -v </dev/null >&5) 2>&5
2548   ac_status=$?
2549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550   (exit $ac_status); }
2551 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2552   (eval $ac_compiler -V </dev/null >&5) 2>&5
2553   ac_status=$?
2554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555   (exit $ac_status); }
2556
2557 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2558 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2559 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2560   echo $ECHO_N "(cached) $ECHO_C" >&6
2561 else
2562   cat >conftest.$ac_ext <<_ACEOF
2563 /* confdefs.h.  */
2564 _ACEOF
2565 cat confdefs.h >>conftest.$ac_ext
2566 cat >>conftest.$ac_ext <<_ACEOF
2567 /* end confdefs.h.  */
2568
2569 int
2570 main ()
2571 {
2572 #ifndef __GNUC__
2573        choke me
2574 #endif
2575
2576   ;
2577   return 0;
2578 }
2579 _ACEOF
2580 rm -f conftest.$ac_objext
2581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2582   (eval $ac_compile) 2>conftest.er1
2583   ac_status=$?
2584   grep -v '^ *+' conftest.er1 >conftest.err
2585   rm -f conftest.er1
2586   cat conftest.err >&5
2587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588   (exit $ac_status); } &&
2589          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
2590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2591   (eval $ac_try) 2>&5
2592   ac_status=$?
2593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594   (exit $ac_status); }; } &&
2595          { ac_try='test -s conftest.$ac_objext'
2596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2597   (eval $ac_try) 2>&5
2598   ac_status=$?
2599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600   (exit $ac_status); }; }; then
2601   ac_compiler_gnu=yes
2602 else
2603   echo "$as_me: failed program was:" >&5
2604 sed 's/^/| /' conftest.$ac_ext >&5
2605
2606 ac_compiler_gnu=no
2607 fi
2608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2609 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2610
2611 fi
2612 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2613 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2614 GXX=`test $ac_compiler_gnu = yes && echo yes`
2615 ac_test_CXXFLAGS=${CXXFLAGS+set}
2616 ac_save_CXXFLAGS=$CXXFLAGS
2617 CXXFLAGS="-g"
2618 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2619 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2620 if test "${ac_cv_prog_cxx_g+set}" = set; then
2621   echo $ECHO_N "(cached) $ECHO_C" >&6
2622 else
2623   cat >conftest.$ac_ext <<_ACEOF
2624 /* confdefs.h.  */
2625 _ACEOF
2626 cat confdefs.h >>conftest.$ac_ext
2627 cat >>conftest.$ac_ext <<_ACEOF
2628 /* end confdefs.h.  */
2629
2630 int
2631 main ()
2632 {
2633
2634   ;
2635   return 0;
2636 }
2637 _ACEOF
2638 rm -f conftest.$ac_objext
2639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2640   (eval $ac_compile) 2>conftest.er1
2641   ac_status=$?
2642   grep -v '^ *+' conftest.er1 >conftest.err
2643   rm -f conftest.er1
2644   cat conftest.err >&5
2645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646   (exit $ac_status); } &&
2647          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
2648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2649   (eval $ac_try) 2>&5
2650   ac_status=$?
2651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652   (exit $ac_status); }; } &&
2653          { ac_try='test -s conftest.$ac_objext'
2654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2655   (eval $ac_try) 2>&5
2656   ac_status=$?
2657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658   (exit $ac_status); }; }; then
2659   ac_cv_prog_cxx_g=yes
2660 else
2661   echo "$as_me: failed program was:" >&5
2662 sed 's/^/| /' conftest.$ac_ext >&5
2663
2664 ac_cv_prog_cxx_g=no
2665 fi
2666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2667 fi
2668 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2669 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2670 if test "$ac_test_CXXFLAGS" = set; then
2671   CXXFLAGS=$ac_save_CXXFLAGS
2672 elif test $ac_cv_prog_cxx_g = yes; then
2673   if test "$GXX" = yes; then
2674     CXXFLAGS="-g -O2"
2675   else
2676     CXXFLAGS="-g"
2677   fi
2678 else
2679   if test "$GXX" = yes; then
2680     CXXFLAGS="-O2"
2681   else
2682     CXXFLAGS=
2683   fi
2684 fi
2685 for ac_declaration in \
2686    '' \
2687    'extern "C" void std::exit (int) throw (); using std::exit;' \
2688    'extern "C" void std::exit (int); using std::exit;' \
2689    'extern "C" void exit (int) throw ();' \
2690    'extern "C" void exit (int);' \
2691    'void exit (int);'
2692 do
2693   cat >conftest.$ac_ext <<_ACEOF
2694 /* confdefs.h.  */
2695 _ACEOF
2696 cat confdefs.h >>conftest.$ac_ext
2697 cat >>conftest.$ac_ext <<_ACEOF
2698 /* end confdefs.h.  */
2699 $ac_declaration
2700 #include <stdlib.h>
2701 int
2702 main ()
2703 {
2704 exit (42);
2705   ;
2706   return 0;
2707 }
2708 _ACEOF
2709 rm -f conftest.$ac_objext
2710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2711   (eval $ac_compile) 2>conftest.er1
2712   ac_status=$?
2713   grep -v '^ *+' conftest.er1 >conftest.err
2714   rm -f conftest.er1
2715   cat conftest.err >&5
2716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717   (exit $ac_status); } &&
2718          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
2719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2720   (eval $ac_try) 2>&5
2721   ac_status=$?
2722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723   (exit $ac_status); }; } &&
2724          { ac_try='test -s conftest.$ac_objext'
2725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2726   (eval $ac_try) 2>&5
2727   ac_status=$?
2728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729   (exit $ac_status); }; }; then
2730   :
2731 else
2732   echo "$as_me: failed program was:" >&5
2733 sed 's/^/| /' conftest.$ac_ext >&5
2734
2735 continue
2736 fi
2737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2738   cat >conftest.$ac_ext <<_ACEOF
2739 /* confdefs.h.  */
2740 _ACEOF
2741 cat confdefs.h >>conftest.$ac_ext
2742 cat >>conftest.$ac_ext <<_ACEOF
2743 /* end confdefs.h.  */
2744 $ac_declaration
2745 int
2746 main ()
2747 {
2748 exit (42);
2749   ;
2750   return 0;
2751 }
2752 _ACEOF
2753 rm -f conftest.$ac_objext
2754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2755   (eval $ac_compile) 2>conftest.er1
2756   ac_status=$?
2757   grep -v '^ *+' conftest.er1 >conftest.err
2758   rm -f conftest.er1
2759   cat conftest.err >&5
2760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761   (exit $ac_status); } &&
2762          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
2763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2764   (eval $ac_try) 2>&5
2765   ac_status=$?
2766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767   (exit $ac_status); }; } &&
2768          { ac_try='test -s conftest.$ac_objext'
2769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2770   (eval $ac_try) 2>&5
2771   ac_status=$?
2772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773   (exit $ac_status); }; }; then
2774   break
2775 else
2776   echo "$as_me: failed program was:" >&5
2777 sed 's/^/| /' conftest.$ac_ext >&5
2778
2779 fi
2780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2781 done
2782 rm -f conftest*
2783 if test -n "$ac_declaration"; then
2784   echo '#ifdef __cplusplus' >>confdefs.h
2785   echo $ac_declaration      >>confdefs.h
2786   echo '#endif'             >>confdefs.h
2787 fi
2788
2789 ac_ext=c
2790 ac_cpp='$CPP $CPPFLAGS'
2791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2794
2795
2796
2797 ac_ext=c
2798 ac_cpp='$CPP $CPPFLAGS'
2799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2802 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2803 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2804 # On Suns, sometimes $CPP names a directory.
2805 if test -n "$CPP" && test -d "$CPP"; then
2806   CPP=
2807 fi
2808 if test -z "$CPP"; then
2809   if test "${ac_cv_prog_CPP+set}" = set; then
2810   echo $ECHO_N "(cached) $ECHO_C" >&6
2811 else
2812       # Double quotes because CPP needs to be expanded
2813     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2814     do
2815       ac_preproc_ok=false
2816 for ac_c_preproc_warn_flag in '' yes
2817 do
2818   # Use a header file that comes with gcc, so configuring glibc
2819   # with a fresh cross-compiler works.
2820   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2821   # <limits.h> exists even on freestanding compilers.
2822   # On the NeXT, cc -E runs the code through the compiler's parser,
2823   # not just through cpp. "Syntax error" is here to catch this case.
2824   cat >conftest.$ac_ext <<_ACEOF
2825 /* confdefs.h.  */
2826 _ACEOF
2827 cat confdefs.h >>conftest.$ac_ext
2828 cat >>conftest.$ac_ext <<_ACEOF
2829 /* end confdefs.h.  */
2830 #ifdef __STDC__
2831 # include <limits.h>
2832 #else
2833 # include <assert.h>
2834 #endif
2835                      Syntax error
2836 _ACEOF
2837 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2838   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2839   ac_status=$?
2840   grep -v '^ *+' conftest.er1 >conftest.err
2841   rm -f conftest.er1
2842   cat conftest.err >&5
2843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844   (exit $ac_status); } >/dev/null; then
2845   if test -s conftest.err; then
2846     ac_cpp_err=$ac_c_preproc_warn_flag
2847     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2848   else
2849     ac_cpp_err=
2850   fi
2851 else
2852   ac_cpp_err=yes
2853 fi
2854 if test -z "$ac_cpp_err"; then
2855   :
2856 else
2857   echo "$as_me: failed program was:" >&5
2858 sed 's/^/| /' conftest.$ac_ext >&5
2859
2860   # Broken: fails on valid input.
2861 continue
2862 fi
2863 rm -f conftest.err conftest.$ac_ext
2864
2865   # OK, works on sane cases.  Now check whether non-existent headers
2866   # can be detected and how.
2867   cat >conftest.$ac_ext <<_ACEOF
2868 /* confdefs.h.  */
2869 _ACEOF
2870 cat confdefs.h >>conftest.$ac_ext
2871 cat >>conftest.$ac_ext <<_ACEOF
2872 /* end confdefs.h.  */
2873 #include <ac_nonexistent.h>
2874 _ACEOF
2875 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2876   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2877   ac_status=$?
2878   grep -v '^ *+' conftest.er1 >conftest.err
2879   rm -f conftest.er1
2880   cat conftest.err >&5
2881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882   (exit $ac_status); } >/dev/null; then
2883   if test -s conftest.err; then
2884     ac_cpp_err=$ac_c_preproc_warn_flag
2885     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2886   else
2887     ac_cpp_err=
2888   fi
2889 else
2890   ac_cpp_err=yes
2891 fi
2892 if test -z "$ac_cpp_err"; then
2893   # Broken: success on invalid input.
2894 continue
2895 else
2896   echo "$as_me: failed program was:" >&5
2897 sed 's/^/| /' conftest.$ac_ext >&5
2898
2899   # Passes both tests.
2900 ac_preproc_ok=:
2901 break
2902 fi
2903 rm -f conftest.err conftest.$ac_ext
2904
2905 done
2906 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2907 rm -f conftest.err conftest.$ac_ext
2908 if $ac_preproc_ok; then
2909   break
2910 fi
2911
2912     done
2913     ac_cv_prog_CPP=$CPP
2914
2915 fi
2916   CPP=$ac_cv_prog_CPP
2917 else
2918   ac_cv_prog_CPP=$CPP
2919 fi
2920 echo "$as_me:$LINENO: result: $CPP" >&5
2921 echo "${ECHO_T}$CPP" >&6
2922 ac_preproc_ok=false
2923 for ac_c_preproc_warn_flag in '' yes
2924 do
2925   # Use a header file that comes with gcc, so configuring glibc
2926   # with a fresh cross-compiler works.
2927   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2928   # <limits.h> exists even on freestanding compilers.
2929   # On the NeXT, cc -E runs the code through the compiler's parser,
2930   # not just through cpp. "Syntax error" is here to catch this case.
2931   cat >conftest.$ac_ext <<_ACEOF
2932 /* confdefs.h.  */
2933 _ACEOF
2934 cat confdefs.h >>conftest.$ac_ext
2935 cat >>conftest.$ac_ext <<_ACEOF
2936 /* end confdefs.h.  */
2937 #ifdef __STDC__
2938 # include <limits.h>
2939 #else
2940 # include <assert.h>
2941 #endif
2942                      Syntax error
2943 _ACEOF
2944 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2945   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2946   ac_status=$?
2947   grep -v '^ *+' conftest.er1 >conftest.err
2948   rm -f conftest.er1
2949   cat conftest.err >&5
2950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951   (exit $ac_status); } >/dev/null; then
2952   if test -s conftest.err; then
2953     ac_cpp_err=$ac_c_preproc_warn_flag
2954     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2955   else
2956     ac_cpp_err=
2957   fi
2958 else
2959   ac_cpp_err=yes
2960 fi
2961 if test -z "$ac_cpp_err"; then
2962   :
2963 else
2964   echo "$as_me: failed program was:" >&5
2965 sed 's/^/| /' conftest.$ac_ext >&5
2966
2967   # Broken: fails on valid input.
2968 continue
2969 fi
2970 rm -f conftest.err conftest.$ac_ext
2971
2972   # OK, works on sane cases.  Now check whether non-existent headers
2973   # can be detected and how.
2974   cat >conftest.$ac_ext <<_ACEOF
2975 /* confdefs.h.  */
2976 _ACEOF
2977 cat confdefs.h >>conftest.$ac_ext
2978 cat >>conftest.$ac_ext <<_ACEOF
2979 /* end confdefs.h.  */
2980 #include <ac_nonexistent.h>
2981 _ACEOF
2982 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2983   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2984   ac_status=$?
2985   grep -v '^ *+' conftest.er1 >conftest.err
2986   rm -f conftest.er1
2987   cat conftest.err >&5
2988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989   (exit $ac_status); } >/dev/null; then
2990   if test -s conftest.err; then
2991     ac_cpp_err=$ac_c_preproc_warn_flag
2992     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2993   else
2994     ac_cpp_err=
2995   fi
2996 else
2997   ac_cpp_err=yes
2998 fi
2999 if test -z "$ac_cpp_err"; then
3000   # Broken: success on invalid input.
3001 continue
3002 else
3003   echo "$as_me: failed program was:" >&5
3004 sed 's/^/| /' conftest.$ac_ext >&5
3005
3006   # Passes both tests.
3007 ac_preproc_ok=:
3008 break
3009 fi
3010 rm -f conftest.err conftest.$ac_ext
3011
3012 done
3013 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3014 rm -f conftest.err conftest.$ac_ext
3015 if $ac_preproc_ok; then
3016   :
3017 else
3018   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3019 See \`config.log' for more details." >&5
3020 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3021 See \`config.log' for more details." >&2;}
3022    { (exit 1); exit 1; }; }
3023 fi
3024
3025 ac_ext=c
3026 ac_cpp='$CPP $CPPFLAGS'
3027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3030
3031
3032 echo "$as_me:$LINENO: checking for egrep" >&5
3033 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3034 if test "${ac_cv_prog_egrep+set}" = set; then
3035   echo $ECHO_N "(cached) $ECHO_C" >&6
3036 else
3037   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3038     then ac_cv_prog_egrep='grep -E'
3039     else ac_cv_prog_egrep='egrep'
3040     fi
3041 fi
3042 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3043 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3044  EGREP=$ac_cv_prog_egrep
3045
3046
3047
3048 echo "$as_me:$LINENO: checking for AIX" >&5
3049 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3050 cat >conftest.$ac_ext <<_ACEOF
3051 /* confdefs.h.  */
3052 _ACEOF
3053 cat confdefs.h >>conftest.$ac_ext
3054 cat >>conftest.$ac_ext <<_ACEOF
3055 /* end confdefs.h.  */
3056 #ifdef _AIX
3057   yes
3058 #endif
3059
3060 _ACEOF
3061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3062   $EGREP "yes" >/dev/null 2>&1; then
3063   echo "$as_me:$LINENO: result: yes" >&5
3064 echo "${ECHO_T}yes" >&6
3065 cat >>confdefs.h <<\_ACEOF
3066 #define _ALL_SOURCE 1
3067 _ACEOF
3068
3069 else
3070   echo "$as_me:$LINENO: result: no" >&5
3071 echo "${ECHO_T}no" >&6
3072 fi
3073 rm -f conftest*
3074
3075
3076
3077 if test $ac_cv_c_compiler_gnu = yes; then
3078     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3079 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3080 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3081   echo $ECHO_N "(cached) $ECHO_C" >&6
3082 else
3083     ac_pattern="Autoconf.*'x'"
3084   cat >conftest.$ac_ext <<_ACEOF
3085 /* confdefs.h.  */
3086 _ACEOF
3087 cat confdefs.h >>conftest.$ac_ext
3088 cat >>conftest.$ac_ext <<_ACEOF
3089 /* end confdefs.h.  */
3090 #include <sgtty.h>
3091 Autoconf TIOCGETP
3092 _ACEOF
3093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3094   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3095   ac_cv_prog_gcc_traditional=yes
3096 else
3097   ac_cv_prog_gcc_traditional=no
3098 fi
3099 rm -f conftest*
3100
3101
3102   if test $ac_cv_prog_gcc_traditional = no; then
3103     cat >conftest.$ac_ext <<_ACEOF
3104 /* confdefs.h.  */
3105 _ACEOF
3106 cat confdefs.h >>conftest.$ac_ext
3107 cat >>conftest.$ac_ext <<_ACEOF
3108 /* end confdefs.h.  */
3109 #include <termio.h>
3110 Autoconf TCGETA
3111 _ACEOF
3112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3113   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3114   ac_cv_prog_gcc_traditional=yes
3115 fi
3116 rm -f conftest*
3117
3118   fi
3119 fi
3120 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3121 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3122   if test $ac_cv_prog_gcc_traditional = yes; then
3123     CC="$CC -traditional"
3124   fi
3125 fi
3126
3127 echo "$as_me:$LINENO: checking whether we are using SUNPro C" >&5
3128 echo $ECHO_N "checking whether we are using SUNPro C... $ECHO_C" >&6
3129 if test "${ac_cv_prog_suncc+set}" = set; then
3130   echo $ECHO_N "(cached) $ECHO_C" >&6
3131 else
3132   cat > conftest.c <<EOF
3133 #ifdef __SUNPRO_C
3134   yes;
3135 #endif
3136 EOF
3137 if { ac_try='${CC-cc} -E conftest.c'
3138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3139   (eval $ac_try) 2>&5
3140   ac_status=$?
3141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142   (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3143   ac_cv_prog_suncc=yes
3144 else
3145   ac_cv_prog_suncc=no
3146 fi
3147 fi
3148 echo "$as_me:$LINENO: result: $ac_cv_prog_suncc" >&5
3149 echo "${ECHO_T}$ac_cv_prog_suncc" >&6
3150 if test -n "$ac_tool_prefix"; then
3151   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3152 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3153 echo "$as_me:$LINENO: checking for $ac_word" >&5
3154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3155 if test "${ac_cv_prog_RANLIB+set}" = set; then
3156   echo $ECHO_N "(cached) $ECHO_C" >&6
3157 else
3158   if test -n "$RANLIB"; then
3159   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3160 else
3161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3162 for as_dir in $PATH
3163 do
3164   IFS=$as_save_IFS
3165   test -z "$as_dir" && as_dir=.
3166   for ac_exec_ext in '' $ac_executable_extensions; do
3167   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3168     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3169     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3170     break 2
3171   fi
3172 done
3173 done
3174
3175 fi
3176 fi
3177 RANLIB=$ac_cv_prog_RANLIB
3178 if test -n "$RANLIB"; then
3179   echo "$as_me:$LINENO: result: $RANLIB" >&5
3180 echo "${ECHO_T}$RANLIB" >&6
3181 else
3182   echo "$as_me:$LINENO: result: no" >&5
3183 echo "${ECHO_T}no" >&6
3184 fi
3185
3186 fi
3187 if test -z "$ac_cv_prog_RANLIB"; then
3188   ac_ct_RANLIB=$RANLIB
3189   # Extract the first word of "ranlib", so it can be a program name with args.
3190 set dummy ranlib; ac_word=$2
3191 echo "$as_me:$LINENO: checking for $ac_word" >&5
3192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3193 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3194   echo $ECHO_N "(cached) $ECHO_C" >&6
3195 else
3196   if test -n "$ac_ct_RANLIB"; then
3197   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3198 else
3199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200 for as_dir in $PATH
3201 do
3202   IFS=$as_save_IFS
3203   test -z "$as_dir" && as_dir=.
3204   for ac_exec_ext in '' $ac_executable_extensions; do
3205   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3206     ac_cv_prog_ac_ct_RANLIB="ranlib"
3207     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3208     break 2
3209   fi
3210 done
3211 done
3212
3213   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3214 fi
3215 fi
3216 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3217 if test -n "$ac_ct_RANLIB"; then
3218   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3219 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3220 else
3221   echo "$as_me:$LINENO: result: no" >&5
3222 echo "${ECHO_T}no" >&6
3223 fi
3224
3225   RANLIB=$ac_ct_RANLIB
3226 else
3227   RANLIB="$ac_cv_prog_RANLIB"
3228 fi
3229
3230
3231 # Check whether --enable-largefile or --disable-largefile was given.
3232 if test "${enable_largefile+set}" = set; then
3233   enableval="$enable_largefile"
3234
3235 fi;
3236 if test "$enable_largefile" != no; then
3237
3238   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3239 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3240 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3241   echo $ECHO_N "(cached) $ECHO_C" >&6
3242 else
3243   ac_cv_sys_largefile_CC=no
3244      if test "$GCC" != yes; then
3245        ac_save_CC=$CC
3246        while :; do
3247          # IRIX 6.2 and later do not support large files by default,
3248          # so use the C compiler's -n32 option if that helps.
3249          cat >conftest.$ac_ext <<_ACEOF
3250 /* confdefs.h.  */
3251 _ACEOF
3252 cat confdefs.h >>conftest.$ac_ext
3253 cat >>conftest.$ac_ext <<_ACEOF
3254 /* end confdefs.h.  */
3255 #include <sys/types.h>
3256  /* Check that off_t can represent 2**63 - 1 correctly.
3257     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3258     since some C++ compilers masquerading as C compilers
3259     incorrectly reject 9223372036854775807.  */
3260 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3261   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3262                        && LARGE_OFF_T % 2147483647 == 1)
3263                       ? 1 : -1];
3264 int
3265 main ()
3266 {
3267
3268   ;
3269   return 0;
3270 }
3271 _ACEOF
3272          rm -f conftest.$ac_objext
3273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3274   (eval $ac_compile) 2>conftest.er1
3275   ac_status=$?
3276   grep -v '^ *+' conftest.er1 >conftest.err
3277   rm -f conftest.er1
3278   cat conftest.err >&5
3279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280   (exit $ac_status); } &&
3281          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3283   (eval $ac_try) 2>&5
3284   ac_status=$?
3285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286   (exit $ac_status); }; } &&
3287          { ac_try='test -s conftest.$ac_objext'
3288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3289   (eval $ac_try) 2>&5
3290   ac_status=$?
3291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292   (exit $ac_status); }; }; then
3293   break
3294 else
3295   echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3297
3298 fi
3299 rm -f conftest.err conftest.$ac_objext
3300          CC="$CC -n32"
3301          rm -f conftest.$ac_objext
3302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3303   (eval $ac_compile) 2>conftest.er1
3304   ac_status=$?
3305   grep -v '^ *+' conftest.er1 >conftest.err
3306   rm -f conftest.er1
3307   cat conftest.err >&5
3308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309   (exit $ac_status); } &&
3310          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3312   (eval $ac_try) 2>&5
3313   ac_status=$?
3314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315   (exit $ac_status); }; } &&
3316          { ac_try='test -s conftest.$ac_objext'
3317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3318   (eval $ac_try) 2>&5
3319   ac_status=$?
3320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321   (exit $ac_status); }; }; then
3322   ac_cv_sys_largefile_CC=' -n32'; break
3323 else
3324   echo "$as_me: failed program was:" >&5
3325 sed 's/^/| /' conftest.$ac_ext >&5
3326
3327 fi
3328 rm -f conftest.err conftest.$ac_objext
3329          break
3330        done
3331        CC=$ac_save_CC
3332        rm -f conftest.$ac_ext
3333     fi
3334 fi
3335 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3336 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3337   if test "$ac_cv_sys_largefile_CC" != no; then
3338     CC=$CC$ac_cv_sys_largefile_CC
3339   fi
3340
3341   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3342 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3343 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3344   echo $ECHO_N "(cached) $ECHO_C" >&6
3345 else
3346   while :; do
3347   ac_cv_sys_file_offset_bits=no
3348   cat >conftest.$ac_ext <<_ACEOF
3349 /* confdefs.h.  */
3350 _ACEOF
3351 cat confdefs.h >>conftest.$ac_ext
3352 cat >>conftest.$ac_ext <<_ACEOF
3353 /* end confdefs.h.  */
3354 #include <sys/types.h>
3355  /* Check that off_t can represent 2**63 - 1 correctly.
3356     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3357     since some C++ compilers masquerading as C compilers
3358     incorrectly reject 9223372036854775807.  */
3359 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3360   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3361                        && LARGE_OFF_T % 2147483647 == 1)
3362                       ? 1 : -1];
3363 int
3364 main ()
3365 {
3366
3367   ;
3368   return 0;
3369 }
3370 _ACEOF
3371 rm -f conftest.$ac_objext
3372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3373   (eval $ac_compile) 2>conftest.er1
3374   ac_status=$?
3375   grep -v '^ *+' conftest.er1 >conftest.err
3376   rm -f conftest.er1
3377   cat conftest.err >&5
3378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379   (exit $ac_status); } &&
3380          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3382   (eval $ac_try) 2>&5
3383   ac_status=$?
3384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385   (exit $ac_status); }; } &&
3386          { ac_try='test -s conftest.$ac_objext'
3387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3388   (eval $ac_try) 2>&5
3389   ac_status=$?
3390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391   (exit $ac_status); }; }; then
3392   break
3393 else
3394   echo "$as_me: failed program was:" >&5
3395 sed 's/^/| /' conftest.$ac_ext >&5
3396
3397 fi
3398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3399   cat >conftest.$ac_ext <<_ACEOF
3400 /* confdefs.h.  */
3401 _ACEOF
3402 cat confdefs.h >>conftest.$ac_ext
3403 cat >>conftest.$ac_ext <<_ACEOF
3404 /* end confdefs.h.  */
3405 #define _FILE_OFFSET_BITS 64
3406 #include <sys/types.h>
3407  /* Check that off_t can represent 2**63 - 1 correctly.
3408     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3409     since some C++ compilers masquerading as C compilers
3410     incorrectly reject 9223372036854775807.  */
3411 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3412   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3413                        && LARGE_OFF_T % 2147483647 == 1)
3414                       ? 1 : -1];
3415 int
3416 main ()
3417 {
3418
3419   ;
3420   return 0;
3421 }
3422 _ACEOF
3423 rm -f conftest.$ac_objext
3424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3425   (eval $ac_compile) 2>conftest.er1
3426   ac_status=$?
3427   grep -v '^ *+' conftest.er1 >conftest.err
3428   rm -f conftest.er1
3429   cat conftest.err >&5
3430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431   (exit $ac_status); } &&
3432          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3434   (eval $ac_try) 2>&5
3435   ac_status=$?
3436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437   (exit $ac_status); }; } &&
3438          { ac_try='test -s conftest.$ac_objext'
3439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3440   (eval $ac_try) 2>&5
3441   ac_status=$?
3442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443   (exit $ac_status); }; }; then
3444   ac_cv_sys_file_offset_bits=64; break
3445 else
3446   echo "$as_me: failed program was:" >&5
3447 sed 's/^/| /' conftest.$ac_ext >&5
3448
3449 fi
3450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3451   break
3452 done
3453 fi
3454 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3455 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3456 if test "$ac_cv_sys_file_offset_bits" != no; then
3457
3458 cat >>confdefs.h <<_ACEOF
3459 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3460 _ACEOF
3461
3462 fi
3463 rm -f conftest*
3464   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3465 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3466 if test "${ac_cv_sys_large_files+set}" = set; then
3467   echo $ECHO_N "(cached) $ECHO_C" >&6
3468 else
3469   while :; do
3470   ac_cv_sys_large_files=no
3471   cat >conftest.$ac_ext <<_ACEOF
3472 /* confdefs.h.  */
3473 _ACEOF
3474 cat confdefs.h >>conftest.$ac_ext
3475 cat >>conftest.$ac_ext <<_ACEOF
3476 /* end confdefs.h.  */
3477 #include <sys/types.h>
3478  /* Check that off_t can represent 2**63 - 1 correctly.
3479     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3480     since some C++ compilers masquerading as C compilers
3481     incorrectly reject 9223372036854775807.  */
3482 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3483   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3484                        && LARGE_OFF_T % 2147483647 == 1)
3485                       ? 1 : -1];
3486 int
3487 main ()
3488 {
3489
3490   ;
3491   return 0;
3492 }
3493 _ACEOF
3494 rm -f conftest.$ac_objext
3495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3496   (eval $ac_compile) 2>conftest.er1
3497   ac_status=$?
3498   grep -v '^ *+' conftest.er1 >conftest.err
3499   rm -f conftest.er1
3500   cat conftest.err >&5
3501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502   (exit $ac_status); } &&
3503          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3505   (eval $ac_try) 2>&5
3506   ac_status=$?
3507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508   (exit $ac_status); }; } &&
3509          { ac_try='test -s conftest.$ac_objext'
3510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3511   (eval $ac_try) 2>&5
3512   ac_status=$?
3513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514   (exit $ac_status); }; }; then
3515   break
3516 else
3517   echo "$as_me: failed program was:" >&5
3518 sed 's/^/| /' conftest.$ac_ext >&5
3519
3520 fi
3521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3522   cat >conftest.$ac_ext <<_ACEOF
3523 /* confdefs.h.  */
3524 _ACEOF
3525 cat confdefs.h >>conftest.$ac_ext
3526 cat >>conftest.$ac_ext <<_ACEOF
3527 /* end confdefs.h.  */
3528 #define _LARGE_FILES 1
3529 #include <sys/types.h>
3530  /* Check that off_t can represent 2**63 - 1 correctly.
3531     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3532     since some C++ compilers masquerading as C compilers
3533     incorrectly reject 9223372036854775807.  */
3534 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3535   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3536                        && LARGE_OFF_T % 2147483647 == 1)
3537                       ? 1 : -1];
3538 int
3539 main ()
3540 {
3541
3542   ;
3543   return 0;
3544 }
3545 _ACEOF
3546 rm -f conftest.$ac_objext
3547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3548   (eval $ac_compile) 2>conftest.er1
3549   ac_status=$?
3550   grep -v '^ *+' conftest.er1 >conftest.err
3551   rm -f conftest.er1
3552   cat conftest.err >&5
3553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554   (exit $ac_status); } &&
3555          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3557   (eval $ac_try) 2>&5
3558   ac_status=$?
3559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560   (exit $ac_status); }; } &&
3561          { ac_try='test -s conftest.$ac_objext'
3562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3563   (eval $ac_try) 2>&5
3564   ac_status=$?
3565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566   (exit $ac_status); }; }; then
3567   ac_cv_sys_large_files=1; break
3568 else
3569   echo "$as_me: failed program was:" >&5
3570 sed 's/^/| /' conftest.$ac_ext >&5
3571
3572 fi
3573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3574   break
3575 done
3576 fi
3577 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3578 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3579 if test "$ac_cv_sys_large_files" != no; then
3580
3581 cat >>confdefs.h <<_ACEOF
3582 #define _LARGE_FILES $ac_cv_sys_large_files
3583 _ACEOF
3584
3585 fi
3586 rm -f conftest*
3587 fi
3588
3589
3590 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3591 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3592 if test "${ac_cv_c_bigendian+set}" = set; then
3593   echo $ECHO_N "(cached) $ECHO_C" >&6
3594 else
3595   # See if sys/param.h defines the BYTE_ORDER macro.
3596 cat >conftest.$ac_ext <<_ACEOF
3597 /* confdefs.h.  */
3598 _ACEOF
3599 cat confdefs.h >>conftest.$ac_ext
3600 cat >>conftest.$ac_ext <<_ACEOF
3601 /* end confdefs.h.  */
3602 #include <sys/types.h>
3603 #include <sys/param.h>
3604
3605 int
3606 main ()
3607 {
3608 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3609  bogus endian macros
3610 #endif
3611
3612   ;
3613   return 0;
3614 }
3615 _ACEOF
3616 rm -f conftest.$ac_objext
3617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3618   (eval $ac_compile) 2>conftest.er1
3619   ac_status=$?
3620   grep -v '^ *+' conftest.er1 >conftest.err
3621   rm -f conftest.er1
3622   cat conftest.err >&5
3623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624   (exit $ac_status); } &&
3625          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3627   (eval $ac_try) 2>&5
3628   ac_status=$?
3629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630   (exit $ac_status); }; } &&
3631          { ac_try='test -s conftest.$ac_objext'
3632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3633   (eval $ac_try) 2>&5
3634   ac_status=$?
3635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636   (exit $ac_status); }; }; then
3637   # It does; now see whether it defined to BIG_ENDIAN or not.
3638 cat >conftest.$ac_ext <<_ACEOF
3639 /* confdefs.h.  */
3640 _ACEOF
3641 cat confdefs.h >>conftest.$ac_ext
3642 cat >>conftest.$ac_ext <<_ACEOF
3643 /* end confdefs.h.  */
3644 #include <sys/types.h>
3645 #include <sys/param.h>
3646
3647 int
3648 main ()
3649 {
3650 #if BYTE_ORDER != BIG_ENDIAN
3651  not big endian
3652 #endif
3653
3654   ;
3655   return 0;
3656 }
3657 _ACEOF
3658 rm -f conftest.$ac_objext
3659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3660   (eval $ac_compile) 2>conftest.er1
3661   ac_status=$?
3662   grep -v '^ *+' conftest.er1 >conftest.err
3663   rm -f conftest.er1
3664   cat conftest.err >&5
3665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666   (exit $ac_status); } &&
3667          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3669   (eval $ac_try) 2>&5
3670   ac_status=$?
3671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672   (exit $ac_status); }; } &&
3673          { ac_try='test -s conftest.$ac_objext'
3674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3675   (eval $ac_try) 2>&5
3676   ac_status=$?
3677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678   (exit $ac_status); }; }; then
3679   ac_cv_c_bigendian=yes
3680 else
3681   echo "$as_me: failed program was:" >&5
3682 sed 's/^/| /' conftest.$ac_ext >&5
3683
3684 ac_cv_c_bigendian=no
3685 fi
3686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3687 else
3688   echo "$as_me: failed program was:" >&5
3689 sed 's/^/| /' conftest.$ac_ext >&5
3690
3691 # It does not; compile a test program.
3692 if test "$cross_compiling" = yes; then
3693   # try to guess the endianness by grepping values into an object file
3694   ac_cv_c_bigendian=unknown
3695   cat >conftest.$ac_ext <<_ACEOF
3696 /* confdefs.h.  */
3697 _ACEOF
3698 cat confdefs.h >>conftest.$ac_ext
3699 cat >>conftest.$ac_ext <<_ACEOF
3700 /* end confdefs.h.  */
3701 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3702 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3703 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3704 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3705 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3706 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3707 int
3708 main ()
3709 {
3710  _ascii (); _ebcdic ();
3711   ;
3712   return 0;
3713 }
3714 _ACEOF
3715 rm -f conftest.$ac_objext
3716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3717   (eval $ac_compile) 2>conftest.er1
3718   ac_status=$?
3719   grep -v '^ *+' conftest.er1 >conftest.err
3720   rm -f conftest.er1
3721   cat conftest.err >&5
3722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723   (exit $ac_status); } &&
3724          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3726   (eval $ac_try) 2>&5
3727   ac_status=$?
3728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729   (exit $ac_status); }; } &&
3730          { ac_try='test -s conftest.$ac_objext'
3731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3732   (eval $ac_try) 2>&5
3733   ac_status=$?
3734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735   (exit $ac_status); }; }; then
3736   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3737   ac_cv_c_bigendian=yes
3738 fi
3739 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3740   if test "$ac_cv_c_bigendian" = unknown; then
3741     ac_cv_c_bigendian=no
3742   else
3743     # finding both strings is unlikely to happen, but who knows?
3744     ac_cv_c_bigendian=unknown
3745   fi
3746 fi
3747 else
3748   echo "$as_me: failed program was:" >&5
3749 sed 's/^/| /' conftest.$ac_ext >&5
3750
3751 fi
3752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3753 else
3754   cat >conftest.$ac_ext <<_ACEOF
3755 /* confdefs.h.  */
3756 _ACEOF
3757 cat confdefs.h >>conftest.$ac_ext
3758 cat >>conftest.$ac_ext <<_ACEOF
3759 /* end confdefs.h.  */
3760 int
3761 main ()
3762 {
3763   /* Are we little or big endian?  From Harbison&Steele.  */
3764   union
3765   {
3766     long l;
3767     char c[sizeof (long)];
3768   } u;
3769   u.l = 1;
3770   exit (u.c[sizeof (long) - 1] == 1);
3771 }
3772 _ACEOF
3773 rm -f conftest$ac_exeext
3774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3775   (eval $ac_link) 2>&5
3776   ac_status=$?
3777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3780   (eval $ac_try) 2>&5
3781   ac_status=$?
3782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783   (exit $ac_status); }; }; then
3784   ac_cv_c_bigendian=no
3785 else
3786   echo "$as_me: program exited with status $ac_status" >&5
3787 echo "$as_me: failed program was:" >&5
3788 sed 's/^/| /' conftest.$ac_ext >&5
3789
3790 ( exit $ac_status )
3791 ac_cv_c_bigendian=yes
3792 fi
3793 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3794 fi
3795 fi
3796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3797 fi
3798 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3799 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3800 case $ac_cv_c_bigendian in
3801   yes)
3802
3803 cat >>confdefs.h <<\_ACEOF
3804 #define WORDS_BIGENDIAN 1
3805 _ACEOF
3806  ;;
3807   no)
3808      ;;
3809   *)
3810     { { echo "$as_me:$LINENO: error: unknown endianness
3811 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3812 echo "$as_me: error: unknown endianness
3813 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3814    { (exit 1); exit 1; }; } ;;
3815 esac
3816
3817
3818 # Extract the first word of "gmake", so it can be a program name with args.
3819 set dummy gmake; ac_word=$2
3820 echo "$as_me:$LINENO: checking for $ac_word" >&5
3821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3822 if test "${ac_cv_prog_GMAKE+set}" = set; then
3823   echo $ECHO_N "(cached) $ECHO_C" >&6
3824 else
3825   if test -n "$GMAKE"; then
3826   ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
3827 else
3828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3829 for as_dir in $PATH
3830 do
3831   IFS=$as_save_IFS
3832   test -z "$as_dir" && as_dir=.
3833   for ac_exec_ext in '' $ac_executable_extensions; do
3834   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3835     ac_cv_prog_GMAKE="yes"
3836     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3837     break 2
3838   fi
3839 done
3840 done
3841
3842   test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
3843 fi
3844 fi
3845 GMAKE=$ac_cv_prog_GMAKE
3846 if test -n "$GMAKE"; then
3847   echo "$as_me:$LINENO: result: $GMAKE" >&5
3848 echo "${ECHO_T}$GMAKE" >&6
3849 else
3850   echo "$as_me:$LINENO: result: no" >&5
3851 echo "${ECHO_T}no" >&6
3852 fi
3853
3854 if test $GMAKE = no; then
3855   # Extract the first word of "make", so it can be a program name with args.
3856 set dummy make; ac_word=$2
3857 echo "$as_me:$LINENO: checking for $ac_word" >&5
3858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3859 if test "${ac_cv_path_MAKE+set}" = set; then
3860   echo $ECHO_N "(cached) $ECHO_C" >&6
3861 else
3862   case $MAKE in
3863   [\\/]* | ?:[\\/]*)
3864   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
3865   ;;
3866   *)
3867   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3868 for as_dir in $PATH
3869 do
3870   IFS=$as_save_IFS
3871   test -z "$as_dir" && as_dir=.
3872   for ac_exec_ext in '' $ac_executable_extensions; do
3873   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3874     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
3875     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3876     break 2
3877   fi
3878 done
3879 done
3880
3881   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
3882   ;;
3883 esac
3884 fi
3885 MAKE=$ac_cv_path_MAKE
3886
3887 if test -n "$MAKE"; then
3888   echo "$as_me:$LINENO: result: $MAKE" >&5
3889 echo "${ECHO_T}$MAKE" >&6
3890 else
3891   echo "$as_me:$LINENO: result: no" >&5
3892 echo "${ECHO_T}no" >&6
3893 fi
3894
3895 else
3896   # Extract the first word of "gmake", so it can be a program name with args.
3897 set dummy gmake; ac_word=$2
3898 echo "$as_me:$LINENO: checking for $ac_word" >&5
3899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3900 if test "${ac_cv_path_MAKE+set}" = set; then
3901   echo $ECHO_N "(cached) $ECHO_C" >&6
3902 else
3903   case $MAKE in
3904   [\\/]* | ?:[\\/]*)
3905   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
3906   ;;
3907   *)
3908   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3909 for as_dir in $PATH
3910 do
3911   IFS=$as_save_IFS
3912   test -z "$as_dir" && as_dir=.
3913   for ac_exec_ext in '' $ac_executable_extensions; do
3914   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3915     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
3916     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3917     break 2
3918   fi
3919 done
3920 done
3921
3922   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
3923   ;;
3924 esac
3925 fi
3926 MAKE=$ac_cv_path_MAKE
3927
3928 if test -n "$MAKE"; then
3929   echo "$as_me:$LINENO: result: $MAKE" >&5
3930 echo "${ECHO_T}$MAKE" >&6
3931 else
3932   echo "$as_me:$LINENO: result: no" >&5
3933 echo "${ECHO_T}no" >&6
3934 fi
3935
3936 fi
3937 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
3938 if test -z "$makever"; then
3939   { { echo "$as_me:$LINENO: error: GNU Make is not installed.  Please download and install it
3940                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
3941 echo "$as_me: error: GNU Make is not installed.  Please download and install it
3942                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
3943    { (exit 1); exit 1; }; }
3944 fi
3945
3946   echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
3947 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
3948 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
3949   echo $ECHO_N "(cached) $ECHO_C" >&6
3950 else
3951   ac_check_lib_save_LIBS=$LIBS
3952 LIBS="-lltdl  $LIBS"
3953 cat >conftest.$ac_ext <<_ACEOF
3954 /* confdefs.h.  */
3955 _ACEOF
3956 cat confdefs.h >>conftest.$ac_ext
3957 cat >>conftest.$ac_ext <<_ACEOF
3958 /* end confdefs.h.  */
3959
3960 /* Override any gcc2 internal prototype to avoid an error.  */
3961 #ifdef __cplusplus
3962 extern "C"
3963 #endif
3964 /* We use char because int might match the return type of a gcc2
3965    builtin and then its argument prototype would still apply.  */
3966 char lt_dlinit ();
3967 int
3968 main ()
3969 {
3970 lt_dlinit ();
3971   ;
3972   return 0;
3973 }
3974 _ACEOF
3975 rm -f conftest.$ac_objext conftest$ac_exeext
3976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3977   (eval $ac_link) 2>conftest.er1
3978   ac_status=$?
3979   grep -v '^ *+' conftest.er1 >conftest.err
3980   rm -f conftest.er1
3981   cat conftest.err >&5
3982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983   (exit $ac_status); } &&
3984          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3986   (eval $ac_try) 2>&5
3987   ac_status=$?
3988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989   (exit $ac_status); }; } &&
3990          { ac_try='test -s conftest$ac_exeext'
3991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3992   (eval $ac_try) 2>&5
3993   ac_status=$?
3994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995   (exit $ac_status); }; }; then
3996   ac_cv_lib_ltdl_lt_dlinit=yes
3997 else
3998   echo "$as_me: failed program was:" >&5
3999 sed 's/^/| /' conftest.$ac_ext >&5
4000
4001 ac_cv_lib_ltdl_lt_dlinit=no
4002 fi
4003 rm -f conftest.err conftest.$ac_objext \
4004       conftest$ac_exeext conftest.$ac_ext
4005 LIBS=$ac_check_lib_save_LIBS
4006 fi
4007 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
4008 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
4009 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
4010   test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
4011 else
4012   if test x"$enable_ltdl_install" = xno; then
4013      { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
4014 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
4015    else
4016      enable_ltdl_install=yes
4017    fi
4018
4019 fi
4020
4021   if test x"$enable_ltdl_install" = x"yes"; then
4022     ac_configure_args="$ac_configure_args --enable-ltdl-install"
4023     LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
4024     LTDLINCL='-I${top_srcdir}/''libltdl'
4025     LIBLTDLPATH=libltdl
4026   else
4027     ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4028     LIBLTDL="-lltdl"
4029     LTDLINCL=
4030     LIBLTDLPATH=
4031   fi
4032
4033   # For backwards non-gettext consistent compatibility...
4034   INCLTDL="$LTDLINCL"
4035
4036
4037 # Check whether --enable-shared or --disable-shared was given.
4038 if test "${enable_shared+set}" = set; then
4039   enableval="$enable_shared"
4040   p=${PACKAGE-default}
4041     case $enableval in
4042     yes) enable_shared=yes ;;
4043     no) enable_shared=no ;;
4044     *)
4045       enable_shared=no
4046       # Look at the argument we got.  We use all the common list separators.
4047       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4048       for pkg in $enableval; do
4049         IFS="$lt_save_ifs"
4050         if test "X$pkg" = "X$p"; then
4051           enable_shared=yes
4052         fi
4053       done
4054       IFS="$lt_save_ifs"
4055       ;;
4056     esac
4057 else
4058   enable_shared=yes
4059 fi;
4060
4061 # Check whether --enable-static or --disable-static was given.
4062 if test "${enable_static+set}" = set; then
4063   enableval="$enable_static"
4064   p=${PACKAGE-default}
4065     case $enableval in
4066     yes) enable_static=yes ;;
4067     no) enable_static=no ;;
4068     *)
4069      enable_static=no
4070       # Look at the argument we got.  We use all the common list separators.
4071       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4072       for pkg in $enableval; do
4073         IFS="$lt_save_ifs"
4074         if test "X$pkg" = "X$p"; then
4075           enable_static=yes
4076         fi
4077       done
4078       IFS="$lt_save_ifs"
4079       ;;
4080     esac
4081 else
4082   enable_static=yes
4083 fi;
4084
4085 # Check whether --enable-fast-install or --disable-fast-install was given.
4086 if test "${enable_fast_install+set}" = set; then
4087   enableval="$enable_fast_install"
4088   p=${PACKAGE-default}
4089     case $enableval in
4090     yes) enable_fast_install=yes ;;
4091     no) enable_fast_install=no ;;
4092     *)
4093       enable_fast_install=no
4094       # Look at the argument we got.  We use all the common list separators.
4095       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4096       for pkg in $enableval; do
4097         IFS="$lt_save_ifs"
4098         if test "X$pkg" = "X$p"; then
4099           enable_fast_install=yes
4100         fi
4101       done
4102       IFS="$lt_save_ifs"
4103       ;;
4104     esac
4105 else
4106   enable_fast_install=yes
4107 fi;
4108
4109 ac_aux_dir=
4110 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
4111   if test -f $ac_dir/install-sh; then
4112     ac_aux_dir=$ac_dir
4113     ac_install_sh="$ac_aux_dir/install-sh -c"
4114     break
4115   elif test -f $ac_dir/install.sh; then
4116     ac_aux_dir=$ac_dir
4117     ac_install_sh="$ac_aux_dir/install.sh -c"
4118     break
4119   elif test -f $ac_dir/shtool; then
4120     ac_aux_dir=$ac_dir
4121     ac_install_sh="$ac_aux_dir/shtool install -c"
4122     break
4123   fi
4124 done
4125 if test -z "$ac_aux_dir"; then
4126   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
4127 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
4128    { (exit 1); exit 1; }; }
4129 fi
4130 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
4131 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
4132 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
4133
4134 # Make sure we can run config.sub.
4135 $ac_config_sub sun4 >/dev/null 2>&1 ||
4136   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4137 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4138    { (exit 1); exit 1; }; }
4139
4140 echo "$as_me:$LINENO: checking build system type" >&5
4141 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4142 if test "${ac_cv_build+set}" = set; then
4143   echo $ECHO_N "(cached) $ECHO_C" >&6
4144 else
4145   ac_cv_build_alias=$build_alias
4146 test -z "$ac_cv_build_alias" &&
4147   ac_cv_build_alias=`$ac_config_guess`
4148 test -z "$ac_cv_build_alias" &&
4149   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4150 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4151    { (exit 1); exit 1; }; }
4152 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4153   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4154 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4155    { (exit 1); exit 1; }; }
4156
4157 fi
4158 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4159 echo "${ECHO_T}$ac_cv_build" >&6
4160 build=$ac_cv_build
4161 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4162 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4163 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4164
4165
4166 echo "$as_me:$LINENO: checking host system type" >&5
4167 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4168 if test "${ac_cv_host+set}" = set; then
4169   echo $ECHO_N "(cached) $ECHO_C" >&6
4170 else
4171   ac_cv_host_alias=$host_alias
4172 test -z "$ac_cv_host_alias" &&
4173   ac_cv_host_alias=$ac_cv_build_alias
4174 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4175   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4176 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4177    { (exit 1); exit 1; }; }
4178
4179 fi
4180 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4181 echo "${ECHO_T}$ac_cv_host" >&6
4182 host=$ac_cv_host
4183 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4184 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4185 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4186
4187
4188 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4189 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4190 if test "${lt_cv_path_SED+set}" = set; then
4191   echo $ECHO_N "(cached) $ECHO_C" >&6
4192 else
4193   # Loop through the user's path and test for sed and gsed.
4194 # Then use that list of sed's as ones to test for truncation.
4195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4196 for as_dir in $PATH
4197 do
4198   IFS=$as_save_IFS
4199   test -z "$as_dir" && as_dir=.
4200   for lt_ac_prog in sed gsed; do
4201     for ac_exec_ext in '' $ac_executable_extensions; do
4202       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4203         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4204       fi
4205     done
4206   done
4207 done
4208 lt_ac_max=0
4209 lt_ac_count=0
4210 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4211 # along with /bin/sed that truncates output.
4212 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4213   test ! -f $lt_ac_sed && break
4214   cat /dev/null > conftest.in
4215   lt_ac_count=0
4216   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4217   # Check for GNU sed and select it if it is found.
4218   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4219     lt_cv_path_SED=$lt_ac_sed
4220     break
4221   fi
4222   while true; do
4223     cat conftest.in conftest.in >conftest.tmp
4224     mv conftest.tmp conftest.in
4225     cp conftest.in conftest.nl
4226     echo >>conftest.nl
4227     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4228     cmp -s conftest.out conftest.nl || break
4229     # 10000 chars as input seems more than enough
4230     test $lt_ac_count -gt 10 && break
4231     lt_ac_count=`expr $lt_ac_count + 1`
4232     if test $lt_ac_count -gt $lt_ac_max; then
4233       lt_ac_max=$lt_ac_count
4234       lt_cv_path_SED=$lt_ac_sed
4235     fi
4236   done
4237 done
4238 SED=$lt_cv_path_SED
4239
4240 fi
4241
4242 echo "$as_me:$LINENO: result: $SED" >&5
4243 echo "${ECHO_T}$SED" >&6
4244
4245
4246 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4247 if test "${with_gnu_ld+set}" = set; then
4248   withval="$with_gnu_ld"
4249   test "$withval" = no || with_gnu_ld=yes
4250 else
4251   with_gnu_ld=no
4252 fi;
4253 ac_prog=ld
4254 if test "$GCC" = yes; then
4255   # Check if gcc -print-prog-name=ld gives a path.
4256   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4257 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4258   case $host in
4259   *-*-mingw*)
4260     # gcc leaves a trailing carriage return which upsets mingw
4261     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4262   *)
4263     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4264   esac
4265   case $ac_prog in
4266     # Accept absolute paths.
4267     [\\/]* | ?:[\\/]*)
4268       re_direlt='/[^/][^/]*/\.\./'
4269       # Canonicalize the pathname of ld
4270       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4271       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4272         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4273       done
4274       test -z "$LD" && LD="$ac_prog"
4275       ;;
4276   "")
4277     # If it fails, then pretend we aren't using GCC.
4278     ac_prog=ld
4279     ;;
4280   *)
4281     # If it is relative, then search for the first ld in PATH.
4282     with_gnu_ld=unknown
4283     ;;
4284   esac
4285 elif test "$with_gnu_ld" = yes; then
4286   echo "$as_me:$LINENO: checking for GNU ld" >&5
4287 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4288 else
4289   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4290 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4291 fi
4292 if test "${lt_cv_path_LD+set}" = set; then
4293   echo $ECHO_N "(cached) $ECHO_C" >&6
4294 else
4295   if test -z "$LD"; then
4296   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4297   for ac_dir in $PATH; do
4298     IFS="$lt_save_ifs"
4299     test -z "$ac_dir" && ac_dir=.
4300     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4301       lt_cv_path_LD="$ac_dir/$ac_prog"
4302       # Check to see if the program is GNU ld.  I'd rather use --version,
4303       # but apparently some GNU ld's only accept -v.
4304       # Break only if it was the GNU/non-GNU ld that we prefer.
4305       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4306       *GNU* | *'with BFD'*)
4307         test "$with_gnu_ld" != no && break
4308         ;;
4309       *)
4310         test "$with_gnu_ld" != yes && break
4311         ;;
4312       esac
4313     fi
4314   done
4315   IFS="$lt_save_ifs"
4316 else
4317   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4318 fi
4319 fi
4320
4321 LD="$lt_cv_path_LD"
4322 if test -n "$LD"; then
4323   echo "$as_me:$LINENO: result: $LD" >&5
4324 echo "${ECHO_T}$LD" >&6
4325 else
4326   echo "$as_me:$LINENO: result: no" >&5
4327 echo "${ECHO_T}no" >&6
4328 fi
4329 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4330 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4331    { (exit 1); exit 1; }; }
4332 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4333 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4334 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4335   echo $ECHO_N "(cached) $ECHO_C" >&6
4336 else
4337   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4338 case `$LD -v 2>&1 </dev/null` in
4339 *GNU* | *'with BFD'*)
4340   lt_cv_prog_gnu_ld=yes
4341   ;;
4342 *)
4343   lt_cv_prog_gnu_ld=no
4344   ;;
4345 esac
4346 fi
4347 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4348 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4349 with_gnu_ld=$lt_cv_prog_gnu_ld
4350
4351
4352 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4353 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4354 if test "${lt_cv_ld_reload_flag+set}" = set; then
4355   echo $ECHO_N "(cached) $ECHO_C" >&6
4356 else
4357   lt_cv_ld_reload_flag='-r'
4358 fi
4359 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4360 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4361 reload_flag=$lt_cv_ld_reload_flag
4362 case $reload_flag in
4363 "" | " "*) ;;
4364 *) reload_flag=" $reload_flag" ;;
4365 esac
4366 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4367
4368 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4369 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4370 if test "${lt_cv_path_NM+set}" = set; then
4371   echo $ECHO_N "(cached) $ECHO_C" >&6
4372 else
4373   if test -n "$NM"; then
4374   # Let the user override the test.
4375   lt_cv_path_NM="$NM"
4376 else
4377   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4378   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4379     IFS="$lt_save_ifs"
4380     test -z "$ac_dir" && ac_dir=.
4381     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4382     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4383       # Check to see if the nm accepts a BSD-compat flag.
4384       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4385       #   nm: unknown option "B" ignored
4386       # Tru64's nm complains that /dev/null is an invalid object file
4387       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4388       */dev/null* | *'Invalid file or object type'*)
4389         lt_cv_path_NM="$tmp_nm -B"
4390         break
4391         ;;
4392       *)
4393         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4394         */dev/null*)
4395           lt_cv_path_NM="$tmp_nm -p"
4396           break
4397           ;;
4398         *)
4399           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4400           continue # so that we can try to find one that supports BSD flags
4401           ;;
4402         esac
4403       esac
4404     fi
4405   done
4406   IFS="$lt_save_ifs"
4407   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4408 fi
4409 fi
4410 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4411 echo "${ECHO_T}$lt_cv_path_NM" >&6
4412 NM="$lt_cv_path_NM"
4413
4414 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4415 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4416 LN_S=$as_ln_s
4417 if test "$LN_S" = "ln -s"; then
4418   echo "$as_me:$LINENO: result: yes" >&5
4419 echo "${ECHO_T}yes" >&6
4420 else
4421   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4422 echo "${ECHO_T}no, using $LN_S" >&6
4423 fi
4424
4425 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4426 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4427 if test "${lt_cv_deplibs_check_method+set}" = set; then
4428   echo $ECHO_N "(cached) $ECHO_C" >&6
4429 else
4430   lt_cv_file_magic_cmd='$MAGIC_CMD'
4431 lt_cv_file_magic_test_file=
4432 lt_cv_deplibs_check_method='unknown'
4433 # Need to set the preceding variable on all platforms that support
4434 # interlibrary dependencies.
4435 # 'none' -- dependencies not supported.
4436 # `unknown' -- same as none, but documents that we really don't know.
4437 # 'pass_all' -- all dependencies passed with no checks.
4438 # 'test_compile' -- check by making test program.
4439 # 'file_magic [[regex]]' -- check by looking for files in library path
4440 # which responds to the $file_magic_cmd with a given extended regex.
4441 # If you have `file' or equivalent on your system and you're not sure
4442 # whether `pass_all' will *always* work, you probably want this one.
4443
4444 case $host_os in
4445 aix4* | aix5*)
4446   lt_cv_deplibs_check_method=pass_all
4447   ;;
4448
4449 beos*)
4450   lt_cv_deplibs_check_method=pass_all
4451   ;;
4452
4453 bsdi4*)
4454   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4455   lt_cv_file_magic_cmd='/usr/bin/file -L'
4456   lt_cv_file_magic_test_file=/shlib/libc.so
4457   ;;
4458
4459 cygwin*)
4460   # func_win32_libid is a shell function defined in ltmain.sh
4461   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4462   lt_cv_file_magic_cmd='func_win32_libid'
4463   ;;
4464
4465 mingw* | pw32*)
4466   # Base MSYS/MinGW do not provide the 'file' command needed by
4467   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4468   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4469   lt_cv_file_magic_cmd='$OBJDUMP -f'
4470   ;;
4471
4472 darwin* | rhapsody*)
4473   lt_cv_deplibs_check_method=pass_all
4474   ;;
4475
4476 freebsd* | kfreebsd*-gnu)
4477   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4478     case $host_cpu in
4479     i*86 )
4480       # Not sure whether the presence of OpenBSD here was a mistake.
4481       # Let's accept both of them until this is cleared up.
4482       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4483       lt_cv_file_magic_cmd=/usr/bin/file
4484       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4485       ;;
4486     esac
4487   else
4488     lt_cv_deplibs_check_method=pass_all
4489   fi
4490   ;;
4491
4492 gnu*)
4493   lt_cv_deplibs_check_method=pass_all
4494   ;;
4495
4496 hpux10.20* | hpux11*)
4497   lt_cv_file_magic_cmd=/usr/bin/file
4498   case "$host_cpu" in
4499   ia64*)
4500     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4501     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4502     ;;
4503   hppa*64*)
4504     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]'
4505     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4506     ;;
4507   *)
4508     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4509     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4510     ;;
4511   esac
4512   ;;
4513
4514 irix5* | irix6* | nonstopux*)
4515   case $LD in
4516   *-32|*"-32 ") libmagic=32-bit;;
4517   *-n32|*"-n32 ") libmagic=N32;;
4518   *-64|*"-64 ") libmagic=64-bit;;
4519   *) libmagic=never-match;;
4520   esac
4521   lt_cv_deplibs_check_method=pass_all
4522   ;;
4523
4524 # This must be Linux ELF.
4525 linux*)
4526   lt_cv_deplibs_check_method=pass_all
4527   ;;
4528
4529 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
4530   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4531     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4532   else
4533     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4534   fi
4535   ;;
4536
4537 newos6*)
4538   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4539   lt_cv_file_magic_cmd=/usr/bin/file
4540   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4541   ;;
4542
4543 nto-qnx*)
4544   lt_cv_deplibs_check_method=unknown
4545   ;;
4546
4547 openbsd*)
4548   lt_cv_file_magic_cmd=/usr/bin/file
4549   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4550   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4551     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4552   else
4553     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4554   fi
4555   ;;
4556
4557 osf3* | osf4* | osf5*)
4558   lt_cv_deplibs_check_method=pass_all
4559   ;;
4560
4561 sco3.2v5*)
4562   lt_cv_deplibs_check_method=pass_all
4563   ;;
4564
4565 solaris*)
4566   lt_cv_deplibs_check_method=pass_all
4567   ;;
4568
4569 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4570   case $host_vendor in
4571   motorola)
4572     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]'
4573     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4574     ;;
4575   ncr)
4576     lt_cv_deplibs_check_method=pass_all
4577     ;;
4578   sequent)
4579     lt_cv_file_magic_cmd='/bin/file'
4580     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4581     ;;
4582   sni)
4583     lt_cv_file_magic_cmd='/bin/file'
4584     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4585     lt_cv_file_magic_test_file=/lib/libc.so
4586     ;;
4587   siemens)
4588     lt_cv_deplibs_check_method=pass_all
4589     ;;
4590   esac
4591   ;;
4592
4593 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4594   lt_cv_deplibs_check_method=pass_all
4595   ;;
4596 esac
4597
4598 fi
4599 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4600 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4601 file_magic_cmd=$lt_cv_file_magic_cmd
4602 deplibs_check_method=$lt_cv_deplibs_check_method
4603 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4604
4605
4606
4607
4608 # If no C compiler was specified, use CC.
4609 LTCC=${LTCC-"$CC"}
4610
4611 # Allow CC to be a program name with arguments.
4612 compiler=$CC
4613
4614 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4615 if test "${enable_libtool_lock+set}" = set; then
4616   enableval="$enable_libtool_lock"
4617
4618 fi;
4619 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4620
4621 # Some flags need to be propagated to the compiler or linker for good
4622 # libtool support.
4623 case $host in
4624 ia64-*-hpux*)
4625   # Find out which ABI we are using.
4626   echo 'int i;' > conftest.$ac_ext
4627   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4628   (eval $ac_compile) 2>&5
4629   ac_status=$?
4630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631   (exit $ac_status); }; then
4632     case `/usr/bin/file conftest.$ac_objext` in
4633     *ELF-32*)
4634       HPUX_IA64_MODE="32"
4635       ;;
4636     *ELF-64*)
4637       HPUX_IA64_MODE="64"
4638       ;;
4639     esac
4640   fi
4641   rm -rf conftest*
4642   ;;
4643 *-*-irix6*)
4644   # Find out which ABI we are using.
4645   echo '#line 4645 "configure"' > conftest.$ac_ext
4646   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4647   (eval $ac_compile) 2>&5
4648   ac_status=$?
4649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650   (exit $ac_status); }; then
4651    if test "$lt_cv_prog_gnu_ld" = yes; then
4652     case `/usr/bin/file conftest.$ac_objext` in
4653     *32-bit*)
4654       LD="${LD-ld} -melf32bsmip"
4655       ;;
4656     *N32*)
4657       LD="${LD-ld} -melf32bmipn32"
4658       ;;
4659     *64-bit*)
4660       LD="${LD-ld} -melf64bmip"
4661       ;;
4662     esac
4663    else
4664     case `/usr/bin/file conftest.$ac_objext` in
4665     *32-bit*)
4666       LD="${LD-ld} -32"
4667       ;;
4668     *N32*)
4669       LD="${LD-ld} -n32"
4670       ;;
4671     *64-bit*)
4672       LD="${LD-ld} -64"
4673       ;;
4674     esac
4675    fi
4676   fi
4677   rm -rf conftest*
4678   ;;
4679
4680 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4681   # Find out which ABI we are using.
4682   echo 'int i;' > conftest.$ac_ext
4683   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4684   (eval $ac_compile) 2>&5
4685   ac_status=$?
4686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687   (exit $ac_status); }; then
4688     case "`/usr/bin/file conftest.o`" in
4689     *32-bit*)
4690       case $host in
4691         x86_64-*linux*)
4692           LD="${LD-ld} -m elf_i386"
4693           ;;
4694         ppc64-*linux*|powerpc64-*linux*)
4695           LD="${LD-ld} -m elf32ppclinux"
4696           ;;
4697         s390x-*linux*)
4698           LD="${LD-ld} -m elf_s390"
4699           ;;
4700         sparc64-*linux*)
4701           LD="${LD-ld} -m elf32_sparc"
4702           ;;
4703       esac
4704       ;;
4705     *64-bit*)
4706       case $host in
4707         x86_64-*linux*)
4708           LD="${LD-ld} -m elf_x86_64"
4709           ;;
4710         ppc*-*linux*|powerpc*-*linux*)
4711           LD="${LD-ld} -m elf64ppc"
4712           ;;
4713         s390*-*linux*)
4714           LD="${LD-ld} -m elf64_s390"
4715           ;;
4716         sparc*-*linux*)
4717           LD="${LD-ld} -m elf64_sparc"
4718           ;;
4719       esac
4720       ;;
4721     esac
4722   fi
4723   rm -rf conftest*
4724   ;;
4725
4726 *-*-sco3.2v5*)
4727   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4728   SAVE_CFLAGS="$CFLAGS"
4729   CFLAGS="$CFLAGS -belf"
4730   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4731 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4732 if test "${lt_cv_cc_needs_belf+set}" = set; then
4733   echo $ECHO_N "(cached) $ECHO_C" >&6
4734 else
4735   ac_ext=c
4736 ac_cpp='$CPP $CPPFLAGS'
4737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4740
4741      cat >conftest.$ac_ext <<_ACEOF
4742 /* confdefs.h.  */
4743 _ACEOF
4744 cat confdefs.h >>conftest.$ac_ext
4745 cat >>conftest.$ac_ext <<_ACEOF
4746 /* end confdefs.h.  */
4747
4748 int
4749 main ()
4750 {
4751
4752   ;
4753   return 0;
4754 }
4755 _ACEOF
4756 rm -f conftest.$ac_objext conftest$ac_exeext
4757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4758   (eval $ac_link) 2>conftest.er1
4759   ac_status=$?
4760   grep -v '^ *+' conftest.er1 >conftest.err
4761   rm -f conftest.er1
4762   cat conftest.err >&5
4763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764   (exit $ac_status); } &&
4765          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4767   (eval $ac_try) 2>&5
4768   ac_status=$?
4769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770   (exit $ac_status); }; } &&
4771          { ac_try='test -s conftest$ac_exeext'
4772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4773   (eval $ac_try) 2>&5
4774   ac_status=$?
4775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776   (exit $ac_status); }; }; then
4777   lt_cv_cc_needs_belf=yes
4778 else
4779   echo "$as_me: failed program was:" >&5
4780 sed 's/^/| /' conftest.$ac_ext >&5
4781
4782 lt_cv_cc_needs_belf=no
4783 fi
4784 rm -f conftest.err conftest.$ac_objext \
4785       conftest$ac_exeext conftest.$ac_ext
4786      ac_ext=c
4787 ac_cpp='$CPP $CPPFLAGS'
4788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4791
4792 fi
4793 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4794 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4795   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4796     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4797     CFLAGS="$SAVE_CFLAGS"
4798   fi
4799   ;;
4800
4801 esac
4802
4803 need_locks="$enable_libtool_lock"
4804
4805
4806 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4807 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4808 if test "${ac_cv_header_stdc+set}" = set; then
4809   echo $ECHO_N "(cached) $ECHO_C" >&6
4810 else
4811   cat >conftest.$ac_ext <<_ACEOF
4812 /* confdefs.h.  */
4813 _ACEOF
4814 cat confdefs.h >>conftest.$ac_ext
4815 cat >>conftest.$ac_ext <<_ACEOF
4816 /* end confdefs.h.  */
4817 #include <stdlib.h>
4818 #include <stdarg.h>
4819 #include <string.h>
4820 #include <float.h>
4821
4822 int
4823 main ()
4824 {
4825
4826   ;
4827   return 0;
4828 }
4829 _ACEOF
4830 rm -f conftest.$ac_objext
4831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4832   (eval $ac_compile) 2>conftest.er1
4833   ac_status=$?
4834   grep -v '^ *+' conftest.er1 >conftest.err
4835   rm -f conftest.er1
4836   cat conftest.err >&5
4837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838   (exit $ac_status); } &&
4839          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4841   (eval $ac_try) 2>&5
4842   ac_status=$?
4843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844   (exit $ac_status); }; } &&
4845          { ac_try='test -s conftest.$ac_objext'
4846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4847   (eval $ac_try) 2>&5
4848   ac_status=$?
4849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850   (exit $ac_status); }; }; then
4851   ac_cv_header_stdc=yes
4852 else
4853   echo "$as_me: failed program was:" >&5
4854 sed 's/^/| /' conftest.$ac_ext >&5
4855
4856 ac_cv_header_stdc=no
4857 fi
4858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4859
4860 if test $ac_cv_header_stdc = yes; then
4861   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4862   cat >conftest.$ac_ext <<_ACEOF
4863 /* confdefs.h.  */
4864 _ACEOF
4865 cat confdefs.h >>conftest.$ac_ext
4866 cat >>conftest.$ac_ext <<_ACEOF
4867 /* end confdefs.h.  */
4868 #include <string.h>
4869
4870 _ACEOF
4871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4872   $EGREP "memchr" >/dev/null 2>&1; then
4873   :
4874 else
4875   ac_cv_header_stdc=no
4876 fi
4877 rm -f conftest*
4878
4879 fi
4880
4881 if test $ac_cv_header_stdc = yes; then
4882   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4883   cat >conftest.$ac_ext <<_ACEOF
4884 /* confdefs.h.  */
4885 _ACEOF
4886 cat confdefs.h >>conftest.$ac_ext
4887 cat >>conftest.$ac_ext <<_ACEOF
4888 /* end confdefs.h.  */
4889 #include <stdlib.h>
4890
4891 _ACEOF
4892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4893   $EGREP "free" >/dev/null 2>&1; then
4894   :
4895 else
4896   ac_cv_header_stdc=no
4897 fi
4898 rm -f conftest*
4899
4900 fi
4901
4902 if test $ac_cv_header_stdc = yes; then
4903   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4904   if test "$cross_compiling" = yes; then
4905   :
4906 else
4907   cat >conftest.$ac_ext <<_ACEOF
4908 /* confdefs.h.  */
4909 _ACEOF
4910 cat confdefs.h >>conftest.$ac_ext
4911 cat >>conftest.$ac_ext <<_ACEOF
4912 /* end confdefs.h.  */
4913 #include <ctype.h>
4914 #if ((' ' & 0x0FF) == 0x020)
4915 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4916 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4917 #else
4918 # define ISLOWER(c) \
4919                    (('a' <= (c) && (c) <= 'i') \
4920                      || ('j' <= (c) && (c) <= 'r') \
4921                      || ('s' <= (c) && (c) <= 'z'))
4922 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4923 #endif
4924
4925 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4926 int
4927 main ()
4928 {
4929   int i;
4930   for (i = 0; i < 256; i++)
4931     if (XOR (islower (i), ISLOWER (i))
4932         || toupper (i) != TOUPPER (i))
4933       exit(2);
4934   exit (0);
4935 }
4936 _ACEOF
4937 rm -f conftest$ac_exeext
4938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4939   (eval $ac_link) 2>&5
4940   ac_status=$?
4941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4944   (eval $ac_try) 2>&5
4945   ac_status=$?
4946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947   (exit $ac_status); }; }; then
4948   :
4949 else
4950   echo "$as_me: program exited with status $ac_status" >&5
4951 echo "$as_me: failed program was:" >&5
4952 sed 's/^/| /' conftest.$ac_ext >&5
4953
4954 ( exit $ac_status )
4955 ac_cv_header_stdc=no
4956 fi
4957 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4958 fi
4959 fi
4960 fi
4961 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4962 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4963 if test $ac_cv_header_stdc = yes; then
4964
4965 cat >>confdefs.h <<\_ACEOF
4966 #define STDC_HEADERS 1
4967 _ACEOF
4968
4969 fi
4970
4971 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4982                   inttypes.h stdint.h unistd.h
4983 do
4984 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4985 echo "$as_me:$LINENO: checking for $ac_header" >&5
4986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4987 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4988   echo $ECHO_N "(cached) $ECHO_C" >&6
4989 else
4990   cat >conftest.$ac_ext <<_ACEOF
4991 /* confdefs.h.  */
4992 _ACEOF
4993 cat confdefs.h >>conftest.$ac_ext
4994 cat >>conftest.$ac_ext <<_ACEOF
4995 /* end confdefs.h.  */
4996 $ac_includes_default
4997
4998 #include <$ac_header>
4999 _ACEOF
5000 rm -f conftest.$ac_objext
5001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5002   (eval $ac_compile) 2>conftest.er1
5003   ac_status=$?
5004   grep -v '^ *+' conftest.er1 >conftest.err
5005   rm -f conftest.er1
5006   cat conftest.err >&5
5007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008   (exit $ac_status); } &&
5009          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5011   (eval $ac_try) 2>&5
5012   ac_status=$?
5013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014   (exit $ac_status); }; } &&
5015          { ac_try='test -s conftest.$ac_objext'
5016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5017   (eval $ac_try) 2>&5
5018   ac_status=$?
5019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020   (exit $ac_status); }; }; then
5021   eval "$as_ac_Header=yes"
5022 else
5023   echo "$as_me: failed program was:" >&5
5024 sed 's/^/| /' conftest.$ac_ext >&5
5025
5026 eval "$as_ac_Header=no"
5027 fi
5028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5029 fi
5030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5031 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5032 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5033   cat >>confdefs.h <<_ACEOF
5034 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5035 _ACEOF
5036
5037 fi
5038
5039 done
5040
5041
5042
5043 for ac_header in dlfcn.h
5044 do
5045 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5046 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5047   echo "$as_me:$LINENO: checking for $ac_header" >&5
5048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5050   echo $ECHO_N "(cached) $ECHO_C" >&6
5051 fi
5052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5053 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5054 else
5055   # Is the header compilable?
5056 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5057 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5058 cat >conftest.$ac_ext <<_ACEOF
5059 /* confdefs.h.  */
5060 _ACEOF
5061 cat confdefs.h >>conftest.$ac_ext
5062 cat >>conftest.$ac_ext <<_ACEOF
5063 /* end confdefs.h.  */
5064 $ac_includes_default
5065 #include <$ac_header>
5066 _ACEOF
5067 rm -f conftest.$ac_objext
5068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5069   (eval $ac_compile) 2>conftest.er1
5070   ac_status=$?
5071   grep -v '^ *+' conftest.er1 >conftest.err
5072   rm -f conftest.er1
5073   cat conftest.err >&5
5074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075   (exit $ac_status); } &&
5076          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5078   (eval $ac_try) 2>&5
5079   ac_status=$?
5080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081   (exit $ac_status); }; } &&
5082          { ac_try='test -s conftest.$ac_objext'
5083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5084   (eval $ac_try) 2>&5
5085   ac_status=$?
5086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087   (exit $ac_status); }; }; then
5088   ac_header_compiler=yes
5089 else
5090   echo "$as_me: failed program was:" >&5
5091 sed 's/^/| /' conftest.$ac_ext >&5
5092
5093 ac_header_compiler=no
5094 fi
5095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5096 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5097 echo "${ECHO_T}$ac_header_compiler" >&6
5098
5099 # Is the header present?
5100 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5101 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5102 cat >conftest.$ac_ext <<_ACEOF
5103 /* confdefs.h.  */
5104 _ACEOF
5105 cat confdefs.h >>conftest.$ac_ext
5106 cat >>conftest.$ac_ext <<_ACEOF
5107 /* end confdefs.h.  */
5108 #include <$ac_header>
5109 _ACEOF
5110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5111   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5112   ac_status=$?
5113   grep -v '^ *+' conftest.er1 >conftest.err
5114   rm -f conftest.er1
5115   cat conftest.err >&5
5116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117   (exit $ac_status); } >/dev/null; then
5118   if test -s conftest.err; then
5119     ac_cpp_err=$ac_c_preproc_warn_flag
5120     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5121   else
5122     ac_cpp_err=
5123   fi
5124 else
5125   ac_cpp_err=yes
5126 fi
5127 if test -z "$ac_cpp_err"; then
5128   ac_header_preproc=yes
5129 else
5130   echo "$as_me: failed program was:" >&5
5131 sed 's/^/| /' conftest.$ac_ext >&5
5132
5133   ac_header_preproc=no
5134 fi
5135 rm -f conftest.err conftest.$ac_ext
5136 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5137 echo "${ECHO_T}$ac_header_preproc" >&6
5138
5139 # So?  What about this header?
5140 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5141   yes:no: )
5142     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5143 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5144     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5145 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5146     ac_header_preproc=yes
5147     ;;
5148   no:yes:* )
5149     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5150 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5151     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5152 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5153     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5154 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5155     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5156 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5157     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5158 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5159     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5160 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5161     (
5162       cat <<\_ASBOX
5163 ## ------------------------------------------ ##
5164 ## Report this to the AC_PACKAGE_NAME lists.  ##
5165 ## ------------------------------------------ ##
5166 _ASBOX
5167     ) |
5168       sed "s/^/$as_me: WARNING:     /" >&2
5169     ;;
5170 esac
5171 echo "$as_me:$LINENO: checking for $ac_header" >&5
5172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5174   echo $ECHO_N "(cached) $ECHO_C" >&6
5175 else
5176   eval "$as_ac_Header=\$ac_header_preproc"
5177 fi
5178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5179 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5180
5181 fi
5182 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5183   cat >>confdefs.h <<_ACEOF
5184 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5185 _ACEOF
5186
5187 fi
5188
5189 done
5190
5191 ac_ext=cc
5192 ac_cpp='$CXXCPP $CPPFLAGS'
5193 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5194 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5195 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5196 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5197 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5198 if test -z "$CXXCPP"; then
5199   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5200   echo $ECHO_N "(cached) $ECHO_C" >&6
5201 else
5202       # Double quotes because CXXCPP needs to be expanded
5203     for CXXCPP in "$CXX -E" "/lib/cpp"
5204     do
5205       ac_preproc_ok=false
5206 for ac_cxx_preproc_warn_flag in '' yes
5207 do
5208   # Use a header file that comes with gcc, so configuring glibc
5209   # with a fresh cross-compiler works.
5210   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5211   # <limits.h> exists even on freestanding compilers.
5212   # On the NeXT, cc -E runs the code through the compiler's parser,
5213   # not just through cpp. "Syntax error" is here to catch this case.
5214   cat >conftest.$ac_ext <<_ACEOF
5215 /* confdefs.h.  */
5216 _ACEOF
5217 cat confdefs.h >>conftest.$ac_ext
5218 cat >>conftest.$ac_ext <<_ACEOF
5219 /* end confdefs.h.  */
5220 #ifdef __STDC__
5221 # include <limits.h>
5222 #else
5223 # include <assert.h>
5224 #endif
5225                      Syntax error
5226 _ACEOF
5227 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5228   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5229   ac_status=$?
5230   grep -v '^ *+' conftest.er1 >conftest.err
5231   rm -f conftest.er1
5232   cat conftest.err >&5
5233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234   (exit $ac_status); } >/dev/null; then
5235   if test -s conftest.err; then
5236     ac_cpp_err=$ac_cxx_preproc_warn_flag
5237     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5238   else
5239     ac_cpp_err=
5240   fi
5241 else
5242   ac_cpp_err=yes
5243 fi
5244 if test -z "$ac_cpp_err"; then
5245   :
5246 else
5247   echo "$as_me: failed program was:" >&5
5248 sed 's/^/| /' conftest.$ac_ext >&5
5249
5250   # Broken: fails on valid input.
5251 continue
5252 fi
5253 rm -f conftest.err conftest.$ac_ext
5254
5255   # OK, works on sane cases.  Now check whether non-existent headers
5256   # can be detected and how.
5257   cat >conftest.$ac_ext <<_ACEOF
5258 /* confdefs.h.  */
5259 _ACEOF
5260 cat confdefs.h >>conftest.$ac_ext
5261 cat >>conftest.$ac_ext <<_ACEOF
5262 /* end confdefs.h.  */
5263 #include <ac_nonexistent.h>
5264 _ACEOF
5265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5266   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5267   ac_status=$?
5268   grep -v '^ *+' conftest.er1 >conftest.err
5269   rm -f conftest.er1
5270   cat conftest.err >&5
5271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272   (exit $ac_status); } >/dev/null; then
5273   if test -s conftest.err; then
5274     ac_cpp_err=$ac_cxx_preproc_warn_flag
5275     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5276   else
5277     ac_cpp_err=
5278   fi
5279 else
5280   ac_cpp_err=yes
5281 fi
5282 if test -z "$ac_cpp_err"; then
5283   # Broken: success on invalid input.
5284 continue
5285 else
5286   echo "$as_me: failed program was:" >&5
5287 sed 's/^/| /' conftest.$ac_ext >&5
5288
5289   # Passes both tests.
5290 ac_preproc_ok=:
5291 break
5292 fi
5293 rm -f conftest.err conftest.$ac_ext
5294
5295 done
5296 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5297 rm -f conftest.err conftest.$ac_ext
5298 if $ac_preproc_ok; then
5299   break
5300 fi
5301
5302     done
5303     ac_cv_prog_CXXCPP=$CXXCPP
5304
5305 fi
5306   CXXCPP=$ac_cv_prog_CXXCPP
5307 else
5308   ac_cv_prog_CXXCPP=$CXXCPP
5309 fi
5310 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5311 echo "${ECHO_T}$CXXCPP" >&6
5312 ac_preproc_ok=false
5313 for ac_cxx_preproc_warn_flag in '' yes
5314 do
5315   # Use a header file that comes with gcc, so configuring glibc
5316   # with a fresh cross-compiler works.
5317   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5318   # <limits.h> exists even on freestanding compilers.
5319   # On the NeXT, cc -E runs the code through the compiler's parser,
5320   # not just through cpp. "Syntax error" is here to catch this case.
5321   cat >conftest.$ac_ext <<_ACEOF
5322 /* confdefs.h.  */
5323 _ACEOF
5324 cat confdefs.h >>conftest.$ac_ext
5325 cat >>conftest.$ac_ext <<_ACEOF
5326 /* end confdefs.h.  */
5327 #ifdef __STDC__
5328 # include <limits.h>
5329 #else
5330 # include <assert.h>
5331 #endif
5332                      Syntax error
5333 _ACEOF
5334 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5335   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5336   ac_status=$?
5337   grep -v '^ *+' conftest.er1 >conftest.err
5338   rm -f conftest.er1
5339   cat conftest.err >&5
5340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341   (exit $ac_status); } >/dev/null; then
5342   if test -s conftest.err; then
5343     ac_cpp_err=$ac_cxx_preproc_warn_flag
5344     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5345   else
5346     ac_cpp_err=
5347   fi
5348 else
5349   ac_cpp_err=yes
5350 fi
5351 if test -z "$ac_cpp_err"; then
5352   :
5353 else
5354   echo "$as_me: failed program was:" >&5
5355 sed 's/^/| /' conftest.$ac_ext >&5
5356
5357   # Broken: fails on valid input.
5358 continue
5359 fi
5360 rm -f conftest.err conftest.$ac_ext
5361
5362   # OK, works on sane cases.  Now check whether non-existent headers
5363   # can be detected and how.
5364   cat >conftest.$ac_ext <<_ACEOF
5365 /* confdefs.h.  */
5366 _ACEOF
5367 cat confdefs.h >>conftest.$ac_ext
5368 cat >>conftest.$ac_ext <<_ACEOF
5369 /* end confdefs.h.  */
5370 #include <ac_nonexistent.h>
5371 _ACEOF
5372 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5373   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5374   ac_status=$?
5375   grep -v '^ *+' conftest.er1 >conftest.err
5376   rm -f conftest.er1
5377   cat conftest.err >&5
5378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379   (exit $ac_status); } >/dev/null; then
5380   if test -s conftest.err; then
5381     ac_cpp_err=$ac_cxx_preproc_warn_flag
5382     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5383   else
5384     ac_cpp_err=
5385   fi
5386 else
5387   ac_cpp_err=yes
5388 fi
5389 if test -z "$ac_cpp_err"; then
5390   # Broken: success on invalid input.
5391 continue
5392 else
5393   echo "$as_me: failed program was:" >&5
5394 sed 's/^/| /' conftest.$ac_ext >&5
5395
5396   # Passes both tests.
5397 ac_preproc_ok=:
5398 break
5399 fi
5400 rm -f conftest.err conftest.$ac_ext
5401
5402 done
5403 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5404 rm -f conftest.err conftest.$ac_ext
5405 if $ac_preproc_ok; then
5406   :
5407 else
5408   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5409 See \`config.log' for more details." >&5
5410 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5411 See \`config.log' for more details." >&2;}
5412    { (exit 1); exit 1; }; }
5413 fi
5414
5415 ac_ext=cc
5416 ac_cpp='$CXXCPP $CPPFLAGS'
5417 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5418 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5419 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5420
5421
5422 ac_ext=f
5423 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5424 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5425 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5426 if test -n "$ac_tool_prefix"; then
5427   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5428   do
5429     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5430 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5431 echo "$as_me:$LINENO: checking for $ac_word" >&5
5432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5433 if test "${ac_cv_prog_F77+set}" = set; then
5434   echo $ECHO_N "(cached) $ECHO_C" >&6
5435 else
5436   if test -n "$F77"; then
5437   ac_cv_prog_F77="$F77" # Let the user override the test.
5438 else
5439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5440 for as_dir in $PATH
5441 do
5442   IFS=$as_save_IFS
5443   test -z "$as_dir" && as_dir=.
5444   for ac_exec_ext in '' $ac_executable_extensions; do
5445   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5446     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5447     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5448     break 2
5449   fi
5450 done
5451 done
5452
5453 fi
5454 fi
5455 F77=$ac_cv_prog_F77
5456 if test -n "$F77"; then
5457   echo "$as_me:$LINENO: result: $F77" >&5
5458 echo "${ECHO_T}$F77" >&6
5459 else
5460   echo "$as_me:$LINENO: result: no" >&5
5461 echo "${ECHO_T}no" >&6
5462 fi
5463
5464     test -n "$F77" && break
5465   done
5466 fi
5467 if test -z "$F77"; then
5468   ac_ct_F77=$F77
5469   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5470 do
5471   # Extract the first word of "$ac_prog", so it can be a program name with args.
5472 set dummy $ac_prog; ac_word=$2
5473 echo "$as_me:$LINENO: checking for $ac_word" >&5
5474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5475 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5476   echo $ECHO_N "(cached) $ECHO_C" >&6
5477 else
5478   if test -n "$ac_ct_F77"; then
5479   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5480 else
5481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5482 for as_dir in $PATH
5483 do
5484   IFS=$as_save_IFS
5485   test -z "$as_dir" && as_dir=.
5486   for ac_exec_ext in '' $ac_executable_extensions; do
5487   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5488     ac_cv_prog_ac_ct_F77="$ac_prog"
5489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5490     break 2
5491   fi
5492 done
5493 done
5494
5495 fi
5496 fi
5497 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5498 if test -n "$ac_ct_F77"; then
5499   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5500 echo "${ECHO_T}$ac_ct_F77" >&6
5501 else
5502   echo "$as_me:$LINENO: result: no" >&5
5503 echo "${ECHO_T}no" >&6
5504 fi
5505
5506   test -n "$ac_ct_F77" && break
5507 done
5508
5509   F77=$ac_ct_F77
5510 fi
5511
5512
5513 # Provide some information about the compiler.
5514 echo "$as_me:5514:" \
5515      "checking for Fortran 77 compiler version" >&5
5516 ac_compiler=`set X $ac_compile; echo $2`
5517 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5518   (eval $ac_compiler --version </dev/null >&5) 2>&5
5519   ac_status=$?
5520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521   (exit $ac_status); }
5522 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5523   (eval $ac_compiler -v </dev/null >&5) 2>&5
5524   ac_status=$?
5525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526   (exit $ac_status); }
5527 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5528   (eval $ac_compiler -V </dev/null >&5) 2>&5
5529   ac_status=$?
5530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531   (exit $ac_status); }
5532 rm -f a.out
5533
5534 # If we don't use `.F' as extension, the preprocessor is not run on the
5535 # input file.  (Note that this only needs to work for GNU compilers.)
5536 ac_save_ext=$ac_ext
5537 ac_ext=F
5538 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5539 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5540 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5541   echo $ECHO_N "(cached) $ECHO_C" >&6
5542 else
5543   cat >conftest.$ac_ext <<_ACEOF
5544       program main
5545 #ifndef __GNUC__
5546        choke me
5547 #endif
5548
5549       end
5550 _ACEOF
5551 rm -f conftest.$ac_objext
5552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5553   (eval $ac_compile) 2>conftest.er1
5554   ac_status=$?
5555   grep -v '^ *+' conftest.er1 >conftest.err
5556   rm -f conftest.er1
5557   cat conftest.err >&5
5558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559   (exit $ac_status); } &&
5560          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5562   (eval $ac_try) 2>&5
5563   ac_status=$?
5564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565   (exit $ac_status); }; } &&
5566          { ac_try='test -s conftest.$ac_objext'
5567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5568   (eval $ac_try) 2>&5
5569   ac_status=$?
5570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571   (exit $ac_status); }; }; then
5572   ac_compiler_gnu=yes
5573 else
5574   echo "$as_me: failed program was:" >&5
5575 sed 's/^/| /' conftest.$ac_ext >&5
5576
5577 ac_compiler_gnu=no
5578 fi
5579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5580 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5581
5582 fi
5583 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5584 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5585 ac_ext=$ac_save_ext
5586 ac_test_FFLAGS=${FFLAGS+set}
5587 ac_save_FFLAGS=$FFLAGS
5588 FFLAGS=
5589 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5590 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5591 if test "${ac_cv_prog_f77_g+set}" = set; then
5592   echo $ECHO_N "(cached) $ECHO_C" >&6
5593 else
5594   FFLAGS=-g
5595 cat >conftest.$ac_ext <<_ACEOF
5596       program main
5597
5598       end
5599 _ACEOF
5600 rm -f conftest.$ac_objext
5601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5602   (eval $ac_compile) 2>conftest.er1
5603   ac_status=$?
5604   grep -v '^ *+' conftest.er1 >conftest.err
5605   rm -f conftest.er1
5606   cat conftest.err >&5
5607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608   (exit $ac_status); } &&
5609          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5611   (eval $ac_try) 2>&5
5612   ac_status=$?
5613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614   (exit $ac_status); }; } &&
5615          { ac_try='test -s conftest.$ac_objext'
5616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5617   (eval $ac_try) 2>&5
5618   ac_status=$?
5619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620   (exit $ac_status); }; }; then
5621   ac_cv_prog_f77_g=yes
5622 else
5623   echo "$as_me: failed program was:" >&5
5624 sed 's/^/| /' conftest.$ac_ext >&5
5625
5626 ac_cv_prog_f77_g=no
5627 fi
5628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5629
5630 fi
5631 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5632 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5633 if test "$ac_test_FFLAGS" = set; then
5634   FFLAGS=$ac_save_FFLAGS
5635 elif test $ac_cv_prog_f77_g = yes; then
5636   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5637     FFLAGS="-g -O2"
5638   else
5639     FFLAGS="-g"
5640   fi
5641 else
5642   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5643     FFLAGS="-O2"
5644   else
5645     FFLAGS=
5646   fi
5647 fi
5648
5649 G77=`test $ac_compiler_gnu = yes && echo yes`
5650 ac_ext=c
5651 ac_cpp='$CPP $CPPFLAGS'
5652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5655
5656
5657
5658 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5659
5660 # find the maximum length of command line arguments
5661 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5662 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5663 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5664   echo $ECHO_N "(cached) $ECHO_C" >&6
5665 else
5666     i=0
5667   teststring="ABCD"
5668
5669   case $build_os in
5670   msdosdjgpp*)
5671     # On DJGPP, this test can blow up pretty badly due to problems in libc
5672     # (any single argument exceeding 2000 bytes causes a buffer overrun
5673     # during glob expansion).  Even if it were fixed, the result of this
5674     # check would be larger than it should be.
5675     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5676     ;;
5677
5678   gnu*)
5679     # Under GNU Hurd, this test is not required because there is
5680     # no limit to the length of command line arguments.
5681     # Libtool will interpret -1 as no limit whatsoever
5682     lt_cv_sys_max_cmd_len=-1;
5683     ;;
5684
5685   cygwin* | mingw*)
5686     # On Win9x/ME, this test blows up -- it succeeds, but takes
5687     # about 5 minutes as the teststring grows exponentially.
5688     # Worse, since 9x/ME are not pre-emptively multitasking,
5689     # you end up with a "frozen" computer, even though with patience
5690     # the test eventually succeeds (with a max line length of 256k).
5691     # Instead, let's just punt: use the minimum linelength reported by
5692     # all of the supported platforms: 8192 (on NT/2K/XP).
5693     lt_cv_sys_max_cmd_len=8192;
5694     ;;
5695
5696   amigaos*)
5697     # On AmigaOS with pdksh, this test takes hours, literally.
5698     # So we just punt and use a minimum line length of 8192.
5699     lt_cv_sys_max_cmd_len=8192;
5700     ;;
5701
5702  *)
5703     # If test is not a shell built-in, we'll probably end up computing a
5704     # maximum length that is only half of the actual maximum length, but
5705     # we can't tell.
5706     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5707                = "XX$teststring") >/dev/null 2>&1 &&
5708             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5709             lt_cv_sys_max_cmd_len=$new_result &&
5710             test $i != 17 # 1/2 MB should be enough
5711     do
5712       i=`expr $i + 1`
5713       teststring=$teststring$teststring
5714     done
5715     teststring=
5716     # Add a significant safety factor because C++ compilers can tack on massive
5717     # amounts of additional arguments before passing them to the linker.
5718     # It appears as though 1/2 is a usable value.
5719     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5720     ;;
5721   esac
5722
5723 fi
5724
5725 if test -n $lt_cv_sys_max_cmd_len ; then
5726   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5727 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5728 else
5729   echo "$as_me:$LINENO: result: none" >&5
5730 echo "${ECHO_T}none" >&6
5731 fi
5732
5733
5734
5735
5736 # Check for command to grab the raw symbol name followed by C symbol from nm.
5737 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5738 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5739 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5740   echo $ECHO_N "(cached) $ECHO_C" >&6
5741 else
5742
5743 # These are sane defaults that work on at least a few old systems.
5744 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5745
5746 # Character class describing NM global symbol codes.
5747 symcode='[BCDEGRST]'
5748
5749 # Regexp to match symbols that can be accessed directly from C.
5750 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5751
5752 # Transform the above into a raw symbol and a C symbol.
5753 symxfrm='\1 \2\3 \3'
5754
5755 # Transform an extracted symbol line into a proper C declaration
5756 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5757
5758 # Transform an extracted symbol line into symbol name and symbol address
5759 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'"
5760
5761 # Define system-specific variables.
5762 case $host_os in
5763 aix*)
5764   symcode='[BCDT]'
5765   ;;
5766 cygwin* | mingw* | pw32*)
5767   symcode='[ABCDGISTW]'
5768   ;;
5769 hpux*) # Its linker distinguishes data from code symbols
5770   if test "$host_cpu" = ia64; then
5771     symcode='[ABCDEGRST]'
5772   fi
5773   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5774   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'"
5775   ;;
5776 irix* | nonstopux*)
5777   symcode='[BCDEGRST]'
5778   ;;
5779 osf*)
5780   symcode='[BCDEGQRST]'
5781   ;;
5782 solaris* | sysv5*)
5783   symcode='[BDRT]'
5784   ;;
5785 sysv4)
5786   symcode='[DFNSTU]'
5787   ;;
5788 esac
5789
5790 # Handle CRLF in mingw tool chain
5791 opt_cr=
5792 case $build_os in
5793 mingw*)
5794   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5795   ;;
5796 esac
5797
5798 # If we're using GNU nm, then use its standard symbol codes.
5799 case `$NM -V 2>&1` in
5800 *GNU* | *'with BFD'*)
5801   symcode='[ABCDGIRSTW]' ;;
5802 esac
5803
5804 # Try without a prefix undercore, then with it.
5805 for ac_symprfx in "" "_"; do
5806
5807   # Write the raw and C identifiers.
5808   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5809
5810   # Check to see that the pipe works correctly.
5811   pipe_works=no
5812
5813   rm -f conftest*
5814   cat > conftest.$ac_ext <<EOF
5815 #ifdef __cplusplus
5816 extern "C" {
5817 #endif
5818 char nm_test_var;
5819 void nm_test_func(){}
5820 #ifdef __cplusplus
5821 }
5822 #endif
5823 int main(){nm_test_var='a';nm_test_func();return(0);}
5824 EOF
5825
5826   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5827   (eval $ac_compile) 2>&5
5828   ac_status=$?
5829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830   (exit $ac_status); }; then
5831     # Now try to grab the symbols.
5832     nlist=conftest.nm
5833     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5834   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5835   ac_status=$?
5836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837   (exit $ac_status); } && test -s "$nlist"; then
5838       # Try sorting and uniquifying the output.
5839       if sort "$nlist" | uniq > "$nlist"T; then
5840         mv -f "$nlist"T "$nlist"
5841       else
5842         rm -f "$nlist"T
5843       fi
5844
5845       # Make sure that we snagged all the symbols we need.
5846       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5847         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5848           cat <<EOF > conftest.$ac_ext
5849 #ifdef __cplusplus
5850 extern "C" {
5851 #endif
5852
5853 EOF
5854           # Now generate the symbol file.
5855           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5856
5857           cat <<EOF >> conftest.$ac_ext
5858 #if defined (__STDC__) && __STDC__
5859 # define lt_ptr_t void *
5860 #else
5861 # define lt_ptr_t char *
5862 # define const
5863 #endif
5864
5865 /* The mapping between symbol names and symbols. */
5866 const struct {
5867   const char *name;
5868   lt_ptr_t address;
5869 }
5870 lt_preloaded_symbols[] =
5871 {
5872 EOF
5873           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5874           cat <<\EOF >> conftest.$ac_ext
5875   {0, (lt_ptr_t) 0}
5876 };
5877
5878 #ifdef __cplusplus
5879 }
5880 #endif
5881 EOF
5882           # Now try linking the two files.
5883           mv conftest.$ac_objext conftstm.$ac_objext
5884           lt_save_LIBS="$LIBS"
5885           lt_save_CFLAGS="$CFLAGS"
5886           LIBS="conftstm.$ac_objext"
5887           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5888           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5889   (eval $ac_link) 2>&5
5890   ac_status=$?
5891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5893             pipe_works=yes
5894           fi
5895           LIBS="$lt_save_LIBS"
5896           CFLAGS="$lt_save_CFLAGS"
5897         else
5898           echo "cannot find nm_test_func in $nlist" >&5
5899         fi
5900       else
5901         echo "cannot find nm_test_var in $nlist" >&5
5902       fi
5903     else
5904       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5905     fi
5906   else
5907     echo "$progname: failed program was:" >&5
5908     cat conftest.$ac_ext >&5
5909   fi
5910   rm -f conftest* conftst*
5911
5912   # Do not use the global_symbol_pipe unless it works.
5913   if test "$pipe_works" = yes; then
5914     break
5915   else
5916     lt_cv_sys_global_symbol_pipe=
5917   fi
5918 done
5919
5920 fi
5921
5922 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5923   lt_cv_sys_global_symbol_to_cdecl=
5924 fi
5925 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5926   echo "$as_me:$LINENO: result: failed" >&5
5927 echo "${ECHO_T}failed" >&6
5928 else
5929   echo "$as_me:$LINENO: result: ok" >&5
5930 echo "${ECHO_T}ok" >&6
5931 fi
5932
5933 echo "$as_me:$LINENO: checking for objdir" >&5
5934 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5935 if test "${lt_cv_objdir+set}" = set; then
5936   echo $ECHO_N "(cached) $ECHO_C" >&6
5937 else
5938   rm -f .libs 2>/dev/null
5939 mkdir .libs 2>/dev/null
5940 if test -d .libs; then
5941   lt_cv_objdir=.libs
5942 else
5943   # MS-DOS does not allow filenames that begin with a dot.
5944   lt_cv_objdir=_libs
5945 fi
5946 rmdir .libs 2>/dev/null
5947 fi
5948 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5949 echo "${ECHO_T}$lt_cv_objdir" >&6
5950 objdir=$lt_cv_objdir
5951
5952
5953
5954
5955
5956 case $host_os in
5957 aix3*)
5958   # AIX sometimes has problems with the GCC collect2 program.  For some
5959   # reason, if we set the COLLECT_NAMES environment variable, the problems
5960   # vanish in a puff of smoke.
5961   if test "X${COLLECT_NAMES+set}" != Xset; then
5962     COLLECT_NAMES=
5963     export COLLECT_NAMES
5964   fi
5965   ;;
5966 esac
5967
5968 # Sed substitution that helps us do robust quoting.  It backslashifies
5969 # metacharacters that are still active within double-quoted strings.
5970 Xsed='sed -e s/^X//'
5971 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5972
5973 # Same as above, but do not quote variable references.
5974 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5975
5976 # Sed substitution to delay expansion of an escaped shell variable in a
5977 # double_quote_subst'ed string.
5978 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5979
5980 # Sed substitution to avoid accidental globbing in evaled expressions
5981 no_glob_subst='s/\*/\\\*/g'
5982
5983 # Constants:
5984 rm="rm -f"
5985
5986 # Global variables:
5987 default_ofile=libtool
5988 can_build_shared=yes
5989
5990 # All known linkers require a `.a' archive for static linking (except M$VC,
5991 # which needs '.lib').
5992 libext=a
5993 ltmain="$ac_aux_dir/ltmain.sh"
5994 ofile="$default_ofile"
5995 with_gnu_ld="$lt_cv_prog_gnu_ld"
5996
5997 if test -n "$ac_tool_prefix"; then
5998   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5999 set dummy ${ac_tool_prefix}ar; ac_word=$2
6000 echo "$as_me:$LINENO: checking for $ac_word" >&5
6001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6002 if test "${ac_cv_prog_AR+set}" = set; then
6003   echo $ECHO_N "(cached) $ECHO_C" >&6
6004 else
6005   if test -n "$AR"; then
6006   ac_cv_prog_AR="$AR" # Let the user override the test.
6007 else
6008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6009 for as_dir in $PATH
6010 do
6011   IFS=$as_save_IFS
6012   test -z "$as_dir" && as_dir=.
6013   for ac_exec_ext in '' $ac_executable_extensions; do
6014   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6015     ac_cv_prog_AR="${ac_tool_prefix}ar"
6016     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6017     break 2
6018   fi
6019 done
6020 done
6021
6022 fi
6023 fi
6024 AR=$ac_cv_prog_AR
6025 if test -n "$AR"; then
6026   echo "$as_me:$LINENO: result: $AR" >&5
6027 echo "${ECHO_T}$AR" >&6
6028 else
6029   echo "$as_me:$LINENO: result: no" >&5
6030 echo "${ECHO_T}no" >&6
6031 fi
6032
6033 fi
6034 if test -z "$ac_cv_prog_AR"; then
6035   ac_ct_AR=$AR
6036   # Extract the first word of "ar", so it can be a program name with args.
6037 set dummy ar; ac_word=$2
6038 echo "$as_me:$LINENO: checking for $ac_word" >&5
6039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6040 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6041   echo $ECHO_N "(cached) $ECHO_C" >&6
6042 else
6043   if test -n "$ac_ct_AR"; then
6044   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6045 else
6046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6047 for as_dir in $PATH
6048 do
6049   IFS=$as_save_IFS
6050   test -z "$as_dir" && as_dir=.
6051   for ac_exec_ext in '' $ac_executable_extensions; do
6052   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6053     ac_cv_prog_ac_ct_AR="ar"
6054     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6055     break 2
6056   fi
6057 done
6058 done
6059
6060   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6061 fi
6062 fi
6063 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6064 if test -n "$ac_ct_AR"; then
6065   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6066 echo "${ECHO_T}$ac_ct_AR" >&6
6067 else
6068   echo "$as_me:$LINENO: result: no" >&5
6069 echo "${ECHO_T}no" >&6
6070 fi
6071
6072   AR=$ac_ct_AR
6073 else
6074   AR="$ac_cv_prog_AR"
6075 fi
6076
6077 if test -n "$ac_tool_prefix"; then
6078   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6079 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6080 echo "$as_me:$LINENO: checking for $ac_word" >&5
6081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6082 if test "${ac_cv_prog_RANLIB+set}" = set; then
6083   echo $ECHO_N "(cached) $ECHO_C" >&6
6084 else
6085   if test -n "$RANLIB"; then
6086   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6087 else
6088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6089 for as_dir in $PATH
6090 do
6091   IFS=$as_save_IFS
6092   test -z "$as_dir" && as_dir=.
6093   for ac_exec_ext in '' $ac_executable_extensions; do
6094   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6095     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6096     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6097     break 2
6098   fi
6099 done
6100 done
6101
6102 fi
6103 fi
6104 RANLIB=$ac_cv_prog_RANLIB
6105 if test -n "$RANLIB"; then
6106   echo "$as_me:$LINENO: result: $RANLIB" >&5
6107 echo "${ECHO_T}$RANLIB" >&6
6108 else
6109   echo "$as_me:$LINENO: result: no" >&5
6110 echo "${ECHO_T}no" >&6
6111 fi
6112
6113 fi
6114 if test -z "$ac_cv_prog_RANLIB"; then
6115   ac_ct_RANLIB=$RANLIB
6116   # Extract the first word of "ranlib", so it can be a program name with args.
6117 set dummy ranlib; ac_word=$2
6118 echo "$as_me:$LINENO: checking for $ac_word" >&5
6119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6120 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6121   echo $ECHO_N "(cached) $ECHO_C" >&6
6122 else
6123   if test -n "$ac_ct_RANLIB"; then
6124   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6125 else
6126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127 for as_dir in $PATH
6128 do
6129   IFS=$as_save_IFS
6130   test -z "$as_dir" && as_dir=.
6131   for ac_exec_ext in '' $ac_executable_extensions; do
6132   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6133     ac_cv_prog_ac_ct_RANLIB="ranlib"
6134     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6135     break 2
6136   fi
6137 done
6138 done
6139
6140   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6141 fi
6142 fi
6143 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6144 if test -n "$ac_ct_RANLIB"; then
6145   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6146 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6147 else
6148   echo "$as_me:$LINENO: result: no" >&5
6149 echo "${ECHO_T}no" >&6
6150 fi
6151
6152   RANLIB=$ac_ct_RANLIB
6153 else
6154   RANLIB="$ac_cv_prog_RANLIB"
6155 fi
6156
6157 if test -n "$ac_tool_prefix"; then
6158   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6159 set dummy ${ac_tool_prefix}strip; ac_word=$2
6160 echo "$as_me:$LINENO: checking for $ac_word" >&5
6161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6162 if test "${ac_cv_prog_STRIP+set}" = set; then
6163   echo $ECHO_N "(cached) $ECHO_C" >&6
6164 else
6165   if test -n "$STRIP"; then
6166   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6167 else
6168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6169 for as_dir in $PATH
6170 do
6171   IFS=$as_save_IFS
6172   test -z "$as_dir" && as_dir=.
6173   for ac_exec_ext in '' $ac_executable_extensions; do
6174   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6175     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6176     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6177     break 2
6178   fi
6179 done
6180 done
6181
6182 fi
6183 fi
6184 STRIP=$ac_cv_prog_STRIP
6185 if test -n "$STRIP"; then
6186   echo "$as_me:$LINENO: result: $STRIP" >&5
6187 echo "${ECHO_T}$STRIP" >&6
6188 else
6189   echo "$as_me:$LINENO: result: no" >&5
6190 echo "${ECHO_T}no" >&6
6191 fi
6192
6193 fi
6194 if test -z "$ac_cv_prog_STRIP"; then
6195   ac_ct_STRIP=$STRIP
6196   # Extract the first word of "strip", so it can be a program name with args.
6197 set dummy strip; ac_word=$2
6198 echo "$as_me:$LINENO: checking for $ac_word" >&5
6199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6200 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6201   echo $ECHO_N "(cached) $ECHO_C" >&6
6202 else
6203   if test -n "$ac_ct_STRIP"; then
6204   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6205 else
6206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6207 for as_dir in $PATH
6208 do
6209   IFS=$as_save_IFS
6210   test -z "$as_dir" && as_dir=.
6211   for ac_exec_ext in '' $ac_executable_extensions; do
6212   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6213     ac_cv_prog_ac_ct_STRIP="strip"
6214     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6215     break 2
6216   fi
6217 done
6218 done
6219
6220   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6221 fi
6222 fi
6223 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6224 if test -n "$ac_ct_STRIP"; then
6225   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6226 echo "${ECHO_T}$ac_ct_STRIP" >&6
6227 else
6228   echo "$as_me:$LINENO: result: no" >&5
6229 echo "${ECHO_T}no" >&6
6230 fi
6231
6232   STRIP=$ac_ct_STRIP
6233 else
6234   STRIP="$ac_cv_prog_STRIP"
6235 fi
6236
6237
6238 old_CC="$CC"
6239 old_CFLAGS="$CFLAGS"
6240
6241 # Set sane defaults for various variables
6242 test -z "$AR" && AR=ar
6243 test -z "$AR_FLAGS" && AR_FLAGS=cru
6244 test -z "$AS" && AS=as
6245 test -z "$CC" && CC=cc
6246 test -z "$LTCC" && LTCC=$CC
6247 test -z "$DLLTOOL" && DLLTOOL=dlltool
6248 test -z "$LD" && LD=ld
6249 test -z "$LN_S" && LN_S="ln -s"
6250 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6251 test -z "$NM" && NM=nm
6252 test -z "$SED" && SED=sed
6253 test -z "$OBJDUMP" && OBJDUMP=objdump
6254 test -z "$RANLIB" && RANLIB=:
6255 test -z "$STRIP" && STRIP=:
6256 test -z "$ac_objext" && ac_objext=o
6257
6258 # Determine commands to create old-style static archives.
6259 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6260 old_postinstall_cmds='chmod 644 $oldlib'
6261 old_postuninstall_cmds=
6262
6263 if test -n "$RANLIB"; then
6264   case $host_os in
6265   openbsd*)
6266     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6267     ;;
6268   *)
6269     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6270     ;;
6271   esac
6272   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6273 fi
6274
6275 # Only perform the check for file, if the check method requires it
6276 case $deplibs_check_method in
6277 file_magic*)
6278   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6279     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6280 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6281 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6282   echo $ECHO_N "(cached) $ECHO_C" >&6
6283 else
6284   case $MAGIC_CMD in
6285 [\\/*] |  ?:[\\/]*)
6286   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6287   ;;
6288 *)
6289   lt_save_MAGIC_CMD="$MAGIC_CMD"
6290   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6291   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6292   for ac_dir in $ac_dummy; do
6293     IFS="$lt_save_ifs"
6294     test -z "$ac_dir" && ac_dir=.
6295     if test -f $ac_dir/${ac_tool_prefix}file; then
6296       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6297       if test -n "$file_magic_test_file"; then
6298         case $deplibs_check_method in
6299         "file_magic "*)
6300           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6301           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6302           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6303             $EGREP "$file_magic_regex" > /dev/null; then
6304             :
6305           else
6306             cat <<EOF 1>&2
6307
6308 *** Warning: the command libtool uses to detect shared libraries,
6309 *** $file_magic_cmd, produces output that libtool cannot recognize.
6310 *** The result is that libtool may fail to recognize shared libraries
6311 *** as such.  This will affect the creation of libtool libraries that
6312 *** depend on shared libraries, but programs linked with such libtool
6313 *** libraries will work regardless of this problem.  Nevertheless, you
6314 *** may want to report the problem to your system manager and/or to
6315 *** bug-libtool@gnu.org
6316
6317 EOF
6318           fi ;;
6319         esac
6320       fi
6321       break
6322     fi
6323   done
6324   IFS="$lt_save_ifs"
6325   MAGIC_CMD="$lt_save_MAGIC_CMD"
6326   ;;
6327 esac
6328 fi
6329
6330 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6331 if test -n "$MAGIC_CMD"; then
6332   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6333 echo "${ECHO_T}$MAGIC_CMD" >&6
6334 else
6335   echo "$as_me:$LINENO: result: no" >&5
6336 echo "${ECHO_T}no" >&6
6337 fi
6338
6339 if test -z "$lt_cv_path_MAGIC_CMD"; then
6340   if test -n "$ac_tool_prefix"; then
6341     echo "$as_me:$LINENO: checking for file" >&5
6342 echo $ECHO_N "checking for file... $ECHO_C" >&6
6343 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6344   echo $ECHO_N "(cached) $ECHO_C" >&6
6345 else
6346   case $MAGIC_CMD in
6347 [\\/*] |  ?:[\\/]*)
6348   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6349   ;;
6350 *)
6351   lt_save_MAGIC_CMD="$MAGIC_CMD"
6352   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6353   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6354   for ac_dir in $ac_dummy; do
6355     IFS="$lt_save_ifs"
6356     test -z "$ac_dir" && ac_dir=.
6357     if test -f $ac_dir/file; then
6358       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6359       if test -n "$file_magic_test_file"; then
6360         case $deplibs_check_method in
6361         "file_magic "*)
6362           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6363           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6364           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6365             $EGREP "$file_magic_regex" > /dev/null; then
6366             :
6367           else
6368             cat <<EOF 1>&2
6369
6370 *** Warning: the command libtool uses to detect shared libraries,
6371 *** $file_magic_cmd, produces output that libtool cannot recognize.
6372 *** The result is that libtool may fail to recognize shared libraries
6373 *** as such.  This will affect the creation of libtool libraries that
6374 *** depend on shared libraries, but programs linked with such libtool
6375 *** libraries will work regardless of this problem.  Nevertheless, you
6376 *** may want to report the problem to your system manager and/or to
6377 *** bug-libtool@gnu.org
6378
6379 EOF
6380           fi ;;
6381         esac
6382       fi
6383       break
6384     fi
6385   done
6386   IFS="$lt_save_ifs"
6387   MAGIC_CMD="$lt_save_MAGIC_CMD"
6388   ;;
6389 esac
6390 fi
6391
6392 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6393 if test -n "$MAGIC_CMD"; then
6394   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6395 echo "${ECHO_T}$MAGIC_CMD" >&6
6396 else
6397   echo "$as_me:$LINENO: result: no" >&5
6398 echo "${ECHO_T}no" >&6
6399 fi
6400
6401   else
6402     MAGIC_CMD=:
6403   fi
6404 fi
6405
6406   fi
6407   ;;
6408 esac
6409
6410 enable_dlopen=yes
6411 enable_win32_dll=no
6412
6413 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6414 if test "${enable_libtool_lock+set}" = set; then
6415   enableval="$enable_libtool_lock"
6416
6417 fi;
6418 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6419
6420
6421 # Check whether --with-pic or --without-pic was given.
6422 if test "${with_pic+set}" = set; then
6423   withval="$with_pic"
6424   pic_mode="$withval"
6425 else
6426   pic_mode=default
6427 fi;
6428 test -z "$pic_mode" && pic_mode=default
6429
6430 # Use C for the default configuration in the libtool script
6431 tagname=
6432 lt_save_CC="$CC"
6433 ac_ext=c
6434 ac_cpp='$CPP $CPPFLAGS'
6435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6438
6439
6440 # Source file extension for C test sources.
6441 ac_ext=c
6442
6443 # Object file extension for compiled C test sources.
6444 objext=o
6445 objext=$objext
6446
6447 # Code to be used in simple compile tests
6448 lt_simple_compile_test_code="int some_variable = 0;\n"
6449
6450 # Code to be used in simple link tests
6451 lt_simple_link_test_code='int main(){return(0);}\n'
6452
6453
6454 # If no C compiler was specified, use CC.
6455 LTCC=${LTCC-"$CC"}
6456
6457 # Allow CC to be a program name with arguments.
6458 compiler=$CC
6459
6460
6461 #
6462 # Check for any special shared library compilation flags.
6463 #
6464 lt_prog_cc_shlib=
6465 if test "$GCC" = no; then
6466   case $host_os in
6467   sco3.2v5*)
6468     lt_prog_cc_shlib='-belf'
6469     ;;
6470   esac
6471 fi
6472 if test -n "$lt_prog_cc_shlib"; then
6473   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6474 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6475   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6476   else
6477     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6478 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6479     lt_cv_prog_cc_can_build_shared=no
6480   fi
6481 fi
6482
6483
6484 #
6485 # Check to make sure the static flag actually works.
6486 #
6487 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6488 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6489 if test "${lt_prog_compiler_static_works+set}" = set; then
6490   echo $ECHO_N "(cached) $ECHO_C" >&6
6491 else
6492   lt_prog_compiler_static_works=no
6493    save_LDFLAGS="$LDFLAGS"
6494    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6495    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6496    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6497      # The compiler can only warn and ignore the option if not recognized
6498      # So say no if there are warnings
6499      if test -s conftest.err; then
6500        # Append any errors to the config.log.
6501        cat conftest.err 1>&5
6502      else
6503        lt_prog_compiler_static_works=yes
6504      fi
6505    fi
6506    $rm conftest*
6507    LDFLAGS="$save_LDFLAGS"
6508
6509 fi
6510 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6511 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6512
6513 if test x"$lt_prog_compiler_static_works" = xyes; then
6514     :
6515 else
6516     lt_prog_compiler_static=
6517 fi
6518
6519
6520
6521
6522 lt_prog_compiler_no_builtin_flag=
6523
6524 if test "$GCC" = yes; then
6525   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6526
6527
6528 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6529 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6530 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6531   echo $ECHO_N "(cached) $ECHO_C" >&6
6532 else
6533   lt_cv_prog_compiler_rtti_exceptions=no
6534   ac_outfile=conftest.$ac_objext
6535    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6536    lt_compiler_flag="-fno-rtti -fno-exceptions"
6537    # Insert the option either (1) after the last *FLAGS variable, or
6538    # (2) before a word containing "conftest.", or (3) at the end.
6539    # Note that $ac_compile itself does not contain backslashes and begins
6540    # with a dollar sign (not a hyphen), so the echo should work correctly.
6541    # The option is referenced via a variable to avoid confusing sed.
6542    lt_compile=`echo "$ac_compile" | $SED \
6543    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6544    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6545    -e 's:$: $lt_compiler_flag:'`
6546    (eval echo "\"\$as_me:6546: $lt_compile\"" >&5)
6547    (eval "$lt_compile" 2>conftest.err)
6548    ac_status=$?
6549    cat conftest.err >&5
6550    echo "$as_me:6550: \$? = $ac_status" >&5
6551    if (exit $ac_status) && test -s "$ac_outfile"; then
6552      # The compiler can only warn and ignore the option if not recognized
6553      # So say no if there are warnings
6554      if test ! -s conftest.err; then
6555        lt_cv_prog_compiler_rtti_exceptions=yes
6556      fi
6557    fi
6558    $rm conftest*
6559
6560 fi
6561 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6562 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6563
6564 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6565     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6566 else
6567     :
6568 fi
6569
6570 fi
6571
6572 lt_prog_compiler_wl=
6573 lt_prog_compiler_pic=
6574 lt_prog_compiler_static=
6575
6576 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6577 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6578
6579   if test "$GCC" = yes; then
6580     lt_prog_compiler_wl='-Wl,'
6581     lt_prog_compiler_static='-static'
6582
6583     case $host_os in
6584       aix*)
6585       # All AIX code is PIC.
6586       if test "$host_cpu" = ia64; then
6587         # AIX 5 now supports IA64 processor
6588         lt_prog_compiler_static='-Bstatic'
6589       fi
6590       ;;
6591
6592     amigaos*)
6593       # FIXME: we need at least 68020 code to build shared libraries, but
6594       # adding the `-m68020' flag to GCC prevents building anything better,
6595       # like `-m68040'.
6596       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6597       ;;
6598
6599     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6600       # PIC is the default for these OSes.
6601       ;;
6602
6603     mingw* | pw32* | os2*)
6604       # This hack is so that the source file can tell whether it is being
6605       # built for inclusion in a dll (and should export symbols for example).
6606       lt_prog_compiler_pic='-DDLL_EXPORT'
6607       ;;
6608
6609     darwin* | rhapsody*)
6610       # PIC is the default on this platform
6611       # Common symbols not allowed in MH_DYLIB files
6612       lt_prog_compiler_pic='-fno-common'
6613       ;;
6614
6615     msdosdjgpp*)
6616       # Just because we use GCC doesn't mean we suddenly get shared libraries
6617       # on systems that don't support them.
6618       lt_prog_compiler_can_build_shared=no
6619       enable_shared=no
6620       ;;
6621
6622     sysv4*MP*)
6623       if test -d /usr/nec; then
6624         lt_prog_compiler_pic=-Kconform_pic
6625       fi
6626       ;;
6627
6628     hpux*)
6629       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6630       # not for PA HP-UX.
6631       case "$host_cpu" in
6632       hppa*64*|ia64*)
6633         # +Z the default
6634         ;;
6635       *)
6636         lt_prog_compiler_pic='-fPIC'
6637         ;;
6638       esac
6639       ;;
6640
6641     *)
6642       lt_prog_compiler_pic='-fPIC'
6643       ;;
6644     esac
6645   else
6646     # PORTME Check for flag to pass linker flags through the system compiler.
6647     case $host_os in
6648     aix*)
6649       lt_prog_compiler_wl='-Wl,'
6650       if test "$host_cpu" = ia64; then
6651         # AIX 5 now supports IA64 processor
6652         lt_prog_compiler_static='-Bstatic'
6653       else
6654         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6655       fi
6656       ;;
6657
6658     mingw* | pw32* | os2*)
6659       # This hack is so that the source file can tell whether it is being
6660       # built for inclusion in a dll (and should export symbols for example).
6661       lt_prog_compiler_pic='-DDLL_EXPORT'
6662       ;;
6663
6664     hpux9* | hpux10* | hpux11*)
6665       lt_prog_compiler_wl='-Wl,'
6666       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6667       # not for PA HP-UX.
6668       case "$host_cpu" in
6669       hppa*64*|ia64*)
6670         # +Z the default
6671         ;;
6672       *)
6673         lt_prog_compiler_pic='+Z'
6674         ;;
6675       esac
6676       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6677       lt_prog_compiler_static='${wl}-a ${wl}archive'
6678       ;;
6679
6680     irix5* | irix6* | nonstopux*)
6681       lt_prog_compiler_wl='-Wl,'
6682       # PIC (with -KPIC) is the default.
6683       lt_prog_compiler_static='-non_shared'
6684       ;;
6685
6686     newsos6)
6687       lt_prog_compiler_pic='-KPIC'
6688       lt_prog_compiler_static='-Bstatic'
6689       ;;
6690
6691     linux*)
6692       case $CC in
6693       icc* | ecc*)
6694         lt_prog_compiler_wl='-Wl,'
6695         lt_prog_compiler_pic='-KPIC'
6696         lt_prog_compiler_static='-static'
6697         ;;
6698       ccc*)
6699         lt_prog_compiler_wl='-Wl,'
6700         # All Alpha code is PIC.
6701         lt_prog_compiler_static='-non_shared'
6702         ;;
6703       esac
6704       ;;
6705
6706     osf3* | osf4* | osf5*)
6707       lt_prog_compiler_wl='-Wl,'
6708       # All OSF/1 code is PIC.
6709       lt_prog_compiler_static='-non_shared'
6710       ;;
6711
6712     sco3.2v5*)
6713       lt_prog_compiler_pic='-Kpic'
6714       lt_prog_compiler_static='-dn'
6715       ;;
6716
6717     solaris*)
6718       lt_prog_compiler_wl='-Wl,'
6719       lt_prog_compiler_pic='-KPIC'
6720       lt_prog_compiler_static='-Bstatic'
6721       ;;
6722
6723     sunos4*)
6724       lt_prog_compiler_wl='-Qoption ld '
6725       lt_prog_compiler_pic='-PIC'
6726       lt_prog_compiler_static='-Bstatic'
6727       ;;
6728
6729     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6730       lt_prog_compiler_wl='-Wl,'
6731       lt_prog_compiler_pic='-KPIC'
6732       lt_prog_compiler_static='-Bstatic'
6733       ;;
6734
6735     sysv4*MP*)
6736       if test -d /usr/nec ;then
6737         lt_prog_compiler_pic='-Kconform_pic'
6738         lt_prog_compiler_static='-Bstatic'
6739       fi
6740       ;;
6741
6742     uts4*)
6743       lt_prog_compiler_pic='-pic'
6744       lt_prog_compiler_static='-Bstatic'
6745       ;;
6746
6747     *)
6748       lt_prog_compiler_can_build_shared=no
6749       ;;
6750     esac
6751   fi
6752
6753 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6754 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6755
6756 #
6757 # Check to make sure the PIC flag actually works.
6758 #
6759 if test -n "$lt_prog_compiler_pic"; then
6760
6761 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6762 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6763 if test "${lt_prog_compiler_pic_works+set}" = set; then
6764   echo $ECHO_N "(cached) $ECHO_C" >&6
6765 else
6766   lt_prog_compiler_pic_works=no
6767   ac_outfile=conftest.$ac_objext
6768    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6769    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6770    # Insert the option either (1) after the last *FLAGS variable, or
6771    # (2) before a word containing "conftest.", or (3) at the end.
6772    # Note that $ac_compile itself does not contain backslashes and begins
6773    # with a dollar sign (not a hyphen), so the echo should work correctly.
6774    # The option is referenced via a variable to avoid confusing sed.
6775    lt_compile=`echo "$ac_compile" | $SED \
6776    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6777    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6778    -e 's:$: $lt_compiler_flag:'`
6779    (eval echo "\"\$as_me:6779: $lt_compile\"" >&5)
6780    (eval "$lt_compile" 2>conftest.err)
6781    ac_status=$?
6782    cat conftest.err >&5
6783    echo "$as_me:6783: \$? = $ac_status" >&5
6784    if (exit $ac_status) && test -s "$ac_outfile"; then
6785      # The compiler can only warn and ignore the option if not recognized
6786      # So say no if there are warnings
6787      if test ! -s conftest.err; then
6788        lt_prog_compiler_pic_works=yes
6789      fi
6790    fi
6791    $rm conftest*
6792
6793 fi
6794 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6795 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6796
6797 if test x"$lt_prog_compiler_pic_works" = xyes; then
6798     case $lt_prog_compiler_pic in
6799      "" | " "*) ;;
6800      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6801      esac
6802 else
6803     lt_prog_compiler_pic=
6804      lt_prog_compiler_can_build_shared=no
6805 fi
6806
6807 fi
6808 case "$host_os" in
6809   # For platforms which do not support PIC, -DPIC is meaningless:
6810   *djgpp*)
6811     lt_prog_compiler_pic=
6812     ;;
6813   *)
6814     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6815     ;;
6816 esac
6817
6818 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6819 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6820 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6821   echo $ECHO_N "(cached) $ECHO_C" >&6
6822 else
6823   lt_cv_prog_compiler_c_o=no
6824    $rm -r conftest 2>/dev/null
6825    mkdir conftest
6826    cd conftest
6827    mkdir out
6828    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6829
6830    lt_compiler_flag="-o out/conftest2.$ac_objext"
6831    # Insert the option either (1) after the last *FLAGS variable, or
6832    # (2) before a word containing "conftest.", or (3) at the end.
6833    # Note that $ac_compile itself does not contain backslashes and begins
6834    # with a dollar sign (not a hyphen), so the echo should work correctly.
6835    lt_compile=`echo "$ac_compile" | $SED \
6836    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6837    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6838    -e 's:$: $lt_compiler_flag:'`
6839    (eval echo "\"\$as_me:6839: $lt_compile\"" >&5)
6840    (eval "$lt_compile" 2>out/conftest.err)
6841    ac_status=$?
6842    cat out/conftest.err >&5
6843    echo "$as_me:6843: \$? = $ac_status" >&5
6844    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6845    then
6846      # The compiler can only warn and ignore the option if not recognized
6847      # So say no if there are warnings
6848      if test ! -s out/conftest.err; then
6849        lt_cv_prog_compiler_c_o=yes
6850      fi
6851    fi
6852    chmod u+w .
6853    $rm conftest*
6854    # SGI C++ compiler will create directory out/ii_files/ for
6855    # template instantiation
6856    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6857    $rm out/* && rmdir out
6858    cd ..
6859    rmdir conftest
6860    $rm conftest*
6861
6862 fi
6863 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6864 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6865
6866
6867 hard_links="nottested"
6868 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6869   # do not overwrite the value of need_locks provided by the user
6870   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6871 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6872   hard_links=yes
6873   $rm conftest*
6874   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6875   touch conftest.a
6876   ln conftest.a conftest.b 2>&5 || hard_links=no
6877   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6878   echo "$as_me:$LINENO: result: $hard_links" >&5
6879 echo "${ECHO_T}$hard_links" >&6
6880   if test "$hard_links" = no; then
6881     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6882 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6883     need_locks=warn
6884   fi
6885 else
6886   need_locks=no
6887 fi
6888
6889 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6890 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6891
6892   runpath_var=
6893   allow_undefined_flag=
6894   enable_shared_with_static_runtimes=no
6895   archive_cmds=
6896   archive_expsym_cmds=
6897   old_archive_From_new_cmds=
6898   old_archive_from_expsyms_cmds=
6899   export_dynamic_flag_spec=
6900   whole_archive_flag_spec=
6901   thread_safe_flag_spec=
6902   hardcode_libdir_flag_spec=
6903   hardcode_libdir_flag_spec_ld=
6904   hardcode_libdir_separator=
6905   hardcode_direct=no
6906   hardcode_minus_L=no
6907   hardcode_shlibpath_var=unsupported
6908   link_all_deplibs=unknown
6909   hardcode_automatic=no
6910   module_cmds=
6911   module_expsym_cmds=
6912   always_export_symbols=no
6913   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6914   # include_expsyms should be a list of space-separated symbols to be *always*
6915   # included in the symbol list
6916   include_expsyms=
6917   # exclude_expsyms can be an extended regexp of symbols to exclude
6918   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6919   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6920   # as well as any symbol that contains `d'.
6921   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6922   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6923   # platforms (ab)use it in PIC code, but their linkers get confused if
6924   # the symbol is explicitly referenced.  Since portable code cannot
6925   # rely on this symbol name, it's probably fine to never include it in
6926   # preloaded symbol tables.
6927   extract_expsyms_cmds=
6928
6929   case $host_os in
6930   cygwin* | mingw* | pw32*)
6931     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6932     # When not using gcc, we currently assume that we are using
6933     # Microsoft Visual C++.
6934     if test "$GCC" != yes; then
6935       with_gnu_ld=no
6936     fi
6937     ;;
6938   openbsd*)
6939     with_gnu_ld=no
6940     ;;
6941   esac
6942
6943   ld_shlibs=yes
6944   if test "$with_gnu_ld" = yes; then
6945     # If archive_cmds runs LD, not CC, wlarc should be empty
6946     wlarc='${wl}'
6947
6948     # See if GNU ld supports shared libraries.
6949     case $host_os in
6950     aix3* | aix4* | aix5*)
6951       # On AIX/PPC, the GNU linker is very broken
6952       if test "$host_cpu" != ia64; then
6953         ld_shlibs=no
6954         cat <<EOF 1>&2
6955
6956 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6957 *** to be unable to reliably create shared libraries on AIX.
6958 *** Therefore, libtool is disabling shared libraries support.  If you
6959 *** really care for shared libraries, you may want to modify your PATH
6960 *** so that a non-GNU linker is found, and then restart.
6961
6962 EOF
6963       fi
6964       ;;
6965
6966     amigaos*)
6967       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)'
6968       hardcode_libdir_flag_spec='-L$libdir'
6969       hardcode_minus_L=yes
6970
6971       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6972       # that the semantics of dynamic libraries on AmigaOS, at least up
6973       # to version 4, is to share data among multiple programs linked
6974       # with the same dynamic library.  Since this doesn't match the
6975       # behavior of shared libraries on other platforms, we can't use
6976       # them.
6977       ld_shlibs=no
6978       ;;
6979
6980     beos*)
6981       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6982         allow_undefined_flag=unsupported
6983         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6984         # support --undefined.  This deserves some investigation.  FIXME
6985         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6986       else
6987         ld_shlibs=no
6988       fi
6989       ;;
6990
6991     cygwin* | mingw* | pw32*)
6992       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6993       # as there is no search path for DLLs.
6994       hardcode_libdir_flag_spec='-L$libdir'
6995       allow_undefined_flag=unsupported
6996       always_export_symbols=no
6997       enable_shared_with_static_runtimes=yes
6998       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6999
7000       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7001         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7002         # If the export-symbols file already is a .def file (1st line
7003         # is EXPORTS), use it as is; otherwise, prepend...
7004         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7005           cp $export_symbols $output_objdir/$soname.def;
7006         else
7007           echo EXPORTS > $output_objdir/$soname.def;
7008           cat $export_symbols >> $output_objdir/$soname.def;
7009         fi~
7010         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
7011       else
7012         ld_shlibs=no
7013       fi
7014       ;;
7015
7016     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7017       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7018         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7019         wlarc=
7020       else
7021         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7022         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7023       fi
7024       ;;
7025
7026     solaris* | sysv5*)
7027       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7028         ld_shlibs=no
7029         cat <<EOF 1>&2
7030
7031 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7032 *** create shared libraries on Solaris systems.  Therefore, libtool
7033 *** is disabling shared libraries support.  We urge you to upgrade GNU
7034 *** binutils to release 2.9.1 or newer.  Another option is to modify
7035 *** your PATH or compiler configuration so that the native linker is
7036 *** used, and then restart.
7037
7038 EOF
7039       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7040         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7041         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7042       else
7043         ld_shlibs=no
7044       fi
7045       ;;
7046
7047     sunos4*)
7048       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7049       wlarc=
7050       hardcode_direct=yes
7051       hardcode_shlibpath_var=no
7052       ;;
7053
7054   linux*)
7055     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7056         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7057         archive_cmds="$tmp_archive_cmds"
7058       supports_anon_versioning=no
7059       case `$LD -v 2>/dev/null` in
7060         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7061         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7062         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7063         *\ 2.11.*) ;; # other 2.11 versions
7064         *) supports_anon_versioning=yes ;;
7065       esac
7066       if test $supports_anon_versioning = yes; then
7067         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7068 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7069 $echo "local: *; };" >> $output_objdir/$libname.ver~
7070         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7071       else
7072         archive_expsym_cmds="$tmp_archive_cmds"
7073       fi
7074       link_all_deplibs=no
7075     else
7076       ld_shlibs=no
7077     fi
7078     ;;
7079
7080     *)
7081       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7082         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7083         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7084       else
7085         ld_shlibs=no
7086       fi
7087       ;;
7088     esac
7089
7090     if test "$ld_shlibs" = yes; then
7091       runpath_var=LD_RUN_PATH
7092       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7093       export_dynamic_flag_spec='${wl}--export-dynamic'
7094       # ancient GNU ld didn't support --whole-archive et. al.
7095       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7096         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7097       else
7098         whole_archive_flag_spec=
7099       fi
7100     fi
7101   else
7102     # PORTME fill in a description of your system's linker (not GNU ld)
7103     case $host_os in
7104     aix3*)
7105       allow_undefined_flag=unsupported
7106       always_export_symbols=yes
7107       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'
7108       # Note: this linker hardcodes the directories in LIBPATH if there
7109       # are no directories specified by -L.
7110       hardcode_minus_L=yes
7111       if test "$GCC" = yes && test -z "$link_static_flag"; then
7112         # Neither direct hardcoding nor static linking is supported with a
7113         # broken collect2.
7114         hardcode_direct=unsupported
7115       fi
7116       ;;
7117
7118     aix4* | aix5*)
7119       if test "$host_cpu" = ia64; then
7120         # On IA64, the linker does run time linking by default, so we don't
7121         # have to do anything special.
7122         aix_use_runtimelinking=no
7123         exp_sym_flag='-Bexport'
7124         no_entry_flag=""
7125       else
7126         # If we're using GNU nm, then we don't want the "-C" option.
7127         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7128         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7129           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'
7130         else
7131           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'
7132         fi
7133         aix_use_runtimelinking=no
7134
7135         # Test if we are trying to use run time linking or normal
7136         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7137         # need to do runtime linking.
7138         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7139           for ld_flag in $LDFLAGS; do
7140           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7141             aix_use_runtimelinking=yes
7142             break
7143           fi
7144           done
7145         esac
7146
7147         exp_sym_flag='-bexport'
7148         no_entry_flag='-bnoentry'
7149       fi
7150
7151       # When large executables or shared objects are built, AIX ld can
7152       # have problems creating the table of contents.  If linking a library
7153       # or program results in "error TOC overflow" add -mminimal-toc to
7154       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7155       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7156
7157       archive_cmds=''
7158       hardcode_direct=yes
7159       hardcode_libdir_separator=':'
7160       link_all_deplibs=yes
7161
7162       if test "$GCC" = yes; then
7163         case $host_os in aix4.012|aix4.012.*)
7164         # We only want to do this on AIX 4.2 and lower, the check
7165         # below for broken collect2 doesn't work under 4.3+
7166           collect2name=`${CC} -print-prog-name=collect2`
7167           if test -f "$collect2name" && \
7168            strings "$collect2name" | grep resolve_lib_name >/dev/null
7169           then
7170           # We have reworked collect2
7171           hardcode_direct=yes
7172           else
7173           # We have old collect2
7174           hardcode_direct=unsupported
7175           # It fails to find uninstalled libraries when the uninstalled
7176           # path is not listed in the libpath.  Setting hardcode_minus_L
7177           # to unsupported forces relinking
7178           hardcode_minus_L=yes
7179           hardcode_libdir_flag_spec='-L$libdir'
7180           hardcode_libdir_separator=
7181           fi
7182         esac
7183         shared_flag='-shared'
7184       else
7185         # not using gcc
7186         if test "$host_cpu" = ia64; then
7187         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7188         # chokes on -Wl,-G. The following line is correct:
7189           shared_flag='-G'
7190         else
7191         if test "$aix_use_runtimelinking" = yes; then
7192             shared_flag='${wl}-G'
7193           else
7194             shared_flag='${wl}-bM:SRE'
7195         fi
7196         fi
7197       fi
7198
7199       # It seems that -bexpall does not export symbols beginning with
7200       # underscore (_), so it is better to generate a list of symbols to export.
7201       always_export_symbols=yes
7202       if test "$aix_use_runtimelinking" = yes; then
7203         # Warning - without using the other runtime loading flags (-brtl),
7204         # -berok will link without error, but may produce a broken library.
7205         allow_undefined_flag='-berok'
7206        # Determine the default libpath from the value encoded in an empty executable.
7207        cat >conftest.$ac_ext <<_ACEOF
7208 /* confdefs.h.  */
7209 _ACEOF
7210 cat confdefs.h >>conftest.$ac_ext
7211 cat >>conftest.$ac_ext <<_ACEOF
7212 /* end confdefs.h.  */
7213
7214 int
7215 main ()
7216 {
7217
7218   ;
7219   return 0;
7220 }
7221 _ACEOF
7222 rm -f conftest.$ac_objext conftest$ac_exeext
7223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7224   (eval $ac_link) 2>conftest.er1
7225   ac_status=$?
7226   grep -v '^ *+' conftest.er1 >conftest.err
7227   rm -f conftest.er1
7228   cat conftest.err >&5
7229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230   (exit $ac_status); } &&
7231          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7233   (eval $ac_try) 2>&5
7234   ac_status=$?
7235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236   (exit $ac_status); }; } &&
7237          { ac_try='test -s conftest$ac_exeext'
7238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7239   (eval $ac_try) 2>&5
7240   ac_status=$?
7241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242   (exit $ac_status); }; }; then
7243
7244 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7245 }'`
7246 # Check for a 64-bit object if we didn't find anything.
7247 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; }
7248 }'`; fi
7249 else
7250   echo "$as_me: failed program was:" >&5
7251 sed 's/^/| /' conftest.$ac_ext >&5
7252
7253 fi
7254 rm -f conftest.err conftest.$ac_objext \
7255       conftest$ac_exeext conftest.$ac_ext
7256 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7257
7258        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7259         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"
7260        else
7261         if test "$host_cpu" = ia64; then
7262           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7263           allow_undefined_flag="-z nodefs"
7264           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"
7265         else
7266          # Determine the default libpath from the value encoded in an empty executable.
7267          cat >conftest.$ac_ext <<_ACEOF
7268 /* confdefs.h.  */
7269 _ACEOF
7270 cat confdefs.h >>conftest.$ac_ext
7271 cat >>conftest.$ac_ext <<_ACEOF
7272 /* end confdefs.h.  */
7273
7274 int
7275 main ()
7276 {
7277
7278   ;
7279   return 0;
7280 }
7281 _ACEOF
7282 rm -f conftest.$ac_objext conftest$ac_exeext
7283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7284   (eval $ac_link) 2>conftest.er1
7285   ac_status=$?
7286   grep -v '^ *+' conftest.er1 >conftest.err
7287   rm -f conftest.er1
7288   cat conftest.err >&5
7289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290   (exit $ac_status); } &&
7291          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7293   (eval $ac_try) 2>&5
7294   ac_status=$?
7295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296   (exit $ac_status); }; } &&
7297          { ac_try='test -s conftest$ac_exeext'
7298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7299   (eval $ac_try) 2>&5
7300   ac_status=$?
7301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302   (exit $ac_status); }; }; then
7303
7304 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7305 }'`
7306 # Check for a 64-bit object if we didn't find anything.
7307 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; }
7308 }'`; fi
7309 else
7310   echo "$as_me: failed program was:" >&5
7311 sed 's/^/| /' conftest.$ac_ext >&5
7312
7313 fi
7314 rm -f conftest.err conftest.$ac_objext \
7315       conftest$ac_exeext conftest.$ac_ext
7316 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7317
7318          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7319           # Warning - without using the other run time loading flags,
7320           # -berok will link without error, but may produce a broken library.
7321           no_undefined_flag=' ${wl}-bernotok'
7322           allow_undefined_flag=' ${wl}-berok'
7323           # -bexpall does not export symbols beginning with underscore (_)
7324           always_export_symbols=yes
7325           # Exported symbols can be pulled into shared objects from archives
7326           whole_archive_flag_spec=' '
7327           archive_cmds_need_lc=yes
7328           # This is similar to how AIX traditionally builds it's shared libraries.
7329           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'
7330         fi
7331       fi
7332       ;;
7333
7334     amigaos*)
7335       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)'
7336       hardcode_libdir_flag_spec='-L$libdir'
7337       hardcode_minus_L=yes
7338       # see comment about different semantics on the GNU ld section
7339       ld_shlibs=no
7340       ;;
7341
7342     bsdi4*)
7343       export_dynamic_flag_spec=-rdynamic
7344       ;;
7345
7346     cygwin* | mingw* | pw32*)
7347       # When not using gcc, we currently assume that we are using
7348       # Microsoft Visual C++.
7349       # hardcode_libdir_flag_spec is actually meaningless, as there is
7350       # no search path for DLLs.
7351       hardcode_libdir_flag_spec=' '
7352       allow_undefined_flag=unsupported
7353       # Tell ltmain to make .lib files, not .a files.
7354       libext=lib
7355       # Tell ltmain to make .dll files, not .so files.
7356       shrext_cmds=".dll"
7357       # FIXME: Setting linknames here is a bad hack.
7358       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7359       # The linker will automatically build a .lib file if we build a DLL.
7360       old_archive_From_new_cmds='true'
7361       # FIXME: Should let the user specify the lib program.
7362       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7363       fix_srcfile_path='`cygpath -w "$srcfile"`'
7364       enable_shared_with_static_runtimes=yes
7365       ;;
7366
7367     darwin* | rhapsody*)
7368     if test "$GXX" = yes ; then
7369       archive_cmds_need_lc=no
7370       case "$host_os" in
7371       rhapsody* | darwin1.[012])
7372         allow_undefined_flag='-undefined suppress'
7373         ;;
7374       *) # Darwin 1.3 on
7375       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7376         allow_undefined_flag='-flat_namespace -undefined suppress'
7377       else
7378         case ${MACOSX_DEPLOYMENT_TARGET} in
7379           10.[012])
7380             allow_undefined_flag='-flat_namespace -undefined suppress'
7381             ;;
7382           10.*)
7383             allow_undefined_flag='-undefined dynamic_lookup'
7384             ;;
7385         esac
7386       fi
7387         ;;
7388       esac
7389         lt_int_apple_cc_single_mod=no
7390         output_verbose_link_cmd='echo'
7391         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7392           lt_int_apple_cc_single_mod=yes
7393         fi
7394         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7395           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7396         else
7397         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'
7398       fi
7399       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7400       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7401         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7402           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}'
7403         else
7404           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}'
7405         fi
7406           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}'
7407       hardcode_direct=no
7408       hardcode_automatic=yes
7409       hardcode_shlibpath_var=unsupported
7410       whole_archive_flag_spec='-all_load $convenience'
7411       link_all_deplibs=yes
7412     else
7413       ld_shlibs=no
7414     fi
7415       ;;
7416
7417     dgux*)
7418       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7419       hardcode_libdir_flag_spec='-L$libdir'
7420       hardcode_shlibpath_var=no
7421       ;;
7422
7423     freebsd1*)
7424       ld_shlibs=no
7425       ;;
7426
7427     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7428     # support.  Future versions do this automatically, but an explicit c++rt0.o
7429     # does not break anything, and helps significantly (at the cost of a little
7430     # extra space).
7431     freebsd2.2*)
7432       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7433       hardcode_libdir_flag_spec='-R$libdir'
7434       hardcode_direct=yes
7435       hardcode_shlibpath_var=no
7436       ;;
7437
7438     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7439     freebsd2*)
7440       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7441       hardcode_direct=yes
7442       hardcode_minus_L=yes
7443       hardcode_shlibpath_var=no
7444       ;;
7445
7446     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7447     freebsd* | kfreebsd*-gnu)
7448       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7449       hardcode_libdir_flag_spec='-R$libdir'
7450       hardcode_direct=yes
7451       hardcode_shlibpath_var=no
7452       ;;
7453
7454     hpux9*)
7455       if test "$GCC" = yes; then
7456         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'
7457       else
7458         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'
7459       fi
7460       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7461       hardcode_libdir_separator=:
7462       hardcode_direct=yes
7463
7464       # hardcode_minus_L: Not really in the search PATH,
7465       # but as the default location of the library.
7466       hardcode_minus_L=yes
7467       export_dynamic_flag_spec='${wl}-E'
7468       ;;
7469
7470     hpux10* | hpux11*)
7471       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7472         case "$host_cpu" in
7473         hppa*64*|ia64*)
7474           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7475           ;;
7476         *)
7477           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7478           ;;
7479         esac
7480       else
7481         case "$host_cpu" in
7482         hppa*64*|ia64*)
7483           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7484           ;;
7485         *)
7486           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7487           ;;
7488         esac
7489       fi
7490       if test "$with_gnu_ld" = no; then
7491         case "$host_cpu" in
7492         hppa*64*)
7493           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7494           hardcode_libdir_flag_spec_ld='+b $libdir'
7495           hardcode_libdir_separator=:
7496           hardcode_direct=no
7497           hardcode_shlibpath_var=no
7498           ;;
7499         ia64*)
7500           hardcode_libdir_flag_spec='-L$libdir'
7501           hardcode_direct=no
7502           hardcode_shlibpath_var=no
7503
7504           # hardcode_minus_L: Not really in the search PATH,
7505           # but as the default location of the library.
7506           hardcode_minus_L=yes
7507           ;;
7508         *)
7509           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7510           hardcode_libdir_separator=:
7511           hardcode_direct=yes
7512           export_dynamic_flag_spec='${wl}-E'
7513
7514           # hardcode_minus_L: Not really in the search PATH,
7515           # but as the default location of the library.
7516           hardcode_minus_L=yes
7517           ;;
7518         esac
7519       fi
7520       ;;
7521
7522     irix5* | irix6* | nonstopux*)
7523       if test "$GCC" = yes; then
7524         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'
7525       else
7526         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'
7527         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7528       fi
7529       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7530       hardcode_libdir_separator=:
7531       link_all_deplibs=yes
7532       ;;
7533
7534     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7535       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7536         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7537       else
7538         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7539       fi
7540       hardcode_libdir_flag_spec='-R$libdir'
7541       hardcode_direct=yes
7542       hardcode_shlibpath_var=no
7543       ;;
7544
7545     newsos6)
7546       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7547       hardcode_direct=yes
7548       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7549       hardcode_libdir_separator=:
7550       hardcode_shlibpath_var=no
7551       ;;
7552
7553     openbsd*)
7554       hardcode_direct=yes
7555       hardcode_shlibpath_var=no
7556       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7557         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7558         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7559         export_dynamic_flag_spec='${wl}-E'
7560       else
7561        case $host_os in
7562          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7563            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7564            hardcode_libdir_flag_spec='-R$libdir'
7565            ;;
7566          *)
7567            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7568            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7569            ;;
7570        esac
7571       fi
7572       ;;
7573
7574     os2*)
7575       hardcode_libdir_flag_spec='-L$libdir'
7576       hardcode_minus_L=yes
7577       allow_undefined_flag=unsupported
7578       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'
7579       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7580       ;;
7581
7582     osf3*)
7583       if test "$GCC" = yes; then
7584         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7585         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'
7586       else
7587         allow_undefined_flag=' -expect_unresolved \*'
7588         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'
7589       fi
7590       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7591       hardcode_libdir_separator=:
7592       ;;
7593
7594     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7595       if test "$GCC" = yes; then
7596         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7597         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'
7598         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7599       else
7600         allow_undefined_flag=' -expect_unresolved \*'
7601         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'
7602         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7603         $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'
7604
7605         # Both c and cxx compiler support -rpath directly
7606         hardcode_libdir_flag_spec='-rpath $libdir'
7607       fi
7608       hardcode_libdir_separator=:
7609       ;;
7610
7611     sco3.2v5*)
7612       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7613       hardcode_shlibpath_var=no
7614       export_dynamic_flag_spec='${wl}-Bexport'
7615       runpath_var=LD_RUN_PATH
7616       hardcode_runpath_var=yes
7617       ;;
7618
7619     solaris*)
7620       no_undefined_flag=' -z text'
7621       if test "$GCC" = yes; then
7622         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7623         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7624           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7625       else
7626         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7627         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7628         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7629       fi
7630       hardcode_libdir_flag_spec='-R$libdir'
7631       hardcode_shlibpath_var=no
7632       case $host_os in
7633       solaris2.[0-5] | solaris2.[0-5].*) ;;
7634       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7635         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7636       esac
7637       link_all_deplibs=yes
7638       ;;
7639
7640     sunos4*)
7641       if test "x$host_vendor" = xsequent; then
7642         # Use $CC to link under sequent, because it throws in some extra .o
7643         # files that make .init and .fini sections work.
7644         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7645       else
7646         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7647       fi
7648       hardcode_libdir_flag_spec='-L$libdir'
7649       hardcode_direct=yes
7650       hardcode_minus_L=yes
7651       hardcode_shlibpath_var=no
7652       ;;
7653
7654     sysv4)
7655       case $host_vendor in
7656         sni)
7657           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7658           hardcode_direct=yes # is this really true???
7659         ;;
7660         siemens)
7661           ## LD is ld it makes a PLAMLIB
7662           ## CC just makes a GrossModule.
7663           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7664           reload_cmds='$CC -r -o $output$reload_objs'
7665           hardcode_direct=no
7666         ;;
7667         motorola)
7668           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7669           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7670         ;;
7671       esac
7672       runpath_var='LD_RUN_PATH'
7673       hardcode_shlibpath_var=no
7674       ;;
7675
7676     sysv4.3*)
7677       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7678       hardcode_shlibpath_var=no
7679       export_dynamic_flag_spec='-Bexport'
7680       ;;
7681
7682     sysv4*MP*)
7683       if test -d /usr/nec; then
7684         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7685         hardcode_shlibpath_var=no
7686         runpath_var=LD_RUN_PATH
7687         hardcode_runpath_var=yes
7688         ld_shlibs=yes
7689       fi
7690       ;;
7691
7692     sysv4.2uw2*)
7693       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7694       hardcode_direct=yes
7695       hardcode_minus_L=no
7696       hardcode_shlibpath_var=no
7697       hardcode_runpath_var=yes
7698       runpath_var=LD_RUN_PATH
7699       ;;
7700
7701    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7702       no_undefined_flag='${wl}-z ${wl}text'
7703       if test "$GCC" = yes; then
7704         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7705       else
7706         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7707       fi
7708       runpath_var='LD_RUN_PATH'
7709       hardcode_shlibpath_var=no
7710       ;;
7711
7712     sysv5*)
7713       no_undefined_flag=' -z text'
7714       # $CC -shared without GNU ld will not create a library from C++
7715       # object files and a static libstdc++, better avoid it by now
7716       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7717       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7718                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7719       hardcode_libdir_flag_spec=
7720       hardcode_shlibpath_var=no
7721       runpath_var='LD_RUN_PATH'
7722       ;;
7723
7724     uts4*)
7725       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7726       hardcode_libdir_flag_spec='-L$libdir'
7727       hardcode_shlibpath_var=no
7728       ;;
7729
7730     *)
7731       ld_shlibs=no
7732       ;;
7733     esac
7734   fi
7735
7736 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7737 echo "${ECHO_T}$ld_shlibs" >&6
7738 test "$ld_shlibs" = no && can_build_shared=no
7739
7740 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7741 if test "$GCC" = yes; then
7742   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7743 fi
7744
7745 #
7746 # Do we need to explicitly link libc?
7747 #
7748 case "x$archive_cmds_need_lc" in
7749 x|xyes)
7750   # Assume -lc should be added
7751   archive_cmds_need_lc=yes
7752
7753   if test "$enable_shared" = yes && test "$GCC" = yes; then
7754     case $archive_cmds in
7755     *'~'*)
7756       # FIXME: we may have to deal with multi-command sequences.
7757       ;;
7758     '$CC '*)
7759       # Test whether the compiler implicitly links with -lc since on some
7760       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7761       # to ld, don't add -lc before -lgcc.
7762       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7763 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7764       $rm conftest*
7765       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7766
7767       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7768   (eval $ac_compile) 2>&5
7769   ac_status=$?
7770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771   (exit $ac_status); } 2>conftest.err; then
7772         soname=conftest
7773         lib=conftest
7774         libobjs=conftest.$ac_objext
7775         deplibs=
7776         wl=$lt_prog_compiler_wl
7777         compiler_flags=-v
7778         linker_flags=-v
7779         verstring=
7780         output_objdir=.
7781         libname=conftest
7782         lt_save_allow_undefined_flag=$allow_undefined_flag
7783         allow_undefined_flag=
7784         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7785   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7786   ac_status=$?
7787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788   (exit $ac_status); }
7789         then
7790           archive_cmds_need_lc=no
7791         else
7792           archive_cmds_need_lc=yes
7793         fi
7794         allow_undefined_flag=$lt_save_allow_undefined_flag
7795       else
7796         cat conftest.err 1>&5
7797       fi
7798       $rm conftest*
7799       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7800 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7801       ;;
7802     esac
7803   fi
7804   ;;
7805 esac
7806
7807 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7808 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7809 library_names_spec=
7810 libname_spec='lib$name'
7811 soname_spec=
7812 shrext_cmds=".so"
7813 postinstall_cmds=
7814 postuninstall_cmds=
7815 finish_cmds=
7816 finish_eval=
7817 shlibpath_var=
7818 shlibpath_overrides_runpath=unknown
7819 version_type=none
7820 dynamic_linker="$host_os ld.so"
7821 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7822 if test "$GCC" = yes; then
7823   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7824   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7825     # if the path contains ";" then we assume it to be the separator
7826     # otherwise default to the standard path separator (i.e. ":") - it is
7827     # assumed that no part of a normal pathname contains ";" but that should
7828     # okay in the real world where ";" in dirpaths is itself problematic.
7829     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7830   else
7831     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7832   fi
7833 else
7834   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7835 fi
7836 need_lib_prefix=unknown
7837 hardcode_into_libs=no
7838
7839 # when you set need_version to no, make sure it does not cause -set_version
7840 # flags to be left without arguments
7841 need_version=unknown
7842
7843 case $host_os in
7844 aix3*)
7845   version_type=linux
7846   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7847   shlibpath_var=LIBPATH
7848
7849   # AIX 3 has no versioning support, so we append a major version to the name.
7850   soname_spec='${libname}${release}${shared_ext}$major'
7851   ;;
7852
7853 aix4* | aix5*)
7854   version_type=linux
7855   need_lib_prefix=no
7856   need_version=no
7857   hardcode_into_libs=yes
7858   if test "$host_cpu" = ia64; then
7859     # AIX 5 supports IA64
7860     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7861     shlibpath_var=LD_LIBRARY_PATH
7862   else
7863     # With GCC up to 2.95.x, collect2 would create an import file
7864     # for dependence libraries.  The import file would start with
7865     # the line `#! .'.  This would cause the generated library to
7866     # depend on `.', always an invalid library.  This was fixed in
7867     # development snapshots of GCC prior to 3.0.
7868     case $host_os in
7869       aix4 | aix4.[01] | aix4.[01].*)
7870       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7871            echo ' yes '
7872            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7873         :
7874       else
7875         can_build_shared=no
7876       fi
7877       ;;
7878     esac
7879     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7880     # soname into executable. Probably we can add versioning support to
7881     # collect2, so additional links can be useful in future.
7882     if test "$aix_use_runtimelinking" = yes; then
7883       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7884       # instead of lib<name>.a to let people know that these are not
7885       # typical AIX shared libraries.
7886       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7887     else
7888       # We preserve .a as extension for shared libraries through AIX4.2
7889       # and later when we are not doing run time linking.
7890       library_names_spec='${libname}${release}.a $libname.a'
7891       soname_spec='${libname}${release}${shared_ext}$major'
7892     fi
7893     shlibpath_var=LIBPATH
7894   fi
7895   ;;
7896
7897 amigaos*)
7898   library_names_spec='$libname.ixlibrary $libname.a'
7899   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7900   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'
7901   ;;
7902
7903 beos*)
7904   library_names_spec='${libname}${shared_ext}'
7905   dynamic_linker="$host_os ld.so"
7906   shlibpath_var=LIBRARY_PATH
7907   ;;
7908
7909 bsdi4*)
7910   version_type=linux
7911   need_version=no
7912   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7913   soname_spec='${libname}${release}${shared_ext}$major'
7914   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7915   shlibpath_var=LD_LIBRARY_PATH
7916   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7917   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7918   # the default ld.so.conf also contains /usr/contrib/lib and
7919   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7920   # libtool to hard-code these into programs
7921   ;;
7922
7923 cygwin* | mingw* | pw32*)
7924   version_type=windows
7925   shrext_cmds=".dll"
7926   need_version=no
7927   need_lib_prefix=no
7928
7929   case $GCC,$host_os in
7930   yes,cygwin* | yes,mingw* | yes,pw32*)
7931     library_names_spec='$libname.dll.a'
7932     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7933     postinstall_cmds='base_file=`basename \${file}`~
7934       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7935       dldir=$destdir/`dirname \$dlpath`~
7936       test -d \$dldir || mkdir -p \$dldir~
7937       $install_prog $dir/$dlname \$dldir/$dlname'
7938     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7939       dlpath=$dir/\$dldll~
7940        $rm \$dlpath'
7941     shlibpath_overrides_runpath=yes
7942
7943     case $host_os in
7944     cygwin*)
7945       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7946       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7947       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7948       ;;
7949     mingw*)
7950       # MinGW DLLs use traditional 'lib' prefix
7951       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7952       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7953       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7954         # It is most probably a Windows format PATH printed by
7955         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7956         # path with ; separators, and with drive letters. We can handle the
7957         # drive letters (cygwin fileutils understands them), so leave them,
7958         # especially as we might pass files found there to a mingw objdump,
7959         # which wouldn't understand a cygwinified path. Ahh.
7960         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7961       else
7962         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7963       fi
7964       ;;
7965     pw32*)
7966       # pw32 DLLs use 'pw' prefix rather than 'lib'
7967       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7968       ;;
7969     esac
7970     ;;
7971
7972   *)
7973     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7974     ;;
7975   esac
7976   dynamic_linker='Win32 ld.exe'
7977   # FIXME: first we should search . and the directory the executable is in
7978   shlibpath_var=PATH
7979   ;;
7980
7981 darwin* | rhapsody*)
7982   dynamic_linker="$host_os dyld"
7983   version_type=darwin
7984   need_lib_prefix=no
7985   need_version=no
7986   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7987   soname_spec='${libname}${release}${major}$shared_ext'
7988   shlibpath_overrides_runpath=yes
7989   shlibpath_var=DYLD_LIBRARY_PATH
7990   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7991   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7992   if test "$GCC" = yes; then
7993     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"`
7994   else
7995     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7996   fi
7997   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7998   ;;
7999
8000 dgux*)
8001   version_type=linux
8002   need_lib_prefix=no
8003   need_version=no
8004   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8005   soname_spec='${libname}${release}${shared_ext}$major'
8006   shlibpath_var=LD_LIBRARY_PATH
8007   ;;
8008
8009 freebsd1*)
8010   dynamic_linker=no
8011   ;;
8012
8013 kfreebsd*-gnu)
8014   version_type=linux
8015   need_lib_prefix=no
8016   need_version=no
8017   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8018   soname_spec='${libname}${release}${shared_ext}$major'
8019   shlibpath_var=LD_LIBRARY_PATH
8020   shlibpath_overrides_runpath=no
8021   hardcode_into_libs=yes
8022   dynamic_linker='GNU ld.so'
8023   ;;
8024
8025 freebsd*)
8026   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8027   version_type=freebsd-$objformat
8028   case $version_type in
8029     freebsd-elf*)
8030       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8031       need_version=no
8032       need_lib_prefix=no
8033       ;;
8034     freebsd-*)
8035       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8036       need_version=yes
8037       ;;
8038   esac
8039   shlibpath_var=LD_LIBRARY_PATH
8040   case $host_os in
8041   freebsd2*)
8042     shlibpath_overrides_runpath=yes
8043     ;;
8044   freebsd3.01* | freebsdelf3.01*)
8045     shlibpath_overrides_runpath=yes
8046     hardcode_into_libs=yes
8047     ;;
8048   *) # from 3.2 on
8049     shlibpath_overrides_runpath=no
8050     hardcode_into_libs=yes
8051     ;;
8052   esac
8053   ;;
8054
8055 gnu*)
8056   version_type=linux
8057   need_lib_prefix=no
8058   need_version=no
8059   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8060   soname_spec='${libname}${release}${shared_ext}$major'
8061   shlibpath_var=LD_LIBRARY_PATH
8062   hardcode_into_libs=yes
8063   ;;
8064
8065 hpux9* | hpux10* | hpux11*)
8066   # Give a soname corresponding to the major version so that dld.sl refuses to
8067   # link against other versions.
8068   version_type=sunos
8069   need_lib_prefix=no
8070   need_version=no
8071   case "$host_cpu" in
8072   ia64*)
8073     shrext_cmds='.so'
8074     hardcode_into_libs=yes
8075     dynamic_linker="$host_os dld.so"
8076     shlibpath_var=LD_LIBRARY_PATH
8077     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8078     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8079     soname_spec='${libname}${release}${shared_ext}$major'
8080     if test "X$HPUX_IA64_MODE" = X32; then
8081       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8082     else
8083       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8084     fi
8085     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8086     ;;
8087    hppa*64*)
8088      shrext_cmds='.sl'
8089      hardcode_into_libs=yes
8090      dynamic_linker="$host_os dld.sl"
8091      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8092      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8093      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8094      soname_spec='${libname}${release}${shared_ext}$major'
8095      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8096      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8097      ;;
8098    *)
8099     shrext_cmds='.sl'
8100     dynamic_linker="$host_os dld.sl"
8101     shlibpath_var=SHLIB_PATH
8102     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8103     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8104     soname_spec='${libname}${release}${shared_ext}$major'
8105     ;;
8106   esac
8107   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8108   postinstall_cmds='chmod 555 $lib'
8109   ;;
8110
8111 irix5* | irix6* | nonstopux*)
8112   case $host_os in
8113     nonstopux*) version_type=nonstopux ;;
8114     *)
8115         if test "$lt_cv_prog_gnu_ld" = yes; then
8116                 version_type=linux
8117         else
8118                 version_type=irix
8119         fi ;;
8120   esac
8121   need_lib_prefix=no
8122   need_version=no
8123   soname_spec='${libname}${release}${shared_ext}$major'
8124   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8125   case $host_os in
8126   irix5* | nonstopux*)
8127     libsuff= shlibsuff=
8128     ;;
8129   *)
8130     case $LD in # libtool.m4 will add one of these switches to LD
8131     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8132       libsuff= shlibsuff= libmagic=32-bit;;
8133     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8134       libsuff=32 shlibsuff=N32 libmagic=N32;;
8135     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8136       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8137     *) libsuff= shlibsuff= libmagic=never-match;;
8138     esac
8139     ;;
8140   esac
8141   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8142   shlibpath_overrides_runpath=no
8143   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8144   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8145   hardcode_into_libs=yes
8146   ;;
8147
8148 # No shared lib support for Linux oldld, aout, or coff.
8149 linux*oldld* | linux*aout* | linux*coff*)
8150   dynamic_linker=no
8151   ;;
8152
8153 # This must be Linux ELF.
8154 linux*)
8155   version_type=linux
8156   need_lib_prefix=no
8157   need_version=no
8158   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8159   soname_spec='${libname}${release}${shared_ext}$major'
8160   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8161   shlibpath_var=LD_LIBRARY_PATH
8162   shlibpath_overrides_runpath=no
8163   # This implies no fast_install, which is unacceptable.
8164   # Some rework will be needed to allow for fast_install
8165   # before this can be enabled.
8166   hardcode_into_libs=yes
8167
8168   # Append ld.so.conf contents to the search path
8169   if test -f /etc/ld.so.conf; then
8170     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
8171     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8172   fi
8173
8174   # We used to test for /lib/ld.so.1 and disable shared libraries on
8175   # powerpc, because MkLinux only supported shared libraries with the
8176   # GNU dynamic linker.  Since this was broken with cross compilers,
8177   # most powerpc-linux boxes support dynamic linking these days and
8178   # people can always --disable-shared, the test was removed, and we
8179   # assume the GNU/Linux dynamic linker is in use.
8180   dynamic_linker='GNU/Linux ld.so'
8181   ;;
8182
8183 netbsdelf*-gnu)
8184   version_type=linux
8185   need_lib_prefix=no
8186   need_version=no
8187   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8188   soname_spec='${libname}${release}${shared_ext}$major'
8189   shlibpath_var=LD_LIBRARY_PATH
8190   shlibpath_overrides_runpath=no
8191   hardcode_into_libs=yes
8192   dynamic_linker='NetBSD ld.elf_so'
8193   ;;
8194
8195 knetbsd*-gnu)
8196   version_type=linux
8197   need_lib_prefix=no
8198   need_version=no
8199   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8200   soname_spec='${libname}${release}${shared_ext}$major'
8201   shlibpath_var=LD_LIBRARY_PATH
8202   shlibpath_overrides_runpath=no
8203   hardcode_into_libs=yes
8204   dynamic_linker='GNU ld.so'
8205   ;;
8206
8207 netbsd*)
8208   version_type=sunos
8209   need_lib_prefix=no
8210   need_version=no
8211   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8212     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8213     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8214     dynamic_linker='NetBSD (a.out) ld.so'
8215   else
8216     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8217     soname_spec='${libname}${release}${shared_ext}$major'
8218     dynamic_linker='NetBSD ld.elf_so'
8219   fi
8220   shlibpath_var=LD_LIBRARY_PATH
8221   shlibpath_overrides_runpath=yes
8222   hardcode_into_libs=yes
8223   ;;
8224
8225 newsos6)
8226   version_type=linux
8227   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8228   shlibpath_var=LD_LIBRARY_PATH
8229   shlibpath_overrides_runpath=yes
8230   ;;
8231
8232 nto-qnx*)
8233   version_type=linux
8234   need_lib_prefix=no
8235   need_version=no
8236   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8237   soname_spec='${libname}${release}${shared_ext}$major'
8238   shlibpath_var=LD_LIBRARY_PATH
8239   shlibpath_overrides_runpath=yes
8240   ;;
8241
8242 openbsd*)
8243   version_type=sunos
8244   need_lib_prefix=no
8245   need_version=yes
8246   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8247   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8248   shlibpath_var=LD_LIBRARY_PATH
8249   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8250     case $host_os in
8251       openbsd2.[89] | openbsd2.[89].*)
8252         shlibpath_overrides_runpath=no
8253         ;;
8254       *)
8255         shlibpath_overrides_runpath=yes
8256         ;;
8257       esac
8258   else
8259     shlibpath_overrides_runpath=yes
8260   fi
8261   ;;
8262
8263 os2*)
8264   libname_spec='$name'
8265   shrext_cmds=".dll"
8266   need_lib_prefix=no
8267   library_names_spec='$libname${shared_ext} $libname.a'
8268   dynamic_linker='OS/2 ld.exe'
8269   shlibpath_var=LIBPATH
8270   ;;
8271
8272 osf3* | osf4* | osf5*)
8273   version_type=osf
8274   need_lib_prefix=no
8275   need_version=no
8276   soname_spec='${libname}${release}${shared_ext}$major'
8277   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8278   shlibpath_var=LD_LIBRARY_PATH
8279   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8280   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8281   ;;
8282
8283 sco3.2v5*)
8284   version_type=osf
8285   soname_spec='${libname}${release}${shared_ext}$major'
8286   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8287   shlibpath_var=LD_LIBRARY_PATH
8288   ;;
8289
8290 solaris*)
8291   version_type=linux
8292   need_lib_prefix=no
8293   need_version=no
8294   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8295   soname_spec='${libname}${release}${shared_ext}$major'
8296   shlibpath_var=LD_LIBRARY_PATH
8297   shlibpath_overrides_runpath=yes
8298   hardcode_into_libs=yes
8299   # ldd complains unless libraries are executable
8300   postinstall_cmds='chmod +x $lib'
8301   ;;
8302
8303 sunos4*)
8304   version_type=sunos
8305   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8306   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8307   shlibpath_var=LD_LIBRARY_PATH
8308   shlibpath_overrides_runpath=yes
8309   if test "$with_gnu_ld" = yes; then
8310     need_lib_prefix=no
8311   fi
8312   need_version=yes
8313   ;;
8314
8315 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8316   version_type=linux
8317   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8318   soname_spec='${libname}${release}${shared_ext}$major'
8319   shlibpath_var=LD_LIBRARY_PATH
8320   case $host_vendor in
8321     sni)
8322       shlibpath_overrides_runpath=no
8323       need_lib_prefix=no
8324       export_dynamic_flag_spec='${wl}-Blargedynsym'
8325       runpath_var=LD_RUN_PATH
8326       ;;
8327     siemens)
8328       need_lib_prefix=no
8329       ;;
8330     motorola)
8331       need_lib_prefix=no
8332       need_version=no
8333       shlibpath_overrides_runpath=no
8334       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8335       ;;
8336   esac
8337   ;;
8338
8339 sysv4*MP*)
8340   if test -d /usr/nec ;then
8341     version_type=linux
8342     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8343     soname_spec='$libname${shared_ext}.$major'
8344     shlibpath_var=LD_LIBRARY_PATH
8345   fi
8346   ;;
8347
8348 uts4*)
8349   version_type=linux
8350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8351   soname_spec='${libname}${release}${shared_ext}$major'
8352   shlibpath_var=LD_LIBRARY_PATH
8353   ;;
8354
8355 *)
8356   dynamic_linker=no
8357   ;;
8358 esac
8359 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8360 echo "${ECHO_T}$dynamic_linker" >&6
8361 test "$dynamic_linker" = no && can_build_shared=no
8362
8363 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8364 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8365 hardcode_action=
8366 if test -n "$hardcode_libdir_flag_spec" || \
8367    test -n "$runpath_var " || \
8368    test "X$hardcode_automatic"="Xyes" ; then
8369
8370   # We can hardcode non-existant directories.
8371   if test "$hardcode_direct" != no &&
8372      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8373      # have to relink, otherwise we might link with an installed library
8374      # when we should be linking with a yet-to-be-installed one
8375      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8376      test "$hardcode_minus_L" != no; then
8377     # Linking always hardcodes the temporary library directory.
8378     hardcode_action=relink
8379   else
8380     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8381     hardcode_action=immediate
8382   fi
8383 else
8384   # We cannot hardcode anything, or else we can only hardcode existing
8385   # directories.
8386   hardcode_action=unsupported
8387 fi
8388 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8389 echo "${ECHO_T}$hardcode_action" >&6
8390
8391 if test "$hardcode_action" = relink; then
8392   # Fast installation is not supported
8393   enable_fast_install=no
8394 elif test "$shlibpath_overrides_runpath" = yes ||
8395      test "$enable_shared" = no; then
8396   # Fast installation is not necessary
8397   enable_fast_install=needless
8398 fi
8399
8400 striplib=
8401 old_striplib=
8402 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8403 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8404 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8405   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8406   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8407   echo "$as_me:$LINENO: result: yes" >&5
8408 echo "${ECHO_T}yes" >&6
8409 else
8410 # FIXME - insert some real tests, host_os isn't really good enough
8411   case $host_os in
8412    darwin*)
8413        if test -n "$STRIP" ; then
8414          striplib="$STRIP -x"
8415          echo "$as_me:$LINENO: result: yes" >&5
8416 echo "${ECHO_T}yes" >&6
8417        else
8418   echo "$as_me:$LINENO: result: no" >&5
8419 echo "${ECHO_T}no" >&6
8420 fi
8421        ;;
8422    *)
8423   echo "$as_me:$LINENO: result: no" >&5
8424 echo "${ECHO_T}no" >&6
8425     ;;
8426   esac
8427 fi
8428
8429 if test "x$enable_dlopen" != xyes; then
8430   enable_dlopen=unknown
8431   enable_dlopen_self=unknown
8432   enable_dlopen_self_static=unknown
8433 else
8434   lt_cv_dlopen=no
8435   lt_cv_dlopen_libs=
8436
8437   case $host_os in
8438   beos*)
8439     lt_cv_dlopen="load_add_on"
8440     lt_cv_dlopen_libs=
8441     lt_cv_dlopen_self=yes
8442     ;;
8443
8444   mingw* | pw32*)
8445     lt_cv_dlopen="LoadLibrary"
8446     lt_cv_dlopen_libs=
8447    ;;
8448
8449   cygwin*)
8450     lt_cv_dlopen="dlopen"
8451     lt_cv_dlopen_libs=
8452    ;;
8453
8454   darwin*)
8455   # if libdl is installed we need to link against it
8456     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8457 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8458 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8459   echo $ECHO_N "(cached) $ECHO_C" >&6
8460 else
8461   ac_check_lib_save_LIBS=$LIBS
8462 LIBS="-ldl  $LIBS"
8463 cat >conftest.$ac_ext <<_ACEOF
8464 /* confdefs.h.  */
8465 _ACEOF
8466 cat confdefs.h >>conftest.$ac_ext
8467 cat >>conftest.$ac_ext <<_ACEOF
8468 /* end confdefs.h.  */
8469
8470 /* Override any gcc2 internal prototype to avoid an error.  */
8471 #ifdef __cplusplus
8472 extern "C"
8473 #endif
8474 /* We use char because int might match the return type of a gcc2
8475    builtin and then its argument prototype would still apply.  */
8476 char dlopen ();
8477 int
8478 main ()
8479 {
8480 dlopen ();
8481   ;
8482   return 0;
8483 }
8484 _ACEOF
8485 rm -f conftest.$ac_objext conftest$ac_exeext
8486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8487   (eval $ac_link) 2>conftest.er1
8488   ac_status=$?
8489   grep -v '^ *+' conftest.er1 >conftest.err
8490   rm -f conftest.er1
8491   cat conftest.err >&5
8492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493   (exit $ac_status); } &&
8494          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8496   (eval $ac_try) 2>&5
8497   ac_status=$?
8498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499   (exit $ac_status); }; } &&
8500          { ac_try='test -s conftest$ac_exeext'
8501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8502   (eval $ac_try) 2>&5
8503   ac_status=$?
8504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505   (exit $ac_status); }; }; then
8506   ac_cv_lib_dl_dlopen=yes
8507 else
8508   echo "$as_me: failed program was:" >&5
8509 sed 's/^/| /' conftest.$ac_ext >&5
8510
8511 ac_cv_lib_dl_dlopen=no
8512 fi
8513 rm -f conftest.err conftest.$ac_objext \
8514       conftest$ac_exeext conftest.$ac_ext
8515 LIBS=$ac_check_lib_save_LIBS
8516 fi
8517 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8518 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8519 if test $ac_cv_lib_dl_dlopen = yes; then
8520   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8521 else
8522
8523     lt_cv_dlopen="dyld"
8524     lt_cv_dlopen_libs=
8525     lt_cv_dlopen_self=yes
8526
8527 fi
8528
8529    ;;
8530
8531   *)
8532     echo "$as_me:$LINENO: checking for shl_load" >&5
8533 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8534 if test "${ac_cv_func_shl_load+set}" = set; then
8535   echo $ECHO_N "(cached) $ECHO_C" >&6
8536 else
8537   cat >conftest.$ac_ext <<_ACEOF
8538 /* confdefs.h.  */
8539 _ACEOF
8540 cat confdefs.h >>conftest.$ac_ext
8541 cat >>conftest.$ac_ext <<_ACEOF
8542 /* end confdefs.h.  */
8543 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8544    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8545 #define shl_load innocuous_shl_load
8546
8547 /* System header to define __stub macros and hopefully few prototypes,
8548     which can conflict with char shl_load (); below.
8549     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8550     <limits.h> exists even on freestanding compilers.  */
8551
8552 #ifdef __STDC__
8553 # include <limits.h>
8554 #else
8555 # include <assert.h>
8556 #endif
8557
8558 #undef shl_load
8559
8560 /* Override any gcc2 internal prototype to avoid an error.  */
8561 #ifdef __cplusplus
8562 extern "C"
8563 {
8564 #endif
8565 /* We use char because int might match the return type of a gcc2
8566    builtin and then its argument prototype would still apply.  */
8567 char shl_load ();
8568 /* The GNU C library defines this for functions which it implements
8569     to always fail with ENOSYS.  Some functions are actually named
8570     something starting with __ and the normal name is an alias.  */
8571 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8572 choke me
8573 #else
8574 char (*f) () = shl_load;
8575 #endif
8576 #ifdef __cplusplus
8577 }
8578 #endif
8579
8580 int
8581 main ()
8582 {
8583 return f != shl_load;
8584   ;
8585   return 0;
8586 }
8587 _ACEOF
8588 rm -f conftest.$ac_objext conftest$ac_exeext
8589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8590   (eval $ac_link) 2>conftest.er1
8591   ac_status=$?
8592   grep -v '^ *+' conftest.er1 >conftest.err
8593   rm -f conftest.er1
8594   cat conftest.err >&5
8595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596   (exit $ac_status); } &&
8597          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8599   (eval $ac_try) 2>&5
8600   ac_status=$?
8601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602   (exit $ac_status); }; } &&
8603          { ac_try='test -s conftest$ac_exeext'
8604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8605   (eval $ac_try) 2>&5
8606   ac_status=$?
8607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608   (exit $ac_status); }; }; then
8609   ac_cv_func_shl_load=yes
8610 else
8611   echo "$as_me: failed program was:" >&5
8612 sed 's/^/| /' conftest.$ac_ext >&5
8613
8614 ac_cv_func_shl_load=no
8615 fi
8616 rm -f conftest.err conftest.$ac_objext \
8617       conftest$ac_exeext conftest.$ac_ext
8618 fi
8619 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8620 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8621 if test $ac_cv_func_shl_load = yes; then
8622   lt_cv_dlopen="shl_load"
8623 else
8624   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8625 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8626 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8627   echo $ECHO_N "(cached) $ECHO_C" >&6
8628 else
8629   ac_check_lib_save_LIBS=$LIBS
8630 LIBS="-ldld  $LIBS"
8631 cat >conftest.$ac_ext <<_ACEOF
8632 /* confdefs.h.  */
8633 _ACEOF
8634 cat confdefs.h >>conftest.$ac_ext
8635 cat >>conftest.$ac_ext <<_ACEOF
8636 /* end confdefs.h.  */
8637
8638 /* Override any gcc2 internal prototype to avoid an error.  */
8639 #ifdef __cplusplus
8640 extern "C"
8641 #endif
8642 /* We use char because int might match the return type of a gcc2
8643    builtin and then its argument prototype would still apply.  */
8644 char shl_load ();
8645 int
8646 main ()
8647 {
8648 shl_load ();
8649   ;
8650   return 0;
8651 }
8652 _ACEOF
8653 rm -f conftest.$ac_objext conftest$ac_exeext
8654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8655   (eval $ac_link) 2>conftest.er1
8656   ac_status=$?
8657   grep -v '^ *+' conftest.er1 >conftest.err
8658   rm -f conftest.er1
8659   cat conftest.err >&5
8660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661   (exit $ac_status); } &&
8662          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8664   (eval $ac_try) 2>&5
8665   ac_status=$?
8666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667   (exit $ac_status); }; } &&
8668          { ac_try='test -s conftest$ac_exeext'
8669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8670   (eval $ac_try) 2>&5
8671   ac_status=$?
8672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673   (exit $ac_status); }; }; then
8674   ac_cv_lib_dld_shl_load=yes
8675 else
8676   echo "$as_me: failed program was:" >&5
8677 sed 's/^/| /' conftest.$ac_ext >&5
8678
8679 ac_cv_lib_dld_shl_load=no
8680 fi
8681 rm -f conftest.err conftest.$ac_objext \
8682       conftest$ac_exeext conftest.$ac_ext
8683 LIBS=$ac_check_lib_save_LIBS
8684 fi
8685 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8686 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8687 if test $ac_cv_lib_dld_shl_load = yes; then
8688   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8689 else
8690   echo "$as_me:$LINENO: checking for dlopen" >&5
8691 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8692 if test "${ac_cv_func_dlopen+set}" = set; then
8693   echo $ECHO_N "(cached) $ECHO_C" >&6
8694 else
8695   cat >conftest.$ac_ext <<_ACEOF
8696 /* confdefs.h.  */
8697 _ACEOF
8698 cat confdefs.h >>conftest.$ac_ext
8699 cat >>conftest.$ac_ext <<_ACEOF
8700 /* end confdefs.h.  */
8701 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8702    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8703 #define dlopen innocuous_dlopen
8704
8705 /* System header to define __stub macros and hopefully few prototypes,
8706     which can conflict with char dlopen (); below.
8707     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8708     <limits.h> exists even on freestanding compilers.  */
8709
8710 #ifdef __STDC__
8711 # include <limits.h>
8712 #else
8713 # include <assert.h>
8714 #endif
8715
8716 #undef dlopen
8717
8718 /* Override any gcc2 internal prototype to avoid an error.  */
8719 #ifdef __cplusplus
8720 extern "C"
8721 {
8722 #endif
8723 /* We use char because int might match the return type of a gcc2
8724    builtin and then its argument prototype would still apply.  */
8725 char dlopen ();
8726 /* The GNU C library defines this for functions which it implements
8727     to always fail with ENOSYS.  Some functions are actually named
8728     something starting with __ and the normal name is an alias.  */
8729 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8730 choke me
8731 #else
8732 char (*f) () = dlopen;
8733 #endif
8734 #ifdef __cplusplus
8735 }
8736 #endif
8737
8738 int
8739 main ()
8740 {
8741 return f != dlopen;
8742   ;
8743   return 0;
8744 }
8745 _ACEOF
8746 rm -f conftest.$ac_objext conftest$ac_exeext
8747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8748   (eval $ac_link) 2>conftest.er1
8749   ac_status=$?
8750   grep -v '^ *+' conftest.er1 >conftest.err
8751   rm -f conftest.er1
8752   cat conftest.err >&5
8753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754   (exit $ac_status); } &&
8755          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8757   (eval $ac_try) 2>&5
8758   ac_status=$?
8759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760   (exit $ac_status); }; } &&
8761          { ac_try='test -s conftest$ac_exeext'
8762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8763   (eval $ac_try) 2>&5
8764   ac_status=$?
8765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766   (exit $ac_status); }; }; then
8767   ac_cv_func_dlopen=yes
8768 else
8769   echo "$as_me: failed program was:" >&5
8770 sed 's/^/| /' conftest.$ac_ext >&5
8771
8772 ac_cv_func_dlopen=no
8773 fi
8774 rm -f conftest.err conftest.$ac_objext \
8775       conftest$ac_exeext conftest.$ac_ext
8776 fi
8777 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8778 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8779 if test $ac_cv_func_dlopen = yes; then
8780   lt_cv_dlopen="dlopen"
8781 else
8782   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8783 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8784 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8785   echo $ECHO_N "(cached) $ECHO_C" >&6
8786 else
8787   ac_check_lib_save_LIBS=$LIBS
8788 LIBS="-ldl  $LIBS"
8789 cat >conftest.$ac_ext <<_ACEOF
8790 /* confdefs.h.  */
8791 _ACEOF
8792 cat confdefs.h >>conftest.$ac_ext
8793 cat >>conftest.$ac_ext <<_ACEOF
8794 /* end confdefs.h.  */
8795
8796 /* Override any gcc2 internal prototype to avoid an error.  */
8797 #ifdef __cplusplus
8798 extern "C"
8799 #endif
8800 /* We use char because int might match the return type of a gcc2
8801    builtin and then its argument prototype would still apply.  */
8802 char dlopen ();
8803 int
8804 main ()
8805 {
8806 dlopen ();
8807   ;
8808   return 0;
8809 }
8810 _ACEOF
8811 rm -f conftest.$ac_objext conftest$ac_exeext
8812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8813   (eval $ac_link) 2>conftest.er1
8814   ac_status=$?
8815   grep -v '^ *+' conftest.er1 >conftest.err
8816   rm -f conftest.er1
8817   cat conftest.err >&5
8818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819   (exit $ac_status); } &&
8820          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8822   (eval $ac_try) 2>&5
8823   ac_status=$?
8824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825   (exit $ac_status); }; } &&
8826          { ac_try='test -s conftest$ac_exeext'
8827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8828   (eval $ac_try) 2>&5
8829   ac_status=$?
8830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831   (exit $ac_status); }; }; then
8832   ac_cv_lib_dl_dlopen=yes
8833 else
8834   echo "$as_me: failed program was:" >&5
8835 sed 's/^/| /' conftest.$ac_ext >&5
8836
8837 ac_cv_lib_dl_dlopen=no
8838 fi
8839 rm -f conftest.err conftest.$ac_objext \
8840       conftest$ac_exeext conftest.$ac_ext
8841 LIBS=$ac_check_lib_save_LIBS
8842 fi
8843 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8844 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8845 if test $ac_cv_lib_dl_dlopen = yes; then
8846   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8847 else
8848   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8849 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8850 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8851   echo $ECHO_N "(cached) $ECHO_C" >&6
8852 else
8853   ac_check_lib_save_LIBS=$LIBS
8854 LIBS="-lsvld  $LIBS"
8855 cat >conftest.$ac_ext <<_ACEOF
8856 /* confdefs.h.  */
8857 _ACEOF
8858 cat confdefs.h >>conftest.$ac_ext
8859 cat >>conftest.$ac_ext <<_ACEOF
8860 /* end confdefs.h.  */
8861
8862 /* Override any gcc2 internal prototype to avoid an error.  */
8863 #ifdef __cplusplus
8864 extern "C"
8865 #endif
8866 /* We use char because int might match the return type of a gcc2
8867    builtin and then its argument prototype would still apply.  */
8868 char dlopen ();
8869 int
8870 main ()
8871 {
8872 dlopen ();
8873   ;
8874   return 0;
8875 }
8876 _ACEOF
8877 rm -f conftest.$ac_objext conftest$ac_exeext
8878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8879   (eval $ac_link) 2>conftest.er1
8880   ac_status=$?
8881   grep -v '^ *+' conftest.er1 >conftest.err
8882   rm -f conftest.er1
8883   cat conftest.err >&5
8884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885   (exit $ac_status); } &&
8886          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8888   (eval $ac_try) 2>&5
8889   ac_status=$?
8890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891   (exit $ac_status); }; } &&
8892          { ac_try='test -s conftest$ac_exeext'
8893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8894   (eval $ac_try) 2>&5
8895   ac_status=$?
8896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897   (exit $ac_status); }; }; then
8898   ac_cv_lib_svld_dlopen=yes
8899 else
8900   echo "$as_me: failed program was:" >&5
8901 sed 's/^/| /' conftest.$ac_ext >&5
8902
8903 ac_cv_lib_svld_dlopen=no
8904 fi
8905 rm -f conftest.err conftest.$ac_objext \
8906       conftest$ac_exeext conftest.$ac_ext
8907 LIBS=$ac_check_lib_save_LIBS
8908 fi
8909 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8910 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8911 if test $ac_cv_lib_svld_dlopen = yes; then
8912   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8913 else
8914   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8915 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8916 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8917   echo $ECHO_N "(cached) $ECHO_C" >&6
8918 else
8919   ac_check_lib_save_LIBS=$LIBS
8920 LIBS="-ldld  $LIBS"
8921 cat >conftest.$ac_ext <<_ACEOF
8922 /* confdefs.h.  */
8923 _ACEOF
8924 cat confdefs.h >>conftest.$ac_ext
8925 cat >>conftest.$ac_ext <<_ACEOF
8926 /* end confdefs.h.  */
8927
8928 /* Override any gcc2 internal prototype to avoid an error.  */
8929 #ifdef __cplusplus
8930 extern "C"
8931 #endif
8932 /* We use char because int might match the return type of a gcc2
8933    builtin and then its argument prototype would still apply.  */
8934 char dld_link ();
8935 int
8936 main ()
8937 {
8938 dld_link ();
8939   ;
8940   return 0;
8941 }
8942 _ACEOF
8943 rm -f conftest.$ac_objext conftest$ac_exeext
8944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8945   (eval $ac_link) 2>conftest.er1
8946   ac_status=$?
8947   grep -v '^ *+' conftest.er1 >conftest.err
8948   rm -f conftest.er1
8949   cat conftest.err >&5
8950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951   (exit $ac_status); } &&
8952          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8954   (eval $ac_try) 2>&5
8955   ac_status=$?
8956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957   (exit $ac_status); }; } &&
8958          { ac_try='test -s conftest$ac_exeext'
8959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8960   (eval $ac_try) 2>&5
8961   ac_status=$?
8962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963   (exit $ac_status); }; }; then
8964   ac_cv_lib_dld_dld_link=yes
8965 else
8966   echo "$as_me: failed program was:" >&5
8967 sed 's/^/| /' conftest.$ac_ext >&5
8968
8969 ac_cv_lib_dld_dld_link=no
8970 fi
8971 rm -f conftest.err conftest.$ac_objext \
8972       conftest$ac_exeext conftest.$ac_ext
8973 LIBS=$ac_check_lib_save_LIBS
8974 fi
8975 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8976 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8977 if test $ac_cv_lib_dld_dld_link = yes; then
8978   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8979 fi
8980
8981
8982 fi
8983
8984
8985 fi
8986
8987
8988 fi
8989
8990
8991 fi
8992
8993
8994 fi
8995
8996     ;;
8997   esac
8998
8999   if test "x$lt_cv_dlopen" != xno; then
9000     enable_dlopen=yes
9001   else
9002     enable_dlopen=no
9003   fi
9004
9005   case $lt_cv_dlopen in
9006   dlopen)
9007     save_CPPFLAGS="$CPPFLAGS"
9008     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9009
9010     save_LDFLAGS="$LDFLAGS"
9011     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9012
9013     save_LIBS="$LIBS"
9014     LIBS="$lt_cv_dlopen_libs $LIBS"
9015
9016     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9017 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9018 if test "${lt_cv_dlopen_self+set}" = set; then
9019   echo $ECHO_N "(cached) $ECHO_C" >&6
9020 else
9021           if test "$cross_compiling" = yes; then :
9022   lt_cv_dlopen_self=cross
9023 else
9024   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9025   lt_status=$lt_dlunknown
9026   cat > conftest.$ac_ext <<EOF
9027 #line 9027 "configure"
9028 #include "confdefs.h"
9029
9030 #if HAVE_DLFCN_H
9031 #include <dlfcn.h>
9032 #endif
9033
9034 #include <stdio.h>
9035
9036 #ifdef RTLD_GLOBAL
9037 #  define LT_DLGLOBAL           RTLD_GLOBAL
9038 #else
9039 #  ifdef DL_GLOBAL
9040 #    define LT_DLGLOBAL         DL_GLOBAL
9041 #  else
9042 #    define LT_DLGLOBAL         0
9043 #  endif
9044 #endif
9045
9046 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9047    find out it does not work in some platform. */
9048 #ifndef LT_DLLAZY_OR_NOW
9049 #  ifdef RTLD_LAZY
9050 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9051 #  else
9052 #    ifdef DL_LAZY
9053 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9054 #    else
9055 #      ifdef RTLD_NOW
9056 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9057 #      else
9058 #        ifdef DL_NOW
9059 #          define LT_DLLAZY_OR_NOW      DL_NOW
9060 #        else
9061 #          define LT_DLLAZY_OR_NOW      0
9062 #        endif
9063 #      endif
9064 #    endif
9065 #  endif
9066 #endif
9067
9068 #ifdef __cplusplus
9069 extern "C" void exit (int);
9070 #endif
9071
9072 void fnord() { int i=42;}
9073 int main ()
9074 {
9075   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9076   int status = $lt_dlunknown;
9077
9078   if (self)
9079     {
9080       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9081       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9082       /* dlclose (self); */
9083     }
9084
9085     exit (status);
9086 }
9087 EOF
9088   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9089   (eval $ac_link) 2>&5
9090   ac_status=$?
9091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9093     (./conftest; exit; ) 2>/dev/null
9094     lt_status=$?
9095     case x$lt_status in
9096       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9097       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9098       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9099     esac
9100   else :
9101     # compilation failed
9102     lt_cv_dlopen_self=no
9103   fi
9104 fi
9105 rm -fr conftest*
9106
9107
9108 fi
9109 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9110 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9111
9112     if test "x$lt_cv_dlopen_self" = xyes; then
9113       LDFLAGS="$LDFLAGS $link_static_flag"
9114       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9115 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9116 if test "${lt_cv_dlopen_self_static+set}" = set; then
9117   echo $ECHO_N "(cached) $ECHO_C" >&6
9118 else
9119           if test "$cross_compiling" = yes; then :
9120   lt_cv_dlopen_self_static=cross
9121 else
9122   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9123   lt_status=$lt_dlunknown
9124   cat > conftest.$ac_ext <<EOF
9125 #line 9125 "configure"
9126 #include "confdefs.h"
9127
9128 #if HAVE_DLFCN_H
9129 #include <dlfcn.h>
9130 #endif
9131
9132 #include <stdio.h>
9133
9134 #ifdef RTLD_GLOBAL
9135 #  define LT_DLGLOBAL           RTLD_GLOBAL
9136 #else
9137 #  ifdef DL_GLOBAL
9138 #    define LT_DLGLOBAL         DL_GLOBAL
9139 #  else
9140 #    define LT_DLGLOBAL         0
9141 #  endif
9142 #endif
9143
9144 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9145    find out it does not work in some platform. */
9146 #ifndef LT_DLLAZY_OR_NOW
9147 #  ifdef RTLD_LAZY
9148 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9149 #  else
9150 #    ifdef DL_LAZY
9151 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9152 #    else
9153 #      ifdef RTLD_NOW
9154 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9155 #      else
9156 #        ifdef DL_NOW
9157 #          define LT_DLLAZY_OR_NOW      DL_NOW
9158 #        else
9159 #          define LT_DLLAZY_OR_NOW      0
9160 #        endif
9161 #      endif
9162 #    endif
9163 #  endif
9164 #endif
9165
9166 #ifdef __cplusplus
9167 extern "C" void exit (int);
9168 #endif
9169
9170 void fnord() { int i=42;}
9171 int main ()
9172 {
9173   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9174   int status = $lt_dlunknown;
9175
9176   if (self)
9177     {
9178       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9179       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9180       /* dlclose (self); */
9181     }
9182
9183     exit (status);
9184 }
9185 EOF
9186   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9187   (eval $ac_link) 2>&5
9188   ac_status=$?
9189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9191     (./conftest; exit; ) 2>/dev/null
9192     lt_status=$?
9193     case x$lt_status in
9194       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9195       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9196       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9197     esac
9198   else :
9199     # compilation failed
9200     lt_cv_dlopen_self_static=no
9201   fi
9202 fi
9203 rm -fr conftest*
9204
9205
9206 fi
9207 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9208 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9209     fi
9210
9211     CPPFLAGS="$save_CPPFLAGS"
9212     LDFLAGS="$save_LDFLAGS"
9213     LIBS="$save_LIBS"
9214     ;;
9215   esac
9216
9217   case $lt_cv_dlopen_self in
9218   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9219   *) enable_dlopen_self=unknown ;;
9220   esac
9221
9222   case $lt_cv_dlopen_self_static in
9223   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9224   *) enable_dlopen_self_static=unknown ;;
9225   esac
9226 fi
9227
9228
9229 # Report which librarie types wil actually be built
9230 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9231 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9232 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9233 echo "${ECHO_T}$can_build_shared" >&6
9234
9235 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9236 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9237 test "$can_build_shared" = "no" && enable_shared=no
9238
9239 # On AIX, shared libraries and static libraries use the same namespace, and
9240 # are all built from PIC.
9241 case "$host_os" in
9242 aix3*)
9243   test "$enable_shared" = yes && enable_static=no
9244   if test -n "$RANLIB"; then
9245     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9246     postinstall_cmds='$RANLIB $lib'
9247   fi
9248   ;;
9249
9250 aix4* | aix5*)
9251   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9252     test "$enable_shared" = yes && enable_static=no
9253   fi
9254   ;;
9255   darwin* | rhapsody*)
9256   if test "$GCC" = yes; then
9257     archive_cmds_need_lc=no
9258     case "$host_os" in
9259     rhapsody* | darwin1.[012])
9260       allow_undefined_flag='-undefined suppress'
9261       ;;
9262     *) # Darwin 1.3 on
9263       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9264         allow_undefined_flag='-flat_namespace -undefined suppress'
9265       else
9266         case ${MACOSX_DEPLOYMENT_TARGET} in
9267           10.[012])
9268             allow_undefined_flag='-flat_namespace -undefined suppress'
9269             ;;
9270           10.*)
9271             allow_undefined_flag='-undefined dynamic_lookup'
9272             ;;
9273         esac
9274       fi
9275       ;;
9276     esac
9277     output_verbose_link_cmd='echo'
9278     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9279     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9280     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9281     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}'
9282     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}'
9283     hardcode_direct=no
9284     hardcode_automatic=yes
9285     hardcode_shlibpath_var=unsupported
9286     whole_archive_flag_spec='-all_load $convenience'
9287     link_all_deplibs=yes
9288   else
9289     ld_shlibs=no
9290   fi
9291     ;;
9292 esac
9293 echo "$as_me:$LINENO: result: $enable_shared" >&5
9294 echo "${ECHO_T}$enable_shared" >&6
9295
9296 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9297 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9298 # Make sure either enable_shared or enable_static is yes.
9299 test "$enable_shared" = yes || enable_static=yes
9300 echo "$as_me:$LINENO: result: $enable_static" >&5
9301 echo "${ECHO_T}$enable_static" >&6
9302
9303 # The else clause should only fire when bootstrapping the
9304 # libtool distribution, otherwise you forgot to ship ltmain.sh
9305 # with your package, and you will get complaints that there are
9306 # no rules to generate ltmain.sh.
9307 if test -f "$ltmain"; then
9308   # See if we are running on zsh, and set the options which allow our commands through
9309   # without removal of \ escapes.
9310   if test -n "${ZSH_VERSION+set}" ; then
9311     setopt NO_GLOB_SUBST
9312   fi
9313   # Now quote all the things that may contain metacharacters while being
9314   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9315   # variables and quote the copies for generation of the libtool script.
9316   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9317     SED SHELL STRIP \
9318     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9319     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9320     deplibs_check_method reload_flag reload_cmds need_locks \
9321     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9322     lt_cv_sys_global_symbol_to_c_name_address \
9323     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9324     old_postinstall_cmds old_postuninstall_cmds \
9325     compiler \
9326     CC \
9327     LD \
9328     lt_prog_compiler_wl \
9329     lt_prog_compiler_pic \
9330     lt_prog_compiler_static \
9331     lt_prog_compiler_no_builtin_flag \
9332     export_dynamic_flag_spec \
9333     thread_safe_flag_spec \
9334     whole_archive_flag_spec \
9335     enable_shared_with_static_runtimes \
9336     old_archive_cmds \
9337     old_archive_from_new_cmds \
9338     predep_objects \
9339     postdep_objects \
9340     predeps \
9341     postdeps \
9342     compiler_lib_search_path \
9343     archive_cmds \
9344     archive_expsym_cmds \
9345     postinstall_cmds \
9346     postuninstall_cmds \
9347     old_archive_from_expsyms_cmds \
9348     allow_undefined_flag \
9349     no_undefined_flag \
9350     export_symbols_cmds \
9351     hardcode_libdir_flag_spec \
9352     hardcode_libdir_flag_spec_ld \
9353     hardcode_libdir_separator \
9354     hardcode_automatic \
9355     module_cmds \
9356     module_expsym_cmds \
9357     lt_cv_prog_compiler_c_o \
9358     exclude_expsyms \
9359     include_expsyms; do
9360
9361     case $var in
9362     old_archive_cmds | \
9363     old_archive_from_new_cmds | \
9364     archive_cmds | \
9365     archive_expsym_cmds | \
9366     module_cmds | \
9367     module_expsym_cmds | \
9368     old_archive_from_expsyms_cmds | \
9369     export_symbols_cmds | \
9370     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9371     postinstall_cmds | postuninstall_cmds | \
9372     old_postinstall_cmds | old_postuninstall_cmds | \
9373     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9374       # Double-quote double-evaled strings.
9375       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9376       ;;
9377     *)
9378       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9379       ;;
9380     esac
9381   done
9382
9383   case $lt_echo in
9384   *'\$0 --fallback-echo"')
9385     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9386     ;;
9387   esac
9388
9389 cfgfile="${ofile}T"
9390   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9391   $rm -f "$cfgfile"
9392   { echo "$as_me:$LINENO: creating $ofile" >&5
9393 echo "$as_me: creating $ofile" >&6;}
9394
9395   cat <<__EOF__ >> "$cfgfile"
9396 #! $SHELL
9397
9398 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9399 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9400 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9401 #
9402 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9403 # Free Software Foundation, Inc.
9404 #
9405 # This file is part of GNU Libtool:
9406 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9407 #
9408 # This program is free software; you can redistribute it and/or modify
9409 # it under the terms of the GNU General Public License as published by
9410 # the Free Software Foundation; either version 2 of the License, or
9411 # (at your option) any later version.
9412 #
9413 # This program is distributed in the hope that it will be useful, but
9414 # WITHOUT ANY WARRANTY; without even the implied warranty of
9415 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9416 # General Public License for more details.
9417 #
9418 # You should have received a copy of the GNU General Public License
9419 # along with this program; if not, write to the Free Software
9420 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9421 #
9422 # As a special exception to the GNU General Public License, if you
9423 # distribute this file as part of a program that contains a
9424 # configuration script generated by Autoconf, you may include it under
9425 # the same distribution terms that you use for the rest of that program.
9426
9427 # A sed program that does not truncate output.
9428 SED=$lt_SED
9429
9430 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9431 Xsed="$SED -e s/^X//"
9432
9433 # The HP-UX ksh and POSIX shell print the target directory to stdout
9434 # if CDPATH is set.
9435 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9436
9437 # The names of the tagged configurations supported by this script.
9438 available_tags=
9439
9440 # ### BEGIN LIBTOOL CONFIG
9441
9442 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9443
9444 # Shell to use when invoking shell scripts.
9445 SHELL=$lt_SHELL
9446
9447 # Whether or not to build shared libraries.
9448 build_libtool_libs=$enable_shared
9449
9450 # Whether or not to build static libraries.
9451 build_old_libs=$enable_static
9452
9453 # Whether or not to add -lc for building shared libraries.
9454 build_libtool_need_lc=$archive_cmds_need_lc
9455
9456 # Whether or not to disallow shared libs when runtime libs are static
9457 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9458
9459 # Whether or not to optimize for fast installation.
9460 fast_install=$enable_fast_install
9461
9462 # The host system.
9463 host_alias=$host_alias
9464 host=$host
9465
9466 # An echo program that does not interpret backslashes.
9467 echo=$lt_echo
9468
9469 # The archiver.
9470 AR=$lt_AR
9471 AR_FLAGS=$lt_AR_FLAGS
9472
9473 # A C compiler.
9474 LTCC=$lt_LTCC
9475
9476 # A language-specific compiler.
9477 CC=$lt_compiler
9478
9479 # Is the compiler the GNU C compiler?
9480 with_gcc=$GCC
9481
9482 # An ERE matcher.
9483 EGREP=$lt_EGREP
9484
9485 # The linker used to build libraries.
9486 LD=$lt_LD
9487
9488 # Whether we need hard or soft links.
9489 LN_S=$lt_LN_S
9490
9491 # A BSD-compatible nm program.
9492 NM=$lt_NM
9493
9494 # A symbol stripping program
9495 STRIP=$lt_STRIP
9496
9497 # Used to examine libraries when file_magic_cmd begins "file"
9498 MAGIC_CMD=$MAGIC_CMD
9499
9500 # Used on cygwin: DLL creation program.
9501 DLLTOOL="$DLLTOOL"
9502
9503 # Used on cygwin: object dumper.
9504 OBJDUMP="$OBJDUMP"
9505
9506 # Used on cygwin: assembler.
9507 AS="$AS"
9508
9509 # The name of the directory that contains temporary libtool files.
9510 objdir=$objdir
9511
9512 # How to create reloadable object files.
9513 reload_flag=$lt_reload_flag
9514 reload_cmds=$lt_reload_cmds
9515
9516 # How to pass a linker flag through the compiler.
9517 wl=$lt_lt_prog_compiler_wl
9518
9519 # Object file suffix (normally "o").
9520 objext="$ac_objext"
9521
9522 # Old archive suffix (normally "a").
9523 libext="$libext"
9524
9525 # Shared library suffix (normally ".so").
9526 shrext_cmds='$shrext_cmds'
9527
9528 # Executable file suffix (normally "").
9529 exeext="$exeext"
9530
9531 # Additional compiler flags for building library objects.
9532 pic_flag=$lt_lt_prog_compiler_pic
9533 pic_mode=$pic_mode
9534
9535 # What is the maximum length of a command?
9536 max_cmd_len=$lt_cv_sys_max_cmd_len
9537
9538 # Does compiler simultaneously support -c and -o options?
9539 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9540
9541 # Must we lock files when doing compilation ?
9542 need_locks=$lt_need_locks
9543
9544 # Do we need the lib prefix for modules?
9545 need_lib_prefix=$need_lib_prefix
9546
9547 # Do we need a version for libraries?
9548 need_version=$need_version
9549
9550 # Whether dlopen is supported.
9551 dlopen_support=$enable_dlopen
9552
9553 # Whether dlopen of programs is supported.
9554 dlopen_self=$enable_dlopen_self
9555
9556 # Whether dlopen of statically linked programs is supported.
9557 dlopen_self_static=$enable_dlopen_self_static
9558
9559 # Compiler flag to prevent dynamic linking.
9560 link_static_flag=$lt_lt_prog_compiler_static
9561
9562 # Compiler flag to turn off builtin functions.
9563 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9564
9565 # Compiler flag to allow reflexive dlopens.
9566 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9567
9568 # Compiler flag to generate shared objects directly from archives.
9569 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9570
9571 # Compiler flag to generate thread-safe objects.
9572 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9573
9574 # Library versioning type.
9575 version_type=$version_type
9576
9577 # Format of library name prefix.
9578 libname_spec=$lt_libname_spec
9579
9580 # List of archive names.  First name is the real one, the rest are links.
9581 # The last name is the one that the linker finds with -lNAME.
9582 library_names_spec=$lt_library_names_spec
9583
9584 # The coded name of the library, if different from the real name.
9585 soname_spec=$lt_soname_spec
9586
9587 # Commands used to build and install an old-style archive.
9588 RANLIB=$lt_RANLIB
9589 old_archive_cmds=$lt_old_archive_cmds
9590 old_postinstall_cmds=$lt_old_postinstall_cmds
9591 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9592
9593 # Create an old-style archive from a shared archive.
9594 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9595
9596 # Create a temporary old-style archive to link instead of a shared archive.
9597 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9598
9599 # Commands used to build and install a shared archive.
9600 archive_cmds=$lt_archive_cmds
9601 archive_expsym_cmds=$lt_archive_expsym_cmds
9602 postinstall_cmds=$lt_postinstall_cmds
9603 postuninstall_cmds=$lt_postuninstall_cmds
9604
9605 # Commands used to build a loadable module (assumed same as above if empty)
9606 module_cmds=$lt_module_cmds
9607 module_expsym_cmds=$lt_module_expsym_cmds
9608
9609 # Commands to strip libraries.
9610 old_striplib=$lt_old_striplib
9611 striplib=$lt_striplib
9612
9613 # Dependencies to place before the objects being linked to create a
9614 # shared library.
9615 predep_objects=$lt_predep_objects
9616
9617 # Dependencies to place after the objects being linked to create a
9618 # shared library.
9619 postdep_objects=$lt_postdep_objects
9620
9621 # Dependencies to place before the objects being linked to create a
9622 # shared library.
9623 predeps=$lt_predeps
9624
9625 # Dependencies to place after the objects being linked to create a
9626 # shared library.
9627 postdeps=$lt_postdeps
9628
9629 # The library search path used internally by the compiler when linking
9630 # a shared library.
9631 compiler_lib_search_path=$lt_compiler_lib_search_path
9632
9633 # Method to check whether dependent libraries are shared objects.
9634 deplibs_check_method=$lt_deplibs_check_method
9635
9636 # Command to use when deplibs_check_method == file_magic.
9637 file_magic_cmd=$lt_file_magic_cmd
9638
9639 # Flag that allows shared libraries with undefined symbols to be built.
9640 allow_undefined_flag=$lt_allow_undefined_flag
9641
9642 # Flag that forces no undefined symbols.
9643 no_undefined_flag=$lt_no_undefined_flag
9644
9645 # Commands used to finish a libtool library installation in a directory.
9646 finish_cmds=$lt_finish_cmds
9647
9648 # Same as above, but a single script fragment to be evaled but not shown.
9649 finish_eval=$lt_finish_eval
9650
9651 # Take the output of nm and produce a listing of raw symbols and C names.
9652 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9653
9654 # Transform the output of nm in a proper C declaration
9655 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9656
9657 # Transform the output of nm in a C name address pair
9658 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9659
9660 # This is the shared library runtime path variable.
9661 runpath_var=$runpath_var
9662
9663 # This is the shared library path variable.
9664 shlibpath_var=$shlibpath_var
9665
9666 # Is shlibpath searched before the hard-coded library search path?
9667 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9668
9669 # How to hardcode a shared library path into an executable.
9670 hardcode_action=$hardcode_action
9671
9672 # Whether we should hardcode library paths into libraries.
9673 hardcode_into_libs=$hardcode_into_libs
9674
9675 # Flag to hardcode \$libdir into a binary during linking.
9676 # This must work even if \$libdir does not exist.
9677 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9678
9679 # If ld is used when linking, flag to hardcode \$libdir into
9680 # a binary during linking. This must work even if \$libdir does
9681 # not exist.
9682 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9683
9684 # Whether we need a single -rpath flag with a separated argument.
9685 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9686
9687 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9688 # resulting binary.
9689 hardcode_direct=$hardcode_direct
9690
9691 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9692 # resulting binary.
9693 hardcode_minus_L=$hardcode_minus_L
9694
9695 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9696 # the resulting binary.
9697 hardcode_shlibpath_var=$hardcode_shlibpath_var
9698
9699 # Set to yes if building a shared library automatically hardcodes DIR into the library
9700 # and all subsequent libraries and executables linked against it.
9701 hardcode_automatic=$hardcode_automatic
9702
9703 # Variables whose values should be saved in libtool wrapper scripts and
9704 # restored at relink time.
9705 variables_saved_for_relink="$variables_saved_for_relink"
9706
9707 # Whether libtool must link a program against all its dependency libraries.
9708 link_all_deplibs=$link_all_deplibs
9709
9710 # Compile-time system search path for libraries
9711 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9712
9713 # Run-time system search path for libraries
9714 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9715
9716 # Fix the shell variable \$srcfile for the compiler.
9717 fix_srcfile_path="$fix_srcfile_path"
9718
9719 # Set to yes if exported symbols are required.
9720 always_export_symbols=$always_export_symbols
9721
9722 # The commands to list exported symbols.
9723 export_symbols_cmds=$lt_export_symbols_cmds
9724
9725 # The commands to extract the exported symbol list from a shared archive.
9726 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9727
9728 # Symbols that should not be listed in the preloaded symbols.
9729 exclude_expsyms=$lt_exclude_expsyms
9730
9731 # Symbols that must always be exported.
9732 include_expsyms=$lt_include_expsyms
9733
9734 # ### END LIBTOOL CONFIG
9735
9736 __EOF__
9737
9738
9739   case $host_os in
9740   aix3*)
9741     cat <<\EOF >> "$cfgfile"
9742
9743 # AIX sometimes has problems with the GCC collect2 program.  For some
9744 # reason, if we set the COLLECT_NAMES environment variable, the problems
9745 # vanish in a puff of smoke.
9746 if test "X${COLLECT_NAMES+set}" != Xset; then
9747   COLLECT_NAMES=
9748   export COLLECT_NAMES
9749 fi
9750 EOF
9751     ;;
9752   esac
9753
9754   # We use sed instead of cat because bash on DJGPP gets confused if
9755   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9756   # text mode, it properly converts lines to CR/LF.  This bash problem
9757   # is reportedly fixed, but why not run on old versions too?
9758   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9759
9760   mv -f "$cfgfile" "$ofile" || \
9761     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9762   chmod +x "$ofile"
9763
9764 else
9765   # If there is no Makefile yet, we rely on a make rule to execute
9766   # `config.status --recheck' to rerun these tests and create the
9767   # libtool script then.
9768   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9769   if test -f "$ltmain_in"; then
9770     test -f Makefile && make "$ltmain"
9771   fi
9772 fi
9773
9774
9775 ac_ext=c
9776 ac_cpp='$CPP $CPPFLAGS'
9777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9780
9781 CC="$lt_save_CC"
9782
9783
9784 # Check whether --with-tags or --without-tags was given.
9785 if test "${with_tags+set}" = set; then
9786   withval="$with_tags"
9787   tagnames="$withval"
9788 fi;
9789
9790 if test -f "$ltmain" && test -n "$tagnames"; then
9791   if test ! -f "${ofile}"; then
9792     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9793 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9794   fi
9795
9796   if test -z "$LTCC"; then
9797     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9798     if test -z "$LTCC"; then
9799       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9800 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9801     else
9802       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9803 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9804     fi
9805   fi
9806
9807   # Extract list of available tagged configurations in $ofile.
9808   # Note that this assumes the entire list is on one line.
9809   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9810
9811   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9812   for tagname in $tagnames; do
9813     IFS="$lt_save_ifs"
9814     # Check whether tagname contains only valid characters
9815     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9816     "") ;;
9817     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9818 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9819    { (exit 1); exit 1; }; }
9820         ;;
9821     esac
9822
9823     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9824     then
9825       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9826 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9827    { (exit 1); exit 1; }; }
9828     fi
9829
9830     # Update the list of available tags.
9831     if test -n "$tagname"; then
9832       echo appending configuration tag \"$tagname\" to $ofile
9833
9834       case $tagname in
9835       CXX)
9836         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9837           ac_ext=cc
9838 ac_cpp='$CXXCPP $CPPFLAGS'
9839 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9840 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9841 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9842
9843
9844
9845
9846 archive_cmds_need_lc_CXX=no
9847 allow_undefined_flag_CXX=
9848 always_export_symbols_CXX=no
9849 archive_expsym_cmds_CXX=
9850 export_dynamic_flag_spec_CXX=
9851 hardcode_direct_CXX=no
9852 hardcode_libdir_flag_spec_CXX=
9853 hardcode_libdir_flag_spec_ld_CXX=
9854 hardcode_libdir_separator_CXX=
9855 hardcode_minus_L_CXX=no
9856 hardcode_automatic_CXX=no
9857 module_cmds_CXX=
9858 module_expsym_cmds_CXX=
9859 link_all_deplibs_CXX=unknown
9860 old_archive_cmds_CXX=$old_archive_cmds
9861 no_undefined_flag_CXX=
9862 whole_archive_flag_spec_CXX=
9863 enable_shared_with_static_runtimes_CXX=no
9864
9865 # Dependencies to place before and after the object being linked:
9866 predep_objects_CXX=
9867 postdep_objects_CXX=
9868 predeps_CXX=
9869 postdeps_CXX=
9870 compiler_lib_search_path_CXX=
9871
9872 # Source file extension for C++ test sources.
9873 ac_ext=cc
9874
9875 # Object file extension for compiled C++ test sources.
9876 objext=o
9877 objext_CXX=$objext
9878
9879 # Code to be used in simple compile tests
9880 lt_simple_compile_test_code="int some_variable = 0;\n"
9881
9882 # Code to be used in simple link tests
9883 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9884
9885 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9886
9887 # If no C compiler was specified, use CC.
9888 LTCC=${LTCC-"$CC"}
9889
9890 # Allow CC to be a program name with arguments.
9891 compiler=$CC
9892
9893
9894 # Allow CC to be a program name with arguments.
9895 lt_save_CC=$CC
9896 lt_save_LD=$LD
9897 lt_save_GCC=$GCC
9898 GCC=$GXX
9899 lt_save_with_gnu_ld=$with_gnu_ld
9900 lt_save_path_LD=$lt_cv_path_LD
9901 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9902   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9903 else
9904   unset lt_cv_prog_gnu_ld
9905 fi
9906 if test -n "${lt_cv_path_LDCXX+set}"; then
9907   lt_cv_path_LD=$lt_cv_path_LDCXX
9908 else
9909   unset lt_cv_path_LD
9910 fi
9911 test -z "${LDCXX+set}" || LD=$LDCXX
9912 CC=${CXX-"c++"}
9913 compiler=$CC
9914 compiler_CXX=$CC
9915 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9916
9917 # We don't want -fno-exception wen compiling C++ code, so set the
9918 # no_builtin_flag separately
9919 if test "$GXX" = yes; then
9920   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9921 else
9922   lt_prog_compiler_no_builtin_flag_CXX=
9923 fi
9924
9925 if test "$GXX" = yes; then
9926   # Set up default GNU C++ configuration
9927
9928
9929 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9930 if test "${with_gnu_ld+set}" = set; then
9931   withval="$with_gnu_ld"
9932   test "$withval" = no || with_gnu_ld=yes
9933 else
9934   with_gnu_ld=no
9935 fi;
9936 ac_prog=ld
9937 if test "$GCC" = yes; then
9938   # Check if gcc -print-prog-name=ld gives a path.
9939   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9940 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9941   case $host in
9942   *-*-mingw*)
9943     # gcc leaves a trailing carriage return which upsets mingw
9944     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9945   *)
9946     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9947   esac
9948   case $ac_prog in
9949     # Accept absolute paths.
9950     [\\/]* | ?:[\\/]*)
9951       re_direlt='/[^/][^/]*/\.\./'
9952       # Canonicalize the pathname of ld
9953       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9954       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9955         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9956       done
9957       test -z "$LD" && LD="$ac_prog"
9958       ;;
9959   "")
9960     # If it fails, then pretend we aren't using GCC.
9961     ac_prog=ld
9962     ;;
9963   *)
9964     # If it is relative, then search for the first ld in PATH.
9965     with_gnu_ld=unknown
9966     ;;
9967   esac
9968 elif test "$with_gnu_ld" = yes; then
9969   echo "$as_me:$LINENO: checking for GNU ld" >&5
9970 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9971 else
9972   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9973 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9974 fi
9975 if test "${lt_cv_path_LD+set}" = set; then
9976   echo $ECHO_N "(cached) $ECHO_C" >&6
9977 else
9978   if test -z "$LD"; then
9979   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9980   for ac_dir in $PATH; do
9981     IFS="$lt_save_ifs"
9982     test -z "$ac_dir" && ac_dir=.
9983     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9984       lt_cv_path_LD="$ac_dir/$ac_prog"
9985       # Check to see if the program is GNU ld.  I'd rather use --version,
9986       # but apparently some GNU ld's only accept -v.
9987       # Break only if it was the GNU/non-GNU ld that we prefer.
9988       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9989       *GNU* | *'with BFD'*)
9990         test "$with_gnu_ld" != no && break
9991         ;;
9992       *)
9993         test "$with_gnu_ld" != yes && break
9994         ;;
9995       esac
9996     fi
9997   done
9998   IFS="$lt_save_ifs"
9999 else
10000   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10001 fi
10002 fi
10003
10004 LD="$lt_cv_path_LD"
10005 if test -n "$LD"; then
10006   echo "$as_me:$LINENO: result: $LD" >&5
10007 echo "${ECHO_T}$LD" >&6
10008 else
10009   echo "$as_me:$LINENO: result: no" >&5
10010 echo "${ECHO_T}no" >&6
10011 fi
10012 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10013 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10014    { (exit 1); exit 1; }; }
10015 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10016 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10017 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10018   echo $ECHO_N "(cached) $ECHO_C" >&6
10019 else
10020   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10021 case `$LD -v 2>&1 </dev/null` in
10022 *GNU* | *'with BFD'*)
10023   lt_cv_prog_gnu_ld=yes
10024   ;;
10025 *)
10026   lt_cv_prog_gnu_ld=no
10027   ;;
10028 esac
10029 fi
10030 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10031 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10032 with_gnu_ld=$lt_cv_prog_gnu_ld
10033
10034
10035
10036   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10037   # archiving commands below assume that GNU ld is being used.
10038   if test "$with_gnu_ld" = yes; then
10039     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10040     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'
10041
10042     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10043     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10044
10045     # If archive_cmds runs LD, not CC, wlarc should be empty
10046     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10047     #     investigate it a little bit more. (MM)
10048     wlarc='${wl}'
10049
10050     # ancient GNU ld didn't support --whole-archive et. al.
10051     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10052         grep 'no-whole-archive' > /dev/null; then
10053       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10054     else
10055       whole_archive_flag_spec_CXX=
10056     fi
10057   else
10058     with_gnu_ld=no
10059     wlarc=
10060
10061     # A generic and very simple default shared library creation
10062     # command for GNU C++ for the case where it uses the native
10063     # linker, instead of GNU ld.  If possible, this setting should
10064     # overridden to take advantage of the native linker features on
10065     # the platform it is being used on.
10066     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10067   fi
10068
10069   # Commands to make compiler produce verbose output that lists
10070   # what "hidden" libraries, object files and flags are used when
10071   # linking a shared library.
10072   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10073
10074 else
10075   GXX=no
10076   with_gnu_ld=no
10077   wlarc=
10078 fi
10079
10080 # PORTME: fill in a description of your system's C++ link characteristics
10081 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10082 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10083 ld_shlibs_CXX=yes
10084 case $host_os in
10085   aix3*)
10086     # FIXME: insert proper C++ library support
10087     ld_shlibs_CXX=no
10088     ;;
10089   aix4* | aix5*)
10090     if test "$host_cpu" = ia64; then
10091       # On IA64, the linker does run time linking by default, so we don't
10092       # have to do anything special.
10093       aix_use_runtimelinking=no
10094       exp_sym_flag='-Bexport'
10095       no_entry_flag=""
10096     else
10097       aix_use_runtimelinking=no
10098
10099       # Test if we are trying to use run time linking or normal
10100       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10101       # need to do runtime linking.
10102       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10103         for ld_flag in $LDFLAGS; do
10104           case $ld_flag in
10105           *-brtl*)
10106             aix_use_runtimelinking=yes
10107             break
10108             ;;
10109           esac
10110         done
10111       esac
10112
10113       exp_sym_flag='-bexport'
10114       no_entry_flag='-bnoentry'
10115     fi
10116
10117     # When large executables or shared objects are built, AIX ld can
10118     # have problems creating the table of contents.  If linking a library
10119     # or program results in "error TOC overflow" add -mminimal-toc to
10120     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10121     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10122
10123     archive_cmds_CXX=''
10124     hardcode_direct_CXX=yes
10125     hardcode_libdir_separator_CXX=':'
10126     link_all_deplibs_CXX=yes
10127
10128     if test "$GXX" = yes; then
10129       case $host_os in aix4.012|aix4.012.*)
10130       # We only want to do this on AIX 4.2 and lower, the check
10131       # below for broken collect2 doesn't work under 4.3+
10132         collect2name=`${CC} -print-prog-name=collect2`
10133         if test -f "$collect2name" && \
10134            strings "$collect2name" | grep resolve_lib_name >/dev/null
10135         then
10136           # We have reworked collect2
10137           hardcode_direct_CXX=yes
10138         else
10139           # We have old collect2
10140           hardcode_direct_CXX=unsupported
10141           # It fails to find uninstalled libraries when the uninstalled
10142           # path is not listed in the libpath.  Setting hardcode_minus_L
10143           # to unsupported forces relinking
10144           hardcode_minus_L_CXX=yes
10145           hardcode_libdir_flag_spec_CXX='-L$libdir'
10146           hardcode_libdir_separator_CXX=
10147         fi
10148       esac
10149       shared_flag='-shared'
10150     else
10151       # not using gcc
10152       if test "$host_cpu" = ia64; then
10153         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10154         # chokes on -Wl,-G. The following line is correct:
10155         shared_flag='-G'
10156       else
10157         if test "$aix_use_runtimelinking" = yes; then
10158           shared_flag='${wl}-G'
10159         else
10160           shared_flag='${wl}-bM:SRE'
10161         fi
10162       fi
10163     fi
10164
10165     # It seems that -bexpall does not export symbols beginning with
10166     # underscore (_), so it is better to generate a list of symbols to export.
10167     always_export_symbols_CXX=yes
10168     if test "$aix_use_runtimelinking" = yes; then
10169       # Warning - without using the other runtime loading flags (-brtl),
10170       # -berok will link without error, but may produce a broken library.
10171       allow_undefined_flag_CXX='-berok'
10172       # Determine the default libpath from the value encoded in an empty executable.
10173       cat >conftest.$ac_ext <<_ACEOF
10174 /* confdefs.h.  */
10175 _ACEOF
10176 cat confdefs.h >>conftest.$ac_ext
10177 cat >>conftest.$ac_ext <<_ACEOF
10178 /* end confdefs.h.  */
10179
10180 int
10181 main ()
10182 {
10183
10184   ;
10185   return 0;
10186 }
10187 _ACEOF
10188 rm -f conftest.$ac_objext conftest$ac_exeext
10189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10190   (eval $ac_link) 2>conftest.er1
10191   ac_status=$?
10192   grep -v '^ *+' conftest.er1 >conftest.err
10193   rm -f conftest.er1
10194   cat conftest.err >&5
10195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196   (exit $ac_status); } &&
10197          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
10198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10199   (eval $ac_try) 2>&5
10200   ac_status=$?
10201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10202   (exit $ac_status); }; } &&
10203          { ac_try='test -s conftest$ac_exeext'
10204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10205   (eval $ac_try) 2>&5
10206   ac_status=$?
10207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208   (exit $ac_status); }; }; then
10209
10210 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10211 }'`
10212 # Check for a 64-bit object if we didn't find anything.
10213 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; }
10214 }'`; fi
10215 else
10216   echo "$as_me: failed program was:" >&5
10217 sed 's/^/| /' conftest.$ac_ext >&5
10218
10219 fi
10220 rm -f conftest.err conftest.$ac_objext \
10221       conftest$ac_exeext conftest.$ac_ext
10222 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10223
10224       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10225
10226       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"
10227      else
10228       if test "$host_cpu" = ia64; then
10229         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10230         allow_undefined_flag_CXX="-z nodefs"
10231         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"
10232       else
10233         # Determine the default libpath from the value encoded in an empty executable.
10234         cat >conftest.$ac_ext <<_ACEOF
10235 /* confdefs.h.  */
10236 _ACEOF
10237 cat confdefs.h >>conftest.$ac_ext
10238 cat >>conftest.$ac_ext <<_ACEOF
10239 /* end confdefs.h.  */
10240
10241 int
10242 main ()
10243 {
10244
10245   ;
10246   return 0;
10247 }
10248 _ACEOF
10249 rm -f conftest.$ac_objext conftest$ac_exeext
10250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10251   (eval $ac_link) 2>conftest.er1
10252   ac_status=$?
10253   grep -v '^ *+' conftest.er1 >conftest.err
10254   rm -f conftest.er1
10255   cat conftest.err >&5
10256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257   (exit $ac_status); } &&
10258          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
10259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10260   (eval $ac_try) 2>&5
10261   ac_status=$?
10262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263   (exit $ac_status); }; } &&
10264          { ac_try='test -s conftest$ac_exeext'
10265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10266   (eval $ac_try) 2>&5
10267   ac_status=$?
10268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269   (exit $ac_status); }; }; then
10270
10271 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10272 }'`
10273 # Check for a 64-bit object if we didn't find anything.
10274 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; }
10275 }'`; fi
10276 else
10277   echo "$as_me: failed program was:" >&5
10278 sed 's/^/| /' conftest.$ac_ext >&5
10279
10280 fi
10281 rm -f conftest.err conftest.$ac_objext \
10282       conftest$ac_exeext conftest.$ac_ext
10283 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10284
10285         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10286         # Warning - without using the other run time loading flags,
10287         # -berok will link without error, but may produce a broken library.
10288         no_undefined_flag_CXX=' ${wl}-bernotok'
10289         allow_undefined_flag_CXX=' ${wl}-berok'
10290         # -bexpall does not export symbols beginning with underscore (_)
10291         always_export_symbols_CXX=yes
10292         # Exported symbols can be pulled into shared objects from archives
10293         whole_archive_flag_spec_CXX=' '
10294         archive_cmds_need_lc_CXX=yes
10295         # This is similar to how AIX traditionally builds it's shared libraries.
10296         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'
10297       fi
10298     fi
10299     ;;
10300   chorus*)
10301     case $cc_basename in
10302       *)
10303         # FIXME: insert proper C++ library support
10304         ld_shlibs_CXX=no
10305         ;;
10306     esac
10307     ;;
10308
10309   cygwin* | mingw* | pw32*)
10310     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10311     # as there is no search path for DLLs.
10312     hardcode_libdir_flag_spec_CXX='-L$libdir'
10313     allow_undefined_flag_CXX=unsupported
10314     always_export_symbols_CXX=no
10315     enable_shared_with_static_runtimes_CXX=yes
10316
10317     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10318       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'
10319       # If the export-symbols file already is a .def file (1st line
10320       # is EXPORTS), use it as is; otherwise, prepend...
10321       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10322         cp $export_symbols $output_objdir/$soname.def;
10323       else
10324         echo EXPORTS > $output_objdir/$soname.def;
10325         cat $export_symbols >> $output_objdir/$soname.def;
10326       fi~
10327       $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'
10328     else
10329       ld_shlibs_CXX=no
10330     fi
10331   ;;
10332
10333   darwin* | rhapsody*)
10334   if test "$GXX" = yes; then
10335     archive_cmds_need_lc_CXX=no
10336     case "$host_os" in
10337     rhapsody* | darwin1.[012])
10338       allow_undefined_flag_CXX='-undefined suppress'
10339       ;;
10340     *) # Darwin 1.3 on
10341       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10342         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10343       else
10344         case ${MACOSX_DEPLOYMENT_TARGET} in
10345           10.[012])
10346             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10347             ;;
10348           10.*)
10349             allow_undefined_flag_CXX='-undefined dynamic_lookup'
10350             ;;
10351         esac
10352       fi
10353       ;;
10354     esac
10355     lt_int_apple_cc_single_mod=no
10356     output_verbose_link_cmd='echo'
10357     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10358       lt_int_apple_cc_single_mod=yes
10359     fi
10360     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10361       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10362     else
10363       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'
10364     fi
10365     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10366
10367     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10368     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10369       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}'
10370     else
10371       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}'
10372     fi
10373     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}'
10374     hardcode_direct_CXX=no
10375     hardcode_automatic_CXX=yes
10376     hardcode_shlibpath_var_CXX=unsupported
10377     whole_archive_flag_spec_CXX='-all_load $convenience'
10378     link_all_deplibs_CXX=yes
10379   else
10380     ld_shlibs_CXX=no
10381   fi
10382     ;;
10383
10384   dgux*)
10385     case $cc_basename in
10386       ec++)
10387         # FIXME: insert proper C++ library support
10388         ld_shlibs_CXX=no
10389         ;;
10390       ghcx)
10391         # Green Hills C++ Compiler
10392         # FIXME: insert proper C++ library support
10393         ld_shlibs_CXX=no
10394         ;;
10395       *)
10396         # FIXME: insert proper C++ library support
10397         ld_shlibs_CXX=no
10398         ;;
10399     esac
10400     ;;
10401   freebsd12*)
10402     # C++ shared libraries reported to be fairly broken before switch to ELF
10403     ld_shlibs_CXX=no
10404     ;;
10405   freebsd-elf*)
10406     archive_cmds_need_lc_CXX=no
10407     ;;
10408   freebsd* | kfreebsd*-gnu)
10409     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10410     # conventions
10411     ld_shlibs_CXX=yes
10412     ;;
10413   gnu*)
10414     ;;
10415   hpux9*)
10416     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10417     hardcode_libdir_separator_CXX=:
10418     export_dynamic_flag_spec_CXX='${wl}-E'
10419     hardcode_direct_CXX=yes
10420     hardcode_minus_L_CXX=yes # Not in the search PATH,
10421                                 # but as the default
10422                                 # location of the library.
10423
10424     case $cc_basename in
10425     CC)
10426       # FIXME: insert proper C++ library support
10427       ld_shlibs_CXX=no
10428       ;;
10429     aCC)
10430       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'
10431       # Commands to make compiler produce verbose output that lists
10432       # what "hidden" libraries, object files and flags are used when
10433       # linking a shared library.
10434       #
10435       # There doesn't appear to be a way to prevent this compiler from
10436       # explicitly linking system object files so we need to strip them
10437       # from the output so that they don't get included in the library
10438       # dependencies.
10439       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'
10440       ;;
10441     *)
10442       if test "$GXX" = yes; then
10443         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'
10444       else
10445         # FIXME: insert proper C++ library support
10446         ld_shlibs_CXX=no
10447       fi
10448       ;;
10449     esac
10450     ;;
10451   hpux10*|hpux11*)
10452     if test $with_gnu_ld = no; then
10453       case "$host_cpu" in
10454       hppa*64*)
10455         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10456         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10457         hardcode_libdir_separator_CXX=:
10458         ;;
10459       ia64*)
10460         hardcode_libdir_flag_spec_CXX='-L$libdir'
10461         ;;
10462       *)
10463         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10464         hardcode_libdir_separator_CXX=:
10465         export_dynamic_flag_spec_CXX='${wl}-E'
10466         ;;
10467       esac
10468     fi
10469     case "$host_cpu" in
10470     hppa*64*)
10471       hardcode_direct_CXX=no
10472       hardcode_shlibpath_var_CXX=no
10473       ;;
10474     ia64*)
10475       hardcode_direct_CXX=no
10476       hardcode_shlibpath_var_CXX=no
10477       hardcode_minus_L_CXX=yes # Not in the search PATH,
10478                                               # but as the default
10479                                               # location of the library.
10480       ;;
10481     *)
10482       hardcode_direct_CXX=yes
10483       hardcode_minus_L_CXX=yes # Not in the search PATH,
10484                                               # but as the default
10485                                               # location of the library.
10486       ;;
10487     esac
10488
10489     case $cc_basename in
10490       CC)
10491         # FIXME: insert proper C++ library support
10492         ld_shlibs_CXX=no
10493         ;;
10494       aCC)
10495         case "$host_cpu" in
10496         hppa*64*|ia64*)
10497           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10498           ;;
10499         *)
10500           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10501           ;;
10502         esac
10503         # Commands to make compiler produce verbose output that lists
10504         # what "hidden" libraries, object files and flags are used when
10505         # linking a shared library.
10506         #
10507         # There doesn't appear to be a way to prevent this compiler from
10508         # explicitly linking system object files so we need to strip them
10509         # from the output so that they don't get included in the library
10510         # dependencies.
10511         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'
10512         ;;
10513       *)
10514         if test "$GXX" = yes; then
10515           if test $with_gnu_ld = no; then
10516             case "$host_cpu" in
10517             ia64*|hppa*64*)
10518               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10519               ;;
10520             *)
10521               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'
10522               ;;
10523             esac
10524           fi
10525         else
10526           # FIXME: insert proper C++ library support
10527           ld_shlibs_CXX=no
10528         fi
10529         ;;
10530     esac
10531     ;;
10532   irix5* | irix6*)
10533     case $cc_basename in
10534       CC)
10535         # SGI C++
10536         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'
10537
10538         # Archives containing C++ object files must be created using
10539         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10540         # necessary to make sure instantiated templates are included
10541         # in the archive.
10542         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10543         ;;
10544       *)
10545         if test "$GXX" = yes; then
10546           if test "$with_gnu_ld" = no; then
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` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10548           else
10549             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'
10550           fi
10551         fi
10552         link_all_deplibs_CXX=yes
10553         ;;
10554     esac
10555     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10556     hardcode_libdir_separator_CXX=:
10557     ;;
10558   linux*)
10559     case $cc_basename in
10560       KCC)
10561         # Kuck and Associates, Inc. (KAI) C++ Compiler
10562
10563         # KCC will only create a shared library if the output file
10564         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10565         # to its proper name (with version) after linking.
10566         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'
10567         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'
10568         # Commands to make compiler produce verbose output that lists
10569         # what "hidden" libraries, object files and flags are used when
10570         # linking a shared library.
10571         #
10572         # There doesn't appear to be a way to prevent this compiler from
10573         # explicitly linking system object files so we need to strip them
10574         # from the output so that they don't get included in the library
10575         # dependencies.
10576         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'
10577
10578         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10579         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10580
10581         # Archives containing C++ object files must be created using
10582         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10583         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10584         ;;
10585       icpc)
10586         # Intel C++
10587         with_gnu_ld=yes
10588         archive_cmds_need_lc_CXX=no
10589         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10590         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'
10591         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10592         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10593         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10594         ;;
10595       cxx)
10596         # Compaq C++
10597         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10598         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'
10599
10600         runpath_var=LD_RUN_PATH
10601         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10602         hardcode_libdir_separator_CXX=:
10603
10604         # Commands to make compiler produce verbose output that lists
10605         # what "hidden" libraries, object files and flags are used when
10606         # linking a shared library.
10607         #
10608         # There doesn't appear to be a way to prevent this compiler from
10609         # explicitly linking system object files so we need to strip them
10610         # from the output so that they don't get included in the library
10611         # dependencies.
10612         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'
10613         ;;
10614     esac
10615     ;;
10616   lynxos*)
10617     # FIXME: insert proper C++ library support
10618     ld_shlibs_CXX=no
10619     ;;
10620   m88k*)
10621     # FIXME: insert proper C++ library support
10622     ld_shlibs_CXX=no
10623     ;;
10624   mvs*)
10625     case $cc_basename in
10626       cxx)
10627         # FIXME: insert proper C++ library support
10628         ld_shlibs_CXX=no
10629         ;;
10630       *)
10631         # FIXME: insert proper C++ library support
10632         ld_shlibs_CXX=no
10633         ;;
10634     esac
10635     ;;
10636   netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10637     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10638       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10639       wlarc=
10640       hardcode_libdir_flag_spec_CXX='-R$libdir'
10641       hardcode_direct_CXX=yes
10642       hardcode_shlibpath_var_CXX=no
10643     fi
10644     # Workaround some broken pre-1.5 toolchains
10645     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10646     ;;
10647   osf3*)
10648     case $cc_basename in
10649       KCC)
10650         # Kuck and Associates, Inc. (KAI) C++ Compiler
10651
10652         # KCC will only create a shared library if the output file
10653         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10654         # to its proper name (with version) after linking.
10655         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'
10656
10657         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10658         hardcode_libdir_separator_CXX=:
10659
10660         # Archives containing C++ object files must be created using
10661         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10662         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10663
10664         ;;
10665       RCC)
10666         # Rational C++ 2.4.1
10667         # FIXME: insert proper C++ library support
10668         ld_shlibs_CXX=no
10669         ;;
10670       cxx)
10671         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10672         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'
10673
10674         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10675         hardcode_libdir_separator_CXX=:
10676
10677         # Commands to make compiler produce verbose output that lists
10678         # what "hidden" libraries, object files and flags are used when
10679         # linking a shared library.
10680         #
10681         # There doesn't appear to be a way to prevent this compiler from
10682         # explicitly linking system object files so we need to strip them
10683         # from the output so that they don't get included in the library
10684         # dependencies.
10685         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'
10686         ;;
10687       *)
10688         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10689           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10690           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'
10691
10692           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10693           hardcode_libdir_separator_CXX=:
10694
10695           # Commands to make compiler produce verbose output that lists
10696           # what "hidden" libraries, object files and flags are used when
10697           # linking a shared library.
10698           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10699
10700         else
10701           # FIXME: insert proper C++ library support
10702           ld_shlibs_CXX=no
10703         fi
10704         ;;
10705     esac
10706     ;;
10707   osf4* | osf5*)
10708     case $cc_basename in
10709       KCC)
10710         # Kuck and Associates, Inc. (KAI) C++ Compiler
10711
10712         # KCC will only create a shared library if the output file
10713         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10714         # to its proper name (with version) after linking.
10715         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'
10716
10717         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10718         hardcode_libdir_separator_CXX=:
10719
10720         # Archives containing C++ object files must be created using
10721         # the KAI C++ compiler.
10722         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10723         ;;
10724       RCC)
10725         # Rational C++ 2.4.1
10726         # FIXME: insert proper C++ library support
10727         ld_shlibs_CXX=no
10728         ;;
10729       cxx)
10730         allow_undefined_flag_CXX=' -expect_unresolved \*'
10731         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'
10732         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10733           echo "-hidden">> $lib.exp~
10734           $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~
10735           $rm $lib.exp'
10736
10737         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10738         hardcode_libdir_separator_CXX=:
10739
10740         # Commands to make compiler produce verbose output that lists
10741         # what "hidden" libraries, object files and flags are used when
10742         # linking a shared library.
10743         #
10744         # There doesn't appear to be a way to prevent this compiler from
10745         # explicitly linking system object files so we need to strip them
10746         # from the output so that they don't get included in the library
10747         # dependencies.
10748         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'
10749         ;;
10750       *)
10751         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10752           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10753          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'
10754
10755           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10756           hardcode_libdir_separator_CXX=:
10757
10758           # Commands to make compiler produce verbose output that lists
10759           # what "hidden" libraries, object files and flags are used when
10760           # linking a shared library.
10761           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10762
10763         else
10764           # FIXME: insert proper C++ library support
10765           ld_shlibs_CXX=no
10766         fi
10767         ;;
10768     esac
10769     ;;
10770   psos*)
10771     # FIXME: insert proper C++ library support
10772     ld_shlibs_CXX=no
10773     ;;
10774   sco*)
10775     archive_cmds_need_lc_CXX=no
10776     case $cc_basename in
10777       CC)
10778         # FIXME: insert proper C++ library support
10779         ld_shlibs_CXX=no
10780         ;;
10781       *)
10782         # FIXME: insert proper C++ library support
10783         ld_shlibs_CXX=no
10784         ;;
10785     esac
10786     ;;
10787   sunos4*)
10788     case $cc_basename in
10789       CC)
10790         # Sun C++ 4.x
10791         # FIXME: insert proper C++ library support
10792         ld_shlibs_CXX=no
10793         ;;
10794       lcc)
10795         # Lucid
10796         # FIXME: insert proper C++ library support
10797         ld_shlibs_CXX=no
10798         ;;
10799       *)
10800         # FIXME: insert proper C++ library support
10801         ld_shlibs_CXX=no
10802         ;;
10803     esac
10804     ;;
10805   solaris*)
10806     case $cc_basename in
10807       CC)
10808         # Sun C++ 4.2, 5.x and Centerline C++
10809         no_undefined_flag_CXX=' -zdefs'
10810         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10811         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10812         $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'
10813
10814         hardcode_libdir_flag_spec_CXX='-R$libdir'
10815         hardcode_shlibpath_var_CXX=no
10816         case $host_os in
10817           solaris2.0-5 | solaris2.0-5.*) ;;
10818           *)
10819             # The C++ compiler is used as linker so we must use $wl
10820             # flag to pass the commands to the underlying system
10821             # linker.
10822             # Supported since Solaris 2.6 (maybe 2.5.1?)
10823             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10824             ;;
10825         esac
10826         link_all_deplibs_CXX=yes
10827
10828         # Commands to make compiler produce verbose output that lists
10829         # what "hidden" libraries, object files and flags are used when
10830         # linking a shared library.
10831         #
10832         # There doesn't appear to be a way to prevent this compiler from
10833         # explicitly linking system object files so we need to strip them
10834         # from the output so that they don't get included in the library
10835         # dependencies.
10836         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'
10837
10838         # Archives containing C++ object files must be created using
10839         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10840         # necessary to make sure instantiated templates are included
10841         # in the archive.
10842         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10843         ;;
10844       gcx)
10845         # Green Hills C++ Compiler
10846         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10847
10848         # The C++ compiler must be used to create the archive.
10849         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10850         ;;
10851       *)
10852         # GNU C++ compiler with Solaris linker
10853         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10854           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10855           if $CC --version | grep -v '^2\.7' > /dev/null; then
10856             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10857             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10858                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10859
10860             # Commands to make compiler produce verbose output that lists
10861             # what "hidden" libraries, object files and flags are used when
10862             # linking a shared library.
10863             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10864           else
10865             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10866             # platform.
10867             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10868             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10869                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10870
10871             # Commands to make compiler produce verbose output that lists
10872             # what "hidden" libraries, object files and flags are used when
10873             # linking a shared library.
10874             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10875           fi
10876
10877           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10878         fi
10879         ;;
10880     esac
10881     ;;
10882   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10883     archive_cmds_need_lc_CXX=no
10884     ;;
10885   tandem*)
10886     case $cc_basename in
10887       NCC)
10888         # NonStop-UX NCC 3.20
10889         # FIXME: insert proper C++ library support
10890         ld_shlibs_CXX=no
10891         ;;
10892       *)
10893         # FIXME: insert proper C++ library support
10894         ld_shlibs_CXX=no
10895         ;;
10896     esac
10897     ;;
10898   vxworks*)
10899     # FIXME: insert proper C++ library support
10900     ld_shlibs_CXX=no
10901     ;;
10902   *)
10903     # FIXME: insert proper C++ library support
10904     ld_shlibs_CXX=no
10905     ;;
10906 esac
10907 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10908 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10909 test "$ld_shlibs_CXX" = no && can_build_shared=no
10910
10911 GCC_CXX="$GXX"
10912 LD_CXX="$LD"
10913
10914
10915 cat > conftest.$ac_ext <<EOF
10916 class Foo
10917 {
10918 public:
10919   Foo (void) { a = 0; }
10920 private:
10921   int a;
10922 };
10923 EOF
10924
10925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10926   (eval $ac_compile) 2>&5
10927   ac_status=$?
10928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929   (exit $ac_status); }; then
10930   # Parse the compiler output and extract the necessary
10931   # objects, libraries and library flags.
10932
10933   # Sentinel used to keep track of whether or not we are before
10934   # the conftest object file.
10935   pre_test_object_deps_done=no
10936
10937   # The `*' in the case matches for architectures that use `case' in
10938   # $output_verbose_cmd can trigger glob expansion during the loop
10939   # eval without this substitution.
10940   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10941
10942   for p in `eval $output_verbose_link_cmd`; do
10943     case $p in
10944
10945     -L* | -R* | -l*)
10946        # Some compilers place space between "-{L,R}" and the path.
10947        # Remove the space.
10948        if test $p = "-L" \
10949           || test $p = "-R"; then
10950          prev=$p
10951          continue
10952        else
10953          prev=
10954        fi
10955
10956        if test "$pre_test_object_deps_done" = no; then
10957          case $p in
10958          -L* | -R*)
10959            # Internal compiler library paths should come after those
10960            # provided the user.  The postdeps already come after the
10961            # user supplied libs so there is no need to process them.
10962            if test -z "$compiler_lib_search_path_CXX"; then
10963              compiler_lib_search_path_CXX="${prev}${p}"
10964            else
10965              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10966            fi
10967            ;;
10968          # The "-l" case would never come before the object being
10969          # linked, so don't bother handling this case.
10970          esac
10971        else
10972          if test -z "$postdeps_CXX"; then
10973            postdeps_CXX="${prev}${p}"
10974          else
10975            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10976          fi
10977        fi
10978        ;;
10979
10980     *.$objext)
10981        # This assumes that the test object file only shows up
10982        # once in the compiler output.
10983        if test "$p" = "conftest.$objext"; then
10984          pre_test_object_deps_done=yes
10985          continue
10986        fi
10987
10988        if test "$pre_test_object_deps_done" = no; then
10989          if test -z "$predep_objects_CXX"; then
10990            predep_objects_CXX="$p"
10991          else
10992            predep_objects_CXX="$predep_objects_CXX $p"
10993          fi
10994        else
10995          if test -z "$postdep_objects_CXX"; then
10996            postdep_objects_CXX="$p"
10997          else
10998            postdep_objects_CXX="$postdep_objects_CXX $p"
10999          fi
11000        fi
11001        ;;
11002
11003     *) ;; # Ignore the rest.
11004
11005     esac
11006   done
11007
11008   # Clean up.
11009   rm -f a.out a.exe
11010 else
11011   echo "libtool.m4: error: problem compiling CXX test program"
11012 fi
11013
11014 $rm -f confest.$objext
11015
11016 case " $postdeps_CXX " in
11017 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11018 esac
11019
11020 lt_prog_compiler_wl_CXX=
11021 lt_prog_compiler_pic_CXX=
11022 lt_prog_compiler_static_CXX=
11023
11024 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11025 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11026
11027   # C++ specific cases for pic, static, wl, etc.
11028   if test "$GXX" = yes; then
11029     lt_prog_compiler_wl_CXX='-Wl,'
11030     lt_prog_compiler_static_CXX='-static'
11031
11032     case $host_os in
11033     aix*)
11034       # All AIX code is PIC.
11035       if test "$host_cpu" = ia64; then
11036         # AIX 5 now supports IA64 processor
11037         lt_prog_compiler_static_CXX='-Bstatic'
11038       fi
11039       ;;
11040     amigaos*)
11041       # FIXME: we need at least 68020 code to build shared libraries, but
11042       # adding the `-m68020' flag to GCC prevents building anything better,
11043       # like `-m68040'.
11044       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11045       ;;
11046     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11047       # PIC is the default for these OSes.
11048       ;;
11049     mingw* | os2* | pw32*)
11050       # This hack is so that the source file can tell whether it is being
11051       # built for inclusion in a dll (and should export symbols for example).
11052       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11053       ;;
11054     darwin* | rhapsody*)
11055       # PIC is the default on this platform
11056       # Common symbols not allowed in MH_DYLIB files
11057       lt_prog_compiler_pic_CXX='-fno-common'
11058       ;;
11059     *djgpp*)
11060       # DJGPP does not support shared libraries at all
11061       lt_prog_compiler_pic_CXX=
11062       ;;
11063     sysv4*MP*)
11064       if test -d /usr/nec; then
11065         lt_prog_compiler_pic_CXX=-Kconform_pic
11066       fi
11067       ;;
11068     hpux*)
11069       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11070       # not for PA HP-UX.
11071       case "$host_cpu" in
11072       hppa*64*|ia64*)
11073         ;;
11074       *)
11075         lt_prog_compiler_pic_CXX='-fPIC'
11076         ;;
11077       esac
11078       ;;
11079     *)
11080       lt_prog_compiler_pic_CXX='-fPIC'
11081       ;;
11082     esac
11083   else
11084     case $host_os in
11085       aix4* | aix5*)
11086         # All AIX code is PIC.
11087         if test "$host_cpu" = ia64; then
11088           # AIX 5 now supports IA64 processor
11089           lt_prog_compiler_static_CXX='-Bstatic'
11090         else
11091           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11092         fi
11093         ;;
11094       chorus*)
11095         case $cc_basename in
11096         cxch68)
11097           # Green Hills C++ Compiler
11098           # _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"
11099           ;;
11100         esac
11101         ;;
11102       dgux*)
11103         case $cc_basename in
11104           ec++)
11105             lt_prog_compiler_pic_CXX='-KPIC'
11106             ;;
11107           ghcx)
11108             # Green Hills C++ Compiler
11109             lt_prog_compiler_pic_CXX='-pic'
11110             ;;
11111           *)
11112             ;;
11113         esac
11114         ;;
11115       freebsd* | kfreebsd*-gnu)
11116         # FreeBSD uses GNU C++
11117         ;;
11118       hpux9* | hpux10* | hpux11*)
11119         case $cc_basename in
11120           CC)
11121             lt_prog_compiler_wl_CXX='-Wl,'
11122             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11123             if test "$host_cpu" != ia64; then
11124               lt_prog_compiler_pic_CXX='+Z'
11125             fi
11126             ;;
11127           aCC)
11128             lt_prog_compiler_wl_CXX='-Wl,'
11129             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11130             case "$host_cpu" in
11131             hppa*64*|ia64*)
11132               # +Z the default
11133               ;;
11134             *)
11135               lt_prog_compiler_pic_CXX='+Z'
11136               ;;
11137             esac
11138             ;;
11139           *)
11140             ;;
11141         esac
11142         ;;
11143       irix5* | irix6* | nonstopux*)
11144         case $cc_basename in
11145           CC)
11146             lt_prog_compiler_wl_CXX='-Wl,'
11147             lt_prog_compiler_static_CXX='-non_shared'
11148             # CC pic flag -KPIC is the default.
11149             ;;
11150           *)
11151             ;;
11152         esac
11153         ;;
11154       linux*)
11155         case $cc_basename in
11156           KCC)
11157             # KAI C++ Compiler
11158             lt_prog_compiler_wl_CXX='--backend -Wl,'
11159             lt_prog_compiler_pic_CXX='-fPIC'
11160             ;;
11161           icpc)
11162             # Intel C++
11163             lt_prog_compiler_wl_CXX='-Wl,'
11164             lt_prog_compiler_pic_CXX='-KPIC'
11165             lt_prog_compiler_static_CXX='-static'
11166             ;;
11167           cxx)
11168             # Compaq C++
11169             # Make sure the PIC flag is empty.  It appears that all Alpha
11170             # Linux and Compaq Tru64 Unix objects are PIC.
11171             lt_prog_compiler_pic_CXX=
11172             lt_prog_compiler_static_CXX='-non_shared'
11173             ;;
11174           *)
11175             ;;
11176         esac
11177         ;;
11178       lynxos*)
11179         ;;
11180       m88k*)
11181         ;;
11182       mvs*)
11183         case $cc_basename in
11184           cxx)
11185             lt_prog_compiler_pic_CXX='-W c,exportall'
11186             ;;
11187           *)
11188             ;;
11189         esac
11190         ;;
11191       netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11192         ;;
11193       osf3* | osf4* | osf5*)
11194         case $cc_basename in
11195           KCC)
11196             lt_prog_compiler_wl_CXX='--backend -Wl,'
11197             ;;
11198           RCC)
11199             # Rational C++ 2.4.1
11200             lt_prog_compiler_pic_CXX='-pic'
11201             ;;
11202           cxx)
11203             # Digital/Compaq C++
11204             lt_prog_compiler_wl_CXX='-Wl,'
11205             # Make sure the PIC flag is empty.  It appears that all Alpha
11206             # Linux and Compaq Tru64 Unix objects are PIC.
11207             lt_prog_compiler_pic_CXX=
11208             lt_prog_compiler_static_CXX='-non_shared'
11209             ;;
11210           *)
11211             ;;
11212         esac
11213         ;;
11214       psos*)
11215         ;;
11216       sco*)
11217         case $cc_basename in
11218           CC)
11219             lt_prog_compiler_pic_CXX='-fPIC'
11220             ;;
11221           *)
11222             ;;
11223         esac
11224         ;;
11225       solaris*)
11226         case $cc_basename in
11227           CC)
11228             # Sun C++ 4.2, 5.x and Centerline C++
11229             lt_prog_compiler_pic_CXX='-KPIC'
11230             lt_prog_compiler_static_CXX='-Bstatic'
11231             lt_prog_compiler_wl_CXX='-Qoption ld '
11232             ;;
11233           gcx)
11234             # Green Hills C++ Compiler
11235             lt_prog_compiler_pic_CXX='-PIC'
11236             ;;
11237           *)
11238             ;;
11239         esac
11240         ;;
11241       sunos4*)
11242         case $cc_basename in
11243           CC)
11244             # Sun C++ 4.x
11245             lt_prog_compiler_pic_CXX='-pic'
11246             lt_prog_compiler_static_CXX='-Bstatic'
11247             ;;
11248           lcc)
11249             # Lucid
11250             lt_prog_compiler_pic_CXX='-pic'
11251             ;;
11252           *)
11253             ;;
11254         esac
11255         ;;
11256       tandem*)
11257         case $cc_basename in
11258           NCC)
11259             # NonStop-UX NCC 3.20
11260             lt_prog_compiler_pic_CXX='-KPIC'
11261             ;;
11262           *)
11263             ;;
11264         esac
11265         ;;
11266       unixware*)
11267         ;;
11268       vxworks*)
11269         ;;
11270       *)
11271         lt_prog_compiler_can_build_shared_CXX=no
11272         ;;
11273     esac
11274   fi
11275
11276 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11277 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11278
11279 #
11280 # Check to make sure the PIC flag actually works.
11281 #
11282 if test -n "$lt_prog_compiler_pic_CXX"; then
11283
11284 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11285 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11286 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11287   echo $ECHO_N "(cached) $ECHO_C" >&6
11288 else
11289   lt_prog_compiler_pic_works_CXX=no
11290   ac_outfile=conftest.$ac_objext
11291    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11292    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11293    # Insert the option either (1) after the last *FLAGS variable, or
11294    # (2) before a word containing "conftest.", or (3) at the end.
11295    # Note that $ac_compile itself does not contain backslashes and begins
11296    # with a dollar sign (not a hyphen), so the echo should work correctly.
11297    # The option is referenced via a variable to avoid confusing sed.
11298    lt_compile=`echo "$ac_compile" | $SED \
11299    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11300    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11301    -e 's:$: $lt_compiler_flag:'`
11302    (eval echo "\"\$as_me:11302: $lt_compile\"" >&5)
11303    (eval "$lt_compile" 2>conftest.err)
11304    ac_status=$?
11305    cat conftest.err >&5
11306    echo "$as_me:11306: \$? = $ac_status" >&5
11307    if (exit $ac_status) && test -s "$ac_outfile"; then
11308      # The compiler can only warn and ignore the option if not recognized
11309      # So say no if there are warnings
11310      if test ! -s conftest.err; then
11311        lt_prog_compiler_pic_works_CXX=yes
11312      fi
11313    fi
11314    $rm conftest*
11315
11316 fi
11317 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11318 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11319
11320 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11321     case $lt_prog_compiler_pic_CXX in
11322      "" | " "*) ;;
11323      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11324      esac
11325 else
11326     lt_prog_compiler_pic_CXX=
11327      lt_prog_compiler_can_build_shared_CXX=no
11328 fi
11329
11330 fi
11331 case "$host_os" in
11332   # For platforms which do not support PIC, -DPIC is meaningless:
11333   *djgpp*)
11334     lt_prog_compiler_pic_CXX=
11335     ;;
11336   *)
11337     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11338     ;;
11339 esac
11340
11341 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11342 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11343 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11344   echo $ECHO_N "(cached) $ECHO_C" >&6
11345 else
11346   lt_cv_prog_compiler_c_o_CXX=no
11347    $rm -r conftest 2>/dev/null
11348    mkdir conftest
11349    cd conftest
11350    mkdir out
11351    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11352
11353    lt_compiler_flag="-o out/conftest2.$ac_objext"
11354    # Insert the option either (1) after the last *FLAGS variable, or
11355    # (2) before a word containing "conftest.", or (3) at the end.
11356    # Note that $ac_compile itself does not contain backslashes and begins
11357    # with a dollar sign (not a hyphen), so the echo should work correctly.
11358    lt_compile=`echo "$ac_compile" | $SED \
11359    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11360    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11361    -e 's:$: $lt_compiler_flag:'`
11362    (eval echo "\"\$as_me:11362: $lt_compile\"" >&5)
11363    (eval "$lt_compile" 2>out/conftest.err)
11364    ac_status=$?
11365    cat out/conftest.err >&5
11366    echo "$as_me:11366: \$? = $ac_status" >&5
11367    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11368    then
11369      # The compiler can only warn and ignore the option if not recognized
11370      # So say no if there are warnings
11371      if test ! -s out/conftest.err; then
11372        lt_cv_prog_compiler_c_o_CXX=yes
11373      fi
11374    fi
11375    chmod u+w .
11376    $rm conftest*
11377    # SGI C++ compiler will create directory out/ii_files/ for
11378    # template instantiation
11379    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11380    $rm out/* && rmdir out
11381    cd ..
11382    rmdir conftest
11383    $rm conftest*
11384
11385 fi
11386 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11387 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11388
11389
11390 hard_links="nottested"
11391 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11392   # do not overwrite the value of need_locks provided by the user
11393   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11394 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11395   hard_links=yes
11396   $rm conftest*
11397   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11398   touch conftest.a
11399   ln conftest.a conftest.b 2>&5 || hard_links=no
11400   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11401   echo "$as_me:$LINENO: result: $hard_links" >&5
11402 echo "${ECHO_T}$hard_links" >&6
11403   if test "$hard_links" = no; then
11404     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11405 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11406     need_locks=warn
11407   fi
11408 else
11409   need_locks=no
11410 fi
11411
11412 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11413 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11414
11415   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11416   case $host_os in
11417   aix4* | aix5*)
11418     # If we're using GNU nm, then we don't want the "-C" option.
11419     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11420     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11421       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'
11422     else
11423       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'
11424     fi
11425     ;;
11426   pw32*)
11427     export_symbols_cmds_CXX="$ltdll_cmds"
11428   ;;
11429   cygwin* | mingw*)
11430     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11431   ;;
11432   linux*)
11433     link_all_deplibs_CXX=no
11434   ;;
11435   *)
11436     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11437   ;;
11438   esac
11439
11440 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11441 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11442 test "$ld_shlibs_CXX" = no && can_build_shared=no
11443
11444 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11445 if test "$GCC" = yes; then
11446   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11447 fi
11448
11449 #
11450 # Do we need to explicitly link libc?
11451 #
11452 case "x$archive_cmds_need_lc_CXX" in
11453 x|xyes)
11454   # Assume -lc should be added
11455   archive_cmds_need_lc_CXX=yes
11456
11457   if test "$enable_shared" = yes && test "$GCC" = yes; then
11458     case $archive_cmds_CXX in
11459     *'~'*)
11460       # FIXME: we may have to deal with multi-command sequences.
11461       ;;
11462     '$CC '*)
11463       # Test whether the compiler implicitly links with -lc since on some
11464       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11465       # to ld, don't add -lc before -lgcc.
11466       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11467 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11468       $rm conftest*
11469       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11470
11471       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11472   (eval $ac_compile) 2>&5
11473   ac_status=$?
11474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475   (exit $ac_status); } 2>conftest.err; then
11476         soname=conftest
11477         lib=conftest
11478         libobjs=conftest.$ac_objext
11479         deplibs=
11480         wl=$lt_prog_compiler_wl_CXX
11481         compiler_flags=-v
11482         linker_flags=-v
11483         verstring=
11484         output_objdir=.
11485         libname=conftest
11486         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11487         allow_undefined_flag_CXX=
11488         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11489   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11490   ac_status=$?
11491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492   (exit $ac_status); }
11493         then
11494           archive_cmds_need_lc_CXX=no
11495         else
11496           archive_cmds_need_lc_CXX=yes
11497         fi
11498         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11499       else
11500         cat conftest.err 1>&5
11501       fi
11502       $rm conftest*
11503       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11504 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11505       ;;
11506     esac
11507   fi
11508   ;;
11509 esac
11510
11511 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11512 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11513 library_names_spec=
11514 libname_spec='lib$name'
11515 soname_spec=
11516 shrext_cmds=".so"
11517 postinstall_cmds=
11518 postuninstall_cmds=
11519 finish_cmds=
11520 finish_eval=
11521 shlibpath_var=
11522 shlibpath_overrides_runpath=unknown
11523 version_type=none
11524 dynamic_linker="$host_os ld.so"
11525 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11526 if test "$GCC" = yes; then
11527   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11528   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11529     # if the path contains ";" then we assume it to be the separator
11530     # otherwise default to the standard path separator (i.e. ":") - it is
11531     # assumed that no part of a normal pathname contains ";" but that should
11532     # okay in the real world where ";" in dirpaths is itself problematic.
11533     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11534   else
11535     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11536   fi
11537 else
11538   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11539 fi
11540 need_lib_prefix=unknown
11541 hardcode_into_libs=no
11542
11543 # when you set need_version to no, make sure it does not cause -set_version
11544 # flags to be left without arguments
11545 need_version=unknown
11546
11547 case $host_os in
11548 aix3*)
11549   version_type=linux
11550   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11551   shlibpath_var=LIBPATH
11552
11553   # AIX 3 has no versioning support, so we append a major version to the name.
11554   soname_spec='${libname}${release}${shared_ext}$major'
11555   ;;
11556
11557 aix4* | aix5*)
11558   version_type=linux
11559   need_lib_prefix=no
11560   need_version=no
11561   hardcode_into_libs=yes
11562   if test "$host_cpu" = ia64; then
11563     # AIX 5 supports IA64
11564     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11565     shlibpath_var=LD_LIBRARY_PATH
11566   else
11567     # With GCC up to 2.95.x, collect2 would create an import file
11568     # for dependence libraries.  The import file would start with
11569     # the line `#! .'.  This would cause the generated library to
11570     # depend on `.', always an invalid library.  This was fixed in
11571     # development snapshots of GCC prior to 3.0.
11572     case $host_os in
11573       aix4 | aix4.[01] | aix4.[01].*)
11574       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11575            echo ' yes '
11576            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11577         :
11578       else
11579         can_build_shared=no
11580       fi
11581       ;;
11582     esac
11583     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11584     # soname into executable. Probably we can add versioning support to
11585     # collect2, so additional links can be useful in future.
11586     if test "$aix_use_runtimelinking" = yes; then
11587       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11588       # instead of lib<name>.a to let people know that these are not
11589       # typical AIX shared libraries.
11590       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11591     else
11592       # We preserve .a as extension for shared libraries through AIX4.2
11593       # and later when we are not doing run time linking.
11594       library_names_spec='${libname}${release}.a $libname.a'
11595       soname_spec='${libname}${release}${shared_ext}$major'
11596     fi
11597     shlibpath_var=LIBPATH
11598   fi
11599   ;;
11600
11601 amigaos*)
11602   library_names_spec='$libname.ixlibrary $libname.a'
11603   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11604   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'
11605   ;;
11606
11607 beos*)
11608   library_names_spec='${libname}${shared_ext}'
11609   dynamic_linker="$host_os ld.so"
11610   shlibpath_var=LIBRARY_PATH
11611   ;;
11612
11613 bsdi4*)
11614   version_type=linux
11615   need_version=no
11616   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11617   soname_spec='${libname}${release}${shared_ext}$major'
11618   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11619   shlibpath_var=LD_LIBRARY_PATH
11620   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11621   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11622   # the default ld.so.conf also contains /usr/contrib/lib and
11623   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11624   # libtool to hard-code these into programs
11625   ;;
11626
11627 cygwin* | mingw* | pw32*)
11628   version_type=windows
11629   shrext_cmds=".dll"
11630   need_version=no
11631   need_lib_prefix=no
11632
11633   case $GCC,$host_os in
11634   yes,cygwin* | yes,mingw* | yes,pw32*)
11635     library_names_spec='$libname.dll.a'
11636     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11637     postinstall_cmds='base_file=`basename \${file}`~
11638       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11639       dldir=$destdir/`dirname \$dlpath`~
11640       test -d \$dldir || mkdir -p \$dldir~
11641       $install_prog $dir/$dlname \$dldir/$dlname'
11642     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11643       dlpath=$dir/\$dldll~
11644        $rm \$dlpath'
11645     shlibpath_overrides_runpath=yes
11646
11647     case $host_os in
11648     cygwin*)
11649       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11650       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11651       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11652       ;;
11653     mingw*)
11654       # MinGW DLLs use traditional 'lib' prefix
11655       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11656       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11657       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11658         # It is most probably a Windows format PATH printed by
11659         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11660         # path with ; separators, and with drive letters. We can handle the
11661         # drive letters (cygwin fileutils understands them), so leave them,
11662         # especially as we might pass files found there to a mingw objdump,
11663         # which wouldn't understand a cygwinified path. Ahh.
11664         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11665       else
11666         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11667       fi
11668       ;;
11669     pw32*)
11670       # pw32 DLLs use 'pw' prefix rather than 'lib'
11671       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11672       ;;
11673     esac
11674     ;;
11675
11676   *)
11677     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11678     ;;
11679   esac
11680   dynamic_linker='Win32 ld.exe'
11681   # FIXME: first we should search . and the directory the executable is in
11682   shlibpath_var=PATH
11683   ;;
11684
11685 darwin* | rhapsody*)
11686   dynamic_linker="$host_os dyld"
11687   version_type=darwin
11688   need_lib_prefix=no
11689   need_version=no
11690   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11691   soname_spec='${libname}${release}${major}$shared_ext'
11692   shlibpath_overrides_runpath=yes
11693   shlibpath_var=DYLD_LIBRARY_PATH
11694   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11695   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11696   if test "$GCC" = yes; then
11697     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"`
11698   else
11699     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11700   fi
11701   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11702   ;;
11703
11704 dgux*)
11705   version_type=linux
11706   need_lib_prefix=no
11707   need_version=no
11708   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11709   soname_spec='${libname}${release}${shared_ext}$major'
11710   shlibpath_var=LD_LIBRARY_PATH
11711   ;;
11712
11713 freebsd1*)
11714   dynamic_linker=no
11715   ;;
11716
11717 kfreebsd*-gnu)
11718   version_type=linux
11719   need_lib_prefix=no
11720   need_version=no
11721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11722   soname_spec='${libname}${release}${shared_ext}$major'
11723   shlibpath_var=LD_LIBRARY_PATH
11724   shlibpath_overrides_runpath=no
11725   hardcode_into_libs=yes
11726   dynamic_linker='GNU ld.so'
11727   ;;
11728
11729 freebsd*)
11730   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11731   version_type=freebsd-$objformat
11732   case $version_type in
11733     freebsd-elf*)
11734       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11735       need_version=no
11736       need_lib_prefix=no
11737       ;;
11738     freebsd-*)
11739       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11740       need_version=yes
11741       ;;
11742   esac
11743   shlibpath_var=LD_LIBRARY_PATH
11744   case $host_os in
11745   freebsd2*)
11746     shlibpath_overrides_runpath=yes
11747     ;;
11748   freebsd3.01* | freebsdelf3.01*)
11749     shlibpath_overrides_runpath=yes
11750     hardcode_into_libs=yes
11751     ;;
11752   *) # from 3.2 on
11753     shlibpath_overrides_runpath=no
11754     hardcode_into_libs=yes
11755     ;;
11756   esac
11757   ;;
11758
11759 gnu*)
11760   version_type=linux
11761   need_lib_prefix=no
11762   need_version=no
11763   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11764   soname_spec='${libname}${release}${shared_ext}$major'
11765   shlibpath_var=LD_LIBRARY_PATH
11766   hardcode_into_libs=yes
11767   ;;
11768
11769 hpux9* | hpux10* | hpux11*)
11770   # Give a soname corresponding to the major version so that dld.sl refuses to
11771   # link against other versions.
11772   version_type=sunos
11773   need_lib_prefix=no
11774   need_version=no
11775   case "$host_cpu" in
11776   ia64*)
11777     shrext_cmds='.so'
11778     hardcode_into_libs=yes
11779     dynamic_linker="$host_os dld.so"
11780     shlibpath_var=LD_LIBRARY_PATH
11781     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11782     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11783     soname_spec='${libname}${release}${shared_ext}$major'
11784     if test "X$HPUX_IA64_MODE" = X32; then
11785       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11786     else
11787       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11788     fi
11789     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11790     ;;
11791    hppa*64*)
11792      shrext_cmds='.sl'
11793      hardcode_into_libs=yes
11794      dynamic_linker="$host_os dld.sl"
11795      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11796      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11797      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11798      soname_spec='${libname}${release}${shared_ext}$major'
11799      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11800      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11801      ;;
11802    *)
11803     shrext_cmds='.sl'
11804     dynamic_linker="$host_os dld.sl"
11805     shlibpath_var=SHLIB_PATH
11806     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11807     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11808     soname_spec='${libname}${release}${shared_ext}$major'
11809     ;;
11810   esac
11811   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11812   postinstall_cmds='chmod 555 $lib'
11813   ;;
11814
11815 irix5* | irix6* | nonstopux*)
11816   case $host_os in
11817     nonstopux*) version_type=nonstopux ;;
11818     *)
11819         if test "$lt_cv_prog_gnu_ld" = yes; then
11820                 version_type=linux
11821         else
11822                 version_type=irix
11823         fi ;;
11824   esac
11825   need_lib_prefix=no
11826   need_version=no
11827   soname_spec='${libname}${release}${shared_ext}$major'
11828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11829   case $host_os in
11830   irix5* | nonstopux*)
11831     libsuff= shlibsuff=
11832     ;;
11833   *)
11834     case $LD in # libtool.m4 will add one of these switches to LD
11835     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11836       libsuff= shlibsuff= libmagic=32-bit;;
11837     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11838       libsuff=32 shlibsuff=N32 libmagic=N32;;
11839     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11840       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11841     *) libsuff= shlibsuff= libmagic=never-match;;
11842     esac
11843     ;;
11844   esac
11845   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11846   shlibpath_overrides_runpath=no
11847   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11848   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11849   hardcode_into_libs=yes
11850   ;;
11851
11852 # No shared lib support for Linux oldld, aout, or coff.
11853 linux*oldld* | linux*aout* | linux*coff*)
11854   dynamic_linker=no
11855   ;;
11856
11857 # This must be Linux ELF.
11858 linux*)
11859   version_type=linux
11860   need_lib_prefix=no
11861   need_version=no
11862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11863   soname_spec='${libname}${release}${shared_ext}$major'
11864   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11865   shlibpath_var=LD_LIBRARY_PATH
11866   shlibpath_overrides_runpath=no
11867   # This implies no fast_install, which is unacceptable.
11868   # Some rework will be needed to allow for fast_install
11869   # before this can be enabled.
11870   hardcode_into_libs=yes
11871
11872   # Append ld.so.conf contents to the search path
11873   if test -f /etc/ld.so.conf; then
11874     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11875     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11876   fi
11877
11878   # We used to test for /lib/ld.so.1 and disable shared libraries on
11879   # powerpc, because MkLinux only supported shared libraries with the
11880   # GNU dynamic linker.  Since this was broken with cross compilers,
11881   # most powerpc-linux boxes support dynamic linking these days and
11882   # people can always --disable-shared, the test was removed, and we
11883   # assume the GNU/Linux dynamic linker is in use.
11884   dynamic_linker='GNU/Linux ld.so'
11885   ;;
11886
11887 netbsdelf*-gnu)
11888   version_type=linux
11889   need_lib_prefix=no
11890   need_version=no
11891   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11892   soname_spec='${libname}${release}${shared_ext}$major'
11893   shlibpath_var=LD_LIBRARY_PATH
11894   shlibpath_overrides_runpath=no
11895   hardcode_into_libs=yes
11896   dynamic_linker='NetBSD ld.elf_so'
11897   ;;
11898
11899 knetbsd*-gnu)
11900   version_type=linux
11901   need_lib_prefix=no
11902   need_version=no
11903   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11904   soname_spec='${libname}${release}${shared_ext}$major'
11905   shlibpath_var=LD_LIBRARY_PATH
11906   shlibpath_overrides_runpath=no
11907   hardcode_into_libs=yes
11908   dynamic_linker='GNU ld.so'
11909   ;;
11910
11911 netbsd*)
11912   version_type=sunos
11913   need_lib_prefix=no
11914   need_version=no
11915   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11916     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11917     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11918     dynamic_linker='NetBSD (a.out) ld.so'
11919   else
11920     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11921     soname_spec='${libname}${release}${shared_ext}$major'
11922     dynamic_linker='NetBSD ld.elf_so'
11923   fi
11924   shlibpath_var=LD_LIBRARY_PATH
11925   shlibpath_overrides_runpath=yes
11926   hardcode_into_libs=yes
11927   ;;
11928
11929 newsos6)
11930   version_type=linux
11931   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11932   shlibpath_var=LD_LIBRARY_PATH
11933   shlibpath_overrides_runpath=yes
11934   ;;
11935
11936 nto-qnx*)
11937   version_type=linux
11938   need_lib_prefix=no
11939   need_version=no
11940   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11941   soname_spec='${libname}${release}${shared_ext}$major'
11942   shlibpath_var=LD_LIBRARY_PATH
11943   shlibpath_overrides_runpath=yes
11944   ;;
11945
11946 openbsd*)
11947   version_type=sunos
11948   need_lib_prefix=no
11949   need_version=yes
11950   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11951   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11952   shlibpath_var=LD_LIBRARY_PATH
11953   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11954     case $host_os in
11955       openbsd2.[89] | openbsd2.[89].*)
11956         shlibpath_overrides_runpath=no
11957         ;;
11958       *)
11959         shlibpath_overrides_runpath=yes
11960         ;;
11961       esac
11962   else
11963     shlibpath_overrides_runpath=yes
11964   fi
11965   ;;
11966
11967 os2*)
11968   libname_spec='$name'
11969   shrext_cmds=".dll"
11970   need_lib_prefix=no
11971   library_names_spec='$libname${shared_ext} $libname.a'
11972   dynamic_linker='OS/2 ld.exe'
11973   shlibpath_var=LIBPATH
11974   ;;
11975
11976 osf3* | osf4* | osf5*)
11977   version_type=osf
11978   need_lib_prefix=no
11979   need_version=no
11980   soname_spec='${libname}${release}${shared_ext}$major'
11981   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11982   shlibpath_var=LD_LIBRARY_PATH
11983   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11984   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11985   ;;
11986
11987 sco3.2v5*)
11988   version_type=osf
11989   soname_spec='${libname}${release}${shared_ext}$major'
11990   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11991   shlibpath_var=LD_LIBRARY_PATH
11992   ;;
11993
11994 solaris*)
11995   version_type=linux
11996   need_lib_prefix=no
11997   need_version=no
11998   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11999   soname_spec='${libname}${release}${shared_ext}$major'
12000   shlibpath_var=LD_LIBRARY_PATH
12001   shlibpath_overrides_runpath=yes
12002   hardcode_into_libs=yes
12003   # ldd complains unless libraries are executable
12004   postinstall_cmds='chmod +x $lib'
12005   ;;
12006
12007 sunos4*)
12008   version_type=sunos
12009   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12010   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12011   shlibpath_var=LD_LIBRARY_PATH
12012   shlibpath_overrides_runpath=yes
12013   if test "$with_gnu_ld" = yes; then
12014     need_lib_prefix=no
12015   fi
12016   need_version=yes
12017   ;;
12018
12019 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12020   version_type=linux
12021   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12022   soname_spec='${libname}${release}${shared_ext}$major'
12023   shlibpath_var=LD_LIBRARY_PATH
12024   case $host_vendor in
12025     sni)
12026       shlibpath_overrides_runpath=no
12027       need_lib_prefix=no
12028       export_dynamic_flag_spec='${wl}-Blargedynsym'
12029       runpath_var=LD_RUN_PATH
12030       ;;
12031     siemens)
12032       need_lib_prefix=no
12033       ;;
12034     motorola)
12035       need_lib_prefix=no
12036       need_version=no
12037       shlibpath_overrides_runpath=no
12038       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12039       ;;
12040   esac
12041   ;;
12042
12043 sysv4*MP*)
12044   if test -d /usr/nec ;then
12045     version_type=linux
12046     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12047     soname_spec='$libname${shared_ext}.$major'
12048     shlibpath_var=LD_LIBRARY_PATH
12049   fi
12050   ;;
12051
12052 uts4*)
12053   version_type=linux
12054   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12055   soname_spec='${libname}${release}${shared_ext}$major'
12056   shlibpath_var=LD_LIBRARY_PATH
12057   ;;
12058
12059 *)
12060   dynamic_linker=no
12061   ;;
12062 esac
12063 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12064 echo "${ECHO_T}$dynamic_linker" >&6
12065 test "$dynamic_linker" = no && can_build_shared=no
12066
12067 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12068 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12069 hardcode_action_CXX=
12070 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12071    test -n "$runpath_var CXX" || \
12072    test "X$hardcode_automatic_CXX"="Xyes" ; then
12073
12074   # We can hardcode non-existant directories.
12075   if test "$hardcode_direct_CXX" != no &&
12076      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12077      # have to relink, otherwise we might link with an installed library
12078      # when we should be linking with a yet-to-be-installed one
12079      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12080      test "$hardcode_minus_L_CXX" != no; then
12081     # Linking always hardcodes the temporary library directory.
12082     hardcode_action_CXX=relink
12083   else
12084     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12085     hardcode_action_CXX=immediate
12086   fi
12087 else
12088   # We cannot hardcode anything, or else we can only hardcode existing
12089   # directories.
12090   hardcode_action_CXX=unsupported
12091 fi
12092 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12093 echo "${ECHO_T}$hardcode_action_CXX" >&6
12094
12095 if test "$hardcode_action_CXX" = relink; then
12096   # Fast installation is not supported
12097   enable_fast_install=no
12098 elif test "$shlibpath_overrides_runpath" = yes ||
12099      test "$enable_shared" = no; then
12100   # Fast installation is not necessary
12101   enable_fast_install=needless
12102 fi
12103
12104 striplib=
12105 old_striplib=
12106 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12107 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12108 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12109   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12110   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12111   echo "$as_me:$LINENO: result: yes" >&5
12112 echo "${ECHO_T}yes" >&6
12113 else
12114 # FIXME - insert some real tests, host_os isn't really good enough
12115   case $host_os in
12116    darwin*)
12117        if test -n "$STRIP" ; then
12118          striplib="$STRIP -x"
12119          echo "$as_me:$LINENO: result: yes" >&5
12120 echo "${ECHO_T}yes" >&6
12121        else
12122   echo "$as_me:$LINENO: result: no" >&5
12123 echo "${ECHO_T}no" >&6
12124 fi
12125        ;;
12126    *)
12127   echo "$as_me:$LINENO: result: no" >&5
12128 echo "${ECHO_T}no" >&6
12129     ;;
12130   esac
12131 fi
12132
12133 if test "x$enable_dlopen" != xyes; then
12134   enable_dlopen=unknown
12135   enable_dlopen_self=unknown
12136   enable_dlopen_self_static=unknown
12137 else
12138   lt_cv_dlopen=no
12139   lt_cv_dlopen_libs=
12140
12141   case $host_os in
12142   beos*)
12143     lt_cv_dlopen="load_add_on"
12144     lt_cv_dlopen_libs=
12145     lt_cv_dlopen_self=yes
12146     ;;
12147
12148   mingw* | pw32*)
12149     lt_cv_dlopen="LoadLibrary"
12150     lt_cv_dlopen_libs=
12151    ;;
12152
12153   cygwin*)
12154     lt_cv_dlopen="dlopen"
12155     lt_cv_dlopen_libs=
12156    ;;
12157
12158   darwin*)
12159   # if libdl is installed we need to link against it
12160     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12161 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12162 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12163   echo $ECHO_N "(cached) $ECHO_C" >&6
12164 else
12165   ac_check_lib_save_LIBS=$LIBS
12166 LIBS="-ldl  $LIBS"
12167 cat >conftest.$ac_ext <<_ACEOF
12168 /* confdefs.h.  */
12169 _ACEOF
12170 cat confdefs.h >>conftest.$ac_ext
12171 cat >>conftest.$ac_ext <<_ACEOF
12172 /* end confdefs.h.  */
12173
12174 /* Override any gcc2 internal prototype to avoid an error.  */
12175 #ifdef __cplusplus
12176 extern "C"
12177 #endif
12178 /* We use char because int might match the return type of a gcc2
12179    builtin and then its argument prototype would still apply.  */
12180 char dlopen ();
12181 int
12182 main ()
12183 {
12184 dlopen ();
12185   ;
12186   return 0;
12187 }
12188 _ACEOF
12189 rm -f conftest.$ac_objext conftest$ac_exeext
12190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12191   (eval $ac_link) 2>conftest.er1
12192   ac_status=$?
12193   grep -v '^ *+' conftest.er1 >conftest.err
12194   rm -f conftest.er1
12195   cat conftest.err >&5
12196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197   (exit $ac_status); } &&
12198          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12200   (eval $ac_try) 2>&5
12201   ac_status=$?
12202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203   (exit $ac_status); }; } &&
12204          { ac_try='test -s conftest$ac_exeext'
12205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12206   (eval $ac_try) 2>&5
12207   ac_status=$?
12208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209   (exit $ac_status); }; }; then
12210   ac_cv_lib_dl_dlopen=yes
12211 else
12212   echo "$as_me: failed program was:" >&5
12213 sed 's/^/| /' conftest.$ac_ext >&5
12214
12215 ac_cv_lib_dl_dlopen=no
12216 fi
12217 rm -f conftest.err conftest.$ac_objext \
12218       conftest$ac_exeext conftest.$ac_ext
12219 LIBS=$ac_check_lib_save_LIBS
12220 fi
12221 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12222 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12223 if test $ac_cv_lib_dl_dlopen = yes; then
12224   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12225 else
12226
12227     lt_cv_dlopen="dyld"
12228     lt_cv_dlopen_libs=
12229     lt_cv_dlopen_self=yes
12230
12231 fi
12232
12233    ;;
12234
12235   *)
12236     echo "$as_me:$LINENO: checking for shl_load" >&5
12237 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12238 if test "${ac_cv_func_shl_load+set}" = set; then
12239   echo $ECHO_N "(cached) $ECHO_C" >&6
12240 else
12241   cat >conftest.$ac_ext <<_ACEOF
12242 /* confdefs.h.  */
12243 _ACEOF
12244 cat confdefs.h >>conftest.$ac_ext
12245 cat >>conftest.$ac_ext <<_ACEOF
12246 /* end confdefs.h.  */
12247 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12248    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12249 #define shl_load innocuous_shl_load
12250
12251 /* System header to define __stub macros and hopefully few prototypes,
12252     which can conflict with char shl_load (); below.
12253     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12254     <limits.h> exists even on freestanding compilers.  */
12255
12256 #ifdef __STDC__
12257 # include <limits.h>
12258 #else
12259 # include <assert.h>
12260 #endif
12261
12262 #undef shl_load
12263
12264 /* Override any gcc2 internal prototype to avoid an error.  */
12265 #ifdef __cplusplus
12266 extern "C"
12267 {
12268 #endif
12269 /* We use char because int might match the return type of a gcc2
12270    builtin and then its argument prototype would still apply.  */
12271 char shl_load ();
12272 /* The GNU C library defines this for functions which it implements
12273     to always fail with ENOSYS.  Some functions are actually named
12274     something starting with __ and the normal name is an alias.  */
12275 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12276 choke me
12277 #else
12278 char (*f) () = shl_load;
12279 #endif
12280 #ifdef __cplusplus
12281 }
12282 #endif
12283
12284 int
12285 main ()
12286 {
12287 return f != shl_load;
12288   ;
12289   return 0;
12290 }
12291 _ACEOF
12292 rm -f conftest.$ac_objext conftest$ac_exeext
12293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12294   (eval $ac_link) 2>conftest.er1
12295   ac_status=$?
12296   grep -v '^ *+' conftest.er1 >conftest.err
12297   rm -f conftest.er1
12298   cat conftest.err >&5
12299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300   (exit $ac_status); } &&
12301          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12303   (eval $ac_try) 2>&5
12304   ac_status=$?
12305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306   (exit $ac_status); }; } &&
12307          { ac_try='test -s conftest$ac_exeext'
12308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12309   (eval $ac_try) 2>&5
12310   ac_status=$?
12311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312   (exit $ac_status); }; }; then
12313   ac_cv_func_shl_load=yes
12314 else
12315   echo "$as_me: failed program was:" >&5
12316 sed 's/^/| /' conftest.$ac_ext >&5
12317
12318 ac_cv_func_shl_load=no
12319 fi
12320 rm -f conftest.err conftest.$ac_objext \
12321       conftest$ac_exeext conftest.$ac_ext
12322 fi
12323 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12324 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12325 if test $ac_cv_func_shl_load = yes; then
12326   lt_cv_dlopen="shl_load"
12327 else
12328   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12329 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12330 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12331   echo $ECHO_N "(cached) $ECHO_C" >&6
12332 else
12333   ac_check_lib_save_LIBS=$LIBS
12334 LIBS="-ldld  $LIBS"
12335 cat >conftest.$ac_ext <<_ACEOF
12336 /* confdefs.h.  */
12337 _ACEOF
12338 cat confdefs.h >>conftest.$ac_ext
12339 cat >>conftest.$ac_ext <<_ACEOF
12340 /* end confdefs.h.  */
12341
12342 /* Override any gcc2 internal prototype to avoid an error.  */
12343 #ifdef __cplusplus
12344 extern "C"
12345 #endif
12346 /* We use char because int might match the return type of a gcc2
12347    builtin and then its argument prototype would still apply.  */
12348 char shl_load ();
12349 int
12350 main ()
12351 {
12352 shl_load ();
12353   ;
12354   return 0;
12355 }
12356 _ACEOF
12357 rm -f conftest.$ac_objext conftest$ac_exeext
12358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12359   (eval $ac_link) 2>conftest.er1
12360   ac_status=$?
12361   grep -v '^ *+' conftest.er1 >conftest.err
12362   rm -f conftest.er1
12363   cat conftest.err >&5
12364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365   (exit $ac_status); } &&
12366          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12368   (eval $ac_try) 2>&5
12369   ac_status=$?
12370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371   (exit $ac_status); }; } &&
12372          { ac_try='test -s conftest$ac_exeext'
12373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12374   (eval $ac_try) 2>&5
12375   ac_status=$?
12376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377   (exit $ac_status); }; }; then
12378   ac_cv_lib_dld_shl_load=yes
12379 else
12380   echo "$as_me: failed program was:" >&5
12381 sed 's/^/| /' conftest.$ac_ext >&5
12382
12383 ac_cv_lib_dld_shl_load=no
12384 fi
12385 rm -f conftest.err conftest.$ac_objext \
12386       conftest$ac_exeext conftest.$ac_ext
12387 LIBS=$ac_check_lib_save_LIBS
12388 fi
12389 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12390 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12391 if test $ac_cv_lib_dld_shl_load = yes; then
12392   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12393 else
12394   echo "$as_me:$LINENO: checking for dlopen" >&5
12395 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12396 if test "${ac_cv_func_dlopen+set}" = set; then
12397   echo $ECHO_N "(cached) $ECHO_C" >&6
12398 else
12399   cat >conftest.$ac_ext <<_ACEOF
12400 /* confdefs.h.  */
12401 _ACEOF
12402 cat confdefs.h >>conftest.$ac_ext
12403 cat >>conftest.$ac_ext <<_ACEOF
12404 /* end confdefs.h.  */
12405 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12406    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12407 #define dlopen innocuous_dlopen
12408
12409 /* System header to define __stub macros and hopefully few prototypes,
12410     which can conflict with char dlopen (); below.
12411     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12412     <limits.h> exists even on freestanding compilers.  */
12413
12414 #ifdef __STDC__
12415 # include <limits.h>
12416 #else
12417 # include <assert.h>
12418 #endif
12419
12420 #undef dlopen
12421
12422 /* Override any gcc2 internal prototype to avoid an error.  */
12423 #ifdef __cplusplus
12424 extern "C"
12425 {
12426 #endif
12427 /* We use char because int might match the return type of a gcc2
12428    builtin and then its argument prototype would still apply.  */
12429 char dlopen ();
12430 /* The GNU C library defines this for functions which it implements
12431     to always fail with ENOSYS.  Some functions are actually named
12432     something starting with __ and the normal name is an alias.  */
12433 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12434 choke me
12435 #else
12436 char (*f) () = dlopen;
12437 #endif
12438 #ifdef __cplusplus
12439 }
12440 #endif
12441
12442 int
12443 main ()
12444 {
12445 return f != dlopen;
12446   ;
12447   return 0;
12448 }
12449 _ACEOF
12450 rm -f conftest.$ac_objext conftest$ac_exeext
12451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12452   (eval $ac_link) 2>conftest.er1
12453   ac_status=$?
12454   grep -v '^ *+' conftest.er1 >conftest.err
12455   rm -f conftest.er1
12456   cat conftest.err >&5
12457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458   (exit $ac_status); } &&
12459          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12461   (eval $ac_try) 2>&5
12462   ac_status=$?
12463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464   (exit $ac_status); }; } &&
12465          { ac_try='test -s conftest$ac_exeext'
12466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12467   (eval $ac_try) 2>&5
12468   ac_status=$?
12469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470   (exit $ac_status); }; }; then
12471   ac_cv_func_dlopen=yes
12472 else
12473   echo "$as_me: failed program was:" >&5
12474 sed 's/^/| /' conftest.$ac_ext >&5
12475
12476 ac_cv_func_dlopen=no
12477 fi
12478 rm -f conftest.err conftest.$ac_objext \
12479       conftest$ac_exeext conftest.$ac_ext
12480 fi
12481 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12482 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12483 if test $ac_cv_func_dlopen = yes; then
12484   lt_cv_dlopen="dlopen"
12485 else
12486   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12487 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12488 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12489   echo $ECHO_N "(cached) $ECHO_C" >&6
12490 else
12491   ac_check_lib_save_LIBS=$LIBS
12492 LIBS="-ldl  $LIBS"
12493 cat >conftest.$ac_ext <<_ACEOF
12494 /* confdefs.h.  */
12495 _ACEOF
12496 cat confdefs.h >>conftest.$ac_ext
12497 cat >>conftest.$ac_ext <<_ACEOF
12498 /* end confdefs.h.  */
12499
12500 /* Override any gcc2 internal prototype to avoid an error.  */
12501 #ifdef __cplusplus
12502 extern "C"
12503 #endif
12504 /* We use char because int might match the return type of a gcc2
12505    builtin and then its argument prototype would still apply.  */
12506 char dlopen ();
12507 int
12508 main ()
12509 {
12510 dlopen ();
12511   ;
12512   return 0;
12513 }
12514 _ACEOF
12515 rm -f conftest.$ac_objext conftest$ac_exeext
12516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12517   (eval $ac_link) 2>conftest.er1
12518   ac_status=$?
12519   grep -v '^ *+' conftest.er1 >conftest.err
12520   rm -f conftest.er1
12521   cat conftest.err >&5
12522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523   (exit $ac_status); } &&
12524          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12526   (eval $ac_try) 2>&5
12527   ac_status=$?
12528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529   (exit $ac_status); }; } &&
12530          { ac_try='test -s conftest$ac_exeext'
12531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12532   (eval $ac_try) 2>&5
12533   ac_status=$?
12534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535   (exit $ac_status); }; }; then
12536   ac_cv_lib_dl_dlopen=yes
12537 else
12538   echo "$as_me: failed program was:" >&5
12539 sed 's/^/| /' conftest.$ac_ext >&5
12540
12541 ac_cv_lib_dl_dlopen=no
12542 fi
12543 rm -f conftest.err conftest.$ac_objext \
12544       conftest$ac_exeext conftest.$ac_ext
12545 LIBS=$ac_check_lib_save_LIBS
12546 fi
12547 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12548 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12549 if test $ac_cv_lib_dl_dlopen = yes; then
12550   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12551 else
12552   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12553 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12554 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12555   echo $ECHO_N "(cached) $ECHO_C" >&6
12556 else
12557   ac_check_lib_save_LIBS=$LIBS
12558 LIBS="-lsvld  $LIBS"
12559 cat >conftest.$ac_ext <<_ACEOF
12560 /* confdefs.h.  */
12561 _ACEOF
12562 cat confdefs.h >>conftest.$ac_ext
12563 cat >>conftest.$ac_ext <<_ACEOF
12564 /* end confdefs.h.  */
12565
12566 /* Override any gcc2 internal prototype to avoid an error.  */
12567 #ifdef __cplusplus
12568 extern "C"
12569 #endif
12570 /* We use char because int might match the return type of a gcc2
12571    builtin and then its argument prototype would still apply.  */
12572 char dlopen ();
12573 int
12574 main ()
12575 {
12576 dlopen ();
12577   ;
12578   return 0;
12579 }
12580 _ACEOF
12581 rm -f conftest.$ac_objext conftest$ac_exeext
12582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12583   (eval $ac_link) 2>conftest.er1
12584   ac_status=$?
12585   grep -v '^ *+' conftest.er1 >conftest.err
12586   rm -f conftest.er1
12587   cat conftest.err >&5
12588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589   (exit $ac_status); } &&
12590          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12592   (eval $ac_try) 2>&5
12593   ac_status=$?
12594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595   (exit $ac_status); }; } &&
12596          { ac_try='test -s conftest$ac_exeext'
12597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12598   (eval $ac_try) 2>&5
12599   ac_status=$?
12600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601   (exit $ac_status); }; }; then
12602   ac_cv_lib_svld_dlopen=yes
12603 else
12604   echo "$as_me: failed program was:" >&5
12605 sed 's/^/| /' conftest.$ac_ext >&5
12606
12607 ac_cv_lib_svld_dlopen=no
12608 fi
12609 rm -f conftest.err conftest.$ac_objext \
12610       conftest$ac_exeext conftest.$ac_ext
12611 LIBS=$ac_check_lib_save_LIBS
12612 fi
12613 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12614 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12615 if test $ac_cv_lib_svld_dlopen = yes; then
12616   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12617 else
12618   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12619 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12620 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12621   echo $ECHO_N "(cached) $ECHO_C" >&6
12622 else
12623   ac_check_lib_save_LIBS=$LIBS
12624 LIBS="-ldld  $LIBS"
12625 cat >conftest.$ac_ext <<_ACEOF
12626 /* confdefs.h.  */
12627 _ACEOF
12628 cat confdefs.h >>conftest.$ac_ext
12629 cat >>conftest.$ac_ext <<_ACEOF
12630 /* end confdefs.h.  */
12631
12632 /* Override any gcc2 internal prototype to avoid an error.  */
12633 #ifdef __cplusplus
12634 extern "C"
12635 #endif
12636 /* We use char because int might match the return type of a gcc2
12637    builtin and then its argument prototype would still apply.  */
12638 char dld_link ();
12639 int
12640 main ()
12641 {
12642 dld_link ();
12643   ;
12644   return 0;
12645 }
12646 _ACEOF
12647 rm -f conftest.$ac_objext conftest$ac_exeext
12648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12649   (eval $ac_link) 2>conftest.er1
12650   ac_status=$?
12651   grep -v '^ *+' conftest.er1 >conftest.err
12652   rm -f conftest.er1
12653   cat conftest.err >&5
12654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655   (exit $ac_status); } &&
12656          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12658   (eval $ac_try) 2>&5
12659   ac_status=$?
12660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661   (exit $ac_status); }; } &&
12662          { ac_try='test -s conftest$ac_exeext'
12663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12664   (eval $ac_try) 2>&5
12665   ac_status=$?
12666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667   (exit $ac_status); }; }; then
12668   ac_cv_lib_dld_dld_link=yes
12669 else
12670   echo "$as_me: failed program was:" >&5
12671 sed 's/^/| /' conftest.$ac_ext >&5
12672
12673 ac_cv_lib_dld_dld_link=no
12674 fi
12675 rm -f conftest.err conftest.$ac_objext \
12676       conftest$ac_exeext conftest.$ac_ext
12677 LIBS=$ac_check_lib_save_LIBS
12678 fi
12679 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12680 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12681 if test $ac_cv_lib_dld_dld_link = yes; then
12682   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12683 fi
12684
12685
12686 fi
12687
12688
12689 fi
12690
12691
12692 fi
12693
12694
12695 fi
12696
12697
12698 fi
12699
12700     ;;
12701   esac
12702
12703   if test "x$lt_cv_dlopen" != xno; then
12704     enable_dlopen=yes
12705   else
12706     enable_dlopen=no
12707   fi
12708
12709   case $lt_cv_dlopen in
12710   dlopen)
12711     save_CPPFLAGS="$CPPFLAGS"
12712     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12713
12714     save_LDFLAGS="$LDFLAGS"
12715     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12716
12717     save_LIBS="$LIBS"
12718     LIBS="$lt_cv_dlopen_libs $LIBS"
12719
12720     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12721 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12722 if test "${lt_cv_dlopen_self+set}" = set; then
12723   echo $ECHO_N "(cached) $ECHO_C" >&6
12724 else
12725           if test "$cross_compiling" = yes; then :
12726   lt_cv_dlopen_self=cross
12727 else
12728   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12729   lt_status=$lt_dlunknown
12730   cat > conftest.$ac_ext <<EOF
12731 #line 12731 "configure"
12732 #include "confdefs.h"
12733
12734 #if HAVE_DLFCN_H
12735 #include <dlfcn.h>
12736 #endif
12737
12738 #include <stdio.h>
12739
12740 #ifdef RTLD_GLOBAL
12741 #  define LT_DLGLOBAL           RTLD_GLOBAL
12742 #else
12743 #  ifdef DL_GLOBAL
12744 #    define LT_DLGLOBAL         DL_GLOBAL
12745 #  else
12746 #    define LT_DLGLOBAL         0
12747 #  endif
12748 #endif
12749
12750 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12751    find out it does not work in some platform. */
12752 #ifndef LT_DLLAZY_OR_NOW
12753 #  ifdef RTLD_LAZY
12754 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12755 #  else
12756 #    ifdef DL_LAZY
12757 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12758 #    else
12759 #      ifdef RTLD_NOW
12760 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12761 #      else
12762 #        ifdef DL_NOW
12763 #          define LT_DLLAZY_OR_NOW      DL_NOW
12764 #        else
12765 #          define LT_DLLAZY_OR_NOW      0
12766 #        endif
12767 #      endif
12768 #    endif
12769 #  endif
12770 #endif
12771
12772 #ifdef __cplusplus
12773 extern "C" void exit (int);
12774 #endif
12775
12776 void fnord() { int i=42;}
12777 int main ()
12778 {
12779   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12780   int status = $lt_dlunknown;
12781
12782   if (self)
12783     {
12784       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12785       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12786       /* dlclose (self); */
12787     }
12788
12789     exit (status);
12790 }
12791 EOF
12792   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12793   (eval $ac_link) 2>&5
12794   ac_status=$?
12795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12797     (./conftest; exit; ) 2>/dev/null
12798     lt_status=$?
12799     case x$lt_status in
12800       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12801       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12802       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12803     esac
12804   else :
12805     # compilation failed
12806     lt_cv_dlopen_self=no
12807   fi
12808 fi
12809 rm -fr conftest*
12810
12811
12812 fi
12813 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12814 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12815
12816     if test "x$lt_cv_dlopen_self" = xyes; then
12817       LDFLAGS="$LDFLAGS $link_static_flag"
12818       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12819 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12820 if test "${lt_cv_dlopen_self_static+set}" = set; then
12821   echo $ECHO_N "(cached) $ECHO_C" >&6
12822 else
12823           if test "$cross_compiling" = yes; then :
12824   lt_cv_dlopen_self_static=cross
12825 else
12826   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12827   lt_status=$lt_dlunknown
12828   cat > conftest.$ac_ext <<EOF
12829 #line 12829 "configure"
12830 #include "confdefs.h"
12831
12832 #if HAVE_DLFCN_H
12833 #include <dlfcn.h>
12834 #endif
12835
12836 #include <stdio.h>
12837
12838 #ifdef RTLD_GLOBAL
12839 #  define LT_DLGLOBAL           RTLD_GLOBAL
12840 #else
12841 #  ifdef DL_GLOBAL
12842 #    define LT_DLGLOBAL         DL_GLOBAL
12843 #  else
12844 #    define LT_DLGLOBAL         0
12845 #  endif
12846 #endif
12847
12848 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12849    find out it does not work in some platform. */
12850 #ifndef LT_DLLAZY_OR_NOW
12851 #  ifdef RTLD_LAZY
12852 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12853 #  else
12854 #    ifdef DL_LAZY
12855 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12856 #    else
12857 #      ifdef RTLD_NOW
12858 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12859 #      else
12860 #        ifdef DL_NOW
12861 #          define LT_DLLAZY_OR_NOW      DL_NOW
12862 #        else
12863 #          define LT_DLLAZY_OR_NOW      0
12864 #        endif
12865 #      endif
12866 #    endif
12867 #  endif
12868 #endif
12869
12870 #ifdef __cplusplus
12871 extern "C" void exit (int);
12872 #endif
12873
12874 void fnord() { int i=42;}
12875 int main ()
12876 {
12877   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12878   int status = $lt_dlunknown;
12879
12880   if (self)
12881     {
12882       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12883       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12884       /* dlclose (self); */
12885     }
12886
12887     exit (status);
12888 }
12889 EOF
12890   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12891   (eval $ac_link) 2>&5
12892   ac_status=$?
12893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12895     (./conftest; exit; ) 2>/dev/null
12896     lt_status=$?
12897     case x$lt_status in
12898       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12899       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12900       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12901     esac
12902   else :
12903     # compilation failed
12904     lt_cv_dlopen_self_static=no
12905   fi
12906 fi
12907 rm -fr conftest*
12908
12909
12910 fi
12911 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12912 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12913     fi
12914
12915     CPPFLAGS="$save_CPPFLAGS"
12916     LDFLAGS="$save_LDFLAGS"
12917     LIBS="$save_LIBS"
12918     ;;
12919   esac
12920
12921   case $lt_cv_dlopen_self in
12922   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12923   *) enable_dlopen_self=unknown ;;
12924   esac
12925
12926   case $lt_cv_dlopen_self_static in
12927   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12928   *) enable_dlopen_self_static=unknown ;;
12929   esac
12930 fi
12931
12932
12933 # The else clause should only fire when bootstrapping the
12934 # libtool distribution, otherwise you forgot to ship ltmain.sh
12935 # with your package, and you will get complaints that there are
12936 # no rules to generate ltmain.sh.
12937 if test -f "$ltmain"; then
12938   # See if we are running on zsh, and set the options which allow our commands through
12939   # without removal of \ escapes.
12940   if test -n "${ZSH_VERSION+set}" ; then
12941     setopt NO_GLOB_SUBST
12942   fi
12943   # Now quote all the things that may contain metacharacters while being
12944   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12945   # variables and quote the copies for generation of the libtool script.
12946   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12947     SED SHELL STRIP \
12948     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12949     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12950     deplibs_check_method reload_flag reload_cmds need_locks \
12951     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12952     lt_cv_sys_global_symbol_to_c_name_address \
12953     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12954     old_postinstall_cmds old_postuninstall_cmds \
12955     compiler_CXX \
12956     CC_CXX \
12957     LD_CXX \
12958     lt_prog_compiler_wl_CXX \
12959     lt_prog_compiler_pic_CXX \
12960     lt_prog_compiler_static_CXX \
12961     lt_prog_compiler_no_builtin_flag_CXX \
12962     export_dynamic_flag_spec_CXX \
12963     thread_safe_flag_spec_CXX \
12964     whole_archive_flag_spec_CXX \
12965     enable_shared_with_static_runtimes_CXX \
12966     old_archive_cmds_CXX \
12967     old_archive_from_new_cmds_CXX \
12968     predep_objects_CXX \
12969     postdep_objects_CXX \
12970     predeps_CXX \
12971     postdeps_CXX \
12972     compiler_lib_search_path_CXX \
12973     archive_cmds_CXX \
12974     archive_expsym_cmds_CXX \
12975     postinstall_cmds_CXX \
12976     postuninstall_cmds_CXX \
12977     old_archive_from_expsyms_cmds_CXX \
12978     allow_undefined_flag_CXX \
12979     no_undefined_flag_CXX \
12980     export_symbols_cmds_CXX \
12981     hardcode_libdir_flag_spec_CXX \
12982     hardcode_libdir_flag_spec_ld_CXX \
12983     hardcode_libdir_separator_CXX \
12984     hardcode_automatic_CXX \
12985     module_cmds_CXX \
12986     module_expsym_cmds_CXX \
12987     lt_cv_prog_compiler_c_o_CXX \
12988     exclude_expsyms_CXX \
12989     include_expsyms_CXX; do
12990
12991     case $var in
12992     old_archive_cmds_CXX | \
12993     old_archive_from_new_cmds_CXX | \
12994     archive_cmds_CXX | \
12995     archive_expsym_cmds_CXX | \
12996     module_cmds_CXX | \
12997     module_expsym_cmds_CXX | \
12998     old_archive_from_expsyms_cmds_CXX | \
12999     export_symbols_cmds_CXX | \
13000     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13001     postinstall_cmds | postuninstall_cmds | \
13002     old_postinstall_cmds | old_postuninstall_cmds | \
13003     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13004       # Double-quote double-evaled strings.
13005       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13006       ;;
13007     *)
13008       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13009       ;;
13010     esac
13011   done
13012
13013   case $lt_echo in
13014   *'\$0 --fallback-echo"')
13015     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13016     ;;
13017   esac
13018
13019 cfgfile="$ofile"
13020
13021   cat <<__EOF__ >> "$cfgfile"
13022 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13023
13024 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13025
13026 # Shell to use when invoking shell scripts.
13027 SHELL=$lt_SHELL
13028
13029 # Whether or not to build shared libraries.
13030 build_libtool_libs=$enable_shared
13031
13032 # Whether or not to build static libraries.
13033 build_old_libs=$enable_static
13034
13035 # Whether or not to add -lc for building shared libraries.
13036 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13037
13038 # Whether or not to disallow shared libs when runtime libs are static
13039 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13040
13041 # Whether or not to optimize for fast installation.
13042 fast_install=$enable_fast_install
13043
13044 # The host system.
13045 host_alias=$host_alias
13046 host=$host
13047
13048 # An echo program that does not interpret backslashes.
13049 echo=$lt_echo
13050
13051 # The archiver.
13052 AR=$lt_AR
13053 AR_FLAGS=$lt_AR_FLAGS
13054
13055 # A C compiler.
13056 LTCC=$lt_LTCC
13057
13058 # A language-specific compiler.
13059 CC=$lt_compiler_CXX
13060
13061 # Is the compiler the GNU C compiler?
13062 with_gcc=$GCC_CXX
13063
13064 # An ERE matcher.
13065 EGREP=$lt_EGREP
13066
13067 # The linker used to build libraries.
13068 LD=$lt_LD_CXX
13069
13070 # Whether we need hard or soft links.
13071 LN_S=$lt_LN_S
13072
13073 # A BSD-compatible nm program.
13074 NM=$lt_NM
13075
13076 # A symbol stripping program
13077 STRIP=$lt_STRIP
13078
13079 # Used to examine libraries when file_magic_cmd begins "file"
13080 MAGIC_CMD=$MAGIC_CMD
13081
13082 # Used on cygwin: DLL creation program.
13083 DLLTOOL="$DLLTOOL"
13084
13085 # Used on cygwin: object dumper.
13086 OBJDUMP="$OBJDUMP"
13087
13088 # Used on cygwin: assembler.
13089 AS="$AS"
13090
13091 # The name of the directory that contains temporary libtool files.
13092 objdir=$objdir
13093
13094 # How to create reloadable object files.
13095 reload_flag=$lt_reload_flag
13096 reload_cmds=$lt_reload_cmds
13097
13098 # How to pass a linker flag through the compiler.
13099 wl=$lt_lt_prog_compiler_wl_CXX
13100
13101 # Object file suffix (normally "o").
13102 objext="$ac_objext"
13103
13104 # Old archive suffix (normally "a").
13105 libext="$libext"
13106
13107 # Shared library suffix (normally ".so").
13108 shrext_cmds='$shrext_cmds'
13109
13110 # Executable file suffix (normally "").
13111 exeext="$exeext"
13112
13113 # Additional compiler flags for building library objects.
13114 pic_flag=$lt_lt_prog_compiler_pic_CXX
13115 pic_mode=$pic_mode
13116
13117 # What is the maximum length of a command?
13118 max_cmd_len=$lt_cv_sys_max_cmd_len
13119
13120 # Does compiler simultaneously support -c and -o options?
13121 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13122
13123 # Must we lock files when doing compilation ?
13124 need_locks=$lt_need_locks
13125
13126 # Do we need the lib prefix for modules?
13127 need_lib_prefix=$need_lib_prefix
13128
13129 # Do we need a version for libraries?
13130 need_version=$need_version
13131
13132 # Whether dlopen is supported.
13133 dlopen_support=$enable_dlopen
13134
13135 # Whether dlopen of programs is supported.
13136 dlopen_self=$enable_dlopen_self
13137
13138 # Whether dlopen of statically linked programs is supported.
13139 dlopen_self_static=$enable_dlopen_self_static
13140
13141 # Compiler flag to prevent dynamic linking.
13142 link_static_flag=$lt_lt_prog_compiler_static_CXX
13143
13144 # Compiler flag to turn off builtin functions.
13145 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13146
13147 # Compiler flag to allow reflexive dlopens.
13148 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13149
13150 # Compiler flag to generate shared objects directly from archives.
13151 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13152
13153 # Compiler flag to generate thread-safe objects.
13154 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13155
13156 # Library versioning type.
13157 version_type=$version_type
13158
13159 # Format of library name prefix.
13160 libname_spec=$lt_libname_spec
13161
13162 # List of archive names.  First name is the real one, the rest are links.
13163 # The last name is the one that the linker finds with -lNAME.
13164 library_names_spec=$lt_library_names_spec
13165
13166 # The coded name of the library, if different from the real name.
13167 soname_spec=$lt_soname_spec
13168
13169 # Commands used to build and install an old-style archive.
13170 RANLIB=$lt_RANLIB
13171 old_archive_cmds=$lt_old_archive_cmds_CXX
13172 old_postinstall_cmds=$lt_old_postinstall_cmds
13173 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13174
13175 # Create an old-style archive from a shared archive.
13176 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13177
13178 # Create a temporary old-style archive to link instead of a shared archive.
13179 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13180
13181 # Commands used to build and install a shared archive.
13182 archive_cmds=$lt_archive_cmds_CXX
13183 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13184 postinstall_cmds=$lt_postinstall_cmds
13185 postuninstall_cmds=$lt_postuninstall_cmds
13186
13187 # Commands used to build a loadable module (assumed same as above if empty)
13188 module_cmds=$lt_module_cmds_CXX
13189 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13190
13191 # Commands to strip libraries.
13192 old_striplib=$lt_old_striplib
13193 striplib=$lt_striplib
13194
13195 # Dependencies to place before the objects being linked to create a
13196 # shared library.
13197 predep_objects=$lt_predep_objects_CXX
13198
13199 # Dependencies to place after the objects being linked to create a
13200 # shared library.
13201 postdep_objects=$lt_postdep_objects_CXX
13202
13203 # Dependencies to place before the objects being linked to create a
13204 # shared library.
13205 predeps=$lt_predeps_CXX
13206
13207 # Dependencies to place after the objects being linked to create a
13208 # shared library.
13209 postdeps=$lt_postdeps_CXX
13210
13211 # The library search path used internally by the compiler when linking
13212 # a shared library.
13213 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13214
13215 # Method to check whether dependent libraries are shared objects.
13216 deplibs_check_method=$lt_deplibs_check_method
13217
13218 # Command to use when deplibs_check_method == file_magic.
13219 file_magic_cmd=$lt_file_magic_cmd
13220
13221 # Flag that allows shared libraries with undefined symbols to be built.
13222 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13223
13224 # Flag that forces no undefined symbols.
13225 no_undefined_flag=$lt_no_undefined_flag_CXX
13226
13227 # Commands used to finish a libtool library installation in a directory.
13228 finish_cmds=$lt_finish_cmds
13229
13230 # Same as above, but a single script fragment to be evaled but not shown.
13231 finish_eval=$lt_finish_eval
13232
13233 # Take the output of nm and produce a listing of raw symbols and C names.
13234 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13235
13236 # Transform the output of nm in a proper C declaration
13237 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13238
13239 # Transform the output of nm in a C name address pair
13240 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13241
13242 # This is the shared library runtime path variable.
13243 runpath_var=$runpath_var
13244
13245 # This is the shared library path variable.
13246 shlibpath_var=$shlibpath_var
13247
13248 # Is shlibpath searched before the hard-coded library search path?
13249 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13250
13251 # How to hardcode a shared library path into an executable.
13252 hardcode_action=$hardcode_action_CXX
13253
13254 # Whether we should hardcode library paths into libraries.
13255 hardcode_into_libs=$hardcode_into_libs
13256
13257 # Flag to hardcode \$libdir into a binary during linking.
13258 # This must work even if \$libdir does not exist.
13259 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13260
13261 # If ld is used when linking, flag to hardcode \$libdir into
13262 # a binary during linking. This must work even if \$libdir does
13263 # not exist.
13264 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13265
13266 # Whether we need a single -rpath flag with a separated argument.
13267 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13268
13269 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13270 # resulting binary.
13271 hardcode_direct=$hardcode_direct_CXX
13272
13273 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13274 # resulting binary.
13275 hardcode_minus_L=$hardcode_minus_L_CXX
13276
13277 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13278 # the resulting binary.
13279 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13280
13281 # Set to yes if building a shared library automatically hardcodes DIR into the library
13282 # and all subsequent libraries and executables linked against it.
13283 hardcode_automatic=$hardcode_automatic_CXX
13284
13285 # Variables whose values should be saved in libtool wrapper scripts and
13286 # restored at relink time.
13287 variables_saved_for_relink="$variables_saved_for_relink"
13288
13289 # Whether libtool must link a program against all its dependency libraries.
13290 link_all_deplibs=$link_all_deplibs_CXX
13291
13292 # Compile-time system search path for libraries
13293 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13294
13295 # Run-time system search path for libraries
13296 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13297
13298 # Fix the shell variable \$srcfile for the compiler.
13299 fix_srcfile_path="$fix_srcfile_path_CXX"
13300
13301 # Set to yes if exported symbols are required.
13302 always_export_symbols=$always_export_symbols_CXX
13303
13304 # The commands to list exported symbols.
13305 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13306
13307 # The commands to extract the exported symbol list from a shared archive.
13308 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13309
13310 # Symbols that should not be listed in the preloaded symbols.
13311 exclude_expsyms=$lt_exclude_expsyms_CXX
13312
13313 # Symbols that must always be exported.
13314 include_expsyms=$lt_include_expsyms_CXX
13315
13316 # ### END LIBTOOL TAG CONFIG: $tagname
13317
13318 __EOF__
13319
13320
13321 else
13322   # If there is no Makefile yet, we rely on a make rule to execute
13323   # `config.status --recheck' to rerun these tests and create the
13324   # libtool script then.
13325   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13326   if test -f "$ltmain_in"; then
13327     test -f Makefile && make "$ltmain"
13328   fi
13329 fi
13330
13331
13332 ac_ext=c
13333 ac_cpp='$CPP $CPPFLAGS'
13334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13337
13338 CC=$lt_save_CC
13339 LDCXX=$LD
13340 LD=$lt_save_LD
13341 GCC=$lt_save_GCC
13342 with_gnu_ldcxx=$with_gnu_ld
13343 with_gnu_ld=$lt_save_with_gnu_ld
13344 lt_cv_path_LDCXX=$lt_cv_path_LD
13345 lt_cv_path_LD=$lt_save_path_LD
13346 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13347 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13348
13349         else
13350           tagname=""
13351         fi
13352         ;;
13353
13354       F77)
13355         if test -n "$F77" && test "X$F77" != "Xno"; then
13356
13357 ac_ext=f
13358 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13359 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13360 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13361
13362
13363 archive_cmds_need_lc_F77=no
13364 allow_undefined_flag_F77=
13365 always_export_symbols_F77=no
13366 archive_expsym_cmds_F77=
13367 export_dynamic_flag_spec_F77=
13368 hardcode_direct_F77=no
13369 hardcode_libdir_flag_spec_F77=
13370 hardcode_libdir_flag_spec_ld_F77=
13371 hardcode_libdir_separator_F77=
13372 hardcode_minus_L_F77=no
13373 hardcode_automatic_F77=no
13374 module_cmds_F77=
13375 module_expsym_cmds_F77=
13376 link_all_deplibs_F77=unknown
13377 old_archive_cmds_F77=$old_archive_cmds
13378 no_undefined_flag_F77=
13379 whole_archive_flag_spec_F77=
13380 enable_shared_with_static_runtimes_F77=no
13381
13382 # Source file extension for f77 test sources.
13383 ac_ext=f
13384
13385 # Object file extension for compiled f77 test sources.
13386 objext=o
13387 objext_F77=$objext
13388
13389 # Code to be used in simple compile tests
13390 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13391
13392 # Code to be used in simple link tests
13393 lt_simple_link_test_code="      program t\n      end\n"
13394
13395 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13396
13397 # If no C compiler was specified, use CC.
13398 LTCC=${LTCC-"$CC"}
13399
13400 # Allow CC to be a program name with arguments.
13401 compiler=$CC
13402
13403
13404 # Allow CC to be a program name with arguments.
13405 lt_save_CC="$CC"
13406 CC=${F77-"f77"}
13407 compiler=$CC
13408 compiler_F77=$CC
13409 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13410
13411 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13412 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13413 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13414 echo "${ECHO_T}$can_build_shared" >&6
13415
13416 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13417 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13418 test "$can_build_shared" = "no" && enable_shared=no
13419
13420 # On AIX, shared libraries and static libraries use the same namespace, and
13421 # are all built from PIC.
13422 case "$host_os" in
13423 aix3*)
13424   test "$enable_shared" = yes && enable_static=no
13425   if test -n "$RANLIB"; then
13426     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13427     postinstall_cmds='$RANLIB $lib'
13428   fi
13429   ;;
13430 aix4* | aix5*)
13431   test "$enable_shared" = yes && enable_static=no
13432   ;;
13433 esac
13434 echo "$as_me:$LINENO: result: $enable_shared" >&5
13435 echo "${ECHO_T}$enable_shared" >&6
13436
13437 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13438 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13439 # Make sure either enable_shared or enable_static is yes.
13440 test "$enable_shared" = yes || enable_static=yes
13441 echo "$as_me:$LINENO: result: $enable_static" >&5
13442 echo "${ECHO_T}$enable_static" >&6
13443
13444 test "$ld_shlibs_F77" = no && can_build_shared=no
13445
13446 GCC_F77="$G77"
13447 LD_F77="$LD"
13448
13449 lt_prog_compiler_wl_F77=
13450 lt_prog_compiler_pic_F77=
13451 lt_prog_compiler_static_F77=
13452
13453 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13454 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13455
13456   if test "$GCC" = yes; then
13457     lt_prog_compiler_wl_F77='-Wl,'
13458     lt_prog_compiler_static_F77='-static'
13459
13460     case $host_os in
13461       aix*)
13462       # All AIX code is PIC.
13463       if test "$host_cpu" = ia64; then
13464         # AIX 5 now supports IA64 processor
13465         lt_prog_compiler_static_F77='-Bstatic'
13466       fi
13467       ;;
13468
13469     amigaos*)
13470       # FIXME: we need at least 68020 code to build shared libraries, but
13471       # adding the `-m68020' flag to GCC prevents building anything better,
13472       # like `-m68040'.
13473       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13474       ;;
13475
13476     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13477       # PIC is the default for these OSes.
13478       ;;
13479
13480     mingw* | pw32* | os2*)
13481       # This hack is so that the source file can tell whether it is being
13482       # built for inclusion in a dll (and should export symbols for example).
13483       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13484       ;;
13485
13486     darwin* | rhapsody*)
13487       # PIC is the default on this platform
13488       # Common symbols not allowed in MH_DYLIB files
13489       lt_prog_compiler_pic_F77='-fno-common'
13490       ;;
13491
13492     msdosdjgpp*)
13493       # Just because we use GCC doesn't mean we suddenly get shared libraries
13494       # on systems that don't support them.
13495       lt_prog_compiler_can_build_shared_F77=no
13496       enable_shared=no
13497       ;;
13498
13499     sysv4*MP*)
13500       if test -d /usr/nec; then
13501         lt_prog_compiler_pic_F77=-Kconform_pic
13502       fi
13503       ;;
13504
13505     hpux*)
13506       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13507       # not for PA HP-UX.
13508       case "$host_cpu" in
13509       hppa*64*|ia64*)
13510         # +Z the default
13511         ;;
13512       *)
13513         lt_prog_compiler_pic_F77='-fPIC'
13514         ;;
13515       esac
13516       ;;
13517
13518     *)
13519       lt_prog_compiler_pic_F77='-fPIC'
13520       ;;
13521     esac
13522   else
13523     # PORTME Check for flag to pass linker flags through the system compiler.
13524     case $host_os in
13525     aix*)
13526       lt_prog_compiler_wl_F77='-Wl,'
13527       if test "$host_cpu" = ia64; then
13528         # AIX 5 now supports IA64 processor
13529         lt_prog_compiler_static_F77='-Bstatic'
13530       else
13531         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13532       fi
13533       ;;
13534
13535     mingw* | pw32* | os2*)
13536       # This hack is so that the source file can tell whether it is being
13537       # built for inclusion in a dll (and should export symbols for example).
13538       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13539       ;;
13540
13541     hpux9* | hpux10* | hpux11*)
13542       lt_prog_compiler_wl_F77='-Wl,'
13543       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13544       # not for PA HP-UX.
13545       case "$host_cpu" in
13546       hppa*64*|ia64*)
13547         # +Z the default
13548         ;;
13549       *)
13550         lt_prog_compiler_pic_F77='+Z'
13551         ;;
13552       esac
13553       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13554       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13555       ;;
13556
13557     irix5* | irix6* | nonstopux*)
13558       lt_prog_compiler_wl_F77='-Wl,'
13559       # PIC (with -KPIC) is the default.
13560       lt_prog_compiler_static_F77='-non_shared'
13561       ;;
13562
13563     newsos6)
13564       lt_prog_compiler_pic_F77='-KPIC'
13565       lt_prog_compiler_static_F77='-Bstatic'
13566       ;;
13567
13568     linux*)
13569       case $CC in
13570       icc* | ecc*)
13571         lt_prog_compiler_wl_F77='-Wl,'
13572         lt_prog_compiler_pic_F77='-KPIC'
13573         lt_prog_compiler_static_F77='-static'
13574         ;;
13575       ccc*)
13576         lt_prog_compiler_wl_F77='-Wl,'
13577         # All Alpha code is PIC.
13578         lt_prog_compiler_static_F77='-non_shared'
13579         ;;
13580       esac
13581       ;;
13582
13583     osf3* | osf4* | osf5*)
13584       lt_prog_compiler_wl_F77='-Wl,'
13585       # All OSF/1 code is PIC.
13586       lt_prog_compiler_static_F77='-non_shared'
13587       ;;
13588
13589     sco3.2v5*)
13590       lt_prog_compiler_pic_F77='-Kpic'
13591       lt_prog_compiler_static_F77='-dn'
13592       ;;
13593
13594     solaris*)
13595       lt_prog_compiler_wl_F77='-Wl,'
13596       lt_prog_compiler_pic_F77='-KPIC'
13597       lt_prog_compiler_static_F77='-Bstatic'
13598       ;;
13599
13600     sunos4*)
13601       lt_prog_compiler_wl_F77='-Qoption ld '
13602       lt_prog_compiler_pic_F77='-PIC'
13603       lt_prog_compiler_static_F77='-Bstatic'
13604       ;;
13605
13606     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13607       lt_prog_compiler_wl_F77='-Wl,'
13608       lt_prog_compiler_pic_F77='-KPIC'
13609       lt_prog_compiler_static_F77='-Bstatic'
13610       ;;
13611
13612     sysv4*MP*)
13613       if test -d /usr/nec ;then
13614         lt_prog_compiler_pic_F77='-Kconform_pic'
13615         lt_prog_compiler_static_F77='-Bstatic'
13616       fi
13617       ;;
13618
13619     uts4*)
13620       lt_prog_compiler_pic_F77='-pic'
13621       lt_prog_compiler_static_F77='-Bstatic'
13622       ;;
13623
13624     *)
13625       lt_prog_compiler_can_build_shared_F77=no
13626       ;;
13627     esac
13628   fi
13629
13630 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13631 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13632
13633 #
13634 # Check to make sure the PIC flag actually works.
13635 #
13636 if test -n "$lt_prog_compiler_pic_F77"; then
13637
13638 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13639 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13640 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13641   echo $ECHO_N "(cached) $ECHO_C" >&6
13642 else
13643   lt_prog_compiler_pic_works_F77=no
13644   ac_outfile=conftest.$ac_objext
13645    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13646    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13647    # Insert the option either (1) after the last *FLAGS variable, or
13648    # (2) before a word containing "conftest.", or (3) at the end.
13649    # Note that $ac_compile itself does not contain backslashes and begins
13650    # with a dollar sign (not a hyphen), so the echo should work correctly.
13651    # The option is referenced via a variable to avoid confusing sed.
13652    lt_compile=`echo "$ac_compile" | $SED \
13653    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13654    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13655    -e 's:$: $lt_compiler_flag:'`
13656    (eval echo "\"\$as_me:13656: $lt_compile\"" >&5)
13657    (eval "$lt_compile" 2>conftest.err)
13658    ac_status=$?
13659    cat conftest.err >&5
13660    echo "$as_me:13660: \$? = $ac_status" >&5
13661    if (exit $ac_status) && test -s "$ac_outfile"; then
13662      # The compiler can only warn and ignore the option if not recognized
13663      # So say no if there are warnings
13664      if test ! -s conftest.err; then
13665        lt_prog_compiler_pic_works_F77=yes
13666      fi
13667    fi
13668    $rm conftest*
13669
13670 fi
13671 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13672 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13673
13674 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13675     case $lt_prog_compiler_pic_F77 in
13676      "" | " "*) ;;
13677      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13678      esac
13679 else
13680     lt_prog_compiler_pic_F77=
13681      lt_prog_compiler_can_build_shared_F77=no
13682 fi
13683
13684 fi
13685 case "$host_os" in
13686   # For platforms which do not support PIC, -DPIC is meaningless:
13687   *djgpp*)
13688     lt_prog_compiler_pic_F77=
13689     ;;
13690   *)
13691     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13692     ;;
13693 esac
13694
13695 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13696 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13697 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13698   echo $ECHO_N "(cached) $ECHO_C" >&6
13699 else
13700   lt_cv_prog_compiler_c_o_F77=no
13701    $rm -r conftest 2>/dev/null
13702    mkdir conftest
13703    cd conftest
13704    mkdir out
13705    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13706
13707    lt_compiler_flag="-o out/conftest2.$ac_objext"
13708    # Insert the option either (1) after the last *FLAGS variable, or
13709    # (2) before a word containing "conftest.", or (3) at the end.
13710    # Note that $ac_compile itself does not contain backslashes and begins
13711    # with a dollar sign (not a hyphen), so the echo should work correctly.
13712    lt_compile=`echo "$ac_compile" | $SED \
13713    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13714    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13715    -e 's:$: $lt_compiler_flag:'`
13716    (eval echo "\"\$as_me:13716: $lt_compile\"" >&5)
13717    (eval "$lt_compile" 2>out/conftest.err)
13718    ac_status=$?
13719    cat out/conftest.err >&5
13720    echo "$as_me:13720: \$? = $ac_status" >&5
13721    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13722    then
13723      # The compiler can only warn and ignore the option if not recognized
13724      # So say no if there are warnings
13725      if test ! -s out/conftest.err; then
13726        lt_cv_prog_compiler_c_o_F77=yes
13727      fi
13728    fi
13729    chmod u+w .
13730    $rm conftest*
13731    # SGI C++ compiler will create directory out/ii_files/ for
13732    # template instantiation
13733    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13734    $rm out/* && rmdir out
13735    cd ..
13736    rmdir conftest
13737    $rm conftest*
13738
13739 fi
13740 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13741 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13742
13743
13744 hard_links="nottested"
13745 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13746   # do not overwrite the value of need_locks provided by the user
13747   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13748 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13749   hard_links=yes
13750   $rm conftest*
13751   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13752   touch conftest.a
13753   ln conftest.a conftest.b 2>&5 || hard_links=no
13754   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13755   echo "$as_me:$LINENO: result: $hard_links" >&5
13756 echo "${ECHO_T}$hard_links" >&6
13757   if test "$hard_links" = no; then
13758     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13759 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13760     need_locks=warn
13761   fi
13762 else
13763   need_locks=no
13764 fi
13765
13766 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13767 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13768
13769   runpath_var=
13770   allow_undefined_flag_F77=
13771   enable_shared_with_static_runtimes_F77=no
13772   archive_cmds_F77=
13773   archive_expsym_cmds_F77=
13774   old_archive_From_new_cmds_F77=
13775   old_archive_from_expsyms_cmds_F77=
13776   export_dynamic_flag_spec_F77=
13777   whole_archive_flag_spec_F77=
13778   thread_safe_flag_spec_F77=
13779   hardcode_libdir_flag_spec_F77=
13780   hardcode_libdir_flag_spec_ld_F77=
13781   hardcode_libdir_separator_F77=
13782   hardcode_direct_F77=no
13783   hardcode_minus_L_F77=no
13784   hardcode_shlibpath_var_F77=unsupported
13785   link_all_deplibs_F77=unknown
13786   hardcode_automatic_F77=no
13787   module_cmds_F77=
13788   module_expsym_cmds_F77=
13789   always_export_symbols_F77=no
13790   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13791   # include_expsyms should be a list of space-separated symbols to be *always*
13792   # included in the symbol list
13793   include_expsyms_F77=
13794   # exclude_expsyms can be an extended regexp of symbols to exclude
13795   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13796   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13797   # as well as any symbol that contains `d'.
13798   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13799   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13800   # platforms (ab)use it in PIC code, but their linkers get confused if
13801   # the symbol is explicitly referenced.  Since portable code cannot
13802   # rely on this symbol name, it's probably fine to never include it in
13803   # preloaded symbol tables.
13804   extract_expsyms_cmds=
13805
13806   case $host_os in
13807   cygwin* | mingw* | pw32*)
13808     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13809     # When not using gcc, we currently assume that we are using
13810     # Microsoft Visual C++.
13811     if test "$GCC" != yes; then
13812       with_gnu_ld=no
13813     fi
13814     ;;
13815   openbsd*)
13816     with_gnu_ld=no
13817     ;;
13818   esac
13819
13820   ld_shlibs_F77=yes
13821   if test "$with_gnu_ld" = yes; then
13822     # If archive_cmds runs LD, not CC, wlarc should be empty
13823     wlarc='${wl}'
13824
13825     # See if GNU ld supports shared libraries.
13826     case $host_os in
13827     aix3* | aix4* | aix5*)
13828       # On AIX/PPC, the GNU linker is very broken
13829       if test "$host_cpu" != ia64; then
13830         ld_shlibs_F77=no
13831         cat <<EOF 1>&2
13832
13833 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13834 *** to be unable to reliably create shared libraries on AIX.
13835 *** Therefore, libtool is disabling shared libraries support.  If you
13836 *** really care for shared libraries, you may want to modify your PATH
13837 *** so that a non-GNU linker is found, and then restart.
13838
13839 EOF
13840       fi
13841       ;;
13842
13843     amigaos*)
13844       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)'
13845       hardcode_libdir_flag_spec_F77='-L$libdir'
13846       hardcode_minus_L_F77=yes
13847
13848       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13849       # that the semantics of dynamic libraries on AmigaOS, at least up
13850       # to version 4, is to share data among multiple programs linked
13851       # with the same dynamic library.  Since this doesn't match the
13852       # behavior of shared libraries on other platforms, we can't use
13853       # them.
13854       ld_shlibs_F77=no
13855       ;;
13856
13857     beos*)
13858       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13859         allow_undefined_flag_F77=unsupported
13860         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13861         # support --undefined.  This deserves some investigation.  FIXME
13862         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13863       else
13864         ld_shlibs_F77=no
13865       fi
13866       ;;
13867
13868     cygwin* | mingw* | pw32*)
13869       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13870       # as there is no search path for DLLs.
13871       hardcode_libdir_flag_spec_F77='-L$libdir'
13872       allow_undefined_flag_F77=unsupported
13873       always_export_symbols_F77=no
13874       enable_shared_with_static_runtimes_F77=yes
13875       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13876
13877       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13878         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13879         # If the export-symbols file already is a .def file (1st line
13880         # is EXPORTS), use it as is; otherwise, prepend...
13881         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13882           cp $export_symbols $output_objdir/$soname.def;
13883         else
13884           echo EXPORTS > $output_objdir/$soname.def;
13885           cat $export_symbols >> $output_objdir/$soname.def;
13886         fi~
13887         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13888       else
13889         ld_shlibs=no
13890       fi
13891       ;;
13892
13893     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13894       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13895         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13896         wlarc=
13897       else
13898         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13899         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13900       fi
13901       ;;
13902
13903     solaris* | sysv5*)
13904       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13905         ld_shlibs_F77=no
13906         cat <<EOF 1>&2
13907
13908 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13909 *** create shared libraries on Solaris systems.  Therefore, libtool
13910 *** is disabling shared libraries support.  We urge you to upgrade GNU
13911 *** binutils to release 2.9.1 or newer.  Another option is to modify
13912 *** your PATH or compiler configuration so that the native linker is
13913 *** used, and then restart.
13914
13915 EOF
13916       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13917         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13918         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13919       else
13920         ld_shlibs_F77=no
13921       fi
13922       ;;
13923
13924     sunos4*)
13925       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13926       wlarc=
13927       hardcode_direct_F77=yes
13928       hardcode_shlibpath_var_F77=no
13929       ;;
13930
13931   linux*)
13932     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13933         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13934         archive_cmds_F77="$tmp_archive_cmds"
13935       supports_anon_versioning=no
13936       case `$LD -v 2>/dev/null` in
13937         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13938         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13939         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13940         *\ 2.11.*) ;; # other 2.11 versions
13941         *) supports_anon_versioning=yes ;;
13942       esac
13943       if test $supports_anon_versioning = yes; then
13944         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13945 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13946 $echo "local: *; };" >> $output_objdir/$libname.ver~
13947         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13948       else
13949         archive_expsym_cmds_F77="$tmp_archive_cmds"
13950       fi
13951       link_all_deplibs_F77=no
13952     else
13953       ld_shlibs_F77=no
13954     fi
13955     ;;
13956
13957     *)
13958       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13959         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13960         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13961       else
13962         ld_shlibs_F77=no
13963       fi
13964       ;;
13965     esac
13966
13967     if test "$ld_shlibs_F77" = yes; then
13968       runpath_var=LD_RUN_PATH
13969       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13970       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13971       # ancient GNU ld didn't support --whole-archive et. al.
13972       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13973         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13974       else
13975         whole_archive_flag_spec_F77=
13976       fi
13977     fi
13978   else
13979     # PORTME fill in a description of your system's linker (not GNU ld)
13980     case $host_os in
13981     aix3*)
13982       allow_undefined_flag_F77=unsupported
13983       always_export_symbols_F77=yes
13984       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'
13985       # Note: this linker hardcodes the directories in LIBPATH if there
13986       # are no directories specified by -L.
13987       hardcode_minus_L_F77=yes
13988       if test "$GCC" = yes && test -z "$link_static_flag"; then
13989         # Neither direct hardcoding nor static linking is supported with a
13990         # broken collect2.
13991         hardcode_direct_F77=unsupported
13992       fi
13993       ;;
13994
13995     aix4* | aix5*)
13996       if test "$host_cpu" = ia64; then
13997         # On IA64, the linker does run time linking by default, so we don't
13998         # have to do anything special.
13999         aix_use_runtimelinking=no
14000         exp_sym_flag='-Bexport'
14001         no_entry_flag=""
14002       else
14003         # If we're using GNU nm, then we don't want the "-C" option.
14004         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14005         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14006           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'
14007         else
14008           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'
14009         fi
14010         aix_use_runtimelinking=no
14011
14012         # Test if we are trying to use run time linking or normal
14013         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14014         # need to do runtime linking.
14015         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14016           for ld_flag in $LDFLAGS; do
14017           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14018             aix_use_runtimelinking=yes
14019             break
14020           fi
14021           done
14022         esac
14023
14024         exp_sym_flag='-bexport'
14025         no_entry_flag='-bnoentry'
14026       fi
14027
14028       # When large executables or shared objects are built, AIX ld can
14029       # have problems creating the table of contents.  If linking a library
14030       # or program results in "error TOC overflow" add -mminimal-toc to
14031       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14032       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14033
14034       archive_cmds_F77=''
14035       hardcode_direct_F77=yes
14036       hardcode_libdir_separator_F77=':'
14037       link_all_deplibs_F77=yes
14038
14039       if test "$GCC" = yes; then
14040         case $host_os in aix4.012|aix4.012.*)
14041         # We only want to do this on AIX 4.2 and lower, the check
14042         # below for broken collect2 doesn't work under 4.3+
14043           collect2name=`${CC} -print-prog-name=collect2`
14044           if test -f "$collect2name" && \
14045            strings "$collect2name" | grep resolve_lib_name >/dev/null
14046           then
14047           # We have reworked collect2
14048           hardcode_direct_F77=yes
14049           else
14050           # We have old collect2
14051           hardcode_direct_F77=unsupported
14052           # It fails to find uninstalled libraries when the uninstalled
14053           # path is not listed in the libpath.  Setting hardcode_minus_L
14054           # to unsupported forces relinking
14055           hardcode_minus_L_F77=yes
14056           hardcode_libdir_flag_spec_F77='-L$libdir'
14057           hardcode_libdir_separator_F77=
14058           fi
14059         esac
14060         shared_flag='-shared'
14061       else
14062         # not using gcc
14063         if test "$host_cpu" = ia64; then
14064         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14065         # chokes on -Wl,-G. The following line is correct:
14066           shared_flag='-G'
14067         else
14068         if test "$aix_use_runtimelinking" = yes; then
14069             shared_flag='${wl}-G'
14070           else
14071             shared_flag='${wl}-bM:SRE'
14072         fi
14073         fi
14074       fi
14075
14076       # It seems that -bexpall does not export symbols beginning with
14077       # underscore (_), so it is better to generate a list of symbols to export.
14078       always_export_symbols_F77=yes
14079       if test "$aix_use_runtimelinking" = yes; then
14080         # Warning - without using the other runtime loading flags (-brtl),
14081         # -berok will link without error, but may produce a broken library.
14082         allow_undefined_flag_F77='-berok'
14083        # Determine the default libpath from the value encoded in an empty executable.
14084        cat >conftest.$ac_ext <<_ACEOF
14085       program main
14086
14087       end
14088 _ACEOF
14089 rm -f conftest.$ac_objext conftest$ac_exeext
14090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14091   (eval $ac_link) 2>conftest.er1
14092   ac_status=$?
14093   grep -v '^ *+' conftest.er1 >conftest.err
14094   rm -f conftest.er1
14095   cat conftest.err >&5
14096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097   (exit $ac_status); } &&
14098          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
14099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14100   (eval $ac_try) 2>&5
14101   ac_status=$?
14102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103   (exit $ac_status); }; } &&
14104          { ac_try='test -s conftest$ac_exeext'
14105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14106   (eval $ac_try) 2>&5
14107   ac_status=$?
14108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109   (exit $ac_status); }; }; then
14110
14111 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14112 }'`
14113 # Check for a 64-bit object if we didn't find anything.
14114 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; }
14115 }'`; fi
14116 else
14117   echo "$as_me: failed program was:" >&5
14118 sed 's/^/| /' conftest.$ac_ext >&5
14119
14120 fi
14121 rm -f conftest.err conftest.$ac_objext \
14122       conftest$ac_exeext conftest.$ac_ext
14123 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14124
14125        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14126         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"
14127        else
14128         if test "$host_cpu" = ia64; then
14129           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14130           allow_undefined_flag_F77="-z nodefs"
14131           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"
14132         else
14133          # Determine the default libpath from the value encoded in an empty executable.
14134          cat >conftest.$ac_ext <<_ACEOF
14135       program main
14136
14137       end
14138 _ACEOF
14139 rm -f conftest.$ac_objext conftest$ac_exeext
14140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14141   (eval $ac_link) 2>conftest.er1
14142   ac_status=$?
14143   grep -v '^ *+' conftest.er1 >conftest.err
14144   rm -f conftest.er1
14145   cat conftest.err >&5
14146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147   (exit $ac_status); } &&
14148          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
14149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14150   (eval $ac_try) 2>&5
14151   ac_status=$?
14152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14153   (exit $ac_status); }; } &&
14154          { ac_try='test -s conftest$ac_exeext'
14155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14156   (eval $ac_try) 2>&5
14157   ac_status=$?
14158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159   (exit $ac_status); }; }; then
14160
14161 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14162 }'`
14163 # Check for a 64-bit object if we didn't find anything.
14164 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; }
14165 }'`; fi
14166 else
14167   echo "$as_me: failed program was:" >&5
14168 sed 's/^/| /' conftest.$ac_ext >&5
14169
14170 fi
14171 rm -f conftest.err conftest.$ac_objext \
14172       conftest$ac_exeext conftest.$ac_ext
14173 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14174
14175          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14176           # Warning - without using the other run time loading flags,
14177           # -berok will link without error, but may produce a broken library.
14178           no_undefined_flag_F77=' ${wl}-bernotok'
14179           allow_undefined_flag_F77=' ${wl}-berok'
14180           # -bexpall does not export symbols beginning with underscore (_)
14181           always_export_symbols_F77=yes
14182           # Exported symbols can be pulled into shared objects from archives
14183           whole_archive_flag_spec_F77=' '
14184           archive_cmds_need_lc_F77=yes
14185           # This is similar to how AIX traditionally builds it's shared libraries.
14186           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'
14187         fi
14188       fi
14189       ;;
14190
14191     amigaos*)
14192       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)'
14193       hardcode_libdir_flag_spec_F77='-L$libdir'
14194       hardcode_minus_L_F77=yes
14195       # see comment about different semantics on the GNU ld section
14196       ld_shlibs_F77=no
14197       ;;
14198
14199     bsdi4*)
14200       export_dynamic_flag_spec_F77=-rdynamic
14201       ;;
14202
14203     cygwin* | mingw* | pw32*)
14204       # When not using gcc, we currently assume that we are using
14205       # Microsoft Visual C++.
14206       # hardcode_libdir_flag_spec is actually meaningless, as there is
14207       # no search path for DLLs.
14208       hardcode_libdir_flag_spec_F77=' '
14209       allow_undefined_flag_F77=unsupported
14210       # Tell ltmain to make .lib files, not .a files.
14211       libext=lib
14212       # Tell ltmain to make .dll files, not .so files.
14213       shrext_cmds=".dll"
14214       # FIXME: Setting linknames here is a bad hack.
14215       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14216       # The linker will automatically build a .lib file if we build a DLL.
14217       old_archive_From_new_cmds_F77='true'
14218       # FIXME: Should let the user specify the lib program.
14219       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14220       fix_srcfile_path='`cygpath -w "$srcfile"`'
14221       enable_shared_with_static_runtimes_F77=yes
14222       ;;
14223
14224     darwin* | rhapsody*)
14225     if test "$GXX" = yes ; then
14226       archive_cmds_need_lc_F77=no
14227       case "$host_os" in
14228       rhapsody* | darwin1.[012])
14229         allow_undefined_flag_F77='-undefined suppress'
14230         ;;
14231       *) # Darwin 1.3 on
14232       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14233         allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14234       else
14235         case ${MACOSX_DEPLOYMENT_TARGET} in
14236           10.[012])
14237             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14238             ;;
14239           10.*)
14240             allow_undefined_flag_F77='-undefined dynamic_lookup'
14241             ;;
14242         esac
14243       fi
14244         ;;
14245       esac
14246         lt_int_apple_cc_single_mod=no
14247         output_verbose_link_cmd='echo'
14248         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14249           lt_int_apple_cc_single_mod=yes
14250         fi
14251         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14252           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14253         else
14254         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'
14255       fi
14256       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14257       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14258         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14259           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}'
14260         else
14261           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}'
14262         fi
14263           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}'
14264       hardcode_direct_F77=no
14265       hardcode_automatic_F77=yes
14266       hardcode_shlibpath_var_F77=unsupported
14267       whole_archive_flag_spec_F77='-all_load $convenience'
14268       link_all_deplibs_F77=yes
14269     else
14270       ld_shlibs_F77=no
14271     fi
14272       ;;
14273
14274     dgux*)
14275       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14276       hardcode_libdir_flag_spec_F77='-L$libdir'
14277       hardcode_shlibpath_var_F77=no
14278       ;;
14279
14280     freebsd1*)
14281       ld_shlibs_F77=no
14282       ;;
14283
14284     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14285     # support.  Future versions do this automatically, but an explicit c++rt0.o
14286     # does not break anything, and helps significantly (at the cost of a little
14287     # extra space).
14288     freebsd2.2*)
14289       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14290       hardcode_libdir_flag_spec_F77='-R$libdir'
14291       hardcode_direct_F77=yes
14292       hardcode_shlibpath_var_F77=no
14293       ;;
14294
14295     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14296     freebsd2*)
14297       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14298       hardcode_direct_F77=yes
14299       hardcode_minus_L_F77=yes
14300       hardcode_shlibpath_var_F77=no
14301       ;;
14302
14303     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14304     freebsd* | kfreebsd*-gnu)
14305       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14306       hardcode_libdir_flag_spec_F77='-R$libdir'
14307       hardcode_direct_F77=yes
14308       hardcode_shlibpath_var_F77=no
14309       ;;
14310
14311     hpux9*)
14312       if test "$GCC" = yes; then
14313         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'
14314       else
14315         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'
14316       fi
14317       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14318       hardcode_libdir_separator_F77=:
14319       hardcode_direct_F77=yes
14320
14321       # hardcode_minus_L: Not really in the search PATH,
14322       # but as the default location of the library.
14323       hardcode_minus_L_F77=yes
14324       export_dynamic_flag_spec_F77='${wl}-E'
14325       ;;
14326
14327     hpux10* | hpux11*)
14328       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14329         case "$host_cpu" in
14330         hppa*64*|ia64*)
14331           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14332           ;;
14333         *)
14334           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14335           ;;
14336         esac
14337       else
14338         case "$host_cpu" in
14339         hppa*64*|ia64*)
14340           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14341           ;;
14342         *)
14343           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14344           ;;
14345         esac
14346       fi
14347       if test "$with_gnu_ld" = no; then
14348         case "$host_cpu" in
14349         hppa*64*)
14350           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14351           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14352           hardcode_libdir_separator_F77=:
14353           hardcode_direct_F77=no
14354           hardcode_shlibpath_var_F77=no
14355           ;;
14356         ia64*)
14357           hardcode_libdir_flag_spec_F77='-L$libdir'
14358           hardcode_direct_F77=no
14359           hardcode_shlibpath_var_F77=no
14360
14361           # hardcode_minus_L: Not really in the search PATH,
14362           # but as the default location of the library.
14363           hardcode_minus_L_F77=yes
14364           ;;
14365         *)
14366           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14367           hardcode_libdir_separator_F77=:
14368           hardcode_direct_F77=yes
14369           export_dynamic_flag_spec_F77='${wl}-E'
14370
14371           # hardcode_minus_L: Not really in the search PATH,
14372           # but as the default location of the library.
14373           hardcode_minus_L_F77=yes
14374           ;;
14375         esac
14376       fi
14377       ;;
14378
14379     irix5* | irix6* | nonstopux*)
14380       if test "$GCC" = yes; then
14381         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'
14382       else
14383         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'
14384         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14385       fi
14386       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14387       hardcode_libdir_separator_F77=:
14388       link_all_deplibs_F77=yes
14389       ;;
14390
14391     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14392       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14393         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14394       else
14395         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14396       fi
14397       hardcode_libdir_flag_spec_F77='-R$libdir'
14398       hardcode_direct_F77=yes
14399       hardcode_shlibpath_var_F77=no
14400       ;;
14401
14402     newsos6)
14403       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14404       hardcode_direct_F77=yes
14405       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14406       hardcode_libdir_separator_F77=:
14407       hardcode_shlibpath_var_F77=no
14408       ;;
14409
14410     openbsd*)
14411       hardcode_direct_F77=yes
14412       hardcode_shlibpath_var_F77=no
14413       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14414         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14415         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14416         export_dynamic_flag_spec_F77='${wl}-E'
14417       else
14418        case $host_os in
14419          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14420            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14421            hardcode_libdir_flag_spec_F77='-R$libdir'
14422            ;;
14423          *)
14424            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14425            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14426            ;;
14427        esac
14428       fi
14429       ;;
14430
14431     os2*)
14432       hardcode_libdir_flag_spec_F77='-L$libdir'
14433       hardcode_minus_L_F77=yes
14434       allow_undefined_flag_F77=unsupported
14435       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'
14436       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14437       ;;
14438
14439     osf3*)
14440       if test "$GCC" = yes; then
14441         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14442         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'
14443       else
14444         allow_undefined_flag_F77=' -expect_unresolved \*'
14445         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'
14446       fi
14447       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14448       hardcode_libdir_separator_F77=:
14449       ;;
14450
14451     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14452       if test "$GCC" = yes; then
14453         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14454         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'
14455         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14456       else
14457         allow_undefined_flag_F77=' -expect_unresolved \*'
14458         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'
14459         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~
14460         $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'
14461
14462         # Both c and cxx compiler support -rpath directly
14463         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14464       fi
14465       hardcode_libdir_separator_F77=:
14466       ;;
14467
14468     sco3.2v5*)
14469       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14470       hardcode_shlibpath_var_F77=no
14471       export_dynamic_flag_spec_F77='${wl}-Bexport'
14472       runpath_var=LD_RUN_PATH
14473       hardcode_runpath_var=yes
14474       ;;
14475
14476     solaris*)
14477       no_undefined_flag_F77=' -z text'
14478       if test "$GCC" = yes; then
14479         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14480         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14481           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14482       else
14483         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14484         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14485         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14486       fi
14487       hardcode_libdir_flag_spec_F77='-R$libdir'
14488       hardcode_shlibpath_var_F77=no
14489       case $host_os in
14490       solaris2.[0-5] | solaris2.[0-5].*) ;;
14491       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14492         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14493       esac
14494       link_all_deplibs_F77=yes
14495       ;;
14496
14497     sunos4*)
14498       if test "x$host_vendor" = xsequent; then
14499         # Use $CC to link under sequent, because it throws in some extra .o
14500         # files that make .init and .fini sections work.
14501         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14502       else
14503         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14504       fi
14505       hardcode_libdir_flag_spec_F77='-L$libdir'
14506       hardcode_direct_F77=yes
14507       hardcode_minus_L_F77=yes
14508       hardcode_shlibpath_var_F77=no
14509       ;;
14510
14511     sysv4)
14512       case $host_vendor in
14513         sni)
14514           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14515           hardcode_direct_F77=yes # is this really true???
14516         ;;
14517         siemens)
14518           ## LD is ld it makes a PLAMLIB
14519           ## CC just makes a GrossModule.
14520           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14521           reload_cmds_F77='$CC -r -o $output$reload_objs'
14522           hardcode_direct_F77=no
14523         ;;
14524         motorola)
14525           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14526           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14527         ;;
14528       esac
14529       runpath_var='LD_RUN_PATH'
14530       hardcode_shlibpath_var_F77=no
14531       ;;
14532
14533     sysv4.3*)
14534       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14535       hardcode_shlibpath_var_F77=no
14536       export_dynamic_flag_spec_F77='-Bexport'
14537       ;;
14538
14539     sysv4*MP*)
14540       if test -d /usr/nec; then
14541         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14542         hardcode_shlibpath_var_F77=no
14543         runpath_var=LD_RUN_PATH
14544         hardcode_runpath_var=yes
14545         ld_shlibs_F77=yes
14546       fi
14547       ;;
14548
14549     sysv4.2uw2*)
14550       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14551       hardcode_direct_F77=yes
14552       hardcode_minus_L_F77=no
14553       hardcode_shlibpath_var_F77=no
14554       hardcode_runpath_var=yes
14555       runpath_var=LD_RUN_PATH
14556       ;;
14557
14558    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14559       no_undefined_flag_F77='${wl}-z ${wl}text'
14560       if test "$GCC" = yes; then
14561         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14562       else
14563         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14564       fi
14565       runpath_var='LD_RUN_PATH'
14566       hardcode_shlibpath_var_F77=no
14567       ;;
14568
14569     sysv5*)
14570       no_undefined_flag_F77=' -z text'
14571       # $CC -shared without GNU ld will not create a library from C++
14572       # object files and a static libstdc++, better avoid it by now
14573       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14574       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14575                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14576       hardcode_libdir_flag_spec_F77=
14577       hardcode_shlibpath_var_F77=no
14578       runpath_var='LD_RUN_PATH'
14579       ;;
14580
14581     uts4*)
14582       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14583       hardcode_libdir_flag_spec_F77='-L$libdir'
14584       hardcode_shlibpath_var_F77=no
14585       ;;
14586
14587     *)
14588       ld_shlibs_F77=no
14589       ;;
14590     esac
14591   fi
14592
14593 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14594 echo "${ECHO_T}$ld_shlibs_F77" >&6
14595 test "$ld_shlibs_F77" = no && can_build_shared=no
14596
14597 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14598 if test "$GCC" = yes; then
14599   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14600 fi
14601
14602 #
14603 # Do we need to explicitly link libc?
14604 #
14605 case "x$archive_cmds_need_lc_F77" in
14606 x|xyes)
14607   # Assume -lc should be added
14608   archive_cmds_need_lc_F77=yes
14609
14610   if test "$enable_shared" = yes && test "$GCC" = yes; then
14611     case $archive_cmds_F77 in
14612     *'~'*)
14613       # FIXME: we may have to deal with multi-command sequences.
14614       ;;
14615     '$CC '*)
14616       # Test whether the compiler implicitly links with -lc since on some
14617       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14618       # to ld, don't add -lc before -lgcc.
14619       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14620 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14621       $rm conftest*
14622       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14623
14624       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14625   (eval $ac_compile) 2>&5
14626   ac_status=$?
14627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628   (exit $ac_status); } 2>conftest.err; then
14629         soname=conftest
14630         lib=conftest
14631         libobjs=conftest.$ac_objext
14632         deplibs=
14633         wl=$lt_prog_compiler_wl_F77
14634         compiler_flags=-v
14635         linker_flags=-v
14636         verstring=
14637         output_objdir=.
14638         libname=conftest
14639         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14640         allow_undefined_flag_F77=
14641         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14642   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14643   ac_status=$?
14644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14645   (exit $ac_status); }
14646         then
14647           archive_cmds_need_lc_F77=no
14648         else
14649           archive_cmds_need_lc_F77=yes
14650         fi
14651         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14652       else
14653         cat conftest.err 1>&5
14654       fi
14655       $rm conftest*
14656       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14657 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14658       ;;
14659     esac
14660   fi
14661   ;;
14662 esac
14663
14664 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14665 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14666 library_names_spec=
14667 libname_spec='lib$name'
14668 soname_spec=
14669 shrext_cmds=".so"
14670 postinstall_cmds=
14671 postuninstall_cmds=
14672 finish_cmds=
14673 finish_eval=
14674 shlibpath_var=
14675 shlibpath_overrides_runpath=unknown
14676 version_type=none
14677 dynamic_linker="$host_os ld.so"
14678 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14679 if test "$GCC" = yes; then
14680   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14681   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14682     # if the path contains ";" then we assume it to be the separator
14683     # otherwise default to the standard path separator (i.e. ":") - it is
14684     # assumed that no part of a normal pathname contains ";" but that should
14685     # okay in the real world where ";" in dirpaths is itself problematic.
14686     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14687   else
14688     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14689   fi
14690 else
14691   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14692 fi
14693 need_lib_prefix=unknown
14694 hardcode_into_libs=no
14695
14696 # when you set need_version to no, make sure it does not cause -set_version
14697 # flags to be left without arguments
14698 need_version=unknown
14699
14700 case $host_os in
14701 aix3*)
14702   version_type=linux
14703   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14704   shlibpath_var=LIBPATH
14705
14706   # AIX 3 has no versioning support, so we append a major version to the name.
14707   soname_spec='${libname}${release}${shared_ext}$major'
14708   ;;
14709
14710 aix4* | aix5*)
14711   version_type=linux
14712   need_lib_prefix=no
14713   need_version=no
14714   hardcode_into_libs=yes
14715   if test "$host_cpu" = ia64; then
14716     # AIX 5 supports IA64
14717     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14718     shlibpath_var=LD_LIBRARY_PATH
14719   else
14720     # With GCC up to 2.95.x, collect2 would create an import file
14721     # for dependence libraries.  The import file would start with
14722     # the line `#! .'.  This would cause the generated library to
14723     # depend on `.', always an invalid library.  This was fixed in
14724     # development snapshots of GCC prior to 3.0.
14725     case $host_os in
14726       aix4 | aix4.[01] | aix4.[01].*)
14727       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14728            echo ' yes '
14729            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14730         :
14731       else
14732         can_build_shared=no
14733       fi
14734       ;;
14735     esac
14736     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14737     # soname into executable. Probably we can add versioning support to
14738     # collect2, so additional links can be useful in future.
14739     if test "$aix_use_runtimelinking" = yes; then
14740       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14741       # instead of lib<name>.a to let people know that these are not
14742       # typical AIX shared libraries.
14743       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14744     else
14745       # We preserve .a as extension for shared libraries through AIX4.2
14746       # and later when we are not doing run time linking.
14747       library_names_spec='${libname}${release}.a $libname.a'
14748       soname_spec='${libname}${release}${shared_ext}$major'
14749     fi
14750     shlibpath_var=LIBPATH
14751   fi
14752   ;;
14753
14754 amigaos*)
14755   library_names_spec='$libname.ixlibrary $libname.a'
14756   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14757   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'
14758   ;;
14759
14760 beos*)
14761   library_names_spec='${libname}${shared_ext}'
14762   dynamic_linker="$host_os ld.so"
14763   shlibpath_var=LIBRARY_PATH
14764   ;;
14765
14766 bsdi4*)
14767   version_type=linux
14768   need_version=no
14769   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14770   soname_spec='${libname}${release}${shared_ext}$major'
14771   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14772   shlibpath_var=LD_LIBRARY_PATH
14773   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14774   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14775   # the default ld.so.conf also contains /usr/contrib/lib and
14776   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14777   # libtool to hard-code these into programs
14778   ;;
14779
14780 cygwin* | mingw* | pw32*)
14781   version_type=windows
14782   shrext_cmds=".dll"
14783   need_version=no
14784   need_lib_prefix=no
14785
14786   case $GCC,$host_os in
14787   yes,cygwin* | yes,mingw* | yes,pw32*)
14788     library_names_spec='$libname.dll.a'
14789     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14790     postinstall_cmds='base_file=`basename \${file}`~
14791       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14792       dldir=$destdir/`dirname \$dlpath`~
14793       test -d \$dldir || mkdir -p \$dldir~
14794       $install_prog $dir/$dlname \$dldir/$dlname'
14795     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14796       dlpath=$dir/\$dldll~
14797        $rm \$dlpath'
14798     shlibpath_overrides_runpath=yes
14799
14800     case $host_os in
14801     cygwin*)
14802       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14803       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14804       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14805       ;;
14806     mingw*)
14807       # MinGW DLLs use traditional 'lib' prefix
14808       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14809       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14810       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14811         # It is most probably a Windows format PATH printed by
14812         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14813         # path with ; separators, and with drive letters. We can handle the
14814         # drive letters (cygwin fileutils understands them), so leave them,
14815         # especially as we might pass files found there to a mingw objdump,
14816         # which wouldn't understand a cygwinified path. Ahh.
14817         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14818       else
14819         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14820       fi
14821       ;;
14822     pw32*)
14823       # pw32 DLLs use 'pw' prefix rather than 'lib'
14824       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14825       ;;
14826     esac
14827     ;;
14828
14829   *)
14830     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14831     ;;
14832   esac
14833   dynamic_linker='Win32 ld.exe'
14834   # FIXME: first we should search . and the directory the executable is in
14835   shlibpath_var=PATH
14836   ;;
14837
14838 darwin* | rhapsody*)
14839   dynamic_linker="$host_os dyld"
14840   version_type=darwin
14841   need_lib_prefix=no
14842   need_version=no
14843   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14844   soname_spec='${libname}${release}${major}$shared_ext'
14845   shlibpath_overrides_runpath=yes
14846   shlibpath_var=DYLD_LIBRARY_PATH
14847   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14848   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14849   if test "$GCC" = yes; then
14850     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"`
14851   else
14852     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14853   fi
14854   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14855   ;;
14856
14857 dgux*)
14858   version_type=linux
14859   need_lib_prefix=no
14860   need_version=no
14861   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14862   soname_spec='${libname}${release}${shared_ext}$major'
14863   shlibpath_var=LD_LIBRARY_PATH
14864   ;;
14865
14866 freebsd1*)
14867   dynamic_linker=no
14868   ;;
14869
14870 kfreebsd*-gnu)
14871   version_type=linux
14872   need_lib_prefix=no
14873   need_version=no
14874   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14875   soname_spec='${libname}${release}${shared_ext}$major'
14876   shlibpath_var=LD_LIBRARY_PATH
14877   shlibpath_overrides_runpath=no
14878   hardcode_into_libs=yes
14879   dynamic_linker='GNU ld.so'
14880   ;;
14881
14882 freebsd*)
14883   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14884   version_type=freebsd-$objformat
14885   case $version_type in
14886     freebsd-elf*)
14887       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14888       need_version=no
14889       need_lib_prefix=no
14890       ;;
14891     freebsd-*)
14892       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14893       need_version=yes
14894       ;;
14895   esac
14896   shlibpath_var=LD_LIBRARY_PATH
14897   case $host_os in
14898   freebsd2*)
14899     shlibpath_overrides_runpath=yes
14900     ;;
14901   freebsd3.01* | freebsdelf3.01*)
14902     shlibpath_overrides_runpath=yes
14903     hardcode_into_libs=yes
14904     ;;
14905   *) # from 3.2 on
14906     shlibpath_overrides_runpath=no
14907     hardcode_into_libs=yes
14908     ;;
14909   esac
14910   ;;
14911
14912 gnu*)
14913   version_type=linux
14914   need_lib_prefix=no
14915   need_version=no
14916   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14917   soname_spec='${libname}${release}${shared_ext}$major'
14918   shlibpath_var=LD_LIBRARY_PATH
14919   hardcode_into_libs=yes
14920   ;;
14921
14922 hpux9* | hpux10* | hpux11*)
14923   # Give a soname corresponding to the major version so that dld.sl refuses to
14924   # link against other versions.
14925   version_type=sunos
14926   need_lib_prefix=no
14927   need_version=no
14928   case "$host_cpu" in
14929   ia64*)
14930     shrext_cmds='.so'
14931     hardcode_into_libs=yes
14932     dynamic_linker="$host_os dld.so"
14933     shlibpath_var=LD_LIBRARY_PATH
14934     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14935     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14936     soname_spec='${libname}${release}${shared_ext}$major'
14937     if test "X$HPUX_IA64_MODE" = X32; then
14938       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14939     else
14940       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14941     fi
14942     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14943     ;;
14944    hppa*64*)
14945      shrext_cmds='.sl'
14946      hardcode_into_libs=yes
14947      dynamic_linker="$host_os dld.sl"
14948      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14949      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14950      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14951      soname_spec='${libname}${release}${shared_ext}$major'
14952      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14953      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14954      ;;
14955    *)
14956     shrext_cmds='.sl'
14957     dynamic_linker="$host_os dld.sl"
14958     shlibpath_var=SHLIB_PATH
14959     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14960     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14961     soname_spec='${libname}${release}${shared_ext}$major'
14962     ;;
14963   esac
14964   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14965   postinstall_cmds='chmod 555 $lib'
14966   ;;
14967
14968 irix5* | irix6* | nonstopux*)
14969   case $host_os in
14970     nonstopux*) version_type=nonstopux ;;
14971     *)
14972         if test "$lt_cv_prog_gnu_ld" = yes; then
14973                 version_type=linux
14974         else
14975                 version_type=irix
14976         fi ;;
14977   esac
14978   need_lib_prefix=no
14979   need_version=no
14980   soname_spec='${libname}${release}${shared_ext}$major'
14981   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14982   case $host_os in
14983   irix5* | nonstopux*)
14984     libsuff= shlibsuff=
14985     ;;
14986   *)
14987     case $LD in # libtool.m4 will add one of these switches to LD
14988     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14989       libsuff= shlibsuff= libmagic=32-bit;;
14990     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14991       libsuff=32 shlibsuff=N32 libmagic=N32;;
14992     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14993       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14994     *) libsuff= shlibsuff= libmagic=never-match;;
14995     esac
14996     ;;
14997   esac
14998   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14999   shlibpath_overrides_runpath=no
15000   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15001   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15002   hardcode_into_libs=yes
15003   ;;
15004
15005 # No shared lib support for Linux oldld, aout, or coff.
15006 linux*oldld* | linux*aout* | linux*coff*)
15007   dynamic_linker=no
15008   ;;
15009
15010 # This must be Linux ELF.
15011 linux*)
15012   version_type=linux
15013   need_lib_prefix=no
15014   need_version=no
15015   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15016   soname_spec='${libname}${release}${shared_ext}$major'
15017   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15018   shlibpath_var=LD_LIBRARY_PATH
15019   shlibpath_overrides_runpath=no
15020   # This implies no fast_install, which is unacceptable.
15021   # Some rework will be needed to allow for fast_install
15022   # before this can be enabled.
15023   hardcode_into_libs=yes
15024
15025   # Append ld.so.conf contents to the search path
15026   if test -f /etc/ld.so.conf; then
15027     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
15028     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15029   fi
15030
15031   # We used to test for /lib/ld.so.1 and disable shared libraries on
15032   # powerpc, because MkLinux only supported shared libraries with the
15033   # GNU dynamic linker.  Since this was broken with cross compilers,
15034   # most powerpc-linux boxes support dynamic linking these days and
15035   # people can always --disable-shared, the test was removed, and we
15036   # assume the GNU/Linux dynamic linker is in use.
15037   dynamic_linker='GNU/Linux ld.so'
15038   ;;
15039
15040 netbsdelf*-gnu)
15041   version_type=linux
15042   need_lib_prefix=no
15043   need_version=no
15044   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15045   soname_spec='${libname}${release}${shared_ext}$major'
15046   shlibpath_var=LD_LIBRARY_PATH
15047   shlibpath_overrides_runpath=no
15048   hardcode_into_libs=yes
15049   dynamic_linker='NetBSD ld.elf_so'
15050   ;;
15051
15052 knetbsd*-gnu)
15053   version_type=linux
15054   need_lib_prefix=no
15055   need_version=no
15056   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15057   soname_spec='${libname}${release}${shared_ext}$major'
15058   shlibpath_var=LD_LIBRARY_PATH
15059   shlibpath_overrides_runpath=no
15060   hardcode_into_libs=yes
15061   dynamic_linker='GNU ld.so'
15062   ;;
15063
15064 netbsd*)
15065   version_type=sunos
15066   need_lib_prefix=no
15067   need_version=no
15068   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15069     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15070     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15071     dynamic_linker='NetBSD (a.out) ld.so'
15072   else
15073     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15074     soname_spec='${libname}${release}${shared_ext}$major'
15075     dynamic_linker='NetBSD ld.elf_so'
15076   fi
15077   shlibpath_var=LD_LIBRARY_PATH
15078   shlibpath_overrides_runpath=yes
15079   hardcode_into_libs=yes
15080   ;;
15081
15082 newsos6)
15083   version_type=linux
15084   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15085   shlibpath_var=LD_LIBRARY_PATH
15086   shlibpath_overrides_runpath=yes
15087   ;;
15088
15089 nto-qnx*)
15090   version_type=linux
15091   need_lib_prefix=no
15092   need_version=no
15093   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15094   soname_spec='${libname}${release}${shared_ext}$major'
15095   shlibpath_var=LD_LIBRARY_PATH
15096   shlibpath_overrides_runpath=yes
15097   ;;
15098
15099 openbsd*)
15100   version_type=sunos
15101   need_lib_prefix=no
15102   need_version=yes
15103   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15104   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15105   shlibpath_var=LD_LIBRARY_PATH
15106   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15107     case $host_os in
15108       openbsd2.[89] | openbsd2.[89].*)
15109         shlibpath_overrides_runpath=no
15110         ;;
15111       *)
15112         shlibpath_overrides_runpath=yes
15113         ;;
15114       esac
15115   else
15116     shlibpath_overrides_runpath=yes
15117   fi
15118   ;;
15119
15120 os2*)
15121   libname_spec='$name'
15122   shrext_cmds=".dll"
15123   need_lib_prefix=no
15124   library_names_spec='$libname${shared_ext} $libname.a'
15125   dynamic_linker='OS/2 ld.exe'
15126   shlibpath_var=LIBPATH
15127   ;;
15128
15129 osf3* | osf4* | osf5*)
15130   version_type=osf
15131   need_lib_prefix=no
15132   need_version=no
15133   soname_spec='${libname}${release}${shared_ext}$major'
15134   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15135   shlibpath_var=LD_LIBRARY_PATH
15136   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15137   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15138   ;;
15139
15140 sco3.2v5*)
15141   version_type=osf
15142   soname_spec='${libname}${release}${shared_ext}$major'
15143   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15144   shlibpath_var=LD_LIBRARY_PATH
15145   ;;
15146
15147 solaris*)
15148   version_type=linux
15149   need_lib_prefix=no
15150   need_version=no
15151   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15152   soname_spec='${libname}${release}${shared_ext}$major'
15153   shlibpath_var=LD_LIBRARY_PATH
15154   shlibpath_overrides_runpath=yes
15155   hardcode_into_libs=yes
15156   # ldd complains unless libraries are executable
15157   postinstall_cmds='chmod +x $lib'
15158   ;;
15159
15160 sunos4*)
15161   version_type=sunos
15162   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15163   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15164   shlibpath_var=LD_LIBRARY_PATH
15165   shlibpath_overrides_runpath=yes
15166   if test "$with_gnu_ld" = yes; then
15167     need_lib_prefix=no
15168   fi
15169   need_version=yes
15170   ;;
15171
15172 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15173   version_type=linux
15174   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15175   soname_spec='${libname}${release}${shared_ext}$major'
15176   shlibpath_var=LD_LIBRARY_PATH
15177   case $host_vendor in
15178     sni)
15179       shlibpath_overrides_runpath=no
15180       need_lib_prefix=no
15181       export_dynamic_flag_spec='${wl}-Blargedynsym'
15182       runpath_var=LD_RUN_PATH
15183       ;;
15184     siemens)
15185       need_lib_prefix=no
15186       ;;
15187     motorola)
15188       need_lib_prefix=no
15189       need_version=no
15190       shlibpath_overrides_runpath=no
15191       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15192       ;;
15193   esac
15194   ;;
15195
15196 sysv4*MP*)
15197   if test -d /usr/nec ;then
15198     version_type=linux
15199     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15200     soname_spec='$libname${shared_ext}.$major'
15201     shlibpath_var=LD_LIBRARY_PATH
15202   fi
15203   ;;
15204
15205 uts4*)
15206   version_type=linux
15207   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15208   soname_spec='${libname}${release}${shared_ext}$major'
15209   shlibpath_var=LD_LIBRARY_PATH
15210   ;;
15211
15212 *)
15213   dynamic_linker=no
15214   ;;
15215 esac
15216 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15217 echo "${ECHO_T}$dynamic_linker" >&6
15218 test "$dynamic_linker" = no && can_build_shared=no
15219
15220 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15221 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15222 hardcode_action_F77=
15223 if test -n "$hardcode_libdir_flag_spec_F77" || \
15224    test -n "$runpath_var F77" || \
15225    test "X$hardcode_automatic_F77"="Xyes" ; then
15226
15227   # We can hardcode non-existant directories.
15228   if test "$hardcode_direct_F77" != no &&
15229      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15230      # have to relink, otherwise we might link with an installed library
15231      # when we should be linking with a yet-to-be-installed one
15232      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15233      test "$hardcode_minus_L_F77" != no; then
15234     # Linking always hardcodes the temporary library directory.
15235     hardcode_action_F77=relink
15236   else
15237     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15238     hardcode_action_F77=immediate
15239   fi
15240 else
15241   # We cannot hardcode anything, or else we can only hardcode existing
15242   # directories.
15243   hardcode_action_F77=unsupported
15244 fi
15245 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15246 echo "${ECHO_T}$hardcode_action_F77" >&6
15247
15248 if test "$hardcode_action_F77" = relink; then
15249   # Fast installation is not supported
15250   enable_fast_install=no
15251 elif test "$shlibpath_overrides_runpath" = yes ||
15252      test "$enable_shared" = no; then
15253   # Fast installation is not necessary
15254   enable_fast_install=needless
15255 fi
15256
15257 striplib=
15258 old_striplib=
15259 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15260 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15261 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15262   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15263   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15264   echo "$as_me:$LINENO: result: yes" >&5
15265 echo "${ECHO_T}yes" >&6
15266 else
15267 # FIXME - insert some real tests, host_os isn't really good enough
15268   case $host_os in
15269    darwin*)
15270        if test -n "$STRIP" ; then
15271          striplib="$STRIP -x"
15272          echo "$as_me:$LINENO: result: yes" >&5
15273 echo "${ECHO_T}yes" >&6
15274        else
15275   echo "$as_me:$LINENO: result: no" >&5
15276 echo "${ECHO_T}no" >&6
15277 fi
15278        ;;
15279    *)
15280   echo "$as_me:$LINENO: result: no" >&5
15281 echo "${ECHO_T}no" >&6
15282     ;;
15283   esac
15284 fi
15285
15286
15287
15288 # The else clause should only fire when bootstrapping the
15289 # libtool distribution, otherwise you forgot to ship ltmain.sh
15290 # with your package, and you will get complaints that there are
15291 # no rules to generate ltmain.sh.
15292 if test -f "$ltmain"; then
15293   # See if we are running on zsh, and set the options which allow our commands through
15294   # without removal of \ escapes.
15295   if test -n "${ZSH_VERSION+set}" ; then
15296     setopt NO_GLOB_SUBST
15297   fi
15298   # Now quote all the things that may contain metacharacters while being
15299   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15300   # variables and quote the copies for generation of the libtool script.
15301   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15302     SED SHELL STRIP \
15303     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15304     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15305     deplibs_check_method reload_flag reload_cmds need_locks \
15306     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15307     lt_cv_sys_global_symbol_to_c_name_address \
15308     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15309     old_postinstall_cmds old_postuninstall_cmds \
15310     compiler_F77 \
15311     CC_F77 \
15312     LD_F77 \
15313     lt_prog_compiler_wl_F77 \
15314     lt_prog_compiler_pic_F77 \
15315     lt_prog_compiler_static_F77 \
15316     lt_prog_compiler_no_builtin_flag_F77 \
15317     export_dynamic_flag_spec_F77 \
15318     thread_safe_flag_spec_F77 \
15319     whole_archive_flag_spec_F77 \
15320     enable_shared_with_static_runtimes_F77 \
15321     old_archive_cmds_F77 \
15322     old_archive_from_new_cmds_F77 \
15323     predep_objects_F77 \
15324     postdep_objects_F77 \
15325     predeps_F77 \
15326     postdeps_F77 \
15327     compiler_lib_search_path_F77 \
15328     archive_cmds_F77 \
15329     archive_expsym_cmds_F77 \
15330     postinstall_cmds_F77 \
15331     postuninstall_cmds_F77 \
15332     old_archive_from_expsyms_cmds_F77 \
15333     allow_undefined_flag_F77 \
15334     no_undefined_flag_F77 \
15335     export_symbols_cmds_F77 \
15336     hardcode_libdir_flag_spec_F77 \
15337     hardcode_libdir_flag_spec_ld_F77 \
15338     hardcode_libdir_separator_F77 \
15339     hardcode_automatic_F77 \
15340     module_cmds_F77 \
15341     module_expsym_cmds_F77 \
15342     lt_cv_prog_compiler_c_o_F77 \
15343     exclude_expsyms_F77 \
15344     include_expsyms_F77; do
15345
15346     case $var in
15347     old_archive_cmds_F77 | \
15348     old_archive_from_new_cmds_F77 | \
15349     archive_cmds_F77 | \
15350     archive_expsym_cmds_F77 | \
15351     module_cmds_F77 | \
15352     module_expsym_cmds_F77 | \
15353     old_archive_from_expsyms_cmds_F77 | \
15354     export_symbols_cmds_F77 | \
15355     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15356     postinstall_cmds | postuninstall_cmds | \
15357     old_postinstall_cmds | old_postuninstall_cmds | \
15358     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15359       # Double-quote double-evaled strings.
15360       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15361       ;;
15362     *)
15363       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15364       ;;
15365     esac
15366   done
15367
15368   case $lt_echo in
15369   *'\$0 --fallback-echo"')
15370     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15371     ;;
15372   esac
15373
15374 cfgfile="$ofile"
15375
15376   cat <<__EOF__ >> "$cfgfile"
15377 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15378
15379 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15380
15381 # Shell to use when invoking shell scripts.
15382 SHELL=$lt_SHELL
15383
15384 # Whether or not to build shared libraries.
15385 build_libtool_libs=$enable_shared
15386
15387 # Whether or not to build static libraries.
15388 build_old_libs=$enable_static
15389
15390 # Whether or not to add -lc for building shared libraries.
15391 build_libtool_need_lc=$archive_cmds_need_lc_F77
15392
15393 # Whether or not to disallow shared libs when runtime libs are static
15394 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15395
15396 # Whether or not to optimize for fast installation.
15397 fast_install=$enable_fast_install
15398
15399 # The host system.
15400 host_alias=$host_alias
15401 host=$host
15402
15403 # An echo program that does not interpret backslashes.
15404 echo=$lt_echo
15405
15406 # The archiver.
15407 AR=$lt_AR
15408 AR_FLAGS=$lt_AR_FLAGS
15409
15410 # A C compiler.
15411 LTCC=$lt_LTCC
15412
15413 # A language-specific compiler.
15414 CC=$lt_compiler_F77
15415
15416 # Is the compiler the GNU C compiler?
15417 with_gcc=$GCC_F77
15418
15419 # An ERE matcher.
15420 EGREP=$lt_EGREP
15421
15422 # The linker used to build libraries.
15423 LD=$lt_LD_F77
15424
15425 # Whether we need hard or soft links.
15426 LN_S=$lt_LN_S
15427
15428 # A BSD-compatible nm program.
15429 NM=$lt_NM
15430
15431 # A symbol stripping program
15432 STRIP=$lt_STRIP
15433
15434 # Used to examine libraries when file_magic_cmd begins "file"
15435 MAGIC_CMD=$MAGIC_CMD
15436
15437 # Used on cygwin: DLL creation program.
15438 DLLTOOL="$DLLTOOL"
15439
15440 # Used on cygwin: object dumper.
15441 OBJDUMP="$OBJDUMP"
15442
15443 # Used on cygwin: assembler.
15444 AS="$AS"
15445
15446 # The name of the directory that contains temporary libtool files.
15447 objdir=$objdir
15448
15449 # How to create reloadable object files.
15450 reload_flag=$lt_reload_flag
15451 reload_cmds=$lt_reload_cmds
15452
15453 # How to pass a linker flag through the compiler.
15454 wl=$lt_lt_prog_compiler_wl_F77
15455
15456 # Object file suffix (normally "o").
15457 objext="$ac_objext"
15458
15459 # Old archive suffix (normally "a").
15460 libext="$libext"
15461
15462 # Shared library suffix (normally ".so").
15463 shrext_cmds='$shrext_cmds'
15464
15465 # Executable file suffix (normally "").
15466 exeext="$exeext"
15467
15468 # Additional compiler flags for building library objects.
15469 pic_flag=$lt_lt_prog_compiler_pic_F77
15470 pic_mode=$pic_mode
15471
15472 # What is the maximum length of a command?
15473 max_cmd_len=$lt_cv_sys_max_cmd_len
15474
15475 # Does compiler simultaneously support -c and -o options?
15476 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15477
15478 # Must we lock files when doing compilation ?
15479 need_locks=$lt_need_locks
15480
15481 # Do we need the lib prefix for modules?
15482 need_lib_prefix=$need_lib_prefix
15483
15484 # Do we need a version for libraries?
15485 need_version=$need_version
15486
15487 # Whether dlopen is supported.
15488 dlopen_support=$enable_dlopen
15489
15490 # Whether dlopen of programs is supported.
15491 dlopen_self=$enable_dlopen_self
15492
15493 # Whether dlopen of statically linked programs is supported.
15494 dlopen_self_static=$enable_dlopen_self_static
15495
15496 # Compiler flag to prevent dynamic linking.
15497 link_static_flag=$lt_lt_prog_compiler_static_F77
15498
15499 # Compiler flag to turn off builtin functions.
15500 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15501
15502 # Compiler flag to allow reflexive dlopens.
15503 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15504
15505 # Compiler flag to generate shared objects directly from archives.
15506 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15507
15508 # Compiler flag to generate thread-safe objects.
15509 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15510
15511 # Library versioning type.
15512 version_type=$version_type
15513
15514 # Format of library name prefix.
15515 libname_spec=$lt_libname_spec
15516
15517 # List of archive names.  First name is the real one, the rest are links.
15518 # The last name is the one that the linker finds with -lNAME.
15519 library_names_spec=$lt_library_names_spec
15520
15521 # The coded name of the library, if different from the real name.
15522 soname_spec=$lt_soname_spec
15523
15524 # Commands used to build and install an old-style archive.
15525 RANLIB=$lt_RANLIB
15526 old_archive_cmds=$lt_old_archive_cmds_F77
15527 old_postinstall_cmds=$lt_old_postinstall_cmds
15528 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15529
15530 # Create an old-style archive from a shared archive.
15531 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15532
15533 # Create a temporary old-style archive to link instead of a shared archive.
15534 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15535
15536 # Commands used to build and install a shared archive.
15537 archive_cmds=$lt_archive_cmds_F77
15538 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15539 postinstall_cmds=$lt_postinstall_cmds
15540 postuninstall_cmds=$lt_postuninstall_cmds
15541
15542 # Commands used to build a loadable module (assumed same as above if empty)
15543 module_cmds=$lt_module_cmds_F77
15544 module_expsym_cmds=$lt_module_expsym_cmds_F77
15545
15546 # Commands to strip libraries.
15547 old_striplib=$lt_old_striplib
15548 striplib=$lt_striplib
15549
15550 # Dependencies to place before the objects being linked to create a
15551 # shared library.
15552 predep_objects=$lt_predep_objects_F77
15553
15554 # Dependencies to place after the objects being linked to create a
15555 # shared library.
15556 postdep_objects=$lt_postdep_objects_F77
15557
15558 # Dependencies to place before the objects being linked to create a
15559 # shared library.
15560 predeps=$lt_predeps_F77
15561
15562 # Dependencies to place after the objects being linked to create a
15563 # shared library.
15564 postdeps=$lt_postdeps_F77
15565
15566 # The library search path used internally by the compiler when linking
15567 # a shared library.
15568 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15569
15570 # Method to check whether dependent libraries are shared objects.
15571 deplibs_check_method=$lt_deplibs_check_method
15572
15573 # Command to use when deplibs_check_method == file_magic.
15574 file_magic_cmd=$lt_file_magic_cmd
15575
15576 # Flag that allows shared libraries with undefined symbols to be built.
15577 allow_undefined_flag=$lt_allow_undefined_flag_F77
15578
15579 # Flag that forces no undefined symbols.
15580 no_undefined_flag=$lt_no_undefined_flag_F77
15581
15582 # Commands used to finish a libtool library installation in a directory.
15583 finish_cmds=$lt_finish_cmds
15584
15585 # Same as above, but a single script fragment to be evaled but not shown.
15586 finish_eval=$lt_finish_eval
15587
15588 # Take the output of nm and produce a listing of raw symbols and C names.
15589 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15590
15591 # Transform the output of nm in a proper C declaration
15592 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15593
15594 # Transform the output of nm in a C name address pair
15595 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15596
15597 # This is the shared library runtime path variable.
15598 runpath_var=$runpath_var
15599
15600 # This is the shared library path variable.
15601 shlibpath_var=$shlibpath_var
15602
15603 # Is shlibpath searched before the hard-coded library search path?
15604 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15605
15606 # How to hardcode a shared library path into an executable.
15607 hardcode_action=$hardcode_action_F77
15608
15609 # Whether we should hardcode library paths into libraries.
15610 hardcode_into_libs=$hardcode_into_libs
15611
15612 # Flag to hardcode \$libdir into a binary during linking.
15613 # This must work even if \$libdir does not exist.
15614 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15615
15616 # If ld is used when linking, flag to hardcode \$libdir into
15617 # a binary during linking. This must work even if \$libdir does
15618 # not exist.
15619 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15620
15621 # Whether we need a single -rpath flag with a separated argument.
15622 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15623
15624 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15625 # resulting binary.
15626 hardcode_direct=$hardcode_direct_F77
15627
15628 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15629 # resulting binary.
15630 hardcode_minus_L=$hardcode_minus_L_F77
15631
15632 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15633 # the resulting binary.
15634 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15635
15636 # Set to yes if building a shared library automatically hardcodes DIR into the library
15637 # and all subsequent libraries and executables linked against it.
15638 hardcode_automatic=$hardcode_automatic_F77
15639
15640 # Variables whose values should be saved in libtool wrapper scripts and
15641 # restored at relink time.
15642 variables_saved_for_relink="$variables_saved_for_relink"
15643
15644 # Whether libtool must link a program against all its dependency libraries.
15645 link_all_deplibs=$link_all_deplibs_F77
15646
15647 # Compile-time system search path for libraries
15648 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15649
15650 # Run-time system search path for libraries
15651 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15652
15653 # Fix the shell variable \$srcfile for the compiler.
15654 fix_srcfile_path="$fix_srcfile_path_F77"
15655
15656 # Set to yes if exported symbols are required.
15657 always_export_symbols=$always_export_symbols_F77
15658
15659 # The commands to list exported symbols.
15660 export_symbols_cmds=$lt_export_symbols_cmds_F77
15661
15662 # The commands to extract the exported symbol list from a shared archive.
15663 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15664
15665 # Symbols that should not be listed in the preloaded symbols.
15666 exclude_expsyms=$lt_exclude_expsyms_F77
15667
15668 # Symbols that must always be exported.
15669 include_expsyms=$lt_include_expsyms_F77
15670
15671 # ### END LIBTOOL TAG CONFIG: $tagname
15672
15673 __EOF__
15674
15675
15676 else
15677   # If there is no Makefile yet, we rely on a make rule to execute
15678   # `config.status --recheck' to rerun these tests and create the
15679   # libtool script then.
15680   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15681   if test -f "$ltmain_in"; then
15682     test -f Makefile && make "$ltmain"
15683   fi
15684 fi
15685
15686
15687 ac_ext=c
15688 ac_cpp='$CPP $CPPFLAGS'
15689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15692
15693 CC="$lt_save_CC"
15694
15695         else
15696           tagname=""
15697         fi
15698         ;;
15699
15700       GCJ)
15701         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15702
15703
15704
15705 # Source file extension for Java test sources.
15706 ac_ext=java
15707
15708 # Object file extension for compiled Java test sources.
15709 objext=o
15710 objext_GCJ=$objext
15711
15712 # Code to be used in simple compile tests
15713 lt_simple_compile_test_code="class foo {}\n"
15714
15715 # Code to be used in simple link tests
15716 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15717
15718 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15719
15720 # If no C compiler was specified, use CC.
15721 LTCC=${LTCC-"$CC"}
15722
15723 # Allow CC to be a program name with arguments.
15724 compiler=$CC
15725
15726
15727 # Allow CC to be a program name with arguments.
15728 lt_save_CC="$CC"
15729 CC=${GCJ-"gcj"}
15730 compiler=$CC
15731 compiler_GCJ=$CC
15732
15733 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15734 archive_cmds_need_lc_GCJ=no
15735
15736
15737 lt_prog_compiler_no_builtin_flag_GCJ=
15738
15739 if test "$GCC" = yes; then
15740   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15741
15742
15743 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15744 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15745 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15746   echo $ECHO_N "(cached) $ECHO_C" >&6
15747 else
15748   lt_cv_prog_compiler_rtti_exceptions=no
15749   ac_outfile=conftest.$ac_objext
15750    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15751    lt_compiler_flag="-fno-rtti -fno-exceptions"
15752    # Insert the option either (1) after the last *FLAGS variable, or
15753    # (2) before a word containing "conftest.", or (3) at the end.
15754    # Note that $ac_compile itself does not contain backslashes and begins
15755    # with a dollar sign (not a hyphen), so the echo should work correctly.
15756    # The option is referenced via a variable to avoid confusing sed.
15757    lt_compile=`echo "$ac_compile" | $SED \
15758    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15759    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15760    -e 's:$: $lt_compiler_flag:'`
15761    (eval echo "\"\$as_me:15761: $lt_compile\"" >&5)
15762    (eval "$lt_compile" 2>conftest.err)
15763    ac_status=$?
15764    cat conftest.err >&5
15765    echo "$as_me:15765: \$? = $ac_status" >&5
15766    if (exit $ac_status) && test -s "$ac_outfile"; then
15767      # The compiler can only warn and ignore the option if not recognized
15768      # So say no if there are warnings
15769      if test ! -s conftest.err; then
15770        lt_cv_prog_compiler_rtti_exceptions=yes
15771      fi
15772    fi
15773    $rm conftest*
15774
15775 fi
15776 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15777 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15778
15779 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15780     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15781 else
15782     :
15783 fi
15784
15785 fi
15786
15787 lt_prog_compiler_wl_GCJ=
15788 lt_prog_compiler_pic_GCJ=
15789 lt_prog_compiler_static_GCJ=
15790
15791 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15792 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15793
15794   if test "$GCC" = yes; then
15795     lt_prog_compiler_wl_GCJ='-Wl,'
15796     lt_prog_compiler_static_GCJ='-static'
15797
15798     case $host_os in
15799       aix*)
15800       # All AIX code is PIC.
15801       if test "$host_cpu" = ia64; then
15802         # AIX 5 now supports IA64 processor
15803         lt_prog_compiler_static_GCJ='-Bstatic'
15804       fi
15805       ;;
15806
15807     amigaos*)
15808       # FIXME: we need at least 68020 code to build shared libraries, but
15809       # adding the `-m68020' flag to GCC prevents building anything better,
15810       # like `-m68040'.
15811       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15812       ;;
15813
15814     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15815       # PIC is the default for these OSes.
15816       ;;
15817
15818     mingw* | pw32* | os2*)
15819       # This hack is so that the source file can tell whether it is being
15820       # built for inclusion in a dll (and should export symbols for example).
15821       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15822       ;;
15823
15824     darwin* | rhapsody*)
15825       # PIC is the default on this platform
15826       # Common symbols not allowed in MH_DYLIB files
15827       lt_prog_compiler_pic_GCJ='-fno-common'
15828       ;;
15829
15830     msdosdjgpp*)
15831       # Just because we use GCC doesn't mean we suddenly get shared libraries
15832       # on systems that don't support them.
15833       lt_prog_compiler_can_build_shared_GCJ=no
15834       enable_shared=no
15835       ;;
15836
15837     sysv4*MP*)
15838       if test -d /usr/nec; then
15839         lt_prog_compiler_pic_GCJ=-Kconform_pic
15840       fi
15841       ;;
15842
15843     hpux*)
15844       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15845       # not for PA HP-UX.
15846       case "$host_cpu" in
15847       hppa*64*|ia64*)
15848         # +Z the default
15849         ;;
15850       *)
15851         lt_prog_compiler_pic_GCJ='-fPIC'
15852         ;;
15853       esac
15854       ;;
15855
15856     *)
15857       lt_prog_compiler_pic_GCJ='-fPIC'
15858       ;;
15859     esac
15860   else
15861     # PORTME Check for flag to pass linker flags through the system compiler.
15862     case $host_os in
15863     aix*)
15864       lt_prog_compiler_wl_GCJ='-Wl,'
15865       if test "$host_cpu" = ia64; then
15866         # AIX 5 now supports IA64 processor
15867         lt_prog_compiler_static_GCJ='-Bstatic'
15868       else
15869         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15870       fi
15871       ;;
15872
15873     mingw* | pw32* | os2*)
15874       # This hack is so that the source file can tell whether it is being
15875       # built for inclusion in a dll (and should export symbols for example).
15876       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15877       ;;
15878
15879     hpux9* | hpux10* | hpux11*)
15880       lt_prog_compiler_wl_GCJ='-Wl,'
15881       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15882       # not for PA HP-UX.
15883       case "$host_cpu" in
15884       hppa*64*|ia64*)
15885         # +Z the default
15886         ;;
15887       *)
15888         lt_prog_compiler_pic_GCJ='+Z'
15889         ;;
15890       esac
15891       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15892       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15893       ;;
15894
15895     irix5* | irix6* | nonstopux*)
15896       lt_prog_compiler_wl_GCJ='-Wl,'
15897       # PIC (with -KPIC) is the default.
15898       lt_prog_compiler_static_GCJ='-non_shared'
15899       ;;
15900
15901     newsos6)
15902       lt_prog_compiler_pic_GCJ='-KPIC'
15903       lt_prog_compiler_static_GCJ='-Bstatic'
15904       ;;
15905
15906     linux*)
15907       case $CC in
15908       icc* | ecc*)
15909         lt_prog_compiler_wl_GCJ='-Wl,'
15910         lt_prog_compiler_pic_GCJ='-KPIC'
15911         lt_prog_compiler_static_GCJ='-static'
15912         ;;
15913       ccc*)
15914         lt_prog_compiler_wl_GCJ='-Wl,'
15915         # All Alpha code is PIC.
15916         lt_prog_compiler_static_GCJ='-non_shared'
15917         ;;
15918       esac
15919       ;;
15920
15921     osf3* | osf4* | osf5*)
15922       lt_prog_compiler_wl_GCJ='-Wl,'
15923       # All OSF/1 code is PIC.
15924       lt_prog_compiler_static_GCJ='-non_shared'
15925       ;;
15926
15927     sco3.2v5*)
15928       lt_prog_compiler_pic_GCJ='-Kpic'
15929       lt_prog_compiler_static_GCJ='-dn'
15930       ;;
15931
15932     solaris*)
15933       lt_prog_compiler_wl_GCJ='-Wl,'
15934       lt_prog_compiler_pic_GCJ='-KPIC'
15935       lt_prog_compiler_static_GCJ='-Bstatic'
15936       ;;
15937
15938     sunos4*)
15939       lt_prog_compiler_wl_GCJ='-Qoption ld '
15940       lt_prog_compiler_pic_GCJ='-PIC'
15941       lt_prog_compiler_static_GCJ='-Bstatic'
15942       ;;
15943
15944     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15945       lt_prog_compiler_wl_GCJ='-Wl,'
15946       lt_prog_compiler_pic_GCJ='-KPIC'
15947       lt_prog_compiler_static_GCJ='-Bstatic'
15948       ;;
15949
15950     sysv4*MP*)
15951       if test -d /usr/nec ;then
15952         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15953         lt_prog_compiler_static_GCJ='-Bstatic'
15954       fi
15955       ;;
15956
15957     uts4*)
15958       lt_prog_compiler_pic_GCJ='-pic'
15959       lt_prog_compiler_static_GCJ='-Bstatic'
15960       ;;
15961
15962     *)
15963       lt_prog_compiler_can_build_shared_GCJ=no
15964       ;;
15965     esac
15966   fi
15967
15968 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15969 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15970
15971 #
15972 # Check to make sure the PIC flag actually works.
15973 #
15974 if test -n "$lt_prog_compiler_pic_GCJ"; then
15975
15976 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15977 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15978 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15979   echo $ECHO_N "(cached) $ECHO_C" >&6
15980 else
15981   lt_prog_compiler_pic_works_GCJ=no
15982   ac_outfile=conftest.$ac_objext
15983    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15984    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15985    # Insert the option either (1) after the last *FLAGS variable, or
15986    # (2) before a word containing "conftest.", or (3) at the end.
15987    # Note that $ac_compile itself does not contain backslashes and begins
15988    # with a dollar sign (not a hyphen), so the echo should work correctly.
15989    # The option is referenced via a variable to avoid confusing sed.
15990    lt_compile=`echo "$ac_compile" | $SED \
15991    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15992    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15993    -e 's:$: $lt_compiler_flag:'`
15994    (eval echo "\"\$as_me:15994: $lt_compile\"" >&5)
15995    (eval "$lt_compile" 2>conftest.err)
15996    ac_status=$?
15997    cat conftest.err >&5
15998    echo "$as_me:15998: \$? = $ac_status" >&5
15999    if (exit $ac_status) && test -s "$ac_outfile"; then
16000      # The compiler can only warn and ignore the option if not recognized
16001      # So say no if there are warnings
16002      if test ! -s conftest.err; then
16003        lt_prog_compiler_pic_works_GCJ=yes
16004      fi
16005    fi
16006    $rm conftest*
16007
16008 fi
16009 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16010 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16011
16012 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16013     case $lt_prog_compiler_pic_GCJ in
16014      "" | " "*) ;;
16015      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16016      esac
16017 else
16018     lt_prog_compiler_pic_GCJ=
16019      lt_prog_compiler_can_build_shared_GCJ=no
16020 fi
16021
16022 fi
16023 case "$host_os" in
16024   # For platforms which do not support PIC, -DPIC is meaningless:
16025   *djgpp*)
16026     lt_prog_compiler_pic_GCJ=
16027     ;;
16028   *)
16029     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16030     ;;
16031 esac
16032
16033 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16034 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16035 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16036   echo $ECHO_N "(cached) $ECHO_C" >&6
16037 else
16038   lt_cv_prog_compiler_c_o_GCJ=no
16039    $rm -r conftest 2>/dev/null
16040    mkdir conftest
16041    cd conftest
16042    mkdir out
16043    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16044
16045    lt_compiler_flag="-o out/conftest2.$ac_objext"
16046    # Insert the option either (1) after the last *FLAGS variable, or
16047    # (2) before a word containing "conftest.", or (3) at the end.
16048    # Note that $ac_compile itself does not contain backslashes and begins
16049    # with a dollar sign (not a hyphen), so the echo should work correctly.
16050    lt_compile=`echo "$ac_compile" | $SED \
16051    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16052    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16053    -e 's:$: $lt_compiler_flag:'`
16054    (eval echo "\"\$as_me:16054: $lt_compile\"" >&5)
16055    (eval "$lt_compile" 2>out/conftest.err)
16056    ac_status=$?
16057    cat out/conftest.err >&5
16058    echo "$as_me:16058: \$? = $ac_status" >&5
16059    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16060    then
16061      # The compiler can only warn and ignore the option if not recognized
16062      # So say no if there are warnings
16063      if test ! -s out/conftest.err; then
16064        lt_cv_prog_compiler_c_o_GCJ=yes
16065      fi
16066    fi
16067    chmod u+w .
16068    $rm conftest*
16069    # SGI C++ compiler will create directory out/ii_files/ for
16070    # template instantiation
16071    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16072    $rm out/* && rmdir out
16073    cd ..
16074    rmdir conftest
16075    $rm conftest*
16076
16077 fi
16078 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16079 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16080
16081
16082 hard_links="nottested"
16083 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16084   # do not overwrite the value of need_locks provided by the user
16085   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16086 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16087   hard_links=yes
16088   $rm conftest*
16089   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16090   touch conftest.a
16091   ln conftest.a conftest.b 2>&5 || hard_links=no
16092   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16093   echo "$as_me:$LINENO: result: $hard_links" >&5
16094 echo "${ECHO_T}$hard_links" >&6
16095   if test "$hard_links" = no; then
16096     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16097 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16098     need_locks=warn
16099   fi
16100 else
16101   need_locks=no
16102 fi
16103
16104 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16105 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16106
16107   runpath_var=
16108   allow_undefined_flag_GCJ=
16109   enable_shared_with_static_runtimes_GCJ=no
16110   archive_cmds_GCJ=
16111   archive_expsym_cmds_GCJ=
16112   old_archive_From_new_cmds_GCJ=
16113   old_archive_from_expsyms_cmds_GCJ=
16114   export_dynamic_flag_spec_GCJ=
16115   whole_archive_flag_spec_GCJ=
16116   thread_safe_flag_spec_GCJ=
16117   hardcode_libdir_flag_spec_GCJ=
16118   hardcode_libdir_flag_spec_ld_GCJ=
16119   hardcode_libdir_separator_GCJ=
16120   hardcode_direct_GCJ=no
16121   hardcode_minus_L_GCJ=no
16122   hardcode_shlibpath_var_GCJ=unsupported
16123   link_all_deplibs_GCJ=unknown
16124   hardcode_automatic_GCJ=no
16125   module_cmds_GCJ=
16126   module_expsym_cmds_GCJ=
16127   always_export_symbols_GCJ=no
16128   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16129   # include_expsyms should be a list of space-separated symbols to be *always*
16130   # included in the symbol list
16131   include_expsyms_GCJ=
16132   # exclude_expsyms can be an extended regexp of symbols to exclude
16133   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16134   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16135   # as well as any symbol that contains `d'.
16136   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16137   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16138   # platforms (ab)use it in PIC code, but their linkers get confused if
16139   # the symbol is explicitly referenced.  Since portable code cannot
16140   # rely on this symbol name, it's probably fine to never include it in
16141   # preloaded symbol tables.
16142   extract_expsyms_cmds=
16143
16144   case $host_os in
16145   cygwin* | mingw* | pw32*)
16146     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16147     # When not using gcc, we currently assume that we are using
16148     # Microsoft Visual C++.
16149     if test "$GCC" != yes; then
16150       with_gnu_ld=no
16151     fi
16152     ;;
16153   openbsd*)
16154     with_gnu_ld=no
16155     ;;
16156   esac
16157
16158   ld_shlibs_GCJ=yes
16159   if test "$with_gnu_ld" = yes; then
16160     # If archive_cmds runs LD, not CC, wlarc should be empty
16161     wlarc='${wl}'
16162
16163     # See if GNU ld supports shared libraries.
16164     case $host_os in
16165     aix3* | aix4* | aix5*)
16166       # On AIX/PPC, the GNU linker is very broken
16167       if test "$host_cpu" != ia64; then
16168         ld_shlibs_GCJ=no
16169         cat <<EOF 1>&2
16170
16171 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16172 *** to be unable to reliably create shared libraries on AIX.
16173 *** Therefore, libtool is disabling shared libraries support.  If you
16174 *** really care for shared libraries, you may want to modify your PATH
16175 *** so that a non-GNU linker is found, and then restart.
16176
16177 EOF
16178       fi
16179       ;;
16180
16181     amigaos*)
16182       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)'
16183       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16184       hardcode_minus_L_GCJ=yes
16185
16186       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16187       # that the semantics of dynamic libraries on AmigaOS, at least up
16188       # to version 4, is to share data among multiple programs linked
16189       # with the same dynamic library.  Since this doesn't match the
16190       # behavior of shared libraries on other platforms, we can't use
16191       # them.
16192       ld_shlibs_GCJ=no
16193       ;;
16194
16195     beos*)
16196       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16197         allow_undefined_flag_GCJ=unsupported
16198         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16199         # support --undefined.  This deserves some investigation.  FIXME
16200         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16201       else
16202         ld_shlibs_GCJ=no
16203       fi
16204       ;;
16205
16206     cygwin* | mingw* | pw32*)
16207       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16208       # as there is no search path for DLLs.
16209       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16210       allow_undefined_flag_GCJ=unsupported
16211       always_export_symbols_GCJ=no
16212       enable_shared_with_static_runtimes_GCJ=yes
16213       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16214
16215       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16216         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16217         # If the export-symbols file already is a .def file (1st line
16218         # is EXPORTS), use it as is; otherwise, prepend...
16219         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16220           cp $export_symbols $output_objdir/$soname.def;
16221         else
16222           echo EXPORTS > $output_objdir/$soname.def;
16223           cat $export_symbols >> $output_objdir/$soname.def;
16224         fi~
16225         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16226       else
16227         ld_shlibs=no
16228       fi
16229       ;;
16230
16231     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16232       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16233         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16234         wlarc=
16235       else
16236         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16237         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16238       fi
16239       ;;
16240
16241     solaris* | sysv5*)
16242       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16243         ld_shlibs_GCJ=no
16244         cat <<EOF 1>&2
16245
16246 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16247 *** create shared libraries on Solaris systems.  Therefore, libtool
16248 *** is disabling shared libraries support.  We urge you to upgrade GNU
16249 *** binutils to release 2.9.1 or newer.  Another option is to modify
16250 *** your PATH or compiler configuration so that the native linker is
16251 *** used, and then restart.
16252
16253 EOF
16254       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16255         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16256         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16257       else
16258         ld_shlibs_GCJ=no
16259       fi
16260       ;;
16261
16262     sunos4*)
16263       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16264       wlarc=
16265       hardcode_direct_GCJ=yes
16266       hardcode_shlibpath_var_GCJ=no
16267       ;;
16268
16269   linux*)
16270     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16271         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16272         archive_cmds_GCJ="$tmp_archive_cmds"
16273       supports_anon_versioning=no
16274       case `$LD -v 2>/dev/null` in
16275         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16276         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16277         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16278         *\ 2.11.*) ;; # other 2.11 versions
16279         *) supports_anon_versioning=yes ;;
16280       esac
16281       if test $supports_anon_versioning = yes; then
16282         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16283 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16284 $echo "local: *; };" >> $output_objdir/$libname.ver~
16285         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16286       else
16287         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16288       fi
16289       link_all_deplibs_GCJ=no
16290     else
16291       ld_shlibs_GCJ=no
16292     fi
16293     ;;
16294
16295     *)
16296       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16297         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16298         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16299       else
16300         ld_shlibs_GCJ=no
16301       fi
16302       ;;
16303     esac
16304
16305     if test "$ld_shlibs_GCJ" = yes; then
16306       runpath_var=LD_RUN_PATH
16307       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16308       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16309       # ancient GNU ld didn't support --whole-archive et. al.
16310       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16311         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16312       else
16313         whole_archive_flag_spec_GCJ=
16314       fi
16315     fi
16316   else
16317     # PORTME fill in a description of your system's linker (not GNU ld)
16318     case $host_os in
16319     aix3*)
16320       allow_undefined_flag_GCJ=unsupported
16321       always_export_symbols_GCJ=yes
16322       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'
16323       # Note: this linker hardcodes the directories in LIBPATH if there
16324       # are no directories specified by -L.
16325       hardcode_minus_L_GCJ=yes
16326       if test "$GCC" = yes && test -z "$link_static_flag"; then
16327         # Neither direct hardcoding nor static linking is supported with a
16328         # broken collect2.
16329         hardcode_direct_GCJ=unsupported
16330       fi
16331       ;;
16332
16333     aix4* | aix5*)
16334       if test "$host_cpu" = ia64; then
16335         # On IA64, the linker does run time linking by default, so we don't
16336         # have to do anything special.
16337         aix_use_runtimelinking=no
16338         exp_sym_flag='-Bexport'
16339         no_entry_flag=""
16340       else
16341         # If we're using GNU nm, then we don't want the "-C" option.
16342         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16343         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16344           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'
16345         else
16346           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'
16347         fi
16348         aix_use_runtimelinking=no
16349
16350         # Test if we are trying to use run time linking or normal
16351         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16352         # need to do runtime linking.
16353         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16354           for ld_flag in $LDFLAGS; do
16355           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16356             aix_use_runtimelinking=yes
16357             break
16358           fi
16359           done
16360         esac
16361
16362         exp_sym_flag='-bexport'
16363         no_entry_flag='-bnoentry'
16364       fi
16365
16366       # When large executables or shared objects are built, AIX ld can
16367       # have problems creating the table of contents.  If linking a library
16368       # or program results in "error TOC overflow" add -mminimal-toc to
16369       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16370       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16371
16372       archive_cmds_GCJ=''
16373       hardcode_direct_GCJ=yes
16374       hardcode_libdir_separator_GCJ=':'
16375       link_all_deplibs_GCJ=yes
16376
16377       if test "$GCC" = yes; then
16378         case $host_os in aix4.012|aix4.012.*)
16379         # We only want to do this on AIX 4.2 and lower, the check
16380         # below for broken collect2 doesn't work under 4.3+
16381           collect2name=`${CC} -print-prog-name=collect2`
16382           if test -f "$collect2name" && \
16383            strings "$collect2name" | grep resolve_lib_name >/dev/null
16384           then
16385           # We have reworked collect2
16386           hardcode_direct_GCJ=yes
16387           else
16388           # We have old collect2
16389           hardcode_direct_GCJ=unsupported
16390           # It fails to find uninstalled libraries when the uninstalled
16391           # path is not listed in the libpath.  Setting hardcode_minus_L
16392           # to unsupported forces relinking
16393           hardcode_minus_L_GCJ=yes
16394           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16395           hardcode_libdir_separator_GCJ=
16396           fi
16397         esac
16398         shared_flag='-shared'
16399       else
16400         # not using gcc
16401         if test "$host_cpu" = ia64; then
16402         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16403         # chokes on -Wl,-G. The following line is correct:
16404           shared_flag='-G'
16405         else
16406         if test "$aix_use_runtimelinking" = yes; then
16407             shared_flag='${wl}-G'
16408           else
16409             shared_flag='${wl}-bM:SRE'
16410         fi
16411         fi
16412       fi
16413
16414       # It seems that -bexpall does not export symbols beginning with
16415       # underscore (_), so it is better to generate a list of symbols to export.
16416       always_export_symbols_GCJ=yes
16417       if test "$aix_use_runtimelinking" = yes; then
16418         # Warning - without using the other runtime loading flags (-brtl),
16419         # -berok will link without error, but may produce a broken library.
16420         allow_undefined_flag_GCJ='-berok'
16421        # Determine the default libpath from the value encoded in an empty executable.
16422        cat >conftest.$ac_ext <<_ACEOF
16423 /* confdefs.h.  */
16424 _ACEOF
16425 cat confdefs.h >>conftest.$ac_ext
16426 cat >>conftest.$ac_ext <<_ACEOF
16427 /* end confdefs.h.  */
16428
16429 int
16430 main ()
16431 {
16432
16433   ;
16434   return 0;
16435 }
16436 _ACEOF
16437 rm -f conftest.$ac_objext conftest$ac_exeext
16438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16439   (eval $ac_link) 2>conftest.er1
16440   ac_status=$?
16441   grep -v '^ *+' conftest.er1 >conftest.err
16442   rm -f conftest.er1
16443   cat conftest.err >&5
16444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445   (exit $ac_status); } &&
16446          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16448   (eval $ac_try) 2>&5
16449   ac_status=$?
16450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451   (exit $ac_status); }; } &&
16452          { ac_try='test -s conftest$ac_exeext'
16453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16454   (eval $ac_try) 2>&5
16455   ac_status=$?
16456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457   (exit $ac_status); }; }; then
16458
16459 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16460 }'`
16461 # Check for a 64-bit object if we didn't find anything.
16462 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; }
16463 }'`; fi
16464 else
16465   echo "$as_me: failed program was:" >&5
16466 sed 's/^/| /' conftest.$ac_ext >&5
16467
16468 fi
16469 rm -f conftest.err conftest.$ac_objext \
16470       conftest$ac_exeext conftest.$ac_ext
16471 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16472
16473        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16474         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"
16475        else
16476         if test "$host_cpu" = ia64; then
16477           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16478           allow_undefined_flag_GCJ="-z nodefs"
16479           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"
16480         else
16481          # Determine the default libpath from the value encoded in an empty executable.
16482          cat >conftest.$ac_ext <<_ACEOF
16483 /* confdefs.h.  */
16484 _ACEOF
16485 cat confdefs.h >>conftest.$ac_ext
16486 cat >>conftest.$ac_ext <<_ACEOF
16487 /* end confdefs.h.  */
16488
16489 int
16490 main ()
16491 {
16492
16493   ;
16494   return 0;
16495 }
16496 _ACEOF
16497 rm -f conftest.$ac_objext conftest$ac_exeext
16498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16499   (eval $ac_link) 2>conftest.er1
16500   ac_status=$?
16501   grep -v '^ *+' conftest.er1 >conftest.err
16502   rm -f conftest.er1
16503   cat conftest.err >&5
16504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505   (exit $ac_status); } &&
16506          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16508   (eval $ac_try) 2>&5
16509   ac_status=$?
16510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511   (exit $ac_status); }; } &&
16512          { ac_try='test -s conftest$ac_exeext'
16513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16514   (eval $ac_try) 2>&5
16515   ac_status=$?
16516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517   (exit $ac_status); }; }; then
16518
16519 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16520 }'`
16521 # Check for a 64-bit object if we didn't find anything.
16522 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; }
16523 }'`; fi
16524 else
16525   echo "$as_me: failed program was:" >&5
16526 sed 's/^/| /' conftest.$ac_ext >&5
16527
16528 fi
16529 rm -f conftest.err conftest.$ac_objext \
16530       conftest$ac_exeext conftest.$ac_ext
16531 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16532
16533          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16534           # Warning - without using the other run time loading flags,
16535           # -berok will link without error, but may produce a broken library.
16536           no_undefined_flag_GCJ=' ${wl}-bernotok'
16537           allow_undefined_flag_GCJ=' ${wl}-berok'
16538           # -bexpall does not export symbols beginning with underscore (_)
16539           always_export_symbols_GCJ=yes
16540           # Exported symbols can be pulled into shared objects from archives
16541           whole_archive_flag_spec_GCJ=' '
16542           archive_cmds_need_lc_GCJ=yes
16543           # This is similar to how AIX traditionally builds it's shared libraries.
16544           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'
16545         fi
16546       fi
16547       ;;
16548
16549     amigaos*)
16550       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)'
16551       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16552       hardcode_minus_L_GCJ=yes
16553       # see comment about different semantics on the GNU ld section
16554       ld_shlibs_GCJ=no
16555       ;;
16556
16557     bsdi4*)
16558       export_dynamic_flag_spec_GCJ=-rdynamic
16559       ;;
16560
16561     cygwin* | mingw* | pw32*)
16562       # When not using gcc, we currently assume that we are using
16563       # Microsoft Visual C++.
16564       # hardcode_libdir_flag_spec is actually meaningless, as there is
16565       # no search path for DLLs.
16566       hardcode_libdir_flag_spec_GCJ=' '
16567       allow_undefined_flag_GCJ=unsupported
16568       # Tell ltmain to make .lib files, not .a files.
16569       libext=lib
16570       # Tell ltmain to make .dll files, not .so files.
16571       shrext_cmds=".dll"
16572       # FIXME: Setting linknames here is a bad hack.
16573       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16574       # The linker will automatically build a .lib file if we build a DLL.
16575       old_archive_From_new_cmds_GCJ='true'
16576       # FIXME: Should let the user specify the lib program.
16577       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16578       fix_srcfile_path='`cygpath -w "$srcfile"`'
16579       enable_shared_with_static_runtimes_GCJ=yes
16580       ;;
16581
16582     darwin* | rhapsody*)
16583     if test "$GXX" = yes ; then
16584       archive_cmds_need_lc_GCJ=no
16585       case "$host_os" in
16586       rhapsody* | darwin1.[012])
16587         allow_undefined_flag_GCJ='-undefined suppress'
16588         ;;
16589       *) # Darwin 1.3 on
16590       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16591         allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16592       else
16593         case ${MACOSX_DEPLOYMENT_TARGET} in
16594           10.[012])
16595             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16596             ;;
16597           10.*)
16598             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16599             ;;
16600         esac
16601       fi
16602         ;;
16603       esac
16604         lt_int_apple_cc_single_mod=no
16605         output_verbose_link_cmd='echo'
16606         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16607           lt_int_apple_cc_single_mod=yes
16608         fi
16609         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16610           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16611         else
16612         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'
16613       fi
16614       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16615       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16616         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16617           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}'
16618         else
16619           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}'
16620         fi
16621           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}'
16622       hardcode_direct_GCJ=no
16623       hardcode_automatic_GCJ=yes
16624       hardcode_shlibpath_var_GCJ=unsupported
16625       whole_archive_flag_spec_GCJ='-all_load $convenience'
16626       link_all_deplibs_GCJ=yes
16627     else
16628       ld_shlibs_GCJ=no
16629     fi
16630       ;;
16631
16632     dgux*)
16633       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16634       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16635       hardcode_shlibpath_var_GCJ=no
16636       ;;
16637
16638     freebsd1*)
16639       ld_shlibs_GCJ=no
16640       ;;
16641
16642     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16643     # support.  Future versions do this automatically, but an explicit c++rt0.o
16644     # does not break anything, and helps significantly (at the cost of a little
16645     # extra space).
16646     freebsd2.2*)
16647       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16648       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16649       hardcode_direct_GCJ=yes
16650       hardcode_shlibpath_var_GCJ=no
16651       ;;
16652
16653     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16654     freebsd2*)
16655       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16656       hardcode_direct_GCJ=yes
16657       hardcode_minus_L_GCJ=yes
16658       hardcode_shlibpath_var_GCJ=no
16659       ;;
16660
16661     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16662     freebsd* | kfreebsd*-gnu)
16663       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16664       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16665       hardcode_direct_GCJ=yes
16666       hardcode_shlibpath_var_GCJ=no
16667       ;;
16668
16669     hpux9*)
16670       if test "$GCC" = yes; then
16671         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'
16672       else
16673         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'
16674       fi
16675       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16676       hardcode_libdir_separator_GCJ=:
16677       hardcode_direct_GCJ=yes
16678
16679       # hardcode_minus_L: Not really in the search PATH,
16680       # but as the default location of the library.
16681       hardcode_minus_L_GCJ=yes
16682       export_dynamic_flag_spec_GCJ='${wl}-E'
16683       ;;
16684
16685     hpux10* | hpux11*)
16686       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16687         case "$host_cpu" in
16688         hppa*64*|ia64*)
16689           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16690           ;;
16691         *)
16692           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16693           ;;
16694         esac
16695       else
16696         case "$host_cpu" in
16697         hppa*64*|ia64*)
16698           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16699           ;;
16700         *)
16701           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16702           ;;
16703         esac
16704       fi
16705       if test "$with_gnu_ld" = no; then
16706         case "$host_cpu" in
16707         hppa*64*)
16708           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16709           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16710           hardcode_libdir_separator_GCJ=:
16711           hardcode_direct_GCJ=no
16712           hardcode_shlibpath_var_GCJ=no
16713           ;;
16714         ia64*)
16715           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16716           hardcode_direct_GCJ=no
16717           hardcode_shlibpath_var_GCJ=no
16718
16719           # hardcode_minus_L: Not really in the search PATH,
16720           # but as the default location of the library.
16721           hardcode_minus_L_GCJ=yes
16722           ;;
16723         *)
16724           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16725           hardcode_libdir_separator_GCJ=:
16726           hardcode_direct_GCJ=yes
16727           export_dynamic_flag_spec_GCJ='${wl}-E'
16728
16729           # hardcode_minus_L: Not really in the search PATH,
16730           # but as the default location of the library.
16731           hardcode_minus_L_GCJ=yes
16732           ;;
16733         esac
16734       fi
16735       ;;
16736
16737     irix5* | irix6* | nonstopux*)
16738       if test "$GCC" = yes; then
16739         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'
16740       else
16741         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'
16742         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16743       fi
16744       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16745       hardcode_libdir_separator_GCJ=:
16746       link_all_deplibs_GCJ=yes
16747       ;;
16748
16749     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16750       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16751         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16752       else
16753         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16754       fi
16755       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16756       hardcode_direct_GCJ=yes
16757       hardcode_shlibpath_var_GCJ=no
16758       ;;
16759
16760     newsos6)
16761       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16762       hardcode_direct_GCJ=yes
16763       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16764       hardcode_libdir_separator_GCJ=:
16765       hardcode_shlibpath_var_GCJ=no
16766       ;;
16767
16768     openbsd*)
16769       hardcode_direct_GCJ=yes
16770       hardcode_shlibpath_var_GCJ=no
16771       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16772         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16773         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16774         export_dynamic_flag_spec_GCJ='${wl}-E'
16775       else
16776        case $host_os in
16777          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16778            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16779            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16780            ;;
16781          *)
16782            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16783            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16784            ;;
16785        esac
16786       fi
16787       ;;
16788
16789     os2*)
16790       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16791       hardcode_minus_L_GCJ=yes
16792       allow_undefined_flag_GCJ=unsupported
16793       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'
16794       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16795       ;;
16796
16797     osf3*)
16798       if test "$GCC" = yes; then
16799         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16800         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'
16801       else
16802         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16803         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'
16804       fi
16805       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16806       hardcode_libdir_separator_GCJ=:
16807       ;;
16808
16809     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16810       if test "$GCC" = yes; then
16811         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16812         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'
16813         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16814       else
16815         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16816         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'
16817         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~
16818         $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'
16819
16820         # Both c and cxx compiler support -rpath directly
16821         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16822       fi
16823       hardcode_libdir_separator_GCJ=:
16824       ;;
16825
16826     sco3.2v5*)
16827       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16828       hardcode_shlibpath_var_GCJ=no
16829       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16830       runpath_var=LD_RUN_PATH
16831       hardcode_runpath_var=yes
16832       ;;
16833
16834     solaris*)
16835       no_undefined_flag_GCJ=' -z text'
16836       if test "$GCC" = yes; then
16837         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16838         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16839           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16840       else
16841         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16842         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16843         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16844       fi
16845       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16846       hardcode_shlibpath_var_GCJ=no
16847       case $host_os in
16848       solaris2.[0-5] | solaris2.[0-5].*) ;;
16849       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16850         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16851       esac
16852       link_all_deplibs_GCJ=yes
16853       ;;
16854
16855     sunos4*)
16856       if test "x$host_vendor" = xsequent; then
16857         # Use $CC to link under sequent, because it throws in some extra .o
16858         # files that make .init and .fini sections work.
16859         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16860       else
16861         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16862       fi
16863       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16864       hardcode_direct_GCJ=yes
16865       hardcode_minus_L_GCJ=yes
16866       hardcode_shlibpath_var_GCJ=no
16867       ;;
16868
16869     sysv4)
16870       case $host_vendor in
16871         sni)
16872           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16873           hardcode_direct_GCJ=yes # is this really true???
16874         ;;
16875         siemens)
16876           ## LD is ld it makes a PLAMLIB
16877           ## CC just makes a GrossModule.
16878           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16879           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16880           hardcode_direct_GCJ=no
16881         ;;
16882         motorola)
16883           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16884           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16885         ;;
16886       esac
16887       runpath_var='LD_RUN_PATH'
16888       hardcode_shlibpath_var_GCJ=no
16889       ;;
16890
16891     sysv4.3*)
16892       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16893       hardcode_shlibpath_var_GCJ=no
16894       export_dynamic_flag_spec_GCJ='-Bexport'
16895       ;;
16896
16897     sysv4*MP*)
16898       if test -d /usr/nec; then
16899         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16900         hardcode_shlibpath_var_GCJ=no
16901         runpath_var=LD_RUN_PATH
16902         hardcode_runpath_var=yes
16903         ld_shlibs_GCJ=yes
16904       fi
16905       ;;
16906
16907     sysv4.2uw2*)
16908       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16909       hardcode_direct_GCJ=yes
16910       hardcode_minus_L_GCJ=no
16911       hardcode_shlibpath_var_GCJ=no
16912       hardcode_runpath_var=yes
16913       runpath_var=LD_RUN_PATH
16914       ;;
16915
16916    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16917       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16918       if test "$GCC" = yes; then
16919         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16920       else
16921         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16922       fi
16923       runpath_var='LD_RUN_PATH'
16924       hardcode_shlibpath_var_GCJ=no
16925       ;;
16926
16927     sysv5*)
16928       no_undefined_flag_GCJ=' -z text'
16929       # $CC -shared without GNU ld will not create a library from C++
16930       # object files and a static libstdc++, better avoid it by now
16931       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16932       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16933                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16934       hardcode_libdir_flag_spec_GCJ=
16935       hardcode_shlibpath_var_GCJ=no
16936       runpath_var='LD_RUN_PATH'
16937       ;;
16938
16939     uts4*)
16940       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16941       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16942       hardcode_shlibpath_var_GCJ=no
16943       ;;
16944
16945     *)
16946       ld_shlibs_GCJ=no
16947       ;;
16948     esac
16949   fi
16950
16951 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16952 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16953 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16954
16955 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16956 if test "$GCC" = yes; then
16957   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16958 fi
16959
16960 #
16961 # Do we need to explicitly link libc?
16962 #
16963 case "x$archive_cmds_need_lc_GCJ" in
16964 x|xyes)
16965   # Assume -lc should be added
16966   archive_cmds_need_lc_GCJ=yes
16967
16968   if test "$enable_shared" = yes && test "$GCC" = yes; then
16969     case $archive_cmds_GCJ in
16970     *'~'*)
16971       # FIXME: we may have to deal with multi-command sequences.
16972       ;;
16973     '$CC '*)
16974       # Test whether the compiler implicitly links with -lc since on some
16975       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16976       # to ld, don't add -lc before -lgcc.
16977       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16978 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16979       $rm conftest*
16980       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16981
16982       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16983   (eval $ac_compile) 2>&5
16984   ac_status=$?
16985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986   (exit $ac_status); } 2>conftest.err; then
16987         soname=conftest
16988         lib=conftest
16989         libobjs=conftest.$ac_objext
16990         deplibs=
16991         wl=$lt_prog_compiler_wl_GCJ
16992         compiler_flags=-v
16993         linker_flags=-v
16994         verstring=
16995         output_objdir=.
16996         libname=conftest
16997         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16998         allow_undefined_flag_GCJ=
16999         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17000   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17001   ac_status=$?
17002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003   (exit $ac_status); }
17004         then
17005           archive_cmds_need_lc_GCJ=no
17006         else
17007           archive_cmds_need_lc_GCJ=yes
17008         fi
17009         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17010       else
17011         cat conftest.err 1>&5
17012       fi
17013       $rm conftest*
17014       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17015 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17016       ;;
17017     esac
17018   fi
17019   ;;
17020 esac
17021
17022 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17023 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17024 library_names_spec=
17025 libname_spec='lib$name'
17026 soname_spec=
17027 shrext_cmds=".so"
17028 postinstall_cmds=
17029 postuninstall_cmds=
17030 finish_cmds=
17031 finish_eval=
17032 shlibpath_var=
17033 shlibpath_overrides_runpath=unknown
17034 version_type=none
17035 dynamic_linker="$host_os ld.so"
17036 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17037 if test "$GCC" = yes; then
17038   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17039   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17040     # if the path contains ";" then we assume it to be the separator
17041     # otherwise default to the standard path separator (i.e. ":") - it is
17042     # assumed that no part of a normal pathname contains ";" but that should
17043     # okay in the real world where ";" in dirpaths is itself problematic.
17044     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17045   else
17046     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17047   fi
17048 else
17049   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17050 fi
17051 need_lib_prefix=unknown
17052 hardcode_into_libs=no
17053
17054 # when you set need_version to no, make sure it does not cause -set_version
17055 # flags to be left without arguments
17056 need_version=unknown
17057
17058 case $host_os in
17059 aix3*)
17060   version_type=linux
17061   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17062   shlibpath_var=LIBPATH
17063
17064   # AIX 3 has no versioning support, so we append a major version to the name.
17065   soname_spec='${libname}${release}${shared_ext}$major'
17066   ;;
17067
17068 aix4* | aix5*)
17069   version_type=linux
17070   need_lib_prefix=no
17071   need_version=no
17072   hardcode_into_libs=yes
17073   if test "$host_cpu" = ia64; then
17074     # AIX 5 supports IA64
17075     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17076     shlibpath_var=LD_LIBRARY_PATH
17077   else
17078     # With GCC up to 2.95.x, collect2 would create an import file
17079     # for dependence libraries.  The import file would start with
17080     # the line `#! .'.  This would cause the generated library to
17081     # depend on `.', always an invalid library.  This was fixed in
17082     # development snapshots of GCC prior to 3.0.
17083     case $host_os in
17084       aix4 | aix4.[01] | aix4.[01].*)
17085       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17086            echo ' yes '
17087            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17088         :
17089       else
17090         can_build_shared=no
17091       fi
17092       ;;
17093     esac
17094     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17095     # soname into executable. Probably we can add versioning support to
17096     # collect2, so additional links can be useful in future.
17097     if test "$aix_use_runtimelinking" = yes; then
17098       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17099       # instead of lib<name>.a to let people know that these are not
17100       # typical AIX shared libraries.
17101       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17102     else
17103       # We preserve .a as extension for shared libraries through AIX4.2
17104       # and later when we are not doing run time linking.
17105       library_names_spec='${libname}${release}.a $libname.a'
17106       soname_spec='${libname}${release}${shared_ext}$major'
17107     fi
17108     shlibpath_var=LIBPATH
17109   fi
17110   ;;
17111
17112 amigaos*)
17113   library_names_spec='$libname.ixlibrary $libname.a'
17114   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17115   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'
17116   ;;
17117
17118 beos*)
17119   library_names_spec='${libname}${shared_ext}'
17120   dynamic_linker="$host_os ld.so"
17121   shlibpath_var=LIBRARY_PATH
17122   ;;
17123
17124 bsdi4*)
17125   version_type=linux
17126   need_version=no
17127   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17128   soname_spec='${libname}${release}${shared_ext}$major'
17129   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17130   shlibpath_var=LD_LIBRARY_PATH
17131   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17132   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17133   # the default ld.so.conf also contains /usr/contrib/lib and
17134   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17135   # libtool to hard-code these into programs
17136   ;;
17137
17138 cygwin* | mingw* | pw32*)
17139   version_type=windows
17140   shrext_cmds=".dll"
17141   need_version=no
17142   need_lib_prefix=no
17143
17144   case $GCC,$host_os in
17145   yes,cygwin* | yes,mingw* | yes,pw32*)
17146     library_names_spec='$libname.dll.a'
17147     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17148     postinstall_cmds='base_file=`basename \${file}`~
17149       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17150       dldir=$destdir/`dirname \$dlpath`~
17151       test -d \$dldir || mkdir -p \$dldir~
17152       $install_prog $dir/$dlname \$dldir/$dlname'
17153     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17154       dlpath=$dir/\$dldll~
17155        $rm \$dlpath'
17156     shlibpath_overrides_runpath=yes
17157
17158     case $host_os in
17159     cygwin*)
17160       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17161       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17162       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17163       ;;
17164     mingw*)
17165       # MinGW DLLs use traditional 'lib' prefix
17166       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17167       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17168       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17169         # It is most probably a Windows format PATH printed by
17170         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17171         # path with ; separators, and with drive letters. We can handle the
17172         # drive letters (cygwin fileutils understands them), so leave them,
17173         # especially as we might pass files found there to a mingw objdump,
17174         # which wouldn't understand a cygwinified path. Ahh.
17175         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17176       else
17177         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17178       fi
17179       ;;
17180     pw32*)
17181       # pw32 DLLs use 'pw' prefix rather than 'lib'
17182       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17183       ;;
17184     esac
17185     ;;
17186
17187   *)
17188     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17189     ;;
17190   esac
17191   dynamic_linker='Win32 ld.exe'
17192   # FIXME: first we should search . and the directory the executable is in
17193   shlibpath_var=PATH
17194   ;;
17195
17196 darwin* | rhapsody*)
17197   dynamic_linker="$host_os dyld"
17198   version_type=darwin
17199   need_lib_prefix=no
17200   need_version=no
17201   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17202   soname_spec='${libname}${release}${major}$shared_ext'
17203   shlibpath_overrides_runpath=yes
17204   shlibpath_var=DYLD_LIBRARY_PATH
17205   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17206   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17207   if test "$GCC" = yes; then
17208     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"`
17209   else
17210     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17211   fi
17212   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17213   ;;
17214
17215 dgux*)
17216   version_type=linux
17217   need_lib_prefix=no
17218   need_version=no
17219   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17220   soname_spec='${libname}${release}${shared_ext}$major'
17221   shlibpath_var=LD_LIBRARY_PATH
17222   ;;
17223
17224 freebsd1*)
17225   dynamic_linker=no
17226   ;;
17227
17228 kfreebsd*-gnu)
17229   version_type=linux
17230   need_lib_prefix=no
17231   need_version=no
17232   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17233   soname_spec='${libname}${release}${shared_ext}$major'
17234   shlibpath_var=LD_LIBRARY_PATH
17235   shlibpath_overrides_runpath=no
17236   hardcode_into_libs=yes
17237   dynamic_linker='GNU ld.so'
17238   ;;
17239
17240 freebsd*)
17241   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17242   version_type=freebsd-$objformat
17243   case $version_type in
17244     freebsd-elf*)
17245       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17246       need_version=no
17247       need_lib_prefix=no
17248       ;;
17249     freebsd-*)
17250       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17251       need_version=yes
17252       ;;
17253   esac
17254   shlibpath_var=LD_LIBRARY_PATH
17255   case $host_os in
17256   freebsd2*)
17257     shlibpath_overrides_runpath=yes
17258     ;;
17259   freebsd3.01* | freebsdelf3.01*)
17260     shlibpath_overrides_runpath=yes
17261     hardcode_into_libs=yes
17262     ;;
17263   *) # from 3.2 on
17264     shlibpath_overrides_runpath=no
17265     hardcode_into_libs=yes
17266     ;;
17267   esac
17268   ;;
17269
17270 gnu*)
17271   version_type=linux
17272   need_lib_prefix=no
17273   need_version=no
17274   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17275   soname_spec='${libname}${release}${shared_ext}$major'
17276   shlibpath_var=LD_LIBRARY_PATH
17277   hardcode_into_libs=yes
17278   ;;
17279
17280 hpux9* | hpux10* | hpux11*)
17281   # Give a soname corresponding to the major version so that dld.sl refuses to
17282   # link against other versions.
17283   version_type=sunos
17284   need_lib_prefix=no
17285   need_version=no
17286   case "$host_cpu" in
17287   ia64*)
17288     shrext_cmds='.so'
17289     hardcode_into_libs=yes
17290     dynamic_linker="$host_os dld.so"
17291     shlibpath_var=LD_LIBRARY_PATH
17292     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17293     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17294     soname_spec='${libname}${release}${shared_ext}$major'
17295     if test "X$HPUX_IA64_MODE" = X32; then
17296       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17297     else
17298       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17299     fi
17300     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17301     ;;
17302    hppa*64*)
17303      shrext_cmds='.sl'
17304      hardcode_into_libs=yes
17305      dynamic_linker="$host_os dld.sl"
17306      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17307      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17308      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17309      soname_spec='${libname}${release}${shared_ext}$major'
17310      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17311      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17312      ;;
17313    *)
17314     shrext_cmds='.sl'
17315     dynamic_linker="$host_os dld.sl"
17316     shlibpath_var=SHLIB_PATH
17317     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17318     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17319     soname_spec='${libname}${release}${shared_ext}$major'
17320     ;;
17321   esac
17322   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17323   postinstall_cmds='chmod 555 $lib'
17324   ;;
17325
17326 irix5* | irix6* | nonstopux*)
17327   case $host_os in
17328     nonstopux*) version_type=nonstopux ;;
17329     *)
17330         if test "$lt_cv_prog_gnu_ld" = yes; then
17331                 version_type=linux
17332         else
17333                 version_type=irix
17334         fi ;;
17335   esac
17336   need_lib_prefix=no
17337   need_version=no
17338   soname_spec='${libname}${release}${shared_ext}$major'
17339   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17340   case $host_os in
17341   irix5* | nonstopux*)
17342     libsuff= shlibsuff=
17343     ;;
17344   *)
17345     case $LD in # libtool.m4 will add one of these switches to LD
17346     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17347       libsuff= shlibsuff= libmagic=32-bit;;
17348     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17349       libsuff=32 shlibsuff=N32 libmagic=N32;;
17350     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17351       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17352     *) libsuff= shlibsuff= libmagic=never-match;;
17353     esac
17354     ;;
17355   esac
17356   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17357   shlibpath_overrides_runpath=no
17358   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17359   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17360   hardcode_into_libs=yes
17361   ;;
17362
17363 # No shared lib support for Linux oldld, aout, or coff.
17364 linux*oldld* | linux*aout* | linux*coff*)
17365   dynamic_linker=no
17366   ;;
17367
17368 # This must be Linux ELF.
17369 linux*)
17370   version_type=linux
17371   need_lib_prefix=no
17372   need_version=no
17373   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17374   soname_spec='${libname}${release}${shared_ext}$major'
17375   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17376   shlibpath_var=LD_LIBRARY_PATH
17377   shlibpath_overrides_runpath=no
17378   # This implies no fast_install, which is unacceptable.
17379   # Some rework will be needed to allow for fast_install
17380   # before this can be enabled.
17381   hardcode_into_libs=yes
17382
17383   # Append ld.so.conf contents to the search path
17384   if test -f /etc/ld.so.conf; then
17385     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17386     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17387   fi
17388
17389   # We used to test for /lib/ld.so.1 and disable shared libraries on
17390   # powerpc, because MkLinux only supported shared libraries with the
17391   # GNU dynamic linker.  Since this was broken with cross compilers,
17392   # most powerpc-linux boxes support dynamic linking these days and
17393   # people can always --disable-shared, the test was removed, and we
17394   # assume the GNU/Linux dynamic linker is in use.
17395   dynamic_linker='GNU/Linux ld.so'
17396   ;;
17397
17398 netbsdelf*-gnu)
17399   version_type=linux
17400   need_lib_prefix=no
17401   need_version=no
17402   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17403   soname_spec='${libname}${release}${shared_ext}$major'
17404   shlibpath_var=LD_LIBRARY_PATH
17405   shlibpath_overrides_runpath=no
17406   hardcode_into_libs=yes
17407   dynamic_linker='NetBSD ld.elf_so'
17408   ;;
17409
17410 knetbsd*-gnu)
17411   version_type=linux
17412   need_lib_prefix=no
17413   need_version=no
17414   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17415   soname_spec='${libname}${release}${shared_ext}$major'
17416   shlibpath_var=LD_LIBRARY_PATH
17417   shlibpath_overrides_runpath=no
17418   hardcode_into_libs=yes
17419   dynamic_linker='GNU ld.so'
17420   ;;
17421
17422 netbsd*)
17423   version_type=sunos
17424   need_lib_prefix=no
17425   need_version=no
17426   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17427     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17428     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17429     dynamic_linker='NetBSD (a.out) ld.so'
17430   else
17431     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17432     soname_spec='${libname}${release}${shared_ext}$major'
17433     dynamic_linker='NetBSD ld.elf_so'
17434   fi
17435   shlibpath_var=LD_LIBRARY_PATH
17436   shlibpath_overrides_runpath=yes
17437   hardcode_into_libs=yes
17438   ;;
17439
17440 newsos6)
17441   version_type=linux
17442   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17443   shlibpath_var=LD_LIBRARY_PATH
17444   shlibpath_overrides_runpath=yes
17445   ;;
17446
17447 nto-qnx*)
17448   version_type=linux
17449   need_lib_prefix=no
17450   need_version=no
17451   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17452   soname_spec='${libname}${release}${shared_ext}$major'
17453   shlibpath_var=LD_LIBRARY_PATH
17454   shlibpath_overrides_runpath=yes
17455   ;;
17456
17457 openbsd*)
17458   version_type=sunos
17459   need_lib_prefix=no
17460   need_version=yes
17461   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17462   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17463   shlibpath_var=LD_LIBRARY_PATH
17464   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17465     case $host_os in
17466       openbsd2.[89] | openbsd2.[89].*)
17467         shlibpath_overrides_runpath=no
17468         ;;
17469       *)
17470         shlibpath_overrides_runpath=yes
17471         ;;
17472       esac
17473   else
17474     shlibpath_overrides_runpath=yes
17475   fi
17476   ;;
17477
17478 os2*)
17479   libname_spec='$name'
17480   shrext_cmds=".dll"
17481   need_lib_prefix=no
17482   library_names_spec='$libname${shared_ext} $libname.a'
17483   dynamic_linker='OS/2 ld.exe'
17484   shlibpath_var=LIBPATH
17485   ;;
17486
17487 osf3* | osf4* | osf5*)
17488   version_type=osf
17489   need_lib_prefix=no
17490   need_version=no
17491   soname_spec='${libname}${release}${shared_ext}$major'
17492   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17493   shlibpath_var=LD_LIBRARY_PATH
17494   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17495   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17496   ;;
17497
17498 sco3.2v5*)
17499   version_type=osf
17500   soname_spec='${libname}${release}${shared_ext}$major'
17501   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17502   shlibpath_var=LD_LIBRARY_PATH
17503   ;;
17504
17505 solaris*)
17506   version_type=linux
17507   need_lib_prefix=no
17508   need_version=no
17509   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17510   soname_spec='${libname}${release}${shared_ext}$major'
17511   shlibpath_var=LD_LIBRARY_PATH
17512   shlibpath_overrides_runpath=yes
17513   hardcode_into_libs=yes
17514   # ldd complains unless libraries are executable
17515   postinstall_cmds='chmod +x $lib'
17516   ;;
17517
17518 sunos4*)
17519   version_type=sunos
17520   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17521   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17522   shlibpath_var=LD_LIBRARY_PATH
17523   shlibpath_overrides_runpath=yes
17524   if test "$with_gnu_ld" = yes; then
17525     need_lib_prefix=no
17526   fi
17527   need_version=yes
17528   ;;
17529
17530 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17531   version_type=linux
17532   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17533   soname_spec='${libname}${release}${shared_ext}$major'
17534   shlibpath_var=LD_LIBRARY_PATH
17535   case $host_vendor in
17536     sni)
17537       shlibpath_overrides_runpath=no
17538       need_lib_prefix=no
17539       export_dynamic_flag_spec='${wl}-Blargedynsym'
17540       runpath_var=LD_RUN_PATH
17541       ;;
17542     siemens)
17543       need_lib_prefix=no
17544       ;;
17545     motorola)
17546       need_lib_prefix=no
17547       need_version=no
17548       shlibpath_overrides_runpath=no
17549       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17550       ;;
17551   esac
17552   ;;
17553
17554 sysv4*MP*)
17555   if test -d /usr/nec ;then
17556     version_type=linux
17557     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17558     soname_spec='$libname${shared_ext}.$major'
17559     shlibpath_var=LD_LIBRARY_PATH
17560   fi
17561   ;;
17562
17563 uts4*)
17564   version_type=linux
17565   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17566   soname_spec='${libname}${release}${shared_ext}$major'
17567   shlibpath_var=LD_LIBRARY_PATH
17568   ;;
17569
17570 *)
17571   dynamic_linker=no
17572   ;;
17573 esac
17574 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17575 echo "${ECHO_T}$dynamic_linker" >&6
17576 test "$dynamic_linker" = no && can_build_shared=no
17577
17578 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17579 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17580 hardcode_action_GCJ=
17581 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17582    test -n "$runpath_var GCJ" || \
17583    test "X$hardcode_automatic_GCJ"="Xyes" ; then
17584
17585   # We can hardcode non-existant directories.
17586   if test "$hardcode_direct_GCJ" != no &&
17587      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17588      # have to relink, otherwise we might link with an installed library
17589      # when we should be linking with a yet-to-be-installed one
17590      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17591      test "$hardcode_minus_L_GCJ" != no; then
17592     # Linking always hardcodes the temporary library directory.
17593     hardcode_action_GCJ=relink
17594   else
17595     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17596     hardcode_action_GCJ=immediate
17597   fi
17598 else
17599   # We cannot hardcode anything, or else we can only hardcode existing
17600   # directories.
17601   hardcode_action_GCJ=unsupported
17602 fi
17603 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17604 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17605
17606 if test "$hardcode_action_GCJ" = relink; then
17607   # Fast installation is not supported
17608   enable_fast_install=no
17609 elif test "$shlibpath_overrides_runpath" = yes ||
17610      test "$enable_shared" = no; then
17611   # Fast installation is not necessary
17612   enable_fast_install=needless
17613 fi
17614
17615 striplib=
17616 old_striplib=
17617 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17618 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17619 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17620   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17621   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17622   echo "$as_me:$LINENO: result: yes" >&5
17623 echo "${ECHO_T}yes" >&6
17624 else
17625 # FIXME - insert some real tests, host_os isn't really good enough
17626   case $host_os in
17627    darwin*)
17628        if test -n "$STRIP" ; then
17629          striplib="$STRIP -x"
17630          echo "$as_me:$LINENO: result: yes" >&5
17631 echo "${ECHO_T}yes" >&6
17632        else
17633   echo "$as_me:$LINENO: result: no" >&5
17634 echo "${ECHO_T}no" >&6
17635 fi
17636        ;;
17637    *)
17638   echo "$as_me:$LINENO: result: no" >&5
17639 echo "${ECHO_T}no" >&6
17640     ;;
17641   esac
17642 fi
17643
17644 if test "x$enable_dlopen" != xyes; then
17645   enable_dlopen=unknown
17646   enable_dlopen_self=unknown
17647   enable_dlopen_self_static=unknown
17648 else
17649   lt_cv_dlopen=no
17650   lt_cv_dlopen_libs=
17651
17652   case $host_os in
17653   beos*)
17654     lt_cv_dlopen="load_add_on"
17655     lt_cv_dlopen_libs=
17656     lt_cv_dlopen_self=yes
17657     ;;
17658
17659   mingw* | pw32*)
17660     lt_cv_dlopen="LoadLibrary"
17661     lt_cv_dlopen_libs=
17662    ;;
17663
17664   cygwin*)
17665     lt_cv_dlopen="dlopen"
17666     lt_cv_dlopen_libs=
17667    ;;
17668
17669   darwin*)
17670   # if libdl is installed we need to link against it
17671     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17672 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17673 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17674   echo $ECHO_N "(cached) $ECHO_C" >&6
17675 else
17676   ac_check_lib_save_LIBS=$LIBS
17677 LIBS="-ldl  $LIBS"
17678 cat >conftest.$ac_ext <<_ACEOF
17679 /* confdefs.h.  */
17680 _ACEOF
17681 cat confdefs.h >>conftest.$ac_ext
17682 cat >>conftest.$ac_ext <<_ACEOF
17683 /* end confdefs.h.  */
17684
17685 /* Override any gcc2 internal prototype to avoid an error.  */
17686 #ifdef __cplusplus
17687 extern "C"
17688 #endif
17689 /* We use char because int might match the return type of a gcc2
17690    builtin and then its argument prototype would still apply.  */
17691 char dlopen ();
17692 int
17693 main ()
17694 {
17695 dlopen ();
17696   ;
17697   return 0;
17698 }
17699 _ACEOF
17700 rm -f conftest.$ac_objext conftest$ac_exeext
17701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17702   (eval $ac_link) 2>conftest.er1
17703   ac_status=$?
17704   grep -v '^ *+' conftest.er1 >conftest.err
17705   rm -f conftest.er1
17706   cat conftest.err >&5
17707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708   (exit $ac_status); } &&
17709          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17711   (eval $ac_try) 2>&5
17712   ac_status=$?
17713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714   (exit $ac_status); }; } &&
17715          { ac_try='test -s conftest$ac_exeext'
17716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17717   (eval $ac_try) 2>&5
17718   ac_status=$?
17719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720   (exit $ac_status); }; }; then
17721   ac_cv_lib_dl_dlopen=yes
17722 else
17723   echo "$as_me: failed program was:" >&5
17724 sed 's/^/| /' conftest.$ac_ext >&5
17725
17726 ac_cv_lib_dl_dlopen=no
17727 fi
17728 rm -f conftest.err conftest.$ac_objext \
17729       conftest$ac_exeext conftest.$ac_ext
17730 LIBS=$ac_check_lib_save_LIBS
17731 fi
17732 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17733 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17734 if test $ac_cv_lib_dl_dlopen = yes; then
17735   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17736 else
17737
17738     lt_cv_dlopen="dyld"
17739     lt_cv_dlopen_libs=
17740     lt_cv_dlopen_self=yes
17741
17742 fi
17743
17744    ;;
17745
17746   *)
17747     echo "$as_me:$LINENO: checking for shl_load" >&5
17748 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17749 if test "${ac_cv_func_shl_load+set}" = set; then
17750   echo $ECHO_N "(cached) $ECHO_C" >&6
17751 else
17752   cat >conftest.$ac_ext <<_ACEOF
17753 /* confdefs.h.  */
17754 _ACEOF
17755 cat confdefs.h >>conftest.$ac_ext
17756 cat >>conftest.$ac_ext <<_ACEOF
17757 /* end confdefs.h.  */
17758 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17759    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17760 #define shl_load innocuous_shl_load
17761
17762 /* System header to define __stub macros and hopefully few prototypes,
17763     which can conflict with char shl_load (); below.
17764     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17765     <limits.h> exists even on freestanding compilers.  */
17766
17767 #ifdef __STDC__
17768 # include <limits.h>
17769 #else
17770 # include <assert.h>
17771 #endif
17772
17773 #undef shl_load
17774
17775 /* Override any gcc2 internal prototype to avoid an error.  */
17776 #ifdef __cplusplus
17777 extern "C"
17778 {
17779 #endif
17780 /* We use char because int might match the return type of a gcc2
17781    builtin and then its argument prototype would still apply.  */
17782 char shl_load ();
17783 /* The GNU C library defines this for functions which it implements
17784     to always fail with ENOSYS.  Some functions are actually named
17785     something starting with __ and the normal name is an alias.  */
17786 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17787 choke me
17788 #else
17789 char (*f) () = shl_load;
17790 #endif
17791 #ifdef __cplusplus
17792 }
17793 #endif
17794
17795 int
17796 main ()
17797 {
17798 return f != shl_load;
17799   ;
17800   return 0;
17801 }
17802 _ACEOF
17803 rm -f conftest.$ac_objext conftest$ac_exeext
17804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17805   (eval $ac_link) 2>conftest.er1
17806   ac_status=$?
17807   grep -v '^ *+' conftest.er1 >conftest.err
17808   rm -f conftest.er1
17809   cat conftest.err >&5
17810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17811   (exit $ac_status); } &&
17812          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17814   (eval $ac_try) 2>&5
17815   ac_status=$?
17816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817   (exit $ac_status); }; } &&
17818          { ac_try='test -s conftest$ac_exeext'
17819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17820   (eval $ac_try) 2>&5
17821   ac_status=$?
17822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823   (exit $ac_status); }; }; then
17824   ac_cv_func_shl_load=yes
17825 else
17826   echo "$as_me: failed program was:" >&5
17827 sed 's/^/| /' conftest.$ac_ext >&5
17828
17829 ac_cv_func_shl_load=no
17830 fi
17831 rm -f conftest.err conftest.$ac_objext \
17832       conftest$ac_exeext conftest.$ac_ext
17833 fi
17834 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17835 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17836 if test $ac_cv_func_shl_load = yes; then
17837   lt_cv_dlopen="shl_load"
17838 else
17839   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17840 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17841 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17842   echo $ECHO_N "(cached) $ECHO_C" >&6
17843 else
17844   ac_check_lib_save_LIBS=$LIBS
17845 LIBS="-ldld  $LIBS"
17846 cat >conftest.$ac_ext <<_ACEOF
17847 /* confdefs.h.  */
17848 _ACEOF
17849 cat confdefs.h >>conftest.$ac_ext
17850 cat >>conftest.$ac_ext <<_ACEOF
17851 /* end confdefs.h.  */
17852
17853 /* Override any gcc2 internal prototype to avoid an error.  */
17854 #ifdef __cplusplus
17855 extern "C"
17856 #endif
17857 /* We use char because int might match the return type of a gcc2
17858    builtin and then its argument prototype would still apply.  */
17859 char shl_load ();
17860 int
17861 main ()
17862 {
17863 shl_load ();
17864   ;
17865   return 0;
17866 }
17867 _ACEOF
17868 rm -f conftest.$ac_objext conftest$ac_exeext
17869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17870   (eval $ac_link) 2>conftest.er1
17871   ac_status=$?
17872   grep -v '^ *+' conftest.er1 >conftest.err
17873   rm -f conftest.er1
17874   cat conftest.err >&5
17875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876   (exit $ac_status); } &&
17877          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17879   (eval $ac_try) 2>&5
17880   ac_status=$?
17881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17882   (exit $ac_status); }; } &&
17883          { ac_try='test -s conftest$ac_exeext'
17884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17885   (eval $ac_try) 2>&5
17886   ac_status=$?
17887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17888   (exit $ac_status); }; }; then
17889   ac_cv_lib_dld_shl_load=yes
17890 else
17891   echo "$as_me: failed program was:" >&5
17892 sed 's/^/| /' conftest.$ac_ext >&5
17893
17894 ac_cv_lib_dld_shl_load=no
17895 fi
17896 rm -f conftest.err conftest.$ac_objext \
17897       conftest$ac_exeext conftest.$ac_ext
17898 LIBS=$ac_check_lib_save_LIBS
17899 fi
17900 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17901 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17902 if test $ac_cv_lib_dld_shl_load = yes; then
17903   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17904 else
17905   echo "$as_me:$LINENO: checking for dlopen" >&5
17906 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17907 if test "${ac_cv_func_dlopen+set}" = set; then
17908   echo $ECHO_N "(cached) $ECHO_C" >&6
17909 else
17910   cat >conftest.$ac_ext <<_ACEOF
17911 /* confdefs.h.  */
17912 _ACEOF
17913 cat confdefs.h >>conftest.$ac_ext
17914 cat >>conftest.$ac_ext <<_ACEOF
17915 /* end confdefs.h.  */
17916 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17917    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17918 #define dlopen innocuous_dlopen
17919
17920 /* System header to define __stub macros and hopefully few prototypes,
17921     which can conflict with char dlopen (); below.
17922     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17923     <limits.h> exists even on freestanding compilers.  */
17924
17925 #ifdef __STDC__
17926 # include <limits.h>
17927 #else
17928 # include <assert.h>
17929 #endif
17930
17931 #undef dlopen
17932
17933 /* Override any gcc2 internal prototype to avoid an error.  */
17934 #ifdef __cplusplus
17935 extern "C"
17936 {
17937 #endif
17938 /* We use char because int might match the return type of a gcc2
17939    builtin and then its argument prototype would still apply.  */
17940 char dlopen ();
17941 /* The GNU C library defines this for functions which it implements
17942     to always fail with ENOSYS.  Some functions are actually named
17943     something starting with __ and the normal name is an alias.  */
17944 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17945 choke me
17946 #else
17947 char (*f) () = dlopen;
17948 #endif
17949 #ifdef __cplusplus
17950 }
17951 #endif
17952
17953 int
17954 main ()
17955 {
17956 return f != dlopen;
17957   ;
17958   return 0;
17959 }
17960 _ACEOF
17961 rm -f conftest.$ac_objext conftest$ac_exeext
17962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17963   (eval $ac_link) 2>conftest.er1
17964   ac_status=$?
17965   grep -v '^ *+' conftest.er1 >conftest.err
17966   rm -f conftest.er1
17967   cat conftest.err >&5
17968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969   (exit $ac_status); } &&
17970          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17972   (eval $ac_try) 2>&5
17973   ac_status=$?
17974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17975   (exit $ac_status); }; } &&
17976          { ac_try='test -s conftest$ac_exeext'
17977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17978   (eval $ac_try) 2>&5
17979   ac_status=$?
17980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17981   (exit $ac_status); }; }; then
17982   ac_cv_func_dlopen=yes
17983 else
17984   echo "$as_me: failed program was:" >&5
17985 sed 's/^/| /' conftest.$ac_ext >&5
17986
17987 ac_cv_func_dlopen=no
17988 fi
17989 rm -f conftest.err conftest.$ac_objext \
17990       conftest$ac_exeext conftest.$ac_ext
17991 fi
17992 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17993 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17994 if test $ac_cv_func_dlopen = yes; then
17995   lt_cv_dlopen="dlopen"
17996 else
17997   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17998 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17999 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18000   echo $ECHO_N "(cached) $ECHO_C" >&6
18001 else
18002   ac_check_lib_save_LIBS=$LIBS
18003 LIBS="-ldl  $LIBS"
18004 cat >conftest.$ac_ext <<_ACEOF
18005 /* confdefs.h.  */
18006 _ACEOF
18007 cat confdefs.h >>conftest.$ac_ext
18008 cat >>conftest.$ac_ext <<_ACEOF
18009 /* end confdefs.h.  */
18010
18011 /* Override any gcc2 internal prototype to avoid an error.  */
18012 #ifdef __cplusplus
18013 extern "C"
18014 #endif
18015 /* We use char because int might match the return type of a gcc2
18016    builtin and then its argument prototype would still apply.  */
18017 char dlopen ();
18018 int
18019 main ()
18020 {
18021 dlopen ();
18022   ;
18023   return 0;
18024 }
18025 _ACEOF
18026 rm -f conftest.$ac_objext conftest$ac_exeext
18027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18028   (eval $ac_link) 2>conftest.er1
18029   ac_status=$?
18030   grep -v '^ *+' conftest.er1 >conftest.err
18031   rm -f conftest.er1
18032   cat conftest.err >&5
18033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034   (exit $ac_status); } &&
18035          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18037   (eval $ac_try) 2>&5
18038   ac_status=$?
18039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18040   (exit $ac_status); }; } &&
18041          { ac_try='test -s conftest$ac_exeext'
18042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18043   (eval $ac_try) 2>&5
18044   ac_status=$?
18045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046   (exit $ac_status); }; }; then
18047   ac_cv_lib_dl_dlopen=yes
18048 else
18049   echo "$as_me: failed program was:" >&5
18050 sed 's/^/| /' conftest.$ac_ext >&5
18051
18052 ac_cv_lib_dl_dlopen=no
18053 fi
18054 rm -f conftest.err conftest.$ac_objext \
18055       conftest$ac_exeext conftest.$ac_ext
18056 LIBS=$ac_check_lib_save_LIBS
18057 fi
18058 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18059 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18060 if test $ac_cv_lib_dl_dlopen = yes; then
18061   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18062 else
18063   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18064 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18065 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18066   echo $ECHO_N "(cached) $ECHO_C" >&6
18067 else
18068   ac_check_lib_save_LIBS=$LIBS
18069 LIBS="-lsvld  $LIBS"
18070 cat >conftest.$ac_ext <<_ACEOF
18071 /* confdefs.h.  */
18072 _ACEOF
18073 cat confdefs.h >>conftest.$ac_ext
18074 cat >>conftest.$ac_ext <<_ACEOF
18075 /* end confdefs.h.  */
18076
18077 /* Override any gcc2 internal prototype to avoid an error.  */
18078 #ifdef __cplusplus
18079 extern "C"
18080 #endif
18081 /* We use char because int might match the return type of a gcc2
18082    builtin and then its argument prototype would still apply.  */
18083 char dlopen ();
18084 int
18085 main ()
18086 {
18087 dlopen ();
18088   ;
18089   return 0;
18090 }
18091 _ACEOF
18092 rm -f conftest.$ac_objext conftest$ac_exeext
18093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18094   (eval $ac_link) 2>conftest.er1
18095   ac_status=$?
18096   grep -v '^ *+' conftest.er1 >conftest.err
18097   rm -f conftest.er1
18098   cat conftest.err >&5
18099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100   (exit $ac_status); } &&
18101          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18103   (eval $ac_try) 2>&5
18104   ac_status=$?
18105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106   (exit $ac_status); }; } &&
18107          { ac_try='test -s conftest$ac_exeext'
18108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18109   (eval $ac_try) 2>&5
18110   ac_status=$?
18111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112   (exit $ac_status); }; }; then
18113   ac_cv_lib_svld_dlopen=yes
18114 else
18115   echo "$as_me: failed program was:" >&5
18116 sed 's/^/| /' conftest.$ac_ext >&5
18117
18118 ac_cv_lib_svld_dlopen=no
18119 fi
18120 rm -f conftest.err conftest.$ac_objext \
18121       conftest$ac_exeext conftest.$ac_ext
18122 LIBS=$ac_check_lib_save_LIBS
18123 fi
18124 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18125 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18126 if test $ac_cv_lib_svld_dlopen = yes; then
18127   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18128 else
18129   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18130 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18131 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18132   echo $ECHO_N "(cached) $ECHO_C" >&6
18133 else
18134   ac_check_lib_save_LIBS=$LIBS
18135 LIBS="-ldld  $LIBS"
18136 cat >conftest.$ac_ext <<_ACEOF
18137 /* confdefs.h.  */
18138 _ACEOF
18139 cat confdefs.h >>conftest.$ac_ext
18140 cat >>conftest.$ac_ext <<_ACEOF
18141 /* end confdefs.h.  */
18142
18143 /* Override any gcc2 internal prototype to avoid an error.  */
18144 #ifdef __cplusplus
18145 extern "C"
18146 #endif
18147 /* We use char because int might match the return type of a gcc2
18148    builtin and then its argument prototype would still apply.  */
18149 char dld_link ();
18150 int
18151 main ()
18152 {
18153 dld_link ();
18154   ;
18155   return 0;
18156 }
18157 _ACEOF
18158 rm -f conftest.$ac_objext conftest$ac_exeext
18159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18160   (eval $ac_link) 2>conftest.er1
18161   ac_status=$?
18162   grep -v '^ *+' conftest.er1 >conftest.err
18163   rm -f conftest.er1
18164   cat conftest.err >&5
18165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18166   (exit $ac_status); } &&
18167          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18169   (eval $ac_try) 2>&5
18170   ac_status=$?
18171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172   (exit $ac_status); }; } &&
18173          { ac_try='test -s conftest$ac_exeext'
18174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18175   (eval $ac_try) 2>&5
18176   ac_status=$?
18177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178   (exit $ac_status); }; }; then
18179   ac_cv_lib_dld_dld_link=yes
18180 else
18181   echo "$as_me: failed program was:" >&5
18182 sed 's/^/| /' conftest.$ac_ext >&5
18183
18184 ac_cv_lib_dld_dld_link=no
18185 fi
18186 rm -f conftest.err conftest.$ac_objext \
18187       conftest$ac_exeext conftest.$ac_ext
18188 LIBS=$ac_check_lib_save_LIBS
18189 fi
18190 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18191 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18192 if test $ac_cv_lib_dld_dld_link = yes; then
18193   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18194 fi
18195
18196
18197 fi
18198
18199
18200 fi
18201
18202
18203 fi
18204
18205
18206 fi
18207
18208
18209 fi
18210
18211     ;;
18212   esac
18213
18214   if test "x$lt_cv_dlopen" != xno; then
18215     enable_dlopen=yes
18216   else
18217     enable_dlopen=no
18218   fi
18219
18220   case $lt_cv_dlopen in
18221   dlopen)
18222     save_CPPFLAGS="$CPPFLAGS"
18223     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18224
18225     save_LDFLAGS="$LDFLAGS"
18226     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18227
18228     save_LIBS="$LIBS"
18229     LIBS="$lt_cv_dlopen_libs $LIBS"
18230
18231     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18232 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18233 if test "${lt_cv_dlopen_self+set}" = set; then
18234   echo $ECHO_N "(cached) $ECHO_C" >&6
18235 else
18236           if test "$cross_compiling" = yes; then :
18237   lt_cv_dlopen_self=cross
18238 else
18239   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18240   lt_status=$lt_dlunknown
18241   cat > conftest.$ac_ext <<EOF
18242 #line 18242 "configure"
18243 #include "confdefs.h"
18244
18245 #if HAVE_DLFCN_H
18246 #include <dlfcn.h>
18247 #endif
18248
18249 #include <stdio.h>
18250
18251 #ifdef RTLD_GLOBAL
18252 #  define LT_DLGLOBAL           RTLD_GLOBAL
18253 #else
18254 #  ifdef DL_GLOBAL
18255 #    define LT_DLGLOBAL         DL_GLOBAL
18256 #  else
18257 #    define LT_DLGLOBAL         0
18258 #  endif
18259 #endif
18260
18261 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18262    find out it does not work in some platform. */
18263 #ifndef LT_DLLAZY_OR_NOW
18264 #  ifdef RTLD_LAZY
18265 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18266 #  else
18267 #    ifdef DL_LAZY
18268 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18269 #    else
18270 #      ifdef RTLD_NOW
18271 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18272 #      else
18273 #        ifdef DL_NOW
18274 #          define LT_DLLAZY_OR_NOW      DL_NOW
18275 #        else
18276 #          define LT_DLLAZY_OR_NOW      0
18277 #        endif
18278 #      endif
18279 #    endif
18280 #  endif
18281 #endif
18282
18283 #ifdef __cplusplus
18284 extern "C" void exit (int);
18285 #endif
18286
18287 void fnord() { int i=42;}
18288 int main ()
18289 {
18290   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18291   int status = $lt_dlunknown;
18292
18293   if (self)
18294     {
18295       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18296       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18297       /* dlclose (self); */
18298     }
18299
18300     exit (status);
18301 }
18302 EOF
18303   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18304   (eval $ac_link) 2>&5
18305   ac_status=$?
18306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18307   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18308     (./conftest; exit; ) 2>/dev/null
18309     lt_status=$?
18310     case x$lt_status in
18311       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18312       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18313       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18314     esac
18315   else :
18316     # compilation failed
18317     lt_cv_dlopen_self=no
18318   fi
18319 fi
18320 rm -fr conftest*
18321
18322
18323 fi
18324 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18325 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18326
18327     if test "x$lt_cv_dlopen_self" = xyes; then
18328       LDFLAGS="$LDFLAGS $link_static_flag"
18329       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18330 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18331 if test "${lt_cv_dlopen_self_static+set}" = set; then
18332   echo $ECHO_N "(cached) $ECHO_C" >&6
18333 else
18334           if test "$cross_compiling" = yes; then :
18335   lt_cv_dlopen_self_static=cross
18336 else
18337   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18338   lt_status=$lt_dlunknown
18339   cat > conftest.$ac_ext <<EOF
18340 #line 18340 "configure"
18341 #include "confdefs.h"
18342
18343 #if HAVE_DLFCN_H
18344 #include <dlfcn.h>
18345 #endif
18346
18347 #include <stdio.h>
18348
18349 #ifdef RTLD_GLOBAL
18350 #  define LT_DLGLOBAL           RTLD_GLOBAL
18351 #else
18352 #  ifdef DL_GLOBAL
18353 #    define LT_DLGLOBAL         DL_GLOBAL
18354 #  else
18355 #    define LT_DLGLOBAL         0
18356 #  endif
18357 #endif
18358
18359 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18360    find out it does not work in some platform. */
18361 #ifndef LT_DLLAZY_OR_NOW
18362 #  ifdef RTLD_LAZY
18363 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18364 #  else
18365 #    ifdef DL_LAZY
18366 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18367 #    else
18368 #      ifdef RTLD_NOW
18369 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18370 #      else
18371 #        ifdef DL_NOW
18372 #          define LT_DLLAZY_OR_NOW      DL_NOW
18373 #        else
18374 #          define LT_DLLAZY_OR_NOW      0
18375 #        endif
18376 #      endif
18377 #    endif
18378 #  endif
18379 #endif
18380
18381 #ifdef __cplusplus
18382 extern "C" void exit (int);
18383 #endif
18384
18385 void fnord() { int i=42;}
18386 int main ()
18387 {
18388   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18389   int status = $lt_dlunknown;
18390
18391   if (self)
18392     {
18393       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18394       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18395       /* dlclose (self); */
18396     }
18397
18398     exit (status);
18399 }
18400 EOF
18401   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18402   (eval $ac_link) 2>&5
18403   ac_status=$?
18404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18405   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18406     (./conftest; exit; ) 2>/dev/null
18407     lt_status=$?
18408     case x$lt_status in
18409       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18410       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18411       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18412     esac
18413   else :
18414     # compilation failed
18415     lt_cv_dlopen_self_static=no
18416   fi
18417 fi
18418 rm -fr conftest*
18419
18420
18421 fi
18422 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18423 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18424     fi
18425
18426     CPPFLAGS="$save_CPPFLAGS"
18427     LDFLAGS="$save_LDFLAGS"
18428     LIBS="$save_LIBS"
18429     ;;
18430   esac
18431
18432   case $lt_cv_dlopen_self in
18433   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18434   *) enable_dlopen_self=unknown ;;
18435   esac
18436
18437   case $lt_cv_dlopen_self_static in
18438   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18439   *) enable_dlopen_self_static=unknown ;;
18440   esac
18441 fi
18442
18443
18444 # The else clause should only fire when bootstrapping the
18445 # libtool distribution, otherwise you forgot to ship ltmain.sh
18446 # with your package, and you will get complaints that there are
18447 # no rules to generate ltmain.sh.
18448 if test -f "$ltmain"; then
18449   # See if we are running on zsh, and set the options which allow our commands through
18450   # without removal of \ escapes.
18451   if test -n "${ZSH_VERSION+set}" ; then
18452     setopt NO_GLOB_SUBST
18453   fi
18454   # Now quote all the things that may contain metacharacters while being
18455   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18456   # variables and quote the copies for generation of the libtool script.
18457   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18458     SED SHELL STRIP \
18459     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18460     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18461     deplibs_check_method reload_flag reload_cmds need_locks \
18462     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18463     lt_cv_sys_global_symbol_to_c_name_address \
18464     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18465     old_postinstall_cmds old_postuninstall_cmds \
18466     compiler_GCJ \
18467     CC_GCJ \
18468     LD_GCJ \
18469     lt_prog_compiler_wl_GCJ \
18470     lt_prog_compiler_pic_GCJ \
18471     lt_prog_compiler_static_GCJ \
18472     lt_prog_compiler_no_builtin_flag_GCJ \
18473     export_dynamic_flag_spec_GCJ \
18474     thread_safe_flag_spec_GCJ \
18475     whole_archive_flag_spec_GCJ \
18476     enable_shared_with_static_runtimes_GCJ \
18477     old_archive_cmds_GCJ \
18478     old_archive_from_new_cmds_GCJ \
18479     predep_objects_GCJ \
18480     postdep_objects_GCJ \
18481     predeps_GCJ \
18482     postdeps_GCJ \
18483     compiler_lib_search_path_GCJ \
18484     archive_cmds_GCJ \
18485     archive_expsym_cmds_GCJ \
18486     postinstall_cmds_GCJ \
18487     postuninstall_cmds_GCJ \
18488     old_archive_from_expsyms_cmds_GCJ \
18489     allow_undefined_flag_GCJ \
18490     no_undefined_flag_GCJ \
18491     export_symbols_cmds_GCJ \
18492     hardcode_libdir_flag_spec_GCJ \
18493     hardcode_libdir_flag_spec_ld_GCJ \
18494     hardcode_libdir_separator_GCJ \
18495     hardcode_automatic_GCJ \
18496     module_cmds_GCJ \
18497     module_expsym_cmds_GCJ \
18498     lt_cv_prog_compiler_c_o_GCJ \
18499     exclude_expsyms_GCJ \
18500     include_expsyms_GCJ; do
18501
18502     case $var in
18503     old_archive_cmds_GCJ | \
18504     old_archive_from_new_cmds_GCJ | \
18505     archive_cmds_GCJ | \
18506     archive_expsym_cmds_GCJ | \
18507     module_cmds_GCJ | \
18508     module_expsym_cmds_GCJ | \
18509     old_archive_from_expsyms_cmds_GCJ | \
18510     export_symbols_cmds_GCJ | \
18511     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18512     postinstall_cmds | postuninstall_cmds | \
18513     old_postinstall_cmds | old_postuninstall_cmds | \
18514     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18515       # Double-quote double-evaled strings.
18516       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18517       ;;
18518     *)
18519       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18520       ;;
18521     esac
18522   done
18523
18524   case $lt_echo in
18525   *'\$0 --fallback-echo"')
18526     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18527     ;;
18528   esac
18529
18530 cfgfile="$ofile"
18531
18532   cat <<__EOF__ >> "$cfgfile"
18533 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18534
18535 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18536
18537 # Shell to use when invoking shell scripts.
18538 SHELL=$lt_SHELL
18539
18540 # Whether or not to build shared libraries.
18541 build_libtool_libs=$enable_shared
18542
18543 # Whether or not to build static libraries.
18544 build_old_libs=$enable_static
18545
18546 # Whether or not to add -lc for building shared libraries.
18547 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18548
18549 # Whether or not to disallow shared libs when runtime libs are static
18550 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18551
18552 # Whether or not to optimize for fast installation.
18553 fast_install=$enable_fast_install
18554
18555 # The host system.
18556 host_alias=$host_alias
18557 host=$host
18558
18559 # An echo program that does not interpret backslashes.
18560 echo=$lt_echo
18561
18562 # The archiver.
18563 AR=$lt_AR
18564 AR_FLAGS=$lt_AR_FLAGS
18565
18566 # A C compiler.
18567 LTCC=$lt_LTCC
18568
18569 # A language-specific compiler.
18570 CC=$lt_compiler_GCJ
18571
18572 # Is the compiler the GNU C compiler?
18573 with_gcc=$GCC_GCJ
18574
18575 # An ERE matcher.
18576 EGREP=$lt_EGREP
18577
18578 # The linker used to build libraries.
18579 LD=$lt_LD_GCJ
18580
18581 # Whether we need hard or soft links.
18582 LN_S=$lt_LN_S
18583
18584 # A BSD-compatible nm program.
18585 NM=$lt_NM
18586
18587 # A symbol stripping program
18588 STRIP=$lt_STRIP
18589
18590 # Used to examine libraries when file_magic_cmd begins "file"
18591 MAGIC_CMD=$MAGIC_CMD
18592
18593 # Used on cygwin: DLL creation program.
18594 DLLTOOL="$DLLTOOL"
18595
18596 # Used on cygwin: object dumper.
18597 OBJDUMP="$OBJDUMP"
18598
18599 # Used on cygwin: assembler.
18600 AS="$AS"
18601
18602 # The name of the directory that contains temporary libtool files.
18603 objdir=$objdir
18604
18605 # How to create reloadable object files.
18606 reload_flag=$lt_reload_flag
18607 reload_cmds=$lt_reload_cmds
18608
18609 # How to pass a linker flag through the compiler.
18610 wl=$lt_lt_prog_compiler_wl_GCJ
18611
18612 # Object file suffix (normally "o").
18613 objext="$ac_objext"
18614
18615 # Old archive suffix (normally "a").
18616 libext="$libext"
18617
18618 # Shared library suffix (normally ".so").
18619 shrext_cmds='$shrext_cmds'
18620
18621 # Executable file suffix (normally "").
18622 exeext="$exeext"
18623
18624 # Additional compiler flags for building library objects.
18625 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18626 pic_mode=$pic_mode
18627
18628 # What is the maximum length of a command?
18629 max_cmd_len=$lt_cv_sys_max_cmd_len
18630
18631 # Does compiler simultaneously support -c and -o options?
18632 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18633
18634 # Must we lock files when doing compilation ?
18635 need_locks=$lt_need_locks
18636
18637 # Do we need the lib prefix for modules?
18638 need_lib_prefix=$need_lib_prefix
18639
18640 # Do we need a version for libraries?
18641 need_version=$need_version
18642
18643 # Whether dlopen is supported.
18644 dlopen_support=$enable_dlopen
18645
18646 # Whether dlopen of programs is supported.
18647 dlopen_self=$enable_dlopen_self
18648
18649 # Whether dlopen of statically linked programs is supported.
18650 dlopen_self_static=$enable_dlopen_self_static
18651
18652 # Compiler flag to prevent dynamic linking.
18653 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18654
18655 # Compiler flag to turn off builtin functions.
18656 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18657
18658 # Compiler flag to allow reflexive dlopens.
18659 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18660
18661 # Compiler flag to generate shared objects directly from archives.
18662 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18663
18664 # Compiler flag to generate thread-safe objects.
18665 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18666
18667 # Library versioning type.
18668 version_type=$version_type
18669
18670 # Format of library name prefix.
18671 libname_spec=$lt_libname_spec
18672
18673 # List of archive names.  First name is the real one, the rest are links.
18674 # The last name is the one that the linker finds with -lNAME.
18675 library_names_spec=$lt_library_names_spec
18676
18677 # The coded name of the library, if different from the real name.
18678 soname_spec=$lt_soname_spec
18679
18680 # Commands used to build and install an old-style archive.
18681 RANLIB=$lt_RANLIB
18682 old_archive_cmds=$lt_old_archive_cmds_GCJ
18683 old_postinstall_cmds=$lt_old_postinstall_cmds
18684 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18685
18686 # Create an old-style archive from a shared archive.
18687 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18688
18689 # Create a temporary old-style archive to link instead of a shared archive.
18690 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18691
18692 # Commands used to build and install a shared archive.
18693 archive_cmds=$lt_archive_cmds_GCJ
18694 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18695 postinstall_cmds=$lt_postinstall_cmds
18696 postuninstall_cmds=$lt_postuninstall_cmds
18697
18698 # Commands used to build a loadable module (assumed same as above if empty)
18699 module_cmds=$lt_module_cmds_GCJ
18700 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18701
18702 # Commands to strip libraries.
18703 old_striplib=$lt_old_striplib
18704 striplib=$lt_striplib
18705
18706 # Dependencies to place before the objects being linked to create a
18707 # shared library.
18708 predep_objects=$lt_predep_objects_GCJ
18709
18710 # Dependencies to place after the objects being linked to create a
18711 # shared library.
18712 postdep_objects=$lt_postdep_objects_GCJ
18713
18714 # Dependencies to place before the objects being linked to create a
18715 # shared library.
18716 predeps=$lt_predeps_GCJ
18717
18718 # Dependencies to place after the objects being linked to create a
18719 # shared library.
18720 postdeps=$lt_postdeps_GCJ
18721
18722 # The library search path used internally by the compiler when linking
18723 # a shared library.
18724 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18725
18726 # Method to check whether dependent libraries are shared objects.
18727 deplibs_check_method=$lt_deplibs_check_method
18728
18729 # Command to use when deplibs_check_method == file_magic.
18730 file_magic_cmd=$lt_file_magic_cmd
18731
18732 # Flag that allows shared libraries with undefined symbols to be built.
18733 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18734
18735 # Flag that forces no undefined symbols.
18736 no_undefined_flag=$lt_no_undefined_flag_GCJ
18737
18738 # Commands used to finish a libtool library installation in a directory.
18739 finish_cmds=$lt_finish_cmds
18740
18741 # Same as above, but a single script fragment to be evaled but not shown.
18742 finish_eval=$lt_finish_eval
18743
18744 # Take the output of nm and produce a listing of raw symbols and C names.
18745 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18746
18747 # Transform the output of nm in a proper C declaration
18748 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18749
18750 # Transform the output of nm in a C name address pair
18751 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18752
18753 # This is the shared library runtime path variable.
18754 runpath_var=$runpath_var
18755
18756 # This is the shared library path variable.
18757 shlibpath_var=$shlibpath_var
18758
18759 # Is shlibpath searched before the hard-coded library search path?
18760 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18761
18762 # How to hardcode a shared library path into an executable.
18763 hardcode_action=$hardcode_action_GCJ
18764
18765 # Whether we should hardcode library paths into libraries.
18766 hardcode_into_libs=$hardcode_into_libs
18767
18768 # Flag to hardcode \$libdir into a binary during linking.
18769 # This must work even if \$libdir does not exist.
18770 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18771
18772 # If ld is used when linking, flag to hardcode \$libdir into
18773 # a binary during linking. This must work even if \$libdir does
18774 # not exist.
18775 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18776
18777 # Whether we need a single -rpath flag with a separated argument.
18778 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18779
18780 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18781 # resulting binary.
18782 hardcode_direct=$hardcode_direct_GCJ
18783
18784 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18785 # resulting binary.
18786 hardcode_minus_L=$hardcode_minus_L_GCJ
18787
18788 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18789 # the resulting binary.
18790 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18791
18792 # Set to yes if building a shared library automatically hardcodes DIR into the library
18793 # and all subsequent libraries and executables linked against it.
18794 hardcode_automatic=$hardcode_automatic_GCJ
18795
18796 # Variables whose values should be saved in libtool wrapper scripts and
18797 # restored at relink time.
18798 variables_saved_for_relink="$variables_saved_for_relink"
18799
18800 # Whether libtool must link a program against all its dependency libraries.
18801 link_all_deplibs=$link_all_deplibs_GCJ
18802
18803 # Compile-time system search path for libraries
18804 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18805
18806 # Run-time system search path for libraries
18807 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18808
18809 # Fix the shell variable \$srcfile for the compiler.
18810 fix_srcfile_path="$fix_srcfile_path_GCJ"
18811
18812 # Set to yes if exported symbols are required.
18813 always_export_symbols=$always_export_symbols_GCJ
18814
18815 # The commands to list exported symbols.
18816 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18817
18818 # The commands to extract the exported symbol list from a shared archive.
18819 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18820
18821 # Symbols that should not be listed in the preloaded symbols.
18822 exclude_expsyms=$lt_exclude_expsyms_GCJ
18823
18824 # Symbols that must always be exported.
18825 include_expsyms=$lt_include_expsyms_GCJ
18826
18827 # ### END LIBTOOL TAG CONFIG: $tagname
18828
18829 __EOF__
18830
18831
18832 else
18833   # If there is no Makefile yet, we rely on a make rule to execute
18834   # `config.status --recheck' to rerun these tests and create the
18835   # libtool script then.
18836   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18837   if test -f "$ltmain_in"; then
18838     test -f Makefile && make "$ltmain"
18839   fi
18840 fi
18841
18842
18843 ac_ext=c
18844 ac_cpp='$CPP $CPPFLAGS'
18845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18848
18849 CC="$lt_save_CC"
18850
18851         else
18852           tagname=""
18853         fi
18854         ;;
18855
18856       RC)
18857
18858
18859
18860 # Source file extension for RC test sources.
18861 ac_ext=rc
18862
18863 # Object file extension for compiled RC test sources.
18864 objext=o
18865 objext_RC=$objext
18866
18867 # Code to be used in simple compile tests
18868 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18869
18870 # Code to be used in simple link tests
18871 lt_simple_link_test_code="$lt_simple_compile_test_code"
18872
18873 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18874
18875 # If no C compiler was specified, use CC.
18876 LTCC=${LTCC-"$CC"}
18877
18878 # Allow CC to be a program name with arguments.
18879 compiler=$CC
18880
18881
18882 # Allow CC to be a program name with arguments.
18883 lt_save_CC="$CC"
18884 CC=${RC-"windres"}
18885 compiler=$CC
18886 compiler_RC=$CC
18887 lt_cv_prog_compiler_c_o_RC=yes
18888
18889 # The else clause should only fire when bootstrapping the
18890 # libtool distribution, otherwise you forgot to ship ltmain.sh
18891 # with your package, and you will get complaints that there are
18892 # no rules to generate ltmain.sh.
18893 if test -f "$ltmain"; then
18894   # See if we are running on zsh, and set the options which allow our commands through
18895   # without removal of \ escapes.
18896   if test -n "${ZSH_VERSION+set}" ; then
18897     setopt NO_GLOB_SUBST
18898   fi
18899   # Now quote all the things that may contain metacharacters while being
18900   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18901   # variables and quote the copies for generation of the libtool script.
18902   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18903     SED SHELL STRIP \
18904     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18905     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18906     deplibs_check_method reload_flag reload_cmds need_locks \
18907     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18908     lt_cv_sys_global_symbol_to_c_name_address \
18909     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18910     old_postinstall_cmds old_postuninstall_cmds \
18911     compiler_RC \
18912     CC_RC \
18913     LD_RC \
18914     lt_prog_compiler_wl_RC \
18915     lt_prog_compiler_pic_RC \
18916     lt_prog_compiler_static_RC \
18917     lt_prog_compiler_no_builtin_flag_RC \
18918     export_dynamic_flag_spec_RC \
18919     thread_safe_flag_spec_RC \
18920     whole_archive_flag_spec_RC \
18921     enable_shared_with_static_runtimes_RC \
18922     old_archive_cmds_RC \
18923     old_archive_from_new_cmds_RC \
18924     predep_objects_RC \
18925     postdep_objects_RC \
18926     predeps_RC \
18927     postdeps_RC \
18928     compiler_lib_search_path_RC \
18929     archive_cmds_RC \
18930     archive_expsym_cmds_RC \
18931     postinstall_cmds_RC \
18932     postuninstall_cmds_RC \
18933     old_archive_from_expsyms_cmds_RC \
18934     allow_undefined_flag_RC \
18935     no_undefined_flag_RC \
18936     export_symbols_cmds_RC \
18937     hardcode_libdir_flag_spec_RC \
18938     hardcode_libdir_flag_spec_ld_RC \
18939     hardcode_libdir_separator_RC \
18940     hardcode_automatic_RC \
18941     module_cmds_RC \
18942     module_expsym_cmds_RC \
18943     lt_cv_prog_compiler_c_o_RC \
18944     exclude_expsyms_RC \
18945     include_expsyms_RC; do
18946
18947     case $var in
18948     old_archive_cmds_RC | \
18949     old_archive_from_new_cmds_RC | \
18950     archive_cmds_RC | \
18951     archive_expsym_cmds_RC | \
18952     module_cmds_RC | \
18953     module_expsym_cmds_RC | \
18954     old_archive_from_expsyms_cmds_RC | \
18955     export_symbols_cmds_RC | \
18956     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18957     postinstall_cmds | postuninstall_cmds | \
18958     old_postinstall_cmds | old_postuninstall_cmds | \
18959     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18960       # Double-quote double-evaled strings.
18961       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18962       ;;
18963     *)
18964       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18965       ;;
18966     esac
18967   done
18968
18969   case $lt_echo in
18970   *'\$0 --fallback-echo"')
18971     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18972     ;;
18973   esac
18974
18975 cfgfile="$ofile"
18976
18977   cat <<__EOF__ >> "$cfgfile"
18978 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18979
18980 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18981
18982 # Shell to use when invoking shell scripts.
18983 SHELL=$lt_SHELL
18984
18985 # Whether or not to build shared libraries.
18986 build_libtool_libs=$enable_shared
18987
18988 # Whether or not to build static libraries.
18989 build_old_libs=$enable_static
18990
18991 # Whether or not to add -lc for building shared libraries.
18992 build_libtool_need_lc=$archive_cmds_need_lc_RC
18993
18994 # Whether or not to disallow shared libs when runtime libs are static
18995 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18996
18997 # Whether or not to optimize for fast installation.
18998 fast_install=$enable_fast_install
18999
19000 # The host system.
19001 host_alias=$host_alias
19002 host=$host
19003
19004 # An echo program that does not interpret backslashes.
19005 echo=$lt_echo
19006
19007 # The archiver.
19008 AR=$lt_AR
19009 AR_FLAGS=$lt_AR_FLAGS
19010
19011 # A C compiler.
19012 LTCC=$lt_LTCC
19013
19014 # A language-specific compiler.
19015 CC=$lt_compiler_RC
19016
19017 # Is the compiler the GNU C compiler?
19018 with_gcc=$GCC_RC
19019
19020 # An ERE matcher.
19021 EGREP=$lt_EGREP
19022
19023 # The linker used to build libraries.
19024 LD=$lt_LD_RC
19025
19026 # Whether we need hard or soft links.
19027 LN_S=$lt_LN_S
19028
19029 # A BSD-compatible nm program.
19030 NM=$lt_NM
19031
19032 # A symbol stripping program
19033 STRIP=$lt_STRIP
19034
19035 # Used to examine libraries when file_magic_cmd begins "file"
19036 MAGIC_CMD=$MAGIC_CMD
19037
19038 # Used on cygwin: DLL creation program.
19039 DLLTOOL="$DLLTOOL"
19040
19041 # Used on cygwin: object dumper.
19042 OBJDUMP="$OBJDUMP"
19043
19044 # Used on cygwin: assembler.
19045 AS="$AS"
19046
19047 # The name of the directory that contains temporary libtool files.
19048 objdir=$objdir
19049
19050 # How to create reloadable object files.
19051 reload_flag=$lt_reload_flag
19052 reload_cmds=$lt_reload_cmds
19053
19054 # How to pass a linker flag through the compiler.
19055 wl=$lt_lt_prog_compiler_wl_RC
19056
19057 # Object file suffix (normally "o").
19058 objext="$ac_objext"
19059
19060 # Old archive suffix (normally "a").
19061 libext="$libext"
19062
19063 # Shared library suffix (normally ".so").
19064 shrext_cmds='$shrext_cmds'
19065
19066 # Executable file suffix (normally "").
19067 exeext="$exeext"
19068
19069 # Additional compiler flags for building library objects.
19070 pic_flag=$lt_lt_prog_compiler_pic_RC
19071 pic_mode=$pic_mode
19072
19073 # What is the maximum length of a command?
19074 max_cmd_len=$lt_cv_sys_max_cmd_len
19075
19076 # Does compiler simultaneously support -c and -o options?
19077 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19078
19079 # Must we lock files when doing compilation ?
19080 need_locks=$lt_need_locks
19081
19082 # Do we need the lib prefix for modules?
19083 need_lib_prefix=$need_lib_prefix
19084
19085 # Do we need a version for libraries?
19086 need_version=$need_version
19087
19088 # Whether dlopen is supported.
19089 dlopen_support=$enable_dlopen
19090
19091 # Whether dlopen of programs is supported.
19092 dlopen_self=$enable_dlopen_self
19093
19094 # Whether dlopen of statically linked programs is supported.
19095 dlopen_self_static=$enable_dlopen_self_static
19096
19097 # Compiler flag to prevent dynamic linking.
19098 link_static_flag=$lt_lt_prog_compiler_static_RC
19099
19100 # Compiler flag to turn off builtin functions.
19101 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19102
19103 # Compiler flag to allow reflexive dlopens.
19104 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19105
19106 # Compiler flag to generate shared objects directly from archives.
19107 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19108
19109 # Compiler flag to generate thread-safe objects.
19110 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19111
19112 # Library versioning type.
19113 version_type=$version_type
19114
19115 # Format of library name prefix.
19116 libname_spec=$lt_libname_spec
19117
19118 # List of archive names.  First name is the real one, the rest are links.
19119 # The last name is the one that the linker finds with -lNAME.
19120 library_names_spec=$lt_library_names_spec
19121
19122 # The coded name of the library, if different from the real name.
19123 soname_spec=$lt_soname_spec
19124
19125 # Commands used to build and install an old-style archive.
19126 RANLIB=$lt_RANLIB
19127 old_archive_cmds=$lt_old_archive_cmds_RC
19128 old_postinstall_cmds=$lt_old_postinstall_cmds
19129 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19130
19131 # Create an old-style archive from a shared archive.
19132 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19133
19134 # Create a temporary old-style archive to link instead of a shared archive.
19135 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19136
19137 # Commands used to build and install a shared archive.
19138 archive_cmds=$lt_archive_cmds_RC
19139 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19140 postinstall_cmds=$lt_postinstall_cmds
19141 postuninstall_cmds=$lt_postuninstall_cmds
19142
19143 # Commands used to build a loadable module (assumed same as above if empty)
19144 module_cmds=$lt_module_cmds_RC
19145 module_expsym_cmds=$lt_module_expsym_cmds_RC
19146
19147 # Commands to strip libraries.
19148 old_striplib=$lt_old_striplib
19149 striplib=$lt_striplib
19150
19151 # Dependencies to place before the objects being linked to create a
19152 # shared library.
19153 predep_objects=$lt_predep_objects_RC
19154
19155 # Dependencies to place after the objects being linked to create a
19156 # shared library.
19157 postdep_objects=$lt_postdep_objects_RC
19158
19159 # Dependencies to place before the objects being linked to create a
19160 # shared library.
19161 predeps=$lt_predeps_RC
19162
19163 # Dependencies to place after the objects being linked to create a
19164 # shared library.
19165 postdeps=$lt_postdeps_RC
19166
19167 # The library search path used internally by the compiler when linking
19168 # a shared library.
19169 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19170
19171 # Method to check whether dependent libraries are shared objects.
19172 deplibs_check_method=$lt_deplibs_check_method
19173
19174 # Command to use when deplibs_check_method == file_magic.
19175 file_magic_cmd=$lt_file_magic_cmd
19176
19177 # Flag that allows shared libraries with undefined symbols to be built.
19178 allow_undefined_flag=$lt_allow_undefined_flag_RC
19179
19180 # Flag that forces no undefined symbols.
19181 no_undefined_flag=$lt_no_undefined_flag_RC
19182
19183 # Commands used to finish a libtool library installation in a directory.
19184 finish_cmds=$lt_finish_cmds
19185
19186 # Same as above, but a single script fragment to be evaled but not shown.
19187 finish_eval=$lt_finish_eval
19188
19189 # Take the output of nm and produce a listing of raw symbols and C names.
19190 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19191
19192 # Transform the output of nm in a proper C declaration
19193 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19194
19195 # Transform the output of nm in a C name address pair
19196 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19197
19198 # This is the shared library runtime path variable.
19199 runpath_var=$runpath_var
19200
19201 # This is the shared library path variable.
19202 shlibpath_var=$shlibpath_var
19203
19204 # Is shlibpath searched before the hard-coded library search path?
19205 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19206
19207 # How to hardcode a shared library path into an executable.
19208 hardcode_action=$hardcode_action_RC
19209
19210 # Whether we should hardcode library paths into libraries.
19211 hardcode_into_libs=$hardcode_into_libs
19212
19213 # Flag to hardcode \$libdir into a binary during linking.
19214 # This must work even if \$libdir does not exist.
19215 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19216
19217 # If ld is used when linking, flag to hardcode \$libdir into
19218 # a binary during linking. This must work even if \$libdir does
19219 # not exist.
19220 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19221
19222 # Whether we need a single -rpath flag with a separated argument.
19223 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19224
19225 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19226 # resulting binary.
19227 hardcode_direct=$hardcode_direct_RC
19228
19229 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19230 # resulting binary.
19231 hardcode_minus_L=$hardcode_minus_L_RC
19232
19233 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19234 # the resulting binary.
19235 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19236
19237 # Set to yes if building a shared library automatically hardcodes DIR into the library
19238 # and all subsequent libraries and executables linked against it.
19239 hardcode_automatic=$hardcode_automatic_RC
19240
19241 # Variables whose values should be saved in libtool wrapper scripts and
19242 # restored at relink time.
19243 variables_saved_for_relink="$variables_saved_for_relink"
19244
19245 # Whether libtool must link a program against all its dependency libraries.
19246 link_all_deplibs=$link_all_deplibs_RC
19247
19248 # Compile-time system search path for libraries
19249 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19250
19251 # Run-time system search path for libraries
19252 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19253
19254 # Fix the shell variable \$srcfile for the compiler.
19255 fix_srcfile_path="$fix_srcfile_path_RC"
19256
19257 # Set to yes if exported symbols are required.
19258 always_export_symbols=$always_export_symbols_RC
19259
19260 # The commands to list exported symbols.
19261 export_symbols_cmds=$lt_export_symbols_cmds_RC
19262
19263 # The commands to extract the exported symbol list from a shared archive.
19264 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19265
19266 # Symbols that should not be listed in the preloaded symbols.
19267 exclude_expsyms=$lt_exclude_expsyms_RC
19268
19269 # Symbols that must always be exported.
19270 include_expsyms=$lt_include_expsyms_RC
19271
19272 # ### END LIBTOOL TAG CONFIG: $tagname
19273
19274 __EOF__
19275
19276
19277 else
19278   # If there is no Makefile yet, we rely on a make rule to execute
19279   # `config.status --recheck' to rerun these tests and create the
19280   # libtool script then.
19281   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19282   if test -f "$ltmain_in"; then
19283     test -f Makefile && make "$ltmain"
19284   fi
19285 fi
19286
19287
19288 ac_ext=c
19289 ac_cpp='$CPP $CPPFLAGS'
19290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19293
19294 CC="$lt_save_CC"
19295
19296         ;;
19297
19298       *)
19299         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19300 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19301    { (exit 1); exit 1; }; }
19302         ;;
19303       esac
19304
19305       # Append the new tag name to the list of available tags.
19306       if test -n "$tagname" ; then
19307       available_tags="$available_tags $tagname"
19308     fi
19309     fi
19310   done
19311   IFS="$lt_save_ifs"
19312
19313   # Now substitute the updated list of available tags.
19314   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19315     mv "${ofile}T" "$ofile"
19316     chmod +x "$ofile"
19317   else
19318     rm -f "${ofile}T"
19319     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19320 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19321    { (exit 1); exit 1; }; }
19322   fi
19323 fi
19324
19325
19326
19327 # This can be used to rebuild libtool when needed
19328 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19329
19330 # Always use our own libtool.
19331 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19332
19333 # Prevent multiple expansion
19334
19335
19336
19337
19338
19339
19340
19341
19342
19343
19344
19345
19346 # Check whether --with-system-libtool or --without-system-libtool was given.
19347 if test "${with_system_libtool+set}" = set; then
19348   withval="$with_system_libtool"
19349    # Extract the first word of "libtool", so it can be a program name with args.
19350 set dummy libtool; ac_word=$2
19351 echo "$as_me:$LINENO: checking for $ac_word" >&5
19352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19353 if test "${ac_cv_path_LIBTOOL+set}" = set; then
19354   echo $ECHO_N "(cached) $ECHO_C" >&6
19355 else
19356   case $LIBTOOL in
19357   [\\/]* | ?:[\\/]*)
19358   ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
19359   ;;
19360   *)
19361   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19362 as_dummy="$PATH:/usr/local/bin"
19363 for as_dir in $as_dummy
19364 do
19365   IFS=$as_save_IFS
19366   test -z "$as_dir" && as_dir=.
19367   for ac_exec_ext in '' $ac_executable_extensions; do
19368   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19369     ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
19370     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19371     break 2
19372   fi
19373 done
19374 done
19375
19376   ;;
19377 esac
19378 fi
19379 LIBTOOL=$ac_cv_path_LIBTOOL
19380
19381 if test -n "$LIBTOOL"; then
19382   echo "$as_me:$LINENO: result: $LIBTOOL" >&5
19383 echo "${ECHO_T}$LIBTOOL" >&6
19384 else
19385   echo "$as_me:$LINENO: result: no" >&5
19386 echo "${ECHO_T}no" >&6
19387 fi
19388
19389 else
19390
19391   LIBTOOL="`pwd`/libtool"
19392
19393
19394
19395
19396
19397
19398
19399
19400
19401
19402
19403
19404
19405
19406 fi;
19407
19408
19409
19410 # Check whether --enable-strict-dependencies or --disable-strict-dependencies was given.
19411 if test "${enable_strict_dependencies+set}" = set; then
19412   enableval="$enable_strict_dependencies"
19413
19414 fi;
19415
19416 docdir='${datadir}/doc/freeradius'
19417 echo "$as_me:$LINENO: checking docdir" >&5
19418 echo $ECHO_N "checking docdir... $ECHO_C" >&6
19419
19420 # Check whether --with-docdir or --without-docdir was given.
19421 if test "${with_docdir+set}" = set; then
19422   withval="$with_docdir"
19423    case "$withval" in
19424     no)
19425         { { echo "$as_me:$LINENO: error: Need docdir" >&5
19426 echo "$as_me: error: Need docdir" >&2;}
19427    { (exit 1); exit 1; }; }
19428         ;;
19429     yes)
19430         ;;
19431     [\\/$]* | ?:[\\/]* )
19432         docdir="$withval"
19433         ;;
19434     *)
19435         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-docdir: $withval" >&5
19436 echo "$as_me: error: expected an absolute directory name for --with-docdir: $withval" >&2;}
19437    { (exit 1); exit 1; }; }
19438         ;;
19439   esac
19440
19441 fi;
19442
19443 echo "$as_me:$LINENO: result: $docdir" >&5
19444 echo "${ECHO_T}$docdir" >&6
19445
19446 logdir='${localstatedir}/log/radius'
19447 echo "$as_me:$LINENO: checking logdir" >&5
19448 echo $ECHO_N "checking logdir... $ECHO_C" >&6
19449
19450 # Check whether --with-logdir or --without-logdir was given.
19451 if test "${with_logdir+set}" = set; then
19452   withval="$with_logdir"
19453    case "$withval" in
19454     no)
19455         { { echo "$as_me:$LINENO: error: Need logdir" >&5
19456 echo "$as_me: error: Need logdir" >&2;}
19457    { (exit 1); exit 1; }; }
19458         ;;
19459     yes)
19460         ;;
19461     [\\/$]* | ?:[\\/]* )
19462         logdir="$withval"
19463         ;;
19464     *)
19465         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-logdir: $withval" >&5
19466 echo "$as_me: error: expected an absolute directory name for --with-logdir: $withval" >&2;}
19467    { (exit 1); exit 1; }; }
19468         ;;
19469   esac
19470
19471 fi;
19472
19473 echo "$as_me:$LINENO: result: $logdir" >&5
19474 echo "${ECHO_T}$logdir" >&6
19475
19476 radacctdir='${logdir}/radacct'
19477 echo "$as_me:$LINENO: checking radacctdir" >&5
19478 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6
19479
19480 # Check whether --with-radacctdir or --without-radacctdir was given.
19481 if test "${with_radacctdir+set}" = set; then
19482   withval="$with_radacctdir"
19483    case "$withval" in
19484     no)
19485         { { echo "$as_me:$LINENO: error: Need radacctdir" >&5
19486 echo "$as_me: error: Need radacctdir" >&2;}
19487    { (exit 1); exit 1; }; }
19488         ;;
19489     yes)
19490         ;;
19491     [\\/$]* | ?:[\\/]* )
19492         radacctdir="$withval"
19493         ;;
19494     *)
19495         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-radacctdir: $withval" >&5
19496 echo "$as_me: error: expected an absolute directory name for --with-radacctdir: $withval" >&2;}
19497    { (exit 1); exit 1; }; }
19498         ;;
19499   esac
19500
19501 fi;
19502
19503 echo "$as_me:$LINENO: result: $radacctdir" >&5
19504 echo "${ECHO_T}$radacctdir" >&6
19505
19506 raddbdir='${sysconfdir}/raddb'
19507 echo "$as_me:$LINENO: checking raddbdir" >&5
19508 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6
19509
19510 # Check whether --with-raddbdir or --without-raddbdir was given.
19511 if test "${with_raddbdir+set}" = set; then
19512   withval="$with_raddbdir"
19513    case "$withval" in
19514     no)
19515         { { echo "$as_me:$LINENO: error: Need raddbdir" >&5
19516 echo "$as_me: error: Need raddbdir" >&2;}
19517    { (exit 1); exit 1; }; }
19518         ;;
19519     yes)
19520         ;;
19521     [\\/$]* | ?:[\\/]* )
19522         raddbdir="$withval"
19523         ;;
19524     *)
19525         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-raddbdir: $withval" >&5
19526 echo "$as_me: error: expected an absolute directory name for --with-raddbdir: $withval" >&2;}
19527    { (exit 1); exit 1; }; }
19528         ;;
19529   esac
19530
19531 fi;
19532
19533 echo "$as_me:$LINENO: result: $raddbdir" >&5
19534 echo "${ECHO_T}$raddbdir" >&6
19535
19536 ASCEND_BINARY=yes
19537
19538 # Check whether --with-ascend-binary or --without-ascend-binary was given.
19539 if test "${with_ascend_binary+set}" = set; then
19540   withval="$with_ascend_binary"
19541    case "$withval" in
19542     yes)
19543         ;;
19544     *)
19545         ASCEND_BINARY=""
19546   esac
19547
19548 fi;
19549 if test "X$ASCEND_BINARY" = "Xyes"; then
19550
19551 cat >>confdefs.h <<\_ACEOF
19552 #define ASCEND_BINARY
19553 _ACEOF
19554
19555 fi
19556
19557 WITH_THREADS=yes
19558
19559 # Check whether --with-threads or --without-threads was given.
19560 if test "${with_threads+set}" = set; then
19561   withval="$with_threads"
19562    case "$withval" in
19563     yes)
19564         ;;
19565     *)
19566         WITH_THREADS=""
19567   esac
19568
19569 fi;
19570
19571 WITH_SNMP=yes
19572
19573 # Check whether --with-snmp or --without-snmp was given.
19574 if test "${with_snmp+set}" = set; then
19575   withval="$with_snmp"
19576    case "$withval" in
19577     yes)
19578         ;;
19579     *)
19580         WITH_SNMP=no
19581   esac
19582
19583 fi;
19584
19585
19586 STATIC_MODULES=
19587
19588 # Check whether --with-static_modules or --without-static_modules was given.
19589 if test "${with_static_modules+set}" = set; then
19590   withval="$with_static_modules"
19591
19592   for i in $withval; do
19593     STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
19594   done
19595
19596 fi;
19597
19598 MODULES=
19599
19600 # Check whether --with-modules or --without-modules was given.
19601 if test "${with_modules+set}" = set; then
19602   withval="$with_modules"
19603
19604  for i in $withval; do
19605    MODULES="$MODULES $i"
19606  done
19607
19608 fi;
19609
19610 # Check whether --enable-developer or --disable-developer was given.
19611 if test "${enable_developer+set}" = set; then
19612   enableval="$enable_developer"
19613    case "$enableval" in
19614     no)
19615         developer=no
19616         ;;
19617     *)
19618         developer=yes
19619   esac
19620
19621 fi;
19622
19623 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
19624     developer="yes"
19625 fi
19626
19627 EXPERIMENTAL=
19628
19629 # Check whether --with-experimental-modules or --without-experimental-modules was given.
19630 if test "${with_experimental_modules+set}" = set; then
19631   withval="$with_experimental_modules"
19632    case "$withval" in
19633     yes)
19634         EXPERIMENTAL=yes
19635         ;;
19636     *)
19637   esac
19638
19639 fi;
19640
19641 OPENSSL_INCLUDE_DIR=
19642
19643 # Check whether --with-openssl-includes or --without-openssl-includes was given.
19644 if test "${with_openssl_includes+set}" = set; then
19645   withval="$with_openssl_includes"
19646    case "$withval" in
19647     *) OPENSSL_INCLUDE_DIR="$withval"
19648         ;;
19649   esac
19650
19651 fi;
19652
19653 OPENSSL_LIB_DIR=
19654
19655 # Check whether --with-openssl-libraries or --without-openssl-libraries was given.
19656 if test "${with_openssl_libraries+set}" = set; then
19657   withval="$with_openssl_libraries"
19658    case "$withval" in
19659     *) OPENSSL_LIB_DIR="$withval"
19660         ;;
19661   esac
19662
19663 fi;
19664
19665
19666
19667 # Check whether --with-rlm-FOO-lib-dir or --without-rlm-FOO-lib-dir was given.
19668 if test "${with_rlm_FOO_lib_dir+set}" = set; then
19669   withval="$with_rlm_FOO_lib_dir"
19670    case "$withval" in
19671     *)
19672         ;;
19673   esac
19674
19675 fi;
19676
19677
19678 # Check whether --with-rlm-FOO-include-dir or --without-rlm-FOO-include-dir was given.
19679 if test "${with_rlm_FOO_include_dir+set}" = set; then
19680   withval="$with_rlm_FOO_include_dir"
19681    case "$withval" in
19682     *)
19683         ;;
19684   esac
19685
19686 fi;
19687
19688
19689 WITH_UDPFROMTO=no
19690
19691 # Check whether --with-udpfromto or --without-udpfromto was given.
19692 if test "${with_udpfromto+set}" = set; then
19693   withval="$with_udpfromto"
19694    case "$withval" in
19695     yes)
19696         WITH_UDPFROMTO=yes
19697         ;;
19698     *)
19699         WITH_UDPFROMTO=no
19700   esac
19701
19702 fi;
19703
19704 if test "x$WITH_UDPFROMTO" = "xyes"; then
19705
19706 cat >>confdefs.h <<\_ACEOF
19707 #define WITH_UDPFROMTO
19708 _ACEOF
19709
19710 fi
19711
19712
19713 CHECKRAD=checkrad.pl
19714 # Extract the first word of "perl", so it can be a program name with args.
19715 set dummy perl; ac_word=$2
19716 echo "$as_me:$LINENO: checking for $ac_word" >&5
19717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19718 if test "${ac_cv_path_PERL+set}" = set; then
19719   echo $ECHO_N "(cached) $ECHO_C" >&6
19720 else
19721   case $PERL in
19722   [\\/]* | ?:[\\/]*)
19723   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19724   ;;
19725   *)
19726   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19727 for as_dir in $PATH
19728 do
19729   IFS=$as_save_IFS
19730   test -z "$as_dir" && as_dir=.
19731   for ac_exec_ext in '' $ac_executable_extensions; do
19732   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19733     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19734     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19735     break 2
19736   fi
19737 done
19738 done
19739
19740   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
19741   ;;
19742 esac
19743 fi
19744 PERL=$ac_cv_path_PERL
19745
19746 if test -n "$PERL"; then
19747   echo "$as_me:$LINENO: result: $PERL" >&5
19748 echo "${ECHO_T}$PERL" >&6
19749 else
19750   echo "$as_me:$LINENO: result: no" >&5
19751 echo "${ECHO_T}no" >&6
19752 fi
19753
19754 if test "x$ac_cv_path_PERL" = "x"; then
19755   { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
19756 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19757 fi
19758 # Extract the first word of "snmpget", so it can be a program name with args.
19759 set dummy snmpget; ac_word=$2
19760 echo "$as_me:$LINENO: checking for $ac_word" >&5
19761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19762 if test "${ac_cv_path_SNMPGET+set}" = set; then
19763   echo $ECHO_N "(cached) $ECHO_C" >&6
19764 else
19765   case $SNMPGET in
19766   [\\/]* | ?:[\\/]*)
19767   ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
19768   ;;
19769   *)
19770   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19771 for as_dir in $PATH
19772 do
19773   IFS=$as_save_IFS
19774   test -z "$as_dir" && as_dir=.
19775   for ac_exec_ext in '' $ac_executable_extensions; do
19776   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19777     ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
19778     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19779     break 2
19780   fi
19781 done
19782 done
19783
19784   ;;
19785 esac
19786 fi
19787 SNMPGET=$ac_cv_path_SNMPGET
19788
19789 if test -n "$SNMPGET"; then
19790   echo "$as_me:$LINENO: result: $SNMPGET" >&5
19791 echo "${ECHO_T}$SNMPGET" >&6
19792 else
19793   echo "$as_me:$LINENO: result: no" >&5
19794 echo "${ECHO_T}no" >&6
19795 fi
19796
19797 if test "x$ac_cv_path_SNMPGET" = "x"; then
19798   { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
19799 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19800 fi
19801
19802 # Extract the first word of "snmpwalk", so it can be a program name with args.
19803 set dummy snmpwalk; ac_word=$2
19804 echo "$as_me:$LINENO: checking for $ac_word" >&5
19805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19806 if test "${ac_cv_path_SNMPWALK+set}" = set; then
19807   echo $ECHO_N "(cached) $ECHO_C" >&6
19808 else
19809   case $SNMPWALK in
19810   [\\/]* | ?:[\\/]*)
19811   ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
19812   ;;
19813   *)
19814   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19815 for as_dir in $PATH
19816 do
19817   IFS=$as_save_IFS
19818   test -z "$as_dir" && as_dir=.
19819   for ac_exec_ext in '' $ac_executable_extensions; do
19820   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19821     ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
19822     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19823     break 2
19824   fi
19825 done
19826 done
19827
19828   ;;
19829 esac
19830 fi
19831 SNMPWALK=$ac_cv_path_SNMPWALK
19832
19833 if test -n "$SNMPWALK"; then
19834   echo "$as_me:$LINENO: result: $SNMPWALK" >&5
19835 echo "${ECHO_T}$SNMPWALK" >&6
19836 else
19837   echo "$as_me:$LINENO: result: no" >&5
19838 echo "${ECHO_T}no" >&6
19839 fi
19840
19841 if test "x$ac_cv_path_SNMPWALK" = "x"; then
19842   { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
19843 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19844 fi
19845
19846 # Extract the first word of "rusers", so it can be a program name with args.
19847 set dummy rusers; ac_word=$2
19848 echo "$as_me:$LINENO: checking for $ac_word" >&5
19849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19850 if test "${ac_cv_path_RUSERS+set}" = set; then
19851   echo $ECHO_N "(cached) $ECHO_C" >&6
19852 else
19853   case $RUSERS in
19854   [\\/]* | ?:[\\/]*)
19855   ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
19856   ;;
19857   *)
19858   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19859 for as_dir in $PATH
19860 do
19861   IFS=$as_save_IFS
19862   test -z "$as_dir" && as_dir=.
19863   for ac_exec_ext in '' $ac_executable_extensions; do
19864   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19865     ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
19866     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19867     break 2
19868   fi
19869 done
19870 done
19871
19872   test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
19873   ;;
19874 esac
19875 fi
19876 RUSERS=$ac_cv_path_RUSERS
19877
19878 if test -n "$RUSERS"; then
19879   echo "$as_me:$LINENO: result: $RUSERS" >&5
19880 echo "${ECHO_T}$RUSERS" >&6
19881 else
19882   echo "$as_me:$LINENO: result: no" >&5
19883 echo "${ECHO_T}no" >&6
19884 fi
19885
19886
19887 missing_dir=`cd $ac_aux_dir && pwd`
19888 # expand $ac_aux_dir to an absolute path
19889 am_aux_dir=`cd $ac_aux_dir && pwd`
19890
19891 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
19892 # Use eval to expand $SHELL
19893 if eval "$MISSING --run true"; then
19894   am_missing_run="$MISSING --run "
19895 else
19896   am_missing_run=
19897   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
19898 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
19899 fi
19900
19901
19902 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
19903
19904
19905 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
19906
19907
19908 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
19909
19910
19911 # Extract the first word of "locate", so it can be a program name with args.
19912 set dummy locate; ac_word=$2
19913 echo "$as_me:$LINENO: checking for $ac_word" >&5
19914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19915 if test "${ac_cv_path_LOCATE+set}" = set; then
19916   echo $ECHO_N "(cached) $ECHO_C" >&6
19917 else
19918   case $LOCATE in
19919   [\\/]* | ?:[\\/]*)
19920   ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
19921   ;;
19922   *)
19923   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19924 for as_dir in $PATH
19925 do
19926   IFS=$as_save_IFS
19927   test -z "$as_dir" && as_dir=.
19928   for ac_exec_ext in '' $ac_executable_extensions; do
19929   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19930     ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
19931     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19932     break 2
19933   fi
19934 done
19935 done
19936
19937   ;;
19938 esac
19939 fi
19940 LOCATE=$ac_cv_path_LOCATE
19941
19942 if test -n "$LOCATE"; then
19943   echo "$as_me:$LINENO: result: $LOCATE" >&5
19944 echo "${ECHO_T}$LOCATE" >&6
19945 else
19946   echo "$as_me:$LINENO: result: no" >&5
19947 echo "${ECHO_T}no" >&6
19948 fi
19949
19950 # Extract the first word of "dirname", so it can be a program name with args.
19951 set dummy dirname; ac_word=$2
19952 echo "$as_me:$LINENO: checking for $ac_word" >&5
19953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19954 if test "${ac_cv_path_DIRNAME+set}" = set; then
19955   echo $ECHO_N "(cached) $ECHO_C" >&6
19956 else
19957   case $DIRNAME in
19958   [\\/]* | ?:[\\/]*)
19959   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
19960   ;;
19961   *)
19962   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19963 for as_dir in $PATH
19964 do
19965   IFS=$as_save_IFS
19966   test -z "$as_dir" && as_dir=.
19967   for ac_exec_ext in '' $ac_executable_extensions; do
19968   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19969     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
19970     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19971     break 2
19972   fi
19973 done
19974 done
19975
19976   ;;
19977 esac
19978 fi
19979 DIRNAME=$ac_cv_path_DIRNAME
19980
19981 if test -n "$DIRNAME"; then
19982   echo "$as_me:$LINENO: result: $DIRNAME" >&5
19983 echo "${ECHO_T}$DIRNAME" >&6
19984 else
19985   echo "$as_me:$LINENO: result: no" >&5
19986 echo "${ECHO_T}no" >&6
19987 fi
19988
19989 # Extract the first word of "grep", so it can be a program name with args.
19990 set dummy grep; ac_word=$2
19991 echo "$as_me:$LINENO: checking for $ac_word" >&5
19992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19993 if test "${ac_cv_path_GREP+set}" = set; then
19994   echo $ECHO_N "(cached) $ECHO_C" >&6
19995 else
19996   case $GREP in
19997   [\\/]* | ?:[\\/]*)
19998   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
19999   ;;
20000   *)
20001   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20002 for as_dir in $PATH
20003 do
20004   IFS=$as_save_IFS
20005   test -z "$as_dir" && as_dir=.
20006   for ac_exec_ext in '' $ac_executable_extensions; do
20007   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20008     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
20009     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20010     break 2
20011   fi
20012 done
20013 done
20014
20015   ;;
20016 esac
20017 fi
20018 GREP=$ac_cv_path_GREP
20019
20020 if test -n "$GREP"; then
20021   echo "$as_me:$LINENO: result: $GREP" >&5
20022 echo "${ECHO_T}$GREP" >&6
20023 else
20024   echo "$as_me:$LINENO: result: no" >&5
20025 echo "${ECHO_T}no" >&6
20026 fi
20027
20028
20029
20030 old_CFLAGS=$CFLAGS
20031 if test "x$WITH_THREADS" = "xyes"; then
20032   if test $ac_cv_prog_suncc = "yes"; then
20033     CFLAGS="$CFLAGS -mt"
20034   fi
20035
20036
20037 for ac_header in pthread.h
20038 do
20039 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20040 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20041   echo "$as_me:$LINENO: checking for $ac_header" >&5
20042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20043 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20044   echo $ECHO_N "(cached) $ECHO_C" >&6
20045 fi
20046 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20047 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20048 else
20049   # Is the header compilable?
20050 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20051 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20052 cat >conftest.$ac_ext <<_ACEOF
20053 /* confdefs.h.  */
20054 _ACEOF
20055 cat confdefs.h >>conftest.$ac_ext
20056 cat >>conftest.$ac_ext <<_ACEOF
20057 /* end confdefs.h.  */
20058 $ac_includes_default
20059 #include <$ac_header>
20060 _ACEOF
20061 rm -f conftest.$ac_objext
20062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20063   (eval $ac_compile) 2>conftest.er1
20064   ac_status=$?
20065   grep -v '^ *+' conftest.er1 >conftest.err
20066   rm -f conftest.er1
20067   cat conftest.err >&5
20068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20069   (exit $ac_status); } &&
20070          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20072   (eval $ac_try) 2>&5
20073   ac_status=$?
20074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075   (exit $ac_status); }; } &&
20076          { ac_try='test -s conftest.$ac_objext'
20077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20078   (eval $ac_try) 2>&5
20079   ac_status=$?
20080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20081   (exit $ac_status); }; }; then
20082   ac_header_compiler=yes
20083 else
20084   echo "$as_me: failed program was:" >&5
20085 sed 's/^/| /' conftest.$ac_ext >&5
20086
20087 ac_header_compiler=no
20088 fi
20089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20090 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20091 echo "${ECHO_T}$ac_header_compiler" >&6
20092
20093 # Is the header present?
20094 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20095 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20096 cat >conftest.$ac_ext <<_ACEOF
20097 /* confdefs.h.  */
20098 _ACEOF
20099 cat confdefs.h >>conftest.$ac_ext
20100 cat >>conftest.$ac_ext <<_ACEOF
20101 /* end confdefs.h.  */
20102 #include <$ac_header>
20103 _ACEOF
20104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20105   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20106   ac_status=$?
20107   grep -v '^ *+' conftest.er1 >conftest.err
20108   rm -f conftest.er1
20109   cat conftest.err >&5
20110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111   (exit $ac_status); } >/dev/null; then
20112   if test -s conftest.err; then
20113     ac_cpp_err=$ac_c_preproc_warn_flag
20114     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20115   else
20116     ac_cpp_err=
20117   fi
20118 else
20119   ac_cpp_err=yes
20120 fi
20121 if test -z "$ac_cpp_err"; then
20122   ac_header_preproc=yes
20123 else
20124   echo "$as_me: failed program was:" >&5
20125 sed 's/^/| /' conftest.$ac_ext >&5
20126
20127   ac_header_preproc=no
20128 fi
20129 rm -f conftest.err conftest.$ac_ext
20130 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20131 echo "${ECHO_T}$ac_header_preproc" >&6
20132
20133 # So?  What about this header?
20134 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20135   yes:no: )
20136     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20137 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20138     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20139 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20140     ac_header_preproc=yes
20141     ;;
20142   no:yes:* )
20143     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20144 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20145     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20146 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20147     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20148 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20149     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20150 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20151     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20152 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20153     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20154 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20155     (
20156       cat <<\_ASBOX
20157 ## ------------------------------------------ ##
20158 ## Report this to the AC_PACKAGE_NAME lists.  ##
20159 ## ------------------------------------------ ##
20160 _ASBOX
20161     ) |
20162       sed "s/^/$as_me: WARNING:     /" >&2
20163     ;;
20164 esac
20165 echo "$as_me:$LINENO: checking for $ac_header" >&5
20166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20167 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20168   echo $ECHO_N "(cached) $ECHO_C" >&6
20169 else
20170   eval "$as_ac_Header=\$ac_header_preproc"
20171 fi
20172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20173 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20174
20175 fi
20176 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20177   cat >>confdefs.h <<_ACEOF
20178 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20179 _ACEOF
20180
20181 else
20182    WITH_THREADS="no"
20183 fi
20184
20185 done
20186
20187
20188   echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20189 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
20190 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20191   echo $ECHO_N "(cached) $ECHO_C" >&6
20192 else
20193   ac_check_lib_save_LIBS=$LIBS
20194 LIBS="-lpthread  $LIBS"
20195 cat >conftest.$ac_ext <<_ACEOF
20196 /* confdefs.h.  */
20197 _ACEOF
20198 cat confdefs.h >>conftest.$ac_ext
20199 cat >>conftest.$ac_ext <<_ACEOF
20200 /* end confdefs.h.  */
20201
20202 /* Override any gcc2 internal prototype to avoid an error.  */
20203 #ifdef __cplusplus
20204 extern "C"
20205 #endif
20206 /* We use char because int might match the return type of a gcc2
20207    builtin and then its argument prototype would still apply.  */
20208 char pthread_create ();
20209 int
20210 main ()
20211 {
20212 pthread_create ();
20213   ;
20214   return 0;
20215 }
20216 _ACEOF
20217 rm -f conftest.$ac_objext conftest$ac_exeext
20218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20219   (eval $ac_link) 2>conftest.er1
20220   ac_status=$?
20221   grep -v '^ *+' conftest.er1 >conftest.err
20222   rm -f conftest.er1
20223   cat conftest.err >&5
20224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20225   (exit $ac_status); } &&
20226          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20228   (eval $ac_try) 2>&5
20229   ac_status=$?
20230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231   (exit $ac_status); }; } &&
20232          { ac_try='test -s conftest$ac_exeext'
20233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20234   (eval $ac_try) 2>&5
20235   ac_status=$?
20236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237   (exit $ac_status); }; }; then
20238   ac_cv_lib_pthread_pthread_create=yes
20239 else
20240   echo "$as_me: failed program was:" >&5
20241 sed 's/^/| /' conftest.$ac_ext >&5
20242
20243 ac_cv_lib_pthread_pthread_create=no
20244 fi
20245 rm -f conftest.err conftest.$ac_objext \
20246       conftest$ac_exeext conftest.$ac_ext
20247 LIBS=$ac_check_lib_save_LIBS
20248 fi
20249 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20250 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
20251 if test $ac_cv_lib_pthread_pthread_create = yes; then
20252    CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
20253                   LIBS="$LIBS -lpthread"
20254 else
20255   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
20256 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
20257 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
20258   echo $ECHO_N "(cached) $ECHO_C" >&6
20259 else
20260   ac_check_lib_save_LIBS=$LIBS
20261 LIBS="-lc_r  $LIBS"
20262 cat >conftest.$ac_ext <<_ACEOF
20263 /* confdefs.h.  */
20264 _ACEOF
20265 cat confdefs.h >>conftest.$ac_ext
20266 cat >>conftest.$ac_ext <<_ACEOF
20267 /* end confdefs.h.  */
20268
20269 /* Override any gcc2 internal prototype to avoid an error.  */
20270 #ifdef __cplusplus
20271 extern "C"
20272 #endif
20273 /* We use char because int might match the return type of a gcc2
20274    builtin and then its argument prototype would still apply.  */
20275 char pthread_create ();
20276 int
20277 main ()
20278 {
20279 pthread_create ();
20280   ;
20281   return 0;
20282 }
20283 _ACEOF
20284 rm -f conftest.$ac_objext conftest$ac_exeext
20285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20286   (eval $ac_link) 2>conftest.er1
20287   ac_status=$?
20288   grep -v '^ *+' conftest.er1 >conftest.err
20289   rm -f conftest.er1
20290   cat conftest.err >&5
20291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292   (exit $ac_status); } &&
20293          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20295   (eval $ac_try) 2>&5
20296   ac_status=$?
20297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298   (exit $ac_status); }; } &&
20299          { ac_try='test -s conftest$ac_exeext'
20300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20301   (eval $ac_try) 2>&5
20302   ac_status=$?
20303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304   (exit $ac_status); }; }; then
20305   ac_cv_lib_c_r_pthread_create=yes
20306 else
20307   echo "$as_me: failed program was:" >&5
20308 sed 's/^/| /' conftest.$ac_ext >&5
20309
20310 ac_cv_lib_c_r_pthread_create=no
20311 fi
20312 rm -f conftest.err conftest.$ac_objext \
20313       conftest$ac_exeext conftest.$ac_ext
20314 LIBS=$ac_check_lib_save_LIBS
20315 fi
20316 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
20317 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
20318 if test $ac_cv_lib_c_r_pthread_create = yes; then
20319    CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
20320 else
20321    WITH_THREADS="no"
20322
20323 fi
20324
20325
20326 fi
20327
20328 fi
20329
20330 if test "x$WITH_THREADS" != "xyes"; then
20331   CFLAGS=$old_CFLAGS
20332   ac_cv_header_pthread_h="no"
20333   WITH_THREADS=no
20334 else
20335
20336   echo "$as_me:$LINENO: checking for library containing sem_init" >&5
20337 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
20338 if test "${ac_cv_search_sem_init+set}" = set; then
20339   echo $ECHO_N "(cached) $ECHO_C" >&6
20340 else
20341   ac_func_search_save_LIBS=$LIBS
20342 ac_cv_search_sem_init=no
20343 cat >conftest.$ac_ext <<_ACEOF
20344 /* confdefs.h.  */
20345 _ACEOF
20346 cat confdefs.h >>conftest.$ac_ext
20347 cat >>conftest.$ac_ext <<_ACEOF
20348 /* end confdefs.h.  */
20349
20350 /* Override any gcc2 internal prototype to avoid an error.  */
20351 #ifdef __cplusplus
20352 extern "C"
20353 #endif
20354 /* We use char because int might match the return type of a gcc2
20355    builtin and then its argument prototype would still apply.  */
20356 char sem_init ();
20357 int
20358 main ()
20359 {
20360 sem_init ();
20361   ;
20362   return 0;
20363 }
20364 _ACEOF
20365 rm -f conftest.$ac_objext conftest$ac_exeext
20366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20367   (eval $ac_link) 2>conftest.er1
20368   ac_status=$?
20369   grep -v '^ *+' conftest.er1 >conftest.err
20370   rm -f conftest.er1
20371   cat conftest.err >&5
20372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20373   (exit $ac_status); } &&
20374          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20376   (eval $ac_try) 2>&5
20377   ac_status=$?
20378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20379   (exit $ac_status); }; } &&
20380          { ac_try='test -s conftest$ac_exeext'
20381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20382   (eval $ac_try) 2>&5
20383   ac_status=$?
20384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385   (exit $ac_status); }; }; then
20386   ac_cv_search_sem_init="none required"
20387 else
20388   echo "$as_me: failed program was:" >&5
20389 sed 's/^/| /' conftest.$ac_ext >&5
20390
20391 fi
20392 rm -f conftest.err conftest.$ac_objext \
20393       conftest$ac_exeext conftest.$ac_ext
20394 if test "$ac_cv_search_sem_init" = no; then
20395   for ac_lib in pthread sem posix4 rt semaphore; do
20396     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20397     cat >conftest.$ac_ext <<_ACEOF
20398 /* confdefs.h.  */
20399 _ACEOF
20400 cat confdefs.h >>conftest.$ac_ext
20401 cat >>conftest.$ac_ext <<_ACEOF
20402 /* end confdefs.h.  */
20403
20404 /* Override any gcc2 internal prototype to avoid an error.  */
20405 #ifdef __cplusplus
20406 extern "C"
20407 #endif
20408 /* We use char because int might match the return type of a gcc2
20409    builtin and then its argument prototype would still apply.  */
20410 char sem_init ();
20411 int
20412 main ()
20413 {
20414 sem_init ();
20415   ;
20416   return 0;
20417 }
20418 _ACEOF
20419 rm -f conftest.$ac_objext conftest$ac_exeext
20420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20421   (eval $ac_link) 2>conftest.er1
20422   ac_status=$?
20423   grep -v '^ *+' conftest.er1 >conftest.err
20424   rm -f conftest.er1
20425   cat conftest.err >&5
20426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427   (exit $ac_status); } &&
20428          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20430   (eval $ac_try) 2>&5
20431   ac_status=$?
20432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20433   (exit $ac_status); }; } &&
20434          { ac_try='test -s conftest$ac_exeext'
20435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20436   (eval $ac_try) 2>&5
20437   ac_status=$?
20438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439   (exit $ac_status); }; }; then
20440   ac_cv_search_sem_init="-l$ac_lib"
20441 break
20442 else
20443   echo "$as_me: failed program was:" >&5
20444 sed 's/^/| /' conftest.$ac_ext >&5
20445
20446 fi
20447 rm -f conftest.err conftest.$ac_objext \
20448       conftest$ac_exeext conftest.$ac_ext
20449   done
20450 fi
20451 LIBS=$ac_func_search_save_LIBS
20452 fi
20453 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
20454 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
20455 if test "$ac_cv_search_sem_init" != no; then
20456   test "$ac_cv_search_sem_init" = "none required" || LIBS="$ac_cv_search_sem_init $LIBS"
20457
20458 else
20459   { { 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
20460 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;}
20461    { (exit 1); exit 1; }; }
20462
20463 fi
20464
20465 fi
20466
20467
20468 echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
20469 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6
20470 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
20471   echo $ECHO_N "(cached) $ECHO_C" >&6
20472 else
20473   ac_check_lib_save_LIBS=$LIBS
20474 LIBS="-lsocket  $LIBS"
20475 cat >conftest.$ac_ext <<_ACEOF
20476 /* confdefs.h.  */
20477 _ACEOF
20478 cat confdefs.h >>conftest.$ac_ext
20479 cat >>conftest.$ac_ext <<_ACEOF
20480 /* end confdefs.h.  */
20481
20482 /* Override any gcc2 internal prototype to avoid an error.  */
20483 #ifdef __cplusplus
20484 extern "C"
20485 #endif
20486 /* We use char because int might match the return type of a gcc2
20487    builtin and then its argument prototype would still apply.  */
20488 char getsockname ();
20489 int
20490 main ()
20491 {
20492 getsockname ();
20493   ;
20494   return 0;
20495 }
20496 _ACEOF
20497 rm -f conftest.$ac_objext conftest$ac_exeext
20498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20499   (eval $ac_link) 2>conftest.er1
20500   ac_status=$?
20501   grep -v '^ *+' conftest.er1 >conftest.err
20502   rm -f conftest.er1
20503   cat conftest.err >&5
20504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505   (exit $ac_status); } &&
20506          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20508   (eval $ac_try) 2>&5
20509   ac_status=$?
20510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511   (exit $ac_status); }; } &&
20512          { ac_try='test -s conftest$ac_exeext'
20513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20514   (eval $ac_try) 2>&5
20515   ac_status=$?
20516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20517   (exit $ac_status); }; }; then
20518   ac_cv_lib_socket_getsockname=yes
20519 else
20520   echo "$as_me: failed program was:" >&5
20521 sed 's/^/| /' conftest.$ac_ext >&5
20522
20523 ac_cv_lib_socket_getsockname=no
20524 fi
20525 rm -f conftest.err conftest.$ac_objext \
20526       conftest$ac_exeext conftest.$ac_ext
20527 LIBS=$ac_check_lib_save_LIBS
20528 fi
20529 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
20530 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6
20531 if test $ac_cv_lib_socket_getsockname = yes; then
20532   cat >>confdefs.h <<_ACEOF
20533 #define HAVE_LIBSOCKET 1
20534 _ACEOF
20535
20536   LIBS="-lsocket $LIBS"
20537
20538 fi
20539
20540
20541
20542 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
20543 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
20544 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
20545   echo $ECHO_N "(cached) $ECHO_C" >&6
20546 else
20547   ac_check_lib_save_LIBS=$LIBS
20548 LIBS="-lresolv  $LIBS"
20549 cat >conftest.$ac_ext <<_ACEOF
20550 /* confdefs.h.  */
20551 _ACEOF
20552 cat confdefs.h >>conftest.$ac_ext
20553 cat >>conftest.$ac_ext <<_ACEOF
20554 /* end confdefs.h.  */
20555
20556 /* Override any gcc2 internal prototype to avoid an error.  */
20557 #ifdef __cplusplus
20558 extern "C"
20559 #endif
20560 /* We use char because int might match the return type of a gcc2
20561    builtin and then its argument prototype would still apply.  */
20562 char inet_aton ();
20563 int
20564 main ()
20565 {
20566 inet_aton ();
20567   ;
20568   return 0;
20569 }
20570 _ACEOF
20571 rm -f conftest.$ac_objext conftest$ac_exeext
20572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20573   (eval $ac_link) 2>conftest.er1
20574   ac_status=$?
20575   grep -v '^ *+' conftest.er1 >conftest.err
20576   rm -f conftest.er1
20577   cat conftest.err >&5
20578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20579   (exit $ac_status); } &&
20580          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20582   (eval $ac_try) 2>&5
20583   ac_status=$?
20584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20585   (exit $ac_status); }; } &&
20586          { ac_try='test -s conftest$ac_exeext'
20587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20588   (eval $ac_try) 2>&5
20589   ac_status=$?
20590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20591   (exit $ac_status); }; }; then
20592   ac_cv_lib_resolv_inet_aton=yes
20593 else
20594   echo "$as_me: failed program was:" >&5
20595 sed 's/^/| /' conftest.$ac_ext >&5
20596
20597 ac_cv_lib_resolv_inet_aton=no
20598 fi
20599 rm -f conftest.err conftest.$ac_objext \
20600       conftest$ac_exeext conftest.$ac_ext
20601 LIBS=$ac_check_lib_save_LIBS
20602 fi
20603 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
20604 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
20605 if test $ac_cv_lib_resolv_inet_aton = yes; then
20606   cat >>confdefs.h <<_ACEOF
20607 #define HAVE_LIBRESOLV 1
20608 _ACEOF
20609
20610   LIBS="-lresolv $LIBS"
20611
20612 fi
20613
20614
20615
20616 echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
20617 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6
20618 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
20619   echo $ECHO_N "(cached) $ECHO_C" >&6
20620 else
20621   ac_check_lib_save_LIBS=$LIBS
20622 LIBS="-lnsl  $LIBS"
20623 cat >conftest.$ac_ext <<_ACEOF
20624 /* confdefs.h.  */
20625 _ACEOF
20626 cat confdefs.h >>conftest.$ac_ext
20627 cat >>conftest.$ac_ext <<_ACEOF
20628 /* end confdefs.h.  */
20629
20630 /* Override any gcc2 internal prototype to avoid an error.  */
20631 #ifdef __cplusplus
20632 extern "C"
20633 #endif
20634 /* We use char because int might match the return type of a gcc2
20635    builtin and then its argument prototype would still apply.  */
20636 char inet_ntoa ();
20637 int
20638 main ()
20639 {
20640 inet_ntoa ();
20641   ;
20642   return 0;
20643 }
20644 _ACEOF
20645 rm -f conftest.$ac_objext conftest$ac_exeext
20646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20647   (eval $ac_link) 2>conftest.er1
20648   ac_status=$?
20649   grep -v '^ *+' conftest.er1 >conftest.err
20650   rm -f conftest.er1
20651   cat conftest.err >&5
20652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20653   (exit $ac_status); } &&
20654          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20656   (eval $ac_try) 2>&5
20657   ac_status=$?
20658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659   (exit $ac_status); }; } &&
20660          { ac_try='test -s conftest$ac_exeext'
20661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20662   (eval $ac_try) 2>&5
20663   ac_status=$?
20664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20665   (exit $ac_status); }; }; then
20666   ac_cv_lib_nsl_inet_ntoa=yes
20667 else
20668   echo "$as_me: failed program was:" >&5
20669 sed 's/^/| /' conftest.$ac_ext >&5
20670
20671 ac_cv_lib_nsl_inet_ntoa=no
20672 fi
20673 rm -f conftest.err conftest.$ac_objext \
20674       conftest$ac_exeext conftest.$ac_ext
20675 LIBS=$ac_check_lib_save_LIBS
20676 fi
20677 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
20678 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6
20679 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
20680   cat >>confdefs.h <<_ACEOF
20681 #define HAVE_LIBNSL 1
20682 _ACEOF
20683
20684   LIBS="-lnsl $LIBS"
20685
20686 fi
20687
20688
20689 OPENSSL_LIBS=
20690 old_LIBS=$LIBS
20691 if test "x$OPENSSL_LIB_DIR" != "x"; then
20692     LIBS="-L$OPENSSL_LIB_DIR $LIBS"
20693 fi
20694 echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
20695 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6
20696 if test "${ac_cv_lib_crypto_DH_new+set}" = set; then
20697   echo $ECHO_N "(cached) $ECHO_C" >&6
20698 else
20699   ac_check_lib_save_LIBS=$LIBS
20700 LIBS="-lcrypto  $LIBS"
20701 cat >conftest.$ac_ext <<_ACEOF
20702 /* confdefs.h.  */
20703 _ACEOF
20704 cat confdefs.h >>conftest.$ac_ext
20705 cat >>conftest.$ac_ext <<_ACEOF
20706 /* end confdefs.h.  */
20707
20708 /* Override any gcc2 internal prototype to avoid an error.  */
20709 #ifdef __cplusplus
20710 extern "C"
20711 #endif
20712 /* We use char because int might match the return type of a gcc2
20713    builtin and then its argument prototype would still apply.  */
20714 char DH_new ();
20715 int
20716 main ()
20717 {
20718 DH_new ();
20719   ;
20720   return 0;
20721 }
20722 _ACEOF
20723 rm -f conftest.$ac_objext conftest$ac_exeext
20724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20725   (eval $ac_link) 2>conftest.er1
20726   ac_status=$?
20727   grep -v '^ *+' conftest.er1 >conftest.err
20728   rm -f conftest.er1
20729   cat conftest.err >&5
20730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20731   (exit $ac_status); } &&
20732          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20734   (eval $ac_try) 2>&5
20735   ac_status=$?
20736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20737   (exit $ac_status); }; } &&
20738          { ac_try='test -s conftest$ac_exeext'
20739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20740   (eval $ac_try) 2>&5
20741   ac_status=$?
20742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743   (exit $ac_status); }; }; then
20744   ac_cv_lib_crypto_DH_new=yes
20745 else
20746   echo "$as_me: failed program was:" >&5
20747 sed 's/^/| /' conftest.$ac_ext >&5
20748
20749 ac_cv_lib_crypto_DH_new=no
20750 fi
20751 rm -f conftest.err conftest.$ac_objext \
20752       conftest$ac_exeext conftest.$ac_ext
20753 LIBS=$ac_check_lib_save_LIBS
20754 fi
20755 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DH_new" >&5
20756 echo "${ECHO_T}$ac_cv_lib_crypto_DH_new" >&6
20757 if test $ac_cv_lib_crypto_DH_new = yes; then
20758
20759
20760 cat >>confdefs.h <<\_ACEOF
20761 #define HAVE_LIBCRYPTO 1
20762 _ACEOF
20763
20764         echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
20765 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6
20766 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
20767   echo $ECHO_N "(cached) $ECHO_C" >&6
20768 else
20769   ac_check_lib_save_LIBS=$LIBS
20770 LIBS="-lssl  $LIBS"
20771 cat >conftest.$ac_ext <<_ACEOF
20772 /* confdefs.h.  */
20773 _ACEOF
20774 cat confdefs.h >>conftest.$ac_ext
20775 cat >>conftest.$ac_ext <<_ACEOF
20776 /* end confdefs.h.  */
20777
20778 /* Override any gcc2 internal prototype to avoid an error.  */
20779 #ifdef __cplusplus
20780 extern "C"
20781 #endif
20782 /* We use char because int might match the return type of a gcc2
20783    builtin and then its argument prototype would still apply.  */
20784 char SSL_new ();
20785 int
20786 main ()
20787 {
20788 SSL_new ();
20789   ;
20790   return 0;
20791 }
20792 _ACEOF
20793 rm -f conftest.$ac_objext conftest$ac_exeext
20794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20795   (eval $ac_link) 2>conftest.er1
20796   ac_status=$?
20797   grep -v '^ *+' conftest.er1 >conftest.err
20798   rm -f conftest.er1
20799   cat conftest.err >&5
20800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20801   (exit $ac_status); } &&
20802          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20804   (eval $ac_try) 2>&5
20805   ac_status=$?
20806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807   (exit $ac_status); }; } &&
20808          { ac_try='test -s conftest$ac_exeext'
20809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20810   (eval $ac_try) 2>&5
20811   ac_status=$?
20812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813   (exit $ac_status); }; }; then
20814   ac_cv_lib_ssl_SSL_new=yes
20815 else
20816   echo "$as_me: failed program was:" >&5
20817 sed 's/^/| /' conftest.$ac_ext >&5
20818
20819 ac_cv_lib_ssl_SSL_new=no
20820 fi
20821 rm -f conftest.err conftest.$ac_objext \
20822       conftest$ac_exeext conftest.$ac_ext
20823 LIBS=$ac_check_lib_save_LIBS
20824 fi
20825 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
20826 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6
20827 if test $ac_cv_lib_ssl_SSL_new = yes; then
20828
20829
20830 cat >>confdefs.h <<\_ACEOF
20831 #define HAVE_LIBSSL 1
20832 _ACEOF
20833
20834                 if test "x$OPENSSL_LIB_DIR" != "x"; then
20835                     OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
20836                 fi
20837                 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
20838
20839 fi
20840
20841
20842 fi
20843
20844 LIBS=$old_LIBS
20845
20846 PCAP_LIBS=
20847 echo "$as_me:$LINENO: checking for pcap_open_live in -lpcap" >&5
20848 echo $ECHO_N "checking for pcap_open_live in -lpcap... $ECHO_C" >&6
20849 if test "${ac_cv_lib_pcap_pcap_open_live+set}" = set; then
20850   echo $ECHO_N "(cached) $ECHO_C" >&6
20851 else
20852   ac_check_lib_save_LIBS=$LIBS
20853 LIBS="-lpcap  $LIBS"
20854 cat >conftest.$ac_ext <<_ACEOF
20855 /* confdefs.h.  */
20856 _ACEOF
20857 cat confdefs.h >>conftest.$ac_ext
20858 cat >>conftest.$ac_ext <<_ACEOF
20859 /* end confdefs.h.  */
20860
20861 /* Override any gcc2 internal prototype to avoid an error.  */
20862 #ifdef __cplusplus
20863 extern "C"
20864 #endif
20865 /* We use char because int might match the return type of a gcc2
20866    builtin and then its argument prototype would still apply.  */
20867 char pcap_open_live ();
20868 int
20869 main ()
20870 {
20871 pcap_open_live ();
20872   ;
20873   return 0;
20874 }
20875 _ACEOF
20876 rm -f conftest.$ac_objext conftest$ac_exeext
20877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20878   (eval $ac_link) 2>conftest.er1
20879   ac_status=$?
20880   grep -v '^ *+' conftest.er1 >conftest.err
20881   rm -f conftest.er1
20882   cat conftest.err >&5
20883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20884   (exit $ac_status); } &&
20885          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20887   (eval $ac_try) 2>&5
20888   ac_status=$?
20889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20890   (exit $ac_status); }; } &&
20891          { ac_try='test -s conftest$ac_exeext'
20892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20893   (eval $ac_try) 2>&5
20894   ac_status=$?
20895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20896   (exit $ac_status); }; }; then
20897   ac_cv_lib_pcap_pcap_open_live=yes
20898 else
20899   echo "$as_me: failed program was:" >&5
20900 sed 's/^/| /' conftest.$ac_ext >&5
20901
20902 ac_cv_lib_pcap_pcap_open_live=no
20903 fi
20904 rm -f conftest.err conftest.$ac_objext \
20905       conftest$ac_exeext conftest.$ac_ext
20906 LIBS=$ac_check_lib_save_LIBS
20907 fi
20908 echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_pcap_open_live" >&5
20909 echo "${ECHO_T}$ac_cv_lib_pcap_pcap_open_live" >&6
20910 if test $ac_cv_lib_pcap_pcap_open_live = yes; then
20911    PCAP_LIBS="-lpcap"
20912
20913 cat >>confdefs.h <<\_ACEOF
20914 #define HAVE_LIBPCAP 1
20915 _ACEOF
20916
20917
20918 else
20919    { echo "$as_me:$LINENO: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
20920 echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
20921 fi
20922
20923
20924
20925 case "$host" in
20926 *-interix*)
20927         CFLAGS="$CFLAGS -D_ALL_SOURCE"
20928         ;;
20929 *-darwin*)
20930         CFLAGS="$CFLAGS -DDARWIN"
20931         ;;
20932 esac
20933
20934
20935
20936
20937
20938
20939 ac_header_dirent=no
20940 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20941   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20942 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20943 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
20944 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20945   echo $ECHO_N "(cached) $ECHO_C" >&6
20946 else
20947   cat >conftest.$ac_ext <<_ACEOF
20948 /* confdefs.h.  */
20949 _ACEOF
20950 cat confdefs.h >>conftest.$ac_ext
20951 cat >>conftest.$ac_ext <<_ACEOF
20952 /* end confdefs.h.  */
20953 #include <sys/types.h>
20954 #include <$ac_hdr>
20955
20956 int
20957 main ()
20958 {
20959 if ((DIR *) 0)
20960 return 0;
20961   ;
20962   return 0;
20963 }
20964 _ACEOF
20965 rm -f conftest.$ac_objext
20966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20967   (eval $ac_compile) 2>conftest.er1
20968   ac_status=$?
20969   grep -v '^ *+' conftest.er1 >conftest.err
20970   rm -f conftest.er1
20971   cat conftest.err >&5
20972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973   (exit $ac_status); } &&
20974          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20976   (eval $ac_try) 2>&5
20977   ac_status=$?
20978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979   (exit $ac_status); }; } &&
20980          { ac_try='test -s conftest.$ac_objext'
20981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20982   (eval $ac_try) 2>&5
20983   ac_status=$?
20984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20985   (exit $ac_status); }; }; then
20986   eval "$as_ac_Header=yes"
20987 else
20988   echo "$as_me: failed program was:" >&5
20989 sed 's/^/| /' conftest.$ac_ext >&5
20990
20991 eval "$as_ac_Header=no"
20992 fi
20993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20994 fi
20995 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20996 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20997 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20998   cat >>confdefs.h <<_ACEOF
20999 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21000 _ACEOF
21001
21002 ac_header_dirent=$ac_hdr; break
21003 fi
21004
21005 done
21006 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21007 if test $ac_header_dirent = dirent.h; then
21008   echo "$as_me:$LINENO: checking for library containing opendir" >&5
21009 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
21010 if test "${ac_cv_search_opendir+set}" = set; then
21011   echo $ECHO_N "(cached) $ECHO_C" >&6
21012 else
21013   ac_func_search_save_LIBS=$LIBS
21014 ac_cv_search_opendir=no
21015 cat >conftest.$ac_ext <<_ACEOF
21016 /* confdefs.h.  */
21017 _ACEOF
21018 cat confdefs.h >>conftest.$ac_ext
21019 cat >>conftest.$ac_ext <<_ACEOF
21020 /* end confdefs.h.  */
21021
21022 /* Override any gcc2 internal prototype to avoid an error.  */
21023 #ifdef __cplusplus
21024 extern "C"
21025 #endif
21026 /* We use char because int might match the return type of a gcc2
21027    builtin and then its argument prototype would still apply.  */
21028 char opendir ();
21029 int
21030 main ()
21031 {
21032 opendir ();
21033   ;
21034   return 0;
21035 }
21036 _ACEOF
21037 rm -f conftest.$ac_objext conftest$ac_exeext
21038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21039   (eval $ac_link) 2>conftest.er1
21040   ac_status=$?
21041   grep -v '^ *+' conftest.er1 >conftest.err
21042   rm -f conftest.er1
21043   cat conftest.err >&5
21044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21045   (exit $ac_status); } &&
21046          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21048   (eval $ac_try) 2>&5
21049   ac_status=$?
21050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051   (exit $ac_status); }; } &&
21052          { ac_try='test -s conftest$ac_exeext'
21053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21054   (eval $ac_try) 2>&5
21055   ac_status=$?
21056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21057   (exit $ac_status); }; }; then
21058   ac_cv_search_opendir="none required"
21059 else
21060   echo "$as_me: failed program was:" >&5
21061 sed 's/^/| /' conftest.$ac_ext >&5
21062
21063 fi
21064 rm -f conftest.err conftest.$ac_objext \
21065       conftest$ac_exeext conftest.$ac_ext
21066 if test "$ac_cv_search_opendir" = no; then
21067   for ac_lib in dir; do
21068     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21069     cat >conftest.$ac_ext <<_ACEOF
21070 /* confdefs.h.  */
21071 _ACEOF
21072 cat confdefs.h >>conftest.$ac_ext
21073 cat >>conftest.$ac_ext <<_ACEOF
21074 /* end confdefs.h.  */
21075
21076 /* Override any gcc2 internal prototype to avoid an error.  */
21077 #ifdef __cplusplus
21078 extern "C"
21079 #endif
21080 /* We use char because int might match the return type of a gcc2
21081    builtin and then its argument prototype would still apply.  */
21082 char opendir ();
21083 int
21084 main ()
21085 {
21086 opendir ();
21087   ;
21088   return 0;
21089 }
21090 _ACEOF
21091 rm -f conftest.$ac_objext conftest$ac_exeext
21092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21093   (eval $ac_link) 2>conftest.er1
21094   ac_status=$?
21095   grep -v '^ *+' conftest.er1 >conftest.err
21096   rm -f conftest.er1
21097   cat conftest.err >&5
21098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21099   (exit $ac_status); } &&
21100          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21102   (eval $ac_try) 2>&5
21103   ac_status=$?
21104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21105   (exit $ac_status); }; } &&
21106          { ac_try='test -s conftest$ac_exeext'
21107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21108   (eval $ac_try) 2>&5
21109   ac_status=$?
21110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21111   (exit $ac_status); }; }; then
21112   ac_cv_search_opendir="-l$ac_lib"
21113 break
21114 else
21115   echo "$as_me: failed program was:" >&5
21116 sed 's/^/| /' conftest.$ac_ext >&5
21117
21118 fi
21119 rm -f conftest.err conftest.$ac_objext \
21120       conftest$ac_exeext conftest.$ac_ext
21121   done
21122 fi
21123 LIBS=$ac_func_search_save_LIBS
21124 fi
21125 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
21126 echo "${ECHO_T}$ac_cv_search_opendir" >&6
21127 if test "$ac_cv_search_opendir" != no; then
21128   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
21129
21130 fi
21131
21132 else
21133   echo "$as_me:$LINENO: checking for library containing opendir" >&5
21134 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
21135 if test "${ac_cv_search_opendir+set}" = set; then
21136   echo $ECHO_N "(cached) $ECHO_C" >&6
21137 else
21138   ac_func_search_save_LIBS=$LIBS
21139 ac_cv_search_opendir=no
21140 cat >conftest.$ac_ext <<_ACEOF
21141 /* confdefs.h.  */
21142 _ACEOF
21143 cat confdefs.h >>conftest.$ac_ext
21144 cat >>conftest.$ac_ext <<_ACEOF
21145 /* end confdefs.h.  */
21146
21147 /* Override any gcc2 internal prototype to avoid an error.  */
21148 #ifdef __cplusplus
21149 extern "C"
21150 #endif
21151 /* We use char because int might match the return type of a gcc2
21152    builtin and then its argument prototype would still apply.  */
21153 char opendir ();
21154 int
21155 main ()
21156 {
21157 opendir ();
21158   ;
21159   return 0;
21160 }
21161 _ACEOF
21162 rm -f conftest.$ac_objext conftest$ac_exeext
21163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21164   (eval $ac_link) 2>conftest.er1
21165   ac_status=$?
21166   grep -v '^ *+' conftest.er1 >conftest.err
21167   rm -f conftest.er1
21168   cat conftest.err >&5
21169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170   (exit $ac_status); } &&
21171          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21173   (eval $ac_try) 2>&5
21174   ac_status=$?
21175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21176   (exit $ac_status); }; } &&
21177          { ac_try='test -s conftest$ac_exeext'
21178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21179   (eval $ac_try) 2>&5
21180   ac_status=$?
21181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21182   (exit $ac_status); }; }; then
21183   ac_cv_search_opendir="none required"
21184 else
21185   echo "$as_me: failed program was:" >&5
21186 sed 's/^/| /' conftest.$ac_ext >&5
21187
21188 fi
21189 rm -f conftest.err conftest.$ac_objext \
21190       conftest$ac_exeext conftest.$ac_ext
21191 if test "$ac_cv_search_opendir" = no; then
21192   for ac_lib in x; do
21193     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21194     cat >conftest.$ac_ext <<_ACEOF
21195 /* confdefs.h.  */
21196 _ACEOF
21197 cat confdefs.h >>conftest.$ac_ext
21198 cat >>conftest.$ac_ext <<_ACEOF
21199 /* end confdefs.h.  */
21200
21201 /* Override any gcc2 internal prototype to avoid an error.  */
21202 #ifdef __cplusplus
21203 extern "C"
21204 #endif
21205 /* We use char because int might match the return type of a gcc2
21206    builtin and then its argument prototype would still apply.  */
21207 char opendir ();
21208 int
21209 main ()
21210 {
21211 opendir ();
21212   ;
21213   return 0;
21214 }
21215 _ACEOF
21216 rm -f conftest.$ac_objext conftest$ac_exeext
21217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21218   (eval $ac_link) 2>conftest.er1
21219   ac_status=$?
21220   grep -v '^ *+' conftest.er1 >conftest.err
21221   rm -f conftest.er1
21222   cat conftest.err >&5
21223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21224   (exit $ac_status); } &&
21225          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21227   (eval $ac_try) 2>&5
21228   ac_status=$?
21229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21230   (exit $ac_status); }; } &&
21231          { ac_try='test -s conftest$ac_exeext'
21232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21233   (eval $ac_try) 2>&5
21234   ac_status=$?
21235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236   (exit $ac_status); }; }; then
21237   ac_cv_search_opendir="-l$ac_lib"
21238 break
21239 else
21240   echo "$as_me: failed program was:" >&5
21241 sed 's/^/| /' conftest.$ac_ext >&5
21242
21243 fi
21244 rm -f conftest.err conftest.$ac_objext \
21245       conftest$ac_exeext conftest.$ac_ext
21246   done
21247 fi
21248 LIBS=$ac_func_search_save_LIBS
21249 fi
21250 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
21251 echo "${ECHO_T}$ac_cv_search_opendir" >&6
21252 if test "$ac_cv_search_opendir" != no; then
21253   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
21254
21255 fi
21256
21257 fi
21258
21259 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21260 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
21261 if test "${ac_cv_header_stdc+set}" = set; then
21262   echo $ECHO_N "(cached) $ECHO_C" >&6
21263 else
21264   cat >conftest.$ac_ext <<_ACEOF
21265 /* confdefs.h.  */
21266 _ACEOF
21267 cat confdefs.h >>conftest.$ac_ext
21268 cat >>conftest.$ac_ext <<_ACEOF
21269 /* end confdefs.h.  */
21270 #include <stdlib.h>
21271 #include <stdarg.h>
21272 #include <string.h>
21273 #include <float.h>
21274
21275 int
21276 main ()
21277 {
21278
21279   ;
21280   return 0;
21281 }
21282 _ACEOF
21283 rm -f conftest.$ac_objext
21284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21285   (eval $ac_compile) 2>conftest.er1
21286   ac_status=$?
21287   grep -v '^ *+' conftest.er1 >conftest.err
21288   rm -f conftest.er1
21289   cat conftest.err >&5
21290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21291   (exit $ac_status); } &&
21292          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21294   (eval $ac_try) 2>&5
21295   ac_status=$?
21296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21297   (exit $ac_status); }; } &&
21298          { ac_try='test -s conftest.$ac_objext'
21299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21300   (eval $ac_try) 2>&5
21301   ac_status=$?
21302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21303   (exit $ac_status); }; }; then
21304   ac_cv_header_stdc=yes
21305 else
21306   echo "$as_me: failed program was:" >&5
21307 sed 's/^/| /' conftest.$ac_ext >&5
21308
21309 ac_cv_header_stdc=no
21310 fi
21311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21312
21313 if test $ac_cv_header_stdc = yes; then
21314   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21315   cat >conftest.$ac_ext <<_ACEOF
21316 /* confdefs.h.  */
21317 _ACEOF
21318 cat confdefs.h >>conftest.$ac_ext
21319 cat >>conftest.$ac_ext <<_ACEOF
21320 /* end confdefs.h.  */
21321 #include <string.h>
21322
21323 _ACEOF
21324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21325   $EGREP "memchr" >/dev/null 2>&1; then
21326   :
21327 else
21328   ac_cv_header_stdc=no
21329 fi
21330 rm -f conftest*
21331
21332 fi
21333
21334 if test $ac_cv_header_stdc = yes; then
21335   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21336   cat >conftest.$ac_ext <<_ACEOF
21337 /* confdefs.h.  */
21338 _ACEOF
21339 cat confdefs.h >>conftest.$ac_ext
21340 cat >>conftest.$ac_ext <<_ACEOF
21341 /* end confdefs.h.  */
21342 #include <stdlib.h>
21343
21344 _ACEOF
21345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21346   $EGREP "free" >/dev/null 2>&1; then
21347   :
21348 else
21349   ac_cv_header_stdc=no
21350 fi
21351 rm -f conftest*
21352
21353 fi
21354
21355 if test $ac_cv_header_stdc = yes; then
21356   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21357   if test "$cross_compiling" = yes; then
21358   :
21359 else
21360   cat >conftest.$ac_ext <<_ACEOF
21361 /* confdefs.h.  */
21362 _ACEOF
21363 cat confdefs.h >>conftest.$ac_ext
21364 cat >>conftest.$ac_ext <<_ACEOF
21365 /* end confdefs.h.  */
21366 #include <ctype.h>
21367 #if ((' ' & 0x0FF) == 0x020)
21368 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21369 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21370 #else
21371 # define ISLOWER(c) \
21372                    (('a' <= (c) && (c) <= 'i') \
21373                      || ('j' <= (c) && (c) <= 'r') \
21374                      || ('s' <= (c) && (c) <= 'z'))
21375 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21376 #endif
21377
21378 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21379 int
21380 main ()
21381 {
21382   int i;
21383   for (i = 0; i < 256; i++)
21384     if (XOR (islower (i), ISLOWER (i))
21385         || toupper (i) != TOUPPER (i))
21386       exit(2);
21387   exit (0);
21388 }
21389 _ACEOF
21390 rm -f conftest$ac_exeext
21391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21392   (eval $ac_link) 2>&5
21393   ac_status=$?
21394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21395   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21397   (eval $ac_try) 2>&5
21398   ac_status=$?
21399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21400   (exit $ac_status); }; }; then
21401   :
21402 else
21403   echo "$as_me: program exited with status $ac_status" >&5
21404 echo "$as_me: failed program was:" >&5
21405 sed 's/^/| /' conftest.$ac_ext >&5
21406
21407 ( exit $ac_status )
21408 ac_cv_header_stdc=no
21409 fi
21410 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21411 fi
21412 fi
21413 fi
21414 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21415 echo "${ECHO_T}$ac_cv_header_stdc" >&6
21416 if test $ac_cv_header_stdc = yes; then
21417
21418 cat >>confdefs.h <<\_ACEOF
21419 #define STDC_HEADERS 1
21420 _ACEOF
21421
21422 fi
21423
21424 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21425 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
21426 if test "${ac_cv_header_time+set}" = set; then
21427   echo $ECHO_N "(cached) $ECHO_C" >&6
21428 else
21429   cat >conftest.$ac_ext <<_ACEOF
21430 /* confdefs.h.  */
21431 _ACEOF
21432 cat confdefs.h >>conftest.$ac_ext
21433 cat >>conftest.$ac_ext <<_ACEOF
21434 /* end confdefs.h.  */
21435 #include <sys/types.h>
21436 #include <sys/time.h>
21437 #include <time.h>
21438
21439 int
21440 main ()
21441 {
21442 if ((struct tm *) 0)
21443 return 0;
21444   ;
21445   return 0;
21446 }
21447 _ACEOF
21448 rm -f conftest.$ac_objext
21449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21450   (eval $ac_compile) 2>conftest.er1
21451   ac_status=$?
21452   grep -v '^ *+' conftest.er1 >conftest.err
21453   rm -f conftest.er1
21454   cat conftest.err >&5
21455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21456   (exit $ac_status); } &&
21457          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21459   (eval $ac_try) 2>&5
21460   ac_status=$?
21461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462   (exit $ac_status); }; } &&
21463          { ac_try='test -s conftest.$ac_objext'
21464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21465   (eval $ac_try) 2>&5
21466   ac_status=$?
21467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468   (exit $ac_status); }; }; then
21469   ac_cv_header_time=yes
21470 else
21471   echo "$as_me: failed program was:" >&5
21472 sed 's/^/| /' conftest.$ac_ext >&5
21473
21474 ac_cv_header_time=no
21475 fi
21476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21477 fi
21478 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21479 echo "${ECHO_T}$ac_cv_header_time" >&6
21480 if test $ac_cv_header_time = yes; then
21481
21482 cat >>confdefs.h <<\_ACEOF
21483 #define TIME_WITH_SYS_TIME 1
21484 _ACEOF
21485
21486 fi
21487
21488 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
21489 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
21490 if test "${ac_cv_header_sys_wait_h+set}" = set; then
21491   echo $ECHO_N "(cached) $ECHO_C" >&6
21492 else
21493   cat >conftest.$ac_ext <<_ACEOF
21494 /* confdefs.h.  */
21495 _ACEOF
21496 cat confdefs.h >>conftest.$ac_ext
21497 cat >>conftest.$ac_ext <<_ACEOF
21498 /* end confdefs.h.  */
21499 #include <sys/types.h>
21500 #include <sys/wait.h>
21501 #ifndef WEXITSTATUS
21502 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
21503 #endif
21504 #ifndef WIFEXITED
21505 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21506 #endif
21507
21508 int
21509 main ()
21510 {
21511   int s;
21512   wait (&s);
21513   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21514   ;
21515   return 0;
21516 }
21517 _ACEOF
21518 rm -f conftest.$ac_objext
21519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21520   (eval $ac_compile) 2>conftest.er1
21521   ac_status=$?
21522   grep -v '^ *+' conftest.er1 >conftest.err
21523   rm -f conftest.er1
21524   cat conftest.err >&5
21525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21526   (exit $ac_status); } &&
21527          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21529   (eval $ac_try) 2>&5
21530   ac_status=$?
21531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21532   (exit $ac_status); }; } &&
21533          { ac_try='test -s conftest.$ac_objext'
21534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21535   (eval $ac_try) 2>&5
21536   ac_status=$?
21537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21538   (exit $ac_status); }; }; then
21539   ac_cv_header_sys_wait_h=yes
21540 else
21541   echo "$as_me: failed program was:" >&5
21542 sed 's/^/| /' conftest.$ac_ext >&5
21543
21544 ac_cv_header_sys_wait_h=no
21545 fi
21546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21547 fi
21548 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21549 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
21550 if test $ac_cv_header_sys_wait_h = yes; then
21551
21552 cat >>confdefs.h <<\_ACEOF
21553 #define HAVE_SYS_WAIT_H 1
21554 _ACEOF
21555
21556 fi
21557
21558
21559
21560
21561
21562
21563
21564
21565
21566
21567
21568
21569
21570
21571
21572
21573
21574
21575
21576
21577
21578
21579
21580
21581
21582
21583
21584
21585
21586
21587
21588 for ac_header in \
21589         unistd.h \
21590         crypt.h \
21591         errno.h \
21592         resource.h \
21593         getopt.h \
21594         malloc.h \
21595         utmp.h \
21596         utmpx.h \
21597         signal.h \
21598         sys/select.h \
21599         syslog.h \
21600         inttypes.h \
21601         stdint.h \
21602         stdio.h \
21603         netdb.h \
21604         semaphore.h \
21605         arpa/inet.h \
21606         netinet/in.h \
21607         sys/types.h \
21608         sys/socket.h \
21609         sys/time.h \
21610         sys/wait.h \
21611         sys/security.h \
21612         fcntl.h \
21613         sys/fcntl.h \
21614         net/if.h \
21615         prot.h \
21616         sia.h \
21617         siad.h
21618
21619 do
21620 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21621 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21622   echo "$as_me:$LINENO: checking for $ac_header" >&5
21623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21625   echo $ECHO_N "(cached) $ECHO_C" >&6
21626 fi
21627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21628 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21629 else
21630   # Is the header compilable?
21631 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21632 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21633 cat >conftest.$ac_ext <<_ACEOF
21634 /* confdefs.h.  */
21635 _ACEOF
21636 cat confdefs.h >>conftest.$ac_ext
21637 cat >>conftest.$ac_ext <<_ACEOF
21638 /* end confdefs.h.  */
21639 $ac_includes_default
21640 #include <$ac_header>
21641 _ACEOF
21642 rm -f conftest.$ac_objext
21643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21644   (eval $ac_compile) 2>conftest.er1
21645   ac_status=$?
21646   grep -v '^ *+' conftest.er1 >conftest.err
21647   rm -f conftest.er1
21648   cat conftest.err >&5
21649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21650   (exit $ac_status); } &&
21651          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21653   (eval $ac_try) 2>&5
21654   ac_status=$?
21655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656   (exit $ac_status); }; } &&
21657          { ac_try='test -s conftest.$ac_objext'
21658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21659   (eval $ac_try) 2>&5
21660   ac_status=$?
21661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21662   (exit $ac_status); }; }; then
21663   ac_header_compiler=yes
21664 else
21665   echo "$as_me: failed program was:" >&5
21666 sed 's/^/| /' conftest.$ac_ext >&5
21667
21668 ac_header_compiler=no
21669 fi
21670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21671 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21672 echo "${ECHO_T}$ac_header_compiler" >&6
21673
21674 # Is the header present?
21675 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21676 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21677 cat >conftest.$ac_ext <<_ACEOF
21678 /* confdefs.h.  */
21679 _ACEOF
21680 cat confdefs.h >>conftest.$ac_ext
21681 cat >>conftest.$ac_ext <<_ACEOF
21682 /* end confdefs.h.  */
21683 #include <$ac_header>
21684 _ACEOF
21685 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21686   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21687   ac_status=$?
21688   grep -v '^ *+' conftest.er1 >conftest.err
21689   rm -f conftest.er1
21690   cat conftest.err >&5
21691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21692   (exit $ac_status); } >/dev/null; then
21693   if test -s conftest.err; then
21694     ac_cpp_err=$ac_c_preproc_warn_flag
21695     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21696   else
21697     ac_cpp_err=
21698   fi
21699 else
21700   ac_cpp_err=yes
21701 fi
21702 if test -z "$ac_cpp_err"; then
21703   ac_header_preproc=yes
21704 else
21705   echo "$as_me: failed program was:" >&5
21706 sed 's/^/| /' conftest.$ac_ext >&5
21707
21708   ac_header_preproc=no
21709 fi
21710 rm -f conftest.err conftest.$ac_ext
21711 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21712 echo "${ECHO_T}$ac_header_preproc" >&6
21713
21714 # So?  What about this header?
21715 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21716   yes:no: )
21717     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21718 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21719     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21720 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21721     ac_header_preproc=yes
21722     ;;
21723   no:yes:* )
21724     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21725 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21726     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21727 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21728     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21729 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21730     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21731 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21732     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21733 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21734     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21735 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21736     (
21737       cat <<\_ASBOX
21738 ## ------------------------------------------ ##
21739 ## Report this to the AC_PACKAGE_NAME lists.  ##
21740 ## ------------------------------------------ ##
21741 _ASBOX
21742     ) |
21743       sed "s/^/$as_me: WARNING:     /" >&2
21744     ;;
21745 esac
21746 echo "$as_me:$LINENO: checking for $ac_header" >&5
21747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21749   echo $ECHO_N "(cached) $ECHO_C" >&6
21750 else
21751   eval "$as_ac_Header=\$ac_header_preproc"
21752 fi
21753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21754 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21755
21756 fi
21757 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21758   cat >>confdefs.h <<_ACEOF
21759 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21760 _ACEOF
21761
21762 fi
21763
21764 done
21765
21766
21767 REGEX=no
21768 if test "${ac_cv_header_regex_h+set}" = set; then
21769   echo "$as_me:$LINENO: checking for regex.h" >&5
21770 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
21771 if test "${ac_cv_header_regex_h+set}" = set; then
21772   echo $ECHO_N "(cached) $ECHO_C" >&6
21773 fi
21774 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21775 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
21776 else
21777   # Is the header compilable?
21778 echo "$as_me:$LINENO: checking regex.h usability" >&5
21779 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
21780 cat >conftest.$ac_ext <<_ACEOF
21781 /* confdefs.h.  */
21782 _ACEOF
21783 cat confdefs.h >>conftest.$ac_ext
21784 cat >>conftest.$ac_ext <<_ACEOF
21785 /* end confdefs.h.  */
21786 $ac_includes_default
21787 #include <regex.h>
21788 _ACEOF
21789 rm -f conftest.$ac_objext
21790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21791   (eval $ac_compile) 2>conftest.er1
21792   ac_status=$?
21793   grep -v '^ *+' conftest.er1 >conftest.err
21794   rm -f conftest.er1
21795   cat conftest.err >&5
21796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21797   (exit $ac_status); } &&
21798          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21800   (eval $ac_try) 2>&5
21801   ac_status=$?
21802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21803   (exit $ac_status); }; } &&
21804          { ac_try='test -s conftest.$ac_objext'
21805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21806   (eval $ac_try) 2>&5
21807   ac_status=$?
21808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21809   (exit $ac_status); }; }; then
21810   ac_header_compiler=yes
21811 else
21812   echo "$as_me: failed program was:" >&5
21813 sed 's/^/| /' conftest.$ac_ext >&5
21814
21815 ac_header_compiler=no
21816 fi
21817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21818 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21819 echo "${ECHO_T}$ac_header_compiler" >&6
21820
21821 # Is the header present?
21822 echo "$as_me:$LINENO: checking regex.h presence" >&5
21823 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
21824 cat >conftest.$ac_ext <<_ACEOF
21825 /* confdefs.h.  */
21826 _ACEOF
21827 cat confdefs.h >>conftest.$ac_ext
21828 cat >>conftest.$ac_ext <<_ACEOF
21829 /* end confdefs.h.  */
21830 #include <regex.h>
21831 _ACEOF
21832 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21833   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21834   ac_status=$?
21835   grep -v '^ *+' conftest.er1 >conftest.err
21836   rm -f conftest.er1
21837   cat conftest.err >&5
21838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21839   (exit $ac_status); } >/dev/null; then
21840   if test -s conftest.err; then
21841     ac_cpp_err=$ac_c_preproc_warn_flag
21842     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21843   else
21844     ac_cpp_err=
21845   fi
21846 else
21847   ac_cpp_err=yes
21848 fi
21849 if test -z "$ac_cpp_err"; then
21850   ac_header_preproc=yes
21851 else
21852   echo "$as_me: failed program was:" >&5
21853 sed 's/^/| /' conftest.$ac_ext >&5
21854
21855   ac_header_preproc=no
21856 fi
21857 rm -f conftest.err conftest.$ac_ext
21858 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21859 echo "${ECHO_T}$ac_header_preproc" >&6
21860
21861 # So?  What about this header?
21862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21863   yes:no: )
21864     { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
21865 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21866     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
21867 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
21868     ac_header_preproc=yes
21869     ;;
21870   no:yes:* )
21871     { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
21872 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
21873     { echo "$as_me:$LINENO: WARNING: regex.h:     check for missing prerequisite headers?" >&5
21874 echo "$as_me: WARNING: regex.h:     check for missing prerequisite headers?" >&2;}
21875     { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
21876 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
21877     { echo "$as_me:$LINENO: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&5
21878 echo "$as_me: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21879     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
21880 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
21881     { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
21882 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
21883     (
21884       cat <<\_ASBOX
21885 ## ------------------------------------------ ##
21886 ## Report this to the AC_PACKAGE_NAME lists.  ##
21887 ## ------------------------------------------ ##
21888 _ASBOX
21889     ) |
21890       sed "s/^/$as_me: WARNING:     /" >&2
21891     ;;
21892 esac
21893 echo "$as_me:$LINENO: checking for regex.h" >&5
21894 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
21895 if test "${ac_cv_header_regex_h+set}" = set; then
21896   echo $ECHO_N "(cached) $ECHO_C" >&6
21897 else
21898   ac_cv_header_regex_h=$ac_header_preproc
21899 fi
21900 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21901 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
21902
21903 fi
21904 if test $ac_cv_header_regex_h = yes; then
21905
21906 cat >>confdefs.h <<\_ACEOF
21907 #define HAVE_REGEX_H
21908 _ACEOF
21909
21910 fi
21911
21912
21913 if test "x$ac_cv_header_regex_h" = "xyes"; then
21914   REGEX_EXTENDED=no
21915   REGEX=yes
21916   cat >conftest.$ac_ext <<_ACEOF
21917 /* confdefs.h.  */
21918 _ACEOF
21919 cat confdefs.h >>conftest.$ac_ext
21920 cat >>conftest.$ac_ext <<_ACEOF
21921 /* end confdefs.h.  */
21922 #include <regex.h>
21923      #ifdef REG_EXTENDED
21924        yes
21925      #endif
21926
21927 _ACEOF
21928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21929   $EGREP "yes" >/dev/null 2>&1; then
21930
21931 cat >>confdefs.h <<\_ACEOF
21932 #define HAVE_REG_EXTENDED
21933 _ACEOF
21934  REGEX_EXTENDED=yes
21935 fi
21936 rm -f conftest*
21937
21938 fi
21939
21940
21941
21942 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
21943 then
21944
21945 cat >>confdefs.h <<\_ACEOF
21946 #define OSFC2
21947 _ACEOF
21948
21949 fi
21950
21951 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
21952 then
21953
21954 cat >>confdefs.h <<\_ACEOF
21955 #define OSFSIA
21956 _ACEOF
21957
21958 fi
21959
21960 OPENSSL_INCLUDE="-DNO_OPENSSL"
21961 if test "x$OPENSSL_LIBS" = "x"; then
21962     { echo "$as_me:$LINENO: skipping test for openssl/ssl.h" >&5
21963 echo "$as_me: skipping test for openssl/ssl.h" >&6;}
21964 else
21965     old_CPPFLAGS=$CPPFLAGS
21966     if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21967         CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
21968     fi
21969         CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
21970
21971
21972
21973
21974 for ac_header in \
21975         openssl/ssl.h \
21976         openssl/crypto.h \
21977         openssl/err.h \
21978         openssl/engine.h
21979 do
21980 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21981 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21982   echo "$as_me:$LINENO: checking for $ac_header" >&5
21983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21984 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21985   echo $ECHO_N "(cached) $ECHO_C" >&6
21986 fi
21987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21988 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21989 else
21990   # Is the header compilable?
21991 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21992 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21993 cat >conftest.$ac_ext <<_ACEOF
21994 /* confdefs.h.  */
21995 _ACEOF
21996 cat confdefs.h >>conftest.$ac_ext
21997 cat >>conftest.$ac_ext <<_ACEOF
21998 /* end confdefs.h.  */
21999 $ac_includes_default
22000 #include <$ac_header>
22001 _ACEOF
22002 rm -f conftest.$ac_objext
22003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22004   (eval $ac_compile) 2>conftest.er1
22005   ac_status=$?
22006   grep -v '^ *+' conftest.er1 >conftest.err
22007   rm -f conftest.er1
22008   cat conftest.err >&5
22009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22010   (exit $ac_status); } &&
22011          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22013   (eval $ac_try) 2>&5
22014   ac_status=$?
22015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22016   (exit $ac_status); }; } &&
22017          { ac_try='test -s conftest.$ac_objext'
22018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22019   (eval $ac_try) 2>&5
22020   ac_status=$?
22021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22022   (exit $ac_status); }; }; then
22023   ac_header_compiler=yes
22024 else
22025   echo "$as_me: failed program was:" >&5
22026 sed 's/^/| /' conftest.$ac_ext >&5
22027
22028 ac_header_compiler=no
22029 fi
22030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22031 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22032 echo "${ECHO_T}$ac_header_compiler" >&6
22033
22034 # Is the header present?
22035 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22036 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22037 cat >conftest.$ac_ext <<_ACEOF
22038 /* confdefs.h.  */
22039 _ACEOF
22040 cat confdefs.h >>conftest.$ac_ext
22041 cat >>conftest.$ac_ext <<_ACEOF
22042 /* end confdefs.h.  */
22043 #include <$ac_header>
22044 _ACEOF
22045 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22046   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22047   ac_status=$?
22048   grep -v '^ *+' conftest.er1 >conftest.err
22049   rm -f conftest.er1
22050   cat conftest.err >&5
22051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22052   (exit $ac_status); } >/dev/null; then
22053   if test -s conftest.err; then
22054     ac_cpp_err=$ac_c_preproc_warn_flag
22055     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22056   else
22057     ac_cpp_err=
22058   fi
22059 else
22060   ac_cpp_err=yes
22061 fi
22062 if test -z "$ac_cpp_err"; then
22063   ac_header_preproc=yes
22064 else
22065   echo "$as_me: failed program was:" >&5
22066 sed 's/^/| /' conftest.$ac_ext >&5
22067
22068   ac_header_preproc=no
22069 fi
22070 rm -f conftest.err conftest.$ac_ext
22071 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22072 echo "${ECHO_T}$ac_header_preproc" >&6
22073
22074 # So?  What about this header?
22075 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22076   yes:no: )
22077     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22078 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22079     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22080 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22081     ac_header_preproc=yes
22082     ;;
22083   no:yes:* )
22084     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22085 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22086     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22087 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22088     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22089 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22090     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22091 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22092     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22093 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22094     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22095 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22096     (
22097       cat <<\_ASBOX
22098 ## ------------------------------------------ ##
22099 ## Report this to the AC_PACKAGE_NAME lists.  ##
22100 ## ------------------------------------------ ##
22101 _ASBOX
22102     ) |
22103       sed "s/^/$as_me: WARNING:     /" >&2
22104     ;;
22105 esac
22106 echo "$as_me:$LINENO: checking for $ac_header" >&5
22107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22109   echo $ECHO_N "(cached) $ECHO_C" >&6
22110 else
22111   eval "$as_ac_Header=\$ac_header_preproc"
22112 fi
22113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22114 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22115
22116 fi
22117 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22118   cat >>confdefs.h <<_ACEOF
22119 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22120 _ACEOF
22121
22122 else
22123   OPENSSL_LIBS=
22124
22125 fi
22126
22127 done
22128
22129     if test "x$OPENSSL_LIBS" != "x"; then
22130         echo "$as_me:$LINENO: checking for OpenSSL version >= 0.9.7" >&5
22131 echo $ECHO_N "checking for OpenSSL version >= 0.9.7... $ECHO_C" >&6
22132         cat >conftest.$ac_ext <<_ACEOF
22133 /* confdefs.h.  */
22134 _ACEOF
22135 cat confdefs.h >>conftest.$ac_ext
22136 cat >>conftest.$ac_ext <<_ACEOF
22137 /* end confdefs.h.  */
22138 #include <openssl/crypto.h>
22139              #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
22140              yes
22141              #endif
22142
22143 _ACEOF
22144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22145   $EGREP "yes" >/dev/null 2>&1; then
22146   goodssl="yes"
22147 fi
22148 rm -f conftest*
22149
22150         if test "x$goodssl" != "xyes"; then
22151             echo "$as_me:$LINENO: result: no" >&5
22152 echo "${ECHO_T}no" >&6
22153             OPENSSL_LIBS=
22154         else
22155             echo "$as_me:$LINENO: result: yes" >&5
22156 echo "${ECHO_T}yes" >&6
22157             if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
22158                 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
22159             else
22160                 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
22161             fi
22162         fi
22163     fi
22164     CPPFLAGS=$old_CPPFLAGS
22165 fi
22166
22167
22168 export OPENSSL_LIBS
22169
22170 if test "x$PCAP_LIBS" = x; then
22171     { echo "$as_me:$LINENO: skipping test for pcap.h." >&5
22172 echo "$as_me: skipping test for pcap.h." >&6;}
22173 else
22174     if test "${ac_cv_header_pcap_h+set}" = set; then
22175   echo "$as_me:$LINENO: checking for pcap.h" >&5
22176 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6
22177 if test "${ac_cv_header_pcap_h+set}" = set; then
22178   echo $ECHO_N "(cached) $ECHO_C" >&6
22179 fi
22180 echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
22181 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6
22182 else
22183   # Is the header compilable?
22184 echo "$as_me:$LINENO: checking pcap.h usability" >&5
22185 echo $ECHO_N "checking pcap.h usability... $ECHO_C" >&6
22186 cat >conftest.$ac_ext <<_ACEOF
22187 /* confdefs.h.  */
22188 _ACEOF
22189 cat confdefs.h >>conftest.$ac_ext
22190 cat >>conftest.$ac_ext <<_ACEOF
22191 /* end confdefs.h.  */
22192 $ac_includes_default
22193 #include <pcap.h>
22194 _ACEOF
22195 rm -f conftest.$ac_objext
22196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22197   (eval $ac_compile) 2>conftest.er1
22198   ac_status=$?
22199   grep -v '^ *+' conftest.er1 >conftest.err
22200   rm -f conftest.er1
22201   cat conftest.err >&5
22202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22203   (exit $ac_status); } &&
22204          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22206   (eval $ac_try) 2>&5
22207   ac_status=$?
22208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22209   (exit $ac_status); }; } &&
22210          { ac_try='test -s conftest.$ac_objext'
22211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22212   (eval $ac_try) 2>&5
22213   ac_status=$?
22214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22215   (exit $ac_status); }; }; then
22216   ac_header_compiler=yes
22217 else
22218   echo "$as_me: failed program was:" >&5
22219 sed 's/^/| /' conftest.$ac_ext >&5
22220
22221 ac_header_compiler=no
22222 fi
22223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22224 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22225 echo "${ECHO_T}$ac_header_compiler" >&6
22226
22227 # Is the header present?
22228 echo "$as_me:$LINENO: checking pcap.h presence" >&5
22229 echo $ECHO_N "checking pcap.h presence... $ECHO_C" >&6
22230 cat >conftest.$ac_ext <<_ACEOF
22231 /* confdefs.h.  */
22232 _ACEOF
22233 cat confdefs.h >>conftest.$ac_ext
22234 cat >>conftest.$ac_ext <<_ACEOF
22235 /* end confdefs.h.  */
22236 #include <pcap.h>
22237 _ACEOF
22238 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22239   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22240   ac_status=$?
22241   grep -v '^ *+' conftest.er1 >conftest.err
22242   rm -f conftest.er1
22243   cat conftest.err >&5
22244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22245   (exit $ac_status); } >/dev/null; then
22246   if test -s conftest.err; then
22247     ac_cpp_err=$ac_c_preproc_warn_flag
22248     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22249   else
22250     ac_cpp_err=
22251   fi
22252 else
22253   ac_cpp_err=yes
22254 fi
22255 if test -z "$ac_cpp_err"; then
22256   ac_header_preproc=yes
22257 else
22258   echo "$as_me: failed program was:" >&5
22259 sed 's/^/| /' conftest.$ac_ext >&5
22260
22261   ac_header_preproc=no
22262 fi
22263 rm -f conftest.err conftest.$ac_ext
22264 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22265 echo "${ECHO_T}$ac_header_preproc" >&6
22266
22267 # So?  What about this header?
22268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22269   yes:no: )
22270     { echo "$as_me:$LINENO: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
22271 echo "$as_me: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22272     { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the compiler's result" >&5
22273 echo "$as_me: WARNING: pcap.h: proceeding with the compiler's result" >&2;}
22274     ac_header_preproc=yes
22275     ;;
22276   no:yes:* )
22277     { echo "$as_me:$LINENO: WARNING: pcap.h: present but cannot be compiled" >&5
22278 echo "$as_me: WARNING: pcap.h: present but cannot be compiled" >&2;}
22279     { echo "$as_me:$LINENO: WARNING: pcap.h:     check for missing prerequisite headers?" >&5
22280 echo "$as_me: WARNING: pcap.h:     check for missing prerequisite headers?" >&2;}
22281     { echo "$as_me:$LINENO: WARNING: pcap.h: see the Autoconf documentation" >&5
22282 echo "$as_me: WARNING: pcap.h: see the Autoconf documentation" >&2;}
22283     { echo "$as_me:$LINENO: WARNING: pcap.h:     section \"Present But Cannot Be Compiled\"" >&5
22284 echo "$as_me: WARNING: pcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22285     { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the preprocessor's result" >&5
22286 echo "$as_me: WARNING: pcap.h: proceeding with the preprocessor's result" >&2;}
22287     { echo "$as_me:$LINENO: WARNING: pcap.h: in the future, the compiler will take precedence" >&5
22288 echo "$as_me: WARNING: pcap.h: in the future, the compiler will take precedence" >&2;}
22289     (
22290       cat <<\_ASBOX
22291 ## ------------------------------------------ ##
22292 ## Report this to the AC_PACKAGE_NAME lists.  ##
22293 ## ------------------------------------------ ##
22294 _ASBOX
22295     ) |
22296       sed "s/^/$as_me: WARNING:     /" >&2
22297     ;;
22298 esac
22299 echo "$as_me:$LINENO: checking for pcap.h" >&5
22300 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6
22301 if test "${ac_cv_header_pcap_h+set}" = set; then
22302   echo $ECHO_N "(cached) $ECHO_C" >&6
22303 else
22304   ac_cv_header_pcap_h=$ac_header_preproc
22305 fi
22306 echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
22307 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6
22308
22309 fi
22310 if test $ac_cv_header_pcap_h = yes; then
22311
22312 cat >>confdefs.h <<\_ACEOF
22313 #define HAVE_PCAP_H 1
22314 _ACEOF
22315
22316 else
22317    PCAP_LIBS=
22318         { echo "$as_me:$LINENO: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
22319 echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
22320
22321 fi
22322
22323
22324 fi
22325
22326
22327
22328 echo "$as_me:$LINENO: checking for off_t" >&5
22329 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
22330 if test "${ac_cv_type_off_t+set}" = set; then
22331   echo $ECHO_N "(cached) $ECHO_C" >&6
22332 else
22333   cat >conftest.$ac_ext <<_ACEOF
22334 /* confdefs.h.  */
22335 _ACEOF
22336 cat confdefs.h >>conftest.$ac_ext
22337 cat >>conftest.$ac_ext <<_ACEOF
22338 /* end confdefs.h.  */
22339 $ac_includes_default
22340 int
22341 main ()
22342 {
22343 if ((off_t *) 0)
22344   return 0;
22345 if (sizeof (off_t))
22346   return 0;
22347   ;
22348   return 0;
22349 }
22350 _ACEOF
22351 rm -f conftest.$ac_objext
22352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22353   (eval $ac_compile) 2>conftest.er1
22354   ac_status=$?
22355   grep -v '^ *+' conftest.er1 >conftest.err
22356   rm -f conftest.er1
22357   cat conftest.err >&5
22358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22359   (exit $ac_status); } &&
22360          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22362   (eval $ac_try) 2>&5
22363   ac_status=$?
22364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22365   (exit $ac_status); }; } &&
22366          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
22372   ac_cv_type_off_t=yes
22373 else
22374   echo "$as_me: failed program was:" >&5
22375 sed 's/^/| /' conftest.$ac_ext >&5
22376
22377 ac_cv_type_off_t=no
22378 fi
22379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22380 fi
22381 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22382 echo "${ECHO_T}$ac_cv_type_off_t" >&6
22383 if test $ac_cv_type_off_t = yes; then
22384   :
22385 else
22386
22387 cat >>confdefs.h <<_ACEOF
22388 #define off_t long
22389 _ACEOF
22390
22391 fi
22392
22393 echo "$as_me:$LINENO: checking for pid_t" >&5
22394 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
22395 if test "${ac_cv_type_pid_t+set}" = set; then
22396   echo $ECHO_N "(cached) $ECHO_C" >&6
22397 else
22398   cat >conftest.$ac_ext <<_ACEOF
22399 /* confdefs.h.  */
22400 _ACEOF
22401 cat confdefs.h >>conftest.$ac_ext
22402 cat >>conftest.$ac_ext <<_ACEOF
22403 /* end confdefs.h.  */
22404 $ac_includes_default
22405 int
22406 main ()
22407 {
22408 if ((pid_t *) 0)
22409   return 0;
22410 if (sizeof (pid_t))
22411   return 0;
22412   ;
22413   return 0;
22414 }
22415 _ACEOF
22416 rm -f conftest.$ac_objext
22417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22418   (eval $ac_compile) 2>conftest.er1
22419   ac_status=$?
22420   grep -v '^ *+' conftest.er1 >conftest.err
22421   rm -f conftest.er1
22422   cat conftest.err >&5
22423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22424   (exit $ac_status); } &&
22425          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22427   (eval $ac_try) 2>&5
22428   ac_status=$?
22429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22430   (exit $ac_status); }; } &&
22431          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
22437   ac_cv_type_pid_t=yes
22438 else
22439   echo "$as_me: failed program was:" >&5
22440 sed 's/^/| /' conftest.$ac_ext >&5
22441
22442 ac_cv_type_pid_t=no
22443 fi
22444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22445 fi
22446 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22447 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
22448 if test $ac_cv_type_pid_t = yes; then
22449   :
22450 else
22451
22452 cat >>confdefs.h <<_ACEOF
22453 #define pid_t int
22454 _ACEOF
22455
22456 fi
22457
22458 echo "$as_me:$LINENO: checking for size_t" >&5
22459 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22460 if test "${ac_cv_type_size_t+set}" = set; then
22461   echo $ECHO_N "(cached) $ECHO_C" >&6
22462 else
22463   cat >conftest.$ac_ext <<_ACEOF
22464 /* confdefs.h.  */
22465 _ACEOF
22466 cat confdefs.h >>conftest.$ac_ext
22467 cat >>conftest.$ac_ext <<_ACEOF
22468 /* end confdefs.h.  */
22469 $ac_includes_default
22470 int
22471 main ()
22472 {
22473 if ((size_t *) 0)
22474   return 0;
22475 if (sizeof (size_t))
22476   return 0;
22477   ;
22478   return 0;
22479 }
22480 _ACEOF
22481 rm -f conftest.$ac_objext
22482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22483   (eval $ac_compile) 2>conftest.er1
22484   ac_status=$?
22485   grep -v '^ *+' conftest.er1 >conftest.err
22486   rm -f conftest.er1
22487   cat conftest.err >&5
22488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22489   (exit $ac_status); } &&
22490          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22492   (eval $ac_try) 2>&5
22493   ac_status=$?
22494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22495   (exit $ac_status); }; } &&
22496          { ac_try='test -s conftest.$ac_objext'
22497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22498   (eval $ac_try) 2>&5
22499   ac_status=$?
22500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22501   (exit $ac_status); }; }; then
22502   ac_cv_type_size_t=yes
22503 else
22504   echo "$as_me: failed program was:" >&5
22505 sed 's/^/| /' conftest.$ac_ext >&5
22506
22507 ac_cv_type_size_t=no
22508 fi
22509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22510 fi
22511 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22512 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22513 if test $ac_cv_type_size_t = yes; then
22514   :
22515 else
22516
22517 cat >>confdefs.h <<_ACEOF
22518 #define size_t unsigned
22519 _ACEOF
22520
22521 fi
22522
22523 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22524 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
22525 if test "${ac_cv_type_uid_t+set}" = set; then
22526   echo $ECHO_N "(cached) $ECHO_C" >&6
22527 else
22528   cat >conftest.$ac_ext <<_ACEOF
22529 /* confdefs.h.  */
22530 _ACEOF
22531 cat confdefs.h >>conftest.$ac_ext
22532 cat >>conftest.$ac_ext <<_ACEOF
22533 /* end confdefs.h.  */
22534 #include <sys/types.h>
22535
22536 _ACEOF
22537 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22538   $EGREP "uid_t" >/dev/null 2>&1; then
22539   ac_cv_type_uid_t=yes
22540 else
22541   ac_cv_type_uid_t=no
22542 fi
22543 rm -f conftest*
22544
22545 fi
22546 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22547 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
22548 if test $ac_cv_type_uid_t = no; then
22549
22550 cat >>confdefs.h <<\_ACEOF
22551 #define uid_t int
22552 _ACEOF
22553
22554
22555 cat >>confdefs.h <<\_ACEOF
22556 #define gid_t int
22557 _ACEOF
22558
22559 fi
22560
22561
22562
22563   echo "$as_me:$LINENO: checking for socklen_t" >&5
22564 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
22565 if test "${ac_cv_type_socklen_t+set}" = set; then
22566   echo $ECHO_N "(cached) $ECHO_C" >&6
22567 else
22568    ac_cv_type_socklen_t=no
22569       cat >conftest.$ac_ext <<_ACEOF
22570 /* confdefs.h.  */
22571 _ACEOF
22572 cat confdefs.h >>conftest.$ac_ext
22573 cat >>conftest.$ac_ext <<_ACEOF
22574 /* end confdefs.h.  */
22575 #ifdef HAVE_SYS_TYPES_H
22576 #include <sys/types.h>
22577 #endif
22578 #ifdef HAVE_SYS_SOCKET_H
22579 #include <sys/socket.h>
22580 #endif
22581
22582 int
22583 main ()
22584 {
22585 socklen_t foo
22586   ;
22587   return 0;
22588 }
22589 _ACEOF
22590 rm -f conftest.$ac_objext
22591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22592   (eval $ac_compile) 2>conftest.er1
22593   ac_status=$?
22594   grep -v '^ *+' conftest.er1 >conftest.err
22595   rm -f conftest.er1
22596   cat conftest.err >&5
22597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22598   (exit $ac_status); } &&
22599          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22601   (eval $ac_try) 2>&5
22602   ac_status=$?
22603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22604   (exit $ac_status); }; } &&
22605          { ac_try='test -s conftest.$ac_objext'
22606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22607   (eval $ac_try) 2>&5
22608   ac_status=$?
22609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22610   (exit $ac_status); }; }; then
22611   ac_cv_type_socklen_t=yes
22612 else
22613   echo "$as_me: failed program was:" >&5
22614 sed 's/^/| /' conftest.$ac_ext >&5
22615
22616 fi
22617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22618
22619
22620 fi
22621 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
22622 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
22623
22624   if test "$ac_cv_type_socklen_t" != "yes"; then
22625
22626 cat >>confdefs.h <<\_ACEOF
22627 #define socklen_t int
22628 _ACEOF
22629
22630   fi
22631
22632
22633
22634   echo "$as_me:$LINENO: checking for uint8_t" >&5
22635 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
22636 if test "${ac_cv_type_uint8_t+set}" = set; then
22637   echo $ECHO_N "(cached) $ECHO_C" >&6
22638 else
22639    ac_cv_type_uint8_t=no
22640       cat >conftest.$ac_ext <<_ACEOF
22641 /* confdefs.h.  */
22642 _ACEOF
22643 cat confdefs.h >>conftest.$ac_ext
22644 cat >>conftest.$ac_ext <<_ACEOF
22645 /* end confdefs.h.  */
22646 #ifdef HAVE_INTTYPES_H
22647 #include <inttypes.h>
22648 #endif
22649 #ifdef HAVE_STDINT_H
22650 #include <stdint.h>
22651 #endif
22652
22653 int
22654 main ()
22655 {
22656 uint8_t foo
22657   ;
22658   return 0;
22659 }
22660 _ACEOF
22661 rm -f conftest.$ac_objext
22662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22663   (eval $ac_compile) 2>conftest.er1
22664   ac_status=$?
22665   grep -v '^ *+' conftest.er1 >conftest.err
22666   rm -f conftest.er1
22667   cat conftest.err >&5
22668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22669   (exit $ac_status); } &&
22670          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22672   (eval $ac_try) 2>&5
22673   ac_status=$?
22674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22675   (exit $ac_status); }; } &&
22676          { ac_try='test -s conftest.$ac_objext'
22677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22678   (eval $ac_try) 2>&5
22679   ac_status=$?
22680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22681   (exit $ac_status); }; }; then
22682   ac_cv_type_uint8_t=yes
22683 else
22684   echo "$as_me: failed program was:" >&5
22685 sed 's/^/| /' conftest.$ac_ext >&5
22686
22687 fi
22688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22689
22690
22691 fi
22692 echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
22693 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
22694
22695   if test "$ac_cv_type_uint8_t" != "yes"; then
22696
22697 cat >>confdefs.h <<\_ACEOF
22698 #define uint8_t unsigned char
22699 _ACEOF
22700
22701   fi
22702
22703
22704
22705   echo "$as_me:$LINENO: checking for uint16_t" >&5
22706 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
22707 if test "${ac_cv_type_uint16_t+set}" = set; then
22708   echo $ECHO_N "(cached) $ECHO_C" >&6
22709 else
22710    ac_cv_type_uint16_t=no
22711       cat >conftest.$ac_ext <<_ACEOF
22712 /* confdefs.h.  */
22713 _ACEOF
22714 cat confdefs.h >>conftest.$ac_ext
22715 cat >>conftest.$ac_ext <<_ACEOF
22716 /* end confdefs.h.  */
22717 #ifdef HAVE_INTTYPES_H
22718 #include <inttypes.h>
22719 #endif
22720 #ifdef HAVE_STDINT_H
22721 #include <stdint.h>
22722 #endif
22723
22724 int
22725 main ()
22726 {
22727 uint16_t foo
22728   ;
22729   return 0;
22730 }
22731 _ACEOF
22732 rm -f conftest.$ac_objext
22733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22734   (eval $ac_compile) 2>conftest.er1
22735   ac_status=$?
22736   grep -v '^ *+' conftest.er1 >conftest.err
22737   rm -f conftest.er1
22738   cat conftest.err >&5
22739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22740   (exit $ac_status); } &&
22741          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22743   (eval $ac_try) 2>&5
22744   ac_status=$?
22745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22746   (exit $ac_status); }; } &&
22747          { ac_try='test -s conftest.$ac_objext'
22748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22749   (eval $ac_try) 2>&5
22750   ac_status=$?
22751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22752   (exit $ac_status); }; }; then
22753   ac_cv_type_uint16_t=yes
22754 else
22755   echo "$as_me: failed program was:" >&5
22756 sed 's/^/| /' conftest.$ac_ext >&5
22757
22758 fi
22759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22760
22761
22762 fi
22763 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
22764 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
22765
22766   if test "$ac_cv_type_uint16_t" != "yes"; then
22767
22768 cat >>confdefs.h <<\_ACEOF
22769 #define uint16_t unsigned short
22770 _ACEOF
22771
22772   fi
22773
22774
22775
22776   echo "$as_me:$LINENO: checking for uint32_t" >&5
22777 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
22778 if test "${ac_cv_type_uint32_t+set}" = set; then
22779   echo $ECHO_N "(cached) $ECHO_C" >&6
22780 else
22781    ac_cv_type_uint32_t=no
22782       cat >conftest.$ac_ext <<_ACEOF
22783 /* confdefs.h.  */
22784 _ACEOF
22785 cat confdefs.h >>conftest.$ac_ext
22786 cat >>conftest.$ac_ext <<_ACEOF
22787 /* end confdefs.h.  */
22788 #ifdef HAVE_INTTYPES_H
22789 #include <inttypes.h>
22790 #endif
22791 #ifdef HAVE_STDINT_H
22792 #include <stdint.h>
22793 #endif
22794
22795 int
22796 main ()
22797 {
22798 uint32_t foo
22799   ;
22800   return 0;
22801 }
22802 _ACEOF
22803 rm -f conftest.$ac_objext
22804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22805   (eval $ac_compile) 2>conftest.er1
22806   ac_status=$?
22807   grep -v '^ *+' conftest.er1 >conftest.err
22808   rm -f conftest.er1
22809   cat conftest.err >&5
22810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22811   (exit $ac_status); } &&
22812          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22814   (eval $ac_try) 2>&5
22815   ac_status=$?
22816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22817   (exit $ac_status); }; } &&
22818          { ac_try='test -s conftest.$ac_objext'
22819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22820   (eval $ac_try) 2>&5
22821   ac_status=$?
22822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22823   (exit $ac_status); }; }; then
22824   ac_cv_type_uint32_t=yes
22825 else
22826   echo "$as_me: failed program was:" >&5
22827 sed 's/^/| /' conftest.$ac_ext >&5
22828
22829 fi
22830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22831
22832
22833 fi
22834 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
22835 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
22836
22837   if test "$ac_cv_type_uint32_t" != "yes"; then
22838
22839 cat >>confdefs.h <<\_ACEOF
22840 #define uint32_t unsigned int
22841 _ACEOF
22842
22843   fi
22844
22845
22846 echo "$as_me:$LINENO: checking for struct in6_addr" >&5
22847 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6
22848 if test "${ac_cv_type_struct_in6_addr+set}" = set; then
22849   echo $ECHO_N "(cached) $ECHO_C" >&6
22850 else
22851   cat >conftest.$ac_ext <<_ACEOF
22852 /* confdefs.h.  */
22853 _ACEOF
22854 cat confdefs.h >>conftest.$ac_ext
22855 cat >>conftest.$ac_ext <<_ACEOF
22856 /* end confdefs.h.  */
22857
22858 #ifdef HAVE_NETINET_IN_H
22859 #include <netinet/in.h>
22860 #endif
22861
22862
22863 int
22864 main ()
22865 {
22866 if ((struct in6_addr *) 0)
22867   return 0;
22868 if (sizeof (struct in6_addr))
22869   return 0;
22870   ;
22871   return 0;
22872 }
22873 _ACEOF
22874 rm -f conftest.$ac_objext
22875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22876   (eval $ac_compile) 2>conftest.er1
22877   ac_status=$?
22878   grep -v '^ *+' conftest.er1 >conftest.err
22879   rm -f conftest.er1
22880   cat conftest.err >&5
22881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22882   (exit $ac_status); } &&
22883          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22885   (eval $ac_try) 2>&5
22886   ac_status=$?
22887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22888   (exit $ac_status); }; } &&
22889          { ac_try='test -s conftest.$ac_objext'
22890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22891   (eval $ac_try) 2>&5
22892   ac_status=$?
22893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22894   (exit $ac_status); }; }; then
22895   ac_cv_type_struct_in6_addr=yes
22896 else
22897   echo "$as_me: failed program was:" >&5
22898 sed 's/^/| /' conftest.$ac_ext >&5
22899
22900 ac_cv_type_struct_in6_addr=no
22901 fi
22902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22903 fi
22904 echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
22905 echo "${ECHO_T}$ac_cv_type_struct_in6_addr" >&6
22906 if test $ac_cv_type_struct_in6_addr = yes; then
22907
22908 cat >>confdefs.h <<\_ACEOF
22909 #define HAVE_STRUCT_IN6_ADDR 1
22910 _ACEOF
22911
22912 fi
22913
22914
22915 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
22916 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
22917 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
22918   echo $ECHO_N "(cached) $ECHO_C" >&6
22919 else
22920   cat >conftest.$ac_ext <<_ACEOF
22921 /* confdefs.h.  */
22922 _ACEOF
22923 cat confdefs.h >>conftest.$ac_ext
22924 cat >>conftest.$ac_ext <<_ACEOF
22925 /* end confdefs.h.  */
22926
22927 #ifdef HAVE_NETINET_IN_H
22928 #include <netinet/in.h>
22929 #endif
22930 #ifdef HAVE_SYS_SOCKET_H
22931 #include <sys/socket.h>
22932 #endif
22933
22934
22935 int
22936 main ()
22937 {
22938 if ((struct sockaddr_storage *) 0)
22939   return 0;
22940 if (sizeof (struct sockaddr_storage))
22941   return 0;
22942   ;
22943   return 0;
22944 }
22945 _ACEOF
22946 rm -f conftest.$ac_objext
22947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22948   (eval $ac_compile) 2>conftest.er1
22949   ac_status=$?
22950   grep -v '^ *+' conftest.er1 >conftest.err
22951   rm -f conftest.er1
22952   cat conftest.err >&5
22953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22954   (exit $ac_status); } &&
22955          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22957   (eval $ac_try) 2>&5
22958   ac_status=$?
22959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22960   (exit $ac_status); }; } &&
22961          { ac_try='test -s conftest.$ac_objext'
22962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22963   (eval $ac_try) 2>&5
22964   ac_status=$?
22965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22966   (exit $ac_status); }; }; then
22967   ac_cv_type_struct_sockaddr_storage=yes
22968 else
22969   echo "$as_me: failed program was:" >&5
22970 sed 's/^/| /' conftest.$ac_ext >&5
22971
22972 ac_cv_type_struct_sockaddr_storage=no
22973 fi
22974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22975 fi
22976 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
22977 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
22978 if test $ac_cv_type_struct_sockaddr_storage = yes; then
22979
22980 cat >>confdefs.h <<\_ACEOF
22981 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
22982 _ACEOF
22983
22984 fi
22985
22986
22987 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
22988 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
22989 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
22990   echo $ECHO_N "(cached) $ECHO_C" >&6
22991 else
22992   cat >conftest.$ac_ext <<_ACEOF
22993 /* confdefs.h.  */
22994 _ACEOF
22995 cat confdefs.h >>conftest.$ac_ext
22996 cat >>conftest.$ac_ext <<_ACEOF
22997 /* end confdefs.h.  */
22998
22999 #ifdef HAVE_NETINET_IN_H
23000 #include <netinet/in.h>
23001 #endif
23002
23003
23004 int
23005 main ()
23006 {
23007 if ((struct sockaddr_in6 *) 0)
23008   return 0;
23009 if (sizeof (struct sockaddr_in6))
23010   return 0;
23011   ;
23012   return 0;
23013 }
23014 _ACEOF
23015 rm -f conftest.$ac_objext
23016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23017   (eval $ac_compile) 2>conftest.er1
23018   ac_status=$?
23019   grep -v '^ *+' conftest.er1 >conftest.err
23020   rm -f conftest.er1
23021   cat conftest.err >&5
23022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23023   (exit $ac_status); } &&
23024          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23026   (eval $ac_try) 2>&5
23027   ac_status=$?
23028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23029   (exit $ac_status); }; } &&
23030          { ac_try='test -s conftest.$ac_objext'
23031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23032   (eval $ac_try) 2>&5
23033   ac_status=$?
23034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23035   (exit $ac_status); }; }; then
23036   ac_cv_type_struct_sockaddr_in6=yes
23037 else
23038   echo "$as_me: failed program was:" >&5
23039 sed 's/^/| /' conftest.$ac_ext >&5
23040
23041 ac_cv_type_struct_sockaddr_in6=no
23042 fi
23043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23044 fi
23045 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
23046 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
23047 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
23048
23049 cat >>confdefs.h <<\_ACEOF
23050 #define HAVE_STRUCT_SOCKADDR_IN6 1
23051 _ACEOF
23052
23053 fi
23054
23055
23056 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
23057 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
23058 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
23059   echo $ECHO_N "(cached) $ECHO_C" >&6
23060 else
23061   cat >conftest.$ac_ext <<_ACEOF
23062 /* confdefs.h.  */
23063 _ACEOF
23064 cat confdefs.h >>conftest.$ac_ext
23065 cat >>conftest.$ac_ext <<_ACEOF
23066 /* end confdefs.h.  */
23067
23068 #ifdef HAVE_SYS_TYPES_H
23069 #include <sys/types.h>
23070 #endif
23071 #ifdef HAVE_SYS_SOCKET_H
23072 #include <sys/socket.h>
23073 #endif
23074 #ifdef HAVE_NETDB_H
23075 #include <netdb.h>
23076 #endif
23077
23078
23079 int
23080 main ()
23081 {
23082 if ((struct addrinfo *) 0)
23083   return 0;
23084 if (sizeof (struct addrinfo))
23085   return 0;
23086   ;
23087   return 0;
23088 }
23089 _ACEOF
23090 rm -f conftest.$ac_objext
23091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23092   (eval $ac_compile) 2>conftest.er1
23093   ac_status=$?
23094   grep -v '^ *+' conftest.er1 >conftest.err
23095   rm -f conftest.er1
23096   cat conftest.err >&5
23097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23098   (exit $ac_status); } &&
23099          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23101   (eval $ac_try) 2>&5
23102   ac_status=$?
23103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23104   (exit $ac_status); }; } &&
23105          { ac_try='test -s conftest.$ac_objext'
23106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23107   (eval $ac_try) 2>&5
23108   ac_status=$?
23109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23110   (exit $ac_status); }; }; then
23111   ac_cv_type_struct_addrinfo=yes
23112 else
23113   echo "$as_me: failed program was:" >&5
23114 sed 's/^/| /' conftest.$ac_ext >&5
23115
23116 ac_cv_type_struct_addrinfo=no
23117 fi
23118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23119 fi
23120 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
23121 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
23122 if test $ac_cv_type_struct_addrinfo = yes; then
23123
23124 cat >>confdefs.h <<\_ACEOF
23125 #define HAVE_STRUCT_ADDRINFO 1
23126 _ACEOF
23127
23128 fi
23129
23130
23131
23132
23133
23134
23135
23136
23137
23138
23139
23140
23141
23142
23143
23144
23145
23146
23147
23148
23149
23150
23151
23152
23153
23154
23155
23156
23157
23158
23159 for ac_func in \
23160         getopt_long \
23161         lockf \
23162         strsignal \
23163         sigaction \
23164         sigprocmask \
23165         pthread_sigmask \
23166         snprintf \
23167         vsnprintf \
23168         setsid \
23169         strncasecmp \
23170         strcasecmp \
23171         localtime_r \
23172         ctime_r \
23173         gmtime_r \
23174         strsep \
23175         inet_aton \
23176         inet_pton \
23177         inet_ntop \
23178         gethostname \
23179         setlinebuf \
23180         setvbuf \
23181         getusershell \
23182         initgroups \
23183         getaddrinfo \
23184         getnameinfo \
23185         closefrom \
23186         strlcat \
23187         strlcpy
23188
23189 do
23190 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23191 echo "$as_me:$LINENO: checking for $ac_func" >&5
23192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23193 if eval "test \"\${$as_ac_var+set}\" = set"; then
23194   echo $ECHO_N "(cached) $ECHO_C" >&6
23195 else
23196   cat >conftest.$ac_ext <<_ACEOF
23197 /* confdefs.h.  */
23198 _ACEOF
23199 cat confdefs.h >>conftest.$ac_ext
23200 cat >>conftest.$ac_ext <<_ACEOF
23201 /* end confdefs.h.  */
23202 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23203    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23204 #define $ac_func innocuous_$ac_func
23205
23206 /* System header to define __stub macros and hopefully few prototypes,
23207     which can conflict with char $ac_func (); below.
23208     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23209     <limits.h> exists even on freestanding compilers.  */
23210
23211 #ifdef __STDC__
23212 # include <limits.h>
23213 #else
23214 # include <assert.h>
23215 #endif
23216
23217 #undef $ac_func
23218
23219 /* Override any gcc2 internal prototype to avoid an error.  */
23220 #ifdef __cplusplus
23221 extern "C"
23222 {
23223 #endif
23224 /* We use char because int might match the return type of a gcc2
23225    builtin and then its argument prototype would still apply.  */
23226 char $ac_func ();
23227 /* The GNU C library defines this for functions which it implements
23228     to always fail with ENOSYS.  Some functions are actually named
23229     something starting with __ and the normal name is an alias.  */
23230 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23231 choke me
23232 #else
23233 char (*f) () = $ac_func;
23234 #endif
23235 #ifdef __cplusplus
23236 }
23237 #endif
23238
23239 int
23240 main ()
23241 {
23242 return f != $ac_func;
23243   ;
23244   return 0;
23245 }
23246 _ACEOF
23247 rm -f conftest.$ac_objext conftest$ac_exeext
23248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23249   (eval $ac_link) 2>conftest.er1
23250   ac_status=$?
23251   grep -v '^ *+' conftest.er1 >conftest.err
23252   rm -f conftest.er1
23253   cat conftest.err >&5
23254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23255   (exit $ac_status); } &&
23256          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23258   (eval $ac_try) 2>&5
23259   ac_status=$?
23260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23261   (exit $ac_status); }; } &&
23262          { ac_try='test -s conftest$ac_exeext'
23263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23264   (eval $ac_try) 2>&5
23265   ac_status=$?
23266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23267   (exit $ac_status); }; }; then
23268   eval "$as_ac_var=yes"
23269 else
23270   echo "$as_me: failed program was:" >&5
23271 sed 's/^/| /' conftest.$ac_ext >&5
23272
23273 eval "$as_ac_var=no"
23274 fi
23275 rm -f conftest.err conftest.$ac_objext \
23276       conftest$ac_exeext conftest.$ac_ext
23277 fi
23278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23279 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23280 if test `eval echo '${'$as_ac_var'}'` = yes; then
23281   cat >>confdefs.h <<_ACEOF
23282 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23283 _ACEOF
23284
23285 fi
23286 done
23287
23288 for ac_func in \
23289         crypt \
23290         strncasecmp \
23291         strcasecmp \
23292         inet_aton \
23293         gethostname \
23294         setlinebuf \
23295         getusershell \
23296         endusershell
23297
23298 do
23299 echo "$as_me:$LINENO: checking whether $ac_func must be declared" >&5
23300 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6
23301 if eval "test \"\${radius_cv_decl_needed_$ac_func+set}\" = set"; then
23302   echo $ECHO_N "(cached) $ECHO_C" >&6
23303 else
23304   cat >conftest.$ac_ext <<_ACEOF
23305 /* confdefs.h.  */
23306 _ACEOF
23307 cat confdefs.h >>conftest.$ac_ext
23308 cat >>conftest.$ac_ext <<_ACEOF
23309 /* end confdefs.h.  */
23310
23311 #include <stdio.h>
23312 #include <string.h>
23313 #ifdef HAVE_UNISTD_H
23314 #include <unistd.h>
23315 #endif
23316 #ifdef HAVE_CRYPT_H
23317 #include <crypt.h>
23318 #endif
23319 #ifdef HAVE_ERRNO_H
23320 #include <errno.h>
23321 #endif
23322 #ifdef HAVE_RESOURCE_H
23323 #include <resource.h>
23324 #endif
23325 #ifdef HAVE_GETOPT_H
23326 #include <getopt.h>
23327 #endif
23328 #ifdef HAVE_MALLOC_H
23329 #include <malloc.h>
23330 #endif
23331 #ifdef HAVE_UTMP_H
23332 #include <utmp.h>
23333 #endif
23334 #ifdef HAVE_UTMPX_H
23335 #include <utmpx.h>
23336 #endif
23337 #ifdef HAVE_SYS_SELECT_H
23338 #include <sys/select.h>
23339 #endif
23340 #ifdef HAVE_DLFCN_H
23341 #include <dlfcn.h>
23342 #endif
23343 #ifdef HAVE_REGEX_H
23344 #include <regex.h>
23345 #endif
23346 #ifdef HAVE_SYSLOG_H
23347 #include <syslog.h>
23348 #endif
23349 #ifdef HAVE_INTTYPES_H
23350 #include <inttypes.h>
23351 #endif
23352 #ifdef HAVE_STDINT_H
23353 #include <stdint.h>
23354 #endif
23355 #ifdef HAVE_ARPA_INET_H
23356 #include <arpa/inet.h>
23357 #endif
23358
23359 int
23360 main ()
23361 {
23362 char *(*pfn) = (char *(*)) $ac_func
23363   ;
23364   return 0;
23365 }
23366 _ACEOF
23367 rm -f conftest.$ac_objext
23368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23369   (eval $ac_compile) 2>conftest.er1
23370   ac_status=$?
23371   grep -v '^ *+' conftest.er1 >conftest.err
23372   rm -f conftest.er1
23373   cat conftest.err >&5
23374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23375   (exit $ac_status); } &&
23376          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23378   (eval $ac_try) 2>&5
23379   ac_status=$?
23380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23381   (exit $ac_status); }; } &&
23382          { ac_try='test -s conftest.$ac_objext'
23383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23384   (eval $ac_try) 2>&5
23385   ac_status=$?
23386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23387   (exit $ac_status); }; }; then
23388   eval "radius_cv_decl_needed_$ac_func=no"
23389 else
23390   echo "$as_me: failed program was:" >&5
23391 sed 's/^/| /' conftest.$ac_ext >&5
23392
23393 eval "radius_cv_decl_needed_$ac_func=yes"
23394 fi
23395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23396 fi
23397
23398 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
23399   echo "$as_me:$LINENO: result: yes" >&5
23400 echo "${ECHO_T}yes" >&6
23401   radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23402   cat >>confdefs.h <<_ACEOF
23403 #define $radius_tr_decl 1
23404 _ACEOF
23405
23406 else
23407   echo "$as_me:$LINENO: result: no" >&5
23408 echo "${ECHO_T}no" >&6
23409 fi
23410
23411 done
23412
23413
23414 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23415 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
23416 if test "${ac_cv_type_signal+set}" = set; then
23417   echo $ECHO_N "(cached) $ECHO_C" >&6
23418 else
23419   cat >conftest.$ac_ext <<_ACEOF
23420 /* confdefs.h.  */
23421 _ACEOF
23422 cat confdefs.h >>conftest.$ac_ext
23423 cat >>conftest.$ac_ext <<_ACEOF
23424 /* end confdefs.h.  */
23425 #include <sys/types.h>
23426 #include <signal.h>
23427 #ifdef signal
23428 # undef signal
23429 #endif
23430 #ifdef __cplusplus
23431 extern "C" void (*signal (int, void (*)(int)))(int);
23432 #else
23433 void (*signal ()) ();
23434 #endif
23435
23436 int
23437 main ()
23438 {
23439 int i;
23440   ;
23441   return 0;
23442 }
23443 _ACEOF
23444 rm -f conftest.$ac_objext
23445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23446   (eval $ac_compile) 2>conftest.er1
23447   ac_status=$?
23448   grep -v '^ *+' conftest.er1 >conftest.err
23449   rm -f conftest.er1
23450   cat conftest.err >&5
23451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23452   (exit $ac_status); } &&
23453          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23455   (eval $ac_try) 2>&5
23456   ac_status=$?
23457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23458   (exit $ac_status); }; } &&
23459          { ac_try='test -s conftest.$ac_objext'
23460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23461   (eval $ac_try) 2>&5
23462   ac_status=$?
23463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23464   (exit $ac_status); }; }; then
23465   ac_cv_type_signal=void
23466 else
23467   echo "$as_me: failed program was:" >&5
23468 sed 's/^/| /' conftest.$ac_ext >&5
23469
23470 ac_cv_type_signal=int
23471 fi
23472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23473 fi
23474 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23475 echo "${ECHO_T}$ac_cv_type_signal" >&6
23476
23477 cat >>confdefs.h <<_ACEOF
23478 #define RETSIGTYPE $ac_cv_type_signal
23479 _ACEOF
23480
23481
23482
23483 if test "x$ac_cv_header_utmpx_h" = "xyes"
23484 then
23485
23486   echo "$as_me:$LINENO: checking for ut_xtime in struct utmpx" >&5
23487 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6
23488
23489
23490   cat >conftest.$ac_ext <<_ACEOF
23491 /* confdefs.h.  */
23492 _ACEOF
23493 cat confdefs.h >>conftest.$ac_ext
23494 cat >>conftest.$ac_ext <<_ACEOF
23495 /* end confdefs.h.  */
23496
23497 #include <utmpx.h>
23498 #ifndef offsetof
23499 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23500 #endif
23501
23502 int
23503 main ()
23504 {
23505  int foo = offsetof(struct utmpx, ut_xtime)
23506   ;
23507   return 0;
23508 }
23509 _ACEOF
23510 rm -f conftest.$ac_objext
23511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23512   (eval $ac_compile) 2>conftest.er1
23513   ac_status=$?
23514   grep -v '^ *+' conftest.er1 >conftest.err
23515   rm -f conftest.er1
23516   cat conftest.err >&5
23517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23518   (exit $ac_status); } &&
23519          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23521   (eval $ac_try) 2>&5
23522   ac_status=$?
23523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23524   (exit $ac_status); }; } &&
23525          { ac_try='test -s conftest.$ac_objext'
23526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23527   (eval $ac_try) 2>&5
23528   ac_status=$?
23529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23530   (exit $ac_status); }; }; then
23531   has_element=" "
23532 else
23533   echo "$as_me: failed program was:" >&5
23534 sed 's/^/| /' conftest.$ac_ext >&5
23535
23536 has_element=
23537 fi
23538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23539
23540   ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
23541   if test "x$has_element" != "x"; then
23542     echo "$as_me:$LINENO: result: yes" >&5
23543 echo "${ECHO_T}yes" >&6
23544     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
23545   else
23546     echo "$as_me:$LINENO: result: no" >&5
23547 echo "${ECHO_T}no" >&6
23548     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
23549  fi
23550
23551  if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
23552  then
23553
23554 cat >>confdefs.h <<\_ACEOF
23555 #define ut_xtime ut_tv.tv_sec
23556 _ACEOF
23557
23558  fi
23559 fi
23560
23561
23562   echo "$as_me:$LINENO: checking for ipi_addr in struct in_pktinfo" >&5
23563 echo $ECHO_N "checking for ipi_addr in struct in_pktinfo... $ECHO_C" >&6
23564
23565
23566   cat >conftest.$ac_ext <<_ACEOF
23567 /* confdefs.h.  */
23568 _ACEOF
23569 cat confdefs.h >>conftest.$ac_ext
23570 cat >>conftest.$ac_ext <<_ACEOF
23571 /* end confdefs.h.  */
23572
23573 #include <netinet/in.h>
23574 #ifndef offsetof
23575 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23576 #endif
23577
23578 int
23579 main ()
23580 {
23581  int foo = offsetof(struct in_pktinfo, ipi_addr)
23582   ;
23583   return 0;
23584 }
23585 _ACEOF
23586 rm -f conftest.$ac_objext
23587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23588   (eval $ac_compile) 2>conftest.er1
23589   ac_status=$?
23590   grep -v '^ *+' conftest.er1 >conftest.err
23591   rm -f conftest.er1
23592   cat conftest.err >&5
23593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23594   (exit $ac_status); } &&
23595          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23597   (eval $ac_try) 2>&5
23598   ac_status=$?
23599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23600   (exit $ac_status); }; } &&
23601          { ac_try='test -s conftest.$ac_objext'
23602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23603   (eval $ac_try) 2>&5
23604   ac_status=$?
23605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23606   (exit $ac_status); }; }; then
23607   has_element=" "
23608 else
23609   echo "$as_me: failed program was:" >&5
23610 sed 's/^/| /' conftest.$ac_ext >&5
23611
23612 has_element=
23613 fi
23614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23615
23616   ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
23617   if test "x$has_element" != "x"; then
23618     echo "$as_me:$LINENO: result: yes" >&5
23619 echo "${ECHO_T}yes" >&6
23620     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
23621   else
23622     echo "$as_me:$LINENO: result: no" >&5
23623 echo "${ECHO_T}no" >&6
23624     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
23625  fi
23626
23627 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
23628 then
23629
23630 cat >>confdefs.h <<\_ACEOF
23631 #define HAVE_IP_PKTINFO
23632 _ACEOF
23633
23634 fi
23635
23636
23637   echo "$as_me:$LINENO: checking for ipi6_addr in struct in6_pktinfo" >&5
23638 echo $ECHO_N "checking for ipi6_addr in struct in6_pktinfo... $ECHO_C" >&6
23639
23640
23641   cat >conftest.$ac_ext <<_ACEOF
23642 /* confdefs.h.  */
23643 _ACEOF
23644 cat confdefs.h >>conftest.$ac_ext
23645 cat >>conftest.$ac_ext <<_ACEOF
23646 /* end confdefs.h.  */
23647
23648 #include <netinet/in.h>
23649 #ifndef offsetof
23650 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23651 #endif
23652
23653 int
23654 main ()
23655 {
23656  int foo = offsetof(struct in6_pktinfo, ipi6_addr)
23657   ;
23658   return 0;
23659 }
23660 _ACEOF
23661 rm -f conftest.$ac_objext
23662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23663   (eval $ac_compile) 2>conftest.er1
23664   ac_status=$?
23665   grep -v '^ *+' conftest.er1 >conftest.err
23666   rm -f conftest.er1
23667   cat conftest.err >&5
23668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23669   (exit $ac_status); } &&
23670          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23672   (eval $ac_try) 2>&5
23673   ac_status=$?
23674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23675   (exit $ac_status); }; } &&
23676          { ac_try='test -s conftest.$ac_objext'
23677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23678   (eval $ac_try) 2>&5
23679   ac_status=$?
23680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23681   (exit $ac_status); }; }; then
23682   has_element=" "
23683 else
23684   echo "$as_me: failed program was:" >&5
23685 sed 's/^/| /' conftest.$ac_ext >&5
23686
23687 has_element=
23688 fi
23689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23690
23691   ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
23692   if test "x$has_element" != "x"; then
23693     echo "$as_me:$LINENO: result: yes" >&5
23694 echo "${ECHO_T}yes" >&6
23695     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
23696   else
23697     echo "$as_me:$LINENO: result: no" >&5
23698 echo "${ECHO_T}no" >&6
23699     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
23700  fi
23701
23702 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
23703 then
23704
23705 cat >>confdefs.h <<\_ACEOF
23706 #define HAVE_IN6_PKTINFO
23707 _ACEOF
23708
23709 fi
23710
23711
23712 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23713 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
23714 if test "${ac_cv_c_const+set}" = set; then
23715   echo $ECHO_N "(cached) $ECHO_C" >&6
23716 else
23717   cat >conftest.$ac_ext <<_ACEOF
23718 /* confdefs.h.  */
23719 _ACEOF
23720 cat confdefs.h >>conftest.$ac_ext
23721 cat >>conftest.$ac_ext <<_ACEOF
23722 /* end confdefs.h.  */
23723
23724 int
23725 main ()
23726 {
23727 /* FIXME: Include the comments suggested by Paul. */
23728 #ifndef __cplusplus
23729   /* Ultrix mips cc rejects this.  */
23730   typedef int charset[2];
23731   const charset x;
23732   /* SunOS 4.1.1 cc rejects this.  */
23733   char const *const *ccp;
23734   char **p;
23735   /* NEC SVR4.0.2 mips cc rejects this.  */
23736   struct point {int x, y;};
23737   static struct point const zero = {0,0};
23738   /* AIX XL C 1.02.0.0 rejects this.
23739      It does not let you subtract one const X* pointer from another in
23740      an arm of an if-expression whose if-part is not a constant
23741      expression */
23742   const char *g = "string";
23743   ccp = &g + (g ? g-g : 0);
23744   /* HPUX 7.0 cc rejects these. */
23745   ++ccp;
23746   p = (char**) ccp;
23747   ccp = (char const *const *) p;
23748   { /* SCO 3.2v4 cc rejects this.  */
23749     char *t;
23750     char const *s = 0 ? (char *) 0 : (char const *) 0;
23751
23752     *t++ = 0;
23753   }
23754   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23755     int x[] = {25, 17};
23756     const int *foo = &x[0];
23757     ++foo;
23758   }
23759   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23760     typedef const int *iptr;
23761     iptr p = 0;
23762     ++p;
23763   }
23764   { /* AIX XL C 1.02.0.0 rejects this saying
23765        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23766     struct s { int j; const int *ap[3]; };
23767     struct s *b; b->j = 5;
23768   }
23769   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23770     const int foo = 10;
23771   }
23772 #endif
23773
23774   ;
23775   return 0;
23776 }
23777 _ACEOF
23778 rm -f conftest.$ac_objext
23779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23780   (eval $ac_compile) 2>conftest.er1
23781   ac_status=$?
23782   grep -v '^ *+' conftest.er1 >conftest.err
23783   rm -f conftest.er1
23784   cat conftest.err >&5
23785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23786   (exit $ac_status); } &&
23787          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23789   (eval $ac_try) 2>&5
23790   ac_status=$?
23791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23792   (exit $ac_status); }; } &&
23793          { ac_try='test -s conftest.$ac_objext'
23794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23795   (eval $ac_try) 2>&5
23796   ac_status=$?
23797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23798   (exit $ac_status); }; }; then
23799   ac_cv_c_const=yes
23800 else
23801   echo "$as_me: failed program was:" >&5
23802 sed 's/^/| /' conftest.$ac_ext >&5
23803
23804 ac_cv_c_const=no
23805 fi
23806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23807 fi
23808 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23809 echo "${ECHO_T}$ac_cv_c_const" >&6
23810 if test $ac_cv_c_const = no; then
23811
23812 cat >>confdefs.h <<\_ACEOF
23813 #define const
23814 _ACEOF
23815
23816 fi
23817
23818
23819 echo "$as_me:$LINENO: checking type of OS" >&5
23820 echo $ECHO_N "checking type of OS... $ECHO_C" >&6
23821 OS=`uname -s`
23822 echo "$as_me:$LINENO: result: $OS" >&5
23823 echo "${ECHO_T}$OS" >&6
23824 if test "$OS" = "OS/2"; then
23825         LIBPREFIX=
23826 else
23827         LIBPREFIX=lib
23828 fi
23829
23830
23831 if test "x$GCC" = "xyes"; then
23832     CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
23833 fi
23834
23835 echo "$as_me:$LINENO: checking for developer gcc flags" >&5
23836 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6
23837 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
23838   devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
23839   CFLAGS="$CFLAGS $devflags"
23840   INSTALLSTRIP=""
23841   echo "$as_me:$LINENO: result: yes.  Using $devflags" >&5
23842 echo "${ECHO_T}yes.  Using $devflags" >&6
23843 else
23844   devflags=""
23845   CFLAGS="$CFLAGS -DNDEBUG"
23846   INSTALLSTRIP="-s"
23847   echo "$as_me:$LINENO: result: no." >&5
23848 echo "${ECHO_T}no." >&6
23849 fi
23850
23851
23852 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
23853 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
23854 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
23855   echo $ECHO_N "(cached) $ECHO_C" >&6
23856 else
23857   ac_check_lib_save_LIBS=$LIBS
23858 LIBS="-lcrypt  $LIBS"
23859 cat >conftest.$ac_ext <<_ACEOF
23860 /* confdefs.h.  */
23861 _ACEOF
23862 cat confdefs.h >>conftest.$ac_ext
23863 cat >>conftest.$ac_ext <<_ACEOF
23864 /* end confdefs.h.  */
23865
23866 /* Override any gcc2 internal prototype to avoid an error.  */
23867 #ifdef __cplusplus
23868 extern "C"
23869 #endif
23870 /* We use char because int might match the return type of a gcc2
23871    builtin and then its argument prototype would still apply.  */
23872 char crypt ();
23873 int
23874 main ()
23875 {
23876 crypt ();
23877   ;
23878   return 0;
23879 }
23880 _ACEOF
23881 rm -f conftest.$ac_objext conftest$ac_exeext
23882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23883   (eval $ac_link) 2>conftest.er1
23884   ac_status=$?
23885   grep -v '^ *+' conftest.er1 >conftest.err
23886   rm -f conftest.er1
23887   cat conftest.err >&5
23888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23889   (exit $ac_status); } &&
23890          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23892   (eval $ac_try) 2>&5
23893   ac_status=$?
23894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23895   (exit $ac_status); }; } &&
23896          { ac_try='test -s conftest$ac_exeext'
23897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23898   (eval $ac_try) 2>&5
23899   ac_status=$?
23900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23901   (exit $ac_status); }; }; then
23902   ac_cv_lib_crypt_crypt=yes
23903 else
23904   echo "$as_me: failed program was:" >&5
23905 sed 's/^/| /' conftest.$ac_ext >&5
23906
23907 ac_cv_lib_crypt_crypt=no
23908 fi
23909 rm -f conftest.err conftest.$ac_objext \
23910       conftest$ac_exeext conftest.$ac_ext
23911 LIBS=$ac_check_lib_save_LIBS
23912 fi
23913 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
23914 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
23915 if test $ac_cv_lib_crypt_crypt = yes; then
23916   CRYPTLIB="-lcrypt"
23917
23918 fi
23919
23920 if test "$CRYPTLIB" != ""; then
23921
23922 cat >>confdefs.h <<\_ACEOF
23923 #define HAVE_CRYPT
23924 _ACEOF
23925
23926 else
23927   echo "$as_me:$LINENO: checking for crypt" >&5
23928 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
23929 if test "${ac_cv_func_crypt+set}" = set; then
23930   echo $ECHO_N "(cached) $ECHO_C" >&6
23931 else
23932   cat >conftest.$ac_ext <<_ACEOF
23933 /* confdefs.h.  */
23934 _ACEOF
23935 cat confdefs.h >>conftest.$ac_ext
23936 cat >>conftest.$ac_ext <<_ACEOF
23937 /* end confdefs.h.  */
23938 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
23939    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23940 #define crypt innocuous_crypt
23941
23942 /* System header to define __stub macros and hopefully few prototypes,
23943     which can conflict with char crypt (); below.
23944     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23945     <limits.h> exists even on freestanding compilers.  */
23946
23947 #ifdef __STDC__
23948 # include <limits.h>
23949 #else
23950 # include <assert.h>
23951 #endif
23952
23953 #undef crypt
23954
23955 /* Override any gcc2 internal prototype to avoid an error.  */
23956 #ifdef __cplusplus
23957 extern "C"
23958 {
23959 #endif
23960 /* We use char because int might match the return type of a gcc2
23961    builtin and then its argument prototype would still apply.  */
23962 char crypt ();
23963 /* The GNU C library defines this for functions which it implements
23964     to always fail with ENOSYS.  Some functions are actually named
23965     something starting with __ and the normal name is an alias.  */
23966 #if defined (__stub_crypt) || defined (__stub___crypt)
23967 choke me
23968 #else
23969 char (*f) () = crypt;
23970 #endif
23971 #ifdef __cplusplus
23972 }
23973 #endif
23974
23975 int
23976 main ()
23977 {
23978 return f != crypt;
23979   ;
23980   return 0;
23981 }
23982 _ACEOF
23983 rm -f conftest.$ac_objext conftest$ac_exeext
23984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23985   (eval $ac_link) 2>conftest.er1
23986   ac_status=$?
23987   grep -v '^ *+' conftest.er1 >conftest.err
23988   rm -f conftest.er1
23989   cat conftest.err >&5
23990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23991   (exit $ac_status); } &&
23992          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23994   (eval $ac_try) 2>&5
23995   ac_status=$?
23996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23997   (exit $ac_status); }; } &&
23998          { ac_try='test -s conftest$ac_exeext'
23999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24000   (eval $ac_try) 2>&5
24001   ac_status=$?
24002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24003   (exit $ac_status); }; }; then
24004   ac_cv_func_crypt=yes
24005 else
24006   echo "$as_me: failed program was:" >&5
24007 sed 's/^/| /' conftest.$ac_ext >&5
24008
24009 ac_cv_func_crypt=no
24010 fi
24011 rm -f conftest.err conftest.$ac_objext \
24012       conftest$ac_exeext conftest.$ac_ext
24013 fi
24014 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
24015 echo "${ECHO_T}$ac_cv_func_crypt" >&6
24016 if test $ac_cv_func_crypt = yes; then
24017
24018 cat >>confdefs.h <<\_ACEOF
24019 #define HAVE_CRYPT
24020 _ACEOF
24021
24022 fi
24023
24024 fi
24025
24026 echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
24027 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6
24028 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
24029   echo $ECHO_N "(cached) $ECHO_C" >&6
24030 else
24031   ac_check_lib_save_LIBS=$LIBS
24032 LIBS="-lcipher  $LIBS"
24033 cat >conftest.$ac_ext <<_ACEOF
24034 /* confdefs.h.  */
24035 _ACEOF
24036 cat confdefs.h >>conftest.$ac_ext
24037 cat >>conftest.$ac_ext <<_ACEOF
24038 /* end confdefs.h.  */
24039
24040 /* Override any gcc2 internal prototype to avoid an error.  */
24041 #ifdef __cplusplus
24042 extern "C"
24043 #endif
24044 /* We use char because int might match the return type of a gcc2
24045    builtin and then its argument prototype would still apply.  */
24046 char setkey ();
24047 int
24048 main ()
24049 {
24050 setkey ();
24051   ;
24052   return 0;
24053 }
24054 _ACEOF
24055 rm -f conftest.$ac_objext conftest$ac_exeext
24056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24057   (eval $ac_link) 2>conftest.er1
24058   ac_status=$?
24059   grep -v '^ *+' conftest.er1 >conftest.err
24060   rm -f conftest.er1
24061   cat conftest.err >&5
24062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24063   (exit $ac_status); } &&
24064          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24066   (eval $ac_try) 2>&5
24067   ac_status=$?
24068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24069   (exit $ac_status); }; } &&
24070          { ac_try='test -s conftest$ac_exeext'
24071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24072   (eval $ac_try) 2>&5
24073   ac_status=$?
24074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24075   (exit $ac_status); }; }; then
24076   ac_cv_lib_cipher_setkey=yes
24077 else
24078   echo "$as_me: failed program was:" >&5
24079 sed 's/^/| /' conftest.$ac_ext >&5
24080
24081 ac_cv_lib_cipher_setkey=no
24082 fi
24083 rm -f conftest.err conftest.$ac_objext \
24084       conftest$ac_exeext conftest.$ac_ext
24085 LIBS=$ac_check_lib_save_LIBS
24086 fi
24087 echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
24088 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6
24089 if test $ac_cv_lib_cipher_setkey = yes; then
24090   CRYPTLIB="${CRYPTLIB} -lcipher"
24091
24092 fi
24093
24094
24095
24096 if test "x$WITH_SNMP" = "xyes"; then
24097
24098
24099
24100
24101 echo "$as_me:$LINENO: checking for asn1.h,snmp.h,snmp_impl.h" >&5
24102 echo $ECHO_N "checking for asn1.h,snmp.h,snmp_impl.h... $ECHO_C" >&6
24103
24104 cat >conftest.$ac_ext <<_ACEOF
24105 /* confdefs.h.  */
24106 _ACEOF
24107 cat confdefs.h >>conftest.$ac_ext
24108 cat >>conftest.$ac_ext <<_ACEOF
24109 /* end confdefs.h.  */
24110
24111 #ifdef HAVE_SYS_TYPES_H
24112 #include <sys/types.h>
24113 #endif
24114 #ifdef HAVE_STDINT_H
24115 #include <stdint.h>
24116 #endif
24117 #ifdef HAVE_STDIO_H
24118 #include <stdio.h>
24119 #endif
24120 #ifdef HAVE_NETDB_H
24121 #include <netdb.h>
24122 #endif
24123 #ifdef HAVE_UNISTD_H
24124 #include <unistd.h>
24125 #endif
24126 #include <ucd-snmp/ucd-snmp-config.h>
24127 #include <ucd-snmp/asn1.h>
24128 #include <ucd-snmp/snmp.h>
24129 #include <ucd-snmp/snmp_impl.h>
24130 int
24131 main ()
24132 {
24133  int a = 1;
24134   ;
24135   return 0;
24136 }
24137 _ACEOF
24138 rm -f conftest.$ac_objext
24139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24140   (eval $ac_compile) 2>conftest.er1
24141   ac_status=$?
24142   grep -v '^ *+' conftest.er1 >conftest.err
24143   rm -f conftest.er1
24144   cat conftest.err >&5
24145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24146   (exit $ac_status); } &&
24147          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24149   (eval $ac_try) 2>&5
24150   ac_status=$?
24151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24152   (exit $ac_status); }; } &&
24153          { ac_try='test -s conftest.$ac_objext'
24154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24155   (eval $ac_try) 2>&5
24156   ac_status=$?
24157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24158   (exit $ac_status); }; }; then
24159   SNMP_INCLUDE="";ucdsnmp=yes
24160 else
24161   echo "$as_me: failed program was:" >&5
24162 sed 's/^/| /' conftest.$ac_ext >&5
24163
24164 ucdsnmp=
24165 fi
24166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24167
24168 if test "x$ucdsnmp" = "x"; then
24169   old_CFLAGS="$CFLAGS"
24170   for try in /usr/include /usr/local/include $snmp_include_dir; do
24171     CFLAGS="$old_CFLAGS -I$try"
24172     cat >conftest.$ac_ext <<_ACEOF
24173 /* confdefs.h.  */
24174 _ACEOF
24175 cat confdefs.h >>conftest.$ac_ext
24176 cat >>conftest.$ac_ext <<_ACEOF
24177 /* end confdefs.h.  */
24178
24179 #ifdef HAVE_SYS_TYPES_H
24180 #include <sys/types.h>
24181 #endif
24182 #ifdef HAVE_STDINT_H
24183 #include <stdint.h>
24184 #endif
24185 #ifdef HAVE_STDIO_H
24186 #include <stdio.h>
24187 #endif
24188 #ifdef HAVE_NETDB_H
24189 #include <netdb.h>
24190 #endif
24191 #ifdef HAVE_UNISTD_H
24192 #include <unistd.h>
24193 #endif
24194 #include <ucd-snmp/ucd-snmp-config.h>
24195 #include <ucd-snmp/asn1.h>
24196 #include <ucd-snmp/snmp.h>
24197 #include <ucd-snmp/snmp_impl.h>
24198 int
24199 main ()
24200 {
24201  int a = 1;
24202   ;
24203   return 0;
24204 }
24205 _ACEOF
24206 rm -f conftest.$ac_objext
24207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24208   (eval $ac_compile) 2>conftest.er1
24209   ac_status=$?
24210   grep -v '^ *+' conftest.er1 >conftest.err
24211   rm -f conftest.er1
24212   cat conftest.err >&5
24213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24214   (exit $ac_status); } &&
24215          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24217   (eval $ac_try) 2>&5
24218   ac_status=$?
24219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24220   (exit $ac_status); }; } &&
24221          { ac_try='test -s conftest.$ac_objext'
24222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24223   (eval $ac_try) 2>&5
24224   ac_status=$?
24225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24226   (exit $ac_status); }; }; then
24227   SNMP_INCLUDE="-I$try";ucdsnmp=yes
24228 else
24229   echo "$as_me: failed program was:" >&5
24230 sed 's/^/| /' conftest.$ac_ext >&5
24231
24232 ucdsnmp=
24233 fi
24234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24235     if test "x$ucdsnmp" != "x"; then
24236       break;
24237     fi
24238   done
24239   CFLAGS="$old_CFLAGS"
24240 fi
24241
24242 if test "x$ucdsnmp" = "x"; then
24243   old_CFLAGS="$CFLAGS"
24244   for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
24245     CFLAGS="$old_CFLAGS -I$try"
24246 cat >conftest.$ac_ext <<_ACEOF
24247 /* confdefs.h.  */
24248 _ACEOF
24249 cat confdefs.h >>conftest.$ac_ext
24250 cat >>conftest.$ac_ext <<_ACEOF
24251 /* end confdefs.h.  */
24252
24253 #ifdef HAVE_SYS_TYPES_H
24254 #include <sys/types.h>
24255 #endif
24256 #ifdef HAVE_STDINT_H
24257 #include <stdint.h>
24258 #endif
24259 #ifdef HAVE_STDIO_H
24260 #include <stdio.h>
24261 #endif
24262 #ifdef HAVE_NETDB_H
24263 #include <netdb.h>
24264 #endif
24265 #ifdef HAVE_UNISTD_H
24266 #include <unistd.h>
24267 #endif
24268 #include <asn1.h>
24269 #include <snmp.h>
24270 #include <snmp_impl.h>
24271 int
24272 main ()
24273 {
24274  int a = 1;
24275   ;
24276   return 0;
24277 }
24278 _ACEOF
24279 rm -f conftest.$ac_objext
24280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24281   (eval $ac_compile) 2>conftest.er1
24282   ac_status=$?
24283   grep -v '^ *+' conftest.er1 >conftest.err
24284   rm -f conftest.er1
24285   cat conftest.err >&5
24286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24287   (exit $ac_status); } &&
24288          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24290   (eval $ac_try) 2>&5
24291   ac_status=$?
24292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24293   (exit $ac_status); }; } &&
24294          { ac_try='test -s conftest.$ac_objext'
24295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24296   (eval $ac_try) 2>&5
24297   ac_status=$?
24298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24299   (exit $ac_status); }; }; then
24300   SNMP_INCLUDE="";ucdsnmp=no
24301 else
24302   echo "$as_me: failed program was:" >&5
24303 sed 's/^/| /' conftest.$ac_ext >&5
24304
24305 ucdsnmp=
24306 fi
24307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24308     if test "x$ucdsnmp" != "x"; then
24309       break;
24310     fi
24311   done
24312   CFLAGS="$old_CFLAGS"
24313 fi
24314
24315 if test "x$ucdsnmp" = "x"; then
24316   old_CFLAGS="$CFLAGS"
24317   for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
24318     CFLAGS="$old_CFLAGS -I$try"
24319     cat >conftest.$ac_ext <<_ACEOF
24320 /* confdefs.h.  */
24321 _ACEOF
24322 cat confdefs.h >>conftest.$ac_ext
24323 cat >>conftest.$ac_ext <<_ACEOF
24324 /* end confdefs.h.  */
24325
24326 #ifdef HAVE_SYS_TYPES_H
24327 #include <sys/types.h>
24328 #endif
24329 #ifdef HAVE_STDINT_H
24330 #include <stdint.h>
24331 #endif
24332 #ifdef HAVE_STDIO_H
24333 #include <stdio.h>
24334 #endif
24335 #ifdef HAVE_NETDB_H
24336 #include <netdb.h>
24337 #endif
24338 #ifdef HAVE_UNISTD_H
24339 #include <unistd.h>
24340 #endif
24341 #include <asn1.h>
24342 #include <snmp.h>
24343 #include <snmp_impl.h>
24344 int
24345 main ()
24346 {
24347  int a = 1;
24348   ;
24349   return 0;
24350 }
24351 _ACEOF
24352 rm -f conftest.$ac_objext
24353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24354   (eval $ac_compile) 2>conftest.er1
24355   ac_status=$?
24356   grep -v '^ *+' conftest.er1 >conftest.err
24357   rm -f conftest.er1
24358   cat conftest.err >&5
24359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24360   (exit $ac_status); } &&
24361          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24363   (eval $ac_try) 2>&5
24364   ac_status=$?
24365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24366   (exit $ac_status); }; } &&
24367          { ac_try='test -s conftest.$ac_objext'
24368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24369   (eval $ac_try) 2>&5
24370   ac_status=$?
24371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24372   (exit $ac_status); }; }; then
24373   SNMP_INCLUDE="-I$try";ucdsnmp=no
24374 else
24375   echo "$as_me: failed program was:" >&5
24376 sed 's/^/| /' conftest.$ac_ext >&5
24377
24378 ucdsnmp=
24379 fi
24380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24381     if test "x$ucdsnmp" != "x"; then
24382       break;
24383     fi
24384   done
24385   CFLAGS="$old_CFLAGS"
24386 fi
24387
24388 if test "x$ucdsnmp" = "x"; then
24389   echo "$as_me:$LINENO: result: no" >&5
24390 echo "${ECHO_T}no" >&6
24391 else
24392   if test "x$ucdsnmp" = "xyes"; then
24393     echo "$as_me:$LINENO: result: (ucd-snmp)yes" >&5
24394 echo "${ECHO_T}(ucd-snmp)yes" >&6
24395
24396 cat >>confdefs.h <<\_ACEOF
24397 #define HAVE_UCD_SNMP_ASN1_SNMP_SNMPIMPL_H
24398 _ACEOF
24399
24400   else
24401     echo "$as_me:$LINENO: result: yes" >&5
24402 echo "${ECHO_T}yes" >&6
24403
24404 cat >>confdefs.h <<\_ACEOF
24405 #define HAVE_ASN1_SNMP_SNMPIMPL_H
24406 _ACEOF
24407
24408   fi
24409   echo "$as_me:$LINENO: checking for snmp_build_var_op in -lsnmp" >&5
24410 echo $ECHO_N "checking for snmp_build_var_op in -lsnmp... $ECHO_C" >&6
24411
24412   old_LIBS="$LIBS"
24413   LIBS="$old_LIBS -lsnmp"
24414   cat >conftest.$ac_ext <<_ACEOF
24415 /* confdefs.h.  */
24416 _ACEOF
24417 cat confdefs.h >>conftest.$ac_ext
24418 cat >>conftest.$ac_ext <<_ACEOF
24419 /* end confdefs.h.  */
24420 extern char snmp_build_var_op();
24421 int
24422 main ()
24423 {
24424  snmp_build_var_op()
24425   ;
24426   return 0;
24427 }
24428 _ACEOF
24429 rm -f conftest.$ac_objext conftest$ac_exeext
24430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24431   (eval $ac_link) 2>conftest.er1
24432   ac_status=$?
24433   grep -v '^ *+' conftest.er1 >conftest.err
24434   rm -f conftest.er1
24435   cat conftest.err >&5
24436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24437   (exit $ac_status); } &&
24438          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24440   (eval $ac_try) 2>&5
24441   ac_status=$?
24442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24443   (exit $ac_status); }; } &&
24444          { ac_try='test -s conftest$ac_exeext'
24445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24446   (eval $ac_try) 2>&5
24447   ac_status=$?
24448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24449   (exit $ac_status); }; }; then
24450   SNMP_LIBS="-lsnmp"
24451 else
24452   echo "$as_me: failed program was:" >&5
24453 sed 's/^/| /' conftest.$ac_ext >&5
24454
24455 SNMP_LIBS=
24456 fi
24457 rm -f conftest.err conftest.$ac_objext \
24458       conftest$ac_exeext conftest.$ac_ext
24459
24460   if test "x$SNMP_LIBS" = "x"; then
24461     for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $with_snmp_lib_dir; do
24462       LIBS="$old_LIBS -L$try -lsnmp"
24463       cat >conftest.$ac_ext <<_ACEOF
24464 /* confdefs.h.  */
24465 _ACEOF
24466 cat confdefs.h >>conftest.$ac_ext
24467 cat >>conftest.$ac_ext <<_ACEOF
24468 /* end confdefs.h.  */
24469 extern char snmp_build_var_op();
24470 int
24471 main ()
24472 {
24473  snmp_build_var_op()
24474   ;
24475   return 0;
24476 }
24477 _ACEOF
24478 rm -f conftest.$ac_objext conftest$ac_exeext
24479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24480   (eval $ac_link) 2>conftest.er1
24481   ac_status=$?
24482   grep -v '^ *+' conftest.er1 >conftest.err
24483   rm -f conftest.er1
24484   cat conftest.err >&5
24485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24486   (exit $ac_status); } &&
24487          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24489   (eval $ac_try) 2>&5
24490   ac_status=$?
24491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24492   (exit $ac_status); }; } &&
24493          { ac_try='test -s conftest$ac_exeext'
24494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24495   (eval $ac_try) 2>&5
24496   ac_status=$?
24497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24498   (exit $ac_status); }; }; then
24499   SNMP_LIBS="-L$try -lsnmp"
24500 else
24501   echo "$as_me: failed program was:" >&5
24502 sed 's/^/| /' conftest.$ac_ext >&5
24503
24504 SNMP_LIBS=
24505 fi
24506 rm -f conftest.err conftest.$ac_objext \
24507       conftest$ac_exeext conftest.$ac_ext
24508       if test "x$SNMP_LIBS" != "x"; then
24509         break;
24510       fi
24511       LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
24512       cat >conftest.$ac_ext <<_ACEOF
24513 /* confdefs.h.  */
24514 _ACEOF
24515 cat confdefs.h >>conftest.$ac_ext
24516 cat >>conftest.$ac_ext <<_ACEOF
24517 /* end confdefs.h.  */
24518 extern char snmp_build_var_op();
24519 int
24520 main ()
24521 {
24522  snmp_build_var_op()
24523   ;
24524   return 0;
24525 }
24526 _ACEOF
24527 rm -f conftest.$ac_objext conftest$ac_exeext
24528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24529   (eval $ac_link) 2>conftest.er1
24530   ac_status=$?
24531   grep -v '^ *+' conftest.er1 >conftest.err
24532   rm -f conftest.er1
24533   cat conftest.err >&5
24534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24535   (exit $ac_status); } &&
24536          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24538   (eval $ac_try) 2>&5
24539   ac_status=$?
24540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24541   (exit $ac_status); }; } &&
24542          { ac_try='test -s conftest$ac_exeext'
24543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24544   (eval $ac_try) 2>&5
24545   ac_status=$?
24546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24547   (exit $ac_status); }; }; then
24548   SNMP_LIBS="-L$try -lsnmp -lcrypto"
24549 else
24550   echo "$as_me: failed program was:" >&5
24551 sed 's/^/| /' conftest.$ac_ext >&5
24552
24553 SNMP_LIBS=
24554 fi
24555 rm -f conftest.err conftest.$ac_objext \
24556       conftest$ac_exeext conftest.$ac_ext
24557       if test "x$SNMP_LIBS" != "x"; then
24558         break;
24559       fi
24560       LIBS="$old_LIBS -L$try -lsnmp -lcrypto -lkstat"
24561       cat >conftest.$ac_ext <<_ACEOF
24562 /* confdefs.h.  */
24563 _ACEOF
24564 cat confdefs.h >>conftest.$ac_ext
24565 cat >>conftest.$ac_ext <<_ACEOF
24566 /* end confdefs.h.  */
24567 extern char snmp_build_var_op();
24568 int
24569 main ()
24570 {
24571  snmp_build_var_op()
24572   ;
24573   return 0;
24574 }
24575 _ACEOF
24576 rm -f conftest.$ac_objext conftest$ac_exeext
24577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24578   (eval $ac_link) 2>conftest.er1
24579   ac_status=$?
24580   grep -v '^ *+' conftest.er1 >conftest.err
24581   rm -f conftest.er1
24582   cat conftest.err >&5
24583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24584   (exit $ac_status); } &&
24585          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24587   (eval $ac_try) 2>&5
24588   ac_status=$?
24589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24590   (exit $ac_status); }; } &&
24591          { ac_try='test -s conftest$ac_exeext'
24592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24593   (eval $ac_try) 2>&5
24594   ac_status=$?
24595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24596   (exit $ac_status); }; }; then
24597   SNMP_LIBS="-L$try -lsnmp -lcrypto -lkstat"
24598 else
24599   echo "$as_me: failed program was:" >&5
24600 sed 's/^/| /' conftest.$ac_ext >&5
24601
24602 SNMP_LIBS=
24603 fi
24604 rm -f conftest.err conftest.$ac_objext \
24605       conftest$ac_exeext conftest.$ac_ext
24606       if test "x$SNMP_LIBS" != "x"; then
24607         break;
24608       fi
24609     done
24610   fi
24611   LIBS="$old_LIBS"
24612
24613           CFLAGS="$old_CFLAGS"
24614   if test "x$SNMP_LIBS" = "x"; then
24615     echo "$as_me:$LINENO: result: no" >&5
24616 echo "${ECHO_T}no" >&6
24617     SNMP_INCLUDE=
24618   else
24619     echo "$as_me:$LINENO: result: yes" >&5
24620 echo "${ECHO_T}yes" >&6
24621
24622 cat >>confdefs.h <<\_ACEOF
24623 #define WITH_SNMP
24624 _ACEOF
24625
24626
24627 cat >>confdefs.h <<\_ACEOF
24628 #define HAVE_LIBSNMP
24629 _ACEOF
24630
24631   fi
24632 fi
24633
24634 fi
24635
24636
24637 cat >>confdefs.h <<\_ACEOF
24638 #define GNUSTYLE 1
24639 _ACEOF
24640
24641
24642 cat >>confdefs.h <<\_ACEOF
24643 #define SYSVSTYLE 2
24644 _ACEOF
24645
24646
24647 cat >>confdefs.h <<\_ACEOF
24648 #define BSDSTYLE 3
24649 _ACEOF
24650
24651 gethostbyaddrrstyle=""
24652 echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
24653 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6
24654 case "$host" in
24655 *-freebsd*)
24656
24657 cat >>confdefs.h <<\_ACEOF
24658 #define GETHOSTBYADDRRSTYLE BSDSTYLE
24659 _ACEOF
24660
24661         gethostbyaddrrstyle=BSD
24662         { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
24663 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
24664         ;;
24665 esac
24666 if test "x$gethostbyaddrrstyle" = "x"; then
24667         cat >conftest.$ac_ext <<_ACEOF
24668 /* confdefs.h.  */
24669 _ACEOF
24670 cat confdefs.h >>conftest.$ac_ext
24671 cat >>conftest.$ac_ext <<_ACEOF
24672 /* end confdefs.h.  */
24673
24674 #include <stdio.h>
24675 #include <netdb.h>
24676
24677 int
24678 main ()
24679 {
24680  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
24681   ;
24682   return 0;
24683 }
24684 _ACEOF
24685 rm -f conftest.$ac_objext conftest$ac_exeext
24686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24687   (eval $ac_link) 2>conftest.er1
24688   ac_status=$?
24689   grep -v '^ *+' conftest.er1 >conftest.err
24690   rm -f conftest.er1
24691   cat conftest.err >&5
24692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24693   (exit $ac_status); } &&
24694          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24696   (eval $ac_try) 2>&5
24697   ac_status=$?
24698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24699   (exit $ac_status); }; } &&
24700          { ac_try='test -s conftest$ac_exeext'
24701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24702   (eval $ac_try) 2>&5
24703   ac_status=$?
24704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24705   (exit $ac_status); }; }; then
24706
24707
24708 cat >>confdefs.h <<\_ACEOF
24709 #define GETHOSTBYADDRRSTYLE GNUSTYLE
24710 _ACEOF
24711
24712         gethostbyaddrrstyle=GNU
24713
24714 else
24715   echo "$as_me: failed program was:" >&5
24716 sed 's/^/| /' conftest.$ac_ext >&5
24717
24718 fi
24719 rm -f conftest.err conftest.$ac_objext \
24720       conftest$ac_exeext conftest.$ac_ext
24721 fi
24722 if test "x$gethostbyaddrrstyle" = "x"; then
24723         cat >conftest.$ac_ext <<_ACEOF
24724 /* confdefs.h.  */
24725 _ACEOF
24726 cat confdefs.h >>conftest.$ac_ext
24727 cat >>conftest.$ac_ext <<_ACEOF
24728 /* end confdefs.h.  */
24729
24730 #include <stdio.h>
24731 #include <netdb.h>
24732
24733 int
24734 main ()
24735 {
24736  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
24737   ;
24738   return 0;
24739 }
24740 _ACEOF
24741 rm -f conftest.$ac_objext conftest$ac_exeext
24742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24743   (eval $ac_link) 2>conftest.er1
24744   ac_status=$?
24745   grep -v '^ *+' conftest.er1 >conftest.err
24746   rm -f conftest.er1
24747   cat conftest.err >&5
24748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24749   (exit $ac_status); } &&
24750          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24752   (eval $ac_try) 2>&5
24753   ac_status=$?
24754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24755   (exit $ac_status); }; } &&
24756          { ac_try='test -s conftest$ac_exeext'
24757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24758   (eval $ac_try) 2>&5
24759   ac_status=$?
24760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24761   (exit $ac_status); }; }; then
24762
24763
24764 cat >>confdefs.h <<\_ACEOF
24765 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
24766 _ACEOF
24767
24768                 gethostbyaddrrstyle=SYSV
24769
24770 else
24771   echo "$as_me: failed program was:" >&5
24772 sed 's/^/| /' conftest.$ac_ext >&5
24773
24774 fi
24775 rm -f conftest.err conftest.$ac_objext \
24776       conftest$ac_exeext conftest.$ac_ext
24777 fi
24778 if test "x$gethostbyaddrrstyle" = "x"; then
24779         cat >conftest.$ac_ext <<_ACEOF
24780 /* confdefs.h.  */
24781 _ACEOF
24782 cat confdefs.h >>conftest.$ac_ext
24783 cat >>conftest.$ac_ext <<_ACEOF
24784 /* end confdefs.h.  */
24785
24786 #include <stdio.h>
24787 #include <netdb.h>
24788
24789 int
24790 main ()
24791 {
24792  gethostbyaddr(NULL, 0, 0)
24793   ;
24794   return 0;
24795 }
24796 _ACEOF
24797 rm -f conftest.$ac_objext conftest$ac_exeext
24798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24799   (eval $ac_link) 2>conftest.er1
24800   ac_status=$?
24801   grep -v '^ *+' conftest.er1 >conftest.err
24802   rm -f conftest.er1
24803   cat conftest.err >&5
24804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24805   (exit $ac_status); } &&
24806          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24808   (eval $ac_try) 2>&5
24809   ac_status=$?
24810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24811   (exit $ac_status); }; } &&
24812          { ac_try='test -s conftest$ac_exeext'
24813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24814   (eval $ac_try) 2>&5
24815   ac_status=$?
24816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24817   (exit $ac_status); }; }; then
24818
24819
24820 cat >>confdefs.h <<\_ACEOF
24821 #define GETHOSTBYADDRRSTYLE BSDSTYLE
24822 _ACEOF
24823
24824                 gethostbyaddrrstyle=BSD
24825
24826 else
24827   echo "$as_me: failed program was:" >&5
24828 sed 's/^/| /' conftest.$ac_ext >&5
24829
24830 fi
24831 rm -f conftest.err conftest.$ac_objext \
24832       conftest$ac_exeext conftest.$ac_ext
24833 fi
24834
24835 if test "x$gethostbyaddrrstyle" = "x"; then
24836         echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
24837 echo "${ECHO_T}none!  It must not exist, here." >&6
24838 else
24839         echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
24840 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6
24841 fi
24842
24843 if test "x$gethostbyaddrrstyle" = "xBSD"; then
24844         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
24845 echo "$as_me: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
24846 fi
24847
24848 gethostbynamerstyle=""
24849 echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
24850 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6
24851 cat >conftest.$ac_ext <<_ACEOF
24852 /* confdefs.h.  */
24853 _ACEOF
24854 cat confdefs.h >>conftest.$ac_ext
24855 cat >>conftest.$ac_ext <<_ACEOF
24856 /* end confdefs.h.  */
24857
24858 #include <stdio.h>
24859 #include <netdb.h>
24860
24861 int
24862 main ()
24863 {
24864  gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
24865   ;
24866   return 0;
24867 }
24868 _ACEOF
24869 rm -f conftest.$ac_objext conftest$ac_exeext
24870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24871   (eval $ac_link) 2>conftest.er1
24872   ac_status=$?
24873   grep -v '^ *+' conftest.er1 >conftest.err
24874   rm -f conftest.er1
24875   cat conftest.err >&5
24876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24877   (exit $ac_status); } &&
24878          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24880   (eval $ac_try) 2>&5
24881   ac_status=$?
24882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24883   (exit $ac_status); }; } &&
24884          { ac_try='test -s conftest$ac_exeext'
24885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24886   (eval $ac_try) 2>&5
24887   ac_status=$?
24888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24889   (exit $ac_status); }; }; then
24890
24891
24892 cat >>confdefs.h <<\_ACEOF
24893 #define GETHOSTBYNAMERSTYLE GNUSTYLE
24894 _ACEOF
24895
24896         gethostbynamerstyle=GNU
24897
24898 else
24899   echo "$as_me: failed program was:" >&5
24900 sed 's/^/| /' conftest.$ac_ext >&5
24901
24902 fi
24903 rm -f conftest.err conftest.$ac_objext \
24904       conftest$ac_exeext conftest.$ac_ext
24905 if test "x$gethostbynamerstyle" = "x"; then
24906         cat >conftest.$ac_ext <<_ACEOF
24907 /* confdefs.h.  */
24908 _ACEOF
24909 cat confdefs.h >>conftest.$ac_ext
24910 cat >>conftest.$ac_ext <<_ACEOF
24911 /* end confdefs.h.  */
24912
24913 #include <stdio.h>
24914 #include <netdb.h>
24915
24916 int
24917 main ()
24918 {
24919  gethostbyname_r(NULL, NULL, NULL, 0, NULL)
24920   ;
24921   return 0;
24922 }
24923 _ACEOF
24924 rm -f conftest.$ac_objext conftest$ac_exeext
24925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24926   (eval $ac_link) 2>conftest.er1
24927   ac_status=$?
24928   grep -v '^ *+' conftest.er1 >conftest.err
24929   rm -f conftest.er1
24930   cat conftest.err >&5
24931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24932   (exit $ac_status); } &&
24933          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24935   (eval $ac_try) 2>&5
24936   ac_status=$?
24937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24938   (exit $ac_status); }; } &&
24939          { ac_try='test -s conftest$ac_exeext'
24940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24941   (eval $ac_try) 2>&5
24942   ac_status=$?
24943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24944   (exit $ac_status); }; }; then
24945
24946
24947 cat >>confdefs.h <<\_ACEOF
24948 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
24949 _ACEOF
24950
24951                 gethostbynamerstyle=SYSV
24952
24953 else
24954   echo "$as_me: failed program was:" >&5
24955 sed 's/^/| /' conftest.$ac_ext >&5
24956
24957 fi
24958 rm -f conftest.err conftest.$ac_objext \
24959       conftest$ac_exeext conftest.$ac_ext
24960 fi
24961 if test "x$gethostbynamerstyle" = "x"; then
24962         cat >conftest.$ac_ext <<_ACEOF
24963 /* confdefs.h.  */
24964 _ACEOF
24965 cat confdefs.h >>conftest.$ac_ext
24966 cat >>conftest.$ac_ext <<_ACEOF
24967 /* end confdefs.h.  */
24968
24969 #include <stdio.h>
24970 #include <netdb.h>
24971
24972 int
24973 main ()
24974 {
24975  gethostbyname(NULL)
24976   ;
24977   return 0;
24978 }
24979 _ACEOF
24980 rm -f conftest.$ac_objext conftest$ac_exeext
24981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24982   (eval $ac_link) 2>conftest.er1
24983   ac_status=$?
24984   grep -v '^ *+' conftest.er1 >conftest.err
24985   rm -f conftest.er1
24986   cat conftest.err >&5
24987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24988   (exit $ac_status); } &&
24989          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24991   (eval $ac_try) 2>&5
24992   ac_status=$?
24993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24994   (exit $ac_status); }; } &&
24995          { ac_try='test -s conftest$ac_exeext'
24996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24997   (eval $ac_try) 2>&5
24998   ac_status=$?
24999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25000   (exit $ac_status); }; }; then
25001
25002
25003 cat >>confdefs.h <<\_ACEOF
25004 #define GETHOSTBYNAMERSTYLE BSDSTYLE
25005 _ACEOF
25006
25007                 gethostbynamerstyle=BSD
25008
25009 else
25010   echo "$as_me: failed program was:" >&5
25011 sed 's/^/| /' conftest.$ac_ext >&5
25012
25013 fi
25014 rm -f conftest.err conftest.$ac_objext \
25015       conftest$ac_exeext conftest.$ac_ext
25016 fi
25017
25018 if test "x$gethostbynamerstyle" = "x"; then
25019         echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
25020 echo "${ECHO_T}none!  It must not exist, here." >&6
25021 else
25022         echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
25023 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6
25024 fi
25025
25026 if test "x$gethostbynamerstyle" = "xBSD"; then
25027         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
25028 echo "$as_me: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
25029 fi
25030
25031
25032 cat >>confdefs.h <<\_ACEOF
25033 #define POSIXSTYLE 1
25034 _ACEOF
25035
25036
25037 cat >>confdefs.h <<\_ACEOF
25038 #define SOLARISSTYLE 2
25039 _ACEOF
25040
25041 ctimerstyle=""
25042 echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
25043 echo $ECHO_N "checking ctime_r() syntax... $ECHO_C" >&6
25044 cat >conftest.$ac_ext <<_ACEOF
25045 /* confdefs.h.  */
25046 _ACEOF
25047 cat confdefs.h >>conftest.$ac_ext
25048 cat >>conftest.$ac_ext <<_ACEOF
25049 /* end confdefs.h.  */
25050
25051 #include <time.h>
25052
25053 int
25054 main ()
25055 {
25056  ctime_r(NULL, NULL, 0)
25057   ;
25058   return 0;
25059 }
25060 _ACEOF
25061 rm -f conftest.$ac_objext conftest$ac_exeext
25062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25063   (eval $ac_link) 2>conftest.er1
25064   ac_status=$?
25065   grep -v '^ *+' conftest.er1 >conftest.err
25066   rm -f conftest.er1
25067   cat conftest.err >&5
25068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25069   (exit $ac_status); } &&
25070          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25072   (eval $ac_try) 2>&5
25073   ac_status=$?
25074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25075   (exit $ac_status); }; } &&
25076          { ac_try='test -s conftest$ac_exeext'
25077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25078   (eval $ac_try) 2>&5
25079   ac_status=$?
25080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25081   (exit $ac_status); }; }; then
25082
25083
25084 cat >>confdefs.h <<\_ACEOF
25085 #define CTIMERSTYLE SOLARISSTYLE
25086 _ACEOF
25087
25088         ctimerstyle="SOLARIS"
25089
25090 else
25091   echo "$as_me: failed program was:" >&5
25092 sed 's/^/| /' conftest.$ac_ext >&5
25093
25094 fi
25095 rm -f conftest.err conftest.$ac_objext \
25096       conftest$ac_exeext conftest.$ac_ext
25097 if test "x$ctimerstyle" = "x"; then
25098         cat >conftest.$ac_ext <<_ACEOF
25099 /* confdefs.h.  */
25100 _ACEOF
25101 cat confdefs.h >>conftest.$ac_ext
25102 cat >>conftest.$ac_ext <<_ACEOF
25103 /* end confdefs.h.  */
25104
25105 #include <time.h>
25106
25107 int
25108 main ()
25109 {
25110  ctime_r(NULL, NULL)
25111   ;
25112   return 0;
25113 }
25114 _ACEOF
25115 rm -f conftest.$ac_objext conftest$ac_exeext
25116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25117   (eval $ac_link) 2>conftest.er1
25118   ac_status=$?
25119   grep -v '^ *+' conftest.er1 >conftest.err
25120   rm -f conftest.er1
25121   cat conftest.err >&5
25122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25123   (exit $ac_status); } &&
25124          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25126   (eval $ac_try) 2>&5
25127   ac_status=$?
25128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25129   (exit $ac_status); }; } &&
25130          { ac_try='test -s conftest$ac_exeext'
25131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25132   (eval $ac_try) 2>&5
25133   ac_status=$?
25134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25135   (exit $ac_status); }; }; then
25136
25137
25138 cat >>confdefs.h <<\_ACEOF
25139 #define CTIMERSTYLE POSIXSTYLE
25140 _ACEOF
25141
25142                 ctimerstyle="POSIX"
25143
25144 else
25145   echo "$as_me: failed program was:" >&5
25146 sed 's/^/| /' conftest.$ac_ext >&5
25147
25148 fi
25149 rm -f conftest.err conftest.$ac_objext \
25150       conftest$ac_exeext conftest.$ac_ext
25151 fi
25152
25153 if test "x$ctimerstyle" = "x"; then
25154         echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
25155 echo "${ECHO_T}none!  It must not exist, here." >&6
25156 else
25157         echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
25158 echo "${ECHO_T}${ctimerstyle}-style" >&6
25159 fi
25160
25161 HOSTINFO=$host
25162
25163
25164
25165 top_builddir=`pwd`
25166 export top_builddir
25167 echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
25168 echo "${ECHO_T}top_builddir=$top_builddir" >&6
25169
25170
25171
25172 if test "x$INCLTDL" != "x";then
25173   INCLTDL='-I${top_builddir}/''libltdl'
25174 fi
25175
25176
25177
25178 mysubdirs="$LIBLTDLPATH"
25179 if test "x$EXPERIMENTAL" = "xyes"; then
25180   bar=`ls -1 "${srcdir}"/src/modules/rlm_*/configure | sed 's%/configure%%'`
25181     mysubdirs=`echo $mysubdirs $bar`
25182 else
25183         for bar in `cat "${srcdir}"/src/modules/stable`; do
25184     if test -f "${srcdir}"/src/modules/$bar/configure; then
25185       mysubdirs="$mysubdirs src/modules/$bar"
25186     fi
25187   done
25188 fi
25189
25190 if test "x$EXPERIMENTAL" = "xyes"; then
25191   for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
25192     MODULES="$MODULES $foo"
25193   done
25194 else
25195             for foo in `cat "${srcdir}"/src/modules/stable`; do
25196     MODULES="$MODULES $foo"
25197    done
25198 fi
25199
25200
25201
25202 subdirs="$subdirs $mysubdirs"
25203
25204
25205
25206
25207           ac_config_commands="$ac_config_commands stamp-h"
25208
25209           ac_config_commands="$ac_config_commands build-radpaths-h"
25210
25211           ac_config_commands="$ac_config_commands main-chmod"
25212
25213           ac_config_commands="$ac_config_commands scripts-chmod"
25214
25215
25216
25217
25218
25219 USE_SHARED_LIBS=$enable_shared
25220
25221 USE_STATIC_LIBS=$enable_static
25222
25223
25224
25225
25226
25227
25228                                                                                                                                                       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"
25229 cat >confcache <<\_ACEOF
25230 # This file is a shell script that caches the results of configure
25231 # tests run on this system so they can be shared between configure
25232 # scripts and configure runs, see configure's option --config-cache.
25233 # It is not useful on other systems.  If it contains results you don't
25234 # want to keep, you may remove or edit it.
25235 #
25236 # config.status only pays attention to the cache file if you give it
25237 # the --recheck option to rerun configure.
25238 #
25239 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25240 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25241 # following values.
25242
25243 _ACEOF
25244
25245 # The following way of writing the cache mishandles newlines in values,
25246 # but we know of no workaround that is simple, portable, and efficient.
25247 # So, don't put newlines in cache variables' values.
25248 # Ultrix sh set writes to stderr and can't be redirected directly,
25249 # and sets the high bit in the cache file unless we assign to the vars.
25250 {
25251   (set) 2>&1 |
25252     case `(ac_space=' '; set | grep ac_space) 2>&1` in
25253     *ac_space=\ *)
25254       # `set' does not quote correctly, so add quotes (double-quote
25255       # substitution turns \\\\ into \\, and sed turns \\ into \).
25256       sed -n \
25257         "s/'/'\\\\''/g;
25258           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25259       ;;
25260     *)
25261       # `set' quotes correctly as required by POSIX, so do not add quotes.
25262       sed -n \
25263         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
25264       ;;
25265     esac;
25266 } |
25267   sed '
25268      t clear
25269      : clear
25270      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25271      t end
25272      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25273      : end' >>confcache
25274 if diff $cache_file confcache >/dev/null 2>&1; then :; else
25275   if test -w $cache_file; then
25276     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
25277     cat confcache >$cache_file
25278   else
25279     echo "not updating unwritable cache $cache_file"
25280   fi
25281 fi
25282 rm -f confcache
25283
25284 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25285 # Let make expand exec_prefix.
25286 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25287
25288 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25289 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25290 # trailing colons and then remove the whole line if VPATH becomes empty
25291 # (actually we leave an empty line to preserve line numbers).
25292 if test "x$srcdir" = x.; then
25293   ac_vpsub='/^[  ]*VPATH[        ]*=/{
25294 s/:*\$(srcdir):*/:/;
25295 s/:*\${srcdir}:*/:/;
25296 s/:*@srcdir@:*/:/;
25297 s/^\([^=]*=[     ]*\):*/\1/;
25298 s/:*$//;
25299 s/^[^=]*=[       ]*$//;
25300 }'
25301 fi
25302
25303 DEFS=-DHAVE_CONFIG_H
25304
25305 ac_libobjs=
25306 ac_ltlibobjs=
25307 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25308   # 1. Remove the extension, and $U if already installed.
25309   ac_i=`echo "$ac_i" |
25310          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
25311   # 2. Add them.
25312   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
25313   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
25314 done
25315 LIBOBJS=$ac_libobjs
25316
25317 LTLIBOBJS=$ac_ltlibobjs
25318
25319
25320
25321 : ${CONFIG_STATUS=./config.status}
25322 ac_clean_files_save=$ac_clean_files
25323 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25324 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25325 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25326 cat >$CONFIG_STATUS <<_ACEOF
25327 #! $SHELL
25328 # Generated by $as_me.
25329 # Run this file to recreate the current configuration.
25330 # Compiler output produced by configure, useful for debugging
25331 # configure, is in config.log if it exists.
25332
25333 debug=false
25334 ac_cs_recheck=false
25335 ac_cs_silent=false
25336 SHELL=\${CONFIG_SHELL-$SHELL}
25337 _ACEOF
25338
25339 cat >>$CONFIG_STATUS <<\_ACEOF
25340 ## --------------------- ##
25341 ## M4sh Initialization.  ##
25342 ## --------------------- ##
25343
25344 # Be Bourne compatible
25345 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25346   emulate sh
25347   NULLCMD=:
25348   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25349   # is contrary to our usage.  Disable this feature.
25350   alias -g '${1+"$@"}'='"$@"'
25351 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25352   set -o posix
25353 fi
25354 DUALCASE=1; export DUALCASE # for MKS sh
25355
25356 # Support unset when possible.
25357 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25358   as_unset=unset
25359 else
25360   as_unset=false
25361 fi
25362
25363
25364 # Work around bugs in pre-3.0 UWIN ksh.
25365 $as_unset ENV MAIL MAILPATH
25366 PS1='$ '
25367 PS2='> '
25368 PS4='+ '
25369
25370 # NLS nuisances.
25371 for as_var in \
25372   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25373   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25374   LC_TELEPHONE LC_TIME
25375 do
25376   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25377     eval $as_var=C; export $as_var
25378   else
25379     $as_unset $as_var
25380   fi
25381 done
25382
25383 # Required to use basename.
25384 if expr a : '\(a\)' >/dev/null 2>&1; then
25385   as_expr=expr
25386 else
25387   as_expr=false
25388 fi
25389
25390 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
25391   as_basename=basename
25392 else
25393   as_basename=false
25394 fi
25395
25396
25397 # Name of the executable.
25398 as_me=`$as_basename "$0" ||
25399 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25400          X"$0" : 'X\(//\)$' \| \
25401          X"$0" : 'X\(/\)$' \| \
25402          .     : '\(.\)' 2>/dev/null ||
25403 echo X/"$0" |
25404     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
25405           /^X\/\(\/\/\)$/{ s//\1/; q; }
25406           /^X\/\(\/\).*/{ s//\1/; q; }
25407           s/.*/./; q'`
25408
25409
25410 # PATH needs CR, and LINENO needs CR and PATH.
25411 # Avoid depending upon Character Ranges.
25412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25415 as_cr_digits='0123456789'
25416 as_cr_alnum=$as_cr_Letters$as_cr_digits
25417
25418 # The user is always right.
25419 if test "${PATH_SEPARATOR+set}" != set; then
25420   echo "#! /bin/sh" >conf$$.sh
25421   echo  "exit 0"   >>conf$$.sh
25422   chmod +x conf$$.sh
25423   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25424     PATH_SEPARATOR=';'
25425   else
25426     PATH_SEPARATOR=:
25427   fi
25428   rm -f conf$$.sh
25429 fi
25430
25431
25432   as_lineno_1=$LINENO
25433   as_lineno_2=$LINENO
25434   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25435   test "x$as_lineno_1" != "x$as_lineno_2" &&
25436   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
25437   # Find who we are.  Look in the path if we contain no path at all
25438   # relative or not.
25439   case $0 in
25440     *[\\/]* ) as_myself=$0 ;;
25441     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25442 for as_dir in $PATH
25443 do
25444   IFS=$as_save_IFS
25445   test -z "$as_dir" && as_dir=.
25446   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25447 done
25448
25449        ;;
25450   esac
25451   # We did not find ourselves, most probably we were run as `sh COMMAND'
25452   # in which case we are not to be found in the path.
25453   if test "x$as_myself" = x; then
25454     as_myself=$0
25455   fi
25456   if test ! -f "$as_myself"; then
25457     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
25458 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
25459    { (exit 1); exit 1; }; }
25460   fi
25461   case $CONFIG_SHELL in
25462   '')
25463     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25464 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
25465 do
25466   IFS=$as_save_IFS
25467   test -z "$as_dir" && as_dir=.
25468   for as_base in sh bash ksh sh5; do
25469          case $as_dir in
25470          /*)
25471            if ("$as_dir/$as_base" -c '
25472   as_lineno_1=$LINENO
25473   as_lineno_2=$LINENO
25474   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25475   test "x$as_lineno_1" != "x$as_lineno_2" &&
25476   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
25477              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
25478              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
25479              CONFIG_SHELL=$as_dir/$as_base
25480              export CONFIG_SHELL
25481              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
25482            fi;;
25483          esac
25484        done
25485 done
25486 ;;
25487   esac
25488
25489   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25490   # uniformly replaced by the line number.  The first 'sed' inserts a
25491   # line-number line before each line; the second 'sed' does the real
25492   # work.  The second script uses 'N' to pair each line-number line
25493   # with the numbered line, and appends trailing '-' during
25494   # substitution so that $LINENO is not a special case at line end.
25495   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25496   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
25497   sed '=' <$as_myself |
25498     sed '
25499       N
25500       s,$,-,
25501       : loop
25502       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
25503       t loop
25504       s,-$,,
25505       s,^['$as_cr_digits']*\n,,
25506     ' >$as_me.lineno &&
25507   chmod +x $as_me.lineno ||
25508     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
25509 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
25510    { (exit 1); exit 1; }; }
25511
25512   # Don't try to exec as it changes $[0], causing all sort of problems
25513   # (the dirname of $[0] is not the place where we might find the
25514   # original and so on.  Autoconf is especially sensible to this).
25515   . ./$as_me.lineno
25516   # Exit status is that of the last command.
25517   exit
25518 }
25519
25520
25521 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
25522   *c*,-n*) ECHO_N= ECHO_C='
25523 ' ECHO_T='      ' ;;
25524   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
25525   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
25526 esac
25527
25528 if expr a : '\(a\)' >/dev/null 2>&1; then
25529   as_expr=expr
25530 else
25531   as_expr=false
25532 fi
25533
25534 rm -f conf$$ conf$$.exe conf$$.file
25535 echo >conf$$.file
25536 if ln -s conf$$.file conf$$ 2>/dev/null; then
25537   # We could just check for DJGPP; but this test a) works b) is more generic
25538   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
25539   if test -f conf$$.exe; then
25540     # Don't use ln at all; we don't have any links
25541     as_ln_s='cp -p'
25542   else
25543     as_ln_s='ln -s'
25544   fi
25545 elif ln conf$$.file conf$$ 2>/dev/null; then
25546   as_ln_s=ln
25547 else
25548   as_ln_s='cp -p'
25549 fi
25550 rm -f conf$$ conf$$.exe conf$$.file
25551
25552 if mkdir -p . 2>/dev/null; then
25553   as_mkdir_p=:
25554 else
25555   test -d ./-p && rmdir ./-p
25556   as_mkdir_p=false
25557 fi
25558
25559 as_executable_p="test -f"
25560
25561 # Sed expression to map a string onto a valid CPP name.
25562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25563
25564 # Sed expression to map a string onto a valid variable name.
25565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25566
25567
25568 # IFS
25569 # We need space, tab and new line, in precisely that order.
25570 as_nl='
25571 '
25572 IFS="   $as_nl"
25573
25574 # CDPATH.
25575 $as_unset CDPATH
25576
25577 exec 6>&1
25578
25579 # Open the log real soon, to keep \$[0] and so on meaningful, and to
25580 # report actual input values of CONFIG_FILES etc. instead of their
25581 # values after options handling.  Logging --version etc. is OK.
25582 exec 5>>config.log
25583 {
25584   echo
25585   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25586 ## Running $as_me. ##
25587 _ASBOX
25588 } >&5
25589 cat >&5 <<_CSEOF
25590
25591 This file was extended by $as_me, which was
25592 generated by GNU Autoconf 2.59.  Invocation command line was
25593
25594   CONFIG_FILES    = $CONFIG_FILES
25595   CONFIG_HEADERS  = $CONFIG_HEADERS
25596   CONFIG_LINKS    = $CONFIG_LINKS
25597   CONFIG_COMMANDS = $CONFIG_COMMANDS
25598   $ $0 $@
25599
25600 _CSEOF
25601 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
25602 echo >&5
25603 _ACEOF
25604
25605 # Files that config.status was made for.
25606 if test -n "$ac_config_files"; then
25607   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
25608 fi
25609
25610 if test -n "$ac_config_headers"; then
25611   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
25612 fi
25613
25614 if test -n "$ac_config_links"; then
25615   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
25616 fi
25617
25618 if test -n "$ac_config_commands"; then
25619   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25620 fi
25621
25622 cat >>$CONFIG_STATUS <<\_ACEOF
25623
25624 ac_cs_usage="\
25625 \`$as_me' instantiates files from templates according to the
25626 current configuration.
25627
25628 Usage: $0 [OPTIONS] [FILE]...
25629
25630   -h, --help       print this help, then exit
25631   -V, --version    print version number, then exit
25632   -q, --quiet      do not print progress messages
25633   -d, --debug      don't remove temporary files
25634       --recheck    update $as_me by reconfiguring in the same conditions
25635   --file=FILE[:TEMPLATE]
25636                    instantiate the configuration file FILE
25637   --header=FILE[:TEMPLATE]
25638                    instantiate the configuration header FILE
25639
25640 Configuration files:
25641 $config_files
25642
25643 Configuration headers:
25644 $config_headers
25645
25646 Configuration commands:
25647 $config_commands
25648
25649 Report bugs to <bug-autoconf@gnu.org>."
25650 _ACEOF
25651
25652 cat >>$CONFIG_STATUS <<_ACEOF
25653 ac_cs_version="\\
25654 config.status
25655 configured by $0, generated by GNU Autoconf 2.59,
25656   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25657
25658 Copyright (C) 2003 Free Software Foundation, Inc.
25659 This config.status script is free software; the Free Software Foundation
25660 gives unlimited permission to copy, distribute and modify it."
25661 srcdir=$srcdir
25662 _ACEOF
25663
25664 cat >>$CONFIG_STATUS <<\_ACEOF
25665 # If no file are specified by the user, then we need to provide default
25666 # value.  By we need to know if files were specified by the user.
25667 ac_need_defaults=:
25668 while test $# != 0
25669 do
25670   case $1 in
25671   --*=*)
25672     ac_option=`expr "x$1" : 'x\([^=]*\)='`
25673     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
25674     ac_shift=:
25675     ;;
25676   -*)
25677     ac_option=$1
25678     ac_optarg=$2
25679     ac_shift=shift
25680     ;;
25681   *) # This is not an option, so the user has probably given explicit
25682      # arguments.
25683      ac_option=$1
25684      ac_need_defaults=false;;
25685   esac
25686
25687   case $ac_option in
25688   # Handling of the options.
25689 _ACEOF
25690 cat >>$CONFIG_STATUS <<\_ACEOF
25691   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25692     ac_cs_recheck=: ;;
25693   --version | --vers* | -V )
25694     echo "$ac_cs_version"; exit 0 ;;
25695   --he | --h)
25696     # Conflict between --help and --header
25697     { { echo "$as_me:$LINENO: error: ambiguous option: $1
25698 Try \`$0 --help' for more information." >&5
25699 echo "$as_me: error: ambiguous option: $1
25700 Try \`$0 --help' for more information." >&2;}
25701    { (exit 1); exit 1; }; };;
25702   --help | --hel | -h )
25703     echo "$ac_cs_usage"; exit 0 ;;
25704   --debug | --d* | -d )
25705     debug=: ;;
25706   --file | --fil | --fi | --f )
25707     $ac_shift
25708     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25709     ac_need_defaults=false;;
25710   --header | --heade | --head | --hea )
25711     $ac_shift
25712     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25713     ac_need_defaults=false;;
25714   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25715   | -silent | --silent | --silen | --sile | --sil | --si | --s)
25716     ac_cs_silent=: ;;
25717
25718   # This is an error.
25719   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
25720 Try \`$0 --help' for more information." >&5
25721 echo "$as_me: error: unrecognized option: $1
25722 Try \`$0 --help' for more information." >&2;}
25723    { (exit 1); exit 1; }; } ;;
25724
25725   *) ac_config_targets="$ac_config_targets $1" ;;
25726
25727   esac
25728   shift
25729 done
25730
25731 ac_configure_extra_args=
25732
25733 if $ac_cs_silent; then
25734   exec 6>/dev/null
25735   ac_configure_extra_args="$ac_configure_extra_args --silent"
25736 fi
25737
25738 _ACEOF
25739 cat >>$CONFIG_STATUS <<_ACEOF
25740 if \$ac_cs_recheck; then
25741   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25742   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25743 fi
25744
25745 _ACEOF
25746
25747
25748
25749
25750
25751 cat >>$CONFIG_STATUS <<\_ACEOF
25752 for ac_config_target in $ac_config_targets
25753 do
25754   case "$ac_config_target" in
25755   # Handling of arguments.
25756   "./Make.inc" ) CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
25757   "./src/include/build-radpaths-h" ) CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
25758   "./src/main/Makefile" ) CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
25759   "./src/main/checkrad.pl" ) CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
25760   "./src/main/radlast" ) CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
25761   "./src/main/radtest" ) CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
25762   "./scripts/rc.radiusd" ) CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
25763   "./scripts/radwatch" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
25764   "./scripts/check-radiusd-config" ) CONFIG_FILES="$CONFIG_FILES ./scripts/check-radiusd-config" ;;
25765   "./scripts/radiusd.cron.daily" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
25766   "./scripts/radiusd.cron.monthly" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
25767   "./scripts/cryptpasswd" ) CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
25768   "./raddb/dictionary" ) CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
25769   "./raddb/radiusd.conf" ) CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
25770   "./raddb/radrelay.conf" ) CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
25771   "stamp-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
25772   "build-radpaths-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
25773   "main-chmod" ) CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
25774   "scripts-chmod" ) CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
25775   "src/include/autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
25776   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25777 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25778    { (exit 1); exit 1; }; };;
25779   esac
25780 done
25781
25782 # If the user did not use the arguments to specify the items to instantiate,
25783 # then the envvar interface is used.  Set only those that are not.
25784 # We use the long form for the default assignment because of an extremely
25785 # bizarre bug on SunOS 4.1.3.
25786 if $ac_need_defaults; then
25787   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25788   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25789   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25790 fi
25791
25792 # Have a temporary directory for convenience.  Make it in the build tree
25793 # simply because there is no reason to put it here, and in addition,
25794 # creating and moving files from /tmp can sometimes cause problems.
25795 # Create a temporary directory, and hook for its removal unless debugging.
25796 $debug ||
25797 {
25798   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25799   trap '{ (exit 1); exit 1; }' 1 2 13 15
25800 }
25801
25802 # Create a (secure) tmp directory for tmp files.
25803
25804 {
25805   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
25806   test -n "$tmp" && test -d "$tmp"
25807 }  ||
25808 {
25809   tmp=./confstat$$-$RANDOM
25810   (umask 077 && mkdir $tmp)
25811 } ||
25812 {
25813    echo "$me: cannot create a temporary directory in ." >&2
25814    { (exit 1); exit 1; }
25815 }
25816
25817 _ACEOF
25818
25819 cat >>$CONFIG_STATUS <<_ACEOF
25820
25821 #
25822 # CONFIG_FILES section.
25823 #
25824
25825 # No need to generate the scripts if there are no CONFIG_FILES.
25826 # This happens for instance when ./config.status config.h
25827 if test -n "\$CONFIG_FILES"; then
25828   # Protect against being on the right side of a sed subst in config.status.
25829   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25830    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25831 s,@SHELL@,$SHELL,;t t
25832 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25833 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25834 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25835 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25836 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25837 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25838 s,@exec_prefix@,$exec_prefix,;t t
25839 s,@prefix@,$prefix,;t t
25840 s,@program_transform_name@,$program_transform_name,;t t
25841 s,@bindir@,$bindir,;t t
25842 s,@sbindir@,$sbindir,;t t
25843 s,@libexecdir@,$libexecdir,;t t
25844 s,@datadir@,$datadir,;t t
25845 s,@sysconfdir@,$sysconfdir,;t t
25846 s,@sharedstatedir@,$sharedstatedir,;t t
25847 s,@localstatedir@,$localstatedir,;t t
25848 s,@libdir@,$libdir,;t t
25849 s,@includedir@,$includedir,;t t
25850 s,@oldincludedir@,$oldincludedir,;t t
25851 s,@infodir@,$infodir,;t t
25852 s,@mandir@,$mandir,;t t
25853 s,@build_alias@,$build_alias,;t t
25854 s,@host_alias@,$host_alias,;t t
25855 s,@target_alias@,$target_alias,;t t
25856 s,@DEFS@,$DEFS,;t t
25857 s,@ECHO_C@,$ECHO_C,;t t
25858 s,@ECHO_N@,$ECHO_N,;t t
25859 s,@ECHO_T@,$ECHO_T,;t t
25860 s,@LIBS@,$LIBS,;t t
25861 s,@CC@,$CC,;t t
25862 s,@CFLAGS@,$CFLAGS,;t t
25863 s,@LDFLAGS@,$LDFLAGS,;t t
25864 s,@CPPFLAGS@,$CPPFLAGS,;t t
25865 s,@ac_ct_CC@,$ac_ct_CC,;t t
25866 s,@EXEEXT@,$EXEEXT,;t t
25867 s,@OBJEXT@,$OBJEXT,;t t
25868 s,@CXX@,$CXX,;t t
25869 s,@CXXFLAGS@,$CXXFLAGS,;t t
25870 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
25871 s,@CPP@,$CPP,;t t
25872 s,@EGREP@,$EGREP,;t t
25873 s,@RANLIB@,$RANLIB,;t t
25874 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25875 s,@GMAKE@,$GMAKE,;t t
25876 s,@MAKE@,$MAKE,;t t
25877 s,@LIBLTDLPATH@,$LIBLTDLPATH,;t t
25878 s,@LIBTOOL@,$LIBTOOL,;t t
25879 s,@build@,$build,;t t
25880 s,@build_cpu@,$build_cpu,;t t
25881 s,@build_vendor@,$build_vendor,;t t
25882 s,@build_os@,$build_os,;t t
25883 s,@host@,$host,;t t
25884 s,@host_cpu@,$host_cpu,;t t
25885 s,@host_vendor@,$host_vendor,;t t
25886 s,@host_os@,$host_os,;t t
25887 s,@LN_S@,$LN_S,;t t
25888 s,@ECHO@,$ECHO,;t t
25889 s,@AR@,$AR,;t t
25890 s,@ac_ct_AR@,$ac_ct_AR,;t t
25891 s,@STRIP@,$STRIP,;t t
25892 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
25893 s,@CXXCPP@,$CXXCPP,;t t
25894 s,@F77@,$F77,;t t
25895 s,@FFLAGS@,$FFLAGS,;t t
25896 s,@ac_ct_F77@,$ac_ct_F77,;t t
25897 s,@docdir@,$docdir,;t t
25898 s,@logdir@,$logdir,;t t
25899 s,@radacctdir@,$radacctdir,;t t
25900 s,@raddbdir@,$raddbdir,;t t
25901 s,@PERL@,$PERL,;t t
25902 s,@SNMPGET@,$SNMPGET,;t t
25903 s,@SNMPWALK@,$SNMPWALK,;t t
25904 s,@RUSERS@,$RUSERS,;t t
25905 s,@ACLOCAL@,$ACLOCAL,;t t
25906 s,@AUTOCONF@,$AUTOCONF,;t t
25907 s,@AUTOHEADER@,$AUTOHEADER,;t t
25908 s,@LOCATE@,$LOCATE,;t t
25909 s,@DIRNAME@,$DIRNAME,;t t
25910 s,@GREP@,$GREP,;t t
25911 s,@REGEX@,$REGEX,;t t
25912 s,@REGEX_EXTENDED@,$REGEX_EXTENDED,;t t
25913 s,@OPENSSL_INCLUDE@,$OPENSSL_INCLUDE,;t t
25914 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
25915 s,@PCAP_LIBS@,$PCAP_LIBS,;t t
25916 s,@LIBPREFIX@,$LIBPREFIX,;t t
25917 s,@CRYPTLIB@,$CRYPTLIB,;t t
25918 s,@SNMP_LIBS@,$SNMP_LIBS,;t t
25919 s,@SNMP_INCLUDE@,$SNMP_INCLUDE,;t t
25920 s,@HOSTINFO@,$HOSTINFO,;t t
25921 s,@LIBLTDL@,$LIBLTDL,;t t
25922 s,@INCLTDL@,$INCLTDL,;t t
25923 s,@subdirs@,$subdirs,;t t
25924 s,@MODULES@,$MODULES,;t t
25925 s,@INSTALLSTRIP@,$INSTALLSTRIP,;t t
25926 s,@USE_SHARED_LIBS@,$USE_SHARED_LIBS,;t t
25927 s,@USE_STATIC_LIBS@,$USE_STATIC_LIBS,;t t
25928 s,@STATIC_MODULES@,$STATIC_MODULES,;t t
25929 s,@RADIUSD_MAJOR_VERSION@,$RADIUSD_MAJOR_VERSION,;t t
25930 s,@RADIUSD_MINOR_VERSION@,$RADIUSD_MINOR_VERSION,;t t
25931 s,@RADIUSD_VERSION@,$RADIUSD_VERSION,;t t
25932 s,@LIBOBJS@,$LIBOBJS,;t t
25933 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
25934 CEOF
25935
25936 _ACEOF
25937
25938   cat >>$CONFIG_STATUS <<\_ACEOF
25939   # Split the substitutions into bite-sized pieces for seds with
25940   # small command number limits, like on Digital OSF/1 and HP-UX.
25941   ac_max_sed_lines=48
25942   ac_sed_frag=1 # Number of current file.
25943   ac_beg=1 # First line for current file.
25944   ac_end=$ac_max_sed_lines # Line after last line for current file.
25945   ac_more_lines=:
25946   ac_sed_cmds=
25947   while $ac_more_lines; do
25948     if test $ac_beg -gt 1; then
25949       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25950     else
25951       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25952     fi
25953     if test ! -s $tmp/subs.frag; then
25954       ac_more_lines=false
25955     else
25956       # The purpose of the label and of the branching condition is to
25957       # speed up the sed processing (if there are no `@' at all, there
25958       # is no need to browse any of the substitutions).
25959       # These are the two extra sed commands mentioned above.
25960       (echo ':t
25961   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25962       if test -z "$ac_sed_cmds"; then
25963         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25964       else
25965         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25966       fi
25967       ac_sed_frag=`expr $ac_sed_frag + 1`
25968       ac_beg=$ac_end
25969       ac_end=`expr $ac_end + $ac_max_sed_lines`
25970     fi
25971   done
25972   if test -z "$ac_sed_cmds"; then
25973     ac_sed_cmds=cat
25974   fi
25975 fi # test -n "$CONFIG_FILES"
25976
25977 _ACEOF
25978 cat >>$CONFIG_STATUS <<\_ACEOF
25979 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25980   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25981   case $ac_file in
25982   - | *:- | *:-:* ) # input from stdin
25983         cat >$tmp/stdin
25984         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25985         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25986   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25987         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25988   * )   ac_file_in=$ac_file.in ;;
25989   esac
25990
25991   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25992   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25993 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25994          X"$ac_file" : 'X\(//\)[^/]' \| \
25995          X"$ac_file" : 'X\(//\)$' \| \
25996          X"$ac_file" : 'X\(/\)' \| \
25997          .     : '\(.\)' 2>/dev/null ||
25998 echo X"$ac_file" |
25999     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26000           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26001           /^X\(\/\/\)$/{ s//\1/; q; }
26002           /^X\(\/\).*/{ s//\1/; q; }
26003           s/.*/./; q'`
26004   { if $as_mkdir_p; then
26005     mkdir -p "$ac_dir"
26006   else
26007     as_dir="$ac_dir"
26008     as_dirs=
26009     while test ! -d "$as_dir"; do
26010       as_dirs="$as_dir $as_dirs"
26011       as_dir=`(dirname "$as_dir") 2>/dev/null ||
26012 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26013          X"$as_dir" : 'X\(//\)[^/]' \| \
26014          X"$as_dir" : 'X\(//\)$' \| \
26015          X"$as_dir" : 'X\(/\)' \| \
26016          .     : '\(.\)' 2>/dev/null ||
26017 echo X"$as_dir" |
26018     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26019           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26020           /^X\(\/\/\)$/{ s//\1/; q; }
26021           /^X\(\/\).*/{ s//\1/; q; }
26022           s/.*/./; q'`
26023     done
26024     test ! -n "$as_dirs" || mkdir $as_dirs
26025   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26026 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26027    { (exit 1); exit 1; }; }; }
26028
26029   ac_builddir=.
26030
26031 if test "$ac_dir" != .; then
26032   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26033   # A "../" for each directory in $ac_dir_suffix.
26034   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26035 else
26036   ac_dir_suffix= ac_top_builddir=
26037 fi
26038
26039 case $srcdir in
26040   .)  # No --srcdir option.  We are building in place.
26041     ac_srcdir=.
26042     if test -z "$ac_top_builddir"; then
26043        ac_top_srcdir=.
26044     else
26045        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26046     fi ;;
26047   [\\/]* | ?:[\\/]* )  # Absolute path.
26048     ac_srcdir=$srcdir$ac_dir_suffix;
26049     ac_top_srcdir=$srcdir ;;
26050   *) # Relative path.
26051     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26052     ac_top_srcdir=$ac_top_builddir$srcdir ;;
26053 esac
26054
26055 # Do not use `cd foo && pwd` to compute absolute paths, because
26056 # the directories may not exist.
26057 case `pwd` in
26058 .) ac_abs_builddir="$ac_dir";;
26059 *)
26060   case "$ac_dir" in
26061   .) ac_abs_builddir=`pwd`;;
26062   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26063   *) ac_abs_builddir=`pwd`/"$ac_dir";;
26064   esac;;
26065 esac
26066 case $ac_abs_builddir in
26067 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26068 *)
26069   case ${ac_top_builddir}. in
26070   .) ac_abs_top_builddir=$ac_abs_builddir;;
26071   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26072   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26073   esac;;
26074 esac
26075 case $ac_abs_builddir in
26076 .) ac_abs_srcdir=$ac_srcdir;;
26077 *)
26078   case $ac_srcdir in
26079   .) ac_abs_srcdir=$ac_abs_builddir;;
26080   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26081   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26082   esac;;
26083 esac
26084 case $ac_abs_builddir in
26085 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26086 *)
26087   case $ac_top_srcdir in
26088   .) ac_abs_top_srcdir=$ac_abs_builddir;;
26089   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26090   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26091   esac;;
26092 esac
26093
26094
26095
26096   # Let's still pretend it is `configure' which instantiates (i.e., don't
26097   # use $as_me), people would be surprised to read:
26098   #    /* config.h.  Generated by config.status.  */
26099   if test x"$ac_file" = x-; then
26100     configure_input=
26101   else
26102     configure_input="$ac_file.  "
26103   fi
26104   configure_input=$configure_input"Generated from `echo $ac_file_in |
26105                                      sed 's,.*/,,'` by configure."
26106
26107   # First look for the input files in the build tree, otherwise in the
26108   # src tree.
26109   ac_file_inputs=`IFS=:
26110     for f in $ac_file_in; do
26111       case $f in
26112       -) echo $tmp/stdin ;;
26113       [\\/$]*)
26114          # Absolute (can't be DOS-style, as IFS=:)
26115          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26116 echo "$as_me: error: cannot find input file: $f" >&2;}
26117    { (exit 1); exit 1; }; }
26118          echo "$f";;
26119       *) # Relative
26120          if test -f "$f"; then
26121            # Build tree
26122            echo "$f"
26123          elif test -f "$srcdir/$f"; then
26124            # Source tree
26125            echo "$srcdir/$f"
26126          else
26127            # /dev/null tree
26128            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26129 echo "$as_me: error: cannot find input file: $f" >&2;}
26130    { (exit 1); exit 1; }; }
26131          fi;;
26132       esac
26133     done` || { (exit 1); exit 1; }
26134
26135   if test x"$ac_file" != x-; then
26136     { echo "$as_me:$LINENO: creating $ac_file" >&5
26137 echo "$as_me: creating $ac_file" >&6;}
26138     rm -f "$ac_file"
26139   fi
26140 _ACEOF
26141 cat >>$CONFIG_STATUS <<_ACEOF
26142   sed "$ac_vpsub
26143 $extrasub
26144 _ACEOF
26145 cat >>$CONFIG_STATUS <<\_ACEOF
26146 :t
26147 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26148 s,@configure_input@,$configure_input,;t t
26149 s,@srcdir@,$ac_srcdir,;t t
26150 s,@abs_srcdir@,$ac_abs_srcdir,;t t
26151 s,@top_srcdir@,$ac_top_srcdir,;t t
26152 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
26153 s,@builddir@,$ac_builddir,;t t
26154 s,@abs_builddir@,$ac_abs_builddir,;t t
26155 s,@top_builddir@,$ac_top_builddir,;t t
26156 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
26157 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
26158   rm -f $tmp/stdin
26159   if test x"$ac_file" != x-; then
26160     mv $tmp/out $ac_file
26161   else
26162     cat $tmp/out
26163     rm -f $tmp/out
26164   fi
26165
26166 done
26167 _ACEOF
26168 cat >>$CONFIG_STATUS <<\_ACEOF
26169
26170 #
26171 # CONFIG_HEADER section.
26172 #
26173
26174 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
26175 # NAME is the cpp macro being defined and VALUE is the value it is being given.
26176 #
26177 # ac_d sets the value in "#define NAME VALUE" lines.
26178 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
26179 ac_dB='[         ].*$,\1#\2'
26180 ac_dC=' '
26181 ac_dD=',;t'
26182 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
26183 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
26184 ac_uB='$,\1#\2define\3'
26185 ac_uC=' '
26186 ac_uD=',;t'
26187
26188 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
26189   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26190   case $ac_file in
26191   - | *:- | *:-:* ) # input from stdin
26192         cat >$tmp/stdin
26193         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26194         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26195   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26196         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26197   * )   ac_file_in=$ac_file.in ;;
26198   esac
26199
26200   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
26201 echo "$as_me: creating $ac_file" >&6;}
26202
26203   # First look for the input files in the build tree, otherwise in the
26204   # src tree.
26205   ac_file_inputs=`IFS=:
26206     for f in $ac_file_in; do
26207       case $f in
26208       -) echo $tmp/stdin ;;
26209       [\\/$]*)
26210          # Absolute (can't be DOS-style, as IFS=:)
26211          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26212 echo "$as_me: error: cannot find input file: $f" >&2;}
26213    { (exit 1); exit 1; }; }
26214          # Do quote $f, to prevent DOS paths from being IFS'd.
26215          echo "$f";;
26216       *) # Relative
26217          if test -f "$f"; then
26218            # Build tree
26219            echo "$f"
26220          elif test -f "$srcdir/$f"; then
26221            # Source tree
26222            echo "$srcdir/$f"
26223          else
26224            # /dev/null tree
26225            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26226 echo "$as_me: error: cannot find input file: $f" >&2;}
26227    { (exit 1); exit 1; }; }
26228          fi;;
26229       esac
26230     done` || { (exit 1); exit 1; }
26231   # Remove the trailing spaces.
26232   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
26233
26234 _ACEOF
26235
26236 # Transform confdefs.h into two sed scripts, `conftest.defines' and
26237 # `conftest.undefs', that substitutes the proper values into
26238 # config.h.in to produce config.h.  The first handles `#define'
26239 # templates, and the second `#undef' templates.
26240 # And first: Protect against being on the right side of a sed subst in
26241 # config.status.  Protect against being in an unquoted here document
26242 # in config.status.
26243 rm -f conftest.defines conftest.undefs
26244 # Using a here document instead of a string reduces the quoting nightmare.
26245 # Putting comments in sed scripts is not portable.
26246 #
26247 # `end' is used to avoid that the second main sed command (meant for
26248 # 0-ary CPP macros) applies to n-ary macro definitions.
26249 # See the Autoconf documentation for `clear'.
26250 cat >confdef2sed.sed <<\_ACEOF
26251 s/[\\&,]/\\&/g
26252 s,[\\$`],\\&,g
26253 t clear
26254 : clear
26255 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
26256 t end
26257 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
26258 : end
26259 _ACEOF
26260 # If some macros were called several times there might be several times
26261 # the same #defines, which is useless.  Nevertheless, we may not want to
26262 # sort them, since we want the *last* AC-DEFINE to be honored.
26263 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
26264 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
26265 rm -f confdef2sed.sed
26266
26267 # This sed command replaces #undef with comments.  This is necessary, for
26268 # example, in the case of _POSIX_SOURCE, which is predefined and required
26269 # on some systems where configure will not decide to define it.
26270 cat >>conftest.undefs <<\_ACEOF
26271 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
26272 _ACEOF
26273
26274 # Break up conftest.defines because some shells have a limit on the size
26275 # of here documents, and old seds have small limits too (100 cmds).
26276 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
26277 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
26278 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
26279 echo '  :' >>$CONFIG_STATUS
26280 rm -f conftest.tail
26281 while grep . conftest.defines >/dev/null
26282 do
26283   # Write a limited-size here document to $tmp/defines.sed.
26284   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
26285   # Speed up: don't consider the non `#define' lines.
26286   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
26287   # Work around the forget-to-reset-the-flag bug.
26288   echo 't clr' >>$CONFIG_STATUS
26289   echo ': clr' >>$CONFIG_STATUS
26290   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
26291   echo 'CEOF
26292   sed -f $tmp/defines.sed $tmp/in >$tmp/out
26293   rm -f $tmp/in
26294   mv $tmp/out $tmp/in
26295 ' >>$CONFIG_STATUS
26296   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
26297   rm -f conftest.defines
26298   mv conftest.tail conftest.defines
26299 done
26300 rm -f conftest.defines
26301 echo '  fi # grep' >>$CONFIG_STATUS
26302 echo >>$CONFIG_STATUS
26303
26304 # Break up conftest.undefs because some shells have a limit on the size
26305 # of here documents, and old seds have small limits too (100 cmds).
26306 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
26307 rm -f conftest.tail
26308 while grep . conftest.undefs >/dev/null
26309 do
26310   # Write a limited-size here document to $tmp/undefs.sed.
26311   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
26312   # Speed up: don't consider the non `#undef'
26313   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
26314   # Work around the forget-to-reset-the-flag bug.
26315   echo 't clr' >>$CONFIG_STATUS
26316   echo ': clr' >>$CONFIG_STATUS
26317   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
26318   echo 'CEOF
26319   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
26320   rm -f $tmp/in
26321   mv $tmp/out $tmp/in
26322 ' >>$CONFIG_STATUS
26323   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
26324   rm -f conftest.undefs
26325   mv conftest.tail conftest.undefs
26326 done
26327 rm -f conftest.undefs
26328
26329 cat >>$CONFIG_STATUS <<\_ACEOF
26330   # Let's still pretend it is `configure' which instantiates (i.e., don't
26331   # use $as_me), people would be surprised to read:
26332   #    /* config.h.  Generated by config.status.  */
26333   if test x"$ac_file" = x-; then
26334     echo "/* Generated by configure.  */" >$tmp/config.h
26335   else
26336     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
26337   fi
26338   cat $tmp/in >>$tmp/config.h
26339   rm -f $tmp/in
26340   if test x"$ac_file" != x-; then
26341     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
26342       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26343 echo "$as_me: $ac_file is unchanged" >&6;}
26344     else
26345       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26346 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26347          X"$ac_file" : 'X\(//\)[^/]' \| \
26348          X"$ac_file" : 'X\(//\)$' \| \
26349          X"$ac_file" : 'X\(/\)' \| \
26350          .     : '\(.\)' 2>/dev/null ||
26351 echo X"$ac_file" |
26352     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26353           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26354           /^X\(\/\/\)$/{ s//\1/; q; }
26355           /^X\(\/\).*/{ s//\1/; q; }
26356           s/.*/./; q'`
26357       { if $as_mkdir_p; then
26358     mkdir -p "$ac_dir"
26359   else
26360     as_dir="$ac_dir"
26361     as_dirs=
26362     while test ! -d "$as_dir"; do
26363       as_dirs="$as_dir $as_dirs"
26364       as_dir=`(dirname "$as_dir") 2>/dev/null ||
26365 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26366          X"$as_dir" : 'X\(//\)[^/]' \| \
26367          X"$as_dir" : 'X\(//\)$' \| \
26368          X"$as_dir" : 'X\(/\)' \| \
26369          .     : '\(.\)' 2>/dev/null ||
26370 echo X"$as_dir" |
26371     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26372           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26373           /^X\(\/\/\)$/{ s//\1/; q; }
26374           /^X\(\/\).*/{ s//\1/; q; }
26375           s/.*/./; q'`
26376     done
26377     test ! -n "$as_dirs" || mkdir $as_dirs
26378   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26379 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26380    { (exit 1); exit 1; }; }; }
26381
26382       rm -f $ac_file
26383       mv $tmp/config.h $ac_file
26384     fi
26385   else
26386     cat $tmp/config.h
26387     rm -f $tmp/config.h
26388   fi
26389 done
26390 _ACEOF
26391 cat >>$CONFIG_STATUS <<\_ACEOF
26392
26393 #
26394 # CONFIG_COMMANDS section.
26395 #
26396 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
26397   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
26398   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
26399   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
26400 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26401          X"$ac_dest" : 'X\(//\)[^/]' \| \
26402          X"$ac_dest" : 'X\(//\)$' \| \
26403          X"$ac_dest" : 'X\(/\)' \| \
26404          .     : '\(.\)' 2>/dev/null ||
26405 echo X"$ac_dest" |
26406     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26407           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26408           /^X\(\/\/\)$/{ s//\1/; q; }
26409           /^X\(\/\).*/{ s//\1/; q; }
26410           s/.*/./; q'`
26411   { if $as_mkdir_p; then
26412     mkdir -p "$ac_dir"
26413   else
26414     as_dir="$ac_dir"
26415     as_dirs=
26416     while test ! -d "$as_dir"; do
26417       as_dirs="$as_dir $as_dirs"
26418       as_dir=`(dirname "$as_dir") 2>/dev/null ||
26419 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26420          X"$as_dir" : 'X\(//\)[^/]' \| \
26421          X"$as_dir" : 'X\(//\)$' \| \
26422          X"$as_dir" : 'X\(/\)' \| \
26423          .     : '\(.\)' 2>/dev/null ||
26424 echo X"$as_dir" |
26425     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26426           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26427           /^X\(\/\/\)$/{ s//\1/; q; }
26428           /^X\(\/\).*/{ s//\1/; q; }
26429           s/.*/./; q'`
26430     done
26431     test ! -n "$as_dirs" || mkdir $as_dirs
26432   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26433 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26434    { (exit 1); exit 1; }; }; }
26435
26436   ac_builddir=.
26437
26438 if test "$ac_dir" != .; then
26439   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26440   # A "../" for each directory in $ac_dir_suffix.
26441   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26442 else
26443   ac_dir_suffix= ac_top_builddir=
26444 fi
26445
26446 case $srcdir in
26447   .)  # No --srcdir option.  We are building in place.
26448     ac_srcdir=.
26449     if test -z "$ac_top_builddir"; then
26450        ac_top_srcdir=.
26451     else
26452        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26453     fi ;;
26454   [\\/]* | ?:[\\/]* )  # Absolute path.
26455     ac_srcdir=$srcdir$ac_dir_suffix;
26456     ac_top_srcdir=$srcdir ;;
26457   *) # Relative path.
26458     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26459     ac_top_srcdir=$ac_top_builddir$srcdir ;;
26460 esac
26461
26462 # Do not use `cd foo && pwd` to compute absolute paths, because
26463 # the directories may not exist.
26464 case `pwd` in
26465 .) ac_abs_builddir="$ac_dir";;
26466 *)
26467   case "$ac_dir" in
26468   .) ac_abs_builddir=`pwd`;;
26469   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26470   *) ac_abs_builddir=`pwd`/"$ac_dir";;
26471   esac;;
26472 esac
26473 case $ac_abs_builddir in
26474 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26475 *)
26476   case ${ac_top_builddir}. in
26477   .) ac_abs_top_builddir=$ac_abs_builddir;;
26478   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26479   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26480   esac;;
26481 esac
26482 case $ac_abs_builddir in
26483 .) ac_abs_srcdir=$ac_srcdir;;
26484 *)
26485   case $ac_srcdir in
26486   .) ac_abs_srcdir=$ac_abs_builddir;;
26487   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26488   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26489   esac;;
26490 esac
26491 case $ac_abs_builddir in
26492 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26493 *)
26494   case $ac_top_srcdir in
26495   .) ac_abs_top_srcdir=$ac_abs_builddir;;
26496   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26497   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26498   esac;;
26499 esac
26500
26501
26502   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
26503 echo "$as_me: executing $ac_dest commands" >&6;}
26504   case $ac_dest in
26505     stamp-h ) echo timestamp > src/include/stamp-h ;;
26506     build-radpaths-h ) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
26507     main-chmod ) (cd ./src/main   && chmod +x checkrad.pl radlast radtest) ;;
26508     scripts-chmod ) (cd ./scripts    && chmod +x rc.radiusd radwatch check-radiusd-config radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
26509   esac
26510 done
26511 _ACEOF
26512
26513 cat >>$CONFIG_STATUS <<\_ACEOF
26514
26515 { (exit 0); exit 0; }
26516 _ACEOF
26517 chmod +x $CONFIG_STATUS
26518 ac_clean_files=$ac_clean_files_save
26519
26520
26521 # configure is writing to config.log, and then calls config.status.
26522 # config.status does its own redirection, appending to config.log.
26523 # Unfortunately, on DOS this fails, as config.log is still kept open
26524 # by configure, so config.status won't be able to write to it; its
26525 # output is simply discarded.  So we exec the FD to /dev/null,
26526 # effectively closing config.log, so it can be properly (re)opened and
26527 # appended to by config.status.  When coming back to configure, we
26528 # need to make the FD available again.
26529 if test "$no_create" != yes; then
26530   ac_cs_success=:
26531   ac_config_status_args=
26532   test "$silent" = yes &&
26533     ac_config_status_args="$ac_config_status_args --quiet"
26534   exec 5>/dev/null
26535   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26536   exec 5>>config.log
26537   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26538   # would make configure fail if this is the last instruction.
26539   $ac_cs_success || { (exit 1); exit 1; }
26540 fi
26541
26542 #
26543 # CONFIG_SUBDIRS section.
26544 #
26545 if test "$no_recursion" != yes; then
26546
26547   # Remove --cache-file and --srcdir arguments so they do not pile up.
26548   ac_sub_configure_args=
26549   ac_prev=
26550   for ac_arg in $ac_configure_args; do
26551     if test -n "$ac_prev"; then
26552       ac_prev=
26553       continue
26554     fi
26555     case $ac_arg in
26556     -cache-file | --cache-file | --cache-fil | --cache-fi \
26557     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
26558       ac_prev=cache_file ;;
26559     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
26560     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
26561     | --c=*)
26562       ;;
26563     --config-cache | -C)
26564       ;;
26565     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
26566       ac_prev=srcdir ;;
26567     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
26568       ;;
26569     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
26570       ac_prev=prefix ;;
26571     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
26572       ;;
26573     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
26574     esac
26575   done
26576
26577   # Always prepend --prefix to ensure using the same prefix
26578   # in subdir configurations.
26579   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
26580
26581   ac_popdir=`pwd`
26582   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
26583
26584     # Do not complain, so a configure script can configure whichever
26585     # parts of a large source tree are present.
26586     test -d $srcdir/$ac_dir || continue
26587
26588     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
26589 echo "$as_me: configuring in $ac_dir" >&6;}
26590     { if $as_mkdir_p; then
26591     mkdir -p "$ac_dir"
26592   else
26593     as_dir="$ac_dir"
26594     as_dirs=
26595     while test ! -d "$as_dir"; do
26596       as_dirs="$as_dir $as_dirs"
26597       as_dir=`(dirname "$as_dir") 2>/dev/null ||
26598 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26599          X"$as_dir" : 'X\(//\)[^/]' \| \
26600          X"$as_dir" : 'X\(//\)$' \| \
26601          X"$as_dir" : 'X\(/\)' \| \
26602          .     : '\(.\)' 2>/dev/null ||
26603 echo X"$as_dir" |
26604     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26605           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26606           /^X\(\/\/\)$/{ s//\1/; q; }
26607           /^X\(\/\).*/{ s//\1/; q; }
26608           s/.*/./; q'`
26609     done
26610     test ! -n "$as_dirs" || mkdir $as_dirs
26611   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26612 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26613    { (exit 1); exit 1; }; }; }
26614
26615     ac_builddir=.
26616
26617 if test "$ac_dir" != .; then
26618   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26619   # A "../" for each directory in $ac_dir_suffix.
26620   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26621 else
26622   ac_dir_suffix= ac_top_builddir=
26623 fi
26624
26625 case $srcdir in
26626   .)  # No --srcdir option.  We are building in place.
26627     ac_srcdir=.
26628     if test -z "$ac_top_builddir"; then
26629        ac_top_srcdir=.
26630     else
26631        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26632     fi ;;
26633   [\\/]* | ?:[\\/]* )  # Absolute path.
26634     ac_srcdir=$srcdir$ac_dir_suffix;
26635     ac_top_srcdir=$srcdir ;;
26636   *) # Relative path.
26637     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26638     ac_top_srcdir=$ac_top_builddir$srcdir ;;
26639 esac
26640
26641 # Do not use `cd foo && pwd` to compute absolute paths, because
26642 # the directories may not exist.
26643 case `pwd` in
26644 .) ac_abs_builddir="$ac_dir";;
26645 *)
26646   case "$ac_dir" in
26647   .) ac_abs_builddir=`pwd`;;
26648   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26649   *) ac_abs_builddir=`pwd`/"$ac_dir";;
26650   esac;;
26651 esac
26652 case $ac_abs_builddir in
26653 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26654 *)
26655   case ${ac_top_builddir}. in
26656   .) ac_abs_top_builddir=$ac_abs_builddir;;
26657   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26658   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26659   esac;;
26660 esac
26661 case $ac_abs_builddir in
26662 .) ac_abs_srcdir=$ac_srcdir;;
26663 *)
26664   case $ac_srcdir in
26665   .) ac_abs_srcdir=$ac_abs_builddir;;
26666   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26667   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26668   esac;;
26669 esac
26670 case $ac_abs_builddir in
26671 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26672 *)
26673   case $ac_top_srcdir in
26674   .) ac_abs_top_srcdir=$ac_abs_builddir;;
26675   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26676   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26677   esac;;
26678 esac
26679
26680
26681     cd $ac_dir
26682
26683     # Check for guested configure; otherwise get Cygnus style configure.
26684     if test -f $ac_srcdir/configure.gnu; then
26685       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
26686     elif test -f $ac_srcdir/configure; then
26687       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
26688     elif test -f $ac_srcdir/configure.in; then
26689       ac_sub_configure=$ac_configure
26690     else
26691       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
26692 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
26693       ac_sub_configure=
26694     fi
26695
26696     # The recursion is here.
26697     if test -n "$ac_sub_configure"; then
26698       # Make the cache file name correct relative to the subdirectory.
26699       case $cache_file in
26700       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
26701       *) # Relative path.
26702         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
26703       esac
26704
26705       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
26706 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
26707       # The eval makes quoting arguments work.
26708       eval $ac_sub_configure $ac_sub_configure_args \
26709            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
26710         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
26711 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
26712    { (exit 1); exit 1; }; }
26713     fi
26714
26715     cd "$ac_popdir"
26716   done
26717 fi
26718