]> icculus.org git repositories - icculus/iodoom3.git/blob - neo/curl/configure
hello world
[icculus/iodoom3.git] / neo / curl / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for curl -.
4 #
5 # Report bugs to <curl-bug@haxx.se>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 #
11 # Copyright (c) 1998 - 2004 Daniel Stenberg, <daniel@haxx.se>
12 # This configure script may be copied, distributed and modified under the
13 # terms of the curl license; see COPYING for more details
14 ## --------------------- ##
15 ## M4sh Initialization.  ##
16 ## --------------------- ##
17
18 # Be Bourne compatible
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20   emulate sh
21   NULLCMD=:
22   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26   set -o posix
27 fi
28 DUALCASE=1; export DUALCASE # for MKS sh
29
30 # Support unset when possible.
31 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32   as_unset=unset
33 else
34   as_unset=false
35 fi
36
37
38 # Work around bugs in pre-3.0 UWIN ksh.
39 $as_unset ENV MAIL MAILPATH
40 PS1='$ '
41 PS2='> '
42 PS4='+ '
43
44 # NLS nuisances.
45 for as_var in \
46   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
47   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
48   LC_TELEPHONE LC_TIME
49 do
50   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
51     eval $as_var=C; export $as_var
52   else
53     $as_unset $as_var
54   fi
55 done
56
57 # Required to use basename.
58 if expr a : '\(a\)' >/dev/null 2>&1; then
59   as_expr=expr
60 else
61   as_expr=false
62 fi
63
64 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65   as_basename=basename
66 else
67   as_basename=false
68 fi
69
70
71 # Name of the executable.
72 as_me=`$as_basename "$0" ||
73 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
74          X"$0" : 'X\(//\)$' \| \
75          X"$0" : 'X\(/\)$' \| \
76          .     : '\(.\)' 2>/dev/null ||
77 echo X/"$0" |
78     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
79           /^X\/\(\/\/\)$/{ s//\1/; q; }
80           /^X\/\(\/\).*/{ s//\1/; q; }
81           s/.*/./; q'`
82
83
84 # PATH needs CR, and LINENO needs CR and PATH.
85 # Avoid depending upon Character Ranges.
86 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
87 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
88 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
89 as_cr_digits='0123456789'
90 as_cr_alnum=$as_cr_Letters$as_cr_digits
91
92 # The user is always right.
93 if test "${PATH_SEPARATOR+set}" != set; then
94   echo "#! /bin/sh" >conf$$.sh
95   echo  "exit 0"   >>conf$$.sh
96   chmod +x conf$$.sh
97   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
98     PATH_SEPARATOR=';'
99   else
100     PATH_SEPARATOR=:
101   fi
102   rm -f conf$$.sh
103 fi
104
105
106   as_lineno_1=$LINENO
107   as_lineno_2=$LINENO
108   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
109   test "x$as_lineno_1" != "x$as_lineno_2" &&
110   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
111   # Find who we are.  Look in the path if we contain no path at all
112   # relative or not.
113   case $0 in
114     *[\\/]* ) as_myself=$0 ;;
115     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
116 for as_dir in $PATH
117 do
118   IFS=$as_save_IFS
119   test -z "$as_dir" && as_dir=.
120   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121 done
122
123        ;;
124   esac
125   # We did not find ourselves, most probably we were run as `sh COMMAND'
126   # in which case we are not to be found in the path.
127   if test "x$as_myself" = x; then
128     as_myself=$0
129   fi
130   if test ! -f "$as_myself"; then
131     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
132    { (exit 1); exit 1; }; }
133   fi
134   case $CONFIG_SHELL in
135   '')
136     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
137 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
138 do
139   IFS=$as_save_IFS
140   test -z "$as_dir" && as_dir=.
141   for as_base in sh bash ksh sh5; do
142          case $as_dir in
143          /*)
144            if ("$as_dir/$as_base" -c '
145   as_lineno_1=$LINENO
146   as_lineno_2=$LINENO
147   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
148   test "x$as_lineno_1" != "x$as_lineno_2" &&
149   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
150              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
151              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
152              CONFIG_SHELL=$as_dir/$as_base
153              export CONFIG_SHELL
154              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
155            fi;;
156          esac
157        done
158 done
159 ;;
160   esac
161
162   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
163   # uniformly replaced by the line number.  The first 'sed' inserts a
164   # line-number line before each line; the second 'sed' does the real
165   # work.  The second script uses 'N' to pair each line-number line
166   # with the numbered line, and appends trailing '-' during
167   # substitution so that $LINENO is not a special case at line end.
168   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
169   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
170   sed '=' <$as_myself |
171     sed '
172       N
173       s,$,-,
174       : loop
175       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
176       t loop
177       s,-$,,
178       s,^['$as_cr_digits']*\n,,
179     ' >$as_me.lineno &&
180   chmod +x $as_me.lineno ||
181     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
182    { (exit 1); exit 1; }; }
183
184   # Don't try to exec as it changes $[0], causing all sort of problems
185   # (the dirname of $[0] is not the place where we might find the
186   # original and so on.  Autoconf is especially sensible to this).
187   . ./$as_me.lineno
188   # Exit status is that of the last command.
189   exit
190 }
191
192
193 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
194   *c*,-n*) ECHO_N= ECHO_C='
195 ' ECHO_T='      ' ;;
196   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
197   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
198 esac
199
200 if expr a : '\(a\)' >/dev/null 2>&1; then
201   as_expr=expr
202 else
203   as_expr=false
204 fi
205
206 rm -f conf$$ conf$$.exe conf$$.file
207 echo >conf$$.file
208 if ln -s conf$$.file conf$$ 2>/dev/null; then
209   # We could just check for DJGPP; but this test a) works b) is more generic
210   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
211   if test -f conf$$.exe; then
212     # Don't use ln at all; we don't have any links
213     as_ln_s='cp -p'
214   else
215     as_ln_s='ln -s'
216   fi
217 elif ln conf$$.file conf$$ 2>/dev/null; then
218   as_ln_s=ln
219 else
220   as_ln_s='cp -p'
221 fi
222 rm -f conf$$ conf$$.exe conf$$.file
223
224 if mkdir -p . 2>/dev/null; then
225   as_mkdir_p=:
226 else
227   test -d ./-p && rmdir ./-p
228   as_mkdir_p=false
229 fi
230
231 as_executable_p="test -f"
232
233 # Sed expression to map a string onto a valid CPP name.
234 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
235
236 # Sed expression to map a string onto a valid variable name.
237 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
238
239
240 # IFS
241 # We need space, tab and new line, in precisely that order.
242 as_nl='
243 '
244 IFS="   $as_nl"
245
246 # CDPATH.
247 $as_unset CDPATH
248
249
250
251 # Check that we are running under the correct shell.
252 SHELL=${CONFIG_SHELL-/bin/sh}
253
254 case X$ECHO in
255 X*--fallback-echo)
256   # Remove one level of quotation (which was required for Make).
257   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
258   ;;
259 esac
260
261 echo=${ECHO-echo}
262 if test "X$1" = X--no-reexec; then
263   # Discard the --no-reexec flag, and continue.
264   shift
265 elif test "X$1" = X--fallback-echo; then
266   # Avoid inline document here, it may be left over
267   :
268 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
269   # Yippee, $echo works!
270   :
271 else
272   # Restart under the correct shell.
273   exec $SHELL "$0" --no-reexec ${1+"$@"}
274 fi
275
276 if test "X$1" = X--fallback-echo; then
277   # used as fallback echo
278   shift
279   cat <<EOF
280 $*
281 EOF
282   exit 0
283 fi
284
285 # The HP-UX ksh and POSIX shell print the target directory to stdout
286 # if CDPATH is set.
287 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
288
289 if test -z "$ECHO"; then
290 if test "X${echo_test_string+set}" != Xset; then
291 # find a string as large as possible, as long as the shell can cope with it
292   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
293     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
294     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
295        echo_test_string="`eval $cmd`" &&
296        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
297     then
298       break
299     fi
300   done
301 fi
302
303 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
304    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
305    test "X$echo_testing_string" = "X$echo_test_string"; then
306   :
307 else
308   # The Solaris, AIX, and Digital Unix default echo programs unquote
309   # backslashes.  This makes it impossible to quote backslashes using
310   #   echo "$something" | sed 's/\\/\\\\/g'
311   #
312   # So, first we look for a working echo in the user's PATH.
313
314   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
315   for dir in $PATH /usr/ucb; do
316     IFS="$lt_save_ifs"
317     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
318        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
319        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
320        test "X$echo_testing_string" = "X$echo_test_string"; then
321       echo="$dir/echo"
322       break
323     fi
324   done
325   IFS="$lt_save_ifs"
326
327   if test "X$echo" = Xecho; then
328     # We didn't find a better echo, so look for alternatives.
329     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
330        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
331        test "X$echo_testing_string" = "X$echo_test_string"; then
332       # This shell has a builtin print -r that does the trick.
333       echo='print -r'
334     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
335          test "X$CONFIG_SHELL" != X/bin/ksh; then
336       # If we have ksh, try running configure again with it.
337       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
338       export ORIGINAL_CONFIG_SHELL
339       CONFIG_SHELL=/bin/ksh
340       export CONFIG_SHELL
341       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
342     else
343       # Try using printf.
344       echo='printf %s\n'
345       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
346          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
347          test "X$echo_testing_string" = "X$echo_test_string"; then
348         # Cool, printf works
349         :
350       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
351            test "X$echo_testing_string" = 'X\t' &&
352            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
353            test "X$echo_testing_string" = "X$echo_test_string"; then
354         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
355         export CONFIG_SHELL
356         SHELL="$CONFIG_SHELL"
357         export SHELL
358         echo="$CONFIG_SHELL $0 --fallback-echo"
359       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
360            test "X$echo_testing_string" = 'X\t' &&
361            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
362            test "X$echo_testing_string" = "X$echo_test_string"; then
363         echo="$CONFIG_SHELL $0 --fallback-echo"
364       else
365         # maybe with a smaller string...
366         prev=:
367
368         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
369           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
370           then
371             break
372           fi
373           prev="$cmd"
374         done
375
376         if test "$prev" != 'sed 50q "$0"'; then
377           echo_test_string=`eval $prev`
378           export echo_test_string
379           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
380         else
381           # Oops.  We lost completely, so just stick with echo.
382           echo=echo
383         fi
384       fi
385     fi
386   fi
387 fi
388 fi
389
390 # Copy echo and quote the copy suitably for passing to libtool from
391 # the Makefile, instead of quoting the original, which is used later.
392 ECHO=$echo
393 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
394    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
395 fi
396
397
398
399
400 tagnames=${tagnames+${tagnames},}CXX
401
402 tagnames=${tagnames+${tagnames},}F77
403
404 # Name of the host.
405 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
406 # so uname gets run too.
407 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
408
409 exec 6>&1
410
411 #
412 # Initializations.
413 #
414 ac_default_prefix=/usr/local
415 ac_config_libobj_dir=.
416 cross_compiling=no
417 subdirs=
418 MFLAGS=
419 MAKEFLAGS=
420 SHELL=${CONFIG_SHELL-/bin/sh}
421
422 # Maximum number of lines to put in a shell here document.
423 # This variable seems obsolete.  It should probably be removed, and
424 # only ac_max_sed_lines should be used.
425 : ${ac_max_here_lines=38}
426
427 # Identity of this package.
428 PACKAGE_NAME='curl'
429 PACKAGE_TARNAME='curl'
430 PACKAGE_VERSION='-'
431 PACKAGE_STRING='curl -'
432 PACKAGE_BUGREPORT='curl-bug@haxx.se'
433
434 ac_unique_file="lib/urldata.h"
435 # Factoring default headers for most tests.
436 ac_includes_default="\
437 #include <stdio.h>
438 #if HAVE_SYS_TYPES_H
439 # include <sys/types.h>
440 #endif
441 #if HAVE_SYS_STAT_H
442 # include <sys/stat.h>
443 #endif
444 #if STDC_HEADERS
445 # include <stdlib.h>
446 # include <stddef.h>
447 #else
448 # if HAVE_STDLIB_H
449 #  include <stdlib.h>
450 # endif
451 #endif
452 #if HAVE_STRING_H
453 # if !STDC_HEADERS && HAVE_MEMORY_H
454 #  include <memory.h>
455 # endif
456 # include <string.h>
457 #endif
458 #if HAVE_STRINGS_H
459 # include <strings.h>
460 #endif
461 #if HAVE_INTTYPES_H
462 # include <inttypes.h>
463 #else
464 # if HAVE_STDINT_H
465 #  include <stdint.h>
466 # endif
467 #endif
468 #if HAVE_UNISTD_H
469 # include <unistd.h>
470 #endif"
471
472 ac_subdirs_all="$ac_subdirs_all ares"
473 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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT SED AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot VERSIONNUM PKGADD_PKG PKGADD_NAME PKGADD_VENDOR build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP LN_S ECHO ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL NO_UNDEFINED_TRUE NO_UNDEFINED_FALSE MIMPURE_TRUE MIMPURE_FALSE CURL_DISABLE_HTTP CURL_DISABLE_GOPHER CURL_DISABLE_FTP CURL_DISABLE_FILE CURL_DISABLE_LDAP CURL_DISABLE_DICT CURL_DISABLE_TELNET IPV6_ENABLED RANDOM_FILE KRB4_ENABLED PKGCONFIG OPENSSL_ENABLED CURL_CA_BUNDLE CABUNDLE_TRUE CABUNDLE_FALSE HAVE_LIBZ HAVE_LIBZ_TRUE HAVE_LIBZ_FALSE PERL NROFF MANOPT YACC USE_MANUAL_TRUE USE_MANUAL_FALSE HAVE_ARES subdirs LIBOBJS LTLIBOBJS'
474 ac_subst_files=''
475
476 # Initialize some variables set by options.
477 ac_init_help=
478 ac_init_version=false
479 # The variables have the same names as the options, with
480 # dashes changed to underlines.
481 cache_file=/dev/null
482 exec_prefix=NONE
483 no_create=
484 no_recursion=
485 prefix=NONE
486 program_prefix=NONE
487 program_suffix=NONE
488 program_transform_name=s,x,x,
489 silent=
490 site=
491 srcdir=
492 verbose=
493 x_includes=NONE
494 x_libraries=NONE
495
496 # Installation directory options.
497 # These are left unexpanded so users can "make install exec_prefix=/foo"
498 # and all the variables that are supposed to be based on exec_prefix
499 # by default will actually change.
500 # Use braces instead of parens because sh, perl, etc. also accept them.
501 bindir='${exec_prefix}/bin'
502 sbindir='${exec_prefix}/sbin'
503 libexecdir='${exec_prefix}/libexec'
504 datadir='${prefix}/share'
505 sysconfdir='${prefix}/etc'
506 sharedstatedir='${prefix}/com'
507 localstatedir='${prefix}/var'
508 libdir='${exec_prefix}/lib'
509 includedir='${prefix}/include'
510 oldincludedir='/usr/include'
511 infodir='${prefix}/info'
512 mandir='${prefix}/man'
513
514 ac_prev=
515 for ac_option
516 do
517   # If the previous option needs an argument, assign it.
518   if test -n "$ac_prev"; then
519     eval "$ac_prev=\$ac_option"
520     ac_prev=
521     continue
522   fi
523
524   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
525
526   # Accept the important Cygnus configure options, so we can diagnose typos.
527
528   case $ac_option in
529
530   -bindir | --bindir | --bindi | --bind | --bin | --bi)
531     ac_prev=bindir ;;
532   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
533     bindir=$ac_optarg ;;
534
535   -build | --build | --buil | --bui | --bu)
536     ac_prev=build_alias ;;
537   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
538     build_alias=$ac_optarg ;;
539
540   -cache-file | --cache-file | --cache-fil | --cache-fi \
541   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
542     ac_prev=cache_file ;;
543   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
544   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
545     cache_file=$ac_optarg ;;
546
547   --config-cache | -C)
548     cache_file=config.cache ;;
549
550   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
551     ac_prev=datadir ;;
552   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
553   | --da=*)
554     datadir=$ac_optarg ;;
555
556   -disable-* | --disable-*)
557     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
558     # Reject names that are not valid shell variable names.
559     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
560       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
561    { (exit 1); exit 1; }; }
562     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
563     eval "enable_$ac_feature=no" ;;
564
565   -enable-* | --enable-*)
566     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
567     # Reject names that are not valid shell variable names.
568     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
569       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
570    { (exit 1); exit 1; }; }
571     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
572     case $ac_option in
573       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
574       *) ac_optarg=yes ;;
575     esac
576     eval "enable_$ac_feature='$ac_optarg'" ;;
577
578   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
579   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
580   | --exec | --exe | --ex)
581     ac_prev=exec_prefix ;;
582   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
583   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
584   | --exec=* | --exe=* | --ex=*)
585     exec_prefix=$ac_optarg ;;
586
587   -gas | --gas | --ga | --g)
588     # Obsolete; use --with-gas.
589     with_gas=yes ;;
590
591   -help | --help | --hel | --he | -h)
592     ac_init_help=long ;;
593   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
594     ac_init_help=recursive ;;
595   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
596     ac_init_help=short ;;
597
598   -host | --host | --hos | --ho)
599     ac_prev=host_alias ;;
600   -host=* | --host=* | --hos=* | --ho=*)
601     host_alias=$ac_optarg ;;
602
603   -includedir | --includedir | --includedi | --included | --include \
604   | --includ | --inclu | --incl | --inc)
605     ac_prev=includedir ;;
606   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
607   | --includ=* | --inclu=* | --incl=* | --inc=*)
608     includedir=$ac_optarg ;;
609
610   -infodir | --infodir | --infodi | --infod | --info | --inf)
611     ac_prev=infodir ;;
612   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
613     infodir=$ac_optarg ;;
614
615   -libdir | --libdir | --libdi | --libd)
616     ac_prev=libdir ;;
617   -libdir=* | --libdir=* | --libdi=* | --libd=*)
618     libdir=$ac_optarg ;;
619
620   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
621   | --libexe | --libex | --libe)
622     ac_prev=libexecdir ;;
623   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
624   | --libexe=* | --libex=* | --libe=*)
625     libexecdir=$ac_optarg ;;
626
627   -localstatedir | --localstatedir | --localstatedi | --localstated \
628   | --localstate | --localstat | --localsta | --localst \
629   | --locals | --local | --loca | --loc | --lo)
630     ac_prev=localstatedir ;;
631   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
632   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
633   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
634     localstatedir=$ac_optarg ;;
635
636   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
637     ac_prev=mandir ;;
638   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
639     mandir=$ac_optarg ;;
640
641   -nfp | --nfp | --nf)
642     # Obsolete; use --without-fp.
643     with_fp=no ;;
644
645   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
646   | --no-cr | --no-c | -n)
647     no_create=yes ;;
648
649   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
650   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
651     no_recursion=yes ;;
652
653   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
654   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
655   | --oldin | --oldi | --old | --ol | --o)
656     ac_prev=oldincludedir ;;
657   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
658   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
659   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
660     oldincludedir=$ac_optarg ;;
661
662   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
663     ac_prev=prefix ;;
664   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
665     prefix=$ac_optarg ;;
666
667   -program-prefix | --program-prefix | --program-prefi | --program-pref \
668   | --program-pre | --program-pr | --program-p)
669     ac_prev=program_prefix ;;
670   -program-prefix=* | --program-prefix=* | --program-prefi=* \
671   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
672     program_prefix=$ac_optarg ;;
673
674   -program-suffix | --program-suffix | --program-suffi | --program-suff \
675   | --program-suf | --program-su | --program-s)
676     ac_prev=program_suffix ;;
677   -program-suffix=* | --program-suffix=* | --program-suffi=* \
678   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
679     program_suffix=$ac_optarg ;;
680
681   -program-transform-name | --program-transform-name \
682   | --program-transform-nam | --program-transform-na \
683   | --program-transform-n | --program-transform- \
684   | --program-transform | --program-transfor \
685   | --program-transfo | --program-transf \
686   | --program-trans | --program-tran \
687   | --progr-tra | --program-tr | --program-t)
688     ac_prev=program_transform_name ;;
689   -program-transform-name=* | --program-transform-name=* \
690   | --program-transform-nam=* | --program-transform-na=* \
691   | --program-transform-n=* | --program-transform-=* \
692   | --program-transform=* | --program-transfor=* \
693   | --program-transfo=* | --program-transf=* \
694   | --program-trans=* | --program-tran=* \
695   | --progr-tra=* | --program-tr=* | --program-t=*)
696     program_transform_name=$ac_optarg ;;
697
698   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
699   | -silent | --silent | --silen | --sile | --sil)
700     silent=yes ;;
701
702   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
703     ac_prev=sbindir ;;
704   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
705   | --sbi=* | --sb=*)
706     sbindir=$ac_optarg ;;
707
708   -sharedstatedir | --sharedstatedir | --sharedstatedi \
709   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
710   | --sharedst | --shareds | --shared | --share | --shar \
711   | --sha | --sh)
712     ac_prev=sharedstatedir ;;
713   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
714   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
715   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
716   | --sha=* | --sh=*)
717     sharedstatedir=$ac_optarg ;;
718
719   -site | --site | --sit)
720     ac_prev=site ;;
721   -site=* | --site=* | --sit=*)
722     site=$ac_optarg ;;
723
724   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
725     ac_prev=srcdir ;;
726   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
727     srcdir=$ac_optarg ;;
728
729   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
730   | --syscon | --sysco | --sysc | --sys | --sy)
731     ac_prev=sysconfdir ;;
732   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
733   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
734     sysconfdir=$ac_optarg ;;
735
736   -target | --target | --targe | --targ | --tar | --ta | --t)
737     ac_prev=target_alias ;;
738   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
739     target_alias=$ac_optarg ;;
740
741   -v | -verbose | --verbose | --verbos | --verbo | --verb)
742     verbose=yes ;;
743
744   -version | --version | --versio | --versi | --vers | -V)
745     ac_init_version=: ;;
746
747   -with-* | --with-*)
748     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
749     # Reject names that are not valid shell variable names.
750     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
751       { echo "$as_me: error: invalid package name: $ac_package" >&2
752    { (exit 1); exit 1; }; }
753     ac_package=`echo $ac_package| sed 's/-/_/g'`
754     case $ac_option in
755       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
756       *) ac_optarg=yes ;;
757     esac
758     eval "with_$ac_package='$ac_optarg'" ;;
759
760   -without-* | --without-*)
761     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
762     # Reject names that are not valid shell variable names.
763     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
764       { echo "$as_me: error: invalid package name: $ac_package" >&2
765    { (exit 1); exit 1; }; }
766     ac_package=`echo $ac_package | sed 's/-/_/g'`
767     eval "with_$ac_package=no" ;;
768
769   --x)
770     # Obsolete; use --with-x.
771     with_x=yes ;;
772
773   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
774   | --x-incl | --x-inc | --x-in | --x-i)
775     ac_prev=x_includes ;;
776   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
777   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
778     x_includes=$ac_optarg ;;
779
780   -x-libraries | --x-libraries | --x-librarie | --x-librari \
781   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
782     ac_prev=x_libraries ;;
783   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
784   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
785     x_libraries=$ac_optarg ;;
786
787   -*) { echo "$as_me: error: unrecognized option: $ac_option
788 Try \`$0 --help' for more information." >&2
789    { (exit 1); exit 1; }; }
790     ;;
791
792   *=*)
793     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
794     # Reject names that are not valid shell variable names.
795     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
796       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
797    { (exit 1); exit 1; }; }
798     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
799     eval "$ac_envvar='$ac_optarg'"
800     export $ac_envvar ;;
801
802   *)
803     # FIXME: should be removed in autoconf 3.0.
804     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
805     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
806       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
807     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
808     ;;
809
810   esac
811 done
812
813 if test -n "$ac_prev"; then
814   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
815   { echo "$as_me: error: missing argument to $ac_option" >&2
816    { (exit 1); exit 1; }; }
817 fi
818
819 # Be sure to have absolute paths.
820 for ac_var in exec_prefix prefix
821 do
822   eval ac_val=$`echo $ac_var`
823   case $ac_val in
824     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
825     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826    { (exit 1); exit 1; }; };;
827   esac
828 done
829
830 # Be sure to have absolute paths.
831 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
832               localstatedir libdir includedir oldincludedir infodir mandir
833 do
834   eval ac_val=$`echo $ac_var`
835   case $ac_val in
836     [\\/$]* | ?:[\\/]* ) ;;
837     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
838    { (exit 1); exit 1; }; };;
839   esac
840 done
841
842 # There might be people who depend on the old broken behavior: `$host'
843 # used to hold the argument of --host etc.
844 # FIXME: To remove some day.
845 build=$build_alias
846 host=$host_alias
847 target=$target_alias
848
849 # FIXME: To remove some day.
850 if test "x$host_alias" != x; then
851   if test "x$build_alias" = x; then
852     cross_compiling=maybe
853     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
854     If a cross compiler is detected then cross compile mode will be used." >&2
855   elif test "x$build_alias" != "x$host_alias"; then
856     cross_compiling=yes
857   fi
858 fi
859
860 ac_tool_prefix=
861 test -n "$host_alias" && ac_tool_prefix=$host_alias-
862
863 test "$silent" = yes && exec 6>/dev/null
864
865
866 # Find the source files, if location was not specified.
867 if test -z "$srcdir"; then
868   ac_srcdir_defaulted=yes
869   # Try the directory containing this script, then its parent.
870   ac_confdir=`(dirname "$0") 2>/dev/null ||
871 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
872          X"$0" : 'X\(//\)[^/]' \| \
873          X"$0" : 'X\(//\)$' \| \
874          X"$0" : 'X\(/\)' \| \
875          .     : '\(.\)' 2>/dev/null ||
876 echo X"$0" |
877     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
878           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
879           /^X\(\/\/\)$/{ s//\1/; q; }
880           /^X\(\/\).*/{ s//\1/; q; }
881           s/.*/./; q'`
882   srcdir=$ac_confdir
883   if test ! -r $srcdir/$ac_unique_file; then
884     srcdir=..
885   fi
886 else
887   ac_srcdir_defaulted=no
888 fi
889 if test ! -r $srcdir/$ac_unique_file; then
890   if test "$ac_srcdir_defaulted" = yes; then
891     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
892    { (exit 1); exit 1; }; }
893   else
894     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
895    { (exit 1); exit 1; }; }
896   fi
897 fi
898 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
899   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
900    { (exit 1); exit 1; }; }
901 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
902 ac_env_build_alias_set=${build_alias+set}
903 ac_env_build_alias_value=$build_alias
904 ac_cv_env_build_alias_set=${build_alias+set}
905 ac_cv_env_build_alias_value=$build_alias
906 ac_env_host_alias_set=${host_alias+set}
907 ac_env_host_alias_value=$host_alias
908 ac_cv_env_host_alias_set=${host_alias+set}
909 ac_cv_env_host_alias_value=$host_alias
910 ac_env_target_alias_set=${target_alias+set}
911 ac_env_target_alias_value=$target_alias
912 ac_cv_env_target_alias_set=${target_alias+set}
913 ac_cv_env_target_alias_value=$target_alias
914 ac_env_CC_set=${CC+set}
915 ac_env_CC_value=$CC
916 ac_cv_env_CC_set=${CC+set}
917 ac_cv_env_CC_value=$CC
918 ac_env_CFLAGS_set=${CFLAGS+set}
919 ac_env_CFLAGS_value=$CFLAGS
920 ac_cv_env_CFLAGS_set=${CFLAGS+set}
921 ac_cv_env_CFLAGS_value=$CFLAGS
922 ac_env_LDFLAGS_set=${LDFLAGS+set}
923 ac_env_LDFLAGS_value=$LDFLAGS
924 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
925 ac_cv_env_LDFLAGS_value=$LDFLAGS
926 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
927 ac_env_CPPFLAGS_value=$CPPFLAGS
928 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
929 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
930 ac_env_CPP_set=${CPP+set}
931 ac_env_CPP_value=$CPP
932 ac_cv_env_CPP_set=${CPP+set}
933 ac_cv_env_CPP_value=$CPP
934 ac_env_CXX_set=${CXX+set}
935 ac_env_CXX_value=$CXX
936 ac_cv_env_CXX_set=${CXX+set}
937 ac_cv_env_CXX_value=$CXX
938 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
939 ac_env_CXXFLAGS_value=$CXXFLAGS
940 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
941 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
942 ac_env_CXXCPP_set=${CXXCPP+set}
943 ac_env_CXXCPP_value=$CXXCPP
944 ac_cv_env_CXXCPP_set=${CXXCPP+set}
945 ac_cv_env_CXXCPP_value=$CXXCPP
946 ac_env_F77_set=${F77+set}
947 ac_env_F77_value=$F77
948 ac_cv_env_F77_set=${F77+set}
949 ac_cv_env_F77_value=$F77
950 ac_env_FFLAGS_set=${FFLAGS+set}
951 ac_env_FFLAGS_value=$FFLAGS
952 ac_cv_env_FFLAGS_set=${FFLAGS+set}
953 ac_cv_env_FFLAGS_value=$FFLAGS
954
955 #
956 # Report the --help message.
957 #
958 if test "$ac_init_help" = "long"; then
959   # Omit some internal or obsolete options to make the list less imposing.
960   # This message is too long to be a string in the A/UX 3.1 sh.
961   cat <<_ACEOF
962 \`configure' configures curl - to adapt to many kinds of systems.
963
964 Usage: $0 [OPTION]... [VAR=VALUE]...
965
966 To assign environment variables (e.g., CC, CFLAGS...), specify them as
967 VAR=VALUE.  See below for descriptions of some of the useful variables.
968
969 Defaults for the options are specified in brackets.
970
971 Configuration:
972   -h, --help              display this help and exit
973       --help=short        display options specific to this package
974       --help=recursive    display the short help of all the included packages
975   -V, --version           display version information and exit
976   -q, --quiet, --silent   do not print \`checking...' messages
977       --cache-file=FILE   cache test results in FILE [disabled]
978   -C, --config-cache      alias for \`--cache-file=config.cache'
979   -n, --no-create         do not create output files
980       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
981
982 _ACEOF
983
984   cat <<_ACEOF
985 Installation directories:
986   --prefix=PREFIX         install architecture-independent files in PREFIX
987                           [$ac_default_prefix]
988   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
989                           [PREFIX]
990
991 By default, \`make install' will install all the files in
992 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
993 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
994 for instance \`--prefix=\$HOME'.
995
996 For better control, use the options below.
997
998 Fine tuning of the installation directories:
999   --bindir=DIR           user executables [EPREFIX/bin]
1000   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1001   --libexecdir=DIR       program executables [EPREFIX/libexec]
1002   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1003   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1004   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1005   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1006   --libdir=DIR           object code libraries [EPREFIX/lib]
1007   --includedir=DIR       C header files [PREFIX/include]
1008   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1009   --infodir=DIR          info documentation [PREFIX/info]
1010   --mandir=DIR           man documentation [PREFIX/man]
1011 _ACEOF
1012
1013   cat <<\_ACEOF
1014
1015 Program names:
1016   --program-prefix=PREFIX            prepend PREFIX to installed program names
1017   --program-suffix=SUFFIX            append SUFFIX to installed program names
1018   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1019
1020 System types:
1021   --build=BUILD     configure for building on BUILD [guessed]
1022   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1023 _ACEOF
1024 fi
1025
1026 if test -n "$ac_init_help"; then
1027   case $ac_init_help in
1028      short | recursive ) echo "Configuration of curl -:";;
1029    esac
1030   cat <<\_ACEOF
1031
1032 Optional Features:
1033   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1034   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1035   --enable-maintainer-mode  enable make rules and dependencies not useful
1036                           (and sometimes confusing) to the casual installer
1037   --disable-dependency-tracking  speeds up one-time build
1038   --enable-dependency-tracking   do not reject slow dependency extractors
1039   --disable-largefile     omit support for large files
1040   --enable-shared[=PKGS]
1041                           build shared libraries [default=yes]
1042   --enable-static[=PKGS]
1043                           build static libraries [default=yes]
1044   --enable-fast-install[=PKGS]
1045                           optimize for fast installation [default=yes]
1046   --disable-libtool-lock  avoid locking (might break parallel builds)
1047   --enable-http           Enable HTTP support
1048   --disable-http          Disable HTTP support
1049   --enable-ftp            Enable FTP support
1050   --disable-ftp           Disable FTP support
1051   --enable-gopher         Enable GOPHER support
1052   --disable-gopher        Disable GOPHER support
1053   --enable-file           Enable FILE support
1054   --disable-file          Disable FILE support
1055   --enable-ldap           Enable LDAP support
1056   --disable-ldap          Disable LDAP support
1057   --enable-dict           Enable DICT support
1058   --disable-dict          Disable DICT support
1059   --enable-telnet         Enable TELNET support
1060   --disable-telnet        Disable TELNET support
1061   --enable-manual         Enable built-in manual
1062   --disable-manual        Disable built-in manual
1063   --enable-libgcc         use libgcc when linking
1064   --enable-ipv6           Enable ipv6 (with ipv4) support
1065   --disable-ipv6          Disable ipv6 support
1066   --enable-nonblocking    Enable detecting how to do it
1067   --disable-nonblocking   Disable non-blocking socket detection
1068   --disable-thread        don't look for thread-safe functions
1069   --enable-thread         look for thread-safe functions
1070   --enable-debug          Enable pedantic debug options
1071   --disable-debug         Disable debug options
1072   --enable-ares=PATH      Enable ares for name lookups
1073   --disable-ares          Disable ares for name lookups
1074
1075 Optional Packages:
1076   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1077   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1078   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1079   --with-pic              try to use only PIC/non-PIC objects [default=use
1080                           both]
1081   --with-tags[=TAGS]
1082                           include additional configurations [automatic]
1083   --with-egd-socket=FILE  Entropy Gathering Daemon socket pathname
1084   --with-random=FILE      read randomness from FILE (default=/dev/urandom)
1085   --with-krb4-includes=DIR
1086                           Specify location of kerberos4 headers
1087   --with-krb4-libs=DIR    Specify location of kerberos4 libs
1088   --with-krb4=DIR         where to look for Kerberos4
1089   --with-spnego=DIR       Specify location of SPNEGO library fbopenssl
1090   --with-gssapi-includes=DIR
1091                           Specify location of GSSAPI header
1092   --with-gssapi-libs=DIR  Specify location of GSSAPI libs
1093   --with-gssapi=DIR       Where to look for GSSAPI
1094   --with-ssl=PATH         where to look for SSL, PATH points to the SSL
1095                           installation (default: /usr/local/ssl)
1096   --without-ssl           disable SSL
1097   --with-ca-bundle=FILE   File name to install the CA bundle as
1098   --without-ca-bundle     Don't install the CA bundle
1099   --with-zlib=PATH        search for zlib in PATH
1100   --without-zlib          disable use of zlib
1101
1102 Some influential environment variables:
1103   CC          C compiler command
1104   CFLAGS      C compiler flags
1105   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1106               nonstandard directory <lib dir>
1107   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1108               headers in a nonstandard directory <include dir>
1109   CPP         C preprocessor
1110   CXX         C++ compiler command
1111   CXXFLAGS    C++ compiler flags
1112   CXXCPP      C++ preprocessor
1113   F77         Fortran 77 compiler command
1114   FFLAGS      Fortran 77 compiler flags
1115
1116 Use these variables to override the choices made by `configure' or to help
1117 it to find libraries and programs with nonstandard names/locations.
1118
1119 Report bugs to <curl-bug@haxx.se>.
1120 _ACEOF
1121 fi
1122
1123 if test "$ac_init_help" = "recursive"; then
1124   # If there are subdirs, report their specific --help.
1125   ac_popdir=`pwd`
1126   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1127     test -d $ac_dir || continue
1128     ac_builddir=.
1129
1130 if test "$ac_dir" != .; then
1131   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1132   # A "../" for each directory in $ac_dir_suffix.
1133   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1134 else
1135   ac_dir_suffix= ac_top_builddir=
1136 fi
1137
1138 case $srcdir in
1139   .)  # No --srcdir option.  We are building in place.
1140     ac_srcdir=.
1141     if test -z "$ac_top_builddir"; then
1142        ac_top_srcdir=.
1143     else
1144        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1145     fi ;;
1146   [\\/]* | ?:[\\/]* )  # Absolute path.
1147     ac_srcdir=$srcdir$ac_dir_suffix;
1148     ac_top_srcdir=$srcdir ;;
1149   *) # Relative path.
1150     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1151     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1152 esac
1153
1154 # Do not use `cd foo && pwd` to compute absolute paths, because
1155 # the directories may not exist.
1156 case `pwd` in
1157 .) ac_abs_builddir="$ac_dir";;
1158 *)
1159   case "$ac_dir" in
1160   .) ac_abs_builddir=`pwd`;;
1161   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1162   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1163   esac;;
1164 esac
1165 case $ac_abs_builddir in
1166 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1167 *)
1168   case ${ac_top_builddir}. in
1169   .) ac_abs_top_builddir=$ac_abs_builddir;;
1170   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1171   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1172   esac;;
1173 esac
1174 case $ac_abs_builddir in
1175 .) ac_abs_srcdir=$ac_srcdir;;
1176 *)
1177   case $ac_srcdir in
1178   .) ac_abs_srcdir=$ac_abs_builddir;;
1179   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1180   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1181   esac;;
1182 esac
1183 case $ac_abs_builddir in
1184 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1185 *)
1186   case $ac_top_srcdir in
1187   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1188   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1189   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1190   esac;;
1191 esac
1192
1193     cd $ac_dir
1194     # Check for guested configure; otherwise get Cygnus style configure.
1195     if test -f $ac_srcdir/configure.gnu; then
1196       echo
1197       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1198     elif test -f $ac_srcdir/configure; then
1199       echo
1200       $SHELL $ac_srcdir/configure  --help=recursive
1201     elif test -f $ac_srcdir/configure.ac ||
1202            test -f $ac_srcdir/configure.in; then
1203       echo
1204       $ac_configure --help
1205     else
1206       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1207     fi
1208     cd $ac_popdir
1209   done
1210 fi
1211
1212 test -n "$ac_init_help" && exit 0
1213 if $ac_init_version; then
1214   cat <<\_ACEOF
1215 curl configure -
1216 generated by GNU Autoconf 2.59
1217
1218 Copyright (C) 2003 Free Software Foundation, Inc.
1219 This configure script is free software; the Free Software Foundation
1220 gives unlimited permission to copy, distribute and modify it.
1221
1222 Copyright (c) 1998 - 2004 Daniel Stenberg, <daniel@haxx.se>
1223 This configure script may be copied, distributed and modified under the
1224 terms of the curl license; see COPYING for more details
1225 _ACEOF
1226   exit 0
1227 fi
1228 exec 5>config.log
1229 cat >&5 <<_ACEOF
1230 This file contains any messages produced by compilers while
1231 running configure, to aid debugging if configure makes a mistake.
1232
1233 It was created by curl $as_me -, which was
1234 generated by GNU Autoconf 2.59.  Invocation command line was
1235
1236   $ $0 $@
1237
1238 _ACEOF
1239 {
1240 cat <<_ASUNAME
1241 ## --------- ##
1242 ## Platform. ##
1243 ## --------- ##
1244
1245 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1246 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1247 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1248 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1249 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1250
1251 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1252 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1253
1254 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1255 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1256 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1257 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1258 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1259 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1260 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1261
1262 _ASUNAME
1263
1264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1265 for as_dir in $PATH
1266 do
1267   IFS=$as_save_IFS
1268   test -z "$as_dir" && as_dir=.
1269   echo "PATH: $as_dir"
1270 done
1271
1272 } >&5
1273
1274 cat >&5 <<_ACEOF
1275
1276
1277 ## ----------- ##
1278 ## Core tests. ##
1279 ## ----------- ##
1280
1281 _ACEOF
1282
1283
1284 # Keep a trace of the command line.
1285 # Strip out --no-create and --no-recursion so they do not pile up.
1286 # Strip out --silent because we don't want to record it for future runs.
1287 # Also quote any args containing shell meta-characters.
1288 # Make two passes to allow for proper duplicate-argument suppression.
1289 ac_configure_args=
1290 ac_configure_args0=
1291 ac_configure_args1=
1292 ac_sep=
1293 ac_must_keep_next=false
1294 for ac_pass in 1 2
1295 do
1296   for ac_arg
1297   do
1298     case $ac_arg in
1299     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1300     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1301     | -silent | --silent | --silen | --sile | --sil)
1302       continue ;;
1303     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1304       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1305     esac
1306     case $ac_pass in
1307     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1308     2)
1309       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1310       if test $ac_must_keep_next = true; then
1311         ac_must_keep_next=false # Got value, back to normal.
1312       else
1313         case $ac_arg in
1314           *=* | --config-cache | -C | -disable-* | --disable-* \
1315           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1316           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1317           | -with-* | --with-* | -without-* | --without-* | --x)
1318             case "$ac_configure_args0 " in
1319               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1320             esac
1321             ;;
1322           -* ) ac_must_keep_next=true ;;
1323         esac
1324       fi
1325       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1326       # Get rid of the leading space.
1327       ac_sep=" "
1328       ;;
1329     esac
1330   done
1331 done
1332 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1333 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1334
1335 # When interrupted or exit'd, cleanup temporary files, and complete
1336 # config.log.  We remove comments because anyway the quotes in there
1337 # would cause problems or look ugly.
1338 # WARNING: Be sure not to use single quotes in there, as some shells,
1339 # such as our DU 5.0 friend, will then `close' the trap.
1340 trap 'exit_status=$?
1341   # Save into config.log some information that might help in debugging.
1342   {
1343     echo
1344
1345     cat <<\_ASBOX
1346 ## ---------------- ##
1347 ## Cache variables. ##
1348 ## ---------------- ##
1349 _ASBOX
1350     echo
1351     # The following way of writing the cache mishandles newlines in values,
1352 {
1353   (set) 2>&1 |
1354     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1355     *ac_space=\ *)
1356       sed -n \
1357         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1358           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1359       ;;
1360     *)
1361       sed -n \
1362         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1363       ;;
1364     esac;
1365 }
1366     echo
1367
1368     cat <<\_ASBOX
1369 ## ----------------- ##
1370 ## Output variables. ##
1371 ## ----------------- ##
1372 _ASBOX
1373     echo
1374     for ac_var in $ac_subst_vars
1375     do
1376       eval ac_val=$`echo $ac_var`
1377       echo "$ac_var='"'"'$ac_val'"'"'"
1378     done | sort
1379     echo
1380
1381     if test -n "$ac_subst_files"; then
1382       cat <<\_ASBOX
1383 ## ------------- ##
1384 ## Output files. ##
1385 ## ------------- ##
1386 _ASBOX
1387       echo
1388       for ac_var in $ac_subst_files
1389       do
1390         eval ac_val=$`echo $ac_var`
1391         echo "$ac_var='"'"'$ac_val'"'"'"
1392       done | sort
1393       echo
1394     fi
1395
1396     if test -s confdefs.h; then
1397       cat <<\_ASBOX
1398 ## ----------- ##
1399 ## confdefs.h. ##
1400 ## ----------- ##
1401 _ASBOX
1402       echo
1403       sed "/^$/d" confdefs.h | sort
1404       echo
1405     fi
1406     test "$ac_signal" != 0 &&
1407       echo "$as_me: caught signal $ac_signal"
1408     echo "$as_me: exit $exit_status"
1409   } >&5
1410   rm -f core *.core &&
1411   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1412     exit $exit_status
1413      ' 0
1414 for ac_signal in 1 2 13 15; do
1415   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1416 done
1417 ac_signal=0
1418
1419 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1420 rm -rf conftest* confdefs.h
1421 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1422 echo >confdefs.h
1423
1424 # Predefined preprocessor variables.
1425
1426 cat >>confdefs.h <<_ACEOF
1427 #define PACKAGE_NAME "$PACKAGE_NAME"
1428 _ACEOF
1429
1430
1431 cat >>confdefs.h <<_ACEOF
1432 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1433 _ACEOF
1434
1435
1436 cat >>confdefs.h <<_ACEOF
1437 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1438 _ACEOF
1439
1440
1441 cat >>confdefs.h <<_ACEOF
1442 #define PACKAGE_STRING "$PACKAGE_STRING"
1443 _ACEOF
1444
1445
1446 cat >>confdefs.h <<_ACEOF
1447 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1448 _ACEOF
1449
1450
1451 # Let the site file select an alternate cache file if it wants to.
1452 # Prefer explicitly selected file to automatically selected ones.
1453 if test -z "$CONFIG_SITE"; then
1454   if test "x$prefix" != xNONE; then
1455     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1456   else
1457     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1458   fi
1459 fi
1460 for ac_site_file in $CONFIG_SITE; do
1461   if test -r "$ac_site_file"; then
1462     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1463 echo "$as_me: loading site script $ac_site_file" >&6;}
1464     sed 's/^/| /' "$ac_site_file" >&5
1465     . "$ac_site_file"
1466   fi
1467 done
1468
1469 if test -r "$cache_file"; then
1470   # Some versions of bash will fail to source /dev/null (special
1471   # files actually), so we avoid doing that.
1472   if test -f "$cache_file"; then
1473     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1474 echo "$as_me: loading cache $cache_file" >&6;}
1475     case $cache_file in
1476       [\\/]* | ?:[\\/]* ) . $cache_file;;
1477       *)                      . ./$cache_file;;
1478     esac
1479   fi
1480 else
1481   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1482 echo "$as_me: creating cache $cache_file" >&6;}
1483   >$cache_file
1484 fi
1485
1486 # Check that the precious variables saved in the cache have kept the same
1487 # value.
1488 ac_cache_corrupted=false
1489 for ac_var in `(set) 2>&1 |
1490                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1491   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1492   eval ac_new_set=\$ac_env_${ac_var}_set
1493   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1494   eval ac_new_val="\$ac_env_${ac_var}_value"
1495   case $ac_old_set,$ac_new_set in
1496     set,)
1497       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1498 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1499       ac_cache_corrupted=: ;;
1500     ,set)
1501       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1502 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1503       ac_cache_corrupted=: ;;
1504     ,);;
1505     *)
1506       if test "x$ac_old_val" != "x$ac_new_val"; then
1507         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1508 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1509         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1510 echo "$as_me:   former value:  $ac_old_val" >&2;}
1511         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1512 echo "$as_me:   current value: $ac_new_val" >&2;}
1513         ac_cache_corrupted=:
1514       fi;;
1515   esac
1516   # Pass precious variables to config.status.
1517   if test "$ac_new_set" = set; then
1518     case $ac_new_val in
1519     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1520       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1521     *) ac_arg=$ac_var=$ac_new_val ;;
1522     esac
1523     case " $ac_configure_args " in
1524       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1525       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1526     esac
1527   fi
1528 done
1529 if $ac_cache_corrupted; then
1530   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1531 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1532   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1533 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1534    { (exit 1); exit 1; }; }
1535 fi
1536
1537 ac_ext=c
1538 ac_cpp='$CPP $CPPFLAGS'
1539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573                     ac_config_headers="$ac_config_headers lib/config.h src/config.h"
1574
1575 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1576 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1577     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1578 if test "${enable_maintainer_mode+set}" = set; then
1579   enableval="$enable_maintainer_mode"
1580   USE_MAINTAINER_MODE=$enableval
1581 else
1582   USE_MAINTAINER_MODE=no
1583 fi;
1584   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1585 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1586
1587
1588 if test $USE_MAINTAINER_MODE = yes; then
1589   MAINTAINER_MODE_TRUE=
1590   MAINTAINER_MODE_FALSE='#'
1591 else
1592   MAINTAINER_MODE_TRUE='#'
1593   MAINTAINER_MODE_FALSE=
1594 fi
1595
1596   MAINT=$MAINTAINER_MODE_TRUE
1597
1598
1599
1600 # Extract the first word of "sed", so it can be a program name with args.
1601 set dummy sed; ac_word=$2
1602 echo "$as_me:$LINENO: checking for $ac_word" >&5
1603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1604 if test "${ac_cv_path_SED+set}" = set; then
1605   echo $ECHO_N "(cached) $ECHO_C" >&6
1606 else
1607   case $SED in
1608   [\\/]* | ?:[\\/]*)
1609   ac_cv_path_SED="$SED" # Let the user override the test with a path.
1610   ;;
1611   *)
1612   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1613 as_dummy="$PATH:/usr/bin:/usr/local/bin"
1614 for as_dir in $as_dummy
1615 do
1616   IFS=$as_save_IFS
1617   test -z "$as_dir" && as_dir=.
1618   for ac_exec_ext in '' $ac_executable_extensions; do
1619   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1620     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
1621     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1622     break 2
1623   fi
1624 done
1625 done
1626
1627   ;;
1628 esac
1629 fi
1630 SED=$ac_cv_path_SED
1631
1632 if test -n "$SED"; then
1633   echo "$as_me:$LINENO: result: $SED" >&5
1634 echo "${ECHO_T}$SED" >&6
1635 else
1636   echo "$as_me:$LINENO: result: no" >&5
1637 echo "${ECHO_T}no" >&6
1638 fi
1639
1640
1641
1642 # Extract the first word of "ar", so it can be a program name with args.
1643 set dummy ar; ac_word=$2
1644 echo "$as_me:$LINENO: checking for $ac_word" >&5
1645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1646 if test "${ac_cv_path_AR+set}" = set; then
1647   echo $ECHO_N "(cached) $ECHO_C" >&6
1648 else
1649   case $AR in
1650   [\\/]* | ?:[\\/]*)
1651   ac_cv_path_AR="$AR" # Let the user override the test with a path.
1652   ;;
1653   *)
1654   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1655 as_dummy="$PATH:/usr/bin:/usr/local/bin:/usr/ccs/bin"
1656 for as_dir in $as_dummy
1657 do
1658   IFS=$as_save_IFS
1659   test -z "$as_dir" && as_dir=.
1660   for ac_exec_ext in '' $ac_executable_extensions; do
1661   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1662     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
1663     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1664     break 2
1665   fi
1666 done
1667 done
1668
1669   ;;
1670 esac
1671 fi
1672 AR=$ac_cv_path_AR
1673
1674 if test -n "$AR"; then
1675   echo "$as_me:$LINENO: result: $AR" >&5
1676 echo "${ECHO_T}$AR" >&6
1677 else
1678   echo "$as_me:$LINENO: result: no" >&5
1679 echo "${ECHO_T}no" >&6
1680 fi
1681
1682
1683
1684 VERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)"/\1/p' ${srcdir}/include/curl/curl.h`
1685 am__api_version="1.8"
1686 ac_aux_dir=
1687 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1688   if test -f $ac_dir/install-sh; then
1689     ac_aux_dir=$ac_dir
1690     ac_install_sh="$ac_aux_dir/install-sh -c"
1691     break
1692   elif test -f $ac_dir/install.sh; then
1693     ac_aux_dir=$ac_dir
1694     ac_install_sh="$ac_aux_dir/install.sh -c"
1695     break
1696   elif test -f $ac_dir/shtool; then
1697     ac_aux_dir=$ac_dir
1698     ac_install_sh="$ac_aux_dir/shtool install -c"
1699     break
1700   fi
1701 done
1702 if test -z "$ac_aux_dir"; then
1703   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1704 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1705    { (exit 1); exit 1; }; }
1706 fi
1707 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1708 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1709 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1710
1711 # Find a good install program.  We prefer a C program (faster),
1712 # so one script is as good as another.  But avoid the broken or
1713 # incompatible versions:
1714 # SysV /etc/install, /usr/sbin/install
1715 # SunOS /usr/etc/install
1716 # IRIX /sbin/install
1717 # AIX /bin/install
1718 # AmigaOS /C/install, which installs bootblocks on floppy discs
1719 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1720 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1721 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1722 # OS/2's system install, which has a completely different semantic
1723 # ./install, which can be erroneously created by make from ./install.sh.
1724 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1725 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1726 if test -z "$INSTALL"; then
1727 if test "${ac_cv_path_install+set}" = set; then
1728   echo $ECHO_N "(cached) $ECHO_C" >&6
1729 else
1730   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1731 for as_dir in $PATH
1732 do
1733   IFS=$as_save_IFS
1734   test -z "$as_dir" && as_dir=.
1735   # Account for people who put trailing slashes in PATH elements.
1736 case $as_dir/ in
1737   ./ | .// | /cC/* | \
1738   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1739   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1740   /usr/ucb/* ) ;;
1741   *)
1742     # OSF1 and SCO ODT 3.0 have their own names for install.
1743     # Don't use installbsd from OSF since it installs stuff as root
1744     # by default.
1745     for ac_prog in ginstall scoinst install; do
1746       for ac_exec_ext in '' $ac_executable_extensions; do
1747         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1748           if test $ac_prog = install &&
1749             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1750             # AIX install.  It has an incompatible calling convention.
1751             :
1752           elif test $ac_prog = install &&
1753             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1754             # program-specific install script used by HP pwplus--don't use.
1755             :
1756           else
1757             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1758             break 3
1759           fi
1760         fi
1761       done
1762     done
1763     ;;
1764 esac
1765 done
1766
1767
1768 fi
1769   if test "${ac_cv_path_install+set}" = set; then
1770     INSTALL=$ac_cv_path_install
1771   else
1772     # As a last resort, use the slow shell script.  We don't cache a
1773     # path for INSTALL within a source directory, because that will
1774     # break other packages using the cache if that directory is
1775     # removed, or if the path is relative.
1776     INSTALL=$ac_install_sh
1777   fi
1778 fi
1779 echo "$as_me:$LINENO: result: $INSTALL" >&5
1780 echo "${ECHO_T}$INSTALL" >&6
1781
1782 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1783 # It thinks the first close brace ends the variable substitution.
1784 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1785
1786 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1787
1788 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1789
1790 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1791 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1792 # Just in case
1793 sleep 1
1794 echo timestamp > conftest.file
1795 # Do `set' in a subshell so we don't clobber the current shell's
1796 # arguments.  Must try -L first in case configure is actually a
1797 # symlink; some systems play weird games with the mod time of symlinks
1798 # (eg FreeBSD returns the mod time of the symlink's containing
1799 # directory).
1800 if (
1801    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1802    if test "$*" = "X"; then
1803       # -L didn't work.
1804       set X `ls -t $srcdir/configure conftest.file`
1805    fi
1806    rm -f conftest.file
1807    if test "$*" != "X $srcdir/configure conftest.file" \
1808       && test "$*" != "X conftest.file $srcdir/configure"; then
1809
1810       # If neither matched, then we have a broken ls.  This can happen
1811       # if, for instance, CONFIG_SHELL is bash and it inherits a
1812       # broken ls alias from the environment.  This has actually
1813       # happened.  Such a system could not be considered "sane".
1814       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1815 alias in your environment" >&5
1816 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1817 alias in your environment" >&2;}
1818    { (exit 1); exit 1; }; }
1819    fi
1820
1821    test "$2" = conftest.file
1822    )
1823 then
1824    # Ok.
1825    :
1826 else
1827    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1828 Check your system clock" >&5
1829 echo "$as_me: error: newly created file is older than distributed files!
1830 Check your system clock" >&2;}
1831    { (exit 1); exit 1; }; }
1832 fi
1833 echo "$as_me:$LINENO: result: yes" >&5
1834 echo "${ECHO_T}yes" >&6
1835 test "$program_prefix" != NONE &&
1836   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1837 # Use a double $ so make ignores it.
1838 test "$program_suffix" != NONE &&
1839   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1840 # Double any \ or $.  echo might interpret backslashes.
1841 # By default was `s,x,x', remove it if useless.
1842 cat <<\_ACEOF >conftest.sed
1843 s/[\\$]/&&/g;s/;s,x,x,$//
1844 _ACEOF
1845 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1846 rm conftest.sed
1847
1848 # expand $ac_aux_dir to an absolute path
1849 am_aux_dir=`cd $ac_aux_dir && pwd`
1850
1851 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1852 # Use eval to expand $SHELL
1853 if eval "$MISSING --run true"; then
1854   am_missing_run="$MISSING --run "
1855 else
1856   am_missing_run=
1857   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1858 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1859 fi
1860
1861 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1862   # Keeping the `.' argument allows $(mkdir_p) to be used without
1863   # argument.  Indeed, we sometimes output rules like
1864   #   $(mkdir_p) $(somedir)
1865   # where $(somedir) is conditionally defined.
1866   # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1867   # expensive solution, as it forces Make to start a sub-shell.)
1868   mkdir_p='mkdir -p -- .'
1869 else
1870   # On NextStep and OpenStep, the `mkdir' command does not
1871   # recognize any option.  It will interpret all options as
1872   # directories to create, and then abort because `.' already
1873   # exists.
1874   for d in ./-p ./--version;
1875   do
1876     test -d $d && rmdir $d
1877   done
1878   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1879   if test -f "$ac_aux_dir/mkinstalldirs"; then
1880     mkdir_p='$(mkinstalldirs)'
1881   else
1882     mkdir_p='$(install_sh) -d'
1883   fi
1884 fi
1885
1886 for ac_prog in gawk mawk nawk awk
1887 do
1888   # Extract the first word of "$ac_prog", so it can be a program name with args.
1889 set dummy $ac_prog; ac_word=$2
1890 echo "$as_me:$LINENO: checking for $ac_word" >&5
1891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1892 if test "${ac_cv_prog_AWK+set}" = set; then
1893   echo $ECHO_N "(cached) $ECHO_C" >&6
1894 else
1895   if test -n "$AWK"; then
1896   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1897 else
1898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1899 for as_dir in $PATH
1900 do
1901   IFS=$as_save_IFS
1902   test -z "$as_dir" && as_dir=.
1903   for ac_exec_ext in '' $ac_executable_extensions; do
1904   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1905     ac_cv_prog_AWK="$ac_prog"
1906     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1907     break 2
1908   fi
1909 done
1910 done
1911
1912 fi
1913 fi
1914 AWK=$ac_cv_prog_AWK
1915 if test -n "$AWK"; then
1916   echo "$as_me:$LINENO: result: $AWK" >&5
1917 echo "${ECHO_T}$AWK" >&6
1918 else
1919   echo "$as_me:$LINENO: result: no" >&5
1920 echo "${ECHO_T}no" >&6
1921 fi
1922
1923   test -n "$AWK" && break
1924 done
1925
1926 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1927 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1928 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1929 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1930   echo $ECHO_N "(cached) $ECHO_C" >&6
1931 else
1932   cat >conftest.make <<\_ACEOF
1933 all:
1934         @echo 'ac_maketemp="$(MAKE)"'
1935 _ACEOF
1936 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1937 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1938 if test -n "$ac_maketemp"; then
1939   eval ac_cv_prog_make_${ac_make}_set=yes
1940 else
1941   eval ac_cv_prog_make_${ac_make}_set=no
1942 fi
1943 rm -f conftest.make
1944 fi
1945 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1946   echo "$as_me:$LINENO: result: yes" >&5
1947 echo "${ECHO_T}yes" >&6
1948   SET_MAKE=
1949 else
1950   echo "$as_me:$LINENO: result: no" >&5
1951 echo "${ECHO_T}no" >&6
1952   SET_MAKE="MAKE=${MAKE-make}"
1953 fi
1954
1955 rm -rf .tst 2>/dev/null
1956 mkdir .tst 2>/dev/null
1957 if test -d .tst; then
1958   am__leading_dot=.
1959 else
1960   am__leading_dot=_
1961 fi
1962 rmdir .tst 2>/dev/null
1963
1964 # test to see if srcdir already configured
1965 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1966    test -f $srcdir/config.status; then
1967   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1968 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1969    { (exit 1); exit 1; }; }
1970 fi
1971
1972 # test whether we have cygpath
1973 if test -z "$CYGPATH_W"; then
1974   if (cygpath --version) >/dev/null 2>/dev/null; then
1975     CYGPATH_W='cygpath -w'
1976   else
1977     CYGPATH_W=echo
1978   fi
1979 fi
1980
1981
1982 # Define the identity of the package.
1983  PACKAGE=curl
1984  VERSION=$VERSION
1985
1986
1987 cat >>confdefs.h <<_ACEOF
1988 #define PACKAGE "$PACKAGE"
1989 _ACEOF
1990
1991
1992 cat >>confdefs.h <<_ACEOF
1993 #define VERSION "$VERSION"
1994 _ACEOF
1995
1996 # Some tools Automake needs.
1997
1998 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1999
2000
2001 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2002
2003
2004 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2005
2006
2007 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2008
2009
2010 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2011
2012
2013 AMTAR=${AMTAR-"${am_missing_run}tar"}
2014
2015 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2016
2017 # Installed binaries are usually stripped using `strip' when the user
2018 # run `make install-strip'.  However `strip' might not be the right
2019 # tool to use in cross-compilation environments, therefore Automake
2020 # will honor the `STRIP' environment variable to overrule this program.
2021 if test "$cross_compiling" != no; then
2022   if test -n "$ac_tool_prefix"; then
2023   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2024 set dummy ${ac_tool_prefix}strip; ac_word=$2
2025 echo "$as_me:$LINENO: checking for $ac_word" >&5
2026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2027 if test "${ac_cv_prog_STRIP+set}" = set; then
2028   echo $ECHO_N "(cached) $ECHO_C" >&6
2029 else
2030   if test -n "$STRIP"; then
2031   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2032 else
2033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2034 for as_dir in $PATH
2035 do
2036   IFS=$as_save_IFS
2037   test -z "$as_dir" && as_dir=.
2038   for ac_exec_ext in '' $ac_executable_extensions; do
2039   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2040     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2041     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2042     break 2
2043   fi
2044 done
2045 done
2046
2047 fi
2048 fi
2049 STRIP=$ac_cv_prog_STRIP
2050 if test -n "$STRIP"; then
2051   echo "$as_me:$LINENO: result: $STRIP" >&5
2052 echo "${ECHO_T}$STRIP" >&6
2053 else
2054   echo "$as_me:$LINENO: result: no" >&5
2055 echo "${ECHO_T}no" >&6
2056 fi
2057
2058 fi
2059 if test -z "$ac_cv_prog_STRIP"; then
2060   ac_ct_STRIP=$STRIP
2061   # Extract the first word of "strip", so it can be a program name with args.
2062 set dummy strip; ac_word=$2
2063 echo "$as_me:$LINENO: checking for $ac_word" >&5
2064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2065 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2066   echo $ECHO_N "(cached) $ECHO_C" >&6
2067 else
2068   if test -n "$ac_ct_STRIP"; then
2069   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2070 else
2071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2072 for as_dir in $PATH
2073 do
2074   IFS=$as_save_IFS
2075   test -z "$as_dir" && as_dir=.
2076   for ac_exec_ext in '' $ac_executable_extensions; do
2077   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2078     ac_cv_prog_ac_ct_STRIP="strip"
2079     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2080     break 2
2081   fi
2082 done
2083 done
2084
2085   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2086 fi
2087 fi
2088 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2089 if test -n "$ac_ct_STRIP"; then
2090   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2091 echo "${ECHO_T}$ac_ct_STRIP" >&6
2092 else
2093   echo "$as_me:$LINENO: result: no" >&5
2094 echo "${ECHO_T}no" >&6
2095 fi
2096
2097   STRIP=$ac_ct_STRIP
2098 else
2099   STRIP="$ac_cv_prog_STRIP"
2100 fi
2101
2102 fi
2103 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2104
2105 # We need awk for the "check" target.  The system "awk" is bad on
2106 # some platforms.
2107
2108
2109
2110 echo "$as_me:$LINENO: checking curl version" >&5
2111 echo $ECHO_N "checking curl version... $ECHO_C" >&6
2112 echo "$as_me:$LINENO: result: $VERSION" >&5
2113 echo "${ECHO_T}$VERSION" >&6
2114
2115 VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\(.*\)/\1/p' ${srcdir}/include/curl/curl.h`
2116
2117
2118 PKGADD_PKG="HAXXcurl"
2119 PKGADD_NAME="cURL - a client that groks URLs"
2120 PKGADD_VENDOR="curl.haxx.se"
2121
2122
2123
2124
2125
2126
2127 # Make sure we can run config.sub.
2128 $ac_config_sub sun4 >/dev/null 2>&1 ||
2129   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2130 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2131    { (exit 1); exit 1; }; }
2132
2133 echo "$as_me:$LINENO: checking build system type" >&5
2134 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2135 if test "${ac_cv_build+set}" = set; then
2136   echo $ECHO_N "(cached) $ECHO_C" >&6
2137 else
2138   ac_cv_build_alias=$build_alias
2139 test -z "$ac_cv_build_alias" &&
2140   ac_cv_build_alias=`$ac_config_guess`
2141 test -z "$ac_cv_build_alias" &&
2142   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2143 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2144    { (exit 1); exit 1; }; }
2145 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2146   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2147 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2148    { (exit 1); exit 1; }; }
2149
2150 fi
2151 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2152 echo "${ECHO_T}$ac_cv_build" >&6
2153 build=$ac_cv_build
2154 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2155 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2156 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2157
2158
2159 echo "$as_me:$LINENO: checking host system type" >&5
2160 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2161 if test "${ac_cv_host+set}" = set; then
2162   echo $ECHO_N "(cached) $ECHO_C" >&6
2163 else
2164   ac_cv_host_alias=$host_alias
2165 test -z "$ac_cv_host_alias" &&
2166   ac_cv_host_alias=$ac_cv_build_alias
2167 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2168   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2169 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2170    { (exit 1); exit 1; }; }
2171
2172 fi
2173 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2174 echo "${ECHO_T}$ac_cv_host" >&6
2175 host=$ac_cv_host
2176 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2177 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2178 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2179
2180
2181
2182 cat >>confdefs.h <<_ACEOF
2183 #define OS "${host}"
2184 _ACEOF
2185
2186
2187 DEPDIR="${am__leading_dot}deps"
2188
2189           ac_config_commands="$ac_config_commands depfiles"
2190
2191
2192 am_make=${MAKE-make}
2193 cat > confinc << 'END'
2194 am__doit:
2195         @echo done
2196 .PHONY: am__doit
2197 END
2198 # If we don't find an include directive, just comment out the code.
2199 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2200 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2201 am__include="#"
2202 am__quote=
2203 _am_result=none
2204 # First try GNU make style include.
2205 echo "include confinc" > confmf
2206 # We grep out `Entering directory' and `Leaving directory'
2207 # messages which can occur if `w' ends up in MAKEFLAGS.
2208 # In particular we don't look at `^make:' because GNU make might
2209 # be invoked under some other name (usually "gmake"), in which
2210 # case it prints its new name instead of `make'.
2211 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2212    am__include=include
2213    am__quote=
2214    _am_result=GNU
2215 fi
2216 # Now try BSD make style include.
2217 if test "$am__include" = "#"; then
2218    echo '.include "confinc"' > confmf
2219    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2220       am__include=.include
2221       am__quote="\""
2222       _am_result=BSD
2223    fi
2224 fi
2225
2226
2227 echo "$as_me:$LINENO: result: $_am_result" >&5
2228 echo "${ECHO_T}$_am_result" >&6
2229 rm -f confinc confmf
2230
2231 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2232 if test "${enable_dependency_tracking+set}" = set; then
2233   enableval="$enable_dependency_tracking"
2234
2235 fi;
2236 if test "x$enable_dependency_tracking" != xno; then
2237   am_depcomp="$ac_aux_dir/depcomp"
2238   AMDEPBACKSLASH='\'
2239 fi
2240
2241
2242 if test "x$enable_dependency_tracking" != xno; then
2243   AMDEP_TRUE=
2244   AMDEP_FALSE='#'
2245 else
2246   AMDEP_TRUE='#'
2247   AMDEP_FALSE=
2248 fi
2249
2250
2251
2252 ac_ext=c
2253 ac_cpp='$CPP $CPPFLAGS'
2254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2257 if test -n "$ac_tool_prefix"; then
2258   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2259 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2260 echo "$as_me:$LINENO: checking for $ac_word" >&5
2261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2262 if test "${ac_cv_prog_CC+set}" = set; then
2263   echo $ECHO_N "(cached) $ECHO_C" >&6
2264 else
2265   if test -n "$CC"; then
2266   ac_cv_prog_CC="$CC" # Let the user override the test.
2267 else
2268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2269 for as_dir in $PATH
2270 do
2271   IFS=$as_save_IFS
2272   test -z "$as_dir" && as_dir=.
2273   for ac_exec_ext in '' $ac_executable_extensions; do
2274   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2275     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2276     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2277     break 2
2278   fi
2279 done
2280 done
2281
2282 fi
2283 fi
2284 CC=$ac_cv_prog_CC
2285 if test -n "$CC"; then
2286   echo "$as_me:$LINENO: result: $CC" >&5
2287 echo "${ECHO_T}$CC" >&6
2288 else
2289   echo "$as_me:$LINENO: result: no" >&5
2290 echo "${ECHO_T}no" >&6
2291 fi
2292
2293 fi
2294 if test -z "$ac_cv_prog_CC"; then
2295   ac_ct_CC=$CC
2296   # Extract the first word of "gcc", so it can be a program name with args.
2297 set dummy gcc; ac_word=$2
2298 echo "$as_me:$LINENO: checking for $ac_word" >&5
2299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2300 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2301   echo $ECHO_N "(cached) $ECHO_C" >&6
2302 else
2303   if test -n "$ac_ct_CC"; then
2304   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2305 else
2306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2307 for as_dir in $PATH
2308 do
2309   IFS=$as_save_IFS
2310   test -z "$as_dir" && as_dir=.
2311   for ac_exec_ext in '' $ac_executable_extensions; do
2312   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2313     ac_cv_prog_ac_ct_CC="gcc"
2314     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2315     break 2
2316   fi
2317 done
2318 done
2319
2320 fi
2321 fi
2322 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2323 if test -n "$ac_ct_CC"; then
2324   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2325 echo "${ECHO_T}$ac_ct_CC" >&6
2326 else
2327   echo "$as_me:$LINENO: result: no" >&5
2328 echo "${ECHO_T}no" >&6
2329 fi
2330
2331   CC=$ac_ct_CC
2332 else
2333   CC="$ac_cv_prog_CC"
2334 fi
2335
2336 if test -z "$CC"; then
2337   if test -n "$ac_tool_prefix"; then
2338   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2339 set dummy ${ac_tool_prefix}cc; ac_word=$2
2340 echo "$as_me:$LINENO: checking for $ac_word" >&5
2341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2342 if test "${ac_cv_prog_CC+set}" = set; then
2343   echo $ECHO_N "(cached) $ECHO_C" >&6
2344 else
2345   if test -n "$CC"; then
2346   ac_cv_prog_CC="$CC" # Let the user override the test.
2347 else
2348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2349 for as_dir in $PATH
2350 do
2351   IFS=$as_save_IFS
2352   test -z "$as_dir" && as_dir=.
2353   for ac_exec_ext in '' $ac_executable_extensions; do
2354   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2355     ac_cv_prog_CC="${ac_tool_prefix}cc"
2356     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2357     break 2
2358   fi
2359 done
2360 done
2361
2362 fi
2363 fi
2364 CC=$ac_cv_prog_CC
2365 if test -n "$CC"; then
2366   echo "$as_me:$LINENO: result: $CC" >&5
2367 echo "${ECHO_T}$CC" >&6
2368 else
2369   echo "$as_me:$LINENO: result: no" >&5
2370 echo "${ECHO_T}no" >&6
2371 fi
2372
2373 fi
2374 if test -z "$ac_cv_prog_CC"; then
2375   ac_ct_CC=$CC
2376   # Extract the first word of "cc", so it can be a program name with args.
2377 set dummy cc; ac_word=$2
2378 echo "$as_me:$LINENO: checking for $ac_word" >&5
2379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2380 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2381   echo $ECHO_N "(cached) $ECHO_C" >&6
2382 else
2383   if test -n "$ac_ct_CC"; then
2384   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2385 else
2386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2387 for as_dir in $PATH
2388 do
2389   IFS=$as_save_IFS
2390   test -z "$as_dir" && as_dir=.
2391   for ac_exec_ext in '' $ac_executable_extensions; do
2392   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2393     ac_cv_prog_ac_ct_CC="cc"
2394     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2395     break 2
2396   fi
2397 done
2398 done
2399
2400 fi
2401 fi
2402 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2403 if test -n "$ac_ct_CC"; then
2404   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2405 echo "${ECHO_T}$ac_ct_CC" >&6
2406 else
2407   echo "$as_me:$LINENO: result: no" >&5
2408 echo "${ECHO_T}no" >&6
2409 fi
2410
2411   CC=$ac_ct_CC
2412 else
2413   CC="$ac_cv_prog_CC"
2414 fi
2415
2416 fi
2417 if test -z "$CC"; then
2418   # Extract the first word of "cc", so it can be a program name with args.
2419 set dummy cc; ac_word=$2
2420 echo "$as_me:$LINENO: checking for $ac_word" >&5
2421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2422 if test "${ac_cv_prog_CC+set}" = set; then
2423   echo $ECHO_N "(cached) $ECHO_C" >&6
2424 else
2425   if test -n "$CC"; then
2426   ac_cv_prog_CC="$CC" # Let the user override the test.
2427 else
2428   ac_prog_rejected=no
2429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2430 for as_dir in $PATH
2431 do
2432   IFS=$as_save_IFS
2433   test -z "$as_dir" && as_dir=.
2434   for ac_exec_ext in '' $ac_executable_extensions; do
2435   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2436     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2437        ac_prog_rejected=yes
2438        continue
2439      fi
2440     ac_cv_prog_CC="cc"
2441     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2442     break 2
2443   fi
2444 done
2445 done
2446
2447 if test $ac_prog_rejected = yes; then
2448   # We found a bogon in the path, so make sure we never use it.
2449   set dummy $ac_cv_prog_CC
2450   shift
2451   if test $# != 0; then
2452     # We chose a different compiler from the bogus one.
2453     # However, it has the same basename, so the bogon will be chosen
2454     # first if we set CC to just the basename; use the full file name.
2455     shift
2456     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2457   fi
2458 fi
2459 fi
2460 fi
2461 CC=$ac_cv_prog_CC
2462 if test -n "$CC"; then
2463   echo "$as_me:$LINENO: result: $CC" >&5
2464 echo "${ECHO_T}$CC" >&6
2465 else
2466   echo "$as_me:$LINENO: result: no" >&5
2467 echo "${ECHO_T}no" >&6
2468 fi
2469
2470 fi
2471 if test -z "$CC"; then
2472   if test -n "$ac_tool_prefix"; then
2473   for ac_prog in cl
2474   do
2475     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2476 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2477 echo "$as_me:$LINENO: checking for $ac_word" >&5
2478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2479 if test "${ac_cv_prog_CC+set}" = set; then
2480   echo $ECHO_N "(cached) $ECHO_C" >&6
2481 else
2482   if test -n "$CC"; then
2483   ac_cv_prog_CC="$CC" # Let the user override the test.
2484 else
2485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486 for as_dir in $PATH
2487 do
2488   IFS=$as_save_IFS
2489   test -z "$as_dir" && as_dir=.
2490   for ac_exec_ext in '' $ac_executable_extensions; do
2491   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2492     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2493     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2494     break 2
2495   fi
2496 done
2497 done
2498
2499 fi
2500 fi
2501 CC=$ac_cv_prog_CC
2502 if test -n "$CC"; then
2503   echo "$as_me:$LINENO: result: $CC" >&5
2504 echo "${ECHO_T}$CC" >&6
2505 else
2506   echo "$as_me:$LINENO: result: no" >&5
2507 echo "${ECHO_T}no" >&6
2508 fi
2509
2510     test -n "$CC" && break
2511   done
2512 fi
2513 if test -z "$CC"; then
2514   ac_ct_CC=$CC
2515   for ac_prog in cl
2516 do
2517   # Extract the first word of "$ac_prog", so it can be a program name with args.
2518 set dummy $ac_prog; ac_word=$2
2519 echo "$as_me:$LINENO: checking for $ac_word" >&5
2520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2521 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2522   echo $ECHO_N "(cached) $ECHO_C" >&6
2523 else
2524   if test -n "$ac_ct_CC"; then
2525   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2526 else
2527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2528 for as_dir in $PATH
2529 do
2530   IFS=$as_save_IFS
2531   test -z "$as_dir" && as_dir=.
2532   for ac_exec_ext in '' $ac_executable_extensions; do
2533   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2534     ac_cv_prog_ac_ct_CC="$ac_prog"
2535     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2536     break 2
2537   fi
2538 done
2539 done
2540
2541 fi
2542 fi
2543 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2544 if test -n "$ac_ct_CC"; then
2545   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2546 echo "${ECHO_T}$ac_ct_CC" >&6
2547 else
2548   echo "$as_me:$LINENO: result: no" >&5
2549 echo "${ECHO_T}no" >&6
2550 fi
2551
2552   test -n "$ac_ct_CC" && break
2553 done
2554
2555   CC=$ac_ct_CC
2556 fi
2557
2558 fi
2559
2560
2561 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2562 See \`config.log' for more details." >&5
2563 echo "$as_me: error: no acceptable C compiler found in \$PATH
2564 See \`config.log' for more details." >&2;}
2565    { (exit 1); exit 1; }; }
2566
2567 # Provide some information about the compiler.
2568 echo "$as_me:$LINENO:" \
2569      "checking for C compiler version" >&5
2570 ac_compiler=`set X $ac_compile; echo $2`
2571 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2572   (eval $ac_compiler --version </dev/null >&5) 2>&5
2573   ac_status=$?
2574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575   (exit $ac_status); }
2576 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2577   (eval $ac_compiler -v </dev/null >&5) 2>&5
2578   ac_status=$?
2579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580   (exit $ac_status); }
2581 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2582   (eval $ac_compiler -V </dev/null >&5) 2>&5
2583   ac_status=$?
2584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585   (exit $ac_status); }
2586
2587 cat >conftest.$ac_ext <<_ACEOF
2588 /* confdefs.h.  */
2589 _ACEOF
2590 cat confdefs.h >>conftest.$ac_ext
2591 cat >>conftest.$ac_ext <<_ACEOF
2592 /* end confdefs.h.  */
2593
2594 int
2595 main ()
2596 {
2597
2598   ;
2599   return 0;
2600 }
2601 _ACEOF
2602 ac_clean_files_save=$ac_clean_files
2603 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2604 # Try to create an executable without -o first, disregard a.out.
2605 # It will help us diagnose broken compilers, and finding out an intuition
2606 # of exeext.
2607 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2608 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2609 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2610 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2611   (eval $ac_link_default) 2>&5
2612   ac_status=$?
2613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614   (exit $ac_status); }; then
2615   # Find the output, starting from the most likely.  This scheme is
2616 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2617 # resort.
2618
2619 # Be careful to initialize this variable, since it used to be cached.
2620 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2621 ac_cv_exeext=
2622 # b.out is created by i960 compilers.
2623 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2624 do
2625   test -f "$ac_file" || continue
2626   case $ac_file in
2627     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2628         ;;
2629     conftest.$ac_ext )
2630         # This is the source file.
2631         ;;
2632     [ab].out )
2633         # We found the default executable, but exeext='' is most
2634         # certainly right.
2635         break;;
2636     *.* )
2637         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2638         # FIXME: I believe we export ac_cv_exeext for Libtool,
2639         # but it would be cool to find out if it's true.  Does anybody
2640         # maintain Libtool? --akim.
2641         export ac_cv_exeext
2642         break;;
2643     * )
2644         break;;
2645   esac
2646 done
2647 else
2648   echo "$as_me: failed program was:" >&5
2649 sed 's/^/| /' conftest.$ac_ext >&5
2650
2651 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2652 See \`config.log' for more details." >&5
2653 echo "$as_me: error: C compiler cannot create executables
2654 See \`config.log' for more details." >&2;}
2655    { (exit 77); exit 77; }; }
2656 fi
2657
2658 ac_exeext=$ac_cv_exeext
2659 echo "$as_me:$LINENO: result: $ac_file" >&5
2660 echo "${ECHO_T}$ac_file" >&6
2661
2662 # Check the compiler produces executables we can run.  If not, either
2663 # the compiler is broken, or we cross compile.
2664 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2665 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2666 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2667 # If not cross compiling, check that we can run a simple program.
2668 if test "$cross_compiling" != yes; then
2669   if { ac_try='./$ac_file'
2670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2671   (eval $ac_try) 2>&5
2672   ac_status=$?
2673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674   (exit $ac_status); }; }; then
2675     cross_compiling=no
2676   else
2677     if test "$cross_compiling" = maybe; then
2678         cross_compiling=yes
2679     else
2680         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2681 If you meant to cross compile, use \`--host'.
2682 See \`config.log' for more details." >&5
2683 echo "$as_me: error: cannot run C compiled programs.
2684 If you meant to cross compile, use \`--host'.
2685 See \`config.log' for more details." >&2;}
2686    { (exit 1); exit 1; }; }
2687     fi
2688   fi
2689 fi
2690 echo "$as_me:$LINENO: result: yes" >&5
2691 echo "${ECHO_T}yes" >&6
2692
2693 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2694 ac_clean_files=$ac_clean_files_save
2695 # Check the compiler produces executables we can run.  If not, either
2696 # the compiler is broken, or we cross compile.
2697 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2698 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2699 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2700 echo "${ECHO_T}$cross_compiling" >&6
2701
2702 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2703 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2705   (eval $ac_link) 2>&5
2706   ac_status=$?
2707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708   (exit $ac_status); }; then
2709   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2710 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2711 # work properly (i.e., refer to `conftest.exe'), while it won't with
2712 # `rm'.
2713 for ac_file in conftest.exe conftest conftest.*; do
2714   test -f "$ac_file" || continue
2715   case $ac_file in
2716     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2717     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2718           export ac_cv_exeext
2719           break;;
2720     * ) break;;
2721   esac
2722 done
2723 else
2724   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2725 See \`config.log' for more details." >&5
2726 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2727 See \`config.log' for more details." >&2;}
2728    { (exit 1); exit 1; }; }
2729 fi
2730
2731 rm -f conftest$ac_cv_exeext
2732 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2733 echo "${ECHO_T}$ac_cv_exeext" >&6
2734
2735 rm -f conftest.$ac_ext
2736 EXEEXT=$ac_cv_exeext
2737 ac_exeext=$EXEEXT
2738 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2739 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2740 if test "${ac_cv_objext+set}" = set; then
2741   echo $ECHO_N "(cached) $ECHO_C" >&6
2742 else
2743   cat >conftest.$ac_ext <<_ACEOF
2744 /* confdefs.h.  */
2745 _ACEOF
2746 cat confdefs.h >>conftest.$ac_ext
2747 cat >>conftest.$ac_ext <<_ACEOF
2748 /* end confdefs.h.  */
2749
2750 int
2751 main ()
2752 {
2753
2754   ;
2755   return 0;
2756 }
2757 _ACEOF
2758 rm -f conftest.o conftest.obj
2759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2760   (eval $ac_compile) 2>&5
2761   ac_status=$?
2762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763   (exit $ac_status); }; then
2764   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2765   case $ac_file in
2766     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2767     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2768        break;;
2769   esac
2770 done
2771 else
2772   echo "$as_me: failed program was:" >&5
2773 sed 's/^/| /' conftest.$ac_ext >&5
2774
2775 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2776 See \`config.log' for more details." >&5
2777 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2778 See \`config.log' for more details." >&2;}
2779    { (exit 1); exit 1; }; }
2780 fi
2781
2782 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2783 fi
2784 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2785 echo "${ECHO_T}$ac_cv_objext" >&6
2786 OBJEXT=$ac_cv_objext
2787 ac_objext=$OBJEXT
2788 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2789 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2790 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2791   echo $ECHO_N "(cached) $ECHO_C" >&6
2792 else
2793   cat >conftest.$ac_ext <<_ACEOF
2794 /* confdefs.h.  */
2795 _ACEOF
2796 cat confdefs.h >>conftest.$ac_ext
2797 cat >>conftest.$ac_ext <<_ACEOF
2798 /* end confdefs.h.  */
2799
2800 int
2801 main ()
2802 {
2803 #ifndef __GNUC__
2804        choke me
2805 #endif
2806
2807   ;
2808   return 0;
2809 }
2810 _ACEOF
2811 rm -f conftest.$ac_objext
2812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2813   (eval $ac_compile) 2>conftest.er1
2814   ac_status=$?
2815   grep -v '^ *+' conftest.er1 >conftest.err
2816   rm -f conftest.er1
2817   cat conftest.err >&5
2818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819   (exit $ac_status); } &&
2820          { ac_try='test -z "$ac_c_werror_flag"
2821                          || test ! -s conftest.err'
2822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2823   (eval $ac_try) 2>&5
2824   ac_status=$?
2825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826   (exit $ac_status); }; } &&
2827          { ac_try='test -s conftest.$ac_objext'
2828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2829   (eval $ac_try) 2>&5
2830   ac_status=$?
2831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832   (exit $ac_status); }; }; then
2833   ac_compiler_gnu=yes
2834 else
2835   echo "$as_me: failed program was:" >&5
2836 sed 's/^/| /' conftest.$ac_ext >&5
2837
2838 ac_compiler_gnu=no
2839 fi
2840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2841 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2842
2843 fi
2844 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2845 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2846 GCC=`test $ac_compiler_gnu = yes && echo yes`
2847 ac_test_CFLAGS=${CFLAGS+set}
2848 ac_save_CFLAGS=$CFLAGS
2849 CFLAGS="-g"
2850 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2851 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2852 if test "${ac_cv_prog_cc_g+set}" = set; then
2853   echo $ECHO_N "(cached) $ECHO_C" >&6
2854 else
2855   cat >conftest.$ac_ext <<_ACEOF
2856 /* confdefs.h.  */
2857 _ACEOF
2858 cat confdefs.h >>conftest.$ac_ext
2859 cat >>conftest.$ac_ext <<_ACEOF
2860 /* end confdefs.h.  */
2861
2862 int
2863 main ()
2864 {
2865
2866   ;
2867   return 0;
2868 }
2869 _ACEOF
2870 rm -f conftest.$ac_objext
2871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2872   (eval $ac_compile) 2>conftest.er1
2873   ac_status=$?
2874   grep -v '^ *+' conftest.er1 >conftest.err
2875   rm -f conftest.er1
2876   cat conftest.err >&5
2877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878   (exit $ac_status); } &&
2879          { ac_try='test -z "$ac_c_werror_flag"
2880                          || test ! -s conftest.err'
2881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2882   (eval $ac_try) 2>&5
2883   ac_status=$?
2884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885   (exit $ac_status); }; } &&
2886          { ac_try='test -s conftest.$ac_objext'
2887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2888   (eval $ac_try) 2>&5
2889   ac_status=$?
2890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891   (exit $ac_status); }; }; then
2892   ac_cv_prog_cc_g=yes
2893 else
2894   echo "$as_me: failed program was:" >&5
2895 sed 's/^/| /' conftest.$ac_ext >&5
2896
2897 ac_cv_prog_cc_g=no
2898 fi
2899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2900 fi
2901 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2902 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2903 if test "$ac_test_CFLAGS" = set; then
2904   CFLAGS=$ac_save_CFLAGS
2905 elif test $ac_cv_prog_cc_g = yes; then
2906   if test "$GCC" = yes; then
2907     CFLAGS="-g -O2"
2908   else
2909     CFLAGS="-g"
2910   fi
2911 else
2912   if test "$GCC" = yes; then
2913     CFLAGS="-O2"
2914   else
2915     CFLAGS=
2916   fi
2917 fi
2918 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2919 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2920 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2921   echo $ECHO_N "(cached) $ECHO_C" >&6
2922 else
2923   ac_cv_prog_cc_stdc=no
2924 ac_save_CC=$CC
2925 cat >conftest.$ac_ext <<_ACEOF
2926 /* confdefs.h.  */
2927 _ACEOF
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h.  */
2931 #include <stdarg.h>
2932 #include <stdio.h>
2933 #include <sys/types.h>
2934 #include <sys/stat.h>
2935 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2936 struct buf { int x; };
2937 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2938 static char *e (p, i)
2939      char **p;
2940      int i;
2941 {
2942   return p[i];
2943 }
2944 static char *f (char * (*g) (char **, int), char **p, ...)
2945 {
2946   char *s;
2947   va_list v;
2948   va_start (v,p);
2949   s = g (p, va_arg (v,int));
2950   va_end (v);
2951   return s;
2952 }
2953
2954 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2955    function prototypes and stuff, but not '\xHH' hex character constants.
2956    These don't provoke an error unfortunately, instead are silently treated
2957    as 'x'.  The following induces an error, until -std1 is added to get
2958    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2959    array size at least.  It's necessary to write '\x00'==0 to get something
2960    that's true only with -std1.  */
2961 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2962
2963 int test (int i, double x);
2964 struct s1 {int (*f) (int a);};
2965 struct s2 {int (*f) (double a);};
2966 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2967 int argc;
2968 char **argv;
2969 int
2970 main ()
2971 {
2972 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2973   ;
2974   return 0;
2975 }
2976 _ACEOF
2977 # Don't try gcc -ansi; that turns off useful extensions and
2978 # breaks some systems' header files.
2979 # AIX                   -qlanglvl=ansi
2980 # Ultrix and OSF/1      -std1
2981 # HP-UX 10.20 and later -Ae
2982 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2983 # SVR4                  -Xc -D__EXTENSIONS__
2984 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2985 do
2986   CC="$ac_save_CC $ac_arg"
2987   rm -f conftest.$ac_objext
2988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2989   (eval $ac_compile) 2>conftest.er1
2990   ac_status=$?
2991   grep -v '^ *+' conftest.er1 >conftest.err
2992   rm -f conftest.er1
2993   cat conftest.err >&5
2994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995   (exit $ac_status); } &&
2996          { ac_try='test -z "$ac_c_werror_flag"
2997                          || test ! -s conftest.err'
2998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2999   (eval $ac_try) 2>&5
3000   ac_status=$?
3001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002   (exit $ac_status); }; } &&
3003          { ac_try='test -s conftest.$ac_objext'
3004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3005   (eval $ac_try) 2>&5
3006   ac_status=$?
3007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008   (exit $ac_status); }; }; then
3009   ac_cv_prog_cc_stdc=$ac_arg
3010 break
3011 else
3012   echo "$as_me: failed program was:" >&5
3013 sed 's/^/| /' conftest.$ac_ext >&5
3014
3015 fi
3016 rm -f conftest.err conftest.$ac_objext
3017 done
3018 rm -f conftest.$ac_ext conftest.$ac_objext
3019 CC=$ac_save_CC
3020
3021 fi
3022
3023 case "x$ac_cv_prog_cc_stdc" in
3024   x|xno)
3025     echo "$as_me:$LINENO: result: none needed" >&5
3026 echo "${ECHO_T}none needed" >&6 ;;
3027   *)
3028     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3029 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3030     CC="$CC $ac_cv_prog_cc_stdc" ;;
3031 esac
3032
3033 # Some people use a C++ compiler to compile C.  Since we use `exit',
3034 # in C++ we need to declare it.  In case someone uses the same compiler
3035 # for both compiling C and C++ we need to have the C++ compiler decide
3036 # the declaration of exit, since it's the most demanding environment.
3037 cat >conftest.$ac_ext <<_ACEOF
3038 #ifndef __cplusplus
3039   choke me
3040 #endif
3041 _ACEOF
3042 rm -f conftest.$ac_objext
3043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3044   (eval $ac_compile) 2>conftest.er1
3045   ac_status=$?
3046   grep -v '^ *+' conftest.er1 >conftest.err
3047   rm -f conftest.er1
3048   cat conftest.err >&5
3049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050   (exit $ac_status); } &&
3051          { ac_try='test -z "$ac_c_werror_flag"
3052                          || test ! -s conftest.err'
3053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3054   (eval $ac_try) 2>&5
3055   ac_status=$?
3056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057   (exit $ac_status); }; } &&
3058          { ac_try='test -s conftest.$ac_objext'
3059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3060   (eval $ac_try) 2>&5
3061   ac_status=$?
3062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063   (exit $ac_status); }; }; then
3064   for ac_declaration in \
3065    '' \
3066    'extern "C" void std::exit (int) throw (); using std::exit;' \
3067    'extern "C" void std::exit (int); using std::exit;' \
3068    'extern "C" void exit (int) throw ();' \
3069    'extern "C" void exit (int);' \
3070    'void exit (int);'
3071 do
3072   cat >conftest.$ac_ext <<_ACEOF
3073 /* confdefs.h.  */
3074 _ACEOF
3075 cat confdefs.h >>conftest.$ac_ext
3076 cat >>conftest.$ac_ext <<_ACEOF
3077 /* end confdefs.h.  */
3078 $ac_declaration
3079 #include <stdlib.h>
3080 int
3081 main ()
3082 {
3083 exit (42);
3084   ;
3085   return 0;
3086 }
3087 _ACEOF
3088 rm -f conftest.$ac_objext
3089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3090   (eval $ac_compile) 2>conftest.er1
3091   ac_status=$?
3092   grep -v '^ *+' conftest.er1 >conftest.err
3093   rm -f conftest.er1
3094   cat conftest.err >&5
3095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096   (exit $ac_status); } &&
3097          { ac_try='test -z "$ac_c_werror_flag"
3098                          || test ! -s conftest.err'
3099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3100   (eval $ac_try) 2>&5
3101   ac_status=$?
3102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103   (exit $ac_status); }; } &&
3104          { ac_try='test -s conftest.$ac_objext'
3105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3106   (eval $ac_try) 2>&5
3107   ac_status=$?
3108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109   (exit $ac_status); }; }; then
3110   :
3111 else
3112   echo "$as_me: failed program was:" >&5
3113 sed 's/^/| /' conftest.$ac_ext >&5
3114
3115 continue
3116 fi
3117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3118   cat >conftest.$ac_ext <<_ACEOF
3119 /* confdefs.h.  */
3120 _ACEOF
3121 cat confdefs.h >>conftest.$ac_ext
3122 cat >>conftest.$ac_ext <<_ACEOF
3123 /* end confdefs.h.  */
3124 $ac_declaration
3125 int
3126 main ()
3127 {
3128 exit (42);
3129   ;
3130   return 0;
3131 }
3132 _ACEOF
3133 rm -f conftest.$ac_objext
3134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3135   (eval $ac_compile) 2>conftest.er1
3136   ac_status=$?
3137   grep -v '^ *+' conftest.er1 >conftest.err
3138   rm -f conftest.er1
3139   cat conftest.err >&5
3140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141   (exit $ac_status); } &&
3142          { ac_try='test -z "$ac_c_werror_flag"
3143                          || test ! -s conftest.err'
3144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3145   (eval $ac_try) 2>&5
3146   ac_status=$?
3147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148   (exit $ac_status); }; } &&
3149          { ac_try='test -s conftest.$ac_objext'
3150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3151   (eval $ac_try) 2>&5
3152   ac_status=$?
3153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154   (exit $ac_status); }; }; then
3155   break
3156 else
3157   echo "$as_me: failed program was:" >&5
3158 sed 's/^/| /' conftest.$ac_ext >&5
3159
3160 fi
3161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3162 done
3163 rm -f conftest*
3164 if test -n "$ac_declaration"; then
3165   echo '#ifdef __cplusplus' >>confdefs.h
3166   echo $ac_declaration      >>confdefs.h
3167   echo '#endif'             >>confdefs.h
3168 fi
3169
3170 else
3171   echo "$as_me: failed program was:" >&5
3172 sed 's/^/| /' conftest.$ac_ext >&5
3173
3174 fi
3175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3176 ac_ext=c
3177 ac_cpp='$CPP $CPPFLAGS'
3178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3181
3182 depcc="$CC"   am_compiler_list=
3183
3184 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3185 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3186 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3187   echo $ECHO_N "(cached) $ECHO_C" >&6
3188 else
3189   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3190   # We make a subdir and do the tests there.  Otherwise we can end up
3191   # making bogus files that we don't know about and never remove.  For
3192   # instance it was reported that on HP-UX the gcc test will end up
3193   # making a dummy file named `D' -- because `-MD' means `put the output
3194   # in D'.
3195   mkdir conftest.dir
3196   # Copy depcomp to subdir because otherwise we won't find it if we're
3197   # using a relative directory.
3198   cp "$am_depcomp" conftest.dir
3199   cd conftest.dir
3200   # We will build objects and dependencies in a subdirectory because
3201   # it helps to detect inapplicable dependency modes.  For instance
3202   # both Tru64's cc and ICC support -MD to output dependencies as a
3203   # side effect of compilation, but ICC will put the dependencies in
3204   # the current directory while Tru64 will put them in the object
3205   # directory.
3206   mkdir sub
3207
3208   am_cv_CC_dependencies_compiler_type=none
3209   if test "$am_compiler_list" = ""; then
3210      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3211   fi
3212   for depmode in $am_compiler_list; do
3213     # Setup a source with many dependencies, because some compilers
3214     # like to wrap large dependency lists on column 80 (with \), and
3215     # we should not choose a depcomp mode which is confused by this.
3216     #
3217     # We need to recreate these files for each test, as the compiler may
3218     # overwrite some of them when testing with obscure command lines.
3219     # This happens at least with the AIX C compiler.
3220     : > sub/conftest.c
3221     for i in 1 2 3 4 5 6; do
3222       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3223       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3224       # Solaris 8's {/usr,}/bin/sh.
3225       touch sub/conftst$i.h
3226     done
3227     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3228
3229     case $depmode in
3230     nosideeffect)
3231       # after this tag, mechanisms are not by side-effect, so they'll
3232       # only be used when explicitly requested
3233       if test "x$enable_dependency_tracking" = xyes; then
3234         continue
3235       else
3236         break
3237       fi
3238       ;;
3239     none) break ;;
3240     esac
3241     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3242     # mode.  It turns out that the SunPro C++ compiler does not properly
3243     # handle `-M -o', and we need to detect this.
3244     if depmode=$depmode \
3245        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3246        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3247        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3248          >/dev/null 2>conftest.err &&
3249        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3250        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3251        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3252       # icc doesn't choke on unknown options, it will just issue warnings
3253       # (even with -Werror).  So we grep stderr for any message
3254       # that says an option was ignored.
3255       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3256         am_cv_CC_dependencies_compiler_type=$depmode
3257         break
3258       fi
3259     fi
3260   done
3261
3262   cd ..
3263   rm -rf conftest.dir
3264 else
3265   am_cv_CC_dependencies_compiler_type=none
3266 fi
3267
3268 fi
3269 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3270 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3271 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3272
3273
3274
3275 if
3276   test "x$enable_dependency_tracking" != xno \
3277   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3278   am__fastdepCC_TRUE=
3279   am__fastdepCC_FALSE='#'
3280 else
3281   am__fastdepCC_TRUE='#'
3282   am__fastdepCC_FALSE=
3283 fi
3284
3285
3286
3287 ac_ext=c
3288 ac_cpp='$CPP $CPPFLAGS'
3289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3292 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3293 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3294 # On Suns, sometimes $CPP names a directory.
3295 if test -n "$CPP" && test -d "$CPP"; then
3296   CPP=
3297 fi
3298 if test -z "$CPP"; then
3299   if test "${ac_cv_prog_CPP+set}" = set; then
3300   echo $ECHO_N "(cached) $ECHO_C" >&6
3301 else
3302       # Double quotes because CPP needs to be expanded
3303     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3304     do
3305       ac_preproc_ok=false
3306 for ac_c_preproc_warn_flag in '' yes
3307 do
3308   # Use a header file that comes with gcc, so configuring glibc
3309   # with a fresh cross-compiler works.
3310   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3311   # <limits.h> exists even on freestanding compilers.
3312   # On the NeXT, cc -E runs the code through the compiler's parser,
3313   # not just through cpp. "Syntax error" is here to catch this case.
3314   cat >conftest.$ac_ext <<_ACEOF
3315 /* confdefs.h.  */
3316 _ACEOF
3317 cat confdefs.h >>conftest.$ac_ext
3318 cat >>conftest.$ac_ext <<_ACEOF
3319 /* end confdefs.h.  */
3320 #ifdef __STDC__
3321 # include <limits.h>
3322 #else
3323 # include <assert.h>
3324 #endif
3325                      Syntax error
3326 _ACEOF
3327 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3328   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3329   ac_status=$?
3330   grep -v '^ *+' conftest.er1 >conftest.err
3331   rm -f conftest.er1
3332   cat conftest.err >&5
3333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334   (exit $ac_status); } >/dev/null; then
3335   if test -s conftest.err; then
3336     ac_cpp_err=$ac_c_preproc_warn_flag
3337     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3338   else
3339     ac_cpp_err=
3340   fi
3341 else
3342   ac_cpp_err=yes
3343 fi
3344 if test -z "$ac_cpp_err"; then
3345   :
3346 else
3347   echo "$as_me: failed program was:" >&5
3348 sed 's/^/| /' conftest.$ac_ext >&5
3349
3350   # Broken: fails on valid input.
3351 continue
3352 fi
3353 rm -f conftest.err conftest.$ac_ext
3354
3355   # OK, works on sane cases.  Now check whether non-existent headers
3356   # can be detected and how.
3357   cat >conftest.$ac_ext <<_ACEOF
3358 /* confdefs.h.  */
3359 _ACEOF
3360 cat confdefs.h >>conftest.$ac_ext
3361 cat >>conftest.$ac_ext <<_ACEOF
3362 /* end confdefs.h.  */
3363 #include <ac_nonexistent.h>
3364 _ACEOF
3365 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3366   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3367   ac_status=$?
3368   grep -v '^ *+' conftest.er1 >conftest.err
3369   rm -f conftest.er1
3370   cat conftest.err >&5
3371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372   (exit $ac_status); } >/dev/null; then
3373   if test -s conftest.err; then
3374     ac_cpp_err=$ac_c_preproc_warn_flag
3375     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3376   else
3377     ac_cpp_err=
3378   fi
3379 else
3380   ac_cpp_err=yes
3381 fi
3382 if test -z "$ac_cpp_err"; then
3383   # Broken: success on invalid input.
3384 continue
3385 else
3386   echo "$as_me: failed program was:" >&5
3387 sed 's/^/| /' conftest.$ac_ext >&5
3388
3389   # Passes both tests.
3390 ac_preproc_ok=:
3391 break
3392 fi
3393 rm -f conftest.err conftest.$ac_ext
3394
3395 done
3396 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3397 rm -f conftest.err conftest.$ac_ext
3398 if $ac_preproc_ok; then
3399   break
3400 fi
3401
3402     done
3403     ac_cv_prog_CPP=$CPP
3404
3405 fi
3406   CPP=$ac_cv_prog_CPP
3407 else
3408   ac_cv_prog_CPP=$CPP
3409 fi
3410 echo "$as_me:$LINENO: result: $CPP" >&5
3411 echo "${ECHO_T}$CPP" >&6
3412 ac_preproc_ok=false
3413 for ac_c_preproc_warn_flag in '' yes
3414 do
3415   # Use a header file that comes with gcc, so configuring glibc
3416   # with a fresh cross-compiler works.
3417   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3418   # <limits.h> exists even on freestanding compilers.
3419   # On the NeXT, cc -E runs the code through the compiler's parser,
3420   # not just through cpp. "Syntax error" is here to catch this case.
3421   cat >conftest.$ac_ext <<_ACEOF
3422 /* confdefs.h.  */
3423 _ACEOF
3424 cat confdefs.h >>conftest.$ac_ext
3425 cat >>conftest.$ac_ext <<_ACEOF
3426 /* end confdefs.h.  */
3427 #ifdef __STDC__
3428 # include <limits.h>
3429 #else
3430 # include <assert.h>
3431 #endif
3432                      Syntax error
3433 _ACEOF
3434 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3435   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3436   ac_status=$?
3437   grep -v '^ *+' conftest.er1 >conftest.err
3438   rm -f conftest.er1
3439   cat conftest.err >&5
3440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441   (exit $ac_status); } >/dev/null; then
3442   if test -s conftest.err; then
3443     ac_cpp_err=$ac_c_preproc_warn_flag
3444     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3445   else
3446     ac_cpp_err=
3447   fi
3448 else
3449   ac_cpp_err=yes
3450 fi
3451 if test -z "$ac_cpp_err"; then
3452   :
3453 else
3454   echo "$as_me: failed program was:" >&5
3455 sed 's/^/| /' conftest.$ac_ext >&5
3456
3457   # Broken: fails on valid input.
3458 continue
3459 fi
3460 rm -f conftest.err conftest.$ac_ext
3461
3462   # OK, works on sane cases.  Now check whether non-existent headers
3463   # can be detected and how.
3464   cat >conftest.$ac_ext <<_ACEOF
3465 /* confdefs.h.  */
3466 _ACEOF
3467 cat confdefs.h >>conftest.$ac_ext
3468 cat >>conftest.$ac_ext <<_ACEOF
3469 /* end confdefs.h.  */
3470 #include <ac_nonexistent.h>
3471 _ACEOF
3472 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3473   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3474   ac_status=$?
3475   grep -v '^ *+' conftest.er1 >conftest.err
3476   rm -f conftest.er1
3477   cat conftest.err >&5
3478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479   (exit $ac_status); } >/dev/null; then
3480   if test -s conftest.err; then
3481     ac_cpp_err=$ac_c_preproc_warn_flag
3482     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3483   else
3484     ac_cpp_err=
3485   fi
3486 else
3487   ac_cpp_err=yes
3488 fi
3489 if test -z "$ac_cpp_err"; then
3490   # Broken: success on invalid input.
3491 continue
3492 else
3493   echo "$as_me: failed program was:" >&5
3494 sed 's/^/| /' conftest.$ac_ext >&5
3495
3496   # Passes both tests.
3497 ac_preproc_ok=:
3498 break
3499 fi
3500 rm -f conftest.err conftest.$ac_ext
3501
3502 done
3503 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3504 rm -f conftest.err conftest.$ac_ext
3505 if $ac_preproc_ok; then
3506   :
3507 else
3508   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3509 See \`config.log' for more details." >&5
3510 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3511 See \`config.log' for more details." >&2;}
3512    { (exit 1); exit 1; }; }
3513 fi
3514
3515 ac_ext=c
3516 ac_cpp='$CPP $CPPFLAGS'
3517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3520
3521
3522 echo "$as_me:$LINENO: checking for egrep" >&5
3523 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3524 if test "${ac_cv_prog_egrep+set}" = set; then
3525   echo $ECHO_N "(cached) $ECHO_C" >&6
3526 else
3527   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3528     then ac_cv_prog_egrep='grep -E'
3529     else ac_cv_prog_egrep='egrep'
3530     fi
3531 fi
3532 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3533 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3534  EGREP=$ac_cv_prog_egrep
3535
3536
3537
3538 echo "$as_me:$LINENO: checking for AIX" >&5
3539 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3540 cat >conftest.$ac_ext <<_ACEOF
3541 /* confdefs.h.  */
3542 _ACEOF
3543 cat confdefs.h >>conftest.$ac_ext
3544 cat >>conftest.$ac_ext <<_ACEOF
3545 /* end confdefs.h.  */
3546 #ifdef _AIX
3547   yes
3548 #endif
3549
3550 _ACEOF
3551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3552   $EGREP "yes" >/dev/null 2>&1; then
3553   echo "$as_me:$LINENO: result: yes" >&5
3554 echo "${ECHO_T}yes" >&6
3555 cat >>confdefs.h <<\_ACEOF
3556 #define _ALL_SOURCE 1
3557 _ACEOF
3558
3559 else
3560   echo "$as_me:$LINENO: result: no" >&5
3561 echo "${ECHO_T}no" >&6
3562 fi
3563 rm -f conftest*
3564
3565
3566
3567 ac_ext=c
3568 ac_cpp='$CPP $CPPFLAGS'
3569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3572 if test -n "$ac_tool_prefix"; then
3573   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3574 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3575 echo "$as_me:$LINENO: checking for $ac_word" >&5
3576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3577 if test "${ac_cv_prog_CC+set}" = set; then
3578   echo $ECHO_N "(cached) $ECHO_C" >&6
3579 else
3580   if test -n "$CC"; then
3581   ac_cv_prog_CC="$CC" # Let the user override the test.
3582 else
3583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3584 for as_dir in $PATH
3585 do
3586   IFS=$as_save_IFS
3587   test -z "$as_dir" && as_dir=.
3588   for ac_exec_ext in '' $ac_executable_extensions; do
3589   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3590     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3591     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3592     break 2
3593   fi
3594 done
3595 done
3596
3597 fi
3598 fi
3599 CC=$ac_cv_prog_CC
3600 if test -n "$CC"; then
3601   echo "$as_me:$LINENO: result: $CC" >&5
3602 echo "${ECHO_T}$CC" >&6
3603 else
3604   echo "$as_me:$LINENO: result: no" >&5
3605 echo "${ECHO_T}no" >&6
3606 fi
3607
3608 fi
3609 if test -z "$ac_cv_prog_CC"; then
3610   ac_ct_CC=$CC
3611   # Extract the first word of "gcc", so it can be a program name with args.
3612 set dummy gcc; ac_word=$2
3613 echo "$as_me:$LINENO: checking for $ac_word" >&5
3614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3615 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3616   echo $ECHO_N "(cached) $ECHO_C" >&6
3617 else
3618   if test -n "$ac_ct_CC"; then
3619   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3620 else
3621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3622 for as_dir in $PATH
3623 do
3624   IFS=$as_save_IFS
3625   test -z "$as_dir" && as_dir=.
3626   for ac_exec_ext in '' $ac_executable_extensions; do
3627   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3628     ac_cv_prog_ac_ct_CC="gcc"
3629     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3630     break 2
3631   fi
3632 done
3633 done
3634
3635 fi
3636 fi
3637 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3638 if test -n "$ac_ct_CC"; then
3639   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3640 echo "${ECHO_T}$ac_ct_CC" >&6
3641 else
3642   echo "$as_me:$LINENO: result: no" >&5
3643 echo "${ECHO_T}no" >&6
3644 fi
3645
3646   CC=$ac_ct_CC
3647 else
3648   CC="$ac_cv_prog_CC"
3649 fi
3650
3651 if test -z "$CC"; then
3652   if test -n "$ac_tool_prefix"; then
3653   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3654 set dummy ${ac_tool_prefix}cc; ac_word=$2
3655 echo "$as_me:$LINENO: checking for $ac_word" >&5
3656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3657 if test "${ac_cv_prog_CC+set}" = set; then
3658   echo $ECHO_N "(cached) $ECHO_C" >&6
3659 else
3660   if test -n "$CC"; then
3661   ac_cv_prog_CC="$CC" # Let the user override the test.
3662 else
3663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3664 for as_dir in $PATH
3665 do
3666   IFS=$as_save_IFS
3667   test -z "$as_dir" && as_dir=.
3668   for ac_exec_ext in '' $ac_executable_extensions; do
3669   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3670     ac_cv_prog_CC="${ac_tool_prefix}cc"
3671     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3672     break 2
3673   fi
3674 done
3675 done
3676
3677 fi
3678 fi
3679 CC=$ac_cv_prog_CC
3680 if test -n "$CC"; then
3681   echo "$as_me:$LINENO: result: $CC" >&5
3682 echo "${ECHO_T}$CC" >&6
3683 else
3684   echo "$as_me:$LINENO: result: no" >&5
3685 echo "${ECHO_T}no" >&6
3686 fi
3687
3688 fi
3689 if test -z "$ac_cv_prog_CC"; then
3690   ac_ct_CC=$CC
3691   # Extract the first word of "cc", so it can be a program name with args.
3692 set dummy cc; ac_word=$2
3693 echo "$as_me:$LINENO: checking for $ac_word" >&5
3694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3695 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3696   echo $ECHO_N "(cached) $ECHO_C" >&6
3697 else
3698   if test -n "$ac_ct_CC"; then
3699   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3700 else
3701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702 for as_dir in $PATH
3703 do
3704   IFS=$as_save_IFS
3705   test -z "$as_dir" && as_dir=.
3706   for ac_exec_ext in '' $ac_executable_extensions; do
3707   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3708     ac_cv_prog_ac_ct_CC="cc"
3709     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3710     break 2
3711   fi
3712 done
3713 done
3714
3715 fi
3716 fi
3717 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3718 if test -n "$ac_ct_CC"; then
3719   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3720 echo "${ECHO_T}$ac_ct_CC" >&6
3721 else
3722   echo "$as_me:$LINENO: result: no" >&5
3723 echo "${ECHO_T}no" >&6
3724 fi
3725
3726   CC=$ac_ct_CC
3727 else
3728   CC="$ac_cv_prog_CC"
3729 fi
3730
3731 fi
3732 if test -z "$CC"; then
3733   # Extract the first word of "cc", so it can be a program name with args.
3734 set dummy cc; ac_word=$2
3735 echo "$as_me:$LINENO: checking for $ac_word" >&5
3736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3737 if test "${ac_cv_prog_CC+set}" = set; then
3738   echo $ECHO_N "(cached) $ECHO_C" >&6
3739 else
3740   if test -n "$CC"; then
3741   ac_cv_prog_CC="$CC" # Let the user override the test.
3742 else
3743   ac_prog_rejected=no
3744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745 for as_dir in $PATH
3746 do
3747   IFS=$as_save_IFS
3748   test -z "$as_dir" && as_dir=.
3749   for ac_exec_ext in '' $ac_executable_extensions; do
3750   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3751     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3752        ac_prog_rejected=yes
3753        continue
3754      fi
3755     ac_cv_prog_CC="cc"
3756     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3757     break 2
3758   fi
3759 done
3760 done
3761
3762 if test $ac_prog_rejected = yes; then
3763   # We found a bogon in the path, so make sure we never use it.
3764   set dummy $ac_cv_prog_CC
3765   shift
3766   if test $# != 0; then
3767     # We chose a different compiler from the bogus one.
3768     # However, it has the same basename, so the bogon will be chosen
3769     # first if we set CC to just the basename; use the full file name.
3770     shift
3771     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3772   fi
3773 fi
3774 fi
3775 fi
3776 CC=$ac_cv_prog_CC
3777 if test -n "$CC"; then
3778   echo "$as_me:$LINENO: result: $CC" >&5
3779 echo "${ECHO_T}$CC" >&6
3780 else
3781   echo "$as_me:$LINENO: result: no" >&5
3782 echo "${ECHO_T}no" >&6
3783 fi
3784
3785 fi
3786 if test -z "$CC"; then
3787   if test -n "$ac_tool_prefix"; then
3788   for ac_prog in cl
3789   do
3790     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3791 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3792 echo "$as_me:$LINENO: checking for $ac_word" >&5
3793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3794 if test "${ac_cv_prog_CC+set}" = set; then
3795   echo $ECHO_N "(cached) $ECHO_C" >&6
3796 else
3797   if test -n "$CC"; then
3798   ac_cv_prog_CC="$CC" # Let the user override the test.
3799 else
3800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3801 for as_dir in $PATH
3802 do
3803   IFS=$as_save_IFS
3804   test -z "$as_dir" && as_dir=.
3805   for ac_exec_ext in '' $ac_executable_extensions; do
3806   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3807     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3808     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3809     break 2
3810   fi
3811 done
3812 done
3813
3814 fi
3815 fi
3816 CC=$ac_cv_prog_CC
3817 if test -n "$CC"; then
3818   echo "$as_me:$LINENO: result: $CC" >&5
3819 echo "${ECHO_T}$CC" >&6
3820 else
3821   echo "$as_me:$LINENO: result: no" >&5
3822 echo "${ECHO_T}no" >&6
3823 fi
3824
3825     test -n "$CC" && break
3826   done
3827 fi
3828 if test -z "$CC"; then
3829   ac_ct_CC=$CC
3830   for ac_prog in cl
3831 do
3832   # Extract the first word of "$ac_prog", so it can be a program name with args.
3833 set dummy $ac_prog; ac_word=$2
3834 echo "$as_me:$LINENO: checking for $ac_word" >&5
3835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3836 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3837   echo $ECHO_N "(cached) $ECHO_C" >&6
3838 else
3839   if test -n "$ac_ct_CC"; then
3840   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3841 else
3842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3843 for as_dir in $PATH
3844 do
3845   IFS=$as_save_IFS
3846   test -z "$as_dir" && as_dir=.
3847   for ac_exec_ext in '' $ac_executable_extensions; do
3848   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3849     ac_cv_prog_ac_ct_CC="$ac_prog"
3850     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3851     break 2
3852   fi
3853 done
3854 done
3855
3856 fi
3857 fi
3858 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3859 if test -n "$ac_ct_CC"; then
3860   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3861 echo "${ECHO_T}$ac_ct_CC" >&6
3862 else
3863   echo "$as_me:$LINENO: result: no" >&5
3864 echo "${ECHO_T}no" >&6
3865 fi
3866
3867   test -n "$ac_ct_CC" && break
3868 done
3869
3870   CC=$ac_ct_CC
3871 fi
3872
3873 fi
3874
3875
3876 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3877 See \`config.log' for more details." >&5
3878 echo "$as_me: error: no acceptable C compiler found in \$PATH
3879 See \`config.log' for more details." >&2;}
3880    { (exit 1); exit 1; }; }
3881
3882 # Provide some information about the compiler.
3883 echo "$as_me:$LINENO:" \
3884      "checking for C compiler version" >&5
3885 ac_compiler=`set X $ac_compile; echo $2`
3886 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3887   (eval $ac_compiler --version </dev/null >&5) 2>&5
3888   ac_status=$?
3889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890   (exit $ac_status); }
3891 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3892   (eval $ac_compiler -v </dev/null >&5) 2>&5
3893   ac_status=$?
3894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895   (exit $ac_status); }
3896 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3897   (eval $ac_compiler -V </dev/null >&5) 2>&5
3898   ac_status=$?
3899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900   (exit $ac_status); }
3901
3902 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3903 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3904 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3905   echo $ECHO_N "(cached) $ECHO_C" >&6
3906 else
3907   cat >conftest.$ac_ext <<_ACEOF
3908 /* confdefs.h.  */
3909 _ACEOF
3910 cat confdefs.h >>conftest.$ac_ext
3911 cat >>conftest.$ac_ext <<_ACEOF
3912 /* end confdefs.h.  */
3913
3914 int
3915 main ()
3916 {
3917 #ifndef __GNUC__
3918        choke me
3919 #endif
3920
3921   ;
3922   return 0;
3923 }
3924 _ACEOF
3925 rm -f conftest.$ac_objext
3926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3927   (eval $ac_compile) 2>conftest.er1
3928   ac_status=$?
3929   grep -v '^ *+' conftest.er1 >conftest.err
3930   rm -f conftest.er1
3931   cat conftest.err >&5
3932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933   (exit $ac_status); } &&
3934          { ac_try='test -z "$ac_c_werror_flag"
3935                          || test ! -s conftest.err'
3936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3937   (eval $ac_try) 2>&5
3938   ac_status=$?
3939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940   (exit $ac_status); }; } &&
3941          { ac_try='test -s conftest.$ac_objext'
3942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3943   (eval $ac_try) 2>&5
3944   ac_status=$?
3945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946   (exit $ac_status); }; }; then
3947   ac_compiler_gnu=yes
3948 else
3949   echo "$as_me: failed program was:" >&5
3950 sed 's/^/| /' conftest.$ac_ext >&5
3951
3952 ac_compiler_gnu=no
3953 fi
3954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3955 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3956
3957 fi
3958 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3959 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3960 GCC=`test $ac_compiler_gnu = yes && echo yes`
3961 ac_test_CFLAGS=${CFLAGS+set}
3962 ac_save_CFLAGS=$CFLAGS
3963 CFLAGS="-g"
3964 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3965 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3966 if test "${ac_cv_prog_cc_g+set}" = set; then
3967   echo $ECHO_N "(cached) $ECHO_C" >&6
3968 else
3969   cat >conftest.$ac_ext <<_ACEOF
3970 /* confdefs.h.  */
3971 _ACEOF
3972 cat confdefs.h >>conftest.$ac_ext
3973 cat >>conftest.$ac_ext <<_ACEOF
3974 /* end confdefs.h.  */
3975
3976 int
3977 main ()
3978 {
3979
3980   ;
3981   return 0;
3982 }
3983 _ACEOF
3984 rm -f conftest.$ac_objext
3985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3986   (eval $ac_compile) 2>conftest.er1
3987   ac_status=$?
3988   grep -v '^ *+' conftest.er1 >conftest.err
3989   rm -f conftest.er1
3990   cat conftest.err >&5
3991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992   (exit $ac_status); } &&
3993          { ac_try='test -z "$ac_c_werror_flag"
3994                          || test ! -s conftest.err'
3995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3996   (eval $ac_try) 2>&5
3997   ac_status=$?
3998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999   (exit $ac_status); }; } &&
4000          { ac_try='test -s conftest.$ac_objext'
4001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4002   (eval $ac_try) 2>&5
4003   ac_status=$?
4004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005   (exit $ac_status); }; }; then
4006   ac_cv_prog_cc_g=yes
4007 else
4008   echo "$as_me: failed program was:" >&5
4009 sed 's/^/| /' conftest.$ac_ext >&5
4010
4011 ac_cv_prog_cc_g=no
4012 fi
4013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4014 fi
4015 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4016 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4017 if test "$ac_test_CFLAGS" = set; then
4018   CFLAGS=$ac_save_CFLAGS
4019 elif test $ac_cv_prog_cc_g = yes; then
4020   if test "$GCC" = yes; then
4021     CFLAGS="-g -O2"
4022   else
4023     CFLAGS="-g"
4024   fi
4025 else
4026   if test "$GCC" = yes; then
4027     CFLAGS="-O2"
4028   else
4029     CFLAGS=
4030   fi
4031 fi
4032 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4033 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4034 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4035   echo $ECHO_N "(cached) $ECHO_C" >&6
4036 else
4037   ac_cv_prog_cc_stdc=no
4038 ac_save_CC=$CC
4039 cat >conftest.$ac_ext <<_ACEOF
4040 /* confdefs.h.  */
4041 _ACEOF
4042 cat confdefs.h >>conftest.$ac_ext
4043 cat >>conftest.$ac_ext <<_ACEOF
4044 /* end confdefs.h.  */
4045 #include <stdarg.h>
4046 #include <stdio.h>
4047 #include <sys/types.h>
4048 #include <sys/stat.h>
4049 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4050 struct buf { int x; };
4051 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4052 static char *e (p, i)
4053      char **p;
4054      int i;
4055 {
4056   return p[i];
4057 }
4058 static char *f (char * (*g) (char **, int), char **p, ...)
4059 {
4060   char *s;
4061   va_list v;
4062   va_start (v,p);
4063   s = g (p, va_arg (v,int));
4064   va_end (v);
4065   return s;
4066 }
4067
4068 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4069    function prototypes and stuff, but not '\xHH' hex character constants.
4070    These don't provoke an error unfortunately, instead are silently treated
4071    as 'x'.  The following induces an error, until -std1 is added to get
4072    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4073    array size at least.  It's necessary to write '\x00'==0 to get something
4074    that's true only with -std1.  */
4075 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4076
4077 int test (int i, double x);
4078 struct s1 {int (*f) (int a);};
4079 struct s2 {int (*f) (double a);};
4080 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4081 int argc;
4082 char **argv;
4083 int
4084 main ()
4085 {
4086 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4087   ;
4088   return 0;
4089 }
4090 _ACEOF
4091 # Don't try gcc -ansi; that turns off useful extensions and
4092 # breaks some systems' header files.
4093 # AIX                   -qlanglvl=ansi
4094 # Ultrix and OSF/1      -std1
4095 # HP-UX 10.20 and later -Ae
4096 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4097 # SVR4                  -Xc -D__EXTENSIONS__
4098 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4099 do
4100   CC="$ac_save_CC $ac_arg"
4101   rm -f conftest.$ac_objext
4102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4103   (eval $ac_compile) 2>conftest.er1
4104   ac_status=$?
4105   grep -v '^ *+' conftest.er1 >conftest.err
4106   rm -f conftest.er1
4107   cat conftest.err >&5
4108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109   (exit $ac_status); } &&
4110          { ac_try='test -z "$ac_c_werror_flag"
4111                          || test ! -s conftest.err'
4112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4113   (eval $ac_try) 2>&5
4114   ac_status=$?
4115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116   (exit $ac_status); }; } &&
4117          { ac_try='test -s conftest.$ac_objext'
4118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4119   (eval $ac_try) 2>&5
4120   ac_status=$?
4121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122   (exit $ac_status); }; }; then
4123   ac_cv_prog_cc_stdc=$ac_arg
4124 break
4125 else
4126   echo "$as_me: failed program was:" >&5
4127 sed 's/^/| /' conftest.$ac_ext >&5
4128
4129 fi
4130 rm -f conftest.err conftest.$ac_objext
4131 done
4132 rm -f conftest.$ac_ext conftest.$ac_objext
4133 CC=$ac_save_CC
4134
4135 fi
4136
4137 case "x$ac_cv_prog_cc_stdc" in
4138   x|xno)
4139     echo "$as_me:$LINENO: result: none needed" >&5
4140 echo "${ECHO_T}none needed" >&6 ;;
4141   *)
4142     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4143 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4144     CC="$CC $ac_cv_prog_cc_stdc" ;;
4145 esac
4146
4147 # Some people use a C++ compiler to compile C.  Since we use `exit',
4148 # in C++ we need to declare it.  In case someone uses the same compiler
4149 # for both compiling C and C++ we need to have the C++ compiler decide
4150 # the declaration of exit, since it's the most demanding environment.
4151 cat >conftest.$ac_ext <<_ACEOF
4152 #ifndef __cplusplus
4153   choke me
4154 #endif
4155 _ACEOF
4156 rm -f conftest.$ac_objext
4157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4158   (eval $ac_compile) 2>conftest.er1
4159   ac_status=$?
4160   grep -v '^ *+' conftest.er1 >conftest.err
4161   rm -f conftest.er1
4162   cat conftest.err >&5
4163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164   (exit $ac_status); } &&
4165          { ac_try='test -z "$ac_c_werror_flag"
4166                          || test ! -s conftest.err'
4167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4168   (eval $ac_try) 2>&5
4169   ac_status=$?
4170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171   (exit $ac_status); }; } &&
4172          { ac_try='test -s conftest.$ac_objext'
4173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4174   (eval $ac_try) 2>&5
4175   ac_status=$?
4176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177   (exit $ac_status); }; }; then
4178   for ac_declaration in \
4179    '' \
4180    'extern "C" void std::exit (int) throw (); using std::exit;' \
4181    'extern "C" void std::exit (int); using std::exit;' \
4182    'extern "C" void exit (int) throw ();' \
4183    'extern "C" void exit (int);' \
4184    'void exit (int);'
4185 do
4186   cat >conftest.$ac_ext <<_ACEOF
4187 /* confdefs.h.  */
4188 _ACEOF
4189 cat confdefs.h >>conftest.$ac_ext
4190 cat >>conftest.$ac_ext <<_ACEOF
4191 /* end confdefs.h.  */
4192 $ac_declaration
4193 #include <stdlib.h>
4194 int
4195 main ()
4196 {
4197 exit (42);
4198   ;
4199   return 0;
4200 }
4201 _ACEOF
4202 rm -f conftest.$ac_objext
4203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4204   (eval $ac_compile) 2>conftest.er1
4205   ac_status=$?
4206   grep -v '^ *+' conftest.er1 >conftest.err
4207   rm -f conftest.er1
4208   cat conftest.err >&5
4209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210   (exit $ac_status); } &&
4211          { ac_try='test -z "$ac_c_werror_flag"
4212                          || test ! -s conftest.err'
4213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4214   (eval $ac_try) 2>&5
4215   ac_status=$?
4216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217   (exit $ac_status); }; } &&
4218          { ac_try='test -s conftest.$ac_objext'
4219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4220   (eval $ac_try) 2>&5
4221   ac_status=$?
4222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223   (exit $ac_status); }; }; then
4224   :
4225 else
4226   echo "$as_me: failed program was:" >&5
4227 sed 's/^/| /' conftest.$ac_ext >&5
4228
4229 continue
4230 fi
4231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4232   cat >conftest.$ac_ext <<_ACEOF
4233 /* confdefs.h.  */
4234 _ACEOF
4235 cat confdefs.h >>conftest.$ac_ext
4236 cat >>conftest.$ac_ext <<_ACEOF
4237 /* end confdefs.h.  */
4238 $ac_declaration
4239 int
4240 main ()
4241 {
4242 exit (42);
4243   ;
4244   return 0;
4245 }
4246 _ACEOF
4247 rm -f conftest.$ac_objext
4248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4249   (eval $ac_compile) 2>conftest.er1
4250   ac_status=$?
4251   grep -v '^ *+' conftest.er1 >conftest.err
4252   rm -f conftest.er1
4253   cat conftest.err >&5
4254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255   (exit $ac_status); } &&
4256          { ac_try='test -z "$ac_c_werror_flag"
4257                          || test ! -s conftest.err'
4258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4259   (eval $ac_try) 2>&5
4260   ac_status=$?
4261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262   (exit $ac_status); }; } &&
4263          { ac_try='test -s conftest.$ac_objext'
4264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4265   (eval $ac_try) 2>&5
4266   ac_status=$?
4267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268   (exit $ac_status); }; }; then
4269   break
4270 else
4271   echo "$as_me: failed program was:" >&5
4272 sed 's/^/| /' conftest.$ac_ext >&5
4273
4274 fi
4275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4276 done
4277 rm -f conftest*
4278 if test -n "$ac_declaration"; then
4279   echo '#ifdef __cplusplus' >>confdefs.h
4280   echo $ac_declaration      >>confdefs.h
4281   echo '#endif'             >>confdefs.h
4282 fi
4283
4284 else
4285   echo "$as_me: failed program was:" >&5
4286 sed 's/^/| /' conftest.$ac_ext >&5
4287
4288 fi
4289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4290 ac_ext=c
4291 ac_cpp='$CPP $CPPFLAGS'
4292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4295
4296 depcc="$CC"   am_compiler_list=
4297
4298 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4299 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4300 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4301   echo $ECHO_N "(cached) $ECHO_C" >&6
4302 else
4303   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4304   # We make a subdir and do the tests there.  Otherwise we can end up
4305   # making bogus files that we don't know about and never remove.  For
4306   # instance it was reported that on HP-UX the gcc test will end up
4307   # making a dummy file named `D' -- because `-MD' means `put the output
4308   # in D'.
4309   mkdir conftest.dir
4310   # Copy depcomp to subdir because otherwise we won't find it if we're
4311   # using a relative directory.
4312   cp "$am_depcomp" conftest.dir
4313   cd conftest.dir
4314   # We will build objects and dependencies in a subdirectory because
4315   # it helps to detect inapplicable dependency modes.  For instance
4316   # both Tru64's cc and ICC support -MD to output dependencies as a
4317   # side effect of compilation, but ICC will put the dependencies in
4318   # the current directory while Tru64 will put them in the object
4319   # directory.
4320   mkdir sub
4321
4322   am_cv_CC_dependencies_compiler_type=none
4323   if test "$am_compiler_list" = ""; then
4324      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4325   fi
4326   for depmode in $am_compiler_list; do
4327     # Setup a source with many dependencies, because some compilers
4328     # like to wrap large dependency lists on column 80 (with \), and
4329     # we should not choose a depcomp mode which is confused by this.
4330     #
4331     # We need to recreate these files for each test, as the compiler may
4332     # overwrite some of them when testing with obscure command lines.
4333     # This happens at least with the AIX C compiler.
4334     : > sub/conftest.c
4335     for i in 1 2 3 4 5 6; do
4336       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4337       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4338       # Solaris 8's {/usr,}/bin/sh.
4339       touch sub/conftst$i.h
4340     done
4341     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4342
4343     case $depmode in
4344     nosideeffect)
4345       # after this tag, mechanisms are not by side-effect, so they'll
4346       # only be used when explicitly requested
4347       if test "x$enable_dependency_tracking" = xyes; then
4348         continue
4349       else
4350         break
4351       fi
4352       ;;
4353     none) break ;;
4354     esac
4355     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4356     # mode.  It turns out that the SunPro C++ compiler does not properly
4357     # handle `-M -o', and we need to detect this.
4358     if depmode=$depmode \
4359        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4360        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4361        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4362          >/dev/null 2>conftest.err &&
4363        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4364        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4365        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4366       # icc doesn't choke on unknown options, it will just issue warnings
4367       # (even with -Werror).  So we grep stderr for any message
4368       # that says an option was ignored.
4369       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4370         am_cv_CC_dependencies_compiler_type=$depmode
4371         break
4372       fi
4373     fi
4374   done
4375
4376   cd ..
4377   rm -rf conftest.dir
4378 else
4379   am_cv_CC_dependencies_compiler_type=none
4380 fi
4381
4382 fi
4383 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4384 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4385 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4386
4387
4388
4389 if
4390   test "x$enable_dependency_tracking" != xno \
4391   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4392   am__fastdepCC_TRUE=
4393   am__fastdepCC_FALSE='#'
4394 else
4395   am__fastdepCC_TRUE='#'
4396   am__fastdepCC_FALSE=
4397 fi
4398
4399
4400
4401 # Check whether --enable-largefile or --disable-largefile was given.
4402 if test "${enable_largefile+set}" = set; then
4403   enableval="$enable_largefile"
4404
4405 fi;
4406 if test "$enable_largefile" != no; then
4407
4408   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4409 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4410 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4411   echo $ECHO_N "(cached) $ECHO_C" >&6
4412 else
4413   ac_cv_sys_largefile_CC=no
4414      if test "$GCC" != yes; then
4415        ac_save_CC=$CC
4416        while :; do
4417          # IRIX 6.2 and later do not support large files by default,
4418          # so use the C compiler's -n32 option if that helps.
4419          cat >conftest.$ac_ext <<_ACEOF
4420 /* confdefs.h.  */
4421 _ACEOF
4422 cat confdefs.h >>conftest.$ac_ext
4423 cat >>conftest.$ac_ext <<_ACEOF
4424 /* end confdefs.h.  */
4425 #include <sys/types.h>
4426  /* Check that off_t can represent 2**63 - 1 correctly.
4427     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4428     since some C++ compilers masquerading as C compilers
4429     incorrectly reject 9223372036854775807.  */
4430 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4431   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4432                        && LARGE_OFF_T % 2147483647 == 1)
4433                       ? 1 : -1];
4434 int
4435 main ()
4436 {
4437
4438   ;
4439   return 0;
4440 }
4441 _ACEOF
4442          rm -f conftest.$ac_objext
4443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4444   (eval $ac_compile) 2>conftest.er1
4445   ac_status=$?
4446   grep -v '^ *+' conftest.er1 >conftest.err
4447   rm -f conftest.er1
4448   cat conftest.err >&5
4449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450   (exit $ac_status); } &&
4451          { ac_try='test -z "$ac_c_werror_flag"
4452                          || test ! -s conftest.err'
4453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4454   (eval $ac_try) 2>&5
4455   ac_status=$?
4456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457   (exit $ac_status); }; } &&
4458          { ac_try='test -s conftest.$ac_objext'
4459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4460   (eval $ac_try) 2>&5
4461   ac_status=$?
4462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463   (exit $ac_status); }; }; then
4464   break
4465 else
4466   echo "$as_me: failed program was:" >&5
4467 sed 's/^/| /' conftest.$ac_ext >&5
4468
4469 fi
4470 rm -f conftest.err conftest.$ac_objext
4471          CC="$CC -n32"
4472          rm -f conftest.$ac_objext
4473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4474   (eval $ac_compile) 2>conftest.er1
4475   ac_status=$?
4476   grep -v '^ *+' conftest.er1 >conftest.err
4477   rm -f conftest.er1
4478   cat conftest.err >&5
4479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480   (exit $ac_status); } &&
4481          { ac_try='test -z "$ac_c_werror_flag"
4482                          || test ! -s conftest.err'
4483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4484   (eval $ac_try) 2>&5
4485   ac_status=$?
4486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487   (exit $ac_status); }; } &&
4488          { ac_try='test -s conftest.$ac_objext'
4489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4490   (eval $ac_try) 2>&5
4491   ac_status=$?
4492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493   (exit $ac_status); }; }; then
4494   ac_cv_sys_largefile_CC=' -n32'; break
4495 else
4496   echo "$as_me: failed program was:" >&5
4497 sed 's/^/| /' conftest.$ac_ext >&5
4498
4499 fi
4500 rm -f conftest.err conftest.$ac_objext
4501          break
4502        done
4503        CC=$ac_save_CC
4504        rm -f conftest.$ac_ext
4505     fi
4506 fi
4507 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4508 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4509   if test "$ac_cv_sys_largefile_CC" != no; then
4510     CC=$CC$ac_cv_sys_largefile_CC
4511   fi
4512
4513   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4514 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4515 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4516   echo $ECHO_N "(cached) $ECHO_C" >&6
4517 else
4518   while :; do
4519   ac_cv_sys_file_offset_bits=no
4520   cat >conftest.$ac_ext <<_ACEOF
4521 /* confdefs.h.  */
4522 _ACEOF
4523 cat confdefs.h >>conftest.$ac_ext
4524 cat >>conftest.$ac_ext <<_ACEOF
4525 /* end confdefs.h.  */
4526 #include <sys/types.h>
4527  /* Check that off_t can represent 2**63 - 1 correctly.
4528     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4529     since some C++ compilers masquerading as C compilers
4530     incorrectly reject 9223372036854775807.  */
4531 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4532   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4533                        && LARGE_OFF_T % 2147483647 == 1)
4534                       ? 1 : -1];
4535 int
4536 main ()
4537 {
4538
4539   ;
4540   return 0;
4541 }
4542 _ACEOF
4543 rm -f conftest.$ac_objext
4544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4545   (eval $ac_compile) 2>conftest.er1
4546   ac_status=$?
4547   grep -v '^ *+' conftest.er1 >conftest.err
4548   rm -f conftest.er1
4549   cat conftest.err >&5
4550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551   (exit $ac_status); } &&
4552          { ac_try='test -z "$ac_c_werror_flag"
4553                          || test ! -s conftest.err'
4554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4555   (eval $ac_try) 2>&5
4556   ac_status=$?
4557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558   (exit $ac_status); }; } &&
4559          { ac_try='test -s conftest.$ac_objext'
4560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4561   (eval $ac_try) 2>&5
4562   ac_status=$?
4563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564   (exit $ac_status); }; }; then
4565   break
4566 else
4567   echo "$as_me: failed program was:" >&5
4568 sed 's/^/| /' conftest.$ac_ext >&5
4569
4570 fi
4571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4572   cat >conftest.$ac_ext <<_ACEOF
4573 /* confdefs.h.  */
4574 _ACEOF
4575 cat confdefs.h >>conftest.$ac_ext
4576 cat >>conftest.$ac_ext <<_ACEOF
4577 /* end confdefs.h.  */
4578 #define _FILE_OFFSET_BITS 64
4579 #include <sys/types.h>
4580  /* Check that off_t can represent 2**63 - 1 correctly.
4581     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4582     since some C++ compilers masquerading as C compilers
4583     incorrectly reject 9223372036854775807.  */
4584 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4585   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4586                        && LARGE_OFF_T % 2147483647 == 1)
4587                       ? 1 : -1];
4588 int
4589 main ()
4590 {
4591
4592   ;
4593   return 0;
4594 }
4595 _ACEOF
4596 rm -f conftest.$ac_objext
4597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4598   (eval $ac_compile) 2>conftest.er1
4599   ac_status=$?
4600   grep -v '^ *+' conftest.er1 >conftest.err
4601   rm -f conftest.er1
4602   cat conftest.err >&5
4603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604   (exit $ac_status); } &&
4605          { ac_try='test -z "$ac_c_werror_flag"
4606                          || test ! -s conftest.err'
4607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4608   (eval $ac_try) 2>&5
4609   ac_status=$?
4610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611   (exit $ac_status); }; } &&
4612          { ac_try='test -s conftest.$ac_objext'
4613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4614   (eval $ac_try) 2>&5
4615   ac_status=$?
4616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617   (exit $ac_status); }; }; then
4618   ac_cv_sys_file_offset_bits=64; break
4619 else
4620   echo "$as_me: failed program was:" >&5
4621 sed 's/^/| /' conftest.$ac_ext >&5
4622
4623 fi
4624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4625   break
4626 done
4627 fi
4628 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4629 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4630 if test "$ac_cv_sys_file_offset_bits" != no; then
4631
4632 cat >>confdefs.h <<_ACEOF
4633 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4634 _ACEOF
4635
4636 fi
4637 rm -f conftest*
4638   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4639 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4640 if test "${ac_cv_sys_large_files+set}" = set; then
4641   echo $ECHO_N "(cached) $ECHO_C" >&6
4642 else
4643   while :; do
4644   ac_cv_sys_large_files=no
4645   cat >conftest.$ac_ext <<_ACEOF
4646 /* confdefs.h.  */
4647 _ACEOF
4648 cat confdefs.h >>conftest.$ac_ext
4649 cat >>conftest.$ac_ext <<_ACEOF
4650 /* end confdefs.h.  */
4651 #include <sys/types.h>
4652  /* Check that off_t can represent 2**63 - 1 correctly.
4653     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4654     since some C++ compilers masquerading as C compilers
4655     incorrectly reject 9223372036854775807.  */
4656 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4657   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4658                        && LARGE_OFF_T % 2147483647 == 1)
4659                       ? 1 : -1];
4660 int
4661 main ()
4662 {
4663
4664   ;
4665   return 0;
4666 }
4667 _ACEOF
4668 rm -f conftest.$ac_objext
4669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4670   (eval $ac_compile) 2>conftest.er1
4671   ac_status=$?
4672   grep -v '^ *+' conftest.er1 >conftest.err
4673   rm -f conftest.er1
4674   cat conftest.err >&5
4675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676   (exit $ac_status); } &&
4677          { ac_try='test -z "$ac_c_werror_flag"
4678                          || test ! -s conftest.err'
4679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4680   (eval $ac_try) 2>&5
4681   ac_status=$?
4682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683   (exit $ac_status); }; } &&
4684          { ac_try='test -s conftest.$ac_objext'
4685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4686   (eval $ac_try) 2>&5
4687   ac_status=$?
4688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689   (exit $ac_status); }; }; then
4690   break
4691 else
4692   echo "$as_me: failed program was:" >&5
4693 sed 's/^/| /' conftest.$ac_ext >&5
4694
4695 fi
4696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4697   cat >conftest.$ac_ext <<_ACEOF
4698 /* confdefs.h.  */
4699 _ACEOF
4700 cat confdefs.h >>conftest.$ac_ext
4701 cat >>conftest.$ac_ext <<_ACEOF
4702 /* end confdefs.h.  */
4703 #define _LARGE_FILES 1
4704 #include <sys/types.h>
4705  /* Check that off_t can represent 2**63 - 1 correctly.
4706     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4707     since some C++ compilers masquerading as C compilers
4708     incorrectly reject 9223372036854775807.  */
4709 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4710   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4711                        && LARGE_OFF_T % 2147483647 == 1)
4712                       ? 1 : -1];
4713 int
4714 main ()
4715 {
4716
4717   ;
4718   return 0;
4719 }
4720 _ACEOF
4721 rm -f conftest.$ac_objext
4722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4723   (eval $ac_compile) 2>conftest.er1
4724   ac_status=$?
4725   grep -v '^ *+' conftest.er1 >conftest.err
4726   rm -f conftest.er1
4727   cat conftest.err >&5
4728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729   (exit $ac_status); } &&
4730          { ac_try='test -z "$ac_c_werror_flag"
4731                          || test ! -s conftest.err'
4732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4733   (eval $ac_try) 2>&5
4734   ac_status=$?
4735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736   (exit $ac_status); }; } &&
4737          { ac_try='test -s conftest.$ac_objext'
4738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4739   (eval $ac_try) 2>&5
4740   ac_status=$?
4741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742   (exit $ac_status); }; }; then
4743   ac_cv_sys_large_files=1; break
4744 else
4745   echo "$as_me: failed program was:" >&5
4746 sed 's/^/| /' conftest.$ac_ext >&5
4747
4748 fi
4749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4750   break
4751 done
4752 fi
4753 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4754 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4755 if test "$ac_cv_sys_large_files" != no; then
4756
4757 cat >>confdefs.h <<_ACEOF
4758 #define _LARGE_FILES $ac_cv_sys_large_files
4759 _ACEOF
4760
4761 fi
4762 rm -f conftest*
4763 fi
4764
4765
4766
4767
4768
4769 # Check whether --enable-shared or --disable-shared was given.
4770 if test "${enable_shared+set}" = set; then
4771   enableval="$enable_shared"
4772   p=${PACKAGE-default}
4773     case $enableval in
4774     yes) enable_shared=yes ;;
4775     no) enable_shared=no ;;
4776     *)
4777       enable_shared=no
4778       # Look at the argument we got.  We use all the common list separators.
4779       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4780       for pkg in $enableval; do
4781         IFS="$lt_save_ifs"
4782         if test "X$pkg" = "X$p"; then
4783           enable_shared=yes
4784         fi
4785       done
4786       IFS="$lt_save_ifs"
4787       ;;
4788     esac
4789 else
4790   enable_shared=yes
4791 fi;
4792
4793 # Check whether --enable-static or --disable-static was given.
4794 if test "${enable_static+set}" = set; then
4795   enableval="$enable_static"
4796   p=${PACKAGE-default}
4797     case $enableval in
4798     yes) enable_static=yes ;;
4799     no) enable_static=no ;;
4800     *)
4801      enable_static=no
4802       # Look at the argument we got.  We use all the common list separators.
4803       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4804       for pkg in $enableval; do
4805         IFS="$lt_save_ifs"
4806         if test "X$pkg" = "X$p"; then
4807           enable_static=yes
4808         fi
4809       done
4810       IFS="$lt_save_ifs"
4811       ;;
4812     esac
4813 else
4814   enable_static=yes
4815 fi;
4816
4817 # Check whether --enable-fast-install or --disable-fast-install was given.
4818 if test "${enable_fast_install+set}" = set; then
4819   enableval="$enable_fast_install"
4820   p=${PACKAGE-default}
4821     case $enableval in
4822     yes) enable_fast_install=yes ;;
4823     no) enable_fast_install=no ;;
4824     *)
4825       enable_fast_install=no
4826       # Look at the argument we got.  We use all the common list separators.
4827       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4828       for pkg in $enableval; do
4829         IFS="$lt_save_ifs"
4830         if test "X$pkg" = "X$p"; then
4831           enable_fast_install=yes
4832         fi
4833       done
4834       IFS="$lt_save_ifs"
4835       ;;
4836     esac
4837 else
4838   enable_fast_install=yes
4839 fi;
4840
4841 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4842 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4843 if test "${lt_cv_path_SED+set}" = set; then
4844   echo $ECHO_N "(cached) $ECHO_C" >&6
4845 else
4846   # Loop through the user's path and test for sed and gsed.
4847 # Then use that list of sed's as ones to test for truncation.
4848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4849 for as_dir in $PATH
4850 do
4851   IFS=$as_save_IFS
4852   test -z "$as_dir" && as_dir=.
4853   for lt_ac_prog in sed gsed; do
4854     for ac_exec_ext in '' $ac_executable_extensions; do
4855       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4856         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4857       fi
4858     done
4859   done
4860 done
4861 lt_ac_max=0
4862 lt_ac_count=0
4863 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4864 # along with /bin/sed that truncates output.
4865 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4866   test ! -f $lt_ac_sed && break
4867   cat /dev/null > conftest.in
4868   lt_ac_count=0
4869   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4870   # Check for GNU sed and select it if it is found.
4871   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4872     lt_cv_path_SED=$lt_ac_sed
4873     break
4874   fi
4875   while true; do
4876     cat conftest.in conftest.in >conftest.tmp
4877     mv conftest.tmp conftest.in
4878     cp conftest.in conftest.nl
4879     echo >>conftest.nl
4880     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4881     cmp -s conftest.out conftest.nl || break
4882     # 10000 chars as input seems more than enough
4883     test $lt_ac_count -gt 10 && break
4884     lt_ac_count=`expr $lt_ac_count + 1`
4885     if test $lt_ac_count -gt $lt_ac_max; then
4886       lt_ac_max=$lt_ac_count
4887       lt_cv_path_SED=$lt_ac_sed
4888     fi
4889   done
4890 done
4891 SED=$lt_cv_path_SED
4892
4893 fi
4894
4895 echo "$as_me:$LINENO: result: $SED" >&5
4896 echo "${ECHO_T}$SED" >&6
4897
4898
4899 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4900 if test "${with_gnu_ld+set}" = set; then
4901   withval="$with_gnu_ld"
4902   test "$withval" = no || with_gnu_ld=yes
4903 else
4904   with_gnu_ld=no
4905 fi;
4906 ac_prog=ld
4907 if test "$GCC" = yes; then
4908   # Check if gcc -print-prog-name=ld gives a path.
4909   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4910 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4911   case $host in
4912   *-*-mingw*)
4913     # gcc leaves a trailing carriage return which upsets mingw
4914     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4915   *)
4916     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4917   esac
4918   case $ac_prog in
4919     # Accept absolute paths.
4920     [\\/]* | ?:[\\/]*)
4921       re_direlt='/[^/][^/]*/\.\./'
4922       # Canonicalize the pathname of ld
4923       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4924       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4925         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4926       done
4927       test -z "$LD" && LD="$ac_prog"
4928       ;;
4929   "")
4930     # If it fails, then pretend we aren't using GCC.
4931     ac_prog=ld
4932     ;;
4933   *)
4934     # If it is relative, then search for the first ld in PATH.
4935     with_gnu_ld=unknown
4936     ;;
4937   esac
4938 elif test "$with_gnu_ld" = yes; then
4939   echo "$as_me:$LINENO: checking for GNU ld" >&5
4940 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4941 else
4942   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4943 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4944 fi
4945 if test "${lt_cv_path_LD+set}" = set; then
4946   echo $ECHO_N "(cached) $ECHO_C" >&6
4947 else
4948   if test -z "$LD"; then
4949   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4950   for ac_dir in $PATH; do
4951     IFS="$lt_save_ifs"
4952     test -z "$ac_dir" && ac_dir=.
4953     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4954       lt_cv_path_LD="$ac_dir/$ac_prog"
4955       # Check to see if the program is GNU ld.  I'd rather use --version,
4956       # but apparently some GNU ld's only accept -v.
4957       # Break only if it was the GNU/non-GNU ld that we prefer.
4958       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4959       *GNU* | *'with BFD'*)
4960         test "$with_gnu_ld" != no && break
4961         ;;
4962       *)
4963         test "$with_gnu_ld" != yes && break
4964         ;;
4965       esac
4966     fi
4967   done
4968   IFS="$lt_save_ifs"
4969 else
4970   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4971 fi
4972 fi
4973
4974 LD="$lt_cv_path_LD"
4975 if test -n "$LD"; then
4976   echo "$as_me:$LINENO: result: $LD" >&5
4977 echo "${ECHO_T}$LD" >&6
4978 else
4979   echo "$as_me:$LINENO: result: no" >&5
4980 echo "${ECHO_T}no" >&6
4981 fi
4982 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4983 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4984    { (exit 1); exit 1; }; }
4985 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4986 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4987 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4988   echo $ECHO_N "(cached) $ECHO_C" >&6
4989 else
4990   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4991 case `$LD -v 2>&1 </dev/null` in
4992 *GNU* | *'with BFD'*)
4993   lt_cv_prog_gnu_ld=yes
4994   ;;
4995 *)
4996   lt_cv_prog_gnu_ld=no
4997   ;;
4998 esac
4999 fi
5000 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5001 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5002 with_gnu_ld=$lt_cv_prog_gnu_ld
5003
5004
5005 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5006 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5007 if test "${lt_cv_ld_reload_flag+set}" = set; then
5008   echo $ECHO_N "(cached) $ECHO_C" >&6
5009 else
5010   lt_cv_ld_reload_flag='-r'
5011 fi
5012 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5013 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5014 reload_flag=$lt_cv_ld_reload_flag
5015 case $reload_flag in
5016 "" | " "*) ;;
5017 *) reload_flag=" $reload_flag" ;;
5018 esac
5019 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5020
5021 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5022 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5023 if test "${lt_cv_path_NM+set}" = set; then
5024   echo $ECHO_N "(cached) $ECHO_C" >&6
5025 else
5026   if test -n "$NM"; then
5027   # Let the user override the test.
5028   lt_cv_path_NM="$NM"
5029 else
5030   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5031   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5032     IFS="$lt_save_ifs"
5033     test -z "$ac_dir" && ac_dir=.
5034     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5035     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5036       # Check to see if the nm accepts a BSD-compat flag.
5037       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5038       #   nm: unknown option "B" ignored
5039       # Tru64's nm complains that /dev/null is an invalid object file
5040       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5041       */dev/null* | *'Invalid file or object type'*)
5042         lt_cv_path_NM="$tmp_nm -B"
5043         break
5044         ;;
5045       *)
5046         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5047         */dev/null*)
5048           lt_cv_path_NM="$tmp_nm -p"
5049           break
5050           ;;
5051         *)
5052           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5053           continue # so that we can try to find one that supports BSD flags
5054           ;;
5055         esac
5056       esac
5057     fi
5058   done
5059   IFS="$lt_save_ifs"
5060   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5061 fi
5062 fi
5063 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5064 echo "${ECHO_T}$lt_cv_path_NM" >&6
5065 NM="$lt_cv_path_NM"
5066
5067 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5068 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5069 LN_S=$as_ln_s
5070 if test "$LN_S" = "ln -s"; then
5071   echo "$as_me:$LINENO: result: yes" >&5
5072 echo "${ECHO_T}yes" >&6
5073 else
5074   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5075 echo "${ECHO_T}no, using $LN_S" >&6
5076 fi
5077
5078 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5079 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5080 if test "${lt_cv_deplibs_check_method+set}" = set; then
5081   echo $ECHO_N "(cached) $ECHO_C" >&6
5082 else
5083   lt_cv_file_magic_cmd='$MAGIC_CMD'
5084 lt_cv_file_magic_test_file=
5085 lt_cv_deplibs_check_method='unknown'
5086 # Need to set the preceding variable on all platforms that support
5087 # interlibrary dependencies.
5088 # 'none' -- dependencies not supported.
5089 # `unknown' -- same as none, but documents that we really don't know.
5090 # 'pass_all' -- all dependencies passed with no checks.
5091 # 'test_compile' -- check by making test program.
5092 # 'file_magic [[regex]]' -- check by looking for files in library path
5093 # which responds to the $file_magic_cmd with a given extended regex.
5094 # If you have `file' or equivalent on your system and you're not sure
5095 # whether `pass_all' will *always* work, you probably want this one.
5096
5097 case $host_os in
5098 aix4* | aix5*)
5099   lt_cv_deplibs_check_method=pass_all
5100   ;;
5101
5102 beos*)
5103   lt_cv_deplibs_check_method=pass_all
5104   ;;
5105
5106 bsdi4*)
5107   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5108   lt_cv_file_magic_cmd='/usr/bin/file -L'
5109   lt_cv_file_magic_test_file=/shlib/libc.so
5110   ;;
5111
5112 cygwin*)
5113   # win32_libid is a shell function defined in ltmain.sh
5114   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5115   lt_cv_file_magic_cmd='win32_libid'
5116   ;;
5117
5118 mingw* | pw32*)
5119   # Base MSYS/MinGW do not provide the 'file' command needed by
5120   # win32_libid shell function, so use a weaker test based on 'objdump'.
5121   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5122   lt_cv_file_magic_cmd='$OBJDUMP -f'
5123   ;;
5124
5125 darwin* | rhapsody*)
5126   lt_cv_deplibs_check_method=pass_all
5127   ;;
5128
5129 freebsd* | kfreebsd*-gnu)
5130   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5131     case $host_cpu in
5132     i*86 )
5133       # Not sure whether the presence of OpenBSD here was a mistake.
5134       # Let's accept both of them until this is cleared up.
5135       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5136       lt_cv_file_magic_cmd=/usr/bin/file
5137       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5138       ;;
5139     esac
5140   else
5141     lt_cv_deplibs_check_method=pass_all
5142   fi
5143   ;;
5144
5145 gnu*)
5146   lt_cv_deplibs_check_method=pass_all
5147   ;;
5148
5149 hpux10.20* | hpux11*)
5150   lt_cv_file_magic_cmd=/usr/bin/file
5151   case "$host_cpu" in
5152   ia64*)
5153     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5154     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5155     ;;
5156   hppa*64*)
5157     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]'
5158     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5159     ;;
5160   *)
5161     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5162     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5163     ;;
5164   esac
5165   ;;
5166
5167 irix5* | irix6* | nonstopux*)
5168   case $LD in
5169   *-32|*"-32 ") libmagic=32-bit;;
5170   *-n32|*"-n32 ") libmagic=N32;;
5171   *-64|*"-64 ") libmagic=64-bit;;
5172   *) libmagic=never-match;;
5173   esac
5174   lt_cv_deplibs_check_method=pass_all
5175   ;;
5176
5177 # This must be Linux ELF.
5178 linux*)
5179   case $host_cpu in
5180   alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*)
5181     lt_cv_deplibs_check_method=pass_all ;;
5182   *)
5183     # glibc up to 2.1.1 does not perform some relocations on ARM
5184     # this will be overridden with pass_all, but let us keep it just in case
5185     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
5186   esac
5187   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
5188   lt_cv_deplibs_check_method=pass_all
5189   ;;
5190
5191 netbsd*)
5192   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5193     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5194   else
5195     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5196   fi
5197   ;;
5198
5199 newos6*)
5200   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5201   lt_cv_file_magic_cmd=/usr/bin/file
5202   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5203   ;;
5204
5205 nto-qnx*)
5206   lt_cv_deplibs_check_method=unknown
5207   ;;
5208
5209 openbsd*)
5210   lt_cv_file_magic_cmd=/usr/bin/file
5211   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5212   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5213     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
5214   else
5215     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
5216   fi
5217   ;;
5218
5219 osf3* | osf4* | osf5*)
5220   lt_cv_deplibs_check_method=pass_all
5221   ;;
5222
5223 sco3.2v5*)
5224   lt_cv_deplibs_check_method=pass_all
5225   ;;
5226
5227 solaris*)
5228   lt_cv_deplibs_check_method=pass_all
5229   ;;
5230
5231 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5232   case $host_vendor in
5233   motorola)
5234     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]'
5235     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5236     ;;
5237   ncr)
5238     lt_cv_deplibs_check_method=pass_all
5239     ;;
5240   sequent)
5241     lt_cv_file_magic_cmd='/bin/file'
5242     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5243     ;;
5244   sni)
5245     lt_cv_file_magic_cmd='/bin/file'
5246     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5247     lt_cv_file_magic_test_file=/lib/libc.so
5248     ;;
5249   siemens)
5250     lt_cv_deplibs_check_method=pass_all
5251     ;;
5252   esac
5253   ;;
5254
5255 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5256   lt_cv_deplibs_check_method=pass_all
5257   ;;
5258 esac
5259
5260 fi
5261 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5262 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5263 file_magic_cmd=$lt_cv_file_magic_cmd
5264 deplibs_check_method=$lt_cv_deplibs_check_method
5265 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5266
5267
5268
5269
5270 # If no C compiler was specified, use CC.
5271 LTCC=${LTCC-"$CC"}
5272
5273 # Allow CC to be a program name with arguments.
5274 compiler=$CC
5275
5276 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5277 if test "${enable_libtool_lock+set}" = set; then
5278   enableval="$enable_libtool_lock"
5279
5280 fi;
5281 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5282
5283 # Some flags need to be propagated to the compiler or linker for good
5284 # libtool support.
5285 case $host in
5286 ia64-*-hpux*)
5287   # Find out which ABI we are using.
5288   echo 'int i;' > conftest.$ac_ext
5289   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5290   (eval $ac_compile) 2>&5
5291   ac_status=$?
5292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293   (exit $ac_status); }; then
5294     case `/usr/bin/file conftest.$ac_objext` in
5295     *ELF-32*)
5296       HPUX_IA64_MODE="32"
5297       ;;
5298     *ELF-64*)
5299       HPUX_IA64_MODE="64"
5300       ;;
5301     esac
5302   fi
5303   rm -rf conftest*
5304   ;;
5305 *-*-irix6*)
5306   # Find out which ABI we are using.
5307   echo '#line 5307 "configure"' > conftest.$ac_ext
5308   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5309   (eval $ac_compile) 2>&5
5310   ac_status=$?
5311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312   (exit $ac_status); }; then
5313    if test "$lt_cv_prog_gnu_ld" = yes; then
5314     case `/usr/bin/file conftest.$ac_objext` in
5315     *32-bit*)
5316       LD="${LD-ld} -melf32bsmip"
5317       ;;
5318     *N32*)
5319       LD="${LD-ld} -melf32bmipn32"
5320       ;;
5321     *64-bit*)
5322       LD="${LD-ld} -melf64bmip"
5323       ;;
5324     esac
5325    else
5326     case `/usr/bin/file conftest.$ac_objext` in
5327     *32-bit*)
5328       LD="${LD-ld} -32"
5329       ;;
5330     *N32*)
5331       LD="${LD-ld} -n32"
5332       ;;
5333     *64-bit*)
5334       LD="${LD-ld} -64"
5335       ;;
5336     esac
5337    fi
5338   fi
5339   rm -rf conftest*
5340   ;;
5341
5342 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5343   # Find out which ABI we are using.
5344   echo 'int i;' > conftest.$ac_ext
5345   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5346   (eval $ac_compile) 2>&5
5347   ac_status=$?
5348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349   (exit $ac_status); }; then
5350     case "`/usr/bin/file conftest.o`" in
5351     *32-bit*)
5352       case $host in
5353         x86_64-*linux*)
5354           LD="${LD-ld} -m elf_i386"
5355           ;;
5356         ppc64-*linux*|powerpc64-*linux*)
5357           LD="${LD-ld} -m elf32ppclinux"
5358           ;;
5359         s390x-*linux*)
5360           LD="${LD-ld} -m elf_s390"
5361           ;;
5362         sparc64-*linux*)
5363           LD="${LD-ld} -m elf32_sparc"
5364           ;;
5365       esac
5366       ;;
5367     *64-bit*)
5368       case $host in
5369         x86_64-*linux*)
5370           LD="${LD-ld} -m elf_x86_64"
5371           ;;
5372         ppc*-*linux*|powerpc*-*linux*)
5373           LD="${LD-ld} -m elf64ppc"
5374           ;;
5375         s390*-*linux*)
5376           LD="${LD-ld} -m elf64_s390"
5377           ;;
5378         sparc*-*linux*)
5379           LD="${LD-ld} -m elf64_sparc"
5380           ;;
5381       esac
5382       ;;
5383     esac
5384   fi
5385   rm -rf conftest*
5386   ;;
5387
5388 *-*-sco3.2v5*)
5389   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5390   SAVE_CFLAGS="$CFLAGS"
5391   CFLAGS="$CFLAGS -belf"
5392   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5393 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5394 if test "${lt_cv_cc_needs_belf+set}" = set; then
5395   echo $ECHO_N "(cached) $ECHO_C" >&6
5396 else
5397   ac_ext=c
5398 ac_cpp='$CPP $CPPFLAGS'
5399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5402
5403      cat >conftest.$ac_ext <<_ACEOF
5404 /* confdefs.h.  */
5405 _ACEOF
5406 cat confdefs.h >>conftest.$ac_ext
5407 cat >>conftest.$ac_ext <<_ACEOF
5408 /* end confdefs.h.  */
5409
5410 int
5411 main ()
5412 {
5413
5414   ;
5415   return 0;
5416 }
5417 _ACEOF
5418 rm -f conftest.$ac_objext conftest$ac_exeext
5419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5420   (eval $ac_link) 2>conftest.er1
5421   ac_status=$?
5422   grep -v '^ *+' conftest.er1 >conftest.err
5423   rm -f conftest.er1
5424   cat conftest.err >&5
5425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426   (exit $ac_status); } &&
5427          { ac_try='test -z "$ac_c_werror_flag"
5428                          || test ! -s conftest.err'
5429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5430   (eval $ac_try) 2>&5
5431   ac_status=$?
5432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433   (exit $ac_status); }; } &&
5434          { ac_try='test -s conftest$ac_exeext'
5435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5436   (eval $ac_try) 2>&5
5437   ac_status=$?
5438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439   (exit $ac_status); }; }; then
5440   lt_cv_cc_needs_belf=yes
5441 else
5442   echo "$as_me: failed program was:" >&5
5443 sed 's/^/| /' conftest.$ac_ext >&5
5444
5445 lt_cv_cc_needs_belf=no
5446 fi
5447 rm -f conftest.err conftest.$ac_objext \
5448       conftest$ac_exeext conftest.$ac_ext
5449      ac_ext=c
5450 ac_cpp='$CPP $CPPFLAGS'
5451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5454
5455 fi
5456 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5457 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5458   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5459     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5460     CFLAGS="$SAVE_CFLAGS"
5461   fi
5462   ;;
5463 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5464   if test -n "$ac_tool_prefix"; then
5465   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5466 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5467 echo "$as_me:$LINENO: checking for $ac_word" >&5
5468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5469 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5470   echo $ECHO_N "(cached) $ECHO_C" >&6
5471 else
5472   if test -n "$DLLTOOL"; then
5473   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5474 else
5475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5476 for as_dir in $PATH
5477 do
5478   IFS=$as_save_IFS
5479   test -z "$as_dir" && as_dir=.
5480   for ac_exec_ext in '' $ac_executable_extensions; do
5481   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5482     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5483     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5484     break 2
5485   fi
5486 done
5487 done
5488
5489 fi
5490 fi
5491 DLLTOOL=$ac_cv_prog_DLLTOOL
5492 if test -n "$DLLTOOL"; then
5493   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5494 echo "${ECHO_T}$DLLTOOL" >&6
5495 else
5496   echo "$as_me:$LINENO: result: no" >&5
5497 echo "${ECHO_T}no" >&6
5498 fi
5499
5500 fi
5501 if test -z "$ac_cv_prog_DLLTOOL"; then
5502   ac_ct_DLLTOOL=$DLLTOOL
5503   # Extract the first word of "dlltool", so it can be a program name with args.
5504 set dummy dlltool; ac_word=$2
5505 echo "$as_me:$LINENO: checking for $ac_word" >&5
5506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5507 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5508   echo $ECHO_N "(cached) $ECHO_C" >&6
5509 else
5510   if test -n "$ac_ct_DLLTOOL"; then
5511   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5512 else
5513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514 for as_dir in $PATH
5515 do
5516   IFS=$as_save_IFS
5517   test -z "$as_dir" && as_dir=.
5518   for ac_exec_ext in '' $ac_executable_extensions; do
5519   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5520     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5521     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5522     break 2
5523   fi
5524 done
5525 done
5526
5527   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5528 fi
5529 fi
5530 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5531 if test -n "$ac_ct_DLLTOOL"; then
5532   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5533 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5534 else
5535   echo "$as_me:$LINENO: result: no" >&5
5536 echo "${ECHO_T}no" >&6
5537 fi
5538
5539   DLLTOOL=$ac_ct_DLLTOOL
5540 else
5541   DLLTOOL="$ac_cv_prog_DLLTOOL"
5542 fi
5543
5544   if test -n "$ac_tool_prefix"; then
5545   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5546 set dummy ${ac_tool_prefix}as; ac_word=$2
5547 echo "$as_me:$LINENO: checking for $ac_word" >&5
5548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5549 if test "${ac_cv_prog_AS+set}" = set; then
5550   echo $ECHO_N "(cached) $ECHO_C" >&6
5551 else
5552   if test -n "$AS"; then
5553   ac_cv_prog_AS="$AS" # Let the user override the test.
5554 else
5555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5556 for as_dir in $PATH
5557 do
5558   IFS=$as_save_IFS
5559   test -z "$as_dir" && as_dir=.
5560   for ac_exec_ext in '' $ac_executable_extensions; do
5561   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5562     ac_cv_prog_AS="${ac_tool_prefix}as"
5563     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5564     break 2
5565   fi
5566 done
5567 done
5568
5569 fi
5570 fi
5571 AS=$ac_cv_prog_AS
5572 if test -n "$AS"; then
5573   echo "$as_me:$LINENO: result: $AS" >&5
5574 echo "${ECHO_T}$AS" >&6
5575 else
5576   echo "$as_me:$LINENO: result: no" >&5
5577 echo "${ECHO_T}no" >&6
5578 fi
5579
5580 fi
5581 if test -z "$ac_cv_prog_AS"; then
5582   ac_ct_AS=$AS
5583   # Extract the first word of "as", so it can be a program name with args.
5584 set dummy as; ac_word=$2
5585 echo "$as_me:$LINENO: checking for $ac_word" >&5
5586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5587 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5588   echo $ECHO_N "(cached) $ECHO_C" >&6
5589 else
5590   if test -n "$ac_ct_AS"; then
5591   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5592 else
5593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5594 for as_dir in $PATH
5595 do
5596   IFS=$as_save_IFS
5597   test -z "$as_dir" && as_dir=.
5598   for ac_exec_ext in '' $ac_executable_extensions; do
5599   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5600     ac_cv_prog_ac_ct_AS="as"
5601     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5602     break 2
5603   fi
5604 done
5605 done
5606
5607   test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
5608 fi
5609 fi
5610 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5611 if test -n "$ac_ct_AS"; then
5612   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5613 echo "${ECHO_T}$ac_ct_AS" >&6
5614 else
5615   echo "$as_me:$LINENO: result: no" >&5
5616 echo "${ECHO_T}no" >&6
5617 fi
5618
5619   AS=$ac_ct_AS
5620 else
5621   AS="$ac_cv_prog_AS"
5622 fi
5623
5624   if test -n "$ac_tool_prefix"; then
5625   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5626 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5627 echo "$as_me:$LINENO: checking for $ac_word" >&5
5628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5629 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5630   echo $ECHO_N "(cached) $ECHO_C" >&6
5631 else
5632   if test -n "$OBJDUMP"; then
5633   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5634 else
5635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5636 for as_dir in $PATH
5637 do
5638   IFS=$as_save_IFS
5639   test -z "$as_dir" && as_dir=.
5640   for ac_exec_ext in '' $ac_executable_extensions; do
5641   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5642     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5643     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5644     break 2
5645   fi
5646 done
5647 done
5648
5649 fi
5650 fi
5651 OBJDUMP=$ac_cv_prog_OBJDUMP
5652 if test -n "$OBJDUMP"; then
5653   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5654 echo "${ECHO_T}$OBJDUMP" >&6
5655 else
5656   echo "$as_me:$LINENO: result: no" >&5
5657 echo "${ECHO_T}no" >&6
5658 fi
5659
5660 fi
5661 if test -z "$ac_cv_prog_OBJDUMP"; then
5662   ac_ct_OBJDUMP=$OBJDUMP
5663   # Extract the first word of "objdump", so it can be a program name with args.
5664 set dummy objdump; ac_word=$2
5665 echo "$as_me:$LINENO: checking for $ac_word" >&5
5666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5667 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5668   echo $ECHO_N "(cached) $ECHO_C" >&6
5669 else
5670   if test -n "$ac_ct_OBJDUMP"; then
5671   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5672 else
5673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5674 for as_dir in $PATH
5675 do
5676   IFS=$as_save_IFS
5677   test -z "$as_dir" && as_dir=.
5678   for ac_exec_ext in '' $ac_executable_extensions; do
5679   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5680     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5681     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5682     break 2
5683   fi
5684 done
5685 done
5686
5687   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5688 fi
5689 fi
5690 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5691 if test -n "$ac_ct_OBJDUMP"; then
5692   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5693 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
5694 else
5695   echo "$as_me:$LINENO: result: no" >&5
5696 echo "${ECHO_T}no" >&6
5697 fi
5698
5699   OBJDUMP=$ac_ct_OBJDUMP
5700 else
5701   OBJDUMP="$ac_cv_prog_OBJDUMP"
5702 fi
5703
5704   ;;
5705
5706 esac
5707
5708 need_locks="$enable_libtool_lock"
5709
5710
5711 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5712 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5713 if test "${ac_cv_header_stdc+set}" = set; then
5714   echo $ECHO_N "(cached) $ECHO_C" >&6
5715 else
5716   cat >conftest.$ac_ext <<_ACEOF
5717 /* confdefs.h.  */
5718 _ACEOF
5719 cat confdefs.h >>conftest.$ac_ext
5720 cat >>conftest.$ac_ext <<_ACEOF
5721 /* end confdefs.h.  */
5722 #include <stdlib.h>
5723 #include <stdarg.h>
5724 #include <string.h>
5725 #include <float.h>
5726
5727 int
5728 main ()
5729 {
5730
5731   ;
5732   return 0;
5733 }
5734 _ACEOF
5735 rm -f conftest.$ac_objext
5736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5737   (eval $ac_compile) 2>conftest.er1
5738   ac_status=$?
5739   grep -v '^ *+' conftest.er1 >conftest.err
5740   rm -f conftest.er1
5741   cat conftest.err >&5
5742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743   (exit $ac_status); } &&
5744          { ac_try='test -z "$ac_c_werror_flag"
5745                          || test ! -s conftest.err'
5746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5747   (eval $ac_try) 2>&5
5748   ac_status=$?
5749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750   (exit $ac_status); }; } &&
5751          { ac_try='test -s conftest.$ac_objext'
5752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5753   (eval $ac_try) 2>&5
5754   ac_status=$?
5755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756   (exit $ac_status); }; }; then
5757   ac_cv_header_stdc=yes
5758 else
5759   echo "$as_me: failed program was:" >&5
5760 sed 's/^/| /' conftest.$ac_ext >&5
5761
5762 ac_cv_header_stdc=no
5763 fi
5764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5765
5766 if test $ac_cv_header_stdc = yes; then
5767   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5768   cat >conftest.$ac_ext <<_ACEOF
5769 /* confdefs.h.  */
5770 _ACEOF
5771 cat confdefs.h >>conftest.$ac_ext
5772 cat >>conftest.$ac_ext <<_ACEOF
5773 /* end confdefs.h.  */
5774 #include <string.h>
5775
5776 _ACEOF
5777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5778   $EGREP "memchr" >/dev/null 2>&1; then
5779   :
5780 else
5781   ac_cv_header_stdc=no
5782 fi
5783 rm -f conftest*
5784
5785 fi
5786
5787 if test $ac_cv_header_stdc = yes; then
5788   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5789   cat >conftest.$ac_ext <<_ACEOF
5790 /* confdefs.h.  */
5791 _ACEOF
5792 cat confdefs.h >>conftest.$ac_ext
5793 cat >>conftest.$ac_ext <<_ACEOF
5794 /* end confdefs.h.  */
5795 #include <stdlib.h>
5796
5797 _ACEOF
5798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5799   $EGREP "free" >/dev/null 2>&1; then
5800   :
5801 else
5802   ac_cv_header_stdc=no
5803 fi
5804 rm -f conftest*
5805
5806 fi
5807
5808 if test $ac_cv_header_stdc = yes; then
5809   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5810   if test "$cross_compiling" = yes; then
5811   :
5812 else
5813   cat >conftest.$ac_ext <<_ACEOF
5814 /* confdefs.h.  */
5815 _ACEOF
5816 cat confdefs.h >>conftest.$ac_ext
5817 cat >>conftest.$ac_ext <<_ACEOF
5818 /* end confdefs.h.  */
5819 #include <ctype.h>
5820 #if ((' ' & 0x0FF) == 0x020)
5821 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5822 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5823 #else
5824 # define ISLOWER(c) \
5825                    (('a' <= (c) && (c) <= 'i') \
5826                      || ('j' <= (c) && (c) <= 'r') \
5827                      || ('s' <= (c) && (c) <= 'z'))
5828 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5829 #endif
5830
5831 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5832 int
5833 main ()
5834 {
5835   int i;
5836   for (i = 0; i < 256; i++)
5837     if (XOR (islower (i), ISLOWER (i))
5838         || toupper (i) != TOUPPER (i))
5839       exit(2);
5840   exit (0);
5841 }
5842 _ACEOF
5843 rm -f conftest$ac_exeext
5844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5845   (eval $ac_link) 2>&5
5846   ac_status=$?
5847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5850   (eval $ac_try) 2>&5
5851   ac_status=$?
5852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853   (exit $ac_status); }; }; then
5854   :
5855 else
5856   echo "$as_me: program exited with status $ac_status" >&5
5857 echo "$as_me: failed program was:" >&5
5858 sed 's/^/| /' conftest.$ac_ext >&5
5859
5860 ( exit $ac_status )
5861 ac_cv_header_stdc=no
5862 fi
5863 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5864 fi
5865 fi
5866 fi
5867 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5868 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5869 if test $ac_cv_header_stdc = yes; then
5870
5871 cat >>confdefs.h <<\_ACEOF
5872 #define STDC_HEADERS 1
5873 _ACEOF
5874
5875 fi
5876
5877 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5888                   inttypes.h stdint.h unistd.h
5889 do
5890 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5891 echo "$as_me:$LINENO: checking for $ac_header" >&5
5892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5893 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5894   echo $ECHO_N "(cached) $ECHO_C" >&6
5895 else
5896   cat >conftest.$ac_ext <<_ACEOF
5897 /* confdefs.h.  */
5898 _ACEOF
5899 cat confdefs.h >>conftest.$ac_ext
5900 cat >>conftest.$ac_ext <<_ACEOF
5901 /* end confdefs.h.  */
5902 $ac_includes_default
5903
5904 #include <$ac_header>
5905 _ACEOF
5906 rm -f conftest.$ac_objext
5907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5908   (eval $ac_compile) 2>conftest.er1
5909   ac_status=$?
5910   grep -v '^ *+' conftest.er1 >conftest.err
5911   rm -f conftest.er1
5912   cat conftest.err >&5
5913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914   (exit $ac_status); } &&
5915          { ac_try='test -z "$ac_c_werror_flag"
5916                          || test ! -s conftest.err'
5917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5918   (eval $ac_try) 2>&5
5919   ac_status=$?
5920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921   (exit $ac_status); }; } &&
5922          { ac_try='test -s conftest.$ac_objext'
5923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5924   (eval $ac_try) 2>&5
5925   ac_status=$?
5926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927   (exit $ac_status); }; }; then
5928   eval "$as_ac_Header=yes"
5929 else
5930   echo "$as_me: failed program was:" >&5
5931 sed 's/^/| /' conftest.$ac_ext >&5
5932
5933 eval "$as_ac_Header=no"
5934 fi
5935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5936 fi
5937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5938 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5939 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5940   cat >>confdefs.h <<_ACEOF
5941 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5942 _ACEOF
5943
5944 fi
5945
5946 done
5947
5948
5949
5950 for ac_header in dlfcn.h
5951 do
5952 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5954   echo "$as_me:$LINENO: checking for $ac_header" >&5
5955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5956 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5957   echo $ECHO_N "(cached) $ECHO_C" >&6
5958 fi
5959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5960 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5961 else
5962   # Is the header compilable?
5963 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5964 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5965 cat >conftest.$ac_ext <<_ACEOF
5966 /* confdefs.h.  */
5967 _ACEOF
5968 cat confdefs.h >>conftest.$ac_ext
5969 cat >>conftest.$ac_ext <<_ACEOF
5970 /* end confdefs.h.  */
5971 $ac_includes_default
5972 #include <$ac_header>
5973 _ACEOF
5974 rm -f conftest.$ac_objext
5975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5976   (eval $ac_compile) 2>conftest.er1
5977   ac_status=$?
5978   grep -v '^ *+' conftest.er1 >conftest.err
5979   rm -f conftest.er1
5980   cat conftest.err >&5
5981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982   (exit $ac_status); } &&
5983          { ac_try='test -z "$ac_c_werror_flag"
5984                          || test ! -s conftest.err'
5985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5986   (eval $ac_try) 2>&5
5987   ac_status=$?
5988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989   (exit $ac_status); }; } &&
5990          { ac_try='test -s conftest.$ac_objext'
5991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5992   (eval $ac_try) 2>&5
5993   ac_status=$?
5994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995   (exit $ac_status); }; }; then
5996   ac_header_compiler=yes
5997 else
5998   echo "$as_me: failed program was:" >&5
5999 sed 's/^/| /' conftest.$ac_ext >&5
6000
6001 ac_header_compiler=no
6002 fi
6003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6004 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6005 echo "${ECHO_T}$ac_header_compiler" >&6
6006
6007 # Is the header present?
6008 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6010 cat >conftest.$ac_ext <<_ACEOF
6011 /* confdefs.h.  */
6012 _ACEOF
6013 cat confdefs.h >>conftest.$ac_ext
6014 cat >>conftest.$ac_ext <<_ACEOF
6015 /* end confdefs.h.  */
6016 #include <$ac_header>
6017 _ACEOF
6018 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6019   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6020   ac_status=$?
6021   grep -v '^ *+' conftest.er1 >conftest.err
6022   rm -f conftest.er1
6023   cat conftest.err >&5
6024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025   (exit $ac_status); } >/dev/null; then
6026   if test -s conftest.err; then
6027     ac_cpp_err=$ac_c_preproc_warn_flag
6028     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6029   else
6030     ac_cpp_err=
6031   fi
6032 else
6033   ac_cpp_err=yes
6034 fi
6035 if test -z "$ac_cpp_err"; then
6036   ac_header_preproc=yes
6037 else
6038   echo "$as_me: failed program was:" >&5
6039 sed 's/^/| /' conftest.$ac_ext >&5
6040
6041   ac_header_preproc=no
6042 fi
6043 rm -f conftest.err conftest.$ac_ext
6044 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6045 echo "${ECHO_T}$ac_header_preproc" >&6
6046
6047 # So?  What about this header?
6048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6049   yes:no: )
6050     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6051 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6052     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6053 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6054     ac_header_preproc=yes
6055     ;;
6056   no:yes:* )
6057     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6058 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6059     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6060 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6061     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6062 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6063     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6064 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6065     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6066 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6067     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6068 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6069     (
6070       cat <<\_ASBOX
6071 ## ------------------------------- ##
6072 ## Report this to curl-bug@haxx.se ##
6073 ## ------------------------------- ##
6074 _ASBOX
6075     ) |
6076       sed "s/^/$as_me: WARNING:     /" >&2
6077     ;;
6078 esac
6079 echo "$as_me:$LINENO: checking for $ac_header" >&5
6080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6082   echo $ECHO_N "(cached) $ECHO_C" >&6
6083 else
6084   eval "$as_ac_Header=\$ac_header_preproc"
6085 fi
6086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6088
6089 fi
6090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6091   cat >>confdefs.h <<_ACEOF
6092 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6093 _ACEOF
6094
6095 fi
6096
6097 done
6098
6099 ac_ext=cc
6100 ac_cpp='$CXXCPP $CPPFLAGS'
6101 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6102 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6103 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6104 if test -n "$ac_tool_prefix"; then
6105   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6106   do
6107     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6108 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6109 echo "$as_me:$LINENO: checking for $ac_word" >&5
6110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6111 if test "${ac_cv_prog_CXX+set}" = set; then
6112   echo $ECHO_N "(cached) $ECHO_C" >&6
6113 else
6114   if test -n "$CXX"; then
6115   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6116 else
6117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6118 for as_dir in $PATH
6119 do
6120   IFS=$as_save_IFS
6121   test -z "$as_dir" && as_dir=.
6122   for ac_exec_ext in '' $ac_executable_extensions; do
6123   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6124     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6125     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6126     break 2
6127   fi
6128 done
6129 done
6130
6131 fi
6132 fi
6133 CXX=$ac_cv_prog_CXX
6134 if test -n "$CXX"; then
6135   echo "$as_me:$LINENO: result: $CXX" >&5
6136 echo "${ECHO_T}$CXX" >&6
6137 else
6138   echo "$as_me:$LINENO: result: no" >&5
6139 echo "${ECHO_T}no" >&6
6140 fi
6141
6142     test -n "$CXX" && break
6143   done
6144 fi
6145 if test -z "$CXX"; then
6146   ac_ct_CXX=$CXX
6147   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6148 do
6149   # Extract the first word of "$ac_prog", so it can be a program name with args.
6150 set dummy $ac_prog; ac_word=$2
6151 echo "$as_me:$LINENO: checking for $ac_word" >&5
6152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6153 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6154   echo $ECHO_N "(cached) $ECHO_C" >&6
6155 else
6156   if test -n "$ac_ct_CXX"; then
6157   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6158 else
6159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6160 for as_dir in $PATH
6161 do
6162   IFS=$as_save_IFS
6163   test -z "$as_dir" && as_dir=.
6164   for ac_exec_ext in '' $ac_executable_extensions; do
6165   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6166     ac_cv_prog_ac_ct_CXX="$ac_prog"
6167     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6168     break 2
6169   fi
6170 done
6171 done
6172
6173 fi
6174 fi
6175 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6176 if test -n "$ac_ct_CXX"; then
6177   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6178 echo "${ECHO_T}$ac_ct_CXX" >&6
6179 else
6180   echo "$as_me:$LINENO: result: no" >&5
6181 echo "${ECHO_T}no" >&6
6182 fi
6183
6184   test -n "$ac_ct_CXX" && break
6185 done
6186 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6187
6188   CXX=$ac_ct_CXX
6189 fi
6190
6191
6192 # Provide some information about the compiler.
6193 echo "$as_me:$LINENO:" \
6194      "checking for C++ compiler version" >&5
6195 ac_compiler=`set X $ac_compile; echo $2`
6196 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6197   (eval $ac_compiler --version </dev/null >&5) 2>&5
6198   ac_status=$?
6199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200   (exit $ac_status); }
6201 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6202   (eval $ac_compiler -v </dev/null >&5) 2>&5
6203   ac_status=$?
6204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205   (exit $ac_status); }
6206 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6207   (eval $ac_compiler -V </dev/null >&5) 2>&5
6208   ac_status=$?
6209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210   (exit $ac_status); }
6211
6212 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6213 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6214 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6215   echo $ECHO_N "(cached) $ECHO_C" >&6
6216 else
6217   cat >conftest.$ac_ext <<_ACEOF
6218 /* confdefs.h.  */
6219 _ACEOF
6220 cat confdefs.h >>conftest.$ac_ext
6221 cat >>conftest.$ac_ext <<_ACEOF
6222 /* end confdefs.h.  */
6223
6224 int
6225 main ()
6226 {
6227 #ifndef __GNUC__
6228        choke me
6229 #endif
6230
6231   ;
6232   return 0;
6233 }
6234 _ACEOF
6235 rm -f conftest.$ac_objext
6236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6237   (eval $ac_compile) 2>conftest.er1
6238   ac_status=$?
6239   grep -v '^ *+' conftest.er1 >conftest.err
6240   rm -f conftest.er1
6241   cat conftest.err >&5
6242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243   (exit $ac_status); } &&
6244          { ac_try='test -z "$ac_cxx_werror_flag"
6245                          || test ! -s conftest.err'
6246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6247   (eval $ac_try) 2>&5
6248   ac_status=$?
6249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250   (exit $ac_status); }; } &&
6251          { ac_try='test -s conftest.$ac_objext'
6252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6253   (eval $ac_try) 2>&5
6254   ac_status=$?
6255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256   (exit $ac_status); }; }; then
6257   ac_compiler_gnu=yes
6258 else
6259   echo "$as_me: failed program was:" >&5
6260 sed 's/^/| /' conftest.$ac_ext >&5
6261
6262 ac_compiler_gnu=no
6263 fi
6264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6265 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6266
6267 fi
6268 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6269 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6270 GXX=`test $ac_compiler_gnu = yes && echo yes`
6271 ac_test_CXXFLAGS=${CXXFLAGS+set}
6272 ac_save_CXXFLAGS=$CXXFLAGS
6273 CXXFLAGS="-g"
6274 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6275 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6276 if test "${ac_cv_prog_cxx_g+set}" = set; then
6277   echo $ECHO_N "(cached) $ECHO_C" >&6
6278 else
6279   cat >conftest.$ac_ext <<_ACEOF
6280 /* confdefs.h.  */
6281 _ACEOF
6282 cat confdefs.h >>conftest.$ac_ext
6283 cat >>conftest.$ac_ext <<_ACEOF
6284 /* end confdefs.h.  */
6285
6286 int
6287 main ()
6288 {
6289
6290   ;
6291   return 0;
6292 }
6293 _ACEOF
6294 rm -f conftest.$ac_objext
6295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6296   (eval $ac_compile) 2>conftest.er1
6297   ac_status=$?
6298   grep -v '^ *+' conftest.er1 >conftest.err
6299   rm -f conftest.er1
6300   cat conftest.err >&5
6301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302   (exit $ac_status); } &&
6303          { ac_try='test -z "$ac_cxx_werror_flag"
6304                          || test ! -s conftest.err'
6305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6306   (eval $ac_try) 2>&5
6307   ac_status=$?
6308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309   (exit $ac_status); }; } &&
6310          { ac_try='test -s conftest.$ac_objext'
6311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6312   (eval $ac_try) 2>&5
6313   ac_status=$?
6314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315   (exit $ac_status); }; }; then
6316   ac_cv_prog_cxx_g=yes
6317 else
6318   echo "$as_me: failed program was:" >&5
6319 sed 's/^/| /' conftest.$ac_ext >&5
6320
6321 ac_cv_prog_cxx_g=no
6322 fi
6323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6324 fi
6325 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6326 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6327 if test "$ac_test_CXXFLAGS" = set; then
6328   CXXFLAGS=$ac_save_CXXFLAGS
6329 elif test $ac_cv_prog_cxx_g = yes; then
6330   if test "$GXX" = yes; then
6331     CXXFLAGS="-g -O2"
6332   else
6333     CXXFLAGS="-g"
6334   fi
6335 else
6336   if test "$GXX" = yes; then
6337     CXXFLAGS="-O2"
6338   else
6339     CXXFLAGS=
6340   fi
6341 fi
6342 for ac_declaration in \
6343    '' \
6344    'extern "C" void std::exit (int) throw (); using std::exit;' \
6345    'extern "C" void std::exit (int); using std::exit;' \
6346    'extern "C" void exit (int) throw ();' \
6347    'extern "C" void exit (int);' \
6348    'void exit (int);'
6349 do
6350   cat >conftest.$ac_ext <<_ACEOF
6351 /* confdefs.h.  */
6352 _ACEOF
6353 cat confdefs.h >>conftest.$ac_ext
6354 cat >>conftest.$ac_ext <<_ACEOF
6355 /* end confdefs.h.  */
6356 $ac_declaration
6357 #include <stdlib.h>
6358 int
6359 main ()
6360 {
6361 exit (42);
6362   ;
6363   return 0;
6364 }
6365 _ACEOF
6366 rm -f conftest.$ac_objext
6367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6368   (eval $ac_compile) 2>conftest.er1
6369   ac_status=$?
6370   grep -v '^ *+' conftest.er1 >conftest.err
6371   rm -f conftest.er1
6372   cat conftest.err >&5
6373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374   (exit $ac_status); } &&
6375          { ac_try='test -z "$ac_cxx_werror_flag"
6376                          || test ! -s conftest.err'
6377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6378   (eval $ac_try) 2>&5
6379   ac_status=$?
6380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381   (exit $ac_status); }; } &&
6382          { ac_try='test -s conftest.$ac_objext'
6383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6384   (eval $ac_try) 2>&5
6385   ac_status=$?
6386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387   (exit $ac_status); }; }; then
6388   :
6389 else
6390   echo "$as_me: failed program was:" >&5
6391 sed 's/^/| /' conftest.$ac_ext >&5
6392
6393 continue
6394 fi
6395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6396   cat >conftest.$ac_ext <<_ACEOF
6397 /* confdefs.h.  */
6398 _ACEOF
6399 cat confdefs.h >>conftest.$ac_ext
6400 cat >>conftest.$ac_ext <<_ACEOF
6401 /* end confdefs.h.  */
6402 $ac_declaration
6403 int
6404 main ()
6405 {
6406 exit (42);
6407   ;
6408   return 0;
6409 }
6410 _ACEOF
6411 rm -f conftest.$ac_objext
6412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6413   (eval $ac_compile) 2>conftest.er1
6414   ac_status=$?
6415   grep -v '^ *+' conftest.er1 >conftest.err
6416   rm -f conftest.er1
6417   cat conftest.err >&5
6418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419   (exit $ac_status); } &&
6420          { ac_try='test -z "$ac_cxx_werror_flag"
6421                          || test ! -s conftest.err'
6422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6423   (eval $ac_try) 2>&5
6424   ac_status=$?
6425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426   (exit $ac_status); }; } &&
6427          { ac_try='test -s conftest.$ac_objext'
6428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6429   (eval $ac_try) 2>&5
6430   ac_status=$?
6431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432   (exit $ac_status); }; }; then
6433   break
6434 else
6435   echo "$as_me: failed program was:" >&5
6436 sed 's/^/| /' conftest.$ac_ext >&5
6437
6438 fi
6439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6440 done
6441 rm -f conftest*
6442 if test -n "$ac_declaration"; then
6443   echo '#ifdef __cplusplus' >>confdefs.h
6444   echo $ac_declaration      >>confdefs.h
6445   echo '#endif'             >>confdefs.h
6446 fi
6447
6448 ac_ext=cc
6449 ac_cpp='$CXXCPP $CPPFLAGS'
6450 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6451 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6452 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6453
6454 depcc="$CXX"  am_compiler_list=
6455
6456 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6457 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6458 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6459   echo $ECHO_N "(cached) $ECHO_C" >&6
6460 else
6461   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6462   # We make a subdir and do the tests there.  Otherwise we can end up
6463   # making bogus files that we don't know about and never remove.  For
6464   # instance it was reported that on HP-UX the gcc test will end up
6465   # making a dummy file named `D' -- because `-MD' means `put the output
6466   # in D'.
6467   mkdir conftest.dir
6468   # Copy depcomp to subdir because otherwise we won't find it if we're
6469   # using a relative directory.
6470   cp "$am_depcomp" conftest.dir
6471   cd conftest.dir
6472   # We will build objects and dependencies in a subdirectory because
6473   # it helps to detect inapplicable dependency modes.  For instance
6474   # both Tru64's cc and ICC support -MD to output dependencies as a
6475   # side effect of compilation, but ICC will put the dependencies in
6476   # the current directory while Tru64 will put them in the object
6477   # directory.
6478   mkdir sub
6479
6480   am_cv_CXX_dependencies_compiler_type=none
6481   if test "$am_compiler_list" = ""; then
6482      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6483   fi
6484   for depmode in $am_compiler_list; do
6485     # Setup a source with many dependencies, because some compilers
6486     # like to wrap large dependency lists on column 80 (with \), and
6487     # we should not choose a depcomp mode which is confused by this.
6488     #
6489     # We need to recreate these files for each test, as the compiler may
6490     # overwrite some of them when testing with obscure command lines.
6491     # This happens at least with the AIX C compiler.
6492     : > sub/conftest.c
6493     for i in 1 2 3 4 5 6; do
6494       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6495       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6496       # Solaris 8's {/usr,}/bin/sh.
6497       touch sub/conftst$i.h
6498     done
6499     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6500
6501     case $depmode in
6502     nosideeffect)
6503       # after this tag, mechanisms are not by side-effect, so they'll
6504       # only be used when explicitly requested
6505       if test "x$enable_dependency_tracking" = xyes; then
6506         continue
6507       else
6508         break
6509       fi
6510       ;;
6511     none) break ;;
6512     esac
6513     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6514     # mode.  It turns out that the SunPro C++ compiler does not properly
6515     # handle `-M -o', and we need to detect this.
6516     if depmode=$depmode \
6517        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6518        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6519        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6520          >/dev/null 2>conftest.err &&
6521        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6522        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6523        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6524       # icc doesn't choke on unknown options, it will just issue warnings
6525       # (even with -Werror).  So we grep stderr for any message
6526       # that says an option was ignored.
6527       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
6528         am_cv_CXX_dependencies_compiler_type=$depmode
6529         break
6530       fi
6531     fi
6532   done
6533
6534   cd ..
6535   rm -rf conftest.dir
6536 else
6537   am_cv_CXX_dependencies_compiler_type=none
6538 fi
6539
6540 fi
6541 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6542 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6543 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6544
6545
6546
6547 if
6548   test "x$enable_dependency_tracking" != xno \
6549   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6550   am__fastdepCXX_TRUE=
6551   am__fastdepCXX_FALSE='#'
6552 else
6553   am__fastdepCXX_TRUE='#'
6554   am__fastdepCXX_FALSE=
6555 fi
6556
6557
6558 ac_ext=cc
6559 ac_cpp='$CXXCPP $CPPFLAGS'
6560 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6561 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6562 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6563 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6564 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6565 if test -z "$CXXCPP"; then
6566   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6567   echo $ECHO_N "(cached) $ECHO_C" >&6
6568 else
6569       # Double quotes because CXXCPP needs to be expanded
6570     for CXXCPP in "$CXX -E" "/lib/cpp"
6571     do
6572       ac_preproc_ok=false
6573 for ac_cxx_preproc_warn_flag in '' yes
6574 do
6575   # Use a header file that comes with gcc, so configuring glibc
6576   # with a fresh cross-compiler works.
6577   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6578   # <limits.h> exists even on freestanding compilers.
6579   # On the NeXT, cc -E runs the code through the compiler's parser,
6580   # not just through cpp. "Syntax error" is here to catch this case.
6581   cat >conftest.$ac_ext <<_ACEOF
6582 /* confdefs.h.  */
6583 _ACEOF
6584 cat confdefs.h >>conftest.$ac_ext
6585 cat >>conftest.$ac_ext <<_ACEOF
6586 /* end confdefs.h.  */
6587 #ifdef __STDC__
6588 # include <limits.h>
6589 #else
6590 # include <assert.h>
6591 #endif
6592                      Syntax error
6593 _ACEOF
6594 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6595   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6596   ac_status=$?
6597   grep -v '^ *+' conftest.er1 >conftest.err
6598   rm -f conftest.er1
6599   cat conftest.err >&5
6600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601   (exit $ac_status); } >/dev/null; then
6602   if test -s conftest.err; then
6603     ac_cpp_err=$ac_cxx_preproc_warn_flag
6604     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6605   else
6606     ac_cpp_err=
6607   fi
6608 else
6609   ac_cpp_err=yes
6610 fi
6611 if test -z "$ac_cpp_err"; then
6612   :
6613 else
6614   echo "$as_me: failed program was:" >&5
6615 sed 's/^/| /' conftest.$ac_ext >&5
6616
6617   # Broken: fails on valid input.
6618 continue
6619 fi
6620 rm -f conftest.err conftest.$ac_ext
6621
6622   # OK, works on sane cases.  Now check whether non-existent headers
6623   # can be detected and how.
6624   cat >conftest.$ac_ext <<_ACEOF
6625 /* confdefs.h.  */
6626 _ACEOF
6627 cat confdefs.h >>conftest.$ac_ext
6628 cat >>conftest.$ac_ext <<_ACEOF
6629 /* end confdefs.h.  */
6630 #include <ac_nonexistent.h>
6631 _ACEOF
6632 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6633   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6634   ac_status=$?
6635   grep -v '^ *+' conftest.er1 >conftest.err
6636   rm -f conftest.er1
6637   cat conftest.err >&5
6638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639   (exit $ac_status); } >/dev/null; then
6640   if test -s conftest.err; then
6641     ac_cpp_err=$ac_cxx_preproc_warn_flag
6642     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6643   else
6644     ac_cpp_err=
6645   fi
6646 else
6647   ac_cpp_err=yes
6648 fi
6649 if test -z "$ac_cpp_err"; then
6650   # Broken: success on invalid input.
6651 continue
6652 else
6653   echo "$as_me: failed program was:" >&5
6654 sed 's/^/| /' conftest.$ac_ext >&5
6655
6656   # Passes both tests.
6657 ac_preproc_ok=:
6658 break
6659 fi
6660 rm -f conftest.err conftest.$ac_ext
6661
6662 done
6663 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6664 rm -f conftest.err conftest.$ac_ext
6665 if $ac_preproc_ok; then
6666   break
6667 fi
6668
6669     done
6670     ac_cv_prog_CXXCPP=$CXXCPP
6671
6672 fi
6673   CXXCPP=$ac_cv_prog_CXXCPP
6674 else
6675   ac_cv_prog_CXXCPP=$CXXCPP
6676 fi
6677 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6678 echo "${ECHO_T}$CXXCPP" >&6
6679 ac_preproc_ok=false
6680 for ac_cxx_preproc_warn_flag in '' yes
6681 do
6682   # Use a header file that comes with gcc, so configuring glibc
6683   # with a fresh cross-compiler works.
6684   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6685   # <limits.h> exists even on freestanding compilers.
6686   # On the NeXT, cc -E runs the code through the compiler's parser,
6687   # not just through cpp. "Syntax error" is here to catch this case.
6688   cat >conftest.$ac_ext <<_ACEOF
6689 /* confdefs.h.  */
6690 _ACEOF
6691 cat confdefs.h >>conftest.$ac_ext
6692 cat >>conftest.$ac_ext <<_ACEOF
6693 /* end confdefs.h.  */
6694 #ifdef __STDC__
6695 # include <limits.h>
6696 #else
6697 # include <assert.h>
6698 #endif
6699                      Syntax error
6700 _ACEOF
6701 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6702   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6703   ac_status=$?
6704   grep -v '^ *+' conftest.er1 >conftest.err
6705   rm -f conftest.er1
6706   cat conftest.err >&5
6707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708   (exit $ac_status); } >/dev/null; then
6709   if test -s conftest.err; then
6710     ac_cpp_err=$ac_cxx_preproc_warn_flag
6711     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6712   else
6713     ac_cpp_err=
6714   fi
6715 else
6716   ac_cpp_err=yes
6717 fi
6718 if test -z "$ac_cpp_err"; then
6719   :
6720 else
6721   echo "$as_me: failed program was:" >&5
6722 sed 's/^/| /' conftest.$ac_ext >&5
6723
6724   # Broken: fails on valid input.
6725 continue
6726 fi
6727 rm -f conftest.err conftest.$ac_ext
6728
6729   # OK, works on sane cases.  Now check whether non-existent headers
6730   # can be detected and how.
6731   cat >conftest.$ac_ext <<_ACEOF
6732 /* confdefs.h.  */
6733 _ACEOF
6734 cat confdefs.h >>conftest.$ac_ext
6735 cat >>conftest.$ac_ext <<_ACEOF
6736 /* end confdefs.h.  */
6737 #include <ac_nonexistent.h>
6738 _ACEOF
6739 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6740   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6741   ac_status=$?
6742   grep -v '^ *+' conftest.er1 >conftest.err
6743   rm -f conftest.er1
6744   cat conftest.err >&5
6745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746   (exit $ac_status); } >/dev/null; then
6747   if test -s conftest.err; then
6748     ac_cpp_err=$ac_cxx_preproc_warn_flag
6749     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6750   else
6751     ac_cpp_err=
6752   fi
6753 else
6754   ac_cpp_err=yes
6755 fi
6756 if test -z "$ac_cpp_err"; then
6757   # Broken: success on invalid input.
6758 continue
6759 else
6760   echo "$as_me: failed program was:" >&5
6761 sed 's/^/| /' conftest.$ac_ext >&5
6762
6763   # Passes both tests.
6764 ac_preproc_ok=:
6765 break
6766 fi
6767 rm -f conftest.err conftest.$ac_ext
6768
6769 done
6770 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6771 rm -f conftest.err conftest.$ac_ext
6772 if $ac_preproc_ok; then
6773   :
6774 else
6775   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6776 See \`config.log' for more details." >&5
6777 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6778 See \`config.log' for more details." >&2;}
6779    { (exit 1); exit 1; }; }
6780 fi
6781
6782 ac_ext=cc
6783 ac_cpp='$CXXCPP $CPPFLAGS'
6784 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6785 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6786 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6787
6788
6789 ac_ext=f
6790 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6791 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6792 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6793 if test -n "$ac_tool_prefix"; then
6794   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6795   do
6796     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6797 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6798 echo "$as_me:$LINENO: checking for $ac_word" >&5
6799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6800 if test "${ac_cv_prog_F77+set}" = set; then
6801   echo $ECHO_N "(cached) $ECHO_C" >&6
6802 else
6803   if test -n "$F77"; then
6804   ac_cv_prog_F77="$F77" # Let the user override the test.
6805 else
6806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807 for as_dir in $PATH
6808 do
6809   IFS=$as_save_IFS
6810   test -z "$as_dir" && as_dir=.
6811   for ac_exec_ext in '' $ac_executable_extensions; do
6812   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6813     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6814     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6815     break 2
6816   fi
6817 done
6818 done
6819
6820 fi
6821 fi
6822 F77=$ac_cv_prog_F77
6823 if test -n "$F77"; then
6824   echo "$as_me:$LINENO: result: $F77" >&5
6825 echo "${ECHO_T}$F77" >&6
6826 else
6827   echo "$as_me:$LINENO: result: no" >&5
6828 echo "${ECHO_T}no" >&6
6829 fi
6830
6831     test -n "$F77" && break
6832   done
6833 fi
6834 if test -z "$F77"; then
6835   ac_ct_F77=$F77
6836   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6837 do
6838   # Extract the first word of "$ac_prog", so it can be a program name with args.
6839 set dummy $ac_prog; ac_word=$2
6840 echo "$as_me:$LINENO: checking for $ac_word" >&5
6841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6842 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6843   echo $ECHO_N "(cached) $ECHO_C" >&6
6844 else
6845   if test -n "$ac_ct_F77"; then
6846   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6847 else
6848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6849 for as_dir in $PATH
6850 do
6851   IFS=$as_save_IFS
6852   test -z "$as_dir" && as_dir=.
6853   for ac_exec_ext in '' $ac_executable_extensions; do
6854   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6855     ac_cv_prog_ac_ct_F77="$ac_prog"
6856     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6857     break 2
6858   fi
6859 done
6860 done
6861
6862 fi
6863 fi
6864 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6865 if test -n "$ac_ct_F77"; then
6866   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6867 echo "${ECHO_T}$ac_ct_F77" >&6
6868 else
6869   echo "$as_me:$LINENO: result: no" >&5
6870 echo "${ECHO_T}no" >&6
6871 fi
6872
6873   test -n "$ac_ct_F77" && break
6874 done
6875
6876   F77=$ac_ct_F77
6877 fi
6878
6879
6880 # Provide some information about the compiler.
6881 echo "$as_me:6881:" \
6882      "checking for Fortran 77 compiler version" >&5
6883 ac_compiler=`set X $ac_compile; echo $2`
6884 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6885   (eval $ac_compiler --version </dev/null >&5) 2>&5
6886   ac_status=$?
6887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888   (exit $ac_status); }
6889 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6890   (eval $ac_compiler -v </dev/null >&5) 2>&5
6891   ac_status=$?
6892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893   (exit $ac_status); }
6894 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6895   (eval $ac_compiler -V </dev/null >&5) 2>&5
6896   ac_status=$?
6897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898   (exit $ac_status); }
6899 rm -f a.out
6900
6901 # If we don't use `.F' as extension, the preprocessor is not run on the
6902 # input file.  (Note that this only needs to work for GNU compilers.)
6903 ac_save_ext=$ac_ext
6904 ac_ext=F
6905 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6906 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6907 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6908   echo $ECHO_N "(cached) $ECHO_C" >&6
6909 else
6910   cat >conftest.$ac_ext <<_ACEOF
6911       program main
6912 #ifndef __GNUC__
6913        choke me
6914 #endif
6915
6916       end
6917 _ACEOF
6918 rm -f conftest.$ac_objext
6919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6920   (eval $ac_compile) 2>conftest.er1
6921   ac_status=$?
6922   grep -v '^ *+' conftest.er1 >conftest.err
6923   rm -f conftest.er1
6924   cat conftest.err >&5
6925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926   (exit $ac_status); } &&
6927          { ac_try='test -z "$ac_f77_werror_flag"
6928                          || test ! -s conftest.err'
6929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6930   (eval $ac_try) 2>&5
6931   ac_status=$?
6932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933   (exit $ac_status); }; } &&
6934          { ac_try='test -s conftest.$ac_objext'
6935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6936   (eval $ac_try) 2>&5
6937   ac_status=$?
6938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939   (exit $ac_status); }; }; then
6940   ac_compiler_gnu=yes
6941 else
6942   echo "$as_me: failed program was:" >&5
6943 sed 's/^/| /' conftest.$ac_ext >&5
6944
6945 ac_compiler_gnu=no
6946 fi
6947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6948 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6949
6950 fi
6951 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6952 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6953 ac_ext=$ac_save_ext
6954 ac_test_FFLAGS=${FFLAGS+set}
6955 ac_save_FFLAGS=$FFLAGS
6956 FFLAGS=
6957 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6958 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6959 if test "${ac_cv_prog_f77_g+set}" = set; then
6960   echo $ECHO_N "(cached) $ECHO_C" >&6
6961 else
6962   FFLAGS=-g
6963 cat >conftest.$ac_ext <<_ACEOF
6964       program main
6965
6966       end
6967 _ACEOF
6968 rm -f conftest.$ac_objext
6969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6970   (eval $ac_compile) 2>conftest.er1
6971   ac_status=$?
6972   grep -v '^ *+' conftest.er1 >conftest.err
6973   rm -f conftest.er1
6974   cat conftest.err >&5
6975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976   (exit $ac_status); } &&
6977          { ac_try='test -z "$ac_f77_werror_flag"
6978                          || test ! -s conftest.err'
6979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6980   (eval $ac_try) 2>&5
6981   ac_status=$?
6982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983   (exit $ac_status); }; } &&
6984          { ac_try='test -s conftest.$ac_objext'
6985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6986   (eval $ac_try) 2>&5
6987   ac_status=$?
6988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989   (exit $ac_status); }; }; then
6990   ac_cv_prog_f77_g=yes
6991 else
6992   echo "$as_me: failed program was:" >&5
6993 sed 's/^/| /' conftest.$ac_ext >&5
6994
6995 ac_cv_prog_f77_g=no
6996 fi
6997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6998
6999 fi
7000 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7001 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7002 if test "$ac_test_FFLAGS" = set; then
7003   FFLAGS=$ac_save_FFLAGS
7004 elif test $ac_cv_prog_f77_g = yes; then
7005   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7006     FFLAGS="-g -O2"
7007   else
7008     FFLAGS="-g"
7009   fi
7010 else
7011   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7012     FFLAGS="-O2"
7013   else
7014     FFLAGS=
7015   fi
7016 fi
7017
7018 G77=`test $ac_compiler_gnu = yes && echo yes`
7019 ac_ext=c
7020 ac_cpp='$CPP $CPPFLAGS'
7021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7024
7025
7026
7027 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7028
7029 # find the maximum length of command line arguments
7030 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7031 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7032 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7033   echo $ECHO_N "(cached) $ECHO_C" >&6
7034 else
7035     i=0
7036   testring="ABCD"
7037
7038   case $build_os in
7039   msdosdjgpp*)
7040     # On DJGPP, this test can blow up pretty badly due to problems in libc
7041     # (any single argument exceeding 2000 bytes causes a buffer overrun
7042     # during glob expansion).  Even if it were fixed, the result of this
7043     # check would be larger than it should be.
7044     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7045     ;;
7046
7047   gnu*)
7048     # Under GNU Hurd, this test is not required because there is
7049     # no limit to the length of command line arguments.
7050     # Libtool will interpret -1 as no limit whatsoever
7051     lt_cv_sys_max_cmd_len=-1;
7052     ;;
7053
7054   cygwin* | mingw*)
7055     # On Win9x/ME, this test blows up -- it succeeds, but takes
7056     # about 5 minutes as the teststring grows exponentially.
7057     # Worse, since 9x/ME are not pre-emptively multitasking,
7058     # you end up with a "frozen" computer, even though with patience
7059     # the test eventually succeeds (with a max line length of 256k).
7060     # Instead, let's just punt: use the minimum linelength reported by
7061     # all of the supported platforms: 8192 (on NT/2K/XP).
7062     lt_cv_sys_max_cmd_len=8192;
7063     ;;
7064
7065   amigaos*)
7066     # On AmigaOS with pdksh, this test takes hours, literally.
7067     # So we just punt and use a minimum line length of 8192.
7068     lt_cv_sys_max_cmd_len=8192;
7069     ;;
7070
7071  *)
7072     # If test is not a shell built-in, we'll probably end up computing a
7073     # maximum length that is only half of the actual maximum length, but
7074     # we can't tell.
7075     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
7076                = "XX$testring") >/dev/null 2>&1 &&
7077             new_result=`expr "X$testring" : ".*" 2>&1` &&
7078             lt_cv_sys_max_cmd_len=$new_result &&
7079             test $i != 17 # 1/2 MB should be enough
7080     do
7081       i=`expr $i + 1`
7082       testring=$testring$testring
7083     done
7084     testring=
7085     # Add a significant safety factor because C++ compilers can tack on massive
7086     # amounts of additional arguments before passing them to the linker.
7087     # It appears as though 1/2 is a usable value.
7088     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7089     ;;
7090   esac
7091
7092 fi
7093
7094 if test -n $lt_cv_sys_max_cmd_len ; then
7095   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7096 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7097 else
7098   echo "$as_me:$LINENO: result: none" >&5
7099 echo "${ECHO_T}none" >&6
7100 fi
7101
7102
7103
7104
7105 # Check for command to grab the raw symbol name followed by C symbol from nm.
7106 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7107 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7108 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7109   echo $ECHO_N "(cached) $ECHO_C" >&6
7110 else
7111
7112 # These are sane defaults that work on at least a few old systems.
7113 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7114
7115 # Character class describing NM global symbol codes.
7116 symcode='[BCDEGRST]'
7117
7118 # Regexp to match symbols that can be accessed directly from C.
7119 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7120
7121 # Transform the above into a raw symbol and a C symbol.
7122 symxfrm='\1 \2\3 \3'
7123
7124 # Transform an extracted symbol line into a proper C declaration
7125 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7126
7127 # Transform an extracted symbol line into symbol name and symbol address
7128 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'"
7129
7130 # Define system-specific variables.
7131 case $host_os in
7132 aix*)
7133   symcode='[BCDT]'
7134   ;;
7135 cygwin* | mingw* | pw32*)
7136   symcode='[ABCDGISTW]'
7137   ;;
7138 hpux*) # Its linker distinguishes data from code symbols
7139   if test "$host_cpu" = ia64; then
7140     symcode='[ABCDEGRST]'
7141   fi
7142   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7143   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'"
7144   ;;
7145 irix* | nonstopux*)
7146   symcode='[BCDEGRST]'
7147   ;;
7148 osf*)
7149   symcode='[BCDEGQRST]'
7150   ;;
7151 solaris* | sysv5*)
7152   symcode='[BDRT]'
7153   ;;
7154 sysv4)
7155   symcode='[DFNSTU]'
7156   ;;
7157 esac
7158
7159 # Handle CRLF in mingw tool chain
7160 opt_cr=
7161 case $build_os in
7162 mingw*)
7163   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7164   ;;
7165 esac
7166
7167 # If we're using GNU nm, then use its standard symbol codes.
7168 case `$NM -V 2>&1` in
7169 *GNU* | *'with BFD'*)
7170   symcode='[ABCDGIRSTW]' ;;
7171 esac
7172
7173 # Try without a prefix undercore, then with it.
7174 for ac_symprfx in "" "_"; do
7175
7176   # Write the raw and C identifiers.
7177   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7178
7179   # Check to see that the pipe works correctly.
7180   pipe_works=no
7181
7182   rm -f conftest*
7183   cat > conftest.$ac_ext <<EOF
7184 #ifdef __cplusplus
7185 extern "C" {
7186 #endif
7187 char nm_test_var;
7188 void nm_test_func(){}
7189 #ifdef __cplusplus
7190 }
7191 #endif
7192 int main(){nm_test_var='a';nm_test_func();return(0);}
7193 EOF
7194
7195   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7196   (eval $ac_compile) 2>&5
7197   ac_status=$?
7198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199   (exit $ac_status); }; then
7200     # Now try to grab the symbols.
7201     nlist=conftest.nm
7202     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7203   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7204   ac_status=$?
7205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206   (exit $ac_status); } && test -s "$nlist"; then
7207       # Try sorting and uniquifying the output.
7208       if sort "$nlist" | uniq > "$nlist"T; then
7209         mv -f "$nlist"T "$nlist"
7210       else
7211         rm -f "$nlist"T
7212       fi
7213
7214       # Make sure that we snagged all the symbols we need.
7215       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7216         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7217           cat <<EOF > conftest.$ac_ext
7218 #ifdef __cplusplus
7219 extern "C" {
7220 #endif
7221
7222 EOF
7223           # Now generate the symbol file.
7224           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7225
7226           cat <<EOF >> conftest.$ac_ext
7227 #if defined (__STDC__) && __STDC__
7228 # define lt_ptr_t void *
7229 #else
7230 # define lt_ptr_t char *
7231 # define const
7232 #endif
7233
7234 /* The mapping between symbol names and symbols. */
7235 const struct {
7236   const char *name;
7237   lt_ptr_t address;
7238 }
7239 lt_preloaded_symbols[] =
7240 {
7241 EOF
7242           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7243           cat <<\EOF >> conftest.$ac_ext
7244   {0, (lt_ptr_t) 0}
7245 };
7246
7247 #ifdef __cplusplus
7248 }
7249 #endif
7250 EOF
7251           # Now try linking the two files.
7252           mv conftest.$ac_objext conftstm.$ac_objext
7253           lt_save_LIBS="$LIBS"
7254           lt_save_CFLAGS="$CFLAGS"
7255           LIBS="conftstm.$ac_objext"
7256           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7257           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7258   (eval $ac_link) 2>&5
7259   ac_status=$?
7260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7262             pipe_works=yes
7263           fi
7264           LIBS="$lt_save_LIBS"
7265           CFLAGS="$lt_save_CFLAGS"
7266         else
7267           echo "cannot find nm_test_func in $nlist" >&5
7268         fi
7269       else
7270         echo "cannot find nm_test_var in $nlist" >&5
7271       fi
7272     else
7273       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7274     fi
7275   else
7276     echo "$progname: failed program was:" >&5
7277     cat conftest.$ac_ext >&5
7278   fi
7279   rm -f conftest* conftst*
7280
7281   # Do not use the global_symbol_pipe unless it works.
7282   if test "$pipe_works" = yes; then
7283     break
7284   else
7285     lt_cv_sys_global_symbol_pipe=
7286   fi
7287 done
7288
7289 fi
7290
7291 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7292   lt_cv_sys_global_symbol_to_cdecl=
7293 fi
7294 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7295   echo "$as_me:$LINENO: result: failed" >&5
7296 echo "${ECHO_T}failed" >&6
7297 else
7298   echo "$as_me:$LINENO: result: ok" >&5
7299 echo "${ECHO_T}ok" >&6
7300 fi
7301
7302 echo "$as_me:$LINENO: checking for objdir" >&5
7303 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7304 if test "${lt_cv_objdir+set}" = set; then
7305   echo $ECHO_N "(cached) $ECHO_C" >&6
7306 else
7307   rm -f .libs 2>/dev/null
7308 mkdir .libs 2>/dev/null
7309 if test -d .libs; then
7310   lt_cv_objdir=.libs
7311 else
7312   # MS-DOS does not allow filenames that begin with a dot.
7313   lt_cv_objdir=_libs
7314 fi
7315 rmdir .libs 2>/dev/null
7316 fi
7317 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7318 echo "${ECHO_T}$lt_cv_objdir" >&6
7319 objdir=$lt_cv_objdir
7320
7321
7322
7323
7324
7325 case $host_os in
7326 aix3*)
7327   # AIX sometimes has problems with the GCC collect2 program.  For some
7328   # reason, if we set the COLLECT_NAMES environment variable, the problems
7329   # vanish in a puff of smoke.
7330   if test "X${COLLECT_NAMES+set}" != Xset; then
7331     COLLECT_NAMES=
7332     export COLLECT_NAMES
7333   fi
7334   ;;
7335 esac
7336
7337 # Sed substitution that helps us do robust quoting.  It backslashifies
7338 # metacharacters that are still active within double-quoted strings.
7339 Xsed='sed -e s/^X//'
7340 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7341
7342 # Same as above, but do not quote variable references.
7343 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7344
7345 # Sed substitution to delay expansion of an escaped shell variable in a
7346 # double_quote_subst'ed string.
7347 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7348
7349 # Sed substitution to avoid accidental globbing in evaled expressions
7350 no_glob_subst='s/\*/\\\*/g'
7351
7352 # Constants:
7353 rm="rm -f"
7354
7355 # Global variables:
7356 default_ofile=libtool
7357 can_build_shared=yes
7358
7359 # All known linkers require a `.a' archive for static linking (except M$VC,
7360 # which needs '.lib').
7361 libext=a
7362 ltmain="$ac_aux_dir/ltmain.sh"
7363 ofile="$default_ofile"
7364 with_gnu_ld="$lt_cv_prog_gnu_ld"
7365
7366 if test -n "$ac_tool_prefix"; then
7367   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7368 set dummy ${ac_tool_prefix}ar; ac_word=$2
7369 echo "$as_me:$LINENO: checking for $ac_word" >&5
7370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7371 if test "${ac_cv_prog_AR+set}" = set; then
7372   echo $ECHO_N "(cached) $ECHO_C" >&6
7373 else
7374   if test -n "$AR"; then
7375   ac_cv_prog_AR="$AR" # Let the user override the test.
7376 else
7377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7378 for as_dir in $PATH
7379 do
7380   IFS=$as_save_IFS
7381   test -z "$as_dir" && as_dir=.
7382   for ac_exec_ext in '' $ac_executable_extensions; do
7383   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7384     ac_cv_prog_AR="${ac_tool_prefix}ar"
7385     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7386     break 2
7387   fi
7388 done
7389 done
7390
7391 fi
7392 fi
7393 AR=$ac_cv_prog_AR
7394 if test -n "$AR"; then
7395   echo "$as_me:$LINENO: result: $AR" >&5
7396 echo "${ECHO_T}$AR" >&6
7397 else
7398   echo "$as_me:$LINENO: result: no" >&5
7399 echo "${ECHO_T}no" >&6
7400 fi
7401
7402 fi
7403 if test -z "$ac_cv_prog_AR"; then
7404   ac_ct_AR=$AR
7405   # Extract the first word of "ar", so it can be a program name with args.
7406 set dummy ar; ac_word=$2
7407 echo "$as_me:$LINENO: checking for $ac_word" >&5
7408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7409 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7410   echo $ECHO_N "(cached) $ECHO_C" >&6
7411 else
7412   if test -n "$ac_ct_AR"; then
7413   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7414 else
7415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7416 for as_dir in $PATH
7417 do
7418   IFS=$as_save_IFS
7419   test -z "$as_dir" && as_dir=.
7420   for ac_exec_ext in '' $ac_executable_extensions; do
7421   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7422     ac_cv_prog_ac_ct_AR="ar"
7423     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7424     break 2
7425   fi
7426 done
7427 done
7428
7429   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7430 fi
7431 fi
7432 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7433 if test -n "$ac_ct_AR"; then
7434   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7435 echo "${ECHO_T}$ac_ct_AR" >&6
7436 else
7437   echo "$as_me:$LINENO: result: no" >&5
7438 echo "${ECHO_T}no" >&6
7439 fi
7440
7441   AR=$ac_ct_AR
7442 else
7443   AR="$ac_cv_prog_AR"
7444 fi
7445
7446 if test -n "$ac_tool_prefix"; then
7447   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7448 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7449 echo "$as_me:$LINENO: checking for $ac_word" >&5
7450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7451 if test "${ac_cv_prog_RANLIB+set}" = set; then
7452   echo $ECHO_N "(cached) $ECHO_C" >&6
7453 else
7454   if test -n "$RANLIB"; then
7455   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7456 else
7457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7458 for as_dir in $PATH
7459 do
7460   IFS=$as_save_IFS
7461   test -z "$as_dir" && as_dir=.
7462   for ac_exec_ext in '' $ac_executable_extensions; do
7463   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7464     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7465     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7466     break 2
7467   fi
7468 done
7469 done
7470
7471 fi
7472 fi
7473 RANLIB=$ac_cv_prog_RANLIB
7474 if test -n "$RANLIB"; then
7475   echo "$as_me:$LINENO: result: $RANLIB" >&5
7476 echo "${ECHO_T}$RANLIB" >&6
7477 else
7478   echo "$as_me:$LINENO: result: no" >&5
7479 echo "${ECHO_T}no" >&6
7480 fi
7481
7482 fi
7483 if test -z "$ac_cv_prog_RANLIB"; then
7484   ac_ct_RANLIB=$RANLIB
7485   # Extract the first word of "ranlib", so it can be a program name with args.
7486 set dummy ranlib; ac_word=$2
7487 echo "$as_me:$LINENO: checking for $ac_word" >&5
7488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7489 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7490   echo $ECHO_N "(cached) $ECHO_C" >&6
7491 else
7492   if test -n "$ac_ct_RANLIB"; then
7493   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7494 else
7495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7496 for as_dir in $PATH
7497 do
7498   IFS=$as_save_IFS
7499   test -z "$as_dir" && as_dir=.
7500   for ac_exec_ext in '' $ac_executable_extensions; do
7501   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7502     ac_cv_prog_ac_ct_RANLIB="ranlib"
7503     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7504     break 2
7505   fi
7506 done
7507 done
7508
7509   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7510 fi
7511 fi
7512 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7513 if test -n "$ac_ct_RANLIB"; then
7514   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7515 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7516 else
7517   echo "$as_me:$LINENO: result: no" >&5
7518 echo "${ECHO_T}no" >&6
7519 fi
7520
7521   RANLIB=$ac_ct_RANLIB
7522 else
7523   RANLIB="$ac_cv_prog_RANLIB"
7524 fi
7525
7526 if test -n "$ac_tool_prefix"; then
7527   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7528 set dummy ${ac_tool_prefix}strip; ac_word=$2
7529 echo "$as_me:$LINENO: checking for $ac_word" >&5
7530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7531 if test "${ac_cv_prog_STRIP+set}" = set; then
7532   echo $ECHO_N "(cached) $ECHO_C" >&6
7533 else
7534   if test -n "$STRIP"; then
7535   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7536 else
7537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7538 for as_dir in $PATH
7539 do
7540   IFS=$as_save_IFS
7541   test -z "$as_dir" && as_dir=.
7542   for ac_exec_ext in '' $ac_executable_extensions; do
7543   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7544     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7545     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7546     break 2
7547   fi
7548 done
7549 done
7550
7551 fi
7552 fi
7553 STRIP=$ac_cv_prog_STRIP
7554 if test -n "$STRIP"; then
7555   echo "$as_me:$LINENO: result: $STRIP" >&5
7556 echo "${ECHO_T}$STRIP" >&6
7557 else
7558   echo "$as_me:$LINENO: result: no" >&5
7559 echo "${ECHO_T}no" >&6
7560 fi
7561
7562 fi
7563 if test -z "$ac_cv_prog_STRIP"; then
7564   ac_ct_STRIP=$STRIP
7565   # Extract the first word of "strip", so it can be a program name with args.
7566 set dummy strip; ac_word=$2
7567 echo "$as_me:$LINENO: checking for $ac_word" >&5
7568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7569 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7570   echo $ECHO_N "(cached) $ECHO_C" >&6
7571 else
7572   if test -n "$ac_ct_STRIP"; then
7573   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7574 else
7575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7576 for as_dir in $PATH
7577 do
7578   IFS=$as_save_IFS
7579   test -z "$as_dir" && as_dir=.
7580   for ac_exec_ext in '' $ac_executable_extensions; do
7581   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7582     ac_cv_prog_ac_ct_STRIP="strip"
7583     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7584     break 2
7585   fi
7586 done
7587 done
7588
7589   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7590 fi
7591 fi
7592 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7593 if test -n "$ac_ct_STRIP"; then
7594   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7595 echo "${ECHO_T}$ac_ct_STRIP" >&6
7596 else
7597   echo "$as_me:$LINENO: result: no" >&5
7598 echo "${ECHO_T}no" >&6
7599 fi
7600
7601   STRIP=$ac_ct_STRIP
7602 else
7603   STRIP="$ac_cv_prog_STRIP"
7604 fi
7605
7606
7607 old_CC="$CC"
7608 old_CFLAGS="$CFLAGS"
7609
7610 # Set sane defaults for various variables
7611 test -z "$AR" && AR=ar
7612 test -z "$AR_FLAGS" && AR_FLAGS=cru
7613 test -z "$AS" && AS=as
7614 test -z "$CC" && CC=cc
7615 test -z "$LTCC" && LTCC=$CC
7616 test -z "$DLLTOOL" && DLLTOOL=dlltool
7617 test -z "$LD" && LD=ld
7618 test -z "$LN_S" && LN_S="ln -s"
7619 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7620 test -z "$NM" && NM=nm
7621 test -z "$SED" && SED=sed
7622 test -z "$OBJDUMP" && OBJDUMP=objdump
7623 test -z "$RANLIB" && RANLIB=:
7624 test -z "$STRIP" && STRIP=:
7625 test -z "$ac_objext" && ac_objext=o
7626
7627 # Determine commands to create old-style static archives.
7628 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7629 old_postinstall_cmds='chmod 644 $oldlib'
7630 old_postuninstall_cmds=
7631
7632 if test -n "$RANLIB"; then
7633   case $host_os in
7634   openbsd*)
7635     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7636     ;;
7637   *)
7638     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7639     ;;
7640   esac
7641   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7642 fi
7643
7644 # Only perform the check for file, if the check method requires it
7645 case $deplibs_check_method in
7646 file_magic*)
7647   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7648     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7649 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7650 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7651   echo $ECHO_N "(cached) $ECHO_C" >&6
7652 else
7653   case $MAGIC_CMD in
7654 [\\/*] |  ?:[\\/]*)
7655   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7656   ;;
7657 *)
7658   lt_save_MAGIC_CMD="$MAGIC_CMD"
7659   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7660   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7661   for ac_dir in $ac_dummy; do
7662     IFS="$lt_save_ifs"
7663     test -z "$ac_dir" && ac_dir=.
7664     if test -f $ac_dir/${ac_tool_prefix}file; then
7665       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7666       if test -n "$file_magic_test_file"; then
7667         case $deplibs_check_method in
7668         "file_magic "*)
7669           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7670           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7671           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7672             $EGREP "$file_magic_regex" > /dev/null; then
7673             :
7674           else
7675             cat <<EOF 1>&2
7676
7677 *** Warning: the command libtool uses to detect shared libraries,
7678 *** $file_magic_cmd, produces output that libtool cannot recognize.
7679 *** The result is that libtool may fail to recognize shared libraries
7680 *** as such.  This will affect the creation of libtool libraries that
7681 *** depend on shared libraries, but programs linked with such libtool
7682 *** libraries will work regardless of this problem.  Nevertheless, you
7683 *** may want to report the problem to your system manager and/or to
7684 *** bug-libtool@gnu.org
7685
7686 EOF
7687           fi ;;
7688         esac
7689       fi
7690       break
7691     fi
7692   done
7693   IFS="$lt_save_ifs"
7694   MAGIC_CMD="$lt_save_MAGIC_CMD"
7695   ;;
7696 esac
7697 fi
7698
7699 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7700 if test -n "$MAGIC_CMD"; then
7701   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7702 echo "${ECHO_T}$MAGIC_CMD" >&6
7703 else
7704   echo "$as_me:$LINENO: result: no" >&5
7705 echo "${ECHO_T}no" >&6
7706 fi
7707
7708 if test -z "$lt_cv_path_MAGIC_CMD"; then
7709   if test -n "$ac_tool_prefix"; then
7710     echo "$as_me:$LINENO: checking for file" >&5
7711 echo $ECHO_N "checking for file... $ECHO_C" >&6
7712 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7713   echo $ECHO_N "(cached) $ECHO_C" >&6
7714 else
7715   case $MAGIC_CMD in
7716 [\\/*] |  ?:[\\/]*)
7717   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7718   ;;
7719 *)
7720   lt_save_MAGIC_CMD="$MAGIC_CMD"
7721   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7722   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7723   for ac_dir in $ac_dummy; do
7724     IFS="$lt_save_ifs"
7725     test -z "$ac_dir" && ac_dir=.
7726     if test -f $ac_dir/file; then
7727       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7728       if test -n "$file_magic_test_file"; then
7729         case $deplibs_check_method in
7730         "file_magic "*)
7731           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7732           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7733           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7734             $EGREP "$file_magic_regex" > /dev/null; then
7735             :
7736           else
7737             cat <<EOF 1>&2
7738
7739 *** Warning: the command libtool uses to detect shared libraries,
7740 *** $file_magic_cmd, produces output that libtool cannot recognize.
7741 *** The result is that libtool may fail to recognize shared libraries
7742 *** as such.  This will affect the creation of libtool libraries that
7743 *** depend on shared libraries, but programs linked with such libtool
7744 *** libraries will work regardless of this problem.  Nevertheless, you
7745 *** may want to report the problem to your system manager and/or to
7746 *** bug-libtool@gnu.org
7747
7748 EOF
7749           fi ;;
7750         esac
7751       fi
7752       break
7753     fi
7754   done
7755   IFS="$lt_save_ifs"
7756   MAGIC_CMD="$lt_save_MAGIC_CMD"
7757   ;;
7758 esac
7759 fi
7760
7761 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7762 if test -n "$MAGIC_CMD"; then
7763   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7764 echo "${ECHO_T}$MAGIC_CMD" >&6
7765 else
7766   echo "$as_me:$LINENO: result: no" >&5
7767 echo "${ECHO_T}no" >&6
7768 fi
7769
7770   else
7771     MAGIC_CMD=:
7772   fi
7773 fi
7774
7775   fi
7776   ;;
7777 esac
7778
7779 enable_dlopen=no
7780 enable_win32_dll=yes
7781
7782 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7783 if test "${enable_libtool_lock+set}" = set; then
7784   enableval="$enable_libtool_lock"
7785
7786 fi;
7787 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7788
7789
7790 # Check whether --with-pic or --without-pic was given.
7791 if test "${with_pic+set}" = set; then
7792   withval="$with_pic"
7793   pic_mode="$withval"
7794 else
7795   pic_mode=default
7796 fi;
7797 test -z "$pic_mode" && pic_mode=default
7798
7799 # Use C for the default configuration in the libtool script
7800 tagname=
7801 lt_save_CC="$CC"
7802 ac_ext=c
7803 ac_cpp='$CPP $CPPFLAGS'
7804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7807
7808
7809 # Source file extension for C test sources.
7810 ac_ext=c
7811
7812 # Object file extension for compiled C test sources.
7813 objext=o
7814 objext=$objext
7815
7816 # Code to be used in simple compile tests
7817 lt_simple_compile_test_code="int some_variable = 0;\n"
7818
7819 # Code to be used in simple link tests
7820 lt_simple_link_test_code='int main(){return(0);}\n'
7821
7822
7823 # If no C compiler was specified, use CC.
7824 LTCC=${LTCC-"$CC"}
7825
7826 # Allow CC to be a program name with arguments.
7827 compiler=$CC
7828
7829
7830 #
7831 # Check for any special shared library compilation flags.
7832 #
7833 lt_prog_cc_shlib=
7834 if test "$GCC" = no; then
7835   case $host_os in
7836   sco3.2v5*)
7837     lt_prog_cc_shlib='-belf'
7838     ;;
7839   esac
7840 fi
7841 if test -n "$lt_prog_cc_shlib"; then
7842   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7843 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7844   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
7845   else
7846     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7847 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7848     lt_cv_prog_cc_can_build_shared=no
7849   fi
7850 fi
7851
7852
7853 #
7854 # Check to make sure the static flag actually works.
7855 #
7856 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7857 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7858 if test "${lt_prog_compiler_static_works+set}" = set; then
7859   echo $ECHO_N "(cached) $ECHO_C" >&6
7860 else
7861   lt_prog_compiler_static_works=no
7862    save_LDFLAGS="$LDFLAGS"
7863    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7864    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7865    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7866      # The compiler can only warn and ignore the option if not recognized
7867      # So say no if there are warnings
7868      if test -s conftest.err; then
7869        # Append any errors to the config.log.
7870        cat conftest.err 1>&5
7871      else
7872        lt_prog_compiler_static_works=yes
7873      fi
7874    fi
7875    $rm conftest*
7876    LDFLAGS="$save_LDFLAGS"
7877
7878 fi
7879 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7880 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7881
7882 if test x"$lt_prog_compiler_static_works" = xyes; then
7883     :
7884 else
7885     lt_prog_compiler_static=
7886 fi
7887
7888
7889
7890
7891 lt_prog_compiler_no_builtin_flag=
7892
7893 if test "$GCC" = yes; then
7894   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7895
7896
7897 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7898 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7899 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7900   echo $ECHO_N "(cached) $ECHO_C" >&6
7901 else
7902   lt_cv_prog_compiler_rtti_exceptions=no
7903   ac_outfile=conftest.$ac_objext
7904    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7905    lt_compiler_flag="-fno-rtti -fno-exceptions"
7906    # Insert the option either (1) after the last *FLAGS variable, or
7907    # (2) before a word containing "conftest.", or (3) at the end.
7908    # Note that $ac_compile itself does not contain backslashes and begins
7909    # with a dollar sign (not a hyphen), so the echo should work correctly.
7910    # The option is referenced via a variable to avoid confusing sed.
7911    lt_compile=`echo "$ac_compile" | $SED \
7912    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7913    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7914    -e 's:$: $lt_compiler_flag:'`
7915    (eval echo "\"\$as_me:7915: $lt_compile\"" >&5)
7916    (eval "$lt_compile" 2>conftest.err)
7917    ac_status=$?
7918    cat conftest.err >&5
7919    echo "$as_me:7919: \$? = $ac_status" >&5
7920    if (exit $ac_status) && test -s "$ac_outfile"; then
7921      # The compiler can only warn and ignore the option if not recognized
7922      # So say no if there are warnings
7923      if test ! -s conftest.err; then
7924        lt_cv_prog_compiler_rtti_exceptions=yes
7925      fi
7926    fi
7927    $rm conftest*
7928
7929 fi
7930 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7931 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7932
7933 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7934     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7935 else
7936     :
7937 fi
7938
7939 fi
7940
7941 lt_prog_compiler_wl=
7942 lt_prog_compiler_pic=
7943 lt_prog_compiler_static=
7944
7945 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7946 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7947
7948   if test "$GCC" = yes; then
7949     lt_prog_compiler_wl='-Wl,'
7950     lt_prog_compiler_static='-static'
7951
7952     case $host_os in
7953       aix*)
7954       # All AIX code is PIC.
7955       if test "$host_cpu" = ia64; then
7956         # AIX 5 now supports IA64 processor
7957         lt_prog_compiler_static='-Bstatic'
7958       fi
7959       ;;
7960
7961     amigaos*)
7962       # FIXME: we need at least 68020 code to build shared libraries, but
7963       # adding the `-m68020' flag to GCC prevents building anything better,
7964       # like `-m68040'.
7965       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7966       ;;
7967
7968     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7969       # PIC is the default for these OSes.
7970       ;;
7971
7972     mingw* | pw32* | os2*)
7973       # This hack is so that the source file can tell whether it is being
7974       # built for inclusion in a dll (and should export symbols for example).
7975       lt_prog_compiler_pic='-DDLL_EXPORT'
7976       ;;
7977
7978     darwin* | rhapsody*)
7979       # PIC is the default on this platform
7980       # Common symbols not allowed in MH_DYLIB files
7981       lt_prog_compiler_pic='-fno-common'
7982       ;;
7983
7984     msdosdjgpp*)
7985       # Just because we use GCC doesn't mean we suddenly get shared libraries
7986       # on systems that don't support them.
7987       lt_prog_compiler_can_build_shared=no
7988       enable_shared=no
7989       ;;
7990
7991     sysv4*MP*)
7992       if test -d /usr/nec; then
7993         lt_prog_compiler_pic=-Kconform_pic
7994       fi
7995       ;;
7996
7997     hpux*)
7998       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7999       # not for PA HP-UX.
8000       case "$host_cpu" in
8001       hppa*64*|ia64*)
8002         # +Z the default
8003         ;;
8004       *)
8005         lt_prog_compiler_pic='-fPIC'
8006         ;;
8007       esac
8008       ;;
8009
8010     *)
8011       lt_prog_compiler_pic='-fPIC'
8012       ;;
8013     esac
8014   else
8015     # PORTME Check for flag to pass linker flags through the system compiler.
8016     case $host_os in
8017     aix*)
8018       lt_prog_compiler_wl='-Wl,'
8019       if test "$host_cpu" = ia64; then
8020         # AIX 5 now supports IA64 processor
8021         lt_prog_compiler_static='-Bstatic'
8022       else
8023         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8024       fi
8025       ;;
8026
8027     mingw* | pw32* | os2*)
8028       # This hack is so that the source file can tell whether it is being
8029       # built for inclusion in a dll (and should export symbols for example).
8030       lt_prog_compiler_pic='-DDLL_EXPORT'
8031       ;;
8032
8033     hpux9* | hpux10* | hpux11*)
8034       lt_prog_compiler_wl='-Wl,'
8035       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8036       # not for PA HP-UX.
8037       case "$host_cpu" in
8038       hppa*64*|ia64*)
8039         # +Z the default
8040         ;;
8041       *)
8042         lt_prog_compiler_pic='+Z'
8043         ;;
8044       esac
8045       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8046       lt_prog_compiler_static='${wl}-a ${wl}archive'
8047       ;;
8048
8049     irix5* | irix6* | nonstopux*)
8050       lt_prog_compiler_wl='-Wl,'
8051       # PIC (with -KPIC) is the default.
8052       lt_prog_compiler_static='-non_shared'
8053       ;;
8054
8055     newsos6)
8056       lt_prog_compiler_pic='-KPIC'
8057       lt_prog_compiler_static='-Bstatic'
8058       ;;
8059
8060     linux*)
8061       case $CC in
8062       icc* | ecc*)
8063         lt_prog_compiler_wl='-Wl,'
8064         lt_prog_compiler_pic='-KPIC'
8065         lt_prog_compiler_static='-static'
8066         ;;
8067       ccc*)
8068         lt_prog_compiler_wl='-Wl,'
8069         # All Alpha code is PIC.
8070         lt_prog_compiler_static='-non_shared'
8071         ;;
8072       esac
8073       ;;
8074
8075     osf3* | osf4* | osf5*)
8076       lt_prog_compiler_wl='-Wl,'
8077       # All OSF/1 code is PIC.
8078       lt_prog_compiler_static='-non_shared'
8079       ;;
8080
8081     sco3.2v5*)
8082       lt_prog_compiler_pic='-Kpic'
8083       lt_prog_compiler_static='-dn'
8084       ;;
8085
8086     solaris*)
8087       lt_prog_compiler_wl='-Wl,'
8088       lt_prog_compiler_pic='-KPIC'
8089       lt_prog_compiler_static='-Bstatic'
8090       ;;
8091
8092     sunos4*)
8093       lt_prog_compiler_wl='-Qoption ld '
8094       lt_prog_compiler_pic='-PIC'
8095       lt_prog_compiler_static='-Bstatic'
8096       ;;
8097
8098     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8099       lt_prog_compiler_wl='-Wl,'
8100       lt_prog_compiler_pic='-KPIC'
8101       lt_prog_compiler_static='-Bstatic'
8102       ;;
8103
8104     sysv4*MP*)
8105       if test -d /usr/nec ;then
8106         lt_prog_compiler_pic='-Kconform_pic'
8107         lt_prog_compiler_static='-Bstatic'
8108       fi
8109       ;;
8110
8111     uts4*)
8112       lt_prog_compiler_pic='-pic'
8113       lt_prog_compiler_static='-Bstatic'
8114       ;;
8115
8116     *)
8117       lt_prog_compiler_can_build_shared=no
8118       ;;
8119     esac
8120   fi
8121
8122 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8123 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8124
8125 #
8126 # Check to make sure the PIC flag actually works.
8127 #
8128 if test -n "$lt_prog_compiler_pic"; then
8129
8130 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8131 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8132 if test "${lt_prog_compiler_pic_works+set}" = set; then
8133   echo $ECHO_N "(cached) $ECHO_C" >&6
8134 else
8135   lt_prog_compiler_pic_works=no
8136   ac_outfile=conftest.$ac_objext
8137    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8138    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8139    # Insert the option either (1) after the last *FLAGS variable, or
8140    # (2) before a word containing "conftest.", or (3) at the end.
8141    # Note that $ac_compile itself does not contain backslashes and begins
8142    # with a dollar sign (not a hyphen), so the echo should work correctly.
8143    # The option is referenced via a variable to avoid confusing sed.
8144    lt_compile=`echo "$ac_compile" | $SED \
8145    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8146    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8147    -e 's:$: $lt_compiler_flag:'`
8148    (eval echo "\"\$as_me:8148: $lt_compile\"" >&5)
8149    (eval "$lt_compile" 2>conftest.err)
8150    ac_status=$?
8151    cat conftest.err >&5
8152    echo "$as_me:8152: \$? = $ac_status" >&5
8153    if (exit $ac_status) && test -s "$ac_outfile"; then
8154      # The compiler can only warn and ignore the option if not recognized
8155      # So say no if there are warnings
8156      if test ! -s conftest.err; then
8157        lt_prog_compiler_pic_works=yes
8158      fi
8159    fi
8160    $rm conftest*
8161
8162 fi
8163 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8164 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8165
8166 if test x"$lt_prog_compiler_pic_works" = xyes; then
8167     case $lt_prog_compiler_pic in
8168      "" | " "*) ;;
8169      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8170      esac
8171 else
8172     lt_prog_compiler_pic=
8173      lt_prog_compiler_can_build_shared=no
8174 fi
8175
8176 fi
8177 case "$host_os" in
8178   # For platforms which do not support PIC, -DPIC is meaningless:
8179   *djgpp*)
8180     lt_prog_compiler_pic=
8181     ;;
8182   *)
8183     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8184     ;;
8185 esac
8186
8187 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8188 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8189 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8190   echo $ECHO_N "(cached) $ECHO_C" >&6
8191 else
8192   lt_cv_prog_compiler_c_o=no
8193    $rm -r conftest 2>/dev/null
8194    mkdir conftest
8195    cd conftest
8196    mkdir out
8197    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8198
8199    lt_compiler_flag="-o out/conftest2.$ac_objext"
8200    # Insert the option either (1) after the last *FLAGS variable, or
8201    # (2) before a word containing "conftest.", or (3) at the end.
8202    # Note that $ac_compile itself does not contain backslashes and begins
8203    # with a dollar sign (not a hyphen), so the echo should work correctly.
8204    lt_compile=`echo "$ac_compile" | $SED \
8205    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8206    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8207    -e 's:$: $lt_compiler_flag:'`
8208    (eval echo "\"\$as_me:8208: $lt_compile\"" >&5)
8209    (eval "$lt_compile" 2>out/conftest.err)
8210    ac_status=$?
8211    cat out/conftest.err >&5
8212    echo "$as_me:8212: \$? = $ac_status" >&5
8213    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8214    then
8215      # The compiler can only warn and ignore the option if not recognized
8216      # So say no if there are warnings
8217      if test ! -s out/conftest.err; then
8218        lt_cv_prog_compiler_c_o=yes
8219      fi
8220    fi
8221    chmod u+w .
8222    $rm conftest*
8223    # SGI C++ compiler will create directory out/ii_files/ for
8224    # template instantiation
8225    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8226    $rm out/* && rmdir out
8227    cd ..
8228    rmdir conftest
8229    $rm conftest*
8230
8231 fi
8232 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8233 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8234
8235
8236 hard_links="nottested"
8237 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8238   # do not overwrite the value of need_locks provided by the user
8239   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8240 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8241   hard_links=yes
8242   $rm conftest*
8243   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8244   touch conftest.a
8245   ln conftest.a conftest.b 2>&5 || hard_links=no
8246   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8247   echo "$as_me:$LINENO: result: $hard_links" >&5
8248 echo "${ECHO_T}$hard_links" >&6
8249   if test "$hard_links" = no; then
8250     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8251 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8252     need_locks=warn
8253   fi
8254 else
8255   need_locks=no
8256 fi
8257
8258 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8259 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8260
8261   runpath_var=
8262   allow_undefined_flag=
8263   enable_shared_with_static_runtimes=no
8264   archive_cmds=
8265   archive_expsym_cmds=
8266   old_archive_From_new_cmds=
8267   old_archive_from_expsyms_cmds=
8268   export_dynamic_flag_spec=
8269   whole_archive_flag_spec=
8270   thread_safe_flag_spec=
8271   hardcode_libdir_flag_spec=
8272   hardcode_libdir_flag_spec_ld=
8273   hardcode_libdir_separator=
8274   hardcode_direct=no
8275   hardcode_minus_L=no
8276   hardcode_shlibpath_var=unsupported
8277   link_all_deplibs=unknown
8278   hardcode_automatic=no
8279   module_cmds=
8280   module_expsym_cmds=
8281   always_export_symbols=no
8282   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8283   # include_expsyms should be a list of space-separated symbols to be *always*
8284   # included in the symbol list
8285   include_expsyms=
8286   # exclude_expsyms can be an extended regexp of symbols to exclude
8287   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8288   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8289   # as well as any symbol that contains `d'.
8290   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8291   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8292   # platforms (ab)use it in PIC code, but their linkers get confused if
8293   # the symbol is explicitly referenced.  Since portable code cannot
8294   # rely on this symbol name, it's probably fine to never include it in
8295   # preloaded symbol tables.
8296   extract_expsyms_cmds=
8297
8298   case $host_os in
8299   cygwin* | mingw* | pw32*)
8300     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8301     # When not using gcc, we currently assume that we are using
8302     # Microsoft Visual C++.
8303     if test "$GCC" != yes; then
8304       with_gnu_ld=no
8305     fi
8306     ;;
8307   openbsd*)
8308     with_gnu_ld=no
8309     ;;
8310   esac
8311
8312   ld_shlibs=yes
8313   if test "$with_gnu_ld" = yes; then
8314     # If archive_cmds runs LD, not CC, wlarc should be empty
8315     wlarc='${wl}'
8316
8317     # See if GNU ld supports shared libraries.
8318     case $host_os in
8319     aix3* | aix4* | aix5*)
8320       # On AIX/PPC, the GNU linker is very broken
8321       if test "$host_cpu" != ia64; then
8322         ld_shlibs=no
8323         cat <<EOF 1>&2
8324
8325 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8326 *** to be unable to reliably create shared libraries on AIX.
8327 *** Therefore, libtool is disabling shared libraries support.  If you
8328 *** really care for shared libraries, you may want to modify your PATH
8329 *** so that a non-GNU linker is found, and then restart.
8330
8331 EOF
8332       fi
8333       ;;
8334
8335     amigaos*)
8336       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)'
8337       hardcode_libdir_flag_spec='-L$libdir'
8338       hardcode_minus_L=yes
8339
8340       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8341       # that the semantics of dynamic libraries on AmigaOS, at least up
8342       # to version 4, is to share data among multiple programs linked
8343       # with the same dynamic library.  Since this doesn't match the
8344       # behavior of shared libraries on other platforms, we can't use
8345       # them.
8346       ld_shlibs=no
8347       ;;
8348
8349     beos*)
8350       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8351         allow_undefined_flag=unsupported
8352         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8353         # support --undefined.  This deserves some investigation.  FIXME
8354         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8355       else
8356         ld_shlibs=no
8357       fi
8358       ;;
8359
8360     cygwin* | mingw* | pw32*)
8361       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8362       # as there is no search path for DLLs.
8363       hardcode_libdir_flag_spec='-L$libdir'
8364       allow_undefined_flag=unsupported
8365       always_export_symbols=no
8366       enable_shared_with_static_runtimes=yes
8367       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8368
8369       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8370         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8371         # If the export-symbols file already is a .def file (1st line
8372         # is EXPORTS), use it as is; otherwise, prepend...
8373         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8374           cp $export_symbols $output_objdir/$soname.def;
8375         else
8376           echo EXPORTS > $output_objdir/$soname.def;
8377           cat $export_symbols >> $output_objdir/$soname.def;
8378         fi~
8379         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
8380       else
8381         ld_shlibs=no
8382       fi
8383       ;;
8384
8385     netbsd*)
8386       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8387         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8388         wlarc=
8389       else
8390         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8391         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8392       fi
8393       ;;
8394
8395     solaris* | sysv5*)
8396       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8397         ld_shlibs=no
8398         cat <<EOF 1>&2
8399
8400 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8401 *** create shared libraries on Solaris systems.  Therefore, libtool
8402 *** is disabling shared libraries support.  We urge you to upgrade GNU
8403 *** binutils to release 2.9.1 or newer.  Another option is to modify
8404 *** your PATH or compiler configuration so that the native linker is
8405 *** used, and then restart.
8406
8407 EOF
8408       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8409         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8410         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8411       else
8412         ld_shlibs=no
8413       fi
8414       ;;
8415
8416     sunos4*)
8417       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8418       wlarc=
8419       hardcode_direct=yes
8420       hardcode_shlibpath_var=no
8421       ;;
8422
8423   linux*)
8424     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
8425         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8426         archive_cmds="$tmp_archive_cmds"
8427       supports_anon_versioning=no
8428       case `$LD -v 2>/dev/null` in
8429         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8430         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8431         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8432         *\ 2.11.*) ;; # other 2.11 versions
8433         *) supports_anon_versioning=yes ;;
8434       esac
8435       if test $supports_anon_versioning = yes; then
8436         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8437 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8438 $echo "local: *; };" >> $output_objdir/$libname.ver~
8439         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8440       else
8441         archive_expsym_cmds="$tmp_archive_cmds"
8442       fi
8443     else
8444       ld_shlibs=no
8445     fi
8446     ;;
8447
8448     *)
8449       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8450         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8451         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8452       else
8453         ld_shlibs=no
8454       fi
8455       ;;
8456     esac
8457
8458     if test "$ld_shlibs" = yes; then
8459       runpath_var=LD_RUN_PATH
8460       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8461       export_dynamic_flag_spec='${wl}--export-dynamic'
8462       # ancient GNU ld didn't support --whole-archive et. al.
8463       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8464         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8465       else
8466         whole_archive_flag_spec=
8467       fi
8468     fi
8469   else
8470     # PORTME fill in a description of your system's linker (not GNU ld)
8471     case $host_os in
8472     aix3*)
8473       allow_undefined_flag=unsupported
8474       always_export_symbols=yes
8475       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'
8476       # Note: this linker hardcodes the directories in LIBPATH if there
8477       # are no directories specified by -L.
8478       hardcode_minus_L=yes
8479       if test "$GCC" = yes && test -z "$link_static_flag"; then
8480         # Neither direct hardcoding nor static linking is supported with a
8481         # broken collect2.
8482         hardcode_direct=unsupported
8483       fi
8484       ;;
8485
8486     aix4* | aix5*)
8487       if test "$host_cpu" = ia64; then
8488         # On IA64, the linker does run time linking by default, so we don't
8489         # have to do anything special.
8490         aix_use_runtimelinking=no
8491         exp_sym_flag='-Bexport'
8492         no_entry_flag=""
8493       else
8494         # If we're using GNU nm, then we don't want the "-C" option.
8495         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8496         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8497           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'
8498         else
8499           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'
8500         fi
8501         aix_use_runtimelinking=no
8502
8503         # Test if we are trying to use run time linking or normal
8504         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8505         # need to do runtime linking.
8506         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8507           for ld_flag in $LDFLAGS; do
8508           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8509             aix_use_runtimelinking=yes
8510             break
8511           fi
8512           done
8513         esac
8514
8515         exp_sym_flag='-bexport'
8516         no_entry_flag='-bnoentry'
8517       fi
8518
8519       # When large executables or shared objects are built, AIX ld can
8520       # have problems creating the table of contents.  If linking a library
8521       # or program results in "error TOC overflow" add -mminimal-toc to
8522       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8523       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8524
8525       archive_cmds=''
8526       hardcode_direct=yes
8527       hardcode_libdir_separator=':'
8528       link_all_deplibs=yes
8529
8530       if test "$GCC" = yes; then
8531         case $host_os in aix4.012|aix4.012.*)
8532         # We only want to do this on AIX 4.2 and lower, the check
8533         # below for broken collect2 doesn't work under 4.3+
8534           collect2name=`${CC} -print-prog-name=collect2`
8535           if test -f "$collect2name" && \
8536            strings "$collect2name" | grep resolve_lib_name >/dev/null
8537           then
8538           # We have reworked collect2
8539           hardcode_direct=yes
8540           else
8541           # We have old collect2
8542           hardcode_direct=unsupported
8543           # It fails to find uninstalled libraries when the uninstalled
8544           # path is not listed in the libpath.  Setting hardcode_minus_L
8545           # to unsupported forces relinking
8546           hardcode_minus_L=yes
8547           hardcode_libdir_flag_spec='-L$libdir'
8548           hardcode_libdir_separator=
8549           fi
8550         esac
8551         shared_flag='-shared'
8552       else
8553         # not using gcc
8554         if test "$host_cpu" = ia64; then
8555         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8556         # chokes on -Wl,-G. The following line is correct:
8557           shared_flag='-G'
8558         else
8559         if test "$aix_use_runtimelinking" = yes; then
8560             shared_flag='${wl}-G'
8561           else
8562             shared_flag='${wl}-bM:SRE'
8563         fi
8564         fi
8565       fi
8566
8567       # It seems that -bexpall does not export symbols beginning with
8568       # underscore (_), so it is better to generate a list of symbols to export.
8569       always_export_symbols=yes
8570       if test "$aix_use_runtimelinking" = yes; then
8571         # Warning - without using the other runtime loading flags (-brtl),
8572         # -berok will link without error, but may produce a broken library.
8573         allow_undefined_flag='-berok'
8574        # Determine the default libpath from the value encoded in an empty executable.
8575        cat >conftest.$ac_ext <<_ACEOF
8576 /* confdefs.h.  */
8577 _ACEOF
8578 cat confdefs.h >>conftest.$ac_ext
8579 cat >>conftest.$ac_ext <<_ACEOF
8580 /* end confdefs.h.  */
8581
8582 int
8583 main ()
8584 {
8585
8586   ;
8587   return 0;
8588 }
8589 _ACEOF
8590 rm -f conftest.$ac_objext conftest$ac_exeext
8591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8592   (eval $ac_link) 2>conftest.er1
8593   ac_status=$?
8594   grep -v '^ *+' conftest.er1 >conftest.err
8595   rm -f conftest.er1
8596   cat conftest.err >&5
8597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598   (exit $ac_status); } &&
8599          { ac_try='test -z "$ac_c_werror_flag"
8600                          || test ! -s conftest.err'
8601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8602   (eval $ac_try) 2>&5
8603   ac_status=$?
8604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605   (exit $ac_status); }; } &&
8606          { ac_try='test -s conftest$ac_exeext'
8607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8608   (eval $ac_try) 2>&5
8609   ac_status=$?
8610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611   (exit $ac_status); }; }; then
8612
8613 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8614 }'`
8615 # Check for a 64-bit object if we didn't find anything.
8616 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; }
8617 }'`; fi
8618 else
8619   echo "$as_me: failed program was:" >&5
8620 sed 's/^/| /' conftest.$ac_ext >&5
8621
8622 fi
8623 rm -f conftest.err conftest.$ac_objext \
8624       conftest$ac_exeext conftest.$ac_ext
8625 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8626
8627        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8628         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"
8629        else
8630         if test "$host_cpu" = ia64; then
8631           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8632           allow_undefined_flag="-z nodefs"
8633           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"
8634         else
8635          # Determine the default libpath from the value encoded in an empty executable.
8636          cat >conftest.$ac_ext <<_ACEOF
8637 /* confdefs.h.  */
8638 _ACEOF
8639 cat confdefs.h >>conftest.$ac_ext
8640 cat >>conftest.$ac_ext <<_ACEOF
8641 /* end confdefs.h.  */
8642
8643 int
8644 main ()
8645 {
8646
8647   ;
8648   return 0;
8649 }
8650 _ACEOF
8651 rm -f conftest.$ac_objext conftest$ac_exeext
8652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8653   (eval $ac_link) 2>conftest.er1
8654   ac_status=$?
8655   grep -v '^ *+' conftest.er1 >conftest.err
8656   rm -f conftest.er1
8657   cat conftest.err >&5
8658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659   (exit $ac_status); } &&
8660          { ac_try='test -z "$ac_c_werror_flag"
8661                          || test ! -s conftest.err'
8662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8663   (eval $ac_try) 2>&5
8664   ac_status=$?
8665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666   (exit $ac_status); }; } &&
8667          { ac_try='test -s conftest$ac_exeext'
8668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8669   (eval $ac_try) 2>&5
8670   ac_status=$?
8671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672   (exit $ac_status); }; }; then
8673
8674 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8675 }'`
8676 # Check for a 64-bit object if we didn't find anything.
8677 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; }
8678 }'`; fi
8679 else
8680   echo "$as_me: failed program was:" >&5
8681 sed 's/^/| /' conftest.$ac_ext >&5
8682
8683 fi
8684 rm -f conftest.err conftest.$ac_objext \
8685       conftest$ac_exeext conftest.$ac_ext
8686 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8687
8688          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8689           # Warning - without using the other run time loading flags,
8690           # -berok will link without error, but may produce a broken library.
8691           no_undefined_flag=' ${wl}-bernotok'
8692           allow_undefined_flag=' ${wl}-berok'
8693           # -bexpall does not export symbols beginning with underscore (_)
8694           always_export_symbols=yes
8695           # Exported symbols can be pulled into shared objects from archives
8696           whole_archive_flag_spec=' '
8697           archive_cmds_need_lc=yes
8698           # This is similar to how AIX traditionally builds it's shared libraries.
8699           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'
8700         fi
8701       fi
8702       ;;
8703
8704     amigaos*)
8705       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)'
8706       hardcode_libdir_flag_spec='-L$libdir'
8707       hardcode_minus_L=yes
8708       # see comment about different semantics on the GNU ld section
8709       ld_shlibs=no
8710       ;;
8711
8712     bsdi4*)
8713       export_dynamic_flag_spec=-rdynamic
8714       ;;
8715
8716     cygwin* | mingw* | pw32*)
8717       # When not using gcc, we currently assume that we are using
8718       # Microsoft Visual C++.
8719       # hardcode_libdir_flag_spec is actually meaningless, as there is
8720       # no search path for DLLs.
8721       hardcode_libdir_flag_spec=' '
8722       allow_undefined_flag=unsupported
8723       # Tell ltmain to make .lib files, not .a files.
8724       libext=lib
8725       # Tell ltmain to make .dll files, not .so files.
8726       shrext=".dll"
8727       # FIXME: Setting linknames here is a bad hack.
8728       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8729       # The linker will automatically build a .lib file if we build a DLL.
8730       old_archive_From_new_cmds='true'
8731       # FIXME: Should let the user specify the lib program.
8732       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8733       fix_srcfile_path='`cygpath -w "$srcfile"`'
8734       enable_shared_with_static_runtimes=yes
8735       ;;
8736
8737     darwin* | rhapsody*)
8738     if test "$GXX" = yes ; then
8739       archive_cmds_need_lc=no
8740       case "$host_os" in
8741       rhapsody* | darwin1.[012])
8742         allow_undefined_flag='-undefined suppress'
8743         ;;
8744       *) # Darwin 1.3 on
8745       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8746         allow_undefined_flag='-flat_namespace -undefined suppress'
8747       else
8748         case ${MACOSX_DEPLOYMENT_TARGET} in
8749           10.[012])
8750             allow_undefined_flag='-flat_namespace -undefined suppress'
8751             ;;
8752           10.*)
8753             allow_undefined_flag='-undefined dynamic_lookup'
8754             ;;
8755         esac
8756       fi
8757         ;;
8758       esac
8759         lt_int_apple_cc_single_mod=no
8760         output_verbose_link_cmd='echo'
8761         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
8762           lt_int_apple_cc_single_mod=yes
8763         fi
8764         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8765           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8766         else
8767         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'
8768       fi
8769       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8770       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8771         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8772           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}'
8773         else
8774           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}'
8775         fi
8776           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}'
8777       hardcode_direct=no
8778       hardcode_automatic=yes
8779       hardcode_shlibpath_var=unsupported
8780       whole_archive_flag_spec='-all_load $convenience'
8781       link_all_deplibs=yes
8782     else
8783       ld_shlibs=no
8784     fi
8785       ;;
8786
8787     dgux*)
8788       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8789       hardcode_libdir_flag_spec='-L$libdir'
8790       hardcode_shlibpath_var=no
8791       ;;
8792
8793     freebsd1*)
8794       ld_shlibs=no
8795       ;;
8796
8797     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8798     # support.  Future versions do this automatically, but an explicit c++rt0.o
8799     # does not break anything, and helps significantly (at the cost of a little
8800     # extra space).
8801     freebsd2.2*)
8802       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8803       hardcode_libdir_flag_spec='-R$libdir'
8804       hardcode_direct=yes
8805       hardcode_shlibpath_var=no
8806       ;;
8807
8808     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8809     freebsd2*)
8810       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8811       hardcode_direct=yes
8812       hardcode_minus_L=yes
8813       hardcode_shlibpath_var=no
8814       ;;
8815
8816     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8817     freebsd* | kfreebsd*-gnu)
8818       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8819       hardcode_libdir_flag_spec='-R$libdir'
8820       hardcode_direct=yes
8821       hardcode_shlibpath_var=no
8822       ;;
8823
8824     hpux9*)
8825       if test "$GCC" = yes; then
8826         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'
8827       else
8828         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'
8829       fi
8830       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8831       hardcode_libdir_separator=:
8832       hardcode_direct=yes
8833
8834       # hardcode_minus_L: Not really in the search PATH,
8835       # but as the default location of the library.
8836       hardcode_minus_L=yes
8837       export_dynamic_flag_spec='${wl}-E'
8838       ;;
8839
8840     hpux10* | hpux11*)
8841       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8842         case "$host_cpu" in
8843         hppa*64*|ia64*)
8844           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8845           ;;
8846         *)
8847           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8848           ;;
8849         esac
8850       else
8851         case "$host_cpu" in
8852         hppa*64*|ia64*)
8853           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8854           ;;
8855         *)
8856           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8857           ;;
8858         esac
8859       fi
8860       if test "$with_gnu_ld" = no; then
8861         case "$host_cpu" in
8862         hppa*64*)
8863           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8864           hardcode_libdir_flag_spec_ld='+b $libdir'
8865           hardcode_libdir_separator=:
8866           hardcode_direct=no
8867           hardcode_shlibpath_var=no
8868           ;;
8869         ia64*)
8870           hardcode_libdir_flag_spec='-L$libdir'
8871           hardcode_direct=no
8872           hardcode_shlibpath_var=no
8873
8874           # hardcode_minus_L: Not really in the search PATH,
8875           # but as the default location of the library.
8876           hardcode_minus_L=yes
8877           ;;
8878         *)
8879           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8880           hardcode_libdir_separator=:
8881           hardcode_direct=yes
8882           export_dynamic_flag_spec='${wl}-E'
8883
8884           # hardcode_minus_L: Not really in the search PATH,
8885           # but as the default location of the library.
8886           hardcode_minus_L=yes
8887           ;;
8888         esac
8889       fi
8890       ;;
8891
8892     irix5* | irix6* | nonstopux*)
8893       if test "$GCC" = yes; then
8894         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'
8895       else
8896         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'
8897         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8898       fi
8899       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8900       hardcode_libdir_separator=:
8901       link_all_deplibs=yes
8902       ;;
8903
8904     netbsd*)
8905       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8906         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8907       else
8908         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8909       fi
8910       hardcode_libdir_flag_spec='-R$libdir'
8911       hardcode_direct=yes
8912       hardcode_shlibpath_var=no
8913       ;;
8914
8915     newsos6)
8916       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8917       hardcode_direct=yes
8918       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8919       hardcode_libdir_separator=:
8920       hardcode_shlibpath_var=no
8921       ;;
8922
8923     openbsd*)
8924       hardcode_direct=yes
8925       hardcode_shlibpath_var=no
8926       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8927         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8928         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8929         export_dynamic_flag_spec='${wl}-E'
8930       else
8931        case $host_os in
8932          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8933            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8934            hardcode_libdir_flag_spec='-R$libdir'
8935            ;;
8936          *)
8937            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8938            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8939            ;;
8940        esac
8941       fi
8942       ;;
8943
8944     os2*)
8945       hardcode_libdir_flag_spec='-L$libdir'
8946       hardcode_minus_L=yes
8947       allow_undefined_flag=unsupported
8948       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'
8949       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8950       ;;
8951
8952     osf3*)
8953       if test "$GCC" = yes; then
8954         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8955         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'
8956       else
8957         allow_undefined_flag=' -expect_unresolved \*'
8958         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'
8959       fi
8960       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8961       hardcode_libdir_separator=:
8962       ;;
8963
8964     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8965       if test "$GCC" = yes; then
8966         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8967         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'
8968         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8969       else
8970         allow_undefined_flag=' -expect_unresolved \*'
8971         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'
8972         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8973         $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'
8974
8975         # Both c and cxx compiler support -rpath directly
8976         hardcode_libdir_flag_spec='-rpath $libdir'
8977       fi
8978       hardcode_libdir_separator=:
8979       ;;
8980
8981     sco3.2v5*)
8982       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8983       hardcode_shlibpath_var=no
8984       export_dynamic_flag_spec='${wl}-Bexport'
8985       runpath_var=LD_RUN_PATH
8986       hardcode_runpath_var=yes
8987       ;;
8988
8989     solaris*)
8990       no_undefined_flag=' -z text'
8991       if test "$GCC" = yes; then
8992         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8993         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8994           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8995       else
8996         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8997         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8998         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8999       fi
9000       hardcode_libdir_flag_spec='-R$libdir'
9001       hardcode_shlibpath_var=no
9002       case $host_os in
9003       solaris2.[0-5] | solaris2.[0-5].*) ;;
9004       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
9005         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9006       esac
9007       link_all_deplibs=yes
9008       ;;
9009
9010     sunos4*)
9011       if test "x$host_vendor" = xsequent; then
9012         # Use $CC to link under sequent, because it throws in some extra .o
9013         # files that make .init and .fini sections work.
9014         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9015       else
9016         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9017       fi
9018       hardcode_libdir_flag_spec='-L$libdir'
9019       hardcode_direct=yes
9020       hardcode_minus_L=yes
9021       hardcode_shlibpath_var=no
9022       ;;
9023
9024     sysv4)
9025       case $host_vendor in
9026         sni)
9027           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9028           hardcode_direct=yes # is this really true???
9029         ;;
9030         siemens)
9031           ## LD is ld it makes a PLAMLIB
9032           ## CC just makes a GrossModule.
9033           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9034           reload_cmds='$CC -r -o $output$reload_objs'
9035           hardcode_direct=no
9036         ;;
9037         motorola)
9038           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9039           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9040         ;;
9041       esac
9042       runpath_var='LD_RUN_PATH'
9043       hardcode_shlibpath_var=no
9044       ;;
9045
9046     sysv4.3*)
9047       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9048       hardcode_shlibpath_var=no
9049       export_dynamic_flag_spec='-Bexport'
9050       ;;
9051
9052     sysv4*MP*)
9053       if test -d /usr/nec; then
9054         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9055         hardcode_shlibpath_var=no
9056         runpath_var=LD_RUN_PATH
9057         hardcode_runpath_var=yes
9058         ld_shlibs=yes
9059       fi
9060       ;;
9061
9062     sysv4.2uw2*)
9063       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9064       hardcode_direct=yes
9065       hardcode_minus_L=no
9066       hardcode_shlibpath_var=no
9067       hardcode_runpath_var=yes
9068       runpath_var=LD_RUN_PATH
9069       ;;
9070
9071    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
9072       no_undefined_flag='${wl}-z ${wl}text'
9073       if test "$GCC" = yes; then
9074         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9075       else
9076         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9077       fi
9078       runpath_var='LD_RUN_PATH'
9079       hardcode_shlibpath_var=no
9080       ;;
9081
9082     sysv5*)
9083       no_undefined_flag=' -z text'
9084       # $CC -shared without GNU ld will not create a library from C++
9085       # object files and a static libstdc++, better avoid it by now
9086       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9087       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9088                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9089       hardcode_libdir_flag_spec=
9090       hardcode_shlibpath_var=no
9091       runpath_var='LD_RUN_PATH'
9092       ;;
9093
9094     uts4*)
9095       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9096       hardcode_libdir_flag_spec='-L$libdir'
9097       hardcode_shlibpath_var=no
9098       ;;
9099
9100     *)
9101       ld_shlibs=no
9102       ;;
9103     esac
9104   fi
9105
9106 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9107 echo "${ECHO_T}$ld_shlibs" >&6
9108 test "$ld_shlibs" = no && can_build_shared=no
9109
9110 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9111 if test "$GCC" = yes; then
9112   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9113 fi
9114
9115 #
9116 # Do we need to explicitly link libc?
9117 #
9118 case "x$archive_cmds_need_lc" in
9119 x|xyes)
9120   # Assume -lc should be added
9121   archive_cmds_need_lc=yes
9122
9123   if test "$enable_shared" = yes && test "$GCC" = yes; then
9124     case $archive_cmds in
9125     *'~'*)
9126       # FIXME: we may have to deal with multi-command sequences.
9127       ;;
9128     '$CC '*)
9129       # Test whether the compiler implicitly links with -lc since on some
9130       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9131       # to ld, don't add -lc before -lgcc.
9132       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9133 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9134       $rm conftest*
9135       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9136
9137       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9138   (eval $ac_compile) 2>&5
9139   ac_status=$?
9140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141   (exit $ac_status); } 2>conftest.err; then
9142         soname=conftest
9143         lib=conftest
9144         libobjs=conftest.$ac_objext
9145         deplibs=
9146         wl=$lt_prog_compiler_wl
9147         compiler_flags=-v
9148         linker_flags=-v
9149         verstring=
9150         output_objdir=.
9151         libname=conftest
9152         lt_save_allow_undefined_flag=$allow_undefined_flag
9153         allow_undefined_flag=
9154         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9155   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9156   ac_status=$?
9157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158   (exit $ac_status); }
9159         then
9160           archive_cmds_need_lc=no
9161         else
9162           archive_cmds_need_lc=yes
9163         fi
9164         allow_undefined_flag=$lt_save_allow_undefined_flag
9165       else
9166         cat conftest.err 1>&5
9167       fi
9168       $rm conftest*
9169       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9170 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9171       ;;
9172     esac
9173   fi
9174   ;;
9175 esac
9176
9177 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9178 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9179 library_names_spec=
9180 libname_spec='lib$name'
9181 soname_spec=
9182 shrext=".so"
9183 postinstall_cmds=
9184 postuninstall_cmds=
9185 finish_cmds=
9186 finish_eval=
9187 shlibpath_var=
9188 shlibpath_overrides_runpath=unknown
9189 version_type=none
9190 dynamic_linker="$host_os ld.so"
9191 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9192 if test "$GCC" = yes; then
9193   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9194   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9195     # if the path contains ";" then we assume it to be the separator
9196     # otherwise default to the standard path separator (i.e. ":") - it is
9197     # assumed that no part of a normal pathname contains ";" but that should
9198     # okay in the real world where ";" in dirpaths is itself problematic.
9199     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9200   else
9201     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9202   fi
9203 else
9204   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9205 fi
9206 need_lib_prefix=unknown
9207 hardcode_into_libs=no
9208
9209 # when you set need_version to no, make sure it does not cause -set_version
9210 # flags to be left without arguments
9211 need_version=unknown
9212
9213 case $host_os in
9214 aix3*)
9215   version_type=linux
9216   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9217   shlibpath_var=LIBPATH
9218
9219   # AIX 3 has no versioning support, so we append a major version to the name.
9220   soname_spec='${libname}${release}${shared_ext}$major'
9221   ;;
9222
9223 aix4* | aix5*)
9224   version_type=linux
9225   need_lib_prefix=no
9226   need_version=no
9227   hardcode_into_libs=yes
9228   if test "$host_cpu" = ia64; then
9229     # AIX 5 supports IA64
9230     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9231     shlibpath_var=LD_LIBRARY_PATH
9232   else
9233     # With GCC up to 2.95.x, collect2 would create an import file
9234     # for dependence libraries.  The import file would start with
9235     # the line `#! .'.  This would cause the generated library to
9236     # depend on `.', always an invalid library.  This was fixed in
9237     # development snapshots of GCC prior to 3.0.
9238     case $host_os in
9239       aix4 | aix4.[01] | aix4.[01].*)
9240       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9241            echo ' yes '
9242            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9243         :
9244       else
9245         can_build_shared=no
9246       fi
9247       ;;
9248     esac
9249     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9250     # soname into executable. Probably we can add versioning support to
9251     # collect2, so additional links can be useful in future.
9252     if test "$aix_use_runtimelinking" = yes; then
9253       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9254       # instead of lib<name>.a to let people know that these are not
9255       # typical AIX shared libraries.
9256       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9257     else
9258       # We preserve .a as extension for shared libraries through AIX4.2
9259       # and later when we are not doing run time linking.
9260       library_names_spec='${libname}${release}.a $libname.a'
9261       soname_spec='${libname}${release}${shared_ext}$major'
9262     fi
9263     shlibpath_var=LIBPATH
9264   fi
9265   ;;
9266
9267 amigaos*)
9268   library_names_spec='$libname.ixlibrary $libname.a'
9269   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9270   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'
9271   ;;
9272
9273 beos*)
9274   library_names_spec='${libname}${shared_ext}'
9275   dynamic_linker="$host_os ld.so"
9276   shlibpath_var=LIBRARY_PATH
9277   ;;
9278
9279 bsdi4*)
9280   version_type=linux
9281   need_version=no
9282   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9283   soname_spec='${libname}${release}${shared_ext}$major'
9284   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9285   shlibpath_var=LD_LIBRARY_PATH
9286   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9287   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9288   # the default ld.so.conf also contains /usr/contrib/lib and
9289   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9290   # libtool to hard-code these into programs
9291   ;;
9292
9293 cygwin* | mingw* | pw32*)
9294   version_type=windows
9295   shrext=".dll"
9296   need_version=no
9297   need_lib_prefix=no
9298
9299   case $GCC,$host_os in
9300   yes,cygwin* | yes,mingw* | yes,pw32*)
9301     library_names_spec='$libname.dll.a'
9302     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9303     postinstall_cmds='base_file=`basename \${file}`~
9304       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9305       dldir=$destdir/`dirname \$dlpath`~
9306       test -d \$dldir || mkdir -p \$dldir~
9307       $install_prog $dir/$dlname \$dldir/$dlname'
9308     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9309       dlpath=$dir/\$dldll~
9310        $rm \$dlpath'
9311     shlibpath_overrides_runpath=yes
9312
9313     case $host_os in
9314     cygwin*)
9315       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9316       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9317       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9318       ;;
9319     mingw*)
9320       # MinGW DLLs use traditional 'lib' prefix
9321       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9322       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9323       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9324         # It is most probably a Windows format PATH printed by
9325         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9326         # path with ; separators, and with drive letters. We can handle the
9327         # drive letters (cygwin fileutils understands them), so leave them,
9328         # especially as we might pass files found there to a mingw objdump,
9329         # which wouldn't understand a cygwinified path. Ahh.
9330         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9331       else
9332         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9333       fi
9334       ;;
9335     pw32*)
9336       # pw32 DLLs use 'pw' prefix rather than 'lib'
9337       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
9338       ;;
9339     esac
9340     ;;
9341
9342   *)
9343     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9344     ;;
9345   esac
9346   dynamic_linker='Win32 ld.exe'
9347   # FIXME: first we should search . and the directory the executable is in
9348   shlibpath_var=PATH
9349   ;;
9350
9351 darwin* | rhapsody*)
9352   dynamic_linker="$host_os dyld"
9353   version_type=darwin
9354   need_lib_prefix=no
9355   need_version=no
9356   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9357   soname_spec='${libname}${release}${major}$shared_ext'
9358   shlibpath_overrides_runpath=yes
9359   shlibpath_var=DYLD_LIBRARY_PATH
9360   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
9361   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9362   if test "$GCC" = yes; then
9363     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"`
9364   else
9365     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9366   fi
9367   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9368   ;;
9369
9370 dgux*)
9371   version_type=linux
9372   need_lib_prefix=no
9373   need_version=no
9374   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9375   soname_spec='${libname}${release}${shared_ext}$major'
9376   shlibpath_var=LD_LIBRARY_PATH
9377   ;;
9378
9379 freebsd1*)
9380   dynamic_linker=no
9381   ;;
9382
9383 kfreebsd*-gnu)
9384   version_type=linux
9385   need_lib_prefix=no
9386   need_version=no
9387   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9388   soname_spec='${libname}${release}${shared_ext}$major'
9389   shlibpath_var=LD_LIBRARY_PATH
9390   shlibpath_overrides_runpath=no
9391   hardcode_into_libs=yes
9392   dynamic_linker='GNU ld.so'
9393   ;;
9394
9395 freebsd*)
9396   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
9397   version_type=freebsd-$objformat
9398   case $version_type in
9399     freebsd-elf*)
9400       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9401       need_version=no
9402       need_lib_prefix=no
9403       ;;
9404     freebsd-*)
9405       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9406       need_version=yes
9407       ;;
9408   esac
9409   shlibpath_var=LD_LIBRARY_PATH
9410   case $host_os in
9411   freebsd2*)
9412     shlibpath_overrides_runpath=yes
9413     ;;
9414   freebsd3.01* | freebsdelf3.01*)
9415     shlibpath_overrides_runpath=yes
9416     hardcode_into_libs=yes
9417     ;;
9418   *) # from 3.2 on
9419     shlibpath_overrides_runpath=no
9420     hardcode_into_libs=yes
9421     ;;
9422   esac
9423   ;;
9424
9425 gnu*)
9426   version_type=linux
9427   need_lib_prefix=no
9428   need_version=no
9429   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9430   soname_spec='${libname}${release}${shared_ext}$major'
9431   shlibpath_var=LD_LIBRARY_PATH
9432   hardcode_into_libs=yes
9433   ;;
9434
9435 hpux9* | hpux10* | hpux11*)
9436   # Give a soname corresponding to the major version so that dld.sl refuses to
9437   # link against other versions.
9438   version_type=sunos
9439   need_lib_prefix=no
9440   need_version=no
9441   case "$host_cpu" in
9442   ia64*)
9443     shrext='.so'
9444     hardcode_into_libs=yes
9445     dynamic_linker="$host_os dld.so"
9446     shlibpath_var=LD_LIBRARY_PATH
9447     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9448     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9449     soname_spec='${libname}${release}${shared_ext}$major'
9450     if test "X$HPUX_IA64_MODE" = X32; then
9451       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9452     else
9453       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9454     fi
9455     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9456     ;;
9457    hppa*64*)
9458      shrext='.sl'
9459      hardcode_into_libs=yes
9460      dynamic_linker="$host_os dld.sl"
9461      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9462      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9463      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9464      soname_spec='${libname}${release}${shared_ext}$major'
9465      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9466      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9467      ;;
9468    *)
9469     shrext='.sl'
9470     dynamic_linker="$host_os dld.sl"
9471     shlibpath_var=SHLIB_PATH
9472     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9473     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9474     soname_spec='${libname}${release}${shared_ext}$major'
9475     ;;
9476   esac
9477   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9478   postinstall_cmds='chmod 555 $lib'
9479   ;;
9480
9481 irix5* | irix6* | nonstopux*)
9482   case $host_os in
9483     nonstopux*) version_type=nonstopux ;;
9484     *)
9485         if test "$lt_cv_prog_gnu_ld" = yes; then
9486                 version_type=linux
9487         else
9488                 version_type=irix
9489         fi ;;
9490   esac
9491   need_lib_prefix=no
9492   need_version=no
9493   soname_spec='${libname}${release}${shared_ext}$major'
9494   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9495   case $host_os in
9496   irix5* | nonstopux*)
9497     libsuff= shlibsuff=
9498     ;;
9499   *)
9500     case $LD in # libtool.m4 will add one of these switches to LD
9501     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9502       libsuff= shlibsuff= libmagic=32-bit;;
9503     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9504       libsuff=32 shlibsuff=N32 libmagic=N32;;
9505     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9506       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9507     *) libsuff= shlibsuff= libmagic=never-match;;
9508     esac
9509     ;;
9510   esac
9511   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9512   shlibpath_overrides_runpath=no
9513   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9514   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9515   hardcode_into_libs=yes
9516   ;;
9517
9518 # No shared lib support for Linux oldld, aout, or coff.
9519 linux*oldld* | linux*aout* | linux*coff*)
9520   dynamic_linker=no
9521   ;;
9522
9523 # This must be Linux ELF.
9524 linux*)
9525   version_type=linux
9526   need_lib_prefix=no
9527   need_version=no
9528   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9529   soname_spec='${libname}${release}${shared_ext}$major'
9530   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9531   shlibpath_var=LD_LIBRARY_PATH
9532   shlibpath_overrides_runpath=no
9533   # This implies no fast_install, which is unacceptable.
9534   # Some rework will be needed to allow for fast_install
9535   # before this can be enabled.
9536   hardcode_into_libs=yes
9537
9538   # Append ld.so.conf contents to the search path
9539   if test -f /etc/ld.so.conf; then
9540     ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
9541     sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
9542   fi
9543
9544   # We used to test for /lib/ld.so.1 and disable shared libraries on
9545   # powerpc, because MkLinux only supported shared libraries with the
9546   # GNU dynamic linker.  Since this was broken with cross compilers,
9547   # most powerpc-linux boxes support dynamic linking these days and
9548   # people can always --disable-shared, the test was removed, and we
9549   # assume the GNU/Linux dynamic linker is in use.
9550   dynamic_linker='GNU/Linux ld.so'
9551   ;;
9552
9553 knetbsd*-gnu)
9554   version_type=linux
9555   need_lib_prefix=no
9556   need_version=no
9557   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9558   soname_spec='${libname}${release}${shared_ext}$major'
9559   shlibpath_var=LD_LIBRARY_PATH
9560   shlibpath_overrides_runpath=no
9561   hardcode_into_libs=yes
9562   dynamic_linker='GNU ld.so'
9563   ;;
9564
9565 netbsd*)
9566   version_type=sunos
9567   need_lib_prefix=no
9568   need_version=no
9569   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9570     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9571     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9572     dynamic_linker='NetBSD (a.out) ld.so'
9573   else
9574     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9575     soname_spec='${libname}${release}${shared_ext}$major'
9576     dynamic_linker='NetBSD ld.elf_so'
9577   fi
9578   shlibpath_var=LD_LIBRARY_PATH
9579   shlibpath_overrides_runpath=yes
9580   hardcode_into_libs=yes
9581   ;;
9582
9583 newsos6)
9584   version_type=linux
9585   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9586   shlibpath_var=LD_LIBRARY_PATH
9587   shlibpath_overrides_runpath=yes
9588   ;;
9589
9590 nto-qnx*)
9591   version_type=linux
9592   need_lib_prefix=no
9593   need_version=no
9594   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9595   soname_spec='${libname}${release}${shared_ext}$major'
9596   shlibpath_var=LD_LIBRARY_PATH
9597   shlibpath_overrides_runpath=yes
9598   ;;
9599
9600 openbsd*)
9601   version_type=sunos
9602   need_lib_prefix=no
9603   need_version=yes
9604   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9605   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9606   shlibpath_var=LD_LIBRARY_PATH
9607   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9608     case $host_os in
9609       openbsd2.[89] | openbsd2.[89].*)
9610         shlibpath_overrides_runpath=no
9611         ;;
9612       *)
9613         shlibpath_overrides_runpath=yes
9614         ;;
9615       esac
9616   else
9617     shlibpath_overrides_runpath=yes
9618   fi
9619   ;;
9620
9621 os2*)
9622   libname_spec='$name'
9623   shrext=".dll"
9624   need_lib_prefix=no
9625   library_names_spec='$libname${shared_ext} $libname.a'
9626   dynamic_linker='OS/2 ld.exe'
9627   shlibpath_var=LIBPATH
9628   ;;
9629
9630 osf3* | osf4* | osf5*)
9631   version_type=osf
9632   need_lib_prefix=no
9633   need_version=no
9634   soname_spec='${libname}${release}${shared_ext}$major'
9635   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9636   shlibpath_var=LD_LIBRARY_PATH
9637   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9638   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9639   ;;
9640
9641 sco3.2v5*)
9642   version_type=osf
9643   soname_spec='${libname}${release}${shared_ext}$major'
9644   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9645   shlibpath_var=LD_LIBRARY_PATH
9646   ;;
9647
9648 solaris*)
9649   version_type=linux
9650   need_lib_prefix=no
9651   need_version=no
9652   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9653   soname_spec='${libname}${release}${shared_ext}$major'
9654   shlibpath_var=LD_LIBRARY_PATH
9655   shlibpath_overrides_runpath=yes
9656   hardcode_into_libs=yes
9657   # ldd complains unless libraries are executable
9658   postinstall_cmds='chmod +x $lib'
9659   ;;
9660
9661 sunos4*)
9662   version_type=sunos
9663   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9664   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9665   shlibpath_var=LD_LIBRARY_PATH
9666   shlibpath_overrides_runpath=yes
9667   if test "$with_gnu_ld" = yes; then
9668     need_lib_prefix=no
9669   fi
9670   need_version=yes
9671   ;;
9672
9673 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9674   version_type=linux
9675   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9676   soname_spec='${libname}${release}${shared_ext}$major'
9677   shlibpath_var=LD_LIBRARY_PATH
9678   case $host_vendor in
9679     sni)
9680       shlibpath_overrides_runpath=no
9681       need_lib_prefix=no
9682       export_dynamic_flag_spec='${wl}-Blargedynsym'
9683       runpath_var=LD_RUN_PATH
9684       ;;
9685     siemens)
9686       need_lib_prefix=no
9687       ;;
9688     motorola)
9689       need_lib_prefix=no
9690       need_version=no
9691       shlibpath_overrides_runpath=no
9692       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9693       ;;
9694   esac
9695   ;;
9696
9697 sysv4*MP*)
9698   if test -d /usr/nec ;then
9699     version_type=linux
9700     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9701     soname_spec='$libname${shared_ext}.$major'
9702     shlibpath_var=LD_LIBRARY_PATH
9703   fi
9704   ;;
9705
9706 uts4*)
9707   version_type=linux
9708   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9709   soname_spec='${libname}${release}${shared_ext}$major'
9710   shlibpath_var=LD_LIBRARY_PATH
9711   ;;
9712
9713 *)
9714   dynamic_linker=no
9715   ;;
9716 esac
9717 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9718 echo "${ECHO_T}$dynamic_linker" >&6
9719 test "$dynamic_linker" = no && can_build_shared=no
9720
9721 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9722 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9723 hardcode_action=
9724 if test -n "$hardcode_libdir_flag_spec" || \
9725    test -n "$runpath_var " || \
9726    test "X$hardcode_automatic"="Xyes" ; then
9727
9728   # We can hardcode non-existant directories.
9729   if test "$hardcode_direct" != no &&
9730      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9731      # have to relink, otherwise we might link with an installed library
9732      # when we should be linking with a yet-to-be-installed one
9733      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9734      test "$hardcode_minus_L" != no; then
9735     # Linking always hardcodes the temporary library directory.
9736     hardcode_action=relink
9737   else
9738     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9739     hardcode_action=immediate
9740   fi
9741 else
9742   # We cannot hardcode anything, or else we can only hardcode existing
9743   # directories.
9744   hardcode_action=unsupported
9745 fi
9746 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9747 echo "${ECHO_T}$hardcode_action" >&6
9748
9749 if test "$hardcode_action" = relink; then
9750   # Fast installation is not supported
9751   enable_fast_install=no
9752 elif test "$shlibpath_overrides_runpath" = yes ||
9753      test "$enable_shared" = no; then
9754   # Fast installation is not necessary
9755   enable_fast_install=needless
9756 fi
9757
9758 striplib=
9759 old_striplib=
9760 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9761 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9762 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9763   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9764   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9765   echo "$as_me:$LINENO: result: yes" >&5
9766 echo "${ECHO_T}yes" >&6
9767 else
9768 # FIXME - insert some real tests, host_os isn't really good enough
9769   case $host_os in
9770    darwin*)
9771        if test -n "$STRIP" ; then
9772          striplib="$STRIP -x"
9773          echo "$as_me:$LINENO: result: yes" >&5
9774 echo "${ECHO_T}yes" >&6
9775        else
9776   echo "$as_me:$LINENO: result: no" >&5
9777 echo "${ECHO_T}no" >&6
9778 fi
9779        ;;
9780    *)
9781   echo "$as_me:$LINENO: result: no" >&5
9782 echo "${ECHO_T}no" >&6
9783     ;;
9784   esac
9785 fi
9786
9787 if test "x$enable_dlopen" != xyes; then
9788   enable_dlopen=unknown
9789   enable_dlopen_self=unknown
9790   enable_dlopen_self_static=unknown
9791 else
9792   lt_cv_dlopen=no
9793   lt_cv_dlopen_libs=
9794
9795   case $host_os in
9796   beos*)
9797     lt_cv_dlopen="load_add_on"
9798     lt_cv_dlopen_libs=
9799     lt_cv_dlopen_self=yes
9800     ;;
9801
9802   mingw* | pw32*)
9803     lt_cv_dlopen="LoadLibrary"
9804     lt_cv_dlopen_libs=
9805    ;;
9806
9807   cygwin*)
9808     lt_cv_dlopen="dlopen"
9809     lt_cv_dlopen_libs=
9810    ;;
9811
9812   darwin*)
9813   # if libdl is installed we need to link against it
9814     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9815 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9816 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9817   echo $ECHO_N "(cached) $ECHO_C" >&6
9818 else
9819   ac_check_lib_save_LIBS=$LIBS
9820 LIBS="-ldl  $LIBS"
9821 cat >conftest.$ac_ext <<_ACEOF
9822 /* confdefs.h.  */
9823 _ACEOF
9824 cat confdefs.h >>conftest.$ac_ext
9825 cat >>conftest.$ac_ext <<_ACEOF
9826 /* end confdefs.h.  */
9827
9828 /* Override any gcc2 internal prototype to avoid an error.  */
9829 #ifdef __cplusplus
9830 extern "C"
9831 #endif
9832 /* We use char because int might match the return type of a gcc2
9833    builtin and then its argument prototype would still apply.  */
9834 char dlopen ();
9835 int
9836 main ()
9837 {
9838 dlopen ();
9839   ;
9840   return 0;
9841 }
9842 _ACEOF
9843 rm -f conftest.$ac_objext conftest$ac_exeext
9844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9845   (eval $ac_link) 2>conftest.er1
9846   ac_status=$?
9847   grep -v '^ *+' conftest.er1 >conftest.err
9848   rm -f conftest.er1
9849   cat conftest.err >&5
9850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851   (exit $ac_status); } &&
9852          { ac_try='test -z "$ac_c_werror_flag"
9853                          || test ! -s conftest.err'
9854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9855   (eval $ac_try) 2>&5
9856   ac_status=$?
9857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858   (exit $ac_status); }; } &&
9859          { ac_try='test -s conftest$ac_exeext'
9860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9861   (eval $ac_try) 2>&5
9862   ac_status=$?
9863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864   (exit $ac_status); }; }; then
9865   ac_cv_lib_dl_dlopen=yes
9866 else
9867   echo "$as_me: failed program was:" >&5
9868 sed 's/^/| /' conftest.$ac_ext >&5
9869
9870 ac_cv_lib_dl_dlopen=no
9871 fi
9872 rm -f conftest.err conftest.$ac_objext \
9873       conftest$ac_exeext conftest.$ac_ext
9874 LIBS=$ac_check_lib_save_LIBS
9875 fi
9876 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9877 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9878 if test $ac_cv_lib_dl_dlopen = yes; then
9879   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9880 else
9881
9882     lt_cv_dlopen="dyld"
9883     lt_cv_dlopen_libs=
9884     lt_cv_dlopen_self=yes
9885
9886 fi
9887
9888    ;;
9889
9890   *)
9891     echo "$as_me:$LINENO: checking for shl_load" >&5
9892 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9893 if test "${ac_cv_func_shl_load+set}" = set; then
9894   echo $ECHO_N "(cached) $ECHO_C" >&6
9895 else
9896   cat >conftest.$ac_ext <<_ACEOF
9897 /* confdefs.h.  */
9898 _ACEOF
9899 cat confdefs.h >>conftest.$ac_ext
9900 cat >>conftest.$ac_ext <<_ACEOF
9901 /* end confdefs.h.  */
9902 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9903    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9904 #define shl_load innocuous_shl_load
9905
9906 /* System header to define __stub macros and hopefully few prototypes,
9907     which can conflict with char shl_load (); below.
9908     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9909     <limits.h> exists even on freestanding compilers.  */
9910
9911 #ifdef __STDC__
9912 # include <limits.h>
9913 #else
9914 # include <assert.h>
9915 #endif
9916
9917 #undef shl_load
9918
9919 /* Override any gcc2 internal prototype to avoid an error.  */
9920 #ifdef __cplusplus
9921 extern "C"
9922 {
9923 #endif
9924 /* We use char because int might match the return type of a gcc2
9925    builtin and then its argument prototype would still apply.  */
9926 char shl_load ();
9927 /* The GNU C library defines this for functions which it implements
9928     to always fail with ENOSYS.  Some functions are actually named
9929     something starting with __ and the normal name is an alias.  */
9930 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9931 choke me
9932 #else
9933 char (*f) () = shl_load;
9934 #endif
9935 #ifdef __cplusplus
9936 }
9937 #endif
9938
9939 int
9940 main ()
9941 {
9942 return f != shl_load;
9943   ;
9944   return 0;
9945 }
9946 _ACEOF
9947 rm -f conftest.$ac_objext conftest$ac_exeext
9948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9949   (eval $ac_link) 2>conftest.er1
9950   ac_status=$?
9951   grep -v '^ *+' conftest.er1 >conftest.err
9952   rm -f conftest.er1
9953   cat conftest.err >&5
9954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955   (exit $ac_status); } &&
9956          { ac_try='test -z "$ac_c_werror_flag"
9957                          || test ! -s conftest.err'
9958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9959   (eval $ac_try) 2>&5
9960   ac_status=$?
9961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962   (exit $ac_status); }; } &&
9963          { ac_try='test -s conftest$ac_exeext'
9964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9965   (eval $ac_try) 2>&5
9966   ac_status=$?
9967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968   (exit $ac_status); }; }; then
9969   ac_cv_func_shl_load=yes
9970 else
9971   echo "$as_me: failed program was:" >&5
9972 sed 's/^/| /' conftest.$ac_ext >&5
9973
9974 ac_cv_func_shl_load=no
9975 fi
9976 rm -f conftest.err conftest.$ac_objext \
9977       conftest$ac_exeext conftest.$ac_ext
9978 fi
9979 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9980 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9981 if test $ac_cv_func_shl_load = yes; then
9982   lt_cv_dlopen="shl_load"
9983 else
9984   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9985 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9986 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9987   echo $ECHO_N "(cached) $ECHO_C" >&6
9988 else
9989   ac_check_lib_save_LIBS=$LIBS
9990 LIBS="-ldld  $LIBS"
9991 cat >conftest.$ac_ext <<_ACEOF
9992 /* confdefs.h.  */
9993 _ACEOF
9994 cat confdefs.h >>conftest.$ac_ext
9995 cat >>conftest.$ac_ext <<_ACEOF
9996 /* end confdefs.h.  */
9997
9998 /* Override any gcc2 internal prototype to avoid an error.  */
9999 #ifdef __cplusplus
10000 extern "C"
10001 #endif
10002 /* We use char because int might match the return type of a gcc2
10003    builtin and then its argument prototype would still apply.  */
10004 char shl_load ();
10005 int
10006 main ()
10007 {
10008 shl_load ();
10009   ;
10010   return 0;
10011 }
10012 _ACEOF
10013 rm -f conftest.$ac_objext conftest$ac_exeext
10014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10015   (eval $ac_link) 2>conftest.er1
10016   ac_status=$?
10017   grep -v '^ *+' conftest.er1 >conftest.err
10018   rm -f conftest.er1
10019   cat conftest.err >&5
10020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021   (exit $ac_status); } &&
10022          { ac_try='test -z "$ac_c_werror_flag"
10023                          || test ! -s conftest.err'
10024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10025   (eval $ac_try) 2>&5
10026   ac_status=$?
10027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028   (exit $ac_status); }; } &&
10029          { ac_try='test -s conftest$ac_exeext'
10030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10031   (eval $ac_try) 2>&5
10032   ac_status=$?
10033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034   (exit $ac_status); }; }; then
10035   ac_cv_lib_dld_shl_load=yes
10036 else
10037   echo "$as_me: failed program was:" >&5
10038 sed 's/^/| /' conftest.$ac_ext >&5
10039
10040 ac_cv_lib_dld_shl_load=no
10041 fi
10042 rm -f conftest.err conftest.$ac_objext \
10043       conftest$ac_exeext conftest.$ac_ext
10044 LIBS=$ac_check_lib_save_LIBS
10045 fi
10046 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10047 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10048 if test $ac_cv_lib_dld_shl_load = yes; then
10049   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10050 else
10051   echo "$as_me:$LINENO: checking for dlopen" >&5
10052 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10053 if test "${ac_cv_func_dlopen+set}" = set; then
10054   echo $ECHO_N "(cached) $ECHO_C" >&6
10055 else
10056   cat >conftest.$ac_ext <<_ACEOF
10057 /* confdefs.h.  */
10058 _ACEOF
10059 cat confdefs.h >>conftest.$ac_ext
10060 cat >>conftest.$ac_ext <<_ACEOF
10061 /* end confdefs.h.  */
10062 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10063    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10064 #define dlopen innocuous_dlopen
10065
10066 /* System header to define __stub macros and hopefully few prototypes,
10067     which can conflict with char dlopen (); below.
10068     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10069     <limits.h> exists even on freestanding compilers.  */
10070
10071 #ifdef __STDC__
10072 # include <limits.h>
10073 #else
10074 # include <assert.h>
10075 #endif
10076
10077 #undef dlopen
10078
10079 /* Override any gcc2 internal prototype to avoid an error.  */
10080 #ifdef __cplusplus
10081 extern "C"
10082 {
10083 #endif
10084 /* We use char because int might match the return type of a gcc2
10085    builtin and then its argument prototype would still apply.  */
10086 char dlopen ();
10087 /* The GNU C library defines this for functions which it implements
10088     to always fail with ENOSYS.  Some functions are actually named
10089     something starting with __ and the normal name is an alias.  */
10090 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10091 choke me
10092 #else
10093 char (*f) () = dlopen;
10094 #endif
10095 #ifdef __cplusplus
10096 }
10097 #endif
10098
10099 int
10100 main ()
10101 {
10102 return f != dlopen;
10103   ;
10104   return 0;
10105 }
10106 _ACEOF
10107 rm -f conftest.$ac_objext conftest$ac_exeext
10108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10109   (eval $ac_link) 2>conftest.er1
10110   ac_status=$?
10111   grep -v '^ *+' conftest.er1 >conftest.err
10112   rm -f conftest.er1
10113   cat conftest.err >&5
10114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115   (exit $ac_status); } &&
10116          { ac_try='test -z "$ac_c_werror_flag"
10117                          || test ! -s conftest.err'
10118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10119   (eval $ac_try) 2>&5
10120   ac_status=$?
10121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122   (exit $ac_status); }; } &&
10123          { ac_try='test -s conftest$ac_exeext'
10124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10125   (eval $ac_try) 2>&5
10126   ac_status=$?
10127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128   (exit $ac_status); }; }; then
10129   ac_cv_func_dlopen=yes
10130 else
10131   echo "$as_me: failed program was:" >&5
10132 sed 's/^/| /' conftest.$ac_ext >&5
10133
10134 ac_cv_func_dlopen=no
10135 fi
10136 rm -f conftest.err conftest.$ac_objext \
10137       conftest$ac_exeext conftest.$ac_ext
10138 fi
10139 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10140 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10141 if test $ac_cv_func_dlopen = yes; then
10142   lt_cv_dlopen="dlopen"
10143 else
10144   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10145 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10146 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10147   echo $ECHO_N "(cached) $ECHO_C" >&6
10148 else
10149   ac_check_lib_save_LIBS=$LIBS
10150 LIBS="-ldl  $LIBS"
10151 cat >conftest.$ac_ext <<_ACEOF
10152 /* confdefs.h.  */
10153 _ACEOF
10154 cat confdefs.h >>conftest.$ac_ext
10155 cat >>conftest.$ac_ext <<_ACEOF
10156 /* end confdefs.h.  */
10157
10158 /* Override any gcc2 internal prototype to avoid an error.  */
10159 #ifdef __cplusplus
10160 extern "C"
10161 #endif
10162 /* We use char because int might match the return type of a gcc2
10163    builtin and then its argument prototype would still apply.  */
10164 char dlopen ();
10165 int
10166 main ()
10167 {
10168 dlopen ();
10169   ;
10170   return 0;
10171 }
10172 _ACEOF
10173 rm -f conftest.$ac_objext conftest$ac_exeext
10174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10175   (eval $ac_link) 2>conftest.er1
10176   ac_status=$?
10177   grep -v '^ *+' conftest.er1 >conftest.err
10178   rm -f conftest.er1
10179   cat conftest.err >&5
10180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181   (exit $ac_status); } &&
10182          { ac_try='test -z "$ac_c_werror_flag"
10183                          || test ! -s conftest.err'
10184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10185   (eval $ac_try) 2>&5
10186   ac_status=$?
10187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188   (exit $ac_status); }; } &&
10189          { ac_try='test -s conftest$ac_exeext'
10190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10191   (eval $ac_try) 2>&5
10192   ac_status=$?
10193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194   (exit $ac_status); }; }; then
10195   ac_cv_lib_dl_dlopen=yes
10196 else
10197   echo "$as_me: failed program was:" >&5
10198 sed 's/^/| /' conftest.$ac_ext >&5
10199
10200 ac_cv_lib_dl_dlopen=no
10201 fi
10202 rm -f conftest.err conftest.$ac_objext \
10203       conftest$ac_exeext conftest.$ac_ext
10204 LIBS=$ac_check_lib_save_LIBS
10205 fi
10206 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10207 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10208 if test $ac_cv_lib_dl_dlopen = yes; then
10209   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10210 else
10211   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10212 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10213 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10214   echo $ECHO_N "(cached) $ECHO_C" >&6
10215 else
10216   ac_check_lib_save_LIBS=$LIBS
10217 LIBS="-lsvld  $LIBS"
10218 cat >conftest.$ac_ext <<_ACEOF
10219 /* confdefs.h.  */
10220 _ACEOF
10221 cat confdefs.h >>conftest.$ac_ext
10222 cat >>conftest.$ac_ext <<_ACEOF
10223 /* end confdefs.h.  */
10224
10225 /* Override any gcc2 internal prototype to avoid an error.  */
10226 #ifdef __cplusplus
10227 extern "C"
10228 #endif
10229 /* We use char because int might match the return type of a gcc2
10230    builtin and then its argument prototype would still apply.  */
10231 char dlopen ();
10232 int
10233 main ()
10234 {
10235 dlopen ();
10236   ;
10237   return 0;
10238 }
10239 _ACEOF
10240 rm -f conftest.$ac_objext conftest$ac_exeext
10241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10242   (eval $ac_link) 2>conftest.er1
10243   ac_status=$?
10244   grep -v '^ *+' conftest.er1 >conftest.err
10245   rm -f conftest.er1
10246   cat conftest.err >&5
10247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248   (exit $ac_status); } &&
10249          { ac_try='test -z "$ac_c_werror_flag"
10250                          || test ! -s conftest.err'
10251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10252   (eval $ac_try) 2>&5
10253   ac_status=$?
10254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255   (exit $ac_status); }; } &&
10256          { ac_try='test -s conftest$ac_exeext'
10257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10258   (eval $ac_try) 2>&5
10259   ac_status=$?
10260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261   (exit $ac_status); }; }; then
10262   ac_cv_lib_svld_dlopen=yes
10263 else
10264   echo "$as_me: failed program was:" >&5
10265 sed 's/^/| /' conftest.$ac_ext >&5
10266
10267 ac_cv_lib_svld_dlopen=no
10268 fi
10269 rm -f conftest.err conftest.$ac_objext \
10270       conftest$ac_exeext conftest.$ac_ext
10271 LIBS=$ac_check_lib_save_LIBS
10272 fi
10273 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10274 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10275 if test $ac_cv_lib_svld_dlopen = yes; then
10276   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10277 else
10278   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10279 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10280 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10281   echo $ECHO_N "(cached) $ECHO_C" >&6
10282 else
10283   ac_check_lib_save_LIBS=$LIBS
10284 LIBS="-ldld  $LIBS"
10285 cat >conftest.$ac_ext <<_ACEOF
10286 /* confdefs.h.  */
10287 _ACEOF
10288 cat confdefs.h >>conftest.$ac_ext
10289 cat >>conftest.$ac_ext <<_ACEOF
10290 /* end confdefs.h.  */
10291
10292 /* Override any gcc2 internal prototype to avoid an error.  */
10293 #ifdef __cplusplus
10294 extern "C"
10295 #endif
10296 /* We use char because int might match the return type of a gcc2
10297    builtin and then its argument prototype would still apply.  */
10298 char dld_link ();
10299 int
10300 main ()
10301 {
10302 dld_link ();
10303   ;
10304   return 0;
10305 }
10306 _ACEOF
10307 rm -f conftest.$ac_objext conftest$ac_exeext
10308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10309   (eval $ac_link) 2>conftest.er1
10310   ac_status=$?
10311   grep -v '^ *+' conftest.er1 >conftest.err
10312   rm -f conftest.er1
10313   cat conftest.err >&5
10314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315   (exit $ac_status); } &&
10316          { ac_try='test -z "$ac_c_werror_flag"
10317                          || test ! -s conftest.err'
10318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10319   (eval $ac_try) 2>&5
10320   ac_status=$?
10321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322   (exit $ac_status); }; } &&
10323          { ac_try='test -s conftest$ac_exeext'
10324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10325   (eval $ac_try) 2>&5
10326   ac_status=$?
10327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328   (exit $ac_status); }; }; then
10329   ac_cv_lib_dld_dld_link=yes
10330 else
10331   echo "$as_me: failed program was:" >&5
10332 sed 's/^/| /' conftest.$ac_ext >&5
10333
10334 ac_cv_lib_dld_dld_link=no
10335 fi
10336 rm -f conftest.err conftest.$ac_objext \
10337       conftest$ac_exeext conftest.$ac_ext
10338 LIBS=$ac_check_lib_save_LIBS
10339 fi
10340 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10341 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10342 if test $ac_cv_lib_dld_dld_link = yes; then
10343   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10344 fi
10345
10346
10347 fi
10348
10349
10350 fi
10351
10352
10353 fi
10354
10355
10356 fi
10357
10358
10359 fi
10360
10361     ;;
10362   esac
10363
10364   if test "x$lt_cv_dlopen" != xno; then
10365     enable_dlopen=yes
10366   else
10367     enable_dlopen=no
10368   fi
10369
10370   case $lt_cv_dlopen in
10371   dlopen)
10372     save_CPPFLAGS="$CPPFLAGS"
10373     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10374
10375     save_LDFLAGS="$LDFLAGS"
10376     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10377
10378     save_LIBS="$LIBS"
10379     LIBS="$lt_cv_dlopen_libs $LIBS"
10380
10381     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10382 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10383 if test "${lt_cv_dlopen_self+set}" = set; then
10384   echo $ECHO_N "(cached) $ECHO_C" >&6
10385 else
10386           if test "$cross_compiling" = yes; then :
10387   lt_cv_dlopen_self=cross
10388 else
10389   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10390   lt_status=$lt_dlunknown
10391   cat > conftest.$ac_ext <<EOF
10392 #line 10392 "configure"
10393 #include "confdefs.h"
10394
10395 #if HAVE_DLFCN_H
10396 #include <dlfcn.h>
10397 #endif
10398
10399 #include <stdio.h>
10400
10401 #ifdef RTLD_GLOBAL
10402 #  define LT_DLGLOBAL           RTLD_GLOBAL
10403 #else
10404 #  ifdef DL_GLOBAL
10405 #    define LT_DLGLOBAL         DL_GLOBAL
10406 #  else
10407 #    define LT_DLGLOBAL         0
10408 #  endif
10409 #endif
10410
10411 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10412    find out it does not work in some platform. */
10413 #ifndef LT_DLLAZY_OR_NOW
10414 #  ifdef RTLD_LAZY
10415 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10416 #  else
10417 #    ifdef DL_LAZY
10418 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10419 #    else
10420 #      ifdef RTLD_NOW
10421 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10422 #      else
10423 #        ifdef DL_NOW
10424 #          define LT_DLLAZY_OR_NOW      DL_NOW
10425 #        else
10426 #          define LT_DLLAZY_OR_NOW      0
10427 #        endif
10428 #      endif
10429 #    endif
10430 #  endif
10431 #endif
10432
10433 #ifdef __cplusplus
10434 extern "C" void exit (int);
10435 #endif
10436
10437 void fnord() { int i=42;}
10438 int main ()
10439 {
10440   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10441   int status = $lt_dlunknown;
10442
10443   if (self)
10444     {
10445       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10446       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10447       /* dlclose (self); */
10448     }
10449
10450     exit (status);
10451 }
10452 EOF
10453   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10454   (eval $ac_link) 2>&5
10455   ac_status=$?
10456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10458     (./conftest; exit; ) 2>/dev/null
10459     lt_status=$?
10460     case x$lt_status in
10461       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10462       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10463       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10464     esac
10465   else :
10466     # compilation failed
10467     lt_cv_dlopen_self=no
10468   fi
10469 fi
10470 rm -fr conftest*
10471
10472
10473 fi
10474 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10475 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10476
10477     if test "x$lt_cv_dlopen_self" = xyes; then
10478       LDFLAGS="$LDFLAGS $link_static_flag"
10479       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10480 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10481 if test "${lt_cv_dlopen_self_static+set}" = set; then
10482   echo $ECHO_N "(cached) $ECHO_C" >&6
10483 else
10484           if test "$cross_compiling" = yes; then :
10485   lt_cv_dlopen_self_static=cross
10486 else
10487   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10488   lt_status=$lt_dlunknown
10489   cat > conftest.$ac_ext <<EOF
10490 #line 10490 "configure"
10491 #include "confdefs.h"
10492
10493 #if HAVE_DLFCN_H
10494 #include <dlfcn.h>
10495 #endif
10496
10497 #include <stdio.h>
10498
10499 #ifdef RTLD_GLOBAL
10500 #  define LT_DLGLOBAL           RTLD_GLOBAL
10501 #else
10502 #  ifdef DL_GLOBAL
10503 #    define LT_DLGLOBAL         DL_GLOBAL
10504 #  else
10505 #    define LT_DLGLOBAL         0
10506 #  endif
10507 #endif
10508
10509 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10510    find out it does not work in some platform. */
10511 #ifndef LT_DLLAZY_OR_NOW
10512 #  ifdef RTLD_LAZY
10513 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10514 #  else
10515 #    ifdef DL_LAZY
10516 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10517 #    else
10518 #      ifdef RTLD_NOW
10519 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10520 #      else
10521 #        ifdef DL_NOW
10522 #          define LT_DLLAZY_OR_NOW      DL_NOW
10523 #        else
10524 #          define LT_DLLAZY_OR_NOW      0
10525 #        endif
10526 #      endif
10527 #    endif
10528 #  endif
10529 #endif
10530
10531 #ifdef __cplusplus
10532 extern "C" void exit (int);
10533 #endif
10534
10535 void fnord() { int i=42;}
10536 int main ()
10537 {
10538   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10539   int status = $lt_dlunknown;
10540
10541   if (self)
10542     {
10543       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10544       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10545       /* dlclose (self); */
10546     }
10547
10548     exit (status);
10549 }
10550 EOF
10551   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10552   (eval $ac_link) 2>&5
10553   ac_status=$?
10554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10556     (./conftest; exit; ) 2>/dev/null
10557     lt_status=$?
10558     case x$lt_status in
10559       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10560       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10561       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10562     esac
10563   else :
10564     # compilation failed
10565     lt_cv_dlopen_self_static=no
10566   fi
10567 fi
10568 rm -fr conftest*
10569
10570
10571 fi
10572 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10573 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10574     fi
10575
10576     CPPFLAGS="$save_CPPFLAGS"
10577     LDFLAGS="$save_LDFLAGS"
10578     LIBS="$save_LIBS"
10579     ;;
10580   esac
10581
10582   case $lt_cv_dlopen_self in
10583   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10584   *) enable_dlopen_self=unknown ;;
10585   esac
10586
10587   case $lt_cv_dlopen_self_static in
10588   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10589   *) enable_dlopen_self_static=unknown ;;
10590   esac
10591 fi
10592
10593
10594 # Report which librarie types wil actually be built
10595 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10596 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10597 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10598 echo "${ECHO_T}$can_build_shared" >&6
10599
10600 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10601 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10602 test "$can_build_shared" = "no" && enable_shared=no
10603
10604 # On AIX, shared libraries and static libraries use the same namespace, and
10605 # are all built from PIC.
10606 case "$host_os" in
10607 aix3*)
10608   test "$enable_shared" = yes && enable_static=no
10609   if test -n "$RANLIB"; then
10610     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10611     postinstall_cmds='$RANLIB $lib'
10612   fi
10613   ;;
10614
10615 aix4*)
10616   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10617     test "$enable_shared" = yes && enable_static=no
10618   fi
10619   ;;
10620   darwin* | rhapsody*)
10621   if test "$GCC" = yes; then
10622     archive_cmds_need_lc=no
10623     case "$host_os" in
10624     rhapsody* | darwin1.[012])
10625       allow_undefined_flag='-undefined suppress'
10626       ;;
10627     *) # Darwin 1.3 on
10628       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10629         allow_undefined_flag='-flat_namespace -undefined suppress'
10630       else
10631         case ${MACOSX_DEPLOYMENT_TARGET} in
10632           10.[012])
10633             allow_undefined_flag='-flat_namespace -undefined suppress'
10634             ;;
10635           10.*)
10636             allow_undefined_flag='-undefined dynamic_lookup'
10637             ;;
10638         esac
10639       fi
10640       ;;
10641     esac
10642     output_verbose_link_cmd='echo'
10643     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
10644     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10645     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10646     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}'
10647     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}'
10648     hardcode_direct=no
10649     hardcode_automatic=yes
10650     hardcode_shlibpath_var=unsupported
10651     whole_archive_flag_spec='-all_load $convenience'
10652     link_all_deplibs=yes
10653   else
10654     ld_shlibs=no
10655   fi
10656     ;;
10657 esac
10658 echo "$as_me:$LINENO: result: $enable_shared" >&5
10659 echo "${ECHO_T}$enable_shared" >&6
10660
10661 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10662 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10663 # Make sure either enable_shared or enable_static is yes.
10664 test "$enable_shared" = yes || enable_static=yes
10665 echo "$as_me:$LINENO: result: $enable_static" >&5
10666 echo "${ECHO_T}$enable_static" >&6
10667
10668 # The else clause should only fire when bootstrapping the
10669 # libtool distribution, otherwise you forgot to ship ltmain.sh
10670 # with your package, and you will get complaints that there are
10671 # no rules to generate ltmain.sh.
10672 if test -f "$ltmain"; then
10673   # See if we are running on zsh, and set the options which allow our commands through
10674   # without removal of \ escapes.
10675   if test -n "${ZSH_VERSION+set}" ; then
10676     setopt NO_GLOB_SUBST
10677   fi
10678   # Now quote all the things that may contain metacharacters while being
10679   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10680   # variables and quote the copies for generation of the libtool script.
10681   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10682     SED SHELL STRIP \
10683     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10684     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10685     deplibs_check_method reload_flag reload_cmds need_locks \
10686     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10687     lt_cv_sys_global_symbol_to_c_name_address \
10688     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10689     old_postinstall_cmds old_postuninstall_cmds \
10690     compiler \
10691     CC \
10692     LD \
10693     lt_prog_compiler_wl \
10694     lt_prog_compiler_pic \
10695     lt_prog_compiler_static \
10696     lt_prog_compiler_no_builtin_flag \
10697     export_dynamic_flag_spec \
10698     thread_safe_flag_spec \
10699     whole_archive_flag_spec \
10700     enable_shared_with_static_runtimes \
10701     old_archive_cmds \
10702     old_archive_from_new_cmds \
10703     predep_objects \
10704     postdep_objects \
10705     predeps \
10706     postdeps \
10707     compiler_lib_search_path \
10708     archive_cmds \
10709     archive_expsym_cmds \
10710     postinstall_cmds \
10711     postuninstall_cmds \
10712     old_archive_from_expsyms_cmds \
10713     allow_undefined_flag \
10714     no_undefined_flag \
10715     export_symbols_cmds \
10716     hardcode_libdir_flag_spec \
10717     hardcode_libdir_flag_spec_ld \
10718     hardcode_libdir_separator \
10719     hardcode_automatic \
10720     module_cmds \
10721     module_expsym_cmds \
10722     lt_cv_prog_compiler_c_o \
10723     exclude_expsyms \
10724     include_expsyms; do
10725
10726     case $var in
10727     old_archive_cmds | \
10728     old_archive_from_new_cmds | \
10729     archive_cmds | \
10730     archive_expsym_cmds | \
10731     module_cmds | \
10732     module_expsym_cmds | \
10733     old_archive_from_expsyms_cmds | \
10734     export_symbols_cmds | \
10735     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10736     postinstall_cmds | postuninstall_cmds | \
10737     old_postinstall_cmds | old_postuninstall_cmds | \
10738     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10739       # Double-quote double-evaled strings.
10740       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10741       ;;
10742     *)
10743       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10744       ;;
10745     esac
10746   done
10747
10748   case $lt_echo in
10749   *'\$0 --fallback-echo"')
10750     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10751     ;;
10752   esac
10753
10754 cfgfile="${ofile}T"
10755   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10756   $rm -f "$cfgfile"
10757   { echo "$as_me:$LINENO: creating $ofile" >&5
10758 echo "$as_me: creating $ofile" >&6;}
10759
10760   cat <<__EOF__ >> "$cfgfile"
10761 #! $SHELL
10762
10763 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10764 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10765 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10766 #
10767 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10768 # Free Software Foundation, Inc.
10769 #
10770 # This file is part of GNU Libtool:
10771 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10772 #
10773 # This program is free software; you can redistribute it and/or modify
10774 # it under the terms of the GNU General Public License as published by
10775 # the Free Software Foundation; either version 2 of the License, or
10776 # (at your option) any later version.
10777 #
10778 # This program is distributed in the hope that it will be useful, but
10779 # WITHOUT ANY WARRANTY; without even the implied warranty of
10780 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10781 # General Public License for more details.
10782 #
10783 # You should have received a copy of the GNU General Public License
10784 # along with this program; if not, write to the Free Software
10785 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
10786 #
10787 # As a special exception to the GNU General Public License, if you
10788 # distribute this file as part of a program that contains a
10789 # configuration script generated by Autoconf, you may include it under
10790 # the same distribution terms that you use for the rest of that program.
10791
10792 # A sed program that does not truncate output.
10793 SED=$lt_SED
10794
10795 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10796 Xsed="$SED -e s/^X//"
10797
10798 # The HP-UX ksh and POSIX shell print the target directory to stdout
10799 # if CDPATH is set.
10800 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
10801
10802 # The names of the tagged configurations supported by this script.
10803 available_tags=
10804
10805 # ### BEGIN LIBTOOL CONFIG
10806
10807 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10808
10809 # Shell to use when invoking shell scripts.
10810 SHELL=$lt_SHELL
10811
10812 # Whether or not to build shared libraries.
10813 build_libtool_libs=$enable_shared
10814
10815 # Whether or not to build static libraries.
10816 build_old_libs=$enable_static
10817
10818 # Whether or not to add -lc for building shared libraries.
10819 build_libtool_need_lc=$archive_cmds_need_lc
10820
10821 # Whether or not to disallow shared libs when runtime libs are static
10822 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10823
10824 # Whether or not to optimize for fast installation.
10825 fast_install=$enable_fast_install
10826
10827 # The host system.
10828 host_alias=$host_alias
10829 host=$host
10830
10831 # An echo program that does not interpret backslashes.
10832 echo=$lt_echo
10833
10834 # The archiver.
10835 AR=$lt_AR
10836 AR_FLAGS=$lt_AR_FLAGS
10837
10838 # A C compiler.
10839 LTCC=$lt_LTCC
10840
10841 # A language-specific compiler.
10842 CC=$lt_compiler
10843
10844 # Is the compiler the GNU C compiler?
10845 with_gcc=$GCC
10846
10847 # An ERE matcher.
10848 EGREP=$lt_EGREP
10849
10850 # The linker used to build libraries.
10851 LD=$lt_LD
10852
10853 # Whether we need hard or soft links.
10854 LN_S=$lt_LN_S
10855
10856 # A BSD-compatible nm program.
10857 NM=$lt_NM
10858
10859 # A symbol stripping program
10860 STRIP=$lt_STRIP
10861
10862 # Used to examine libraries when file_magic_cmd begins "file"
10863 MAGIC_CMD=$MAGIC_CMD
10864
10865 # Used on cygwin: DLL creation program.
10866 DLLTOOL="$DLLTOOL"
10867
10868 # Used on cygwin: object dumper.
10869 OBJDUMP="$OBJDUMP"
10870
10871 # Used on cygwin: assembler.
10872 AS="$AS"
10873
10874 # The name of the directory that contains temporary libtool files.
10875 objdir=$objdir
10876
10877 # How to create reloadable object files.
10878 reload_flag=$lt_reload_flag
10879 reload_cmds=$lt_reload_cmds
10880
10881 # How to pass a linker flag through the compiler.
10882 wl=$lt_lt_prog_compiler_wl
10883
10884 # Object file suffix (normally "o").
10885 objext="$ac_objext"
10886
10887 # Old archive suffix (normally "a").
10888 libext="$libext"
10889
10890 # Shared library suffix (normally ".so").
10891 shrext='$shrext'
10892
10893 # Executable file suffix (normally "").
10894 exeext="$exeext"
10895
10896 # Additional compiler flags for building library objects.
10897 pic_flag=$lt_lt_prog_compiler_pic
10898 pic_mode=$pic_mode
10899
10900 # What is the maximum length of a command?
10901 max_cmd_len=$lt_cv_sys_max_cmd_len
10902
10903 # Does compiler simultaneously support -c and -o options?
10904 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10905
10906 # Must we lock files when doing compilation ?
10907 need_locks=$lt_need_locks
10908
10909 # Do we need the lib prefix for modules?
10910 need_lib_prefix=$need_lib_prefix
10911
10912 # Do we need a version for libraries?
10913 need_version=$need_version
10914
10915 # Whether dlopen is supported.
10916 dlopen_support=$enable_dlopen
10917
10918 # Whether dlopen of programs is supported.
10919 dlopen_self=$enable_dlopen_self
10920
10921 # Whether dlopen of statically linked programs is supported.
10922 dlopen_self_static=$enable_dlopen_self_static
10923
10924 # Compiler flag to prevent dynamic linking.
10925 link_static_flag=$lt_lt_prog_compiler_static
10926
10927 # Compiler flag to turn off builtin functions.
10928 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10929
10930 # Compiler flag to allow reflexive dlopens.
10931 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10932
10933 # Compiler flag to generate shared objects directly from archives.
10934 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10935
10936 # Compiler flag to generate thread-safe objects.
10937 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10938
10939 # Library versioning type.
10940 version_type=$version_type
10941
10942 # Format of library name prefix.
10943 libname_spec=$lt_libname_spec
10944
10945 # List of archive names.  First name is the real one, the rest are links.
10946 # The last name is the one that the linker finds with -lNAME.
10947 library_names_spec=$lt_library_names_spec
10948
10949 # The coded name of the library, if different from the real name.
10950 soname_spec=$lt_soname_spec
10951
10952 # Commands used to build and install an old-style archive.
10953 RANLIB=$lt_RANLIB
10954 old_archive_cmds=$lt_old_archive_cmds
10955 old_postinstall_cmds=$lt_old_postinstall_cmds
10956 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10957
10958 # Create an old-style archive from a shared archive.
10959 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10960
10961 # Create a temporary old-style archive to link instead of a shared archive.
10962 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10963
10964 # Commands used to build and install a shared archive.
10965 archive_cmds=$lt_archive_cmds
10966 archive_expsym_cmds=$lt_archive_expsym_cmds
10967 postinstall_cmds=$lt_postinstall_cmds
10968 postuninstall_cmds=$lt_postuninstall_cmds
10969
10970 # Commands used to build a loadable module (assumed same as above if empty)
10971 module_cmds=$lt_module_cmds
10972 module_expsym_cmds=$lt_module_expsym_cmds
10973
10974 # Commands to strip libraries.
10975 old_striplib=$lt_old_striplib
10976 striplib=$lt_striplib
10977
10978 # Dependencies to place before the objects being linked to create a
10979 # shared library.
10980 predep_objects=$lt_predep_objects
10981
10982 # Dependencies to place after the objects being linked to create a
10983 # shared library.
10984 postdep_objects=$lt_postdep_objects
10985
10986 # Dependencies to place before the objects being linked to create a
10987 # shared library.
10988 predeps=$lt_predeps
10989
10990 # Dependencies to place after the objects being linked to create a
10991 # shared library.
10992 postdeps=$lt_postdeps
10993
10994 # The library search path used internally by the compiler when linking
10995 # a shared library.
10996 compiler_lib_search_path=$lt_compiler_lib_search_path
10997
10998 # Method to check whether dependent libraries are shared objects.
10999 deplibs_check_method=$lt_deplibs_check_method
11000
11001 # Command to use when deplibs_check_method == file_magic.
11002 file_magic_cmd=$lt_file_magic_cmd
11003
11004 # Flag that allows shared libraries with undefined symbols to be built.
11005 allow_undefined_flag=$lt_allow_undefined_flag
11006
11007 # Flag that forces no undefined symbols.
11008 no_undefined_flag=$lt_no_undefined_flag
11009
11010 # Commands used to finish a libtool library installation in a directory.
11011 finish_cmds=$lt_finish_cmds
11012
11013 # Same as above, but a single script fragment to be evaled but not shown.
11014 finish_eval=$lt_finish_eval
11015
11016 # Take the output of nm and produce a listing of raw symbols and C names.
11017 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11018
11019 # Transform the output of nm in a proper C declaration
11020 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11021
11022 # Transform the output of nm in a C name address pair
11023 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11024
11025 # This is the shared library runtime path variable.
11026 runpath_var=$runpath_var
11027
11028 # This is the shared library path variable.
11029 shlibpath_var=$shlibpath_var
11030
11031 # Is shlibpath searched before the hard-coded library search path?
11032 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11033
11034 # How to hardcode a shared library path into an executable.
11035 hardcode_action=$hardcode_action
11036
11037 # Whether we should hardcode library paths into libraries.
11038 hardcode_into_libs=$hardcode_into_libs
11039
11040 # Flag to hardcode \$libdir into a binary during linking.
11041 # This must work even if \$libdir does not exist.
11042 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11043
11044 # If ld is used when linking, flag to hardcode \$libdir into
11045 # a binary during linking. This must work even if \$libdir does
11046 # not exist.
11047 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11048
11049 # Whether we need a single -rpath flag with a separated argument.
11050 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11051
11052 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11053 # resulting binary.
11054 hardcode_direct=$hardcode_direct
11055
11056 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11057 # resulting binary.
11058 hardcode_minus_L=$hardcode_minus_L
11059
11060 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11061 # the resulting binary.
11062 hardcode_shlibpath_var=$hardcode_shlibpath_var
11063
11064 # Set to yes if building a shared library automatically hardcodes DIR into the library
11065 # and all subsequent libraries and executables linked against it.
11066 hardcode_automatic=$hardcode_automatic
11067
11068 # Variables whose values should be saved in libtool wrapper scripts and
11069 # restored at relink time.
11070 variables_saved_for_relink="$variables_saved_for_relink"
11071
11072 # Whether libtool must link a program against all its dependency libraries.
11073 link_all_deplibs=$link_all_deplibs
11074
11075 # Compile-time system search path for libraries
11076 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11077
11078 # Run-time system search path for libraries
11079 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11080
11081 # Fix the shell variable \$srcfile for the compiler.
11082 fix_srcfile_path="$fix_srcfile_path"
11083
11084 # Set to yes if exported symbols are required.
11085 always_export_symbols=$always_export_symbols
11086
11087 # The commands to list exported symbols.
11088 export_symbols_cmds=$lt_export_symbols_cmds
11089
11090 # The commands to extract the exported symbol list from a shared archive.
11091 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11092
11093 # Symbols that should not be listed in the preloaded symbols.
11094 exclude_expsyms=$lt_exclude_expsyms
11095
11096 # Symbols that must always be exported.
11097 include_expsyms=$lt_include_expsyms
11098
11099 # ### END LIBTOOL CONFIG
11100
11101 __EOF__
11102
11103
11104   case $host_os in
11105   aix3*)
11106     cat <<\EOF >> "$cfgfile"
11107
11108 # AIX sometimes has problems with the GCC collect2 program.  For some
11109 # reason, if we set the COLLECT_NAMES environment variable, the problems
11110 # vanish in a puff of smoke.
11111 if test "X${COLLECT_NAMES+set}" != Xset; then
11112   COLLECT_NAMES=
11113   export COLLECT_NAMES
11114 fi
11115 EOF
11116     ;;
11117   esac
11118
11119   # We use sed instead of cat because bash on DJGPP gets confused if
11120   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11121   # text mode, it properly converts lines to CR/LF.  This bash problem
11122   # is reportedly fixed, but why not run on old versions too?
11123   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11124
11125   mv -f "$cfgfile" "$ofile" || \
11126     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11127   chmod +x "$ofile"
11128
11129 else
11130   # If there is no Makefile yet, we rely on a make rule to execute
11131   # `config.status --recheck' to rerun these tests and create the
11132   # libtool script then.
11133   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11134   if test -f "$ltmain_in"; then
11135     test -f Makefile && make "$ltmain"
11136   fi
11137 fi
11138
11139
11140 ac_ext=c
11141 ac_cpp='$CPP $CPPFLAGS'
11142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11145
11146 CC="$lt_save_CC"
11147
11148
11149 # Check whether --with-tags or --without-tags was given.
11150 if test "${with_tags+set}" = set; then
11151   withval="$with_tags"
11152   tagnames="$withval"
11153 fi;
11154
11155 if test -f "$ltmain" && test -n "$tagnames"; then
11156   if test ! -f "${ofile}"; then
11157     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11158 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11159   fi
11160
11161   if test -z "$LTCC"; then
11162     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11163     if test -z "$LTCC"; then
11164       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11165 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11166     else
11167       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11168 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11169     fi
11170   fi
11171
11172   # Extract list of available tagged configurations in $ofile.
11173   # Note that this assumes the entire list is on one line.
11174   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11175
11176   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11177   for tagname in $tagnames; do
11178     IFS="$lt_save_ifs"
11179     # Check whether tagname contains only valid characters
11180     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11181     "") ;;
11182     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11183 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11184    { (exit 1); exit 1; }; }
11185         ;;
11186     esac
11187
11188     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11189     then
11190       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11191 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11192    { (exit 1); exit 1; }; }
11193     fi
11194
11195     # Update the list of available tags.
11196     if test -n "$tagname"; then
11197       echo appending configuration tag \"$tagname\" to $ofile
11198
11199       case $tagname in
11200       CXX)
11201         if test -n "$CXX" && test "X$CXX" != "Xno"; then
11202           ac_ext=cc
11203 ac_cpp='$CXXCPP $CPPFLAGS'
11204 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11205 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11206 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11207
11208
11209
11210
11211 archive_cmds_need_lc_CXX=no
11212 allow_undefined_flag_CXX=
11213 always_export_symbols_CXX=no
11214 archive_expsym_cmds_CXX=
11215 export_dynamic_flag_spec_CXX=
11216 hardcode_direct_CXX=no
11217 hardcode_libdir_flag_spec_CXX=
11218 hardcode_libdir_flag_spec_ld_CXX=
11219 hardcode_libdir_separator_CXX=
11220 hardcode_minus_L_CXX=no
11221 hardcode_automatic_CXX=no
11222 module_cmds_CXX=
11223 module_expsym_cmds_CXX=
11224 link_all_deplibs_CXX=unknown
11225 old_archive_cmds_CXX=$old_archive_cmds
11226 no_undefined_flag_CXX=
11227 whole_archive_flag_spec_CXX=
11228 enable_shared_with_static_runtimes_CXX=no
11229
11230 # Dependencies to place before and after the object being linked:
11231 predep_objects_CXX=
11232 postdep_objects_CXX=
11233 predeps_CXX=
11234 postdeps_CXX=
11235 compiler_lib_search_path_CXX=
11236
11237 # Source file extension for C++ test sources.
11238 ac_ext=cc
11239
11240 # Object file extension for compiled C++ test sources.
11241 objext=o
11242 objext_CXX=$objext
11243
11244 # Code to be used in simple compile tests
11245 lt_simple_compile_test_code="int some_variable = 0;\n"
11246
11247 # Code to be used in simple link tests
11248 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
11249
11250 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11251
11252 # If no C compiler was specified, use CC.
11253 LTCC=${LTCC-"$CC"}
11254
11255 # Allow CC to be a program name with arguments.
11256 compiler=$CC
11257
11258
11259 # Allow CC to be a program name with arguments.
11260 lt_save_CC=$CC
11261 lt_save_LD=$LD
11262 lt_save_GCC=$GCC
11263 GCC=$GXX
11264 lt_save_with_gnu_ld=$with_gnu_ld
11265 lt_save_path_LD=$lt_cv_path_LD
11266 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11267   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11268 else
11269   unset lt_cv_prog_gnu_ld
11270 fi
11271 if test -n "${lt_cv_path_LDCXX+set}"; then
11272   lt_cv_path_LD=$lt_cv_path_LDCXX
11273 else
11274   unset lt_cv_path_LD
11275 fi
11276 test -z "${LDCXX+set}" || LD=$LDCXX
11277 CC=${CXX-"c++"}
11278 compiler=$CC
11279 compiler_CXX=$CC
11280 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11281
11282 # We don't want -fno-exception wen compiling C++ code, so set the
11283 # no_builtin_flag separately
11284 if test "$GXX" = yes; then
11285   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11286 else
11287   lt_prog_compiler_no_builtin_flag_CXX=
11288 fi
11289
11290 if test "$GXX" = yes; then
11291   # Set up default GNU C++ configuration
11292
11293
11294 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11295 if test "${with_gnu_ld+set}" = set; then
11296   withval="$with_gnu_ld"
11297   test "$withval" = no || with_gnu_ld=yes
11298 else
11299   with_gnu_ld=no
11300 fi;
11301 ac_prog=ld
11302 if test "$GCC" = yes; then
11303   # Check if gcc -print-prog-name=ld gives a path.
11304   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11305 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11306   case $host in
11307   *-*-mingw*)
11308     # gcc leaves a trailing carriage return which upsets mingw
11309     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11310   *)
11311     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11312   esac
11313   case $ac_prog in
11314     # Accept absolute paths.
11315     [\\/]* | ?:[\\/]*)
11316       re_direlt='/[^/][^/]*/\.\./'
11317       # Canonicalize the pathname of ld
11318       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11319       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11320         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11321       done
11322       test -z "$LD" && LD="$ac_prog"
11323       ;;
11324   "")
11325     # If it fails, then pretend we aren't using GCC.
11326     ac_prog=ld
11327     ;;
11328   *)
11329     # If it is relative, then search for the first ld in PATH.
11330     with_gnu_ld=unknown
11331     ;;
11332   esac
11333 elif test "$with_gnu_ld" = yes; then
11334   echo "$as_me:$LINENO: checking for GNU ld" >&5
11335 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11336 else
11337   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11338 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11339 fi
11340 if test "${lt_cv_path_LD+set}" = set; then
11341   echo $ECHO_N "(cached) $ECHO_C" >&6
11342 else
11343   if test -z "$LD"; then
11344   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11345   for ac_dir in $PATH; do
11346     IFS="$lt_save_ifs"
11347     test -z "$ac_dir" && ac_dir=.
11348     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11349       lt_cv_path_LD="$ac_dir/$ac_prog"
11350       # Check to see if the program is GNU ld.  I'd rather use --version,
11351       # but apparently some GNU ld's only accept -v.
11352       # Break only if it was the GNU/non-GNU ld that we prefer.
11353       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11354       *GNU* | *'with BFD'*)
11355         test "$with_gnu_ld" != no && break
11356         ;;
11357       *)
11358         test "$with_gnu_ld" != yes && break
11359         ;;
11360       esac
11361     fi
11362   done
11363   IFS="$lt_save_ifs"
11364 else
11365   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11366 fi
11367 fi
11368
11369 LD="$lt_cv_path_LD"
11370 if test -n "$LD"; then
11371   echo "$as_me:$LINENO: result: $LD" >&5
11372 echo "${ECHO_T}$LD" >&6
11373 else
11374   echo "$as_me:$LINENO: result: no" >&5
11375 echo "${ECHO_T}no" >&6
11376 fi
11377 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11378 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11379    { (exit 1); exit 1; }; }
11380 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11381 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11382 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11383   echo $ECHO_N "(cached) $ECHO_C" >&6
11384 else
11385   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11386 case `$LD -v 2>&1 </dev/null` in
11387 *GNU* | *'with BFD'*)
11388   lt_cv_prog_gnu_ld=yes
11389   ;;
11390 *)
11391   lt_cv_prog_gnu_ld=no
11392   ;;
11393 esac
11394 fi
11395 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11396 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11397 with_gnu_ld=$lt_cv_prog_gnu_ld
11398
11399
11400
11401   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11402   # archiving commands below assume that GNU ld is being used.
11403   if test "$with_gnu_ld" = yes; then
11404     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11405     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'
11406
11407     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11408     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11409
11410     # If archive_cmds runs LD, not CC, wlarc should be empty
11411     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11412     #     investigate it a little bit more. (MM)
11413     wlarc='${wl}'
11414
11415     # ancient GNU ld didn't support --whole-archive et. al.
11416     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11417         grep 'no-whole-archive' > /dev/null; then
11418       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11419     else
11420       whole_archive_flag_spec_CXX=
11421     fi
11422   else
11423     with_gnu_ld=no
11424     wlarc=
11425
11426     # A generic and very simple default shared library creation
11427     # command for GNU C++ for the case where it uses the native
11428     # linker, instead of GNU ld.  If possible, this setting should
11429     # overridden to take advantage of the native linker features on
11430     # the platform it is being used on.
11431     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11432   fi
11433
11434   # Commands to make compiler produce verbose output that lists
11435   # what "hidden" libraries, object files and flags are used when
11436   # linking a shared library.
11437   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11438
11439 else
11440   GXX=no
11441   with_gnu_ld=no
11442   wlarc=
11443 fi
11444
11445 # PORTME: fill in a description of your system's C++ link characteristics
11446 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11447 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11448 ld_shlibs_CXX=yes
11449 case $host_os in
11450   aix3*)
11451     # FIXME: insert proper C++ library support
11452     ld_shlibs_CXX=no
11453     ;;
11454   aix4* | aix5*)
11455     if test "$host_cpu" = ia64; then
11456       # On IA64, the linker does run time linking by default, so we don't
11457       # have to do anything special.
11458       aix_use_runtimelinking=no
11459       exp_sym_flag='-Bexport'
11460       no_entry_flag=""
11461     else
11462       aix_use_runtimelinking=no
11463
11464       # Test if we are trying to use run time linking or normal
11465       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11466       # need to do runtime linking.
11467       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11468         for ld_flag in $LDFLAGS; do
11469           case $ld_flag in
11470           *-brtl*)
11471             aix_use_runtimelinking=yes
11472             break
11473             ;;
11474           esac
11475         done
11476       esac
11477
11478       exp_sym_flag='-bexport'
11479       no_entry_flag='-bnoentry'
11480     fi
11481
11482     # When large executables or shared objects are built, AIX ld can
11483     # have problems creating the table of contents.  If linking a library
11484     # or program results in "error TOC overflow" add -mminimal-toc to
11485     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11486     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11487
11488     archive_cmds_CXX=''
11489     hardcode_direct_CXX=yes
11490     hardcode_libdir_separator_CXX=':'
11491     link_all_deplibs_CXX=yes
11492
11493     if test "$GXX" = yes; then
11494       case $host_os in aix4.012|aix4.012.*)
11495       # We only want to do this on AIX 4.2 and lower, the check
11496       # below for broken collect2 doesn't work under 4.3+
11497         collect2name=`${CC} -print-prog-name=collect2`
11498         if test -f "$collect2name" && \
11499            strings "$collect2name" | grep resolve_lib_name >/dev/null
11500         then
11501           # We have reworked collect2
11502           hardcode_direct_CXX=yes
11503         else
11504           # We have old collect2
11505           hardcode_direct_CXX=unsupported
11506           # It fails to find uninstalled libraries when the uninstalled
11507           # path is not listed in the libpath.  Setting hardcode_minus_L
11508           # to unsupported forces relinking
11509           hardcode_minus_L_CXX=yes
11510           hardcode_libdir_flag_spec_CXX='-L$libdir'
11511           hardcode_libdir_separator_CXX=
11512         fi
11513       esac
11514       shared_flag='-shared'
11515     else
11516       # not using gcc
11517       if test "$host_cpu" = ia64; then
11518         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11519         # chokes on -Wl,-G. The following line is correct:
11520         shared_flag='-G'
11521       else
11522         if test "$aix_use_runtimelinking" = yes; then
11523           shared_flag='${wl}-G'
11524         else
11525           shared_flag='${wl}-bM:SRE'
11526         fi
11527       fi
11528     fi
11529
11530     # It seems that -bexpall does not export symbols beginning with
11531     # underscore (_), so it is better to generate a list of symbols to export.
11532     always_export_symbols_CXX=yes
11533     if test "$aix_use_runtimelinking" = yes; then
11534       # Warning - without using the other runtime loading flags (-brtl),
11535       # -berok will link without error, but may produce a broken library.
11536       allow_undefined_flag_CXX='-berok'
11537       # Determine the default libpath from the value encoded in an empty executable.
11538       cat >conftest.$ac_ext <<_ACEOF
11539 /* confdefs.h.  */
11540 _ACEOF
11541 cat confdefs.h >>conftest.$ac_ext
11542 cat >>conftest.$ac_ext <<_ACEOF
11543 /* end confdefs.h.  */
11544
11545 int
11546 main ()
11547 {
11548
11549   ;
11550   return 0;
11551 }
11552 _ACEOF
11553 rm -f conftest.$ac_objext conftest$ac_exeext
11554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11555   (eval $ac_link) 2>conftest.er1
11556   ac_status=$?
11557   grep -v '^ *+' conftest.er1 >conftest.err
11558   rm -f conftest.er1
11559   cat conftest.err >&5
11560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561   (exit $ac_status); } &&
11562          { ac_try='test -z "$ac_cxx_werror_flag"
11563                          || test ! -s conftest.err'
11564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11565   (eval $ac_try) 2>&5
11566   ac_status=$?
11567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568   (exit $ac_status); }; } &&
11569          { ac_try='test -s conftest$ac_exeext'
11570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11571   (eval $ac_try) 2>&5
11572   ac_status=$?
11573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574   (exit $ac_status); }; }; then
11575
11576 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11577 }'`
11578 # Check for a 64-bit object if we didn't find anything.
11579 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; }
11580 }'`; fi
11581 else
11582   echo "$as_me: failed program was:" >&5
11583 sed 's/^/| /' conftest.$ac_ext >&5
11584
11585 fi
11586 rm -f conftest.err conftest.$ac_objext \
11587       conftest$ac_exeext conftest.$ac_ext
11588 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11589
11590       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11591
11592       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"
11593      else
11594       if test "$host_cpu" = ia64; then
11595         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11596         allow_undefined_flag_CXX="-z nodefs"
11597         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"
11598       else
11599         # Determine the default libpath from the value encoded in an empty executable.
11600         cat >conftest.$ac_ext <<_ACEOF
11601 /* confdefs.h.  */
11602 _ACEOF
11603 cat confdefs.h >>conftest.$ac_ext
11604 cat >>conftest.$ac_ext <<_ACEOF
11605 /* end confdefs.h.  */
11606
11607 int
11608 main ()
11609 {
11610
11611   ;
11612   return 0;
11613 }
11614 _ACEOF
11615 rm -f conftest.$ac_objext conftest$ac_exeext
11616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11617   (eval $ac_link) 2>conftest.er1
11618   ac_status=$?
11619   grep -v '^ *+' conftest.er1 >conftest.err
11620   rm -f conftest.er1
11621   cat conftest.err >&5
11622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623   (exit $ac_status); } &&
11624          { ac_try='test -z "$ac_cxx_werror_flag"
11625                          || test ! -s conftest.err'
11626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11627   (eval $ac_try) 2>&5
11628   ac_status=$?
11629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630   (exit $ac_status); }; } &&
11631          { ac_try='test -s conftest$ac_exeext'
11632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11633   (eval $ac_try) 2>&5
11634   ac_status=$?
11635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636   (exit $ac_status); }; }; then
11637
11638 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11639 }'`
11640 # Check for a 64-bit object if we didn't find anything.
11641 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; }
11642 }'`; fi
11643 else
11644   echo "$as_me: failed program was:" >&5
11645 sed 's/^/| /' conftest.$ac_ext >&5
11646
11647 fi
11648 rm -f conftest.err conftest.$ac_objext \
11649       conftest$ac_exeext conftest.$ac_ext
11650 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11651
11652         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11653         # Warning - without using the other run time loading flags,
11654         # -berok will link without error, but may produce a broken library.
11655         no_undefined_flag_CXX=' ${wl}-bernotok'
11656         allow_undefined_flag_CXX=' ${wl}-berok'
11657         # -bexpall does not export symbols beginning with underscore (_)
11658         always_export_symbols_CXX=yes
11659         # Exported symbols can be pulled into shared objects from archives
11660         whole_archive_flag_spec_CXX=' '
11661         archive_cmds_need_lc_CXX=yes
11662         # This is similar to how AIX traditionally builds it's shared libraries.
11663         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'
11664       fi
11665     fi
11666     ;;
11667   chorus*)
11668     case $cc_basename in
11669       *)
11670         # FIXME: insert proper C++ library support
11671         ld_shlibs_CXX=no
11672         ;;
11673     esac
11674     ;;
11675
11676   cygwin* | mingw* | pw32*)
11677     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11678     # as there is no search path for DLLs.
11679     hardcode_libdir_flag_spec_CXX='-L$libdir'
11680     allow_undefined_flag_CXX=unsupported
11681     always_export_symbols_CXX=no
11682     enable_shared_with_static_runtimes_CXX=yes
11683
11684     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11685       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'
11686       # If the export-symbols file already is a .def file (1st line
11687       # is EXPORTS), use it as is; otherwise, prepend...
11688       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11689         cp $export_symbols $output_objdir/$soname.def;
11690       else
11691         echo EXPORTS > $output_objdir/$soname.def;
11692         cat $export_symbols >> $output_objdir/$soname.def;
11693       fi~
11694       $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'
11695     else
11696       ld_shlibs_CXX=no
11697     fi
11698   ;;
11699
11700   darwin* | rhapsody*)
11701   if test "$GXX" = yes; then
11702     archive_cmds_need_lc_CXX=no
11703     case "$host_os" in
11704     rhapsody* | darwin1.[012])
11705       allow_undefined_flag_CXX='-undefined suppress'
11706       ;;
11707     *) # Darwin 1.3 on
11708       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11709         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
11710       else
11711         case ${MACOSX_DEPLOYMENT_TARGET} in
11712           10.[012])
11713             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
11714             ;;
11715           10.*)
11716             allow_undefined_flag_CXX='-undefined dynamic_lookup'
11717             ;;
11718         esac
11719       fi
11720       ;;
11721     esac
11722     lt_int_apple_cc_single_mod=no
11723     output_verbose_link_cmd='echo'
11724     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
11725       lt_int_apple_cc_single_mod=yes
11726     fi
11727     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11728       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11729     else
11730       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'
11731     fi
11732     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11733
11734     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11735     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11736       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}'
11737     else
11738       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}'
11739     fi
11740     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}'
11741     hardcode_direct_CXX=no
11742     hardcode_automatic_CXX=yes
11743     hardcode_shlibpath_var_CXX=unsupported
11744     whole_archive_flag_spec_CXX='-all_load $convenience'
11745     link_all_deplibs_CXX=yes
11746   else
11747     ld_shlibs_CXX=no
11748   fi
11749     ;;
11750
11751   dgux*)
11752     case $cc_basename in
11753       ec++)
11754         # FIXME: insert proper C++ library support
11755         ld_shlibs_CXX=no
11756         ;;
11757       ghcx)
11758         # Green Hills C++ Compiler
11759         # FIXME: insert proper C++ library support
11760         ld_shlibs_CXX=no
11761         ;;
11762       *)
11763         # FIXME: insert proper C++ library support
11764         ld_shlibs_CXX=no
11765         ;;
11766     esac
11767     ;;
11768   freebsd12*)
11769     # C++ shared libraries reported to be fairly broken before switch to ELF
11770     ld_shlibs_CXX=no
11771     ;;
11772   freebsd-elf*)
11773     archive_cmds_need_lc_CXX=no
11774     ;;
11775   freebsd* | kfreebsd*-gnu)
11776     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11777     # conventions
11778     ld_shlibs_CXX=yes
11779     ;;
11780   gnu*)
11781     ;;
11782   hpux9*)
11783     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11784     hardcode_libdir_separator_CXX=:
11785     export_dynamic_flag_spec_CXX='${wl}-E'
11786     hardcode_direct_CXX=yes
11787     hardcode_minus_L_CXX=yes # Not in the search PATH,
11788                                 # but as the default
11789                                 # location of the library.
11790
11791     case $cc_basename in
11792     CC)
11793       # FIXME: insert proper C++ library support
11794       ld_shlibs_CXX=no
11795       ;;
11796     aCC)
11797       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'
11798       # Commands to make compiler produce verbose output that lists
11799       # what "hidden" libraries, object files and flags are used when
11800       # linking a shared library.
11801       #
11802       # There doesn't appear to be a way to prevent this compiler from
11803       # explicitly linking system object files so we need to strip them
11804       # from the output so that they don't get included in the library
11805       # dependencies.
11806       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11807       ;;
11808     *)
11809       if test "$GXX" = yes; then
11810         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'
11811       else
11812         # FIXME: insert proper C++ library support
11813         ld_shlibs_CXX=no
11814       fi
11815       ;;
11816     esac
11817     ;;
11818   hpux10*|hpux11*)
11819     if test $with_gnu_ld = no; then
11820       case "$host_cpu" in
11821       hppa*64*)
11822         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11823         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11824         hardcode_libdir_separator_CXX=:
11825         ;;
11826       ia64*)
11827         hardcode_libdir_flag_spec_CXX='-L$libdir'
11828         ;;
11829       *)
11830         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11831         hardcode_libdir_separator_CXX=:
11832         export_dynamic_flag_spec_CXX='${wl}-E'
11833         ;;
11834       esac
11835     fi
11836     case "$host_cpu" in
11837     hppa*64*)
11838       hardcode_direct_CXX=no
11839       hardcode_shlibpath_var_CXX=no
11840       ;;
11841     ia64*)
11842       hardcode_direct_CXX=no
11843       hardcode_shlibpath_var_CXX=no
11844       hardcode_minus_L_CXX=yes # Not in the search PATH,
11845                                               # but as the default
11846                                               # location of the library.
11847       ;;
11848     *)
11849       hardcode_direct_CXX=yes
11850       hardcode_minus_L_CXX=yes # Not in the search PATH,
11851                                               # but as the default
11852                                               # location of the library.
11853       ;;
11854     esac
11855
11856     case $cc_basename in
11857       CC)
11858         # FIXME: insert proper C++ library support
11859         ld_shlibs_CXX=no
11860         ;;
11861       aCC)
11862         case "$host_cpu" in
11863         hppa*64*|ia64*)
11864           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11865           ;;
11866         *)
11867           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11868           ;;
11869         esac
11870         # Commands to make compiler produce verbose output that lists
11871         # what "hidden" libraries, object files and flags are used when
11872         # linking a shared library.
11873         #
11874         # There doesn't appear to be a way to prevent this compiler from
11875         # explicitly linking system object files so we need to strip them
11876         # from the output so that they don't get included in the library
11877         # dependencies.
11878         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'
11879         ;;
11880       *)
11881         if test "$GXX" = yes; then
11882           if test $with_gnu_ld = no; then
11883             case "$host_cpu" in
11884             ia64*|hppa*64*)
11885               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11886               ;;
11887             *)
11888               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'
11889               ;;
11890             esac
11891           fi
11892         else
11893           # FIXME: insert proper C++ library support
11894           ld_shlibs_CXX=no
11895         fi
11896         ;;
11897     esac
11898     ;;
11899   irix5* | irix6*)
11900     case $cc_basename in
11901       CC)
11902         # SGI C++
11903         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'
11904
11905         # Archives containing C++ object files must be created using
11906         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11907         # necessary to make sure instantiated templates are included
11908         # in the archive.
11909         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11910         ;;
11911       *)
11912         if test "$GXX" = yes; then
11913           if test "$with_gnu_ld" = no; then
11914             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'
11915           else
11916             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'
11917           fi
11918         fi
11919         link_all_deplibs_CXX=yes
11920         ;;
11921     esac
11922     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11923     hardcode_libdir_separator_CXX=:
11924     ;;
11925   linux*)
11926     case $cc_basename in
11927       KCC)
11928         # Kuck and Associates, Inc. (KAI) C++ Compiler
11929
11930         # KCC will only create a shared library if the output file
11931         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11932         # to its proper name (with version) after linking.
11933         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'
11934         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'
11935         # Commands to make compiler produce verbose output that lists
11936         # what "hidden" libraries, object files and flags are used when
11937         # linking a shared library.
11938         #
11939         # There doesn't appear to be a way to prevent this compiler from
11940         # explicitly linking system object files so we need to strip them
11941         # from the output so that they don't get included in the library
11942         # dependencies.
11943         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'
11944
11945         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11946         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11947
11948         # Archives containing C++ object files must be created using
11949         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11950         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11951         ;;
11952       icpc)
11953         # Intel C++
11954         with_gnu_ld=yes
11955         archive_cmds_need_lc_CXX=no
11956         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11957         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'
11958         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11959         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11960         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11961         ;;
11962       cxx)
11963         # Compaq C++
11964         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11965         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'
11966
11967         runpath_var=LD_RUN_PATH
11968         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11969         hardcode_libdir_separator_CXX=:
11970
11971         # Commands to make compiler produce verbose output that lists
11972         # what "hidden" libraries, object files and flags are used when
11973         # linking a shared library.
11974         #
11975         # There doesn't appear to be a way to prevent this compiler from
11976         # explicitly linking system object files so we need to strip them
11977         # from the output so that they don't get included in the library
11978         # dependencies.
11979         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'
11980         ;;
11981     esac
11982     ;;
11983   lynxos*)
11984     # FIXME: insert proper C++ library support
11985     ld_shlibs_CXX=no
11986     ;;
11987   m88k*)
11988     # FIXME: insert proper C++ library support
11989     ld_shlibs_CXX=no
11990     ;;
11991   mvs*)
11992     case $cc_basename in
11993       cxx)
11994         # FIXME: insert proper C++ library support
11995         ld_shlibs_CXX=no
11996         ;;
11997       *)
11998         # FIXME: insert proper C++ library support
11999         ld_shlibs_CXX=no
12000         ;;
12001     esac
12002     ;;
12003   netbsd*)
12004     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12005       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12006       wlarc=
12007       hardcode_libdir_flag_spec_CXX='-R$libdir'
12008       hardcode_direct_CXX=yes
12009       hardcode_shlibpath_var_CXX=no
12010     fi
12011     # Workaround some broken pre-1.5 toolchains
12012     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12013     ;;
12014   osf3*)
12015     case $cc_basename in
12016       KCC)
12017         # Kuck and Associates, Inc. (KAI) C++ Compiler
12018
12019         # KCC will only create a shared library if the output file
12020         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12021         # to its proper name (with version) after linking.
12022         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'
12023
12024         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12025         hardcode_libdir_separator_CXX=:
12026
12027         # Archives containing C++ object files must be created using
12028         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12029         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12030
12031         ;;
12032       RCC)
12033         # Rational C++ 2.4.1
12034         # FIXME: insert proper C++ library support
12035         ld_shlibs_CXX=no
12036         ;;
12037       cxx)
12038         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12039         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'
12040
12041         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12042         hardcode_libdir_separator_CXX=:
12043
12044         # Commands to make compiler produce verbose output that lists
12045         # what "hidden" libraries, object files and flags are used when
12046         # linking a shared library.
12047         #
12048         # There doesn't appear to be a way to prevent this compiler from
12049         # explicitly linking system object files so we need to strip them
12050         # from the output so that they don't get included in the library
12051         # dependencies.
12052         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'
12053         ;;
12054       *)
12055         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12056           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12057           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'
12058
12059           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12060           hardcode_libdir_separator_CXX=:
12061
12062           # Commands to make compiler produce verbose output that lists
12063           # what "hidden" libraries, object files and flags are used when
12064           # linking a shared library.
12065           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12066
12067         else
12068           # FIXME: insert proper C++ library support
12069           ld_shlibs_CXX=no
12070         fi
12071         ;;
12072     esac
12073     ;;
12074   osf4* | osf5*)
12075     case $cc_basename in
12076       KCC)
12077         # Kuck and Associates, Inc. (KAI) C++ Compiler
12078
12079         # KCC will only create a shared library if the output file
12080         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12081         # to its proper name (with version) after linking.
12082         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'
12083
12084         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12085         hardcode_libdir_separator_CXX=:
12086
12087         # Archives containing C++ object files must be created using
12088         # the KAI C++ compiler.
12089         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12090         ;;
12091       RCC)
12092         # Rational C++ 2.4.1
12093         # FIXME: insert proper C++ library support
12094         ld_shlibs_CXX=no
12095         ;;
12096       cxx)
12097         allow_undefined_flag_CXX=' -expect_unresolved \*'
12098         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'
12099         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12100           echo "-hidden">> $lib.exp~
12101           $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~
12102           $rm $lib.exp'
12103
12104         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12105         hardcode_libdir_separator_CXX=:
12106
12107         # Commands to make compiler produce verbose output that lists
12108         # what "hidden" libraries, object files and flags are used when
12109         # linking a shared library.
12110         #
12111         # There doesn't appear to be a way to prevent this compiler from
12112         # explicitly linking system object files so we need to strip them
12113         # from the output so that they don't get included in the library
12114         # dependencies.
12115         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'
12116         ;;
12117       *)
12118         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12119           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12120          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'
12121
12122           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12123           hardcode_libdir_separator_CXX=:
12124
12125           # Commands to make compiler produce verbose output that lists
12126           # what "hidden" libraries, object files and flags are used when
12127           # linking a shared library.
12128           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12129
12130         else
12131           # FIXME: insert proper C++ library support
12132           ld_shlibs_CXX=no
12133         fi
12134         ;;
12135     esac
12136     ;;
12137   psos*)
12138     # FIXME: insert proper C++ library support
12139     ld_shlibs_CXX=no
12140     ;;
12141   sco*)
12142     archive_cmds_need_lc_CXX=no
12143     case $cc_basename in
12144       CC)
12145         # FIXME: insert proper C++ library support
12146         ld_shlibs_CXX=no
12147         ;;
12148       *)
12149         # FIXME: insert proper C++ library support
12150         ld_shlibs_CXX=no
12151         ;;
12152     esac
12153     ;;
12154   sunos4*)
12155     case $cc_basename in
12156       CC)
12157         # Sun C++ 4.x
12158         # FIXME: insert proper C++ library support
12159         ld_shlibs_CXX=no
12160         ;;
12161       lcc)
12162         # Lucid
12163         # FIXME: insert proper C++ library support
12164         ld_shlibs_CXX=no
12165         ;;
12166       *)
12167         # FIXME: insert proper C++ library support
12168         ld_shlibs_CXX=no
12169         ;;
12170     esac
12171     ;;
12172   solaris*)
12173     case $cc_basename in
12174       CC)
12175         # Sun C++ 4.2, 5.x and Centerline C++
12176         no_undefined_flag_CXX=' -zdefs'
12177         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12178         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12179         $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'
12180
12181         hardcode_libdir_flag_spec_CXX='-R$libdir'
12182         hardcode_shlibpath_var_CXX=no
12183         case $host_os in
12184           solaris2.0-5 | solaris2.0-5.*) ;;
12185           *)
12186             # The C++ compiler is used as linker so we must use $wl
12187             # flag to pass the commands to the underlying system
12188             # linker.
12189             # Supported since Solaris 2.6 (maybe 2.5.1?)
12190             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12191             ;;
12192         esac
12193         link_all_deplibs_CXX=yes
12194
12195         # Commands to make compiler produce verbose output that lists
12196         # what "hidden" libraries, object files and flags are used when
12197         # linking a shared library.
12198         #
12199         # There doesn't appear to be a way to prevent this compiler from
12200         # explicitly linking system object files so we need to strip them
12201         # from the output so that they don't get included in the library
12202         # dependencies.
12203         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'
12204
12205         # Archives containing C++ object files must be created using
12206         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12207         # necessary to make sure instantiated templates are included
12208         # in the archive.
12209         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12210         ;;
12211       gcx)
12212         # Green Hills C++ Compiler
12213         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12214
12215         # The C++ compiler must be used to create the archive.
12216         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12217         ;;
12218       *)
12219         # GNU C++ compiler with Solaris linker
12220         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12221           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12222           if $CC --version | grep -v '^2\.7' > /dev/null; then
12223             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12224             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12225                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12226
12227             # Commands to make compiler produce verbose output that lists
12228             # what "hidden" libraries, object files and flags are used when
12229             # linking a shared library.
12230             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12231           else
12232             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12233             # platform.
12234             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12235             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12236                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12237
12238             # Commands to make compiler produce verbose output that lists
12239             # what "hidden" libraries, object files and flags are used when
12240             # linking a shared library.
12241             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12242           fi
12243
12244           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12245         fi
12246         ;;
12247     esac
12248     ;;
12249   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12250     archive_cmds_need_lc_CXX=no
12251     ;;
12252   tandem*)
12253     case $cc_basename in
12254       NCC)
12255         # NonStop-UX NCC 3.20
12256         # FIXME: insert proper C++ library support
12257         ld_shlibs_CXX=no
12258         ;;
12259       *)
12260         # FIXME: insert proper C++ library support
12261         ld_shlibs_CXX=no
12262         ;;
12263     esac
12264     ;;
12265   vxworks*)
12266     # FIXME: insert proper C++ library support
12267     ld_shlibs_CXX=no
12268     ;;
12269   *)
12270     # FIXME: insert proper C++ library support
12271     ld_shlibs_CXX=no
12272     ;;
12273 esac
12274 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12275 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12276 test "$ld_shlibs_CXX" = no && can_build_shared=no
12277
12278 GCC_CXX="$GXX"
12279 LD_CXX="$LD"
12280
12281
12282 cat > conftest.$ac_ext <<EOF
12283 class Foo
12284 {
12285 public:
12286   Foo (void) { a = 0; }
12287 private:
12288   int a;
12289 };
12290 EOF
12291
12292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12293   (eval $ac_compile) 2>&5
12294   ac_status=$?
12295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296   (exit $ac_status); }; then
12297   # Parse the compiler output and extract the necessary
12298   # objects, libraries and library flags.
12299
12300   # Sentinel used to keep track of whether or not we are before
12301   # the conftest object file.
12302   pre_test_object_deps_done=no
12303
12304   # The `*' in the case matches for architectures that use `case' in
12305   # $output_verbose_cmd can trigger glob expansion during the loop
12306   # eval without this substitution.
12307   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
12308
12309   for p in `eval $output_verbose_link_cmd`; do
12310     case $p in
12311
12312     -L* | -R* | -l*)
12313        # Some compilers place space between "-{L,R}" and the path.
12314        # Remove the space.
12315        if test $p = "-L" \
12316           || test $p = "-R"; then
12317          prev=$p
12318          continue
12319        else
12320          prev=
12321        fi
12322
12323        if test "$pre_test_object_deps_done" = no; then
12324          case $p in
12325          -L* | -R*)
12326            # Internal compiler library paths should come after those
12327            # provided the user.  The postdeps already come after the
12328            # user supplied libs so there is no need to process them.
12329            if test -z "$compiler_lib_search_path_CXX"; then
12330              compiler_lib_search_path_CXX="${prev}${p}"
12331            else
12332              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12333            fi
12334            ;;
12335          # The "-l" case would never come before the object being
12336          # linked, so don't bother handling this case.
12337          esac
12338        else
12339          if test -z "$postdeps_CXX"; then
12340            postdeps_CXX="${prev}${p}"
12341          else
12342            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12343          fi
12344        fi
12345        ;;
12346
12347     *.$objext)
12348        # This assumes that the test object file only shows up
12349        # once in the compiler output.
12350        if test "$p" = "conftest.$objext"; then
12351          pre_test_object_deps_done=yes
12352          continue
12353        fi
12354
12355        if test "$pre_test_object_deps_done" = no; then
12356          if test -z "$predep_objects_CXX"; then
12357            predep_objects_CXX="$p"
12358          else
12359            predep_objects_CXX="$predep_objects_CXX $p"
12360          fi
12361        else
12362          if test -z "$postdep_objects_CXX"; then
12363            postdep_objects_CXX="$p"
12364          else
12365            postdep_objects_CXX="$postdep_objects_CXX $p"
12366          fi
12367        fi
12368        ;;
12369
12370     *) ;; # Ignore the rest.
12371
12372     esac
12373   done
12374
12375   # Clean up.
12376   rm -f a.out a.exe
12377 else
12378   echo "libtool.m4: error: problem compiling CXX test program"
12379 fi
12380
12381 $rm -f confest.$objext
12382
12383 case " $postdeps_CXX " in
12384 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12385 esac
12386
12387 lt_prog_compiler_wl_CXX=
12388 lt_prog_compiler_pic_CXX=
12389 lt_prog_compiler_static_CXX=
12390
12391 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12392 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12393
12394   # C++ specific cases for pic, static, wl, etc.
12395   if test "$GXX" = yes; then
12396     lt_prog_compiler_wl_CXX='-Wl,'
12397     lt_prog_compiler_static_CXX='-static'
12398
12399     case $host_os in
12400     aix*)
12401       # All AIX code is PIC.
12402       if test "$host_cpu" = ia64; then
12403         # AIX 5 now supports IA64 processor
12404         lt_prog_compiler_static_CXX='-Bstatic'
12405       fi
12406       ;;
12407     amigaos*)
12408       # FIXME: we need at least 68020 code to build shared libraries, but
12409       # adding the `-m68020' flag to GCC prevents building anything better,
12410       # like `-m68040'.
12411       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12412       ;;
12413     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12414       # PIC is the default for these OSes.
12415       ;;
12416     mingw* | os2* | pw32*)
12417       # This hack is so that the source file can tell whether it is being
12418       # built for inclusion in a dll (and should export symbols for example).
12419       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12420       ;;
12421     darwin* | rhapsody*)
12422       # PIC is the default on this platform
12423       # Common symbols not allowed in MH_DYLIB files
12424       lt_prog_compiler_pic_CXX='-fno-common'
12425       ;;
12426     *djgpp*)
12427       # DJGPP does not support shared libraries at all
12428       lt_prog_compiler_pic_CXX=
12429       ;;
12430     sysv4*MP*)
12431       if test -d /usr/nec; then
12432         lt_prog_compiler_pic_CXX=-Kconform_pic
12433       fi
12434       ;;
12435     hpux*)
12436       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12437       # not for PA HP-UX.
12438       case "$host_cpu" in
12439       hppa*64*|ia64*)
12440         ;;
12441       *)
12442         lt_prog_compiler_pic_CXX='-fPIC'
12443         ;;
12444       esac
12445       ;;
12446     *)
12447       lt_prog_compiler_pic_CXX='-fPIC'
12448       ;;
12449     esac
12450   else
12451     case $host_os in
12452       aix4* | aix5*)
12453         # All AIX code is PIC.
12454         if test "$host_cpu" = ia64; then
12455           # AIX 5 now supports IA64 processor
12456           lt_prog_compiler_static_CXX='-Bstatic'
12457         else
12458           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12459         fi
12460         ;;
12461       chorus*)
12462         case $cc_basename in
12463         cxch68)
12464           # Green Hills C++ Compiler
12465           # _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"
12466           ;;
12467         esac
12468         ;;
12469       dgux*)
12470         case $cc_basename in
12471           ec++)
12472             lt_prog_compiler_pic_CXX='-KPIC'
12473             ;;
12474           ghcx)
12475             # Green Hills C++ Compiler
12476             lt_prog_compiler_pic_CXX='-pic'
12477             ;;
12478           *)
12479             ;;
12480         esac
12481         ;;
12482       freebsd* | kfreebsd*-gnu)
12483         # FreeBSD uses GNU C++
12484         ;;
12485       hpux9* | hpux10* | hpux11*)
12486         case $cc_basename in
12487           CC)
12488             lt_prog_compiler_wl_CXX='-Wl,'
12489             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12490             if test "$host_cpu" != ia64; then
12491               lt_prog_compiler_pic_CXX='+Z'
12492             fi
12493             ;;
12494           aCC)
12495             lt_prog_compiler_wl_CXX='-Wl,'
12496             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12497             case "$host_cpu" in
12498             hppa*64*|ia64*)
12499               # +Z the default
12500               ;;
12501             *)
12502               lt_prog_compiler_pic_CXX='+Z'
12503               ;;
12504             esac
12505             ;;
12506           *)
12507             ;;
12508         esac
12509         ;;
12510       irix5* | irix6* | nonstopux*)
12511         case $cc_basename in
12512           CC)
12513             lt_prog_compiler_wl_CXX='-Wl,'
12514             lt_prog_compiler_static_CXX='-non_shared'
12515             # CC pic flag -KPIC is the default.
12516             ;;
12517           *)
12518             ;;
12519         esac
12520         ;;
12521       linux*)
12522         case $cc_basename in
12523           KCC)
12524             # KAI C++ Compiler
12525             lt_prog_compiler_wl_CXX='--backend -Wl,'
12526             lt_prog_compiler_pic_CXX='-fPIC'
12527             ;;
12528           icpc)
12529             # Intel C++
12530             lt_prog_compiler_wl_CXX='-Wl,'
12531             lt_prog_compiler_pic_CXX='-KPIC'
12532             lt_prog_compiler_static_CXX='-static'
12533             ;;
12534           cxx)
12535             # Compaq C++
12536             # Make sure the PIC flag is empty.  It appears that all Alpha
12537             # Linux and Compaq Tru64 Unix objects are PIC.
12538             lt_prog_compiler_pic_CXX=
12539             lt_prog_compiler_static_CXX='-non_shared'
12540             ;;
12541           *)
12542             ;;
12543         esac
12544         ;;
12545       lynxos*)
12546         ;;
12547       m88k*)
12548         ;;
12549       mvs*)
12550         case $cc_basename in
12551           cxx)
12552             lt_prog_compiler_pic_CXX='-W c,exportall'
12553             ;;
12554           *)
12555             ;;
12556         esac
12557         ;;
12558       netbsd*)
12559         ;;
12560       osf3* | osf4* | osf5*)
12561         case $cc_basename in
12562           KCC)
12563             lt_prog_compiler_wl_CXX='--backend -Wl,'
12564             ;;
12565           RCC)
12566             # Rational C++ 2.4.1
12567             lt_prog_compiler_pic_CXX='-pic'
12568             ;;
12569           cxx)
12570             # Digital/Compaq C++
12571             lt_prog_compiler_wl_CXX='-Wl,'
12572             # Make sure the PIC flag is empty.  It appears that all Alpha
12573             # Linux and Compaq Tru64 Unix objects are PIC.
12574             lt_prog_compiler_pic_CXX=
12575             lt_prog_compiler_static_CXX='-non_shared'
12576             ;;
12577           *)
12578             ;;
12579         esac
12580         ;;
12581       psos*)
12582         ;;
12583       sco*)
12584         case $cc_basename in
12585           CC)
12586             lt_prog_compiler_pic_CXX='-fPIC'
12587             ;;
12588           *)
12589             ;;
12590         esac
12591         ;;
12592       solaris*)
12593         case $cc_basename in
12594           CC)
12595             # Sun C++ 4.2, 5.x and Centerline C++
12596             lt_prog_compiler_pic_CXX='-KPIC'
12597             lt_prog_compiler_static_CXX='-Bstatic'
12598             lt_prog_compiler_wl_CXX='-Qoption ld '
12599             ;;
12600           gcx)
12601             # Green Hills C++ Compiler
12602             lt_prog_compiler_pic_CXX='-PIC'
12603             ;;
12604           *)
12605             ;;
12606         esac
12607         ;;
12608       sunos4*)
12609         case $cc_basename in
12610           CC)
12611             # Sun C++ 4.x
12612             lt_prog_compiler_pic_CXX='-pic'
12613             lt_prog_compiler_static_CXX='-Bstatic'
12614             ;;
12615           lcc)
12616             # Lucid
12617             lt_prog_compiler_pic_CXX='-pic'
12618             ;;
12619           *)
12620             ;;
12621         esac
12622         ;;
12623       tandem*)
12624         case $cc_basename in
12625           NCC)
12626             # NonStop-UX NCC 3.20
12627             lt_prog_compiler_pic_CXX='-KPIC'
12628             ;;
12629           *)
12630             ;;
12631         esac
12632         ;;
12633       unixware*)
12634         ;;
12635       vxworks*)
12636         ;;
12637       *)
12638         lt_prog_compiler_can_build_shared_CXX=no
12639         ;;
12640     esac
12641   fi
12642
12643 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12644 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12645
12646 #
12647 # Check to make sure the PIC flag actually works.
12648 #
12649 if test -n "$lt_prog_compiler_pic_CXX"; then
12650
12651 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12652 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12653 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12654   echo $ECHO_N "(cached) $ECHO_C" >&6
12655 else
12656   lt_prog_compiler_pic_works_CXX=no
12657   ac_outfile=conftest.$ac_objext
12658    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12659    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12660    # Insert the option either (1) after the last *FLAGS variable, or
12661    # (2) before a word containing "conftest.", or (3) at the end.
12662    # Note that $ac_compile itself does not contain backslashes and begins
12663    # with a dollar sign (not a hyphen), so the echo should work correctly.
12664    # The option is referenced via a variable to avoid confusing sed.
12665    lt_compile=`echo "$ac_compile" | $SED \
12666    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12667    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12668    -e 's:$: $lt_compiler_flag:'`
12669    (eval echo "\"\$as_me:12669: $lt_compile\"" >&5)
12670    (eval "$lt_compile" 2>conftest.err)
12671    ac_status=$?
12672    cat conftest.err >&5
12673    echo "$as_me:12673: \$? = $ac_status" >&5
12674    if (exit $ac_status) && test -s "$ac_outfile"; then
12675      # The compiler can only warn and ignore the option if not recognized
12676      # So say no if there are warnings
12677      if test ! -s conftest.err; then
12678        lt_prog_compiler_pic_works_CXX=yes
12679      fi
12680    fi
12681    $rm conftest*
12682
12683 fi
12684 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12685 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
12686
12687 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12688     case $lt_prog_compiler_pic_CXX in
12689      "" | " "*) ;;
12690      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12691      esac
12692 else
12693     lt_prog_compiler_pic_CXX=
12694      lt_prog_compiler_can_build_shared_CXX=no
12695 fi
12696
12697 fi
12698 case "$host_os" in
12699   # For platforms which do not support PIC, -DPIC is meaningless:
12700   *djgpp*)
12701     lt_prog_compiler_pic_CXX=
12702     ;;
12703   *)
12704     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12705     ;;
12706 esac
12707
12708 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12709 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12710 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12711   echo $ECHO_N "(cached) $ECHO_C" >&6
12712 else
12713   lt_cv_prog_compiler_c_o_CXX=no
12714    $rm -r conftest 2>/dev/null
12715    mkdir conftest
12716    cd conftest
12717    mkdir out
12718    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12719
12720    lt_compiler_flag="-o out/conftest2.$ac_objext"
12721    # Insert the option either (1) after the last *FLAGS variable, or
12722    # (2) before a word containing "conftest.", or (3) at the end.
12723    # Note that $ac_compile itself does not contain backslashes and begins
12724    # with a dollar sign (not a hyphen), so the echo should work correctly.
12725    lt_compile=`echo "$ac_compile" | $SED \
12726    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12727    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12728    -e 's:$: $lt_compiler_flag:'`
12729    (eval echo "\"\$as_me:12729: $lt_compile\"" >&5)
12730    (eval "$lt_compile" 2>out/conftest.err)
12731    ac_status=$?
12732    cat out/conftest.err >&5
12733    echo "$as_me:12733: \$? = $ac_status" >&5
12734    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12735    then
12736      # The compiler can only warn and ignore the option if not recognized
12737      # So say no if there are warnings
12738      if test ! -s out/conftest.err; then
12739        lt_cv_prog_compiler_c_o_CXX=yes
12740      fi
12741    fi
12742    chmod u+w .
12743    $rm conftest*
12744    # SGI C++ compiler will create directory out/ii_files/ for
12745    # template instantiation
12746    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12747    $rm out/* && rmdir out
12748    cd ..
12749    rmdir conftest
12750    $rm conftest*
12751
12752 fi
12753 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12754 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12755
12756
12757 hard_links="nottested"
12758 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12759   # do not overwrite the value of need_locks provided by the user
12760   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12761 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12762   hard_links=yes
12763   $rm conftest*
12764   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12765   touch conftest.a
12766   ln conftest.a conftest.b 2>&5 || hard_links=no
12767   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12768   echo "$as_me:$LINENO: result: $hard_links" >&5
12769 echo "${ECHO_T}$hard_links" >&6
12770   if test "$hard_links" = no; then
12771     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12772 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12773     need_locks=warn
12774   fi
12775 else
12776   need_locks=no
12777 fi
12778
12779 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12780 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12781
12782   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12783   case $host_os in
12784   aix4* | aix5*)
12785     # If we're using GNU nm, then we don't want the "-C" option.
12786     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12787     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12788       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'
12789     else
12790       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'
12791     fi
12792     ;;
12793   pw32*)
12794     export_symbols_cmds_CXX="$ltdll_cmds"
12795   ;;
12796   cygwin* | mingw*)
12797     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12798   ;;
12799   *)
12800     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12801   ;;
12802   esac
12803
12804 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12805 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12806 test "$ld_shlibs_CXX" = no && can_build_shared=no
12807
12808 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12809 if test "$GCC" = yes; then
12810   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12811 fi
12812
12813 #
12814 # Do we need to explicitly link libc?
12815 #
12816 case "x$archive_cmds_need_lc_CXX" in
12817 x|xyes)
12818   # Assume -lc should be added
12819   archive_cmds_need_lc_CXX=yes
12820
12821   if test "$enable_shared" = yes && test "$GCC" = yes; then
12822     case $archive_cmds_CXX in
12823     *'~'*)
12824       # FIXME: we may have to deal with multi-command sequences.
12825       ;;
12826     '$CC '*)
12827       # Test whether the compiler implicitly links with -lc since on some
12828       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12829       # to ld, don't add -lc before -lgcc.
12830       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12831 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12832       $rm conftest*
12833       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12834
12835       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12836   (eval $ac_compile) 2>&5
12837   ac_status=$?
12838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839   (exit $ac_status); } 2>conftest.err; then
12840         soname=conftest
12841         lib=conftest
12842         libobjs=conftest.$ac_objext
12843         deplibs=
12844         wl=$lt_prog_compiler_wl_CXX
12845         compiler_flags=-v
12846         linker_flags=-v
12847         verstring=
12848         output_objdir=.
12849         libname=conftest
12850         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12851         allow_undefined_flag_CXX=
12852         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12853   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12854   ac_status=$?
12855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856   (exit $ac_status); }
12857         then
12858           archive_cmds_need_lc_CXX=no
12859         else
12860           archive_cmds_need_lc_CXX=yes
12861         fi
12862         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12863       else
12864         cat conftest.err 1>&5
12865       fi
12866       $rm conftest*
12867       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12868 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12869       ;;
12870     esac
12871   fi
12872   ;;
12873 esac
12874
12875 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12876 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12877 library_names_spec=
12878 libname_spec='lib$name'
12879 soname_spec=
12880 shrext=".so"
12881 postinstall_cmds=
12882 postuninstall_cmds=
12883 finish_cmds=
12884 finish_eval=
12885 shlibpath_var=
12886 shlibpath_overrides_runpath=unknown
12887 version_type=none
12888 dynamic_linker="$host_os ld.so"
12889 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12890 if test "$GCC" = yes; then
12891   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12892   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12893     # if the path contains ";" then we assume it to be the separator
12894     # otherwise default to the standard path separator (i.e. ":") - it is
12895     # assumed that no part of a normal pathname contains ";" but that should
12896     # okay in the real world where ";" in dirpaths is itself problematic.
12897     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12898   else
12899     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12900   fi
12901 else
12902   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12903 fi
12904 need_lib_prefix=unknown
12905 hardcode_into_libs=no
12906
12907 # when you set need_version to no, make sure it does not cause -set_version
12908 # flags to be left without arguments
12909 need_version=unknown
12910
12911 case $host_os in
12912 aix3*)
12913   version_type=linux
12914   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12915   shlibpath_var=LIBPATH
12916
12917   # AIX 3 has no versioning support, so we append a major version to the name.
12918   soname_spec='${libname}${release}${shared_ext}$major'
12919   ;;
12920
12921 aix4* | aix5*)
12922   version_type=linux
12923   need_lib_prefix=no
12924   need_version=no
12925   hardcode_into_libs=yes
12926   if test "$host_cpu" = ia64; then
12927     # AIX 5 supports IA64
12928     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12929     shlibpath_var=LD_LIBRARY_PATH
12930   else
12931     # With GCC up to 2.95.x, collect2 would create an import file
12932     # for dependence libraries.  The import file would start with
12933     # the line `#! .'.  This would cause the generated library to
12934     # depend on `.', always an invalid library.  This was fixed in
12935     # development snapshots of GCC prior to 3.0.
12936     case $host_os in
12937       aix4 | aix4.[01] | aix4.[01].*)
12938       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12939            echo ' yes '
12940            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12941         :
12942       else
12943         can_build_shared=no
12944       fi
12945       ;;
12946     esac
12947     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12948     # soname into executable. Probably we can add versioning support to
12949     # collect2, so additional links can be useful in future.
12950     if test "$aix_use_runtimelinking" = yes; then
12951       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12952       # instead of lib<name>.a to let people know that these are not
12953       # typical AIX shared libraries.
12954       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12955     else
12956       # We preserve .a as extension for shared libraries through AIX4.2
12957       # and later when we are not doing run time linking.
12958       library_names_spec='${libname}${release}.a $libname.a'
12959       soname_spec='${libname}${release}${shared_ext}$major'
12960     fi
12961     shlibpath_var=LIBPATH
12962   fi
12963   ;;
12964
12965 amigaos*)
12966   library_names_spec='$libname.ixlibrary $libname.a'
12967   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12968   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'
12969   ;;
12970
12971 beos*)
12972   library_names_spec='${libname}${shared_ext}'
12973   dynamic_linker="$host_os ld.so"
12974   shlibpath_var=LIBRARY_PATH
12975   ;;
12976
12977 bsdi4*)
12978   version_type=linux
12979   need_version=no
12980   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12981   soname_spec='${libname}${release}${shared_ext}$major'
12982   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12983   shlibpath_var=LD_LIBRARY_PATH
12984   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12985   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12986   # the default ld.so.conf also contains /usr/contrib/lib and
12987   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12988   # libtool to hard-code these into programs
12989   ;;
12990
12991 cygwin* | mingw* | pw32*)
12992   version_type=windows
12993   shrext=".dll"
12994   need_version=no
12995   need_lib_prefix=no
12996
12997   case $GCC,$host_os in
12998   yes,cygwin* | yes,mingw* | yes,pw32*)
12999     library_names_spec='$libname.dll.a'
13000     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13001     postinstall_cmds='base_file=`basename \${file}`~
13002       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13003       dldir=$destdir/`dirname \$dlpath`~
13004       test -d \$dldir || mkdir -p \$dldir~
13005       $install_prog $dir/$dlname \$dldir/$dlname'
13006     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13007       dlpath=$dir/\$dldll~
13008        $rm \$dlpath'
13009     shlibpath_overrides_runpath=yes
13010
13011     case $host_os in
13012     cygwin*)
13013       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13014       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13015       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13016       ;;
13017     mingw*)
13018       # MinGW DLLs use traditional 'lib' prefix
13019       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13020       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13021       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13022         # It is most probably a Windows format PATH printed by
13023         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13024         # path with ; separators, and with drive letters. We can handle the
13025         # drive letters (cygwin fileutils understands them), so leave them,
13026         # especially as we might pass files found there to a mingw objdump,
13027         # which wouldn't understand a cygwinified path. Ahh.
13028         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13029       else
13030         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13031       fi
13032       ;;
13033     pw32*)
13034       # pw32 DLLs use 'pw' prefix rather than 'lib'
13035       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13036       ;;
13037     esac
13038     ;;
13039
13040   *)
13041     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13042     ;;
13043   esac
13044   dynamic_linker='Win32 ld.exe'
13045   # FIXME: first we should search . and the directory the executable is in
13046   shlibpath_var=PATH
13047   ;;
13048
13049 darwin* | rhapsody*)
13050   dynamic_linker="$host_os dyld"
13051   version_type=darwin
13052   need_lib_prefix=no
13053   need_version=no
13054   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13055   soname_spec='${libname}${release}${major}$shared_ext'
13056   shlibpath_overrides_runpath=yes
13057   shlibpath_var=DYLD_LIBRARY_PATH
13058   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13059   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13060   if test "$GCC" = yes; then
13061     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"`
13062   else
13063     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13064   fi
13065   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13066   ;;
13067
13068 dgux*)
13069   version_type=linux
13070   need_lib_prefix=no
13071   need_version=no
13072   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13073   soname_spec='${libname}${release}${shared_ext}$major'
13074   shlibpath_var=LD_LIBRARY_PATH
13075   ;;
13076
13077 freebsd1*)
13078   dynamic_linker=no
13079   ;;
13080
13081 kfreebsd*-gnu)
13082   version_type=linux
13083   need_lib_prefix=no
13084   need_version=no
13085   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13086   soname_spec='${libname}${release}${shared_ext}$major'
13087   shlibpath_var=LD_LIBRARY_PATH
13088   shlibpath_overrides_runpath=no
13089   hardcode_into_libs=yes
13090   dynamic_linker='GNU ld.so'
13091   ;;
13092
13093 freebsd*)
13094   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13095   version_type=freebsd-$objformat
13096   case $version_type in
13097     freebsd-elf*)
13098       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13099       need_version=no
13100       need_lib_prefix=no
13101       ;;
13102     freebsd-*)
13103       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13104       need_version=yes
13105       ;;
13106   esac
13107   shlibpath_var=LD_LIBRARY_PATH
13108   case $host_os in
13109   freebsd2*)
13110     shlibpath_overrides_runpath=yes
13111     ;;
13112   freebsd3.01* | freebsdelf3.01*)
13113     shlibpath_overrides_runpath=yes
13114     hardcode_into_libs=yes
13115     ;;
13116   *) # from 3.2 on
13117     shlibpath_overrides_runpath=no
13118     hardcode_into_libs=yes
13119     ;;
13120   esac
13121   ;;
13122
13123 gnu*)
13124   version_type=linux
13125   need_lib_prefix=no
13126   need_version=no
13127   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13128   soname_spec='${libname}${release}${shared_ext}$major'
13129   shlibpath_var=LD_LIBRARY_PATH
13130   hardcode_into_libs=yes
13131   ;;
13132
13133 hpux9* | hpux10* | hpux11*)
13134   # Give a soname corresponding to the major version so that dld.sl refuses to
13135   # link against other versions.
13136   version_type=sunos
13137   need_lib_prefix=no
13138   need_version=no
13139   case "$host_cpu" in
13140   ia64*)
13141     shrext='.so'
13142     hardcode_into_libs=yes
13143     dynamic_linker="$host_os dld.so"
13144     shlibpath_var=LD_LIBRARY_PATH
13145     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13146     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13147     soname_spec='${libname}${release}${shared_ext}$major'
13148     if test "X$HPUX_IA64_MODE" = X32; then
13149       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13150     else
13151       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13152     fi
13153     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13154     ;;
13155    hppa*64*)
13156      shrext='.sl'
13157      hardcode_into_libs=yes
13158      dynamic_linker="$host_os dld.sl"
13159      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13160      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13161      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13162      soname_spec='${libname}${release}${shared_ext}$major'
13163      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13164      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13165      ;;
13166    *)
13167     shrext='.sl'
13168     dynamic_linker="$host_os dld.sl"
13169     shlibpath_var=SHLIB_PATH
13170     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13171     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13172     soname_spec='${libname}${release}${shared_ext}$major'
13173     ;;
13174   esac
13175   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13176   postinstall_cmds='chmod 555 $lib'
13177   ;;
13178
13179 irix5* | irix6* | nonstopux*)
13180   case $host_os in
13181     nonstopux*) version_type=nonstopux ;;
13182     *)
13183         if test "$lt_cv_prog_gnu_ld" = yes; then
13184                 version_type=linux
13185         else
13186                 version_type=irix
13187         fi ;;
13188   esac
13189   need_lib_prefix=no
13190   need_version=no
13191   soname_spec='${libname}${release}${shared_ext}$major'
13192   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13193   case $host_os in
13194   irix5* | nonstopux*)
13195     libsuff= shlibsuff=
13196     ;;
13197   *)
13198     case $LD in # libtool.m4 will add one of these switches to LD
13199     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13200       libsuff= shlibsuff= libmagic=32-bit;;
13201     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13202       libsuff=32 shlibsuff=N32 libmagic=N32;;
13203     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13204       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13205     *) libsuff= shlibsuff= libmagic=never-match;;
13206     esac
13207     ;;
13208   esac
13209   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13210   shlibpath_overrides_runpath=no
13211   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13212   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13213   hardcode_into_libs=yes
13214   ;;
13215
13216 # No shared lib support for Linux oldld, aout, or coff.
13217 linux*oldld* | linux*aout* | linux*coff*)
13218   dynamic_linker=no
13219   ;;
13220
13221 # This must be Linux ELF.
13222 linux*)
13223   version_type=linux
13224   need_lib_prefix=no
13225   need_version=no
13226   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13227   soname_spec='${libname}${release}${shared_ext}$major'
13228   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13229   shlibpath_var=LD_LIBRARY_PATH
13230   shlibpath_overrides_runpath=no
13231   # This implies no fast_install, which is unacceptable.
13232   # Some rework will be needed to allow for fast_install
13233   # before this can be enabled.
13234   hardcode_into_libs=yes
13235
13236   # Append ld.so.conf contents to the search path
13237   if test -f /etc/ld.so.conf; then
13238     ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
13239     sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
13240   fi
13241
13242   # We used to test for /lib/ld.so.1 and disable shared libraries on
13243   # powerpc, because MkLinux only supported shared libraries with the
13244   # GNU dynamic linker.  Since this was broken with cross compilers,
13245   # most powerpc-linux boxes support dynamic linking these days and
13246   # people can always --disable-shared, the test was removed, and we
13247   # assume the GNU/Linux dynamic linker is in use.
13248   dynamic_linker='GNU/Linux ld.so'
13249   ;;
13250
13251 knetbsd*-gnu)
13252   version_type=linux
13253   need_lib_prefix=no
13254   need_version=no
13255   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13256   soname_spec='${libname}${release}${shared_ext}$major'
13257   shlibpath_var=LD_LIBRARY_PATH
13258   shlibpath_overrides_runpath=no
13259   hardcode_into_libs=yes
13260   dynamic_linker='GNU ld.so'
13261   ;;
13262
13263 netbsd*)
13264   version_type=sunos
13265   need_lib_prefix=no
13266   need_version=no
13267   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13268     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13269     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13270     dynamic_linker='NetBSD (a.out) ld.so'
13271   else
13272     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13273     soname_spec='${libname}${release}${shared_ext}$major'
13274     dynamic_linker='NetBSD ld.elf_so'
13275   fi
13276   shlibpath_var=LD_LIBRARY_PATH
13277   shlibpath_overrides_runpath=yes
13278   hardcode_into_libs=yes
13279   ;;
13280
13281 newsos6)
13282   version_type=linux
13283   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13284   shlibpath_var=LD_LIBRARY_PATH
13285   shlibpath_overrides_runpath=yes
13286   ;;
13287
13288 nto-qnx*)
13289   version_type=linux
13290   need_lib_prefix=no
13291   need_version=no
13292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13293   soname_spec='${libname}${release}${shared_ext}$major'
13294   shlibpath_var=LD_LIBRARY_PATH
13295   shlibpath_overrides_runpath=yes
13296   ;;
13297
13298 openbsd*)
13299   version_type=sunos
13300   need_lib_prefix=no
13301   need_version=yes
13302   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13303   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13304   shlibpath_var=LD_LIBRARY_PATH
13305   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13306     case $host_os in
13307       openbsd2.[89] | openbsd2.[89].*)
13308         shlibpath_overrides_runpath=no
13309         ;;
13310       *)
13311         shlibpath_overrides_runpath=yes
13312         ;;
13313       esac
13314   else
13315     shlibpath_overrides_runpath=yes
13316   fi
13317   ;;
13318
13319 os2*)
13320   libname_spec='$name'
13321   shrext=".dll"
13322   need_lib_prefix=no
13323   library_names_spec='$libname${shared_ext} $libname.a'
13324   dynamic_linker='OS/2 ld.exe'
13325   shlibpath_var=LIBPATH
13326   ;;
13327
13328 osf3* | osf4* | osf5*)
13329   version_type=osf
13330   need_lib_prefix=no
13331   need_version=no
13332   soname_spec='${libname}${release}${shared_ext}$major'
13333   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13334   shlibpath_var=LD_LIBRARY_PATH
13335   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13336   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13337   ;;
13338
13339 sco3.2v5*)
13340   version_type=osf
13341   soname_spec='${libname}${release}${shared_ext}$major'
13342   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13343   shlibpath_var=LD_LIBRARY_PATH
13344   ;;
13345
13346 solaris*)
13347   version_type=linux
13348   need_lib_prefix=no
13349   need_version=no
13350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13351   soname_spec='${libname}${release}${shared_ext}$major'
13352   shlibpath_var=LD_LIBRARY_PATH
13353   shlibpath_overrides_runpath=yes
13354   hardcode_into_libs=yes
13355   # ldd complains unless libraries are executable
13356   postinstall_cmds='chmod +x $lib'
13357   ;;
13358
13359 sunos4*)
13360   version_type=sunos
13361   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13362   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13363   shlibpath_var=LD_LIBRARY_PATH
13364   shlibpath_overrides_runpath=yes
13365   if test "$with_gnu_ld" = yes; then
13366     need_lib_prefix=no
13367   fi
13368   need_version=yes
13369   ;;
13370
13371 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13372   version_type=linux
13373   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13374   soname_spec='${libname}${release}${shared_ext}$major'
13375   shlibpath_var=LD_LIBRARY_PATH
13376   case $host_vendor in
13377     sni)
13378       shlibpath_overrides_runpath=no
13379       need_lib_prefix=no
13380       export_dynamic_flag_spec='${wl}-Blargedynsym'
13381       runpath_var=LD_RUN_PATH
13382       ;;
13383     siemens)
13384       need_lib_prefix=no
13385       ;;
13386     motorola)
13387       need_lib_prefix=no
13388       need_version=no
13389       shlibpath_overrides_runpath=no
13390       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13391       ;;
13392   esac
13393   ;;
13394
13395 sysv4*MP*)
13396   if test -d /usr/nec ;then
13397     version_type=linux
13398     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13399     soname_spec='$libname${shared_ext}.$major'
13400     shlibpath_var=LD_LIBRARY_PATH
13401   fi
13402   ;;
13403
13404 uts4*)
13405   version_type=linux
13406   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13407   soname_spec='${libname}${release}${shared_ext}$major'
13408   shlibpath_var=LD_LIBRARY_PATH
13409   ;;
13410
13411 *)
13412   dynamic_linker=no
13413   ;;
13414 esac
13415 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13416 echo "${ECHO_T}$dynamic_linker" >&6
13417 test "$dynamic_linker" = no && can_build_shared=no
13418
13419 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13420 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13421 hardcode_action_CXX=
13422 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13423    test -n "$runpath_var CXX" || \
13424    test "X$hardcode_automatic_CXX"="Xyes" ; then
13425
13426   # We can hardcode non-existant directories.
13427   if test "$hardcode_direct_CXX" != no &&
13428      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13429      # have to relink, otherwise we might link with an installed library
13430      # when we should be linking with a yet-to-be-installed one
13431      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13432      test "$hardcode_minus_L_CXX" != no; then
13433     # Linking always hardcodes the temporary library directory.
13434     hardcode_action_CXX=relink
13435   else
13436     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13437     hardcode_action_CXX=immediate
13438   fi
13439 else
13440   # We cannot hardcode anything, or else we can only hardcode existing
13441   # directories.
13442   hardcode_action_CXX=unsupported
13443 fi
13444 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13445 echo "${ECHO_T}$hardcode_action_CXX" >&6
13446
13447 if test "$hardcode_action_CXX" = relink; then
13448   # Fast installation is not supported
13449   enable_fast_install=no
13450 elif test "$shlibpath_overrides_runpath" = yes ||
13451      test "$enable_shared" = no; then
13452   # Fast installation is not necessary
13453   enable_fast_install=needless
13454 fi
13455
13456 striplib=
13457 old_striplib=
13458 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13459 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13460 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13461   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13462   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13463   echo "$as_me:$LINENO: result: yes" >&5
13464 echo "${ECHO_T}yes" >&6
13465 else
13466 # FIXME - insert some real tests, host_os isn't really good enough
13467   case $host_os in
13468    darwin*)
13469        if test -n "$STRIP" ; then
13470          striplib="$STRIP -x"
13471          echo "$as_me:$LINENO: result: yes" >&5
13472 echo "${ECHO_T}yes" >&6
13473        else
13474   echo "$as_me:$LINENO: result: no" >&5
13475 echo "${ECHO_T}no" >&6
13476 fi
13477        ;;
13478    *)
13479   echo "$as_me:$LINENO: result: no" >&5
13480 echo "${ECHO_T}no" >&6
13481     ;;
13482   esac
13483 fi
13484
13485 if test "x$enable_dlopen" != xyes; then
13486   enable_dlopen=unknown
13487   enable_dlopen_self=unknown
13488   enable_dlopen_self_static=unknown
13489 else
13490   lt_cv_dlopen=no
13491   lt_cv_dlopen_libs=
13492
13493   case $host_os in
13494   beos*)
13495     lt_cv_dlopen="load_add_on"
13496     lt_cv_dlopen_libs=
13497     lt_cv_dlopen_self=yes
13498     ;;
13499
13500   mingw* | pw32*)
13501     lt_cv_dlopen="LoadLibrary"
13502     lt_cv_dlopen_libs=
13503    ;;
13504
13505   cygwin*)
13506     lt_cv_dlopen="dlopen"
13507     lt_cv_dlopen_libs=
13508    ;;
13509
13510   darwin*)
13511   # if libdl is installed we need to link against it
13512     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13513 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13514 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13515   echo $ECHO_N "(cached) $ECHO_C" >&6
13516 else
13517   ac_check_lib_save_LIBS=$LIBS
13518 LIBS="-ldl  $LIBS"
13519 cat >conftest.$ac_ext <<_ACEOF
13520 /* confdefs.h.  */
13521 _ACEOF
13522 cat confdefs.h >>conftest.$ac_ext
13523 cat >>conftest.$ac_ext <<_ACEOF
13524 /* end confdefs.h.  */
13525
13526 /* Override any gcc2 internal prototype to avoid an error.  */
13527 #ifdef __cplusplus
13528 extern "C"
13529 #endif
13530 /* We use char because int might match the return type of a gcc2
13531    builtin and then its argument prototype would still apply.  */
13532 char dlopen ();
13533 int
13534 main ()
13535 {
13536 dlopen ();
13537   ;
13538   return 0;
13539 }
13540 _ACEOF
13541 rm -f conftest.$ac_objext conftest$ac_exeext
13542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13543   (eval $ac_link) 2>conftest.er1
13544   ac_status=$?
13545   grep -v '^ *+' conftest.er1 >conftest.err
13546   rm -f conftest.er1
13547   cat conftest.err >&5
13548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549   (exit $ac_status); } &&
13550          { ac_try='test -z "$ac_cxx_werror_flag"
13551                          || test ! -s conftest.err'
13552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13553   (eval $ac_try) 2>&5
13554   ac_status=$?
13555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556   (exit $ac_status); }; } &&
13557          { ac_try='test -s conftest$ac_exeext'
13558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13559   (eval $ac_try) 2>&5
13560   ac_status=$?
13561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562   (exit $ac_status); }; }; then
13563   ac_cv_lib_dl_dlopen=yes
13564 else
13565   echo "$as_me: failed program was:" >&5
13566 sed 's/^/| /' conftest.$ac_ext >&5
13567
13568 ac_cv_lib_dl_dlopen=no
13569 fi
13570 rm -f conftest.err conftest.$ac_objext \
13571       conftest$ac_exeext conftest.$ac_ext
13572 LIBS=$ac_check_lib_save_LIBS
13573 fi
13574 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13575 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13576 if test $ac_cv_lib_dl_dlopen = yes; then
13577   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13578 else
13579
13580     lt_cv_dlopen="dyld"
13581     lt_cv_dlopen_libs=
13582     lt_cv_dlopen_self=yes
13583
13584 fi
13585
13586    ;;
13587
13588   *)
13589     echo "$as_me:$LINENO: checking for shl_load" >&5
13590 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13591 if test "${ac_cv_func_shl_load+set}" = set; then
13592   echo $ECHO_N "(cached) $ECHO_C" >&6
13593 else
13594   cat >conftest.$ac_ext <<_ACEOF
13595 /* confdefs.h.  */
13596 _ACEOF
13597 cat confdefs.h >>conftest.$ac_ext
13598 cat >>conftest.$ac_ext <<_ACEOF
13599 /* end confdefs.h.  */
13600 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13601    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13602 #define shl_load innocuous_shl_load
13603
13604 /* System header to define __stub macros and hopefully few prototypes,
13605     which can conflict with char shl_load (); below.
13606     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13607     <limits.h> exists even on freestanding compilers.  */
13608
13609 #ifdef __STDC__
13610 # include <limits.h>
13611 #else
13612 # include <assert.h>
13613 #endif
13614
13615 #undef shl_load
13616
13617 /* Override any gcc2 internal prototype to avoid an error.  */
13618 #ifdef __cplusplus
13619 extern "C"
13620 {
13621 #endif
13622 /* We use char because int might match the return type of a gcc2
13623    builtin and then its argument prototype would still apply.  */
13624 char shl_load ();
13625 /* The GNU C library defines this for functions which it implements
13626     to always fail with ENOSYS.  Some functions are actually named
13627     something starting with __ and the normal name is an alias.  */
13628 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13629 choke me
13630 #else
13631 char (*f) () = shl_load;
13632 #endif
13633 #ifdef __cplusplus
13634 }
13635 #endif
13636
13637 int
13638 main ()
13639 {
13640 return f != shl_load;
13641   ;
13642   return 0;
13643 }
13644 _ACEOF
13645 rm -f conftest.$ac_objext conftest$ac_exeext
13646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13647   (eval $ac_link) 2>conftest.er1
13648   ac_status=$?
13649   grep -v '^ *+' conftest.er1 >conftest.err
13650   rm -f conftest.er1
13651   cat conftest.err >&5
13652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653   (exit $ac_status); } &&
13654          { ac_try='test -z "$ac_cxx_werror_flag"
13655                          || test ! -s conftest.err'
13656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13657   (eval $ac_try) 2>&5
13658   ac_status=$?
13659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660   (exit $ac_status); }; } &&
13661          { ac_try='test -s conftest$ac_exeext'
13662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13663   (eval $ac_try) 2>&5
13664   ac_status=$?
13665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666   (exit $ac_status); }; }; then
13667   ac_cv_func_shl_load=yes
13668 else
13669   echo "$as_me: failed program was:" >&5
13670 sed 's/^/| /' conftest.$ac_ext >&5
13671
13672 ac_cv_func_shl_load=no
13673 fi
13674 rm -f conftest.err conftest.$ac_objext \
13675       conftest$ac_exeext conftest.$ac_ext
13676 fi
13677 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13678 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13679 if test $ac_cv_func_shl_load = yes; then
13680   lt_cv_dlopen="shl_load"
13681 else
13682   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13683 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13684 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13685   echo $ECHO_N "(cached) $ECHO_C" >&6
13686 else
13687   ac_check_lib_save_LIBS=$LIBS
13688 LIBS="-ldld  $LIBS"
13689 cat >conftest.$ac_ext <<_ACEOF
13690 /* confdefs.h.  */
13691 _ACEOF
13692 cat confdefs.h >>conftest.$ac_ext
13693 cat >>conftest.$ac_ext <<_ACEOF
13694 /* end confdefs.h.  */
13695
13696 /* Override any gcc2 internal prototype to avoid an error.  */
13697 #ifdef __cplusplus
13698 extern "C"
13699 #endif
13700 /* We use char because int might match the return type of a gcc2
13701    builtin and then its argument prototype would still apply.  */
13702 char shl_load ();
13703 int
13704 main ()
13705 {
13706 shl_load ();
13707   ;
13708   return 0;
13709 }
13710 _ACEOF
13711 rm -f conftest.$ac_objext conftest$ac_exeext
13712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13713   (eval $ac_link) 2>conftest.er1
13714   ac_status=$?
13715   grep -v '^ *+' conftest.er1 >conftest.err
13716   rm -f conftest.er1
13717   cat conftest.err >&5
13718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719   (exit $ac_status); } &&
13720          { ac_try='test -z "$ac_cxx_werror_flag"
13721                          || test ! -s conftest.err'
13722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13723   (eval $ac_try) 2>&5
13724   ac_status=$?
13725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726   (exit $ac_status); }; } &&
13727          { ac_try='test -s conftest$ac_exeext'
13728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13729   (eval $ac_try) 2>&5
13730   ac_status=$?
13731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732   (exit $ac_status); }; }; then
13733   ac_cv_lib_dld_shl_load=yes
13734 else
13735   echo "$as_me: failed program was:" >&5
13736 sed 's/^/| /' conftest.$ac_ext >&5
13737
13738 ac_cv_lib_dld_shl_load=no
13739 fi
13740 rm -f conftest.err conftest.$ac_objext \
13741       conftest$ac_exeext conftest.$ac_ext
13742 LIBS=$ac_check_lib_save_LIBS
13743 fi
13744 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13745 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13746 if test $ac_cv_lib_dld_shl_load = yes; then
13747   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13748 else
13749   echo "$as_me:$LINENO: checking for dlopen" >&5
13750 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13751 if test "${ac_cv_func_dlopen+set}" = set; then
13752   echo $ECHO_N "(cached) $ECHO_C" >&6
13753 else
13754   cat >conftest.$ac_ext <<_ACEOF
13755 /* confdefs.h.  */
13756 _ACEOF
13757 cat confdefs.h >>conftest.$ac_ext
13758 cat >>conftest.$ac_ext <<_ACEOF
13759 /* end confdefs.h.  */
13760 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13761    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13762 #define dlopen innocuous_dlopen
13763
13764 /* System header to define __stub macros and hopefully few prototypes,
13765     which can conflict with char dlopen (); below.
13766     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13767     <limits.h> exists even on freestanding compilers.  */
13768
13769 #ifdef __STDC__
13770 # include <limits.h>
13771 #else
13772 # include <assert.h>
13773 #endif
13774
13775 #undef dlopen
13776
13777 /* Override any gcc2 internal prototype to avoid an error.  */
13778 #ifdef __cplusplus
13779 extern "C"
13780 {
13781 #endif
13782 /* We use char because int might match the return type of a gcc2
13783    builtin and then its argument prototype would still apply.  */
13784 char dlopen ();
13785 /* The GNU C library defines this for functions which it implements
13786     to always fail with ENOSYS.  Some functions are actually named
13787     something starting with __ and the normal name is an alias.  */
13788 #if defined (__stub_dlopen) || defined (__stub___dlopen)
13789 choke me
13790 #else
13791 char (*f) () = dlopen;
13792 #endif
13793 #ifdef __cplusplus
13794 }
13795 #endif
13796
13797 int
13798 main ()
13799 {
13800 return f != dlopen;
13801   ;
13802   return 0;
13803 }
13804 _ACEOF
13805 rm -f conftest.$ac_objext conftest$ac_exeext
13806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13807   (eval $ac_link) 2>conftest.er1
13808   ac_status=$?
13809   grep -v '^ *+' conftest.er1 >conftest.err
13810   rm -f conftest.er1
13811   cat conftest.err >&5
13812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813   (exit $ac_status); } &&
13814          { ac_try='test -z "$ac_cxx_werror_flag"
13815                          || test ! -s conftest.err'
13816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13817   (eval $ac_try) 2>&5
13818   ac_status=$?
13819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820   (exit $ac_status); }; } &&
13821          { ac_try='test -s conftest$ac_exeext'
13822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13823   (eval $ac_try) 2>&5
13824   ac_status=$?
13825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826   (exit $ac_status); }; }; then
13827   ac_cv_func_dlopen=yes
13828 else
13829   echo "$as_me: failed program was:" >&5
13830 sed 's/^/| /' conftest.$ac_ext >&5
13831
13832 ac_cv_func_dlopen=no
13833 fi
13834 rm -f conftest.err conftest.$ac_objext \
13835       conftest$ac_exeext conftest.$ac_ext
13836 fi
13837 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13838 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13839 if test $ac_cv_func_dlopen = yes; then
13840   lt_cv_dlopen="dlopen"
13841 else
13842   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13843 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13844 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13845   echo $ECHO_N "(cached) $ECHO_C" >&6
13846 else
13847   ac_check_lib_save_LIBS=$LIBS
13848 LIBS="-ldl  $LIBS"
13849 cat >conftest.$ac_ext <<_ACEOF
13850 /* confdefs.h.  */
13851 _ACEOF
13852 cat confdefs.h >>conftest.$ac_ext
13853 cat >>conftest.$ac_ext <<_ACEOF
13854 /* end confdefs.h.  */
13855
13856 /* Override any gcc2 internal prototype to avoid an error.  */
13857 #ifdef __cplusplus
13858 extern "C"
13859 #endif
13860 /* We use char because int might match the return type of a gcc2
13861    builtin and then its argument prototype would still apply.  */
13862 char dlopen ();
13863 int
13864 main ()
13865 {
13866 dlopen ();
13867   ;
13868   return 0;
13869 }
13870 _ACEOF
13871 rm -f conftest.$ac_objext conftest$ac_exeext
13872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13873   (eval $ac_link) 2>conftest.er1
13874   ac_status=$?
13875   grep -v '^ *+' conftest.er1 >conftest.err
13876   rm -f conftest.er1
13877   cat conftest.err >&5
13878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879   (exit $ac_status); } &&
13880          { ac_try='test -z "$ac_cxx_werror_flag"
13881                          || test ! -s conftest.err'
13882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13883   (eval $ac_try) 2>&5
13884   ac_status=$?
13885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886   (exit $ac_status); }; } &&
13887          { ac_try='test -s conftest$ac_exeext'
13888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13889   (eval $ac_try) 2>&5
13890   ac_status=$?
13891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892   (exit $ac_status); }; }; then
13893   ac_cv_lib_dl_dlopen=yes
13894 else
13895   echo "$as_me: failed program was:" >&5
13896 sed 's/^/| /' conftest.$ac_ext >&5
13897
13898 ac_cv_lib_dl_dlopen=no
13899 fi
13900 rm -f conftest.err conftest.$ac_objext \
13901       conftest$ac_exeext conftest.$ac_ext
13902 LIBS=$ac_check_lib_save_LIBS
13903 fi
13904 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13905 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13906 if test $ac_cv_lib_dl_dlopen = yes; then
13907   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13908 else
13909   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13910 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13911 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13912   echo $ECHO_N "(cached) $ECHO_C" >&6
13913 else
13914   ac_check_lib_save_LIBS=$LIBS
13915 LIBS="-lsvld  $LIBS"
13916 cat >conftest.$ac_ext <<_ACEOF
13917 /* confdefs.h.  */
13918 _ACEOF
13919 cat confdefs.h >>conftest.$ac_ext
13920 cat >>conftest.$ac_ext <<_ACEOF
13921 /* end confdefs.h.  */
13922
13923 /* Override any gcc2 internal prototype to avoid an error.  */
13924 #ifdef __cplusplus
13925 extern "C"
13926 #endif
13927 /* We use char because int might match the return type of a gcc2
13928    builtin and then its argument prototype would still apply.  */
13929 char dlopen ();
13930 int
13931 main ()
13932 {
13933 dlopen ();
13934   ;
13935   return 0;
13936 }
13937 _ACEOF
13938 rm -f conftest.$ac_objext conftest$ac_exeext
13939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13940   (eval $ac_link) 2>conftest.er1
13941   ac_status=$?
13942   grep -v '^ *+' conftest.er1 >conftest.err
13943   rm -f conftest.er1
13944   cat conftest.err >&5
13945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946   (exit $ac_status); } &&
13947          { ac_try='test -z "$ac_cxx_werror_flag"
13948                          || test ! -s conftest.err'
13949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13950   (eval $ac_try) 2>&5
13951   ac_status=$?
13952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953   (exit $ac_status); }; } &&
13954          { ac_try='test -s conftest$ac_exeext'
13955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13956   (eval $ac_try) 2>&5
13957   ac_status=$?
13958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959   (exit $ac_status); }; }; then
13960   ac_cv_lib_svld_dlopen=yes
13961 else
13962   echo "$as_me: failed program was:" >&5
13963 sed 's/^/| /' conftest.$ac_ext >&5
13964
13965 ac_cv_lib_svld_dlopen=no
13966 fi
13967 rm -f conftest.err conftest.$ac_objext \
13968       conftest$ac_exeext conftest.$ac_ext
13969 LIBS=$ac_check_lib_save_LIBS
13970 fi
13971 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13972 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13973 if test $ac_cv_lib_svld_dlopen = yes; then
13974   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13975 else
13976   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13977 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13978 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13979   echo $ECHO_N "(cached) $ECHO_C" >&6
13980 else
13981   ac_check_lib_save_LIBS=$LIBS
13982 LIBS="-ldld  $LIBS"
13983 cat >conftest.$ac_ext <<_ACEOF
13984 /* confdefs.h.  */
13985 _ACEOF
13986 cat confdefs.h >>conftest.$ac_ext
13987 cat >>conftest.$ac_ext <<_ACEOF
13988 /* end confdefs.h.  */
13989
13990 /* Override any gcc2 internal prototype to avoid an error.  */
13991 #ifdef __cplusplus
13992 extern "C"
13993 #endif
13994 /* We use char because int might match the return type of a gcc2
13995    builtin and then its argument prototype would still apply.  */
13996 char dld_link ();
13997 int
13998 main ()
13999 {
14000 dld_link ();
14001   ;
14002   return 0;
14003 }
14004 _ACEOF
14005 rm -f conftest.$ac_objext conftest$ac_exeext
14006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14007   (eval $ac_link) 2>conftest.er1
14008   ac_status=$?
14009   grep -v '^ *+' conftest.er1 >conftest.err
14010   rm -f conftest.er1
14011   cat conftest.err >&5
14012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013   (exit $ac_status); } &&
14014          { ac_try='test -z "$ac_cxx_werror_flag"
14015                          || test ! -s conftest.err'
14016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14017   (eval $ac_try) 2>&5
14018   ac_status=$?
14019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020   (exit $ac_status); }; } &&
14021          { ac_try='test -s conftest$ac_exeext'
14022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14023   (eval $ac_try) 2>&5
14024   ac_status=$?
14025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026   (exit $ac_status); }; }; then
14027   ac_cv_lib_dld_dld_link=yes
14028 else
14029   echo "$as_me: failed program was:" >&5
14030 sed 's/^/| /' conftest.$ac_ext >&5
14031
14032 ac_cv_lib_dld_dld_link=no
14033 fi
14034 rm -f conftest.err conftest.$ac_objext \
14035       conftest$ac_exeext conftest.$ac_ext
14036 LIBS=$ac_check_lib_save_LIBS
14037 fi
14038 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14039 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14040 if test $ac_cv_lib_dld_dld_link = yes; then
14041   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14042 fi
14043
14044
14045 fi
14046
14047
14048 fi
14049
14050
14051 fi
14052
14053
14054 fi
14055
14056
14057 fi
14058
14059     ;;
14060   esac
14061
14062   if test "x$lt_cv_dlopen" != xno; then
14063     enable_dlopen=yes
14064   else
14065     enable_dlopen=no
14066   fi
14067
14068   case $lt_cv_dlopen in
14069   dlopen)
14070     save_CPPFLAGS="$CPPFLAGS"
14071     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14072
14073     save_LDFLAGS="$LDFLAGS"
14074     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14075
14076     save_LIBS="$LIBS"
14077     LIBS="$lt_cv_dlopen_libs $LIBS"
14078
14079     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14080 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14081 if test "${lt_cv_dlopen_self+set}" = set; then
14082   echo $ECHO_N "(cached) $ECHO_C" >&6
14083 else
14084           if test "$cross_compiling" = yes; then :
14085   lt_cv_dlopen_self=cross
14086 else
14087   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14088   lt_status=$lt_dlunknown
14089   cat > conftest.$ac_ext <<EOF
14090 #line 14090 "configure"
14091 #include "confdefs.h"
14092
14093 #if HAVE_DLFCN_H
14094 #include <dlfcn.h>
14095 #endif
14096
14097 #include <stdio.h>
14098
14099 #ifdef RTLD_GLOBAL
14100 #  define LT_DLGLOBAL           RTLD_GLOBAL
14101 #else
14102 #  ifdef DL_GLOBAL
14103 #    define LT_DLGLOBAL         DL_GLOBAL
14104 #  else
14105 #    define LT_DLGLOBAL         0
14106 #  endif
14107 #endif
14108
14109 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14110    find out it does not work in some platform. */
14111 #ifndef LT_DLLAZY_OR_NOW
14112 #  ifdef RTLD_LAZY
14113 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14114 #  else
14115 #    ifdef DL_LAZY
14116 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14117 #    else
14118 #      ifdef RTLD_NOW
14119 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14120 #      else
14121 #        ifdef DL_NOW
14122 #          define LT_DLLAZY_OR_NOW      DL_NOW
14123 #        else
14124 #          define LT_DLLAZY_OR_NOW      0
14125 #        endif
14126 #      endif
14127 #    endif
14128 #  endif
14129 #endif
14130
14131 #ifdef __cplusplus
14132 extern "C" void exit (int);
14133 #endif
14134
14135 void fnord() { int i=42;}
14136 int main ()
14137 {
14138   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14139   int status = $lt_dlunknown;
14140
14141   if (self)
14142     {
14143       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14144       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14145       /* dlclose (self); */
14146     }
14147
14148     exit (status);
14149 }
14150 EOF
14151   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14152   (eval $ac_link) 2>&5
14153   ac_status=$?
14154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14156     (./conftest; exit; ) 2>/dev/null
14157     lt_status=$?
14158     case x$lt_status in
14159       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14160       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14161       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14162     esac
14163   else :
14164     # compilation failed
14165     lt_cv_dlopen_self=no
14166   fi
14167 fi
14168 rm -fr conftest*
14169
14170
14171 fi
14172 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14173 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14174
14175     if test "x$lt_cv_dlopen_self" = xyes; then
14176       LDFLAGS="$LDFLAGS $link_static_flag"
14177       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14178 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14179 if test "${lt_cv_dlopen_self_static+set}" = set; then
14180   echo $ECHO_N "(cached) $ECHO_C" >&6
14181 else
14182           if test "$cross_compiling" = yes; then :
14183   lt_cv_dlopen_self_static=cross
14184 else
14185   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14186   lt_status=$lt_dlunknown
14187   cat > conftest.$ac_ext <<EOF
14188 #line 14188 "configure"
14189 #include "confdefs.h"
14190
14191 #if HAVE_DLFCN_H
14192 #include <dlfcn.h>
14193 #endif
14194
14195 #include <stdio.h>
14196
14197 #ifdef RTLD_GLOBAL
14198 #  define LT_DLGLOBAL           RTLD_GLOBAL
14199 #else
14200 #  ifdef DL_GLOBAL
14201 #    define LT_DLGLOBAL         DL_GLOBAL
14202 #  else
14203 #    define LT_DLGLOBAL         0
14204 #  endif
14205 #endif
14206
14207 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14208    find out it does not work in some platform. */
14209 #ifndef LT_DLLAZY_OR_NOW
14210 #  ifdef RTLD_LAZY
14211 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14212 #  else
14213 #    ifdef DL_LAZY
14214 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14215 #    else
14216 #      ifdef RTLD_NOW
14217 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14218 #      else
14219 #        ifdef DL_NOW
14220 #          define LT_DLLAZY_OR_NOW      DL_NOW
14221 #        else
14222 #          define LT_DLLAZY_OR_NOW      0
14223 #        endif
14224 #      endif
14225 #    endif
14226 #  endif
14227 #endif
14228
14229 #ifdef __cplusplus
14230 extern "C" void exit (int);
14231 #endif
14232
14233 void fnord() { int i=42;}
14234 int main ()
14235 {
14236   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14237   int status = $lt_dlunknown;
14238
14239   if (self)
14240     {
14241       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14242       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14243       /* dlclose (self); */
14244     }
14245
14246     exit (status);
14247 }
14248 EOF
14249   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14250   (eval $ac_link) 2>&5
14251   ac_status=$?
14252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14254     (./conftest; exit; ) 2>/dev/null
14255     lt_status=$?
14256     case x$lt_status in
14257       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14258       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14259       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14260     esac
14261   else :
14262     # compilation failed
14263     lt_cv_dlopen_self_static=no
14264   fi
14265 fi
14266 rm -fr conftest*
14267
14268
14269 fi
14270 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14271 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14272     fi
14273
14274     CPPFLAGS="$save_CPPFLAGS"
14275     LDFLAGS="$save_LDFLAGS"
14276     LIBS="$save_LIBS"
14277     ;;
14278   esac
14279
14280   case $lt_cv_dlopen_self in
14281   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14282   *) enable_dlopen_self=unknown ;;
14283   esac
14284
14285   case $lt_cv_dlopen_self_static in
14286   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14287   *) enable_dlopen_self_static=unknown ;;
14288   esac
14289 fi
14290
14291
14292 # The else clause should only fire when bootstrapping the
14293 # libtool distribution, otherwise you forgot to ship ltmain.sh
14294 # with your package, and you will get complaints that there are
14295 # no rules to generate ltmain.sh.
14296 if test -f "$ltmain"; then
14297   # See if we are running on zsh, and set the options which allow our commands through
14298   # without removal of \ escapes.
14299   if test -n "${ZSH_VERSION+set}" ; then
14300     setopt NO_GLOB_SUBST
14301   fi
14302   # Now quote all the things that may contain metacharacters while being
14303   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14304   # variables and quote the copies for generation of the libtool script.
14305   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14306     SED SHELL STRIP \
14307     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14308     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14309     deplibs_check_method reload_flag reload_cmds need_locks \
14310     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14311     lt_cv_sys_global_symbol_to_c_name_address \
14312     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14313     old_postinstall_cmds old_postuninstall_cmds \
14314     compiler_CXX \
14315     CC_CXX \
14316     LD_CXX \
14317     lt_prog_compiler_wl_CXX \
14318     lt_prog_compiler_pic_CXX \
14319     lt_prog_compiler_static_CXX \
14320     lt_prog_compiler_no_builtin_flag_CXX \
14321     export_dynamic_flag_spec_CXX \
14322     thread_safe_flag_spec_CXX \
14323     whole_archive_flag_spec_CXX \
14324     enable_shared_with_static_runtimes_CXX \
14325     old_archive_cmds_CXX \
14326     old_archive_from_new_cmds_CXX \
14327     predep_objects_CXX \
14328     postdep_objects_CXX \
14329     predeps_CXX \
14330     postdeps_CXX \
14331     compiler_lib_search_path_CXX \
14332     archive_cmds_CXX \
14333     archive_expsym_cmds_CXX \
14334     postinstall_cmds_CXX \
14335     postuninstall_cmds_CXX \
14336     old_archive_from_expsyms_cmds_CXX \
14337     allow_undefined_flag_CXX \
14338     no_undefined_flag_CXX \
14339     export_symbols_cmds_CXX \
14340     hardcode_libdir_flag_spec_CXX \
14341     hardcode_libdir_flag_spec_ld_CXX \
14342     hardcode_libdir_separator_CXX \
14343     hardcode_automatic_CXX \
14344     module_cmds_CXX \
14345     module_expsym_cmds_CXX \
14346     lt_cv_prog_compiler_c_o_CXX \
14347     exclude_expsyms_CXX \
14348     include_expsyms_CXX; do
14349
14350     case $var in
14351     old_archive_cmds_CXX | \
14352     old_archive_from_new_cmds_CXX | \
14353     archive_cmds_CXX | \
14354     archive_expsym_cmds_CXX | \
14355     module_cmds_CXX | \
14356     module_expsym_cmds_CXX | \
14357     old_archive_from_expsyms_cmds_CXX | \
14358     export_symbols_cmds_CXX | \
14359     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14360     postinstall_cmds | postuninstall_cmds | \
14361     old_postinstall_cmds | old_postuninstall_cmds | \
14362     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14363       # Double-quote double-evaled strings.
14364       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14365       ;;
14366     *)
14367       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14368       ;;
14369     esac
14370   done
14371
14372   case $lt_echo in
14373   *'\$0 --fallback-echo"')
14374     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14375     ;;
14376   esac
14377
14378 cfgfile="$ofile"
14379
14380   cat <<__EOF__ >> "$cfgfile"
14381 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14382
14383 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14384
14385 # Shell to use when invoking shell scripts.
14386 SHELL=$lt_SHELL
14387
14388 # Whether or not to build shared libraries.
14389 build_libtool_libs=$enable_shared
14390
14391 # Whether or not to build static libraries.
14392 build_old_libs=$enable_static
14393
14394 # Whether or not to add -lc for building shared libraries.
14395 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14396
14397 # Whether or not to disallow shared libs when runtime libs are static
14398 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14399
14400 # Whether or not to optimize for fast installation.
14401 fast_install=$enable_fast_install
14402
14403 # The host system.
14404 host_alias=$host_alias
14405 host=$host
14406
14407 # An echo program that does not interpret backslashes.
14408 echo=$lt_echo
14409
14410 # The archiver.
14411 AR=$lt_AR
14412 AR_FLAGS=$lt_AR_FLAGS
14413
14414 # A C compiler.
14415 LTCC=$lt_LTCC
14416
14417 # A language-specific compiler.
14418 CC=$lt_compiler_CXX
14419
14420 # Is the compiler the GNU C compiler?
14421 with_gcc=$GCC_CXX
14422
14423 # An ERE matcher.
14424 EGREP=$lt_EGREP
14425
14426 # The linker used to build libraries.
14427 LD=$lt_LD_CXX
14428
14429 # Whether we need hard or soft links.
14430 LN_S=$lt_LN_S
14431
14432 # A BSD-compatible nm program.
14433 NM=$lt_NM
14434
14435 # A symbol stripping program
14436 STRIP=$lt_STRIP
14437
14438 # Used to examine libraries when file_magic_cmd begins "file"
14439 MAGIC_CMD=$MAGIC_CMD
14440
14441 # Used on cygwin: DLL creation program.
14442 DLLTOOL="$DLLTOOL"
14443
14444 # Used on cygwin: object dumper.
14445 OBJDUMP="$OBJDUMP"
14446
14447 # Used on cygwin: assembler.
14448 AS="$AS"
14449
14450 # The name of the directory that contains temporary libtool files.
14451 objdir=$objdir
14452
14453 # How to create reloadable object files.
14454 reload_flag=$lt_reload_flag
14455 reload_cmds=$lt_reload_cmds
14456
14457 # How to pass a linker flag through the compiler.
14458 wl=$lt_lt_prog_compiler_wl_CXX
14459
14460 # Object file suffix (normally "o").
14461 objext="$ac_objext"
14462
14463 # Old archive suffix (normally "a").
14464 libext="$libext"
14465
14466 # Shared library suffix (normally ".so").
14467 shrext='$shrext'
14468
14469 # Executable file suffix (normally "").
14470 exeext="$exeext"
14471
14472 # Additional compiler flags for building library objects.
14473 pic_flag=$lt_lt_prog_compiler_pic_CXX
14474 pic_mode=$pic_mode
14475
14476 # What is the maximum length of a command?
14477 max_cmd_len=$lt_cv_sys_max_cmd_len
14478
14479 # Does compiler simultaneously support -c and -o options?
14480 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14481
14482 # Must we lock files when doing compilation ?
14483 need_locks=$lt_need_locks
14484
14485 # Do we need the lib prefix for modules?
14486 need_lib_prefix=$need_lib_prefix
14487
14488 # Do we need a version for libraries?
14489 need_version=$need_version
14490
14491 # Whether dlopen is supported.
14492 dlopen_support=$enable_dlopen
14493
14494 # Whether dlopen of programs is supported.
14495 dlopen_self=$enable_dlopen_self
14496
14497 # Whether dlopen of statically linked programs is supported.
14498 dlopen_self_static=$enable_dlopen_self_static
14499
14500 # Compiler flag to prevent dynamic linking.
14501 link_static_flag=$lt_lt_prog_compiler_static_CXX
14502
14503 # Compiler flag to turn off builtin functions.
14504 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14505
14506 # Compiler flag to allow reflexive dlopens.
14507 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14508
14509 # Compiler flag to generate shared objects directly from archives.
14510 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14511
14512 # Compiler flag to generate thread-safe objects.
14513 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14514
14515 # Library versioning type.
14516 version_type=$version_type
14517
14518 # Format of library name prefix.
14519 libname_spec=$lt_libname_spec
14520
14521 # List of archive names.  First name is the real one, the rest are links.
14522 # The last name is the one that the linker finds with -lNAME.
14523 library_names_spec=$lt_library_names_spec
14524
14525 # The coded name of the library, if different from the real name.
14526 soname_spec=$lt_soname_spec
14527
14528 # Commands used to build and install an old-style archive.
14529 RANLIB=$lt_RANLIB
14530 old_archive_cmds=$lt_old_archive_cmds_CXX
14531 old_postinstall_cmds=$lt_old_postinstall_cmds
14532 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14533
14534 # Create an old-style archive from a shared archive.
14535 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14536
14537 # Create a temporary old-style archive to link instead of a shared archive.
14538 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14539
14540 # Commands used to build and install a shared archive.
14541 archive_cmds=$lt_archive_cmds_CXX
14542 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14543 postinstall_cmds=$lt_postinstall_cmds
14544 postuninstall_cmds=$lt_postuninstall_cmds
14545
14546 # Commands used to build a loadable module (assumed same as above if empty)
14547 module_cmds=$lt_module_cmds_CXX
14548 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14549
14550 # Commands to strip libraries.
14551 old_striplib=$lt_old_striplib
14552 striplib=$lt_striplib
14553
14554 # Dependencies to place before the objects being linked to create a
14555 # shared library.
14556 predep_objects=$lt_predep_objects_CXX
14557
14558 # Dependencies to place after the objects being linked to create a
14559 # shared library.
14560 postdep_objects=$lt_postdep_objects_CXX
14561
14562 # Dependencies to place before the objects being linked to create a
14563 # shared library.
14564 predeps=$lt_predeps_CXX
14565
14566 # Dependencies to place after the objects being linked to create a
14567 # shared library.
14568 postdeps=$lt_postdeps_CXX
14569
14570 # The library search path used internally by the compiler when linking
14571 # a shared library.
14572 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14573
14574 # Method to check whether dependent libraries are shared objects.
14575 deplibs_check_method=$lt_deplibs_check_method
14576
14577 # Command to use when deplibs_check_method == file_magic.
14578 file_magic_cmd=$lt_file_magic_cmd
14579
14580 # Flag that allows shared libraries with undefined symbols to be built.
14581 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14582
14583 # Flag that forces no undefined symbols.
14584 no_undefined_flag=$lt_no_undefined_flag_CXX
14585
14586 # Commands used to finish a libtool library installation in a directory.
14587 finish_cmds=$lt_finish_cmds
14588
14589 # Same as above, but a single script fragment to be evaled but not shown.
14590 finish_eval=$lt_finish_eval
14591
14592 # Take the output of nm and produce a listing of raw symbols and C names.
14593 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14594
14595 # Transform the output of nm in a proper C declaration
14596 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14597
14598 # Transform the output of nm in a C name address pair
14599 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14600
14601 # This is the shared library runtime path variable.
14602 runpath_var=$runpath_var
14603
14604 # This is the shared library path variable.
14605 shlibpath_var=$shlibpath_var
14606
14607 # Is shlibpath searched before the hard-coded library search path?
14608 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14609
14610 # How to hardcode a shared library path into an executable.
14611 hardcode_action=$hardcode_action_CXX
14612
14613 # Whether we should hardcode library paths into libraries.
14614 hardcode_into_libs=$hardcode_into_libs
14615
14616 # Flag to hardcode \$libdir into a binary during linking.
14617 # This must work even if \$libdir does not exist.
14618 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14619
14620 # If ld is used when linking, flag to hardcode \$libdir into
14621 # a binary during linking. This must work even if \$libdir does
14622 # not exist.
14623 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14624
14625 # Whether we need a single -rpath flag with a separated argument.
14626 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14627
14628 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14629 # resulting binary.
14630 hardcode_direct=$hardcode_direct_CXX
14631
14632 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14633 # resulting binary.
14634 hardcode_minus_L=$hardcode_minus_L_CXX
14635
14636 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14637 # the resulting binary.
14638 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14639
14640 # Set to yes if building a shared library automatically hardcodes DIR into the library
14641 # and all subsequent libraries and executables linked against it.
14642 hardcode_automatic=$hardcode_automatic_CXX
14643
14644 # Variables whose values should be saved in libtool wrapper scripts and
14645 # restored at relink time.
14646 variables_saved_for_relink="$variables_saved_for_relink"
14647
14648 # Whether libtool must link a program against all its dependency libraries.
14649 link_all_deplibs=$link_all_deplibs_CXX
14650
14651 # Compile-time system search path for libraries
14652 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14653
14654 # Run-time system search path for libraries
14655 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14656
14657 # Fix the shell variable \$srcfile for the compiler.
14658 fix_srcfile_path="$fix_srcfile_path_CXX"
14659
14660 # Set to yes if exported symbols are required.
14661 always_export_symbols=$always_export_symbols_CXX
14662
14663 # The commands to list exported symbols.
14664 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14665
14666 # The commands to extract the exported symbol list from a shared archive.
14667 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14668
14669 # Symbols that should not be listed in the preloaded symbols.
14670 exclude_expsyms=$lt_exclude_expsyms_CXX
14671
14672 # Symbols that must always be exported.
14673 include_expsyms=$lt_include_expsyms_CXX
14674
14675 # ### END LIBTOOL TAG CONFIG: $tagname
14676
14677 __EOF__
14678
14679
14680 else
14681   # If there is no Makefile yet, we rely on a make rule to execute
14682   # `config.status --recheck' to rerun these tests and create the
14683   # libtool script then.
14684   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14685   if test -f "$ltmain_in"; then
14686     test -f Makefile && make "$ltmain"
14687   fi
14688 fi
14689
14690
14691 ac_ext=c
14692 ac_cpp='$CPP $CPPFLAGS'
14693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14696
14697 CC=$lt_save_CC
14698 LDCXX=$LD
14699 LD=$lt_save_LD
14700 GCC=$lt_save_GCC
14701 with_gnu_ldcxx=$with_gnu_ld
14702 with_gnu_ld=$lt_save_with_gnu_ld
14703 lt_cv_path_LDCXX=$lt_cv_path_LD
14704 lt_cv_path_LD=$lt_save_path_LD
14705 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14706 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14707
14708         else
14709           tagname=""
14710         fi
14711         ;;
14712
14713       F77)
14714         if test -n "$F77" && test "X$F77" != "Xno"; then
14715
14716 ac_ext=f
14717 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14718 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14719 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14720
14721
14722 archive_cmds_need_lc_F77=no
14723 allow_undefined_flag_F77=
14724 always_export_symbols_F77=no
14725 archive_expsym_cmds_F77=
14726 export_dynamic_flag_spec_F77=
14727 hardcode_direct_F77=no
14728 hardcode_libdir_flag_spec_F77=
14729 hardcode_libdir_flag_spec_ld_F77=
14730 hardcode_libdir_separator_F77=
14731 hardcode_minus_L_F77=no
14732 hardcode_automatic_F77=no
14733 module_cmds_F77=
14734 module_expsym_cmds_F77=
14735 link_all_deplibs_F77=unknown
14736 old_archive_cmds_F77=$old_archive_cmds
14737 no_undefined_flag_F77=
14738 whole_archive_flag_spec_F77=
14739 enable_shared_with_static_runtimes_F77=no
14740
14741 # Source file extension for f77 test sources.
14742 ac_ext=f
14743
14744 # Object file extension for compiled f77 test sources.
14745 objext=o
14746 objext_F77=$objext
14747
14748 # Code to be used in simple compile tests
14749 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14750
14751 # Code to be used in simple link tests
14752 lt_simple_link_test_code="      program t\n      end\n"
14753
14754 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14755
14756 # If no C compiler was specified, use CC.
14757 LTCC=${LTCC-"$CC"}
14758
14759 # Allow CC to be a program name with arguments.
14760 compiler=$CC
14761
14762
14763 # Allow CC to be a program name with arguments.
14764 lt_save_CC="$CC"
14765 CC=${F77-"f77"}
14766 compiler=$CC
14767 compiler_F77=$CC
14768 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
14769
14770 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14771 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14772 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14773 echo "${ECHO_T}$can_build_shared" >&6
14774
14775 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14776 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14777 test "$can_build_shared" = "no" && enable_shared=no
14778
14779 # On AIX, shared libraries and static libraries use the same namespace, and
14780 # are all built from PIC.
14781 case "$host_os" in
14782 aix3*)
14783   test "$enable_shared" = yes && enable_static=no
14784   if test -n "$RANLIB"; then
14785     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14786     postinstall_cmds='$RANLIB $lib'
14787   fi
14788   ;;
14789 aix4*)
14790   test "$enable_shared" = yes && enable_static=no
14791   ;;
14792 esac
14793 echo "$as_me:$LINENO: result: $enable_shared" >&5
14794 echo "${ECHO_T}$enable_shared" >&6
14795
14796 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14797 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14798 # Make sure either enable_shared or enable_static is yes.
14799 test "$enable_shared" = yes || enable_static=yes
14800 echo "$as_me:$LINENO: result: $enable_static" >&5
14801 echo "${ECHO_T}$enable_static" >&6
14802
14803 test "$ld_shlibs_F77" = no && can_build_shared=no
14804
14805 GCC_F77="$G77"
14806 LD_F77="$LD"
14807
14808 lt_prog_compiler_wl_F77=
14809 lt_prog_compiler_pic_F77=
14810 lt_prog_compiler_static_F77=
14811
14812 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14813 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14814
14815   if test "$GCC" = yes; then
14816     lt_prog_compiler_wl_F77='-Wl,'
14817     lt_prog_compiler_static_F77='-static'
14818
14819     case $host_os in
14820       aix*)
14821       # All AIX code is PIC.
14822       if test "$host_cpu" = ia64; then
14823         # AIX 5 now supports IA64 processor
14824         lt_prog_compiler_static_F77='-Bstatic'
14825       fi
14826       ;;
14827
14828     amigaos*)
14829       # FIXME: we need at least 68020 code to build shared libraries, but
14830       # adding the `-m68020' flag to GCC prevents building anything better,
14831       # like `-m68040'.
14832       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14833       ;;
14834
14835     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14836       # PIC is the default for these OSes.
14837       ;;
14838
14839     mingw* | pw32* | os2*)
14840       # This hack is so that the source file can tell whether it is being
14841       # built for inclusion in a dll (and should export symbols for example).
14842       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14843       ;;
14844
14845     darwin* | rhapsody*)
14846       # PIC is the default on this platform
14847       # Common symbols not allowed in MH_DYLIB files
14848       lt_prog_compiler_pic_F77='-fno-common'
14849       ;;
14850
14851     msdosdjgpp*)
14852       # Just because we use GCC doesn't mean we suddenly get shared libraries
14853       # on systems that don't support them.
14854       lt_prog_compiler_can_build_shared_F77=no
14855       enable_shared=no
14856       ;;
14857
14858     sysv4*MP*)
14859       if test -d /usr/nec; then
14860         lt_prog_compiler_pic_F77=-Kconform_pic
14861       fi
14862       ;;
14863
14864     hpux*)
14865       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14866       # not for PA HP-UX.
14867       case "$host_cpu" in
14868       hppa*64*|ia64*)
14869         # +Z the default
14870         ;;
14871       *)
14872         lt_prog_compiler_pic_F77='-fPIC'
14873         ;;
14874       esac
14875       ;;
14876
14877     *)
14878       lt_prog_compiler_pic_F77='-fPIC'
14879       ;;
14880     esac
14881   else
14882     # PORTME Check for flag to pass linker flags through the system compiler.
14883     case $host_os in
14884     aix*)
14885       lt_prog_compiler_wl_F77='-Wl,'
14886       if test "$host_cpu" = ia64; then
14887         # AIX 5 now supports IA64 processor
14888         lt_prog_compiler_static_F77='-Bstatic'
14889       else
14890         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14891       fi
14892       ;;
14893
14894     mingw* | pw32* | os2*)
14895       # This hack is so that the source file can tell whether it is being
14896       # built for inclusion in a dll (and should export symbols for example).
14897       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14898       ;;
14899
14900     hpux9* | hpux10* | hpux11*)
14901       lt_prog_compiler_wl_F77='-Wl,'
14902       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14903       # not for PA HP-UX.
14904       case "$host_cpu" in
14905       hppa*64*|ia64*)
14906         # +Z the default
14907         ;;
14908       *)
14909         lt_prog_compiler_pic_F77='+Z'
14910         ;;
14911       esac
14912       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14913       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14914       ;;
14915
14916     irix5* | irix6* | nonstopux*)
14917       lt_prog_compiler_wl_F77='-Wl,'
14918       # PIC (with -KPIC) is the default.
14919       lt_prog_compiler_static_F77='-non_shared'
14920       ;;
14921
14922     newsos6)
14923       lt_prog_compiler_pic_F77='-KPIC'
14924       lt_prog_compiler_static_F77='-Bstatic'
14925       ;;
14926
14927     linux*)
14928       case $CC in
14929       icc* | ecc*)
14930         lt_prog_compiler_wl_F77='-Wl,'
14931         lt_prog_compiler_pic_F77='-KPIC'
14932         lt_prog_compiler_static_F77='-static'
14933         ;;
14934       ccc*)
14935         lt_prog_compiler_wl_F77='-Wl,'
14936         # All Alpha code is PIC.
14937         lt_prog_compiler_static_F77='-non_shared'
14938         ;;
14939       esac
14940       ;;
14941
14942     osf3* | osf4* | osf5*)
14943       lt_prog_compiler_wl_F77='-Wl,'
14944       # All OSF/1 code is PIC.
14945       lt_prog_compiler_static_F77='-non_shared'
14946       ;;
14947
14948     sco3.2v5*)
14949       lt_prog_compiler_pic_F77='-Kpic'
14950       lt_prog_compiler_static_F77='-dn'
14951       ;;
14952
14953     solaris*)
14954       lt_prog_compiler_wl_F77='-Wl,'
14955       lt_prog_compiler_pic_F77='-KPIC'
14956       lt_prog_compiler_static_F77='-Bstatic'
14957       ;;
14958
14959     sunos4*)
14960       lt_prog_compiler_wl_F77='-Qoption ld '
14961       lt_prog_compiler_pic_F77='-PIC'
14962       lt_prog_compiler_static_F77='-Bstatic'
14963       ;;
14964
14965     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14966       lt_prog_compiler_wl_F77='-Wl,'
14967       lt_prog_compiler_pic_F77='-KPIC'
14968       lt_prog_compiler_static_F77='-Bstatic'
14969       ;;
14970
14971     sysv4*MP*)
14972       if test -d /usr/nec ;then
14973         lt_prog_compiler_pic_F77='-Kconform_pic'
14974         lt_prog_compiler_static_F77='-Bstatic'
14975       fi
14976       ;;
14977
14978     uts4*)
14979       lt_prog_compiler_pic_F77='-pic'
14980       lt_prog_compiler_static_F77='-Bstatic'
14981       ;;
14982
14983     *)
14984       lt_prog_compiler_can_build_shared_F77=no
14985       ;;
14986     esac
14987   fi
14988
14989 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14990 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14991
14992 #
14993 # Check to make sure the PIC flag actually works.
14994 #
14995 if test -n "$lt_prog_compiler_pic_F77"; then
14996
14997 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14998 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14999 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15000   echo $ECHO_N "(cached) $ECHO_C" >&6
15001 else
15002   lt_prog_compiler_pic_works_F77=no
15003   ac_outfile=conftest.$ac_objext
15004    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15005    lt_compiler_flag="$lt_prog_compiler_pic_F77"
15006    # Insert the option either (1) after the last *FLAGS variable, or
15007    # (2) before a word containing "conftest.", or (3) at the end.
15008    # Note that $ac_compile itself does not contain backslashes and begins
15009    # with a dollar sign (not a hyphen), so the echo should work correctly.
15010    # The option is referenced via a variable to avoid confusing sed.
15011    lt_compile=`echo "$ac_compile" | $SED \
15012    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15013    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15014    -e 's:$: $lt_compiler_flag:'`
15015    (eval echo "\"\$as_me:15015: $lt_compile\"" >&5)
15016    (eval "$lt_compile" 2>conftest.err)
15017    ac_status=$?
15018    cat conftest.err >&5
15019    echo "$as_me:15019: \$? = $ac_status" >&5
15020    if (exit $ac_status) && test -s "$ac_outfile"; then
15021      # The compiler can only warn and ignore the option if not recognized
15022      # So say no if there are warnings
15023      if test ! -s conftest.err; then
15024        lt_prog_compiler_pic_works_F77=yes
15025      fi
15026    fi
15027    $rm conftest*
15028
15029 fi
15030 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15031 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
15032
15033 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15034     case $lt_prog_compiler_pic_F77 in
15035      "" | " "*) ;;
15036      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15037      esac
15038 else
15039     lt_prog_compiler_pic_F77=
15040      lt_prog_compiler_can_build_shared_F77=no
15041 fi
15042
15043 fi
15044 case "$host_os" in
15045   # For platforms which do not support PIC, -DPIC is meaningless:
15046   *djgpp*)
15047     lt_prog_compiler_pic_F77=
15048     ;;
15049   *)
15050     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15051     ;;
15052 esac
15053
15054 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15055 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15056 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15057   echo $ECHO_N "(cached) $ECHO_C" >&6
15058 else
15059   lt_cv_prog_compiler_c_o_F77=no
15060    $rm -r conftest 2>/dev/null
15061    mkdir conftest
15062    cd conftest
15063    mkdir out
15064    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15065
15066    lt_compiler_flag="-o out/conftest2.$ac_objext"
15067    # Insert the option either (1) after the last *FLAGS variable, or
15068    # (2) before a word containing "conftest.", or (3) at the end.
15069    # Note that $ac_compile itself does not contain backslashes and begins
15070    # with a dollar sign (not a hyphen), so the echo should work correctly.
15071    lt_compile=`echo "$ac_compile" | $SED \
15072    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15073    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15074    -e 's:$: $lt_compiler_flag:'`
15075    (eval echo "\"\$as_me:15075: $lt_compile\"" >&5)
15076    (eval "$lt_compile" 2>out/conftest.err)
15077    ac_status=$?
15078    cat out/conftest.err >&5
15079    echo "$as_me:15079: \$? = $ac_status" >&5
15080    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15081    then
15082      # The compiler can only warn and ignore the option if not recognized
15083      # So say no if there are warnings
15084      if test ! -s out/conftest.err; then
15085        lt_cv_prog_compiler_c_o_F77=yes
15086      fi
15087    fi
15088    chmod u+w .
15089    $rm conftest*
15090    # SGI C++ compiler will create directory out/ii_files/ for
15091    # template instantiation
15092    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15093    $rm out/* && rmdir out
15094    cd ..
15095    rmdir conftest
15096    $rm conftest*
15097
15098 fi
15099 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15100 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15101
15102
15103 hard_links="nottested"
15104 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15105   # do not overwrite the value of need_locks provided by the user
15106   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15107 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15108   hard_links=yes
15109   $rm conftest*
15110   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15111   touch conftest.a
15112   ln conftest.a conftest.b 2>&5 || hard_links=no
15113   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15114   echo "$as_me:$LINENO: result: $hard_links" >&5
15115 echo "${ECHO_T}$hard_links" >&6
15116   if test "$hard_links" = no; then
15117     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15118 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15119     need_locks=warn
15120   fi
15121 else
15122   need_locks=no
15123 fi
15124
15125 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15126 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15127
15128   runpath_var=
15129   allow_undefined_flag_F77=
15130   enable_shared_with_static_runtimes_F77=no
15131   archive_cmds_F77=
15132   archive_expsym_cmds_F77=
15133   old_archive_From_new_cmds_F77=
15134   old_archive_from_expsyms_cmds_F77=
15135   export_dynamic_flag_spec_F77=
15136   whole_archive_flag_spec_F77=
15137   thread_safe_flag_spec_F77=
15138   hardcode_libdir_flag_spec_F77=
15139   hardcode_libdir_flag_spec_ld_F77=
15140   hardcode_libdir_separator_F77=
15141   hardcode_direct_F77=no
15142   hardcode_minus_L_F77=no
15143   hardcode_shlibpath_var_F77=unsupported
15144   link_all_deplibs_F77=unknown
15145   hardcode_automatic_F77=no
15146   module_cmds_F77=
15147   module_expsym_cmds_F77=
15148   always_export_symbols_F77=no
15149   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15150   # include_expsyms should be a list of space-separated symbols to be *always*
15151   # included in the symbol list
15152   include_expsyms_F77=
15153   # exclude_expsyms can be an extended regexp of symbols to exclude
15154   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15155   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15156   # as well as any symbol that contains `d'.
15157   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15158   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15159   # platforms (ab)use it in PIC code, but their linkers get confused if
15160   # the symbol is explicitly referenced.  Since portable code cannot
15161   # rely on this symbol name, it's probably fine to never include it in
15162   # preloaded symbol tables.
15163   extract_expsyms_cmds=
15164
15165   case $host_os in
15166   cygwin* | mingw* | pw32*)
15167     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15168     # When not using gcc, we currently assume that we are using
15169     # Microsoft Visual C++.
15170     if test "$GCC" != yes; then
15171       with_gnu_ld=no
15172     fi
15173     ;;
15174   openbsd*)
15175     with_gnu_ld=no
15176     ;;
15177   esac
15178
15179   ld_shlibs_F77=yes
15180   if test "$with_gnu_ld" = yes; then
15181     # If archive_cmds runs LD, not CC, wlarc should be empty
15182     wlarc='${wl}'
15183
15184     # See if GNU ld supports shared libraries.
15185     case $host_os in
15186     aix3* | aix4* | aix5*)
15187       # On AIX/PPC, the GNU linker is very broken
15188       if test "$host_cpu" != ia64; then
15189         ld_shlibs_F77=no
15190         cat <<EOF 1>&2
15191
15192 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15193 *** to be unable to reliably create shared libraries on AIX.
15194 *** Therefore, libtool is disabling shared libraries support.  If you
15195 *** really care for shared libraries, you may want to modify your PATH
15196 *** so that a non-GNU linker is found, and then restart.
15197
15198 EOF
15199       fi
15200       ;;
15201
15202     amigaos*)
15203       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)'
15204       hardcode_libdir_flag_spec_F77='-L$libdir'
15205       hardcode_minus_L_F77=yes
15206
15207       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15208       # that the semantics of dynamic libraries on AmigaOS, at least up
15209       # to version 4, is to share data among multiple programs linked
15210       # with the same dynamic library.  Since this doesn't match the
15211       # behavior of shared libraries on other platforms, we can't use
15212       # them.
15213       ld_shlibs_F77=no
15214       ;;
15215
15216     beos*)
15217       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15218         allow_undefined_flag_F77=unsupported
15219         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15220         # support --undefined.  This deserves some investigation.  FIXME
15221         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15222       else
15223         ld_shlibs_F77=no
15224       fi
15225       ;;
15226
15227     cygwin* | mingw* | pw32*)
15228       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15229       # as there is no search path for DLLs.
15230       hardcode_libdir_flag_spec_F77='-L$libdir'
15231       allow_undefined_flag_F77=unsupported
15232       always_export_symbols_F77=no
15233       enable_shared_with_static_runtimes_F77=yes
15234       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15235
15236       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15237         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15238         # If the export-symbols file already is a .def file (1st line
15239         # is EXPORTS), use it as is; otherwise, prepend...
15240         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15241           cp $export_symbols $output_objdir/$soname.def;
15242         else
15243           echo EXPORTS > $output_objdir/$soname.def;
15244           cat $export_symbols >> $output_objdir/$soname.def;
15245         fi~
15246         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15247       else
15248         ld_shlibs=no
15249       fi
15250       ;;
15251
15252     netbsd*)
15253       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15254         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15255         wlarc=
15256       else
15257         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15258         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15259       fi
15260       ;;
15261
15262     solaris* | sysv5*)
15263       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15264         ld_shlibs_F77=no
15265         cat <<EOF 1>&2
15266
15267 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15268 *** create shared libraries on Solaris systems.  Therefore, libtool
15269 *** is disabling shared libraries support.  We urge you to upgrade GNU
15270 *** binutils to release 2.9.1 or newer.  Another option is to modify
15271 *** your PATH or compiler configuration so that the native linker is
15272 *** used, and then restart.
15273
15274 EOF
15275       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15276         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15277         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15278       else
15279         ld_shlibs_F77=no
15280       fi
15281       ;;
15282
15283     sunos4*)
15284       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15285       wlarc=
15286       hardcode_direct_F77=yes
15287       hardcode_shlibpath_var_F77=no
15288       ;;
15289
15290   linux*)
15291     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15292         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15293         archive_cmds_F77="$tmp_archive_cmds"
15294       supports_anon_versioning=no
15295       case `$LD -v 2>/dev/null` in
15296         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15297         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15298         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15299         *\ 2.11.*) ;; # other 2.11 versions
15300         *) supports_anon_versioning=yes ;;
15301       esac
15302       if test $supports_anon_versioning = yes; then
15303         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15304 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15305 $echo "local: *; };" >> $output_objdir/$libname.ver~
15306         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15307       else
15308         archive_expsym_cmds_F77="$tmp_archive_cmds"
15309       fi
15310     else
15311       ld_shlibs_F77=no
15312     fi
15313     ;;
15314
15315     *)
15316       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15317         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15318         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15319       else
15320         ld_shlibs_F77=no
15321       fi
15322       ;;
15323     esac
15324
15325     if test "$ld_shlibs_F77" = yes; then
15326       runpath_var=LD_RUN_PATH
15327       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15328       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15329       # ancient GNU ld didn't support --whole-archive et. al.
15330       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15331         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15332       else
15333         whole_archive_flag_spec_F77=
15334       fi
15335     fi
15336   else
15337     # PORTME fill in a description of your system's linker (not GNU ld)
15338     case $host_os in
15339     aix3*)
15340       allow_undefined_flag_F77=unsupported
15341       always_export_symbols_F77=yes
15342       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'
15343       # Note: this linker hardcodes the directories in LIBPATH if there
15344       # are no directories specified by -L.
15345       hardcode_minus_L_F77=yes
15346       if test "$GCC" = yes && test -z "$link_static_flag"; then
15347         # Neither direct hardcoding nor static linking is supported with a
15348         # broken collect2.
15349         hardcode_direct_F77=unsupported
15350       fi
15351       ;;
15352
15353     aix4* | aix5*)
15354       if test "$host_cpu" = ia64; then
15355         # On IA64, the linker does run time linking by default, so we don't
15356         # have to do anything special.
15357         aix_use_runtimelinking=no
15358         exp_sym_flag='-Bexport'
15359         no_entry_flag=""
15360       else
15361         # If we're using GNU nm, then we don't want the "-C" option.
15362         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15363         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15364           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'
15365         else
15366           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'
15367         fi
15368         aix_use_runtimelinking=no
15369
15370         # Test if we are trying to use run time linking or normal
15371         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15372         # need to do runtime linking.
15373         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15374           for ld_flag in $LDFLAGS; do
15375           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15376             aix_use_runtimelinking=yes
15377             break
15378           fi
15379           done
15380         esac
15381
15382         exp_sym_flag='-bexport'
15383         no_entry_flag='-bnoentry'
15384       fi
15385
15386       # When large executables or shared objects are built, AIX ld can
15387       # have problems creating the table of contents.  If linking a library
15388       # or program results in "error TOC overflow" add -mminimal-toc to
15389       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15390       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15391
15392       archive_cmds_F77=''
15393       hardcode_direct_F77=yes
15394       hardcode_libdir_separator_F77=':'
15395       link_all_deplibs_F77=yes
15396
15397       if test "$GCC" = yes; then
15398         case $host_os in aix4.012|aix4.012.*)
15399         # We only want to do this on AIX 4.2 and lower, the check
15400         # below for broken collect2 doesn't work under 4.3+
15401           collect2name=`${CC} -print-prog-name=collect2`
15402           if test -f "$collect2name" && \
15403            strings "$collect2name" | grep resolve_lib_name >/dev/null
15404           then
15405           # We have reworked collect2
15406           hardcode_direct_F77=yes
15407           else
15408           # We have old collect2
15409           hardcode_direct_F77=unsupported
15410           # It fails to find uninstalled libraries when the uninstalled
15411           # path is not listed in the libpath.  Setting hardcode_minus_L
15412           # to unsupported forces relinking
15413           hardcode_minus_L_F77=yes
15414           hardcode_libdir_flag_spec_F77='-L$libdir'
15415           hardcode_libdir_separator_F77=
15416           fi
15417         esac
15418         shared_flag='-shared'
15419       else
15420         # not using gcc
15421         if test "$host_cpu" = ia64; then
15422         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15423         # chokes on -Wl,-G. The following line is correct:
15424           shared_flag='-G'
15425         else
15426         if test "$aix_use_runtimelinking" = yes; then
15427             shared_flag='${wl}-G'
15428           else
15429             shared_flag='${wl}-bM:SRE'
15430         fi
15431         fi
15432       fi
15433
15434       # It seems that -bexpall does not export symbols beginning with
15435       # underscore (_), so it is better to generate a list of symbols to export.
15436       always_export_symbols_F77=yes
15437       if test "$aix_use_runtimelinking" = yes; then
15438         # Warning - without using the other runtime loading flags (-brtl),
15439         # -berok will link without error, but may produce a broken library.
15440         allow_undefined_flag_F77='-berok'
15441        # Determine the default libpath from the value encoded in an empty executable.
15442        cat >conftest.$ac_ext <<_ACEOF
15443       program main
15444
15445       end
15446 _ACEOF
15447 rm -f conftest.$ac_objext conftest$ac_exeext
15448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15449   (eval $ac_link) 2>conftest.er1
15450   ac_status=$?
15451   grep -v '^ *+' conftest.er1 >conftest.err
15452   rm -f conftest.er1
15453   cat conftest.err >&5
15454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455   (exit $ac_status); } &&
15456          { ac_try='test -z "$ac_f77_werror_flag"
15457                          || test ! -s conftest.err'
15458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15459   (eval $ac_try) 2>&5
15460   ac_status=$?
15461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462   (exit $ac_status); }; } &&
15463          { ac_try='test -s conftest$ac_exeext'
15464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15465   (eval $ac_try) 2>&5
15466   ac_status=$?
15467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15468   (exit $ac_status); }; }; then
15469
15470 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15471 }'`
15472 # Check for a 64-bit object if we didn't find anything.
15473 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; }
15474 }'`; fi
15475 else
15476   echo "$as_me: failed program was:" >&5
15477 sed 's/^/| /' conftest.$ac_ext >&5
15478
15479 fi
15480 rm -f conftest.err conftest.$ac_objext \
15481       conftest$ac_exeext conftest.$ac_ext
15482 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15483
15484        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15485         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"
15486        else
15487         if test "$host_cpu" = ia64; then
15488           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15489           allow_undefined_flag_F77="-z nodefs"
15490           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"
15491         else
15492          # Determine the default libpath from the value encoded in an empty executable.
15493          cat >conftest.$ac_ext <<_ACEOF
15494       program main
15495
15496       end
15497 _ACEOF
15498 rm -f conftest.$ac_objext conftest$ac_exeext
15499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15500   (eval $ac_link) 2>conftest.er1
15501   ac_status=$?
15502   grep -v '^ *+' conftest.er1 >conftest.err
15503   rm -f conftest.er1
15504   cat conftest.err >&5
15505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506   (exit $ac_status); } &&
15507          { ac_try='test -z "$ac_f77_werror_flag"
15508                          || test ! -s conftest.err'
15509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15510   (eval $ac_try) 2>&5
15511   ac_status=$?
15512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513   (exit $ac_status); }; } &&
15514          { ac_try='test -s conftest$ac_exeext'
15515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15516   (eval $ac_try) 2>&5
15517   ac_status=$?
15518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519   (exit $ac_status); }; }; then
15520
15521 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15522 }'`
15523 # Check for a 64-bit object if we didn't find anything.
15524 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; }
15525 }'`; fi
15526 else
15527   echo "$as_me: failed program was:" >&5
15528 sed 's/^/| /' conftest.$ac_ext >&5
15529
15530 fi
15531 rm -f conftest.err conftest.$ac_objext \
15532       conftest$ac_exeext conftest.$ac_ext
15533 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15534
15535          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15536           # Warning - without using the other run time loading flags,
15537           # -berok will link without error, but may produce a broken library.
15538           no_undefined_flag_F77=' ${wl}-bernotok'
15539           allow_undefined_flag_F77=' ${wl}-berok'
15540           # -bexpall does not export symbols beginning with underscore (_)
15541           always_export_symbols_F77=yes
15542           # Exported symbols can be pulled into shared objects from archives
15543           whole_archive_flag_spec_F77=' '
15544           archive_cmds_need_lc_F77=yes
15545           # This is similar to how AIX traditionally builds it's shared libraries.
15546           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'
15547         fi
15548       fi
15549       ;;
15550
15551     amigaos*)
15552       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)'
15553       hardcode_libdir_flag_spec_F77='-L$libdir'
15554       hardcode_minus_L_F77=yes
15555       # see comment about different semantics on the GNU ld section
15556       ld_shlibs_F77=no
15557       ;;
15558
15559     bsdi4*)
15560       export_dynamic_flag_spec_F77=-rdynamic
15561       ;;
15562
15563     cygwin* | mingw* | pw32*)
15564       # When not using gcc, we currently assume that we are using
15565       # Microsoft Visual C++.
15566       # hardcode_libdir_flag_spec is actually meaningless, as there is
15567       # no search path for DLLs.
15568       hardcode_libdir_flag_spec_F77=' '
15569       allow_undefined_flag_F77=unsupported
15570       # Tell ltmain to make .lib files, not .a files.
15571       libext=lib
15572       # Tell ltmain to make .dll files, not .so files.
15573       shrext=".dll"
15574       # FIXME: Setting linknames here is a bad hack.
15575       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15576       # The linker will automatically build a .lib file if we build a DLL.
15577       old_archive_From_new_cmds_F77='true'
15578       # FIXME: Should let the user specify the lib program.
15579       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15580       fix_srcfile_path='`cygpath -w "$srcfile"`'
15581       enable_shared_with_static_runtimes_F77=yes
15582       ;;
15583
15584     darwin* | rhapsody*)
15585     if test "$GXX" = yes ; then
15586       archive_cmds_need_lc_F77=no
15587       case "$host_os" in
15588       rhapsody* | darwin1.[012])
15589         allow_undefined_flag_F77='-undefined suppress'
15590         ;;
15591       *) # Darwin 1.3 on
15592       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15593         allow_undefined_flag_F77='-flat_namespace -undefined suppress'
15594       else
15595         case ${MACOSX_DEPLOYMENT_TARGET} in
15596           10.[012])
15597             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
15598             ;;
15599           10.*)
15600             allow_undefined_flag_F77='-undefined dynamic_lookup'
15601             ;;
15602         esac
15603       fi
15604         ;;
15605       esac
15606         lt_int_apple_cc_single_mod=no
15607         output_verbose_link_cmd='echo'
15608         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15609           lt_int_apple_cc_single_mod=yes
15610         fi
15611         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15612           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15613         else
15614         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'
15615       fi
15616       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15617       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15618         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15619           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}'
15620         else
15621           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}'
15622         fi
15623           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}'
15624       hardcode_direct_F77=no
15625       hardcode_automatic_F77=yes
15626       hardcode_shlibpath_var_F77=unsupported
15627       whole_archive_flag_spec_F77='-all_load $convenience'
15628       link_all_deplibs_F77=yes
15629     else
15630       ld_shlibs_F77=no
15631     fi
15632       ;;
15633
15634     dgux*)
15635       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15636       hardcode_libdir_flag_spec_F77='-L$libdir'
15637       hardcode_shlibpath_var_F77=no
15638       ;;
15639
15640     freebsd1*)
15641       ld_shlibs_F77=no
15642       ;;
15643
15644     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15645     # support.  Future versions do this automatically, but an explicit c++rt0.o
15646     # does not break anything, and helps significantly (at the cost of a little
15647     # extra space).
15648     freebsd2.2*)
15649       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15650       hardcode_libdir_flag_spec_F77='-R$libdir'
15651       hardcode_direct_F77=yes
15652       hardcode_shlibpath_var_F77=no
15653       ;;
15654
15655     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15656     freebsd2*)
15657       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15658       hardcode_direct_F77=yes
15659       hardcode_minus_L_F77=yes
15660       hardcode_shlibpath_var_F77=no
15661       ;;
15662
15663     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15664     freebsd* | kfreebsd*-gnu)
15665       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15666       hardcode_libdir_flag_spec_F77='-R$libdir'
15667       hardcode_direct_F77=yes
15668       hardcode_shlibpath_var_F77=no
15669       ;;
15670
15671     hpux9*)
15672       if test "$GCC" = yes; then
15673         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'
15674       else
15675         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'
15676       fi
15677       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15678       hardcode_libdir_separator_F77=:
15679       hardcode_direct_F77=yes
15680
15681       # hardcode_minus_L: Not really in the search PATH,
15682       # but as the default location of the library.
15683       hardcode_minus_L_F77=yes
15684       export_dynamic_flag_spec_F77='${wl}-E'
15685       ;;
15686
15687     hpux10* | hpux11*)
15688       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15689         case "$host_cpu" in
15690         hppa*64*|ia64*)
15691           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15692           ;;
15693         *)
15694           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15695           ;;
15696         esac
15697       else
15698         case "$host_cpu" in
15699         hppa*64*|ia64*)
15700           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15701           ;;
15702         *)
15703           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15704           ;;
15705         esac
15706       fi
15707       if test "$with_gnu_ld" = no; then
15708         case "$host_cpu" in
15709         hppa*64*)
15710           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15711           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15712           hardcode_libdir_separator_F77=:
15713           hardcode_direct_F77=no
15714           hardcode_shlibpath_var_F77=no
15715           ;;
15716         ia64*)
15717           hardcode_libdir_flag_spec_F77='-L$libdir'
15718           hardcode_direct_F77=no
15719           hardcode_shlibpath_var_F77=no
15720
15721           # hardcode_minus_L: Not really in the search PATH,
15722           # but as the default location of the library.
15723           hardcode_minus_L_F77=yes
15724           ;;
15725         *)
15726           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15727           hardcode_libdir_separator_F77=:
15728           hardcode_direct_F77=yes
15729           export_dynamic_flag_spec_F77='${wl}-E'
15730
15731           # hardcode_minus_L: Not really in the search PATH,
15732           # but as the default location of the library.
15733           hardcode_minus_L_F77=yes
15734           ;;
15735         esac
15736       fi
15737       ;;
15738
15739     irix5* | irix6* | nonstopux*)
15740       if test "$GCC" = yes; then
15741         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'
15742       else
15743         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'
15744         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15745       fi
15746       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15747       hardcode_libdir_separator_F77=:
15748       link_all_deplibs_F77=yes
15749       ;;
15750
15751     netbsd*)
15752       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15753         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15754       else
15755         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15756       fi
15757       hardcode_libdir_flag_spec_F77='-R$libdir'
15758       hardcode_direct_F77=yes
15759       hardcode_shlibpath_var_F77=no
15760       ;;
15761
15762     newsos6)
15763       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15764       hardcode_direct_F77=yes
15765       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15766       hardcode_libdir_separator_F77=:
15767       hardcode_shlibpath_var_F77=no
15768       ;;
15769
15770     openbsd*)
15771       hardcode_direct_F77=yes
15772       hardcode_shlibpath_var_F77=no
15773       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15774         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15775         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15776         export_dynamic_flag_spec_F77='${wl}-E'
15777       else
15778        case $host_os in
15779          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15780            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15781            hardcode_libdir_flag_spec_F77='-R$libdir'
15782            ;;
15783          *)
15784            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15785            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15786            ;;
15787        esac
15788       fi
15789       ;;
15790
15791     os2*)
15792       hardcode_libdir_flag_spec_F77='-L$libdir'
15793       hardcode_minus_L_F77=yes
15794       allow_undefined_flag_F77=unsupported
15795       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'
15796       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15797       ;;
15798
15799     osf3*)
15800       if test "$GCC" = yes; then
15801         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15802         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'
15803       else
15804         allow_undefined_flag_F77=' -expect_unresolved \*'
15805         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'
15806       fi
15807       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15808       hardcode_libdir_separator_F77=:
15809       ;;
15810
15811     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15812       if test "$GCC" = yes; then
15813         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15814         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'
15815         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15816       else
15817         allow_undefined_flag_F77=' -expect_unresolved \*'
15818         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'
15819         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~
15820         $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'
15821
15822         # Both c and cxx compiler support -rpath directly
15823         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15824       fi
15825       hardcode_libdir_separator_F77=:
15826       ;;
15827
15828     sco3.2v5*)
15829       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15830       hardcode_shlibpath_var_F77=no
15831       export_dynamic_flag_spec_F77='${wl}-Bexport'
15832       runpath_var=LD_RUN_PATH
15833       hardcode_runpath_var=yes
15834       ;;
15835
15836     solaris*)
15837       no_undefined_flag_F77=' -z text'
15838       if test "$GCC" = yes; then
15839         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15840         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15841           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15842       else
15843         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15844         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15845         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15846       fi
15847       hardcode_libdir_flag_spec_F77='-R$libdir'
15848       hardcode_shlibpath_var_F77=no
15849       case $host_os in
15850       solaris2.[0-5] | solaris2.[0-5].*) ;;
15851       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15852         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15853       esac
15854       link_all_deplibs_F77=yes
15855       ;;
15856
15857     sunos4*)
15858       if test "x$host_vendor" = xsequent; then
15859         # Use $CC to link under sequent, because it throws in some extra .o
15860         # files that make .init and .fini sections work.
15861         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15862       else
15863         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15864       fi
15865       hardcode_libdir_flag_spec_F77='-L$libdir'
15866       hardcode_direct_F77=yes
15867       hardcode_minus_L_F77=yes
15868       hardcode_shlibpath_var_F77=no
15869       ;;
15870
15871     sysv4)
15872       case $host_vendor in
15873         sni)
15874           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15875           hardcode_direct_F77=yes # is this really true???
15876         ;;
15877         siemens)
15878           ## LD is ld it makes a PLAMLIB
15879           ## CC just makes a GrossModule.
15880           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15881           reload_cmds_F77='$CC -r -o $output$reload_objs'
15882           hardcode_direct_F77=no
15883         ;;
15884         motorola)
15885           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15886           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15887         ;;
15888       esac
15889       runpath_var='LD_RUN_PATH'
15890       hardcode_shlibpath_var_F77=no
15891       ;;
15892
15893     sysv4.3*)
15894       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15895       hardcode_shlibpath_var_F77=no
15896       export_dynamic_flag_spec_F77='-Bexport'
15897       ;;
15898
15899     sysv4*MP*)
15900       if test -d /usr/nec; then
15901         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15902         hardcode_shlibpath_var_F77=no
15903         runpath_var=LD_RUN_PATH
15904         hardcode_runpath_var=yes
15905         ld_shlibs_F77=yes
15906       fi
15907       ;;
15908
15909     sysv4.2uw2*)
15910       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15911       hardcode_direct_F77=yes
15912       hardcode_minus_L_F77=no
15913       hardcode_shlibpath_var_F77=no
15914       hardcode_runpath_var=yes
15915       runpath_var=LD_RUN_PATH
15916       ;;
15917
15918    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
15919       no_undefined_flag_F77='${wl}-z ${wl}text'
15920       if test "$GCC" = yes; then
15921         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15922       else
15923         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15924       fi
15925       runpath_var='LD_RUN_PATH'
15926       hardcode_shlibpath_var_F77=no
15927       ;;
15928
15929     sysv5*)
15930       no_undefined_flag_F77=' -z text'
15931       # $CC -shared without GNU ld will not create a library from C++
15932       # object files and a static libstdc++, better avoid it by now
15933       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15934       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15935                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15936       hardcode_libdir_flag_spec_F77=
15937       hardcode_shlibpath_var_F77=no
15938       runpath_var='LD_RUN_PATH'
15939       ;;
15940
15941     uts4*)
15942       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15943       hardcode_libdir_flag_spec_F77='-L$libdir'
15944       hardcode_shlibpath_var_F77=no
15945       ;;
15946
15947     *)
15948       ld_shlibs_F77=no
15949       ;;
15950     esac
15951   fi
15952
15953 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15954 echo "${ECHO_T}$ld_shlibs_F77" >&6
15955 test "$ld_shlibs_F77" = no && can_build_shared=no
15956
15957 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15958 if test "$GCC" = yes; then
15959   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15960 fi
15961
15962 #
15963 # Do we need to explicitly link libc?
15964 #
15965 case "x$archive_cmds_need_lc_F77" in
15966 x|xyes)
15967   # Assume -lc should be added
15968   archive_cmds_need_lc_F77=yes
15969
15970   if test "$enable_shared" = yes && test "$GCC" = yes; then
15971     case $archive_cmds_F77 in
15972     *'~'*)
15973       # FIXME: we may have to deal with multi-command sequences.
15974       ;;
15975     '$CC '*)
15976       # Test whether the compiler implicitly links with -lc since on some
15977       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15978       # to ld, don't add -lc before -lgcc.
15979       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15980 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15981       $rm conftest*
15982       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15983
15984       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15985   (eval $ac_compile) 2>&5
15986   ac_status=$?
15987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988   (exit $ac_status); } 2>conftest.err; then
15989         soname=conftest
15990         lib=conftest
15991         libobjs=conftest.$ac_objext
15992         deplibs=
15993         wl=$lt_prog_compiler_wl_F77
15994         compiler_flags=-v
15995         linker_flags=-v
15996         verstring=
15997         output_objdir=.
15998         libname=conftest
15999         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16000         allow_undefined_flag_F77=
16001         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16002   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16003   ac_status=$?
16004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005   (exit $ac_status); }
16006         then
16007           archive_cmds_need_lc_F77=no
16008         else
16009           archive_cmds_need_lc_F77=yes
16010         fi
16011         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16012       else
16013         cat conftest.err 1>&5
16014       fi
16015       $rm conftest*
16016       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16017 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16018       ;;
16019     esac
16020   fi
16021   ;;
16022 esac
16023
16024 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16025 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16026 library_names_spec=
16027 libname_spec='lib$name'
16028 soname_spec=
16029 shrext=".so"
16030 postinstall_cmds=
16031 postuninstall_cmds=
16032 finish_cmds=
16033 finish_eval=
16034 shlibpath_var=
16035 shlibpath_overrides_runpath=unknown
16036 version_type=none
16037 dynamic_linker="$host_os ld.so"
16038 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16039 if test "$GCC" = yes; then
16040   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16041   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16042     # if the path contains ";" then we assume it to be the separator
16043     # otherwise default to the standard path separator (i.e. ":") - it is
16044     # assumed that no part of a normal pathname contains ";" but that should
16045     # okay in the real world where ";" in dirpaths is itself problematic.
16046     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16047   else
16048     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16049   fi
16050 else
16051   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16052 fi
16053 need_lib_prefix=unknown
16054 hardcode_into_libs=no
16055
16056 # when you set need_version to no, make sure it does not cause -set_version
16057 # flags to be left without arguments
16058 need_version=unknown
16059
16060 case $host_os in
16061 aix3*)
16062   version_type=linux
16063   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16064   shlibpath_var=LIBPATH
16065
16066   # AIX 3 has no versioning support, so we append a major version to the name.
16067   soname_spec='${libname}${release}${shared_ext}$major'
16068   ;;
16069
16070 aix4* | aix5*)
16071   version_type=linux
16072   need_lib_prefix=no
16073   need_version=no
16074   hardcode_into_libs=yes
16075   if test "$host_cpu" = ia64; then
16076     # AIX 5 supports IA64
16077     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16078     shlibpath_var=LD_LIBRARY_PATH
16079   else
16080     # With GCC up to 2.95.x, collect2 would create an import file
16081     # for dependence libraries.  The import file would start with
16082     # the line `#! .'.  This would cause the generated library to
16083     # depend on `.', always an invalid library.  This was fixed in
16084     # development snapshots of GCC prior to 3.0.
16085     case $host_os in
16086       aix4 | aix4.[01] | aix4.[01].*)
16087       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16088            echo ' yes '
16089            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16090         :
16091       else
16092         can_build_shared=no
16093       fi
16094       ;;
16095     esac
16096     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16097     # soname into executable. Probably we can add versioning support to
16098     # collect2, so additional links can be useful in future.
16099     if test "$aix_use_runtimelinking" = yes; then
16100       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16101       # instead of lib<name>.a to let people know that these are not
16102       # typical AIX shared libraries.
16103       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16104     else
16105       # We preserve .a as extension for shared libraries through AIX4.2
16106       # and later when we are not doing run time linking.
16107       library_names_spec='${libname}${release}.a $libname.a'
16108       soname_spec='${libname}${release}${shared_ext}$major'
16109     fi
16110     shlibpath_var=LIBPATH
16111   fi
16112   ;;
16113
16114 amigaos*)
16115   library_names_spec='$libname.ixlibrary $libname.a'
16116   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16117   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'
16118   ;;
16119
16120 beos*)
16121   library_names_spec='${libname}${shared_ext}'
16122   dynamic_linker="$host_os ld.so"
16123   shlibpath_var=LIBRARY_PATH
16124   ;;
16125
16126 bsdi4*)
16127   version_type=linux
16128   need_version=no
16129   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16130   soname_spec='${libname}${release}${shared_ext}$major'
16131   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16132   shlibpath_var=LD_LIBRARY_PATH
16133   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16134   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16135   # the default ld.so.conf also contains /usr/contrib/lib and
16136   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16137   # libtool to hard-code these into programs
16138   ;;
16139
16140 cygwin* | mingw* | pw32*)
16141   version_type=windows
16142   shrext=".dll"
16143   need_version=no
16144   need_lib_prefix=no
16145
16146   case $GCC,$host_os in
16147   yes,cygwin* | yes,mingw* | yes,pw32*)
16148     library_names_spec='$libname.dll.a'
16149     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16150     postinstall_cmds='base_file=`basename \${file}`~
16151       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16152       dldir=$destdir/`dirname \$dlpath`~
16153       test -d \$dldir || mkdir -p \$dldir~
16154       $install_prog $dir/$dlname \$dldir/$dlname'
16155     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16156       dlpath=$dir/\$dldll~
16157        $rm \$dlpath'
16158     shlibpath_overrides_runpath=yes
16159
16160     case $host_os in
16161     cygwin*)
16162       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16163       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16164       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16165       ;;
16166     mingw*)
16167       # MinGW DLLs use traditional 'lib' prefix
16168       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16169       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16170       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16171         # It is most probably a Windows format PATH printed by
16172         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16173         # path with ; separators, and with drive letters. We can handle the
16174         # drive letters (cygwin fileutils understands them), so leave them,
16175         # especially as we might pass files found there to a mingw objdump,
16176         # which wouldn't understand a cygwinified path. Ahh.
16177         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16178       else
16179         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16180       fi
16181       ;;
16182     pw32*)
16183       # pw32 DLLs use 'pw' prefix rather than 'lib'
16184       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16185       ;;
16186     esac
16187     ;;
16188
16189   *)
16190     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16191     ;;
16192   esac
16193   dynamic_linker='Win32 ld.exe'
16194   # FIXME: first we should search . and the directory the executable is in
16195   shlibpath_var=PATH
16196   ;;
16197
16198 darwin* | rhapsody*)
16199   dynamic_linker="$host_os dyld"
16200   version_type=darwin
16201   need_lib_prefix=no
16202   need_version=no
16203   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16204   soname_spec='${libname}${release}${major}$shared_ext'
16205   shlibpath_overrides_runpath=yes
16206   shlibpath_var=DYLD_LIBRARY_PATH
16207   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16208   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16209   if test "$GCC" = yes; then
16210     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"`
16211   else
16212     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16213   fi
16214   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16215   ;;
16216
16217 dgux*)
16218   version_type=linux
16219   need_lib_prefix=no
16220   need_version=no
16221   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16222   soname_spec='${libname}${release}${shared_ext}$major'
16223   shlibpath_var=LD_LIBRARY_PATH
16224   ;;
16225
16226 freebsd1*)
16227   dynamic_linker=no
16228   ;;
16229
16230 kfreebsd*-gnu)
16231   version_type=linux
16232   need_lib_prefix=no
16233   need_version=no
16234   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16235   soname_spec='${libname}${release}${shared_ext}$major'
16236   shlibpath_var=LD_LIBRARY_PATH
16237   shlibpath_overrides_runpath=no
16238   hardcode_into_libs=yes
16239   dynamic_linker='GNU ld.so'
16240   ;;
16241
16242 freebsd*)
16243   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16244   version_type=freebsd-$objformat
16245   case $version_type in
16246     freebsd-elf*)
16247       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16248       need_version=no
16249       need_lib_prefix=no
16250       ;;
16251     freebsd-*)
16252       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16253       need_version=yes
16254       ;;
16255   esac
16256   shlibpath_var=LD_LIBRARY_PATH
16257   case $host_os in
16258   freebsd2*)
16259     shlibpath_overrides_runpath=yes
16260     ;;
16261   freebsd3.01* | freebsdelf3.01*)
16262     shlibpath_overrides_runpath=yes
16263     hardcode_into_libs=yes
16264     ;;
16265   *) # from 3.2 on
16266     shlibpath_overrides_runpath=no
16267     hardcode_into_libs=yes
16268     ;;
16269   esac
16270   ;;
16271
16272 gnu*)
16273   version_type=linux
16274   need_lib_prefix=no
16275   need_version=no
16276   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16277   soname_spec='${libname}${release}${shared_ext}$major'
16278   shlibpath_var=LD_LIBRARY_PATH
16279   hardcode_into_libs=yes
16280   ;;
16281
16282 hpux9* | hpux10* | hpux11*)
16283   # Give a soname corresponding to the major version so that dld.sl refuses to
16284   # link against other versions.
16285   version_type=sunos
16286   need_lib_prefix=no
16287   need_version=no
16288   case "$host_cpu" in
16289   ia64*)
16290     shrext='.so'
16291     hardcode_into_libs=yes
16292     dynamic_linker="$host_os dld.so"
16293     shlibpath_var=LD_LIBRARY_PATH
16294     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16295     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16296     soname_spec='${libname}${release}${shared_ext}$major'
16297     if test "X$HPUX_IA64_MODE" = X32; then
16298       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16299     else
16300       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16301     fi
16302     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16303     ;;
16304    hppa*64*)
16305      shrext='.sl'
16306      hardcode_into_libs=yes
16307      dynamic_linker="$host_os dld.sl"
16308      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16309      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16310      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16311      soname_spec='${libname}${release}${shared_ext}$major'
16312      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16313      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16314      ;;
16315    *)
16316     shrext='.sl'
16317     dynamic_linker="$host_os dld.sl"
16318     shlibpath_var=SHLIB_PATH
16319     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16320     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16321     soname_spec='${libname}${release}${shared_ext}$major'
16322     ;;
16323   esac
16324   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16325   postinstall_cmds='chmod 555 $lib'
16326   ;;
16327
16328 irix5* | irix6* | nonstopux*)
16329   case $host_os in
16330     nonstopux*) version_type=nonstopux ;;
16331     *)
16332         if test "$lt_cv_prog_gnu_ld" = yes; then
16333                 version_type=linux
16334         else
16335                 version_type=irix
16336         fi ;;
16337   esac
16338   need_lib_prefix=no
16339   need_version=no
16340   soname_spec='${libname}${release}${shared_ext}$major'
16341   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16342   case $host_os in
16343   irix5* | nonstopux*)
16344     libsuff= shlibsuff=
16345     ;;
16346   *)
16347     case $LD in # libtool.m4 will add one of these switches to LD
16348     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16349       libsuff= shlibsuff= libmagic=32-bit;;
16350     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16351       libsuff=32 shlibsuff=N32 libmagic=N32;;
16352     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16353       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16354     *) libsuff= shlibsuff= libmagic=never-match;;
16355     esac
16356     ;;
16357   esac
16358   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16359   shlibpath_overrides_runpath=no
16360   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16361   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16362   hardcode_into_libs=yes
16363   ;;
16364
16365 # No shared lib support for Linux oldld, aout, or coff.
16366 linux*oldld* | linux*aout* | linux*coff*)
16367   dynamic_linker=no
16368   ;;
16369
16370 # This must be Linux ELF.
16371 linux*)
16372   version_type=linux
16373   need_lib_prefix=no
16374   need_version=no
16375   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16376   soname_spec='${libname}${release}${shared_ext}$major'
16377   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16378   shlibpath_var=LD_LIBRARY_PATH
16379   shlibpath_overrides_runpath=no
16380   # This implies no fast_install, which is unacceptable.
16381   # Some rework will be needed to allow for fast_install
16382   # before this can be enabled.
16383   hardcode_into_libs=yes
16384
16385   # Append ld.so.conf contents to the search path
16386   if test -f /etc/ld.so.conf; then
16387     ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
16388     sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
16389   fi
16390
16391   # We used to test for /lib/ld.so.1 and disable shared libraries on
16392   # powerpc, because MkLinux only supported shared libraries with the
16393   # GNU dynamic linker.  Since this was broken with cross compilers,
16394   # most powerpc-linux boxes support dynamic linking these days and
16395   # people can always --disable-shared, the test was removed, and we
16396   # assume the GNU/Linux dynamic linker is in use.
16397   dynamic_linker='GNU/Linux ld.so'
16398   ;;
16399
16400 knetbsd*-gnu)
16401   version_type=linux
16402   need_lib_prefix=no
16403   need_version=no
16404   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16405   soname_spec='${libname}${release}${shared_ext}$major'
16406   shlibpath_var=LD_LIBRARY_PATH
16407   shlibpath_overrides_runpath=no
16408   hardcode_into_libs=yes
16409   dynamic_linker='GNU ld.so'
16410   ;;
16411
16412 netbsd*)
16413   version_type=sunos
16414   need_lib_prefix=no
16415   need_version=no
16416   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16417     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16418     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16419     dynamic_linker='NetBSD (a.out) ld.so'
16420   else
16421     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16422     soname_spec='${libname}${release}${shared_ext}$major'
16423     dynamic_linker='NetBSD ld.elf_so'
16424   fi
16425   shlibpath_var=LD_LIBRARY_PATH
16426   shlibpath_overrides_runpath=yes
16427   hardcode_into_libs=yes
16428   ;;
16429
16430 newsos6)
16431   version_type=linux
16432   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16433   shlibpath_var=LD_LIBRARY_PATH
16434   shlibpath_overrides_runpath=yes
16435   ;;
16436
16437 nto-qnx*)
16438   version_type=linux
16439   need_lib_prefix=no
16440   need_version=no
16441   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16442   soname_spec='${libname}${release}${shared_ext}$major'
16443   shlibpath_var=LD_LIBRARY_PATH
16444   shlibpath_overrides_runpath=yes
16445   ;;
16446
16447 openbsd*)
16448   version_type=sunos
16449   need_lib_prefix=no
16450   need_version=yes
16451   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16452   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16453   shlibpath_var=LD_LIBRARY_PATH
16454   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16455     case $host_os in
16456       openbsd2.[89] | openbsd2.[89].*)
16457         shlibpath_overrides_runpath=no
16458         ;;
16459       *)
16460         shlibpath_overrides_runpath=yes
16461         ;;
16462       esac
16463   else
16464     shlibpath_overrides_runpath=yes
16465   fi
16466   ;;
16467
16468 os2*)
16469   libname_spec='$name'
16470   shrext=".dll"
16471   need_lib_prefix=no
16472   library_names_spec='$libname${shared_ext} $libname.a'
16473   dynamic_linker='OS/2 ld.exe'
16474   shlibpath_var=LIBPATH
16475   ;;
16476
16477 osf3* | osf4* | osf5*)
16478   version_type=osf
16479   need_lib_prefix=no
16480   need_version=no
16481   soname_spec='${libname}${release}${shared_ext}$major'
16482   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16483   shlibpath_var=LD_LIBRARY_PATH
16484   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16485   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16486   ;;
16487
16488 sco3.2v5*)
16489   version_type=osf
16490   soname_spec='${libname}${release}${shared_ext}$major'
16491   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16492   shlibpath_var=LD_LIBRARY_PATH
16493   ;;
16494
16495 solaris*)
16496   version_type=linux
16497   need_lib_prefix=no
16498   need_version=no
16499   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16500   soname_spec='${libname}${release}${shared_ext}$major'
16501   shlibpath_var=LD_LIBRARY_PATH
16502   shlibpath_overrides_runpath=yes
16503   hardcode_into_libs=yes
16504   # ldd complains unless libraries are executable
16505   postinstall_cmds='chmod +x $lib'
16506   ;;
16507
16508 sunos4*)
16509   version_type=sunos
16510   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16511   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16512   shlibpath_var=LD_LIBRARY_PATH
16513   shlibpath_overrides_runpath=yes
16514   if test "$with_gnu_ld" = yes; then
16515     need_lib_prefix=no
16516   fi
16517   need_version=yes
16518   ;;
16519
16520 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16521   version_type=linux
16522   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16523   soname_spec='${libname}${release}${shared_ext}$major'
16524   shlibpath_var=LD_LIBRARY_PATH
16525   case $host_vendor in
16526     sni)
16527       shlibpath_overrides_runpath=no
16528       need_lib_prefix=no
16529       export_dynamic_flag_spec='${wl}-Blargedynsym'
16530       runpath_var=LD_RUN_PATH
16531       ;;
16532     siemens)
16533       need_lib_prefix=no
16534       ;;
16535     motorola)
16536       need_lib_prefix=no
16537       need_version=no
16538       shlibpath_overrides_runpath=no
16539       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16540       ;;
16541   esac
16542   ;;
16543
16544 sysv4*MP*)
16545   if test -d /usr/nec ;then
16546     version_type=linux
16547     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16548     soname_spec='$libname${shared_ext}.$major'
16549     shlibpath_var=LD_LIBRARY_PATH
16550   fi
16551   ;;
16552
16553 uts4*)
16554   version_type=linux
16555   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16556   soname_spec='${libname}${release}${shared_ext}$major'
16557   shlibpath_var=LD_LIBRARY_PATH
16558   ;;
16559
16560 *)
16561   dynamic_linker=no
16562   ;;
16563 esac
16564 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16565 echo "${ECHO_T}$dynamic_linker" >&6
16566 test "$dynamic_linker" = no && can_build_shared=no
16567
16568 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16569 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16570 hardcode_action_F77=
16571 if test -n "$hardcode_libdir_flag_spec_F77" || \
16572    test -n "$runpath_var F77" || \
16573    test "X$hardcode_automatic_F77"="Xyes" ; then
16574
16575   # We can hardcode non-existant directories.
16576   if test "$hardcode_direct_F77" != no &&
16577      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16578      # have to relink, otherwise we might link with an installed library
16579      # when we should be linking with a yet-to-be-installed one
16580      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16581      test "$hardcode_minus_L_F77" != no; then
16582     # Linking always hardcodes the temporary library directory.
16583     hardcode_action_F77=relink
16584   else
16585     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16586     hardcode_action_F77=immediate
16587   fi
16588 else
16589   # We cannot hardcode anything, or else we can only hardcode existing
16590   # directories.
16591   hardcode_action_F77=unsupported
16592 fi
16593 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16594 echo "${ECHO_T}$hardcode_action_F77" >&6
16595
16596 if test "$hardcode_action_F77" = relink; then
16597   # Fast installation is not supported
16598   enable_fast_install=no
16599 elif test "$shlibpath_overrides_runpath" = yes ||
16600      test "$enable_shared" = no; then
16601   # Fast installation is not necessary
16602   enable_fast_install=needless
16603 fi
16604
16605 striplib=
16606 old_striplib=
16607 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16608 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16609 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16610   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16611   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16612   echo "$as_me:$LINENO: result: yes" >&5
16613 echo "${ECHO_T}yes" >&6
16614 else
16615 # FIXME - insert some real tests, host_os isn't really good enough
16616   case $host_os in
16617    darwin*)
16618        if test -n "$STRIP" ; then
16619          striplib="$STRIP -x"
16620          echo "$as_me:$LINENO: result: yes" >&5
16621 echo "${ECHO_T}yes" >&6
16622        else
16623   echo "$as_me:$LINENO: result: no" >&5
16624 echo "${ECHO_T}no" >&6
16625 fi
16626        ;;
16627    *)
16628   echo "$as_me:$LINENO: result: no" >&5
16629 echo "${ECHO_T}no" >&6
16630     ;;
16631   esac
16632 fi
16633
16634
16635
16636 # The else clause should only fire when bootstrapping the
16637 # libtool distribution, otherwise you forgot to ship ltmain.sh
16638 # with your package, and you will get complaints that there are
16639 # no rules to generate ltmain.sh.
16640 if test -f "$ltmain"; then
16641   # See if we are running on zsh, and set the options which allow our commands through
16642   # without removal of \ escapes.
16643   if test -n "${ZSH_VERSION+set}" ; then
16644     setopt NO_GLOB_SUBST
16645   fi
16646   # Now quote all the things that may contain metacharacters while being
16647   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16648   # variables and quote the copies for generation of the libtool script.
16649   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16650     SED SHELL STRIP \
16651     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16652     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16653     deplibs_check_method reload_flag reload_cmds need_locks \
16654     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16655     lt_cv_sys_global_symbol_to_c_name_address \
16656     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16657     old_postinstall_cmds old_postuninstall_cmds \
16658     compiler_F77 \
16659     CC_F77 \
16660     LD_F77 \
16661     lt_prog_compiler_wl_F77 \
16662     lt_prog_compiler_pic_F77 \
16663     lt_prog_compiler_static_F77 \
16664     lt_prog_compiler_no_builtin_flag_F77 \
16665     export_dynamic_flag_spec_F77 \
16666     thread_safe_flag_spec_F77 \
16667     whole_archive_flag_spec_F77 \
16668     enable_shared_with_static_runtimes_F77 \
16669     old_archive_cmds_F77 \
16670     old_archive_from_new_cmds_F77 \
16671     predep_objects_F77 \
16672     postdep_objects_F77 \
16673     predeps_F77 \
16674     postdeps_F77 \
16675     compiler_lib_search_path_F77 \
16676     archive_cmds_F77 \
16677     archive_expsym_cmds_F77 \
16678     postinstall_cmds_F77 \
16679     postuninstall_cmds_F77 \
16680     old_archive_from_expsyms_cmds_F77 \
16681     allow_undefined_flag_F77 \
16682     no_undefined_flag_F77 \
16683     export_symbols_cmds_F77 \
16684     hardcode_libdir_flag_spec_F77 \
16685     hardcode_libdir_flag_spec_ld_F77 \
16686     hardcode_libdir_separator_F77 \
16687     hardcode_automatic_F77 \
16688     module_cmds_F77 \
16689     module_expsym_cmds_F77 \
16690     lt_cv_prog_compiler_c_o_F77 \
16691     exclude_expsyms_F77 \
16692     include_expsyms_F77; do
16693
16694     case $var in
16695     old_archive_cmds_F77 | \
16696     old_archive_from_new_cmds_F77 | \
16697     archive_cmds_F77 | \
16698     archive_expsym_cmds_F77 | \
16699     module_cmds_F77 | \
16700     module_expsym_cmds_F77 | \
16701     old_archive_from_expsyms_cmds_F77 | \
16702     export_symbols_cmds_F77 | \
16703     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16704     postinstall_cmds | postuninstall_cmds | \
16705     old_postinstall_cmds | old_postuninstall_cmds | \
16706     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16707       # Double-quote double-evaled strings.
16708       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16709       ;;
16710     *)
16711       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16712       ;;
16713     esac
16714   done
16715
16716   case $lt_echo in
16717   *'\$0 --fallback-echo"')
16718     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16719     ;;
16720   esac
16721
16722 cfgfile="$ofile"
16723
16724   cat <<__EOF__ >> "$cfgfile"
16725 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16726
16727 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16728
16729 # Shell to use when invoking shell scripts.
16730 SHELL=$lt_SHELL
16731
16732 # Whether or not to build shared libraries.
16733 build_libtool_libs=$enable_shared
16734
16735 # Whether or not to build static libraries.
16736 build_old_libs=$enable_static
16737
16738 # Whether or not to add -lc for building shared libraries.
16739 build_libtool_need_lc=$archive_cmds_need_lc_F77
16740
16741 # Whether or not to disallow shared libs when runtime libs are static
16742 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16743
16744 # Whether or not to optimize for fast installation.
16745 fast_install=$enable_fast_install
16746
16747 # The host system.
16748 host_alias=$host_alias
16749 host=$host
16750
16751 # An echo program that does not interpret backslashes.
16752 echo=$lt_echo
16753
16754 # The archiver.
16755 AR=$lt_AR
16756 AR_FLAGS=$lt_AR_FLAGS
16757
16758 # A C compiler.
16759 LTCC=$lt_LTCC
16760
16761 # A language-specific compiler.
16762 CC=$lt_compiler_F77
16763
16764 # Is the compiler the GNU C compiler?
16765 with_gcc=$GCC_F77
16766
16767 # An ERE matcher.
16768 EGREP=$lt_EGREP
16769
16770 # The linker used to build libraries.
16771 LD=$lt_LD_F77
16772
16773 # Whether we need hard or soft links.
16774 LN_S=$lt_LN_S
16775
16776 # A BSD-compatible nm program.
16777 NM=$lt_NM
16778
16779 # A symbol stripping program
16780 STRIP=$lt_STRIP
16781
16782 # Used to examine libraries when file_magic_cmd begins "file"
16783 MAGIC_CMD=$MAGIC_CMD
16784
16785 # Used on cygwin: DLL creation program.
16786 DLLTOOL="$DLLTOOL"
16787
16788 # Used on cygwin: object dumper.
16789 OBJDUMP="$OBJDUMP"
16790
16791 # Used on cygwin: assembler.
16792 AS="$AS"
16793
16794 # The name of the directory that contains temporary libtool files.
16795 objdir=$objdir
16796
16797 # How to create reloadable object files.
16798 reload_flag=$lt_reload_flag
16799 reload_cmds=$lt_reload_cmds
16800
16801 # How to pass a linker flag through the compiler.
16802 wl=$lt_lt_prog_compiler_wl_F77
16803
16804 # Object file suffix (normally "o").
16805 objext="$ac_objext"
16806
16807 # Old archive suffix (normally "a").
16808 libext="$libext"
16809
16810 # Shared library suffix (normally ".so").
16811 shrext='$shrext'
16812
16813 # Executable file suffix (normally "").
16814 exeext="$exeext"
16815
16816 # Additional compiler flags for building library objects.
16817 pic_flag=$lt_lt_prog_compiler_pic_F77
16818 pic_mode=$pic_mode
16819
16820 # What is the maximum length of a command?
16821 max_cmd_len=$lt_cv_sys_max_cmd_len
16822
16823 # Does compiler simultaneously support -c and -o options?
16824 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16825
16826 # Must we lock files when doing compilation ?
16827 need_locks=$lt_need_locks
16828
16829 # Do we need the lib prefix for modules?
16830 need_lib_prefix=$need_lib_prefix
16831
16832 # Do we need a version for libraries?
16833 need_version=$need_version
16834
16835 # Whether dlopen is supported.
16836 dlopen_support=$enable_dlopen
16837
16838 # Whether dlopen of programs is supported.
16839 dlopen_self=$enable_dlopen_self
16840
16841 # Whether dlopen of statically linked programs is supported.
16842 dlopen_self_static=$enable_dlopen_self_static
16843
16844 # Compiler flag to prevent dynamic linking.
16845 link_static_flag=$lt_lt_prog_compiler_static_F77
16846
16847 # Compiler flag to turn off builtin functions.
16848 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16849
16850 # Compiler flag to allow reflexive dlopens.
16851 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16852
16853 # Compiler flag to generate shared objects directly from archives.
16854 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16855
16856 # Compiler flag to generate thread-safe objects.
16857 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16858
16859 # Library versioning type.
16860 version_type=$version_type
16861
16862 # Format of library name prefix.
16863 libname_spec=$lt_libname_spec
16864
16865 # List of archive names.  First name is the real one, the rest are links.
16866 # The last name is the one that the linker finds with -lNAME.
16867 library_names_spec=$lt_library_names_spec
16868
16869 # The coded name of the library, if different from the real name.
16870 soname_spec=$lt_soname_spec
16871
16872 # Commands used to build and install an old-style archive.
16873 RANLIB=$lt_RANLIB
16874 old_archive_cmds=$lt_old_archive_cmds_F77
16875 old_postinstall_cmds=$lt_old_postinstall_cmds
16876 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16877
16878 # Create an old-style archive from a shared archive.
16879 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16880
16881 # Create a temporary old-style archive to link instead of a shared archive.
16882 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16883
16884 # Commands used to build and install a shared archive.
16885 archive_cmds=$lt_archive_cmds_F77
16886 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16887 postinstall_cmds=$lt_postinstall_cmds
16888 postuninstall_cmds=$lt_postuninstall_cmds
16889
16890 # Commands used to build a loadable module (assumed same as above if empty)
16891 module_cmds=$lt_module_cmds_F77
16892 module_expsym_cmds=$lt_module_expsym_cmds_F77
16893
16894 # Commands to strip libraries.
16895 old_striplib=$lt_old_striplib
16896 striplib=$lt_striplib
16897
16898 # Dependencies to place before the objects being linked to create a
16899 # shared library.
16900 predep_objects=$lt_predep_objects_F77
16901
16902 # Dependencies to place after the objects being linked to create a
16903 # shared library.
16904 postdep_objects=$lt_postdep_objects_F77
16905
16906 # Dependencies to place before the objects being linked to create a
16907 # shared library.
16908 predeps=$lt_predeps_F77
16909
16910 # Dependencies to place after the objects being linked to create a
16911 # shared library.
16912 postdeps=$lt_postdeps_F77
16913
16914 # The library search path used internally by the compiler when linking
16915 # a shared library.
16916 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16917
16918 # Method to check whether dependent libraries are shared objects.
16919 deplibs_check_method=$lt_deplibs_check_method
16920
16921 # Command to use when deplibs_check_method == file_magic.
16922 file_magic_cmd=$lt_file_magic_cmd
16923
16924 # Flag that allows shared libraries with undefined symbols to be built.
16925 allow_undefined_flag=$lt_allow_undefined_flag_F77
16926
16927 # Flag that forces no undefined symbols.
16928 no_undefined_flag=$lt_no_undefined_flag_F77
16929
16930 # Commands used to finish a libtool library installation in a directory.
16931 finish_cmds=$lt_finish_cmds
16932
16933 # Same as above, but a single script fragment to be evaled but not shown.
16934 finish_eval=$lt_finish_eval
16935
16936 # Take the output of nm and produce a listing of raw symbols and C names.
16937 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16938
16939 # Transform the output of nm in a proper C declaration
16940 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16941
16942 # Transform the output of nm in a C name address pair
16943 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16944
16945 # This is the shared library runtime path variable.
16946 runpath_var=$runpath_var
16947
16948 # This is the shared library path variable.
16949 shlibpath_var=$shlibpath_var
16950
16951 # Is shlibpath searched before the hard-coded library search path?
16952 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16953
16954 # How to hardcode a shared library path into an executable.
16955 hardcode_action=$hardcode_action_F77
16956
16957 # Whether we should hardcode library paths into libraries.
16958 hardcode_into_libs=$hardcode_into_libs
16959
16960 # Flag to hardcode \$libdir into a binary during linking.
16961 # This must work even if \$libdir does not exist.
16962 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16963
16964 # If ld is used when linking, flag to hardcode \$libdir into
16965 # a binary during linking. This must work even if \$libdir does
16966 # not exist.
16967 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16968
16969 # Whether we need a single -rpath flag with a separated argument.
16970 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16971
16972 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16973 # resulting binary.
16974 hardcode_direct=$hardcode_direct_F77
16975
16976 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16977 # resulting binary.
16978 hardcode_minus_L=$hardcode_minus_L_F77
16979
16980 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16981 # the resulting binary.
16982 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16983
16984 # Set to yes if building a shared library automatically hardcodes DIR into the library
16985 # and all subsequent libraries and executables linked against it.
16986 hardcode_automatic=$hardcode_automatic_F77
16987
16988 # Variables whose values should be saved in libtool wrapper scripts and
16989 # restored at relink time.
16990 variables_saved_for_relink="$variables_saved_for_relink"
16991
16992 # Whether libtool must link a program against all its dependency libraries.
16993 link_all_deplibs=$link_all_deplibs_F77
16994
16995 # Compile-time system search path for libraries
16996 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16997
16998 # Run-time system search path for libraries
16999 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17000
17001 # Fix the shell variable \$srcfile for the compiler.
17002 fix_srcfile_path="$fix_srcfile_path_F77"
17003
17004 # Set to yes if exported symbols are required.
17005 always_export_symbols=$always_export_symbols_F77
17006
17007 # The commands to list exported symbols.
17008 export_symbols_cmds=$lt_export_symbols_cmds_F77
17009
17010 # The commands to extract the exported symbol list from a shared archive.
17011 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17012
17013 # Symbols that should not be listed in the preloaded symbols.
17014 exclude_expsyms=$lt_exclude_expsyms_F77
17015
17016 # Symbols that must always be exported.
17017 include_expsyms=$lt_include_expsyms_F77
17018
17019 # ### END LIBTOOL TAG CONFIG: $tagname
17020
17021 __EOF__
17022
17023
17024 else
17025   # If there is no Makefile yet, we rely on a make rule to execute
17026   # `config.status --recheck' to rerun these tests and create the
17027   # libtool script then.
17028   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17029   if test -f "$ltmain_in"; then
17030     test -f Makefile && make "$ltmain"
17031   fi
17032 fi
17033
17034
17035 ac_ext=c
17036 ac_cpp='$CPP $CPPFLAGS'
17037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17040
17041 CC="$lt_save_CC"
17042
17043         else
17044           tagname=""
17045         fi
17046         ;;
17047
17048       GCJ)
17049         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17050
17051
17052
17053 # Source file extension for Java test sources.
17054 ac_ext=java
17055
17056 # Object file extension for compiled Java test sources.
17057 objext=o
17058 objext_GCJ=$objext
17059
17060 # Code to be used in simple compile tests
17061 lt_simple_compile_test_code="class foo {}\n"
17062
17063 # Code to be used in simple link tests
17064 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
17065
17066 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17067
17068 # If no C compiler was specified, use CC.
17069 LTCC=${LTCC-"$CC"}
17070
17071 # Allow CC to be a program name with arguments.
17072 compiler=$CC
17073
17074
17075 # Allow CC to be a program name with arguments.
17076 lt_save_CC="$CC"
17077 CC=${GCJ-"gcj"}
17078 compiler=$CC
17079 compiler_GCJ=$CC
17080
17081 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17082 archive_cmds_need_lc_GCJ=no
17083
17084
17085 lt_prog_compiler_no_builtin_flag_GCJ=
17086
17087 if test "$GCC" = yes; then
17088   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17089
17090
17091 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17092 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17093 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17094   echo $ECHO_N "(cached) $ECHO_C" >&6
17095 else
17096   lt_cv_prog_compiler_rtti_exceptions=no
17097   ac_outfile=conftest.$ac_objext
17098    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17099    lt_compiler_flag="-fno-rtti -fno-exceptions"
17100    # Insert the option either (1) after the last *FLAGS variable, or
17101    # (2) before a word containing "conftest.", or (3) at the end.
17102    # Note that $ac_compile itself does not contain backslashes and begins
17103    # with a dollar sign (not a hyphen), so the echo should work correctly.
17104    # The option is referenced via a variable to avoid confusing sed.
17105    lt_compile=`echo "$ac_compile" | $SED \
17106    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17107    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17108    -e 's:$: $lt_compiler_flag:'`
17109    (eval echo "\"\$as_me:17109: $lt_compile\"" >&5)
17110    (eval "$lt_compile" 2>conftest.err)
17111    ac_status=$?
17112    cat conftest.err >&5
17113    echo "$as_me:17113: \$? = $ac_status" >&5
17114    if (exit $ac_status) && test -s "$ac_outfile"; then
17115      # The compiler can only warn and ignore the option if not recognized
17116      # So say no if there are warnings
17117      if test ! -s conftest.err; then
17118        lt_cv_prog_compiler_rtti_exceptions=yes
17119      fi
17120    fi
17121    $rm conftest*
17122
17123 fi
17124 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17125 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17126
17127 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17128     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17129 else
17130     :
17131 fi
17132
17133 fi
17134
17135 lt_prog_compiler_wl_GCJ=
17136 lt_prog_compiler_pic_GCJ=
17137 lt_prog_compiler_static_GCJ=
17138
17139 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17140 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17141
17142   if test "$GCC" = yes; then
17143     lt_prog_compiler_wl_GCJ='-Wl,'
17144     lt_prog_compiler_static_GCJ='-static'
17145
17146     case $host_os in
17147       aix*)
17148       # All AIX code is PIC.
17149       if test "$host_cpu" = ia64; then
17150         # AIX 5 now supports IA64 processor
17151         lt_prog_compiler_static_GCJ='-Bstatic'
17152       fi
17153       ;;
17154
17155     amigaos*)
17156       # FIXME: we need at least 68020 code to build shared libraries, but
17157       # adding the `-m68020' flag to GCC prevents building anything better,
17158       # like `-m68040'.
17159       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17160       ;;
17161
17162     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17163       # PIC is the default for these OSes.
17164       ;;
17165
17166     mingw* | pw32* | os2*)
17167       # This hack is so that the source file can tell whether it is being
17168       # built for inclusion in a dll (and should export symbols for example).
17169       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17170       ;;
17171
17172     darwin* | rhapsody*)
17173       # PIC is the default on this platform
17174       # Common symbols not allowed in MH_DYLIB files
17175       lt_prog_compiler_pic_GCJ='-fno-common'
17176       ;;
17177
17178     msdosdjgpp*)
17179       # Just because we use GCC doesn't mean we suddenly get shared libraries
17180       # on systems that don't support them.
17181       lt_prog_compiler_can_build_shared_GCJ=no
17182       enable_shared=no
17183       ;;
17184
17185     sysv4*MP*)
17186       if test -d /usr/nec; then
17187         lt_prog_compiler_pic_GCJ=-Kconform_pic
17188       fi
17189       ;;
17190
17191     hpux*)
17192       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17193       # not for PA HP-UX.
17194       case "$host_cpu" in
17195       hppa*64*|ia64*)
17196         # +Z the default
17197         ;;
17198       *)
17199         lt_prog_compiler_pic_GCJ='-fPIC'
17200         ;;
17201       esac
17202       ;;
17203
17204     *)
17205       lt_prog_compiler_pic_GCJ='-fPIC'
17206       ;;
17207     esac
17208   else
17209     # PORTME Check for flag to pass linker flags through the system compiler.
17210     case $host_os in
17211     aix*)
17212       lt_prog_compiler_wl_GCJ='-Wl,'
17213       if test "$host_cpu" = ia64; then
17214         # AIX 5 now supports IA64 processor
17215         lt_prog_compiler_static_GCJ='-Bstatic'
17216       else
17217         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17218       fi
17219       ;;
17220
17221     mingw* | pw32* | os2*)
17222       # This hack is so that the source file can tell whether it is being
17223       # built for inclusion in a dll (and should export symbols for example).
17224       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17225       ;;
17226
17227     hpux9* | hpux10* | hpux11*)
17228       lt_prog_compiler_wl_GCJ='-Wl,'
17229       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17230       # not for PA HP-UX.
17231       case "$host_cpu" in
17232       hppa*64*|ia64*)
17233         # +Z the default
17234         ;;
17235       *)
17236         lt_prog_compiler_pic_GCJ='+Z'
17237         ;;
17238       esac
17239       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17240       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17241       ;;
17242
17243     irix5* | irix6* | nonstopux*)
17244       lt_prog_compiler_wl_GCJ='-Wl,'
17245       # PIC (with -KPIC) is the default.
17246       lt_prog_compiler_static_GCJ='-non_shared'
17247       ;;
17248
17249     newsos6)
17250       lt_prog_compiler_pic_GCJ='-KPIC'
17251       lt_prog_compiler_static_GCJ='-Bstatic'
17252       ;;
17253
17254     linux*)
17255       case $CC in
17256       icc* | ecc*)
17257         lt_prog_compiler_wl_GCJ='-Wl,'
17258         lt_prog_compiler_pic_GCJ='-KPIC'
17259         lt_prog_compiler_static_GCJ='-static'
17260         ;;
17261       ccc*)
17262         lt_prog_compiler_wl_GCJ='-Wl,'
17263         # All Alpha code is PIC.
17264         lt_prog_compiler_static_GCJ='-non_shared'
17265         ;;
17266       esac
17267       ;;
17268
17269     osf3* | osf4* | osf5*)
17270       lt_prog_compiler_wl_GCJ='-Wl,'
17271       # All OSF/1 code is PIC.
17272       lt_prog_compiler_static_GCJ='-non_shared'
17273       ;;
17274
17275     sco3.2v5*)
17276       lt_prog_compiler_pic_GCJ='-Kpic'
17277       lt_prog_compiler_static_GCJ='-dn'
17278       ;;
17279
17280     solaris*)
17281       lt_prog_compiler_wl_GCJ='-Wl,'
17282       lt_prog_compiler_pic_GCJ='-KPIC'
17283       lt_prog_compiler_static_GCJ='-Bstatic'
17284       ;;
17285
17286     sunos4*)
17287       lt_prog_compiler_wl_GCJ='-Qoption ld '
17288       lt_prog_compiler_pic_GCJ='-PIC'
17289       lt_prog_compiler_static_GCJ='-Bstatic'
17290       ;;
17291
17292     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17293       lt_prog_compiler_wl_GCJ='-Wl,'
17294       lt_prog_compiler_pic_GCJ='-KPIC'
17295       lt_prog_compiler_static_GCJ='-Bstatic'
17296       ;;
17297
17298     sysv4*MP*)
17299       if test -d /usr/nec ;then
17300         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17301         lt_prog_compiler_static_GCJ='-Bstatic'
17302       fi
17303       ;;
17304
17305     uts4*)
17306       lt_prog_compiler_pic_GCJ='-pic'
17307       lt_prog_compiler_static_GCJ='-Bstatic'
17308       ;;
17309
17310     *)
17311       lt_prog_compiler_can_build_shared_GCJ=no
17312       ;;
17313     esac
17314   fi
17315
17316 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17317 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
17318
17319 #
17320 # Check to make sure the PIC flag actually works.
17321 #
17322 if test -n "$lt_prog_compiler_pic_GCJ"; then
17323
17324 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17325 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17326 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17327   echo $ECHO_N "(cached) $ECHO_C" >&6
17328 else
17329   lt_prog_compiler_pic_works_GCJ=no
17330   ac_outfile=conftest.$ac_objext
17331    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17332    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17333    # Insert the option either (1) after the last *FLAGS variable, or
17334    # (2) before a word containing "conftest.", or (3) at the end.
17335    # Note that $ac_compile itself does not contain backslashes and begins
17336    # with a dollar sign (not a hyphen), so the echo should work correctly.
17337    # The option is referenced via a variable to avoid confusing sed.
17338    lt_compile=`echo "$ac_compile" | $SED \
17339    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17340    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17341    -e 's:$: $lt_compiler_flag:'`
17342    (eval echo "\"\$as_me:17342: $lt_compile\"" >&5)
17343    (eval "$lt_compile" 2>conftest.err)
17344    ac_status=$?
17345    cat conftest.err >&5
17346    echo "$as_me:17346: \$? = $ac_status" >&5
17347    if (exit $ac_status) && test -s "$ac_outfile"; then
17348      # The compiler can only warn and ignore the option if not recognized
17349      # So say no if there are warnings
17350      if test ! -s conftest.err; then
17351        lt_prog_compiler_pic_works_GCJ=yes
17352      fi
17353    fi
17354    $rm conftest*
17355
17356 fi
17357 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17358 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17359
17360 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17361     case $lt_prog_compiler_pic_GCJ in
17362      "" | " "*) ;;
17363      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17364      esac
17365 else
17366     lt_prog_compiler_pic_GCJ=
17367      lt_prog_compiler_can_build_shared_GCJ=no
17368 fi
17369
17370 fi
17371 case "$host_os" in
17372   # For platforms which do not support PIC, -DPIC is meaningless:
17373   *djgpp*)
17374     lt_prog_compiler_pic_GCJ=
17375     ;;
17376   *)
17377     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17378     ;;
17379 esac
17380
17381 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17382 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17383 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17384   echo $ECHO_N "(cached) $ECHO_C" >&6
17385 else
17386   lt_cv_prog_compiler_c_o_GCJ=no
17387    $rm -r conftest 2>/dev/null
17388    mkdir conftest
17389    cd conftest
17390    mkdir out
17391    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17392
17393    lt_compiler_flag="-o out/conftest2.$ac_objext"
17394    # Insert the option either (1) after the last *FLAGS variable, or
17395    # (2) before a word containing "conftest.", or (3) at the end.
17396    # Note that $ac_compile itself does not contain backslashes and begins
17397    # with a dollar sign (not a hyphen), so the echo should work correctly.
17398    lt_compile=`echo "$ac_compile" | $SED \
17399    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17400    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17401    -e 's:$: $lt_compiler_flag:'`
17402    (eval echo "\"\$as_me:17402: $lt_compile\"" >&5)
17403    (eval "$lt_compile" 2>out/conftest.err)
17404    ac_status=$?
17405    cat out/conftest.err >&5
17406    echo "$as_me:17406: \$? = $ac_status" >&5
17407    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17408    then
17409      # The compiler can only warn and ignore the option if not recognized
17410      # So say no if there are warnings
17411      if test ! -s out/conftest.err; then
17412        lt_cv_prog_compiler_c_o_GCJ=yes
17413      fi
17414    fi
17415    chmod u+w .
17416    $rm conftest*
17417    # SGI C++ compiler will create directory out/ii_files/ for
17418    # template instantiation
17419    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17420    $rm out/* && rmdir out
17421    cd ..
17422    rmdir conftest
17423    $rm conftest*
17424
17425 fi
17426 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17427 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17428
17429
17430 hard_links="nottested"
17431 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17432   # do not overwrite the value of need_locks provided by the user
17433   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17434 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17435   hard_links=yes
17436   $rm conftest*
17437   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17438   touch conftest.a
17439   ln conftest.a conftest.b 2>&5 || hard_links=no
17440   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17441   echo "$as_me:$LINENO: result: $hard_links" >&5
17442 echo "${ECHO_T}$hard_links" >&6
17443   if test "$hard_links" = no; then
17444     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17445 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17446     need_locks=warn
17447   fi
17448 else
17449   need_locks=no
17450 fi
17451
17452 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17453 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17454
17455   runpath_var=
17456   allow_undefined_flag_GCJ=
17457   enable_shared_with_static_runtimes_GCJ=no
17458   archive_cmds_GCJ=
17459   archive_expsym_cmds_GCJ=
17460   old_archive_From_new_cmds_GCJ=
17461   old_archive_from_expsyms_cmds_GCJ=
17462   export_dynamic_flag_spec_GCJ=
17463   whole_archive_flag_spec_GCJ=
17464   thread_safe_flag_spec_GCJ=
17465   hardcode_libdir_flag_spec_GCJ=
17466   hardcode_libdir_flag_spec_ld_GCJ=
17467   hardcode_libdir_separator_GCJ=
17468   hardcode_direct_GCJ=no
17469   hardcode_minus_L_GCJ=no
17470   hardcode_shlibpath_var_GCJ=unsupported
17471   link_all_deplibs_GCJ=unknown
17472   hardcode_automatic_GCJ=no
17473   module_cmds_GCJ=
17474   module_expsym_cmds_GCJ=
17475   always_export_symbols_GCJ=no
17476   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17477   # include_expsyms should be a list of space-separated symbols to be *always*
17478   # included in the symbol list
17479   include_expsyms_GCJ=
17480   # exclude_expsyms can be an extended regexp of symbols to exclude
17481   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17482   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17483   # as well as any symbol that contains `d'.
17484   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17485   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17486   # platforms (ab)use it in PIC code, but their linkers get confused if
17487   # the symbol is explicitly referenced.  Since portable code cannot
17488   # rely on this symbol name, it's probably fine to never include it in
17489   # preloaded symbol tables.
17490   extract_expsyms_cmds=
17491
17492   case $host_os in
17493   cygwin* | mingw* | pw32*)
17494     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17495     # When not using gcc, we currently assume that we are using
17496     # Microsoft Visual C++.
17497     if test "$GCC" != yes; then
17498       with_gnu_ld=no
17499     fi
17500     ;;
17501   openbsd*)
17502     with_gnu_ld=no
17503     ;;
17504   esac
17505
17506   ld_shlibs_GCJ=yes
17507   if test "$with_gnu_ld" = yes; then
17508     # If archive_cmds runs LD, not CC, wlarc should be empty
17509     wlarc='${wl}'
17510
17511     # See if GNU ld supports shared libraries.
17512     case $host_os in
17513     aix3* | aix4* | aix5*)
17514       # On AIX/PPC, the GNU linker is very broken
17515       if test "$host_cpu" != ia64; then
17516         ld_shlibs_GCJ=no
17517         cat <<EOF 1>&2
17518
17519 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17520 *** to be unable to reliably create shared libraries on AIX.
17521 *** Therefore, libtool is disabling shared libraries support.  If you
17522 *** really care for shared libraries, you may want to modify your PATH
17523 *** so that a non-GNU linker is found, and then restart.
17524
17525 EOF
17526       fi
17527       ;;
17528
17529     amigaos*)
17530       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)'
17531       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17532       hardcode_minus_L_GCJ=yes
17533
17534       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17535       # that the semantics of dynamic libraries on AmigaOS, at least up
17536       # to version 4, is to share data among multiple programs linked
17537       # with the same dynamic library.  Since this doesn't match the
17538       # behavior of shared libraries on other platforms, we can't use
17539       # them.
17540       ld_shlibs_GCJ=no
17541       ;;
17542
17543     beos*)
17544       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17545         allow_undefined_flag_GCJ=unsupported
17546         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17547         # support --undefined.  This deserves some investigation.  FIXME
17548         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17549       else
17550         ld_shlibs_GCJ=no
17551       fi
17552       ;;
17553
17554     cygwin* | mingw* | pw32*)
17555       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17556       # as there is no search path for DLLs.
17557       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17558       allow_undefined_flag_GCJ=unsupported
17559       always_export_symbols_GCJ=no
17560       enable_shared_with_static_runtimes_GCJ=yes
17561       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17562
17563       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17564         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17565         # If the export-symbols file already is a .def file (1st line
17566         # is EXPORTS), use it as is; otherwise, prepend...
17567         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17568           cp $export_symbols $output_objdir/$soname.def;
17569         else
17570           echo EXPORTS > $output_objdir/$soname.def;
17571           cat $export_symbols >> $output_objdir/$soname.def;
17572         fi~
17573         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
17574       else
17575         ld_shlibs=no
17576       fi
17577       ;;
17578
17579     netbsd*)
17580       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17581         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17582         wlarc=
17583       else
17584         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17585         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17586       fi
17587       ;;
17588
17589     solaris* | sysv5*)
17590       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17591         ld_shlibs_GCJ=no
17592         cat <<EOF 1>&2
17593
17594 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17595 *** create shared libraries on Solaris systems.  Therefore, libtool
17596 *** is disabling shared libraries support.  We urge you to upgrade GNU
17597 *** binutils to release 2.9.1 or newer.  Another option is to modify
17598 *** your PATH or compiler configuration so that the native linker is
17599 *** used, and then restart.
17600
17601 EOF
17602       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17603         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17604         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17605       else
17606         ld_shlibs_GCJ=no
17607       fi
17608       ;;
17609
17610     sunos4*)
17611       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17612       wlarc=
17613       hardcode_direct_GCJ=yes
17614       hardcode_shlibpath_var_GCJ=no
17615       ;;
17616
17617   linux*)
17618     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
17619         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17620         archive_cmds_GCJ="$tmp_archive_cmds"
17621       supports_anon_versioning=no
17622       case `$LD -v 2>/dev/null` in
17623         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17624         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17625         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17626         *\ 2.11.*) ;; # other 2.11 versions
17627         *) supports_anon_versioning=yes ;;
17628       esac
17629       if test $supports_anon_versioning = yes; then
17630         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17631 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17632 $echo "local: *; };" >> $output_objdir/$libname.ver~
17633         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17634       else
17635         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
17636       fi
17637     else
17638       ld_shlibs_GCJ=no
17639     fi
17640     ;;
17641
17642     *)
17643       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17644         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17645         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17646       else
17647         ld_shlibs_GCJ=no
17648       fi
17649       ;;
17650     esac
17651
17652     if test "$ld_shlibs_GCJ" = yes; then
17653       runpath_var=LD_RUN_PATH
17654       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17655       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17656       # ancient GNU ld didn't support --whole-archive et. al.
17657       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17658         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17659       else
17660         whole_archive_flag_spec_GCJ=
17661       fi
17662     fi
17663   else
17664     # PORTME fill in a description of your system's linker (not GNU ld)
17665     case $host_os in
17666     aix3*)
17667       allow_undefined_flag_GCJ=unsupported
17668       always_export_symbols_GCJ=yes
17669       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'
17670       # Note: this linker hardcodes the directories in LIBPATH if there
17671       # are no directories specified by -L.
17672       hardcode_minus_L_GCJ=yes
17673       if test "$GCC" = yes && test -z "$link_static_flag"; then
17674         # Neither direct hardcoding nor static linking is supported with a
17675         # broken collect2.
17676         hardcode_direct_GCJ=unsupported
17677       fi
17678       ;;
17679
17680     aix4* | aix5*)
17681       if test "$host_cpu" = ia64; then
17682         # On IA64, the linker does run time linking by default, so we don't
17683         # have to do anything special.
17684         aix_use_runtimelinking=no
17685         exp_sym_flag='-Bexport'
17686         no_entry_flag=""
17687       else
17688         # If we're using GNU nm, then we don't want the "-C" option.
17689         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17690         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17691           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'
17692         else
17693           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'
17694         fi
17695         aix_use_runtimelinking=no
17696
17697         # Test if we are trying to use run time linking or normal
17698         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17699         # need to do runtime linking.
17700         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17701           for ld_flag in $LDFLAGS; do
17702           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17703             aix_use_runtimelinking=yes
17704             break
17705           fi
17706           done
17707         esac
17708
17709         exp_sym_flag='-bexport'
17710         no_entry_flag='-bnoentry'
17711       fi
17712
17713       # When large executables or shared objects are built, AIX ld can
17714       # have problems creating the table of contents.  If linking a library
17715       # or program results in "error TOC overflow" add -mminimal-toc to
17716       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17717       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17718
17719       archive_cmds_GCJ=''
17720       hardcode_direct_GCJ=yes
17721       hardcode_libdir_separator_GCJ=':'
17722       link_all_deplibs_GCJ=yes
17723
17724       if test "$GCC" = yes; then
17725         case $host_os in aix4.012|aix4.012.*)
17726         # We only want to do this on AIX 4.2 and lower, the check
17727         # below for broken collect2 doesn't work under 4.3+
17728           collect2name=`${CC} -print-prog-name=collect2`
17729           if test -f "$collect2name" && \
17730            strings "$collect2name" | grep resolve_lib_name >/dev/null
17731           then
17732           # We have reworked collect2
17733           hardcode_direct_GCJ=yes
17734           else
17735           # We have old collect2
17736           hardcode_direct_GCJ=unsupported
17737           # It fails to find uninstalled libraries when the uninstalled
17738           # path is not listed in the libpath.  Setting hardcode_minus_L
17739           # to unsupported forces relinking
17740           hardcode_minus_L_GCJ=yes
17741           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17742           hardcode_libdir_separator_GCJ=
17743           fi
17744         esac
17745         shared_flag='-shared'
17746       else
17747         # not using gcc
17748         if test "$host_cpu" = ia64; then
17749         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17750         # chokes on -Wl,-G. The following line is correct:
17751           shared_flag='-G'
17752         else
17753         if test "$aix_use_runtimelinking" = yes; then
17754             shared_flag='${wl}-G'
17755           else
17756             shared_flag='${wl}-bM:SRE'
17757         fi
17758         fi
17759       fi
17760
17761       # It seems that -bexpall does not export symbols beginning with
17762       # underscore (_), so it is better to generate a list of symbols to export.
17763       always_export_symbols_GCJ=yes
17764       if test "$aix_use_runtimelinking" = yes; then
17765         # Warning - without using the other runtime loading flags (-brtl),
17766         # -berok will link without error, but may produce a broken library.
17767         allow_undefined_flag_GCJ='-berok'
17768        # Determine the default libpath from the value encoded in an empty executable.
17769        cat >conftest.$ac_ext <<_ACEOF
17770 /* confdefs.h.  */
17771 _ACEOF
17772 cat confdefs.h >>conftest.$ac_ext
17773 cat >>conftest.$ac_ext <<_ACEOF
17774 /* end confdefs.h.  */
17775
17776 int
17777 main ()
17778 {
17779
17780   ;
17781   return 0;
17782 }
17783 _ACEOF
17784 rm -f conftest.$ac_objext conftest$ac_exeext
17785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17786   (eval $ac_link) 2>conftest.er1
17787   ac_status=$?
17788   grep -v '^ *+' conftest.er1 >conftest.err
17789   rm -f conftest.er1
17790   cat conftest.err >&5
17791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792   (exit $ac_status); } &&
17793          { ac_try='test -z "$ac_c_werror_flag"
17794                          || test ! -s conftest.err'
17795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17796   (eval $ac_try) 2>&5
17797   ac_status=$?
17798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799   (exit $ac_status); }; } &&
17800          { ac_try='test -s conftest$ac_exeext'
17801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17802   (eval $ac_try) 2>&5
17803   ac_status=$?
17804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805   (exit $ac_status); }; }; then
17806
17807 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17808 }'`
17809 # Check for a 64-bit object if we didn't find anything.
17810 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; }
17811 }'`; fi
17812 else
17813   echo "$as_me: failed program was:" >&5
17814 sed 's/^/| /' conftest.$ac_ext >&5
17815
17816 fi
17817 rm -f conftest.err conftest.$ac_objext \
17818       conftest$ac_exeext conftest.$ac_ext
17819 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17820
17821        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17822         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"
17823        else
17824         if test "$host_cpu" = ia64; then
17825           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17826           allow_undefined_flag_GCJ="-z nodefs"
17827           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"
17828         else
17829          # Determine the default libpath from the value encoded in an empty executable.
17830          cat >conftest.$ac_ext <<_ACEOF
17831 /* confdefs.h.  */
17832 _ACEOF
17833 cat confdefs.h >>conftest.$ac_ext
17834 cat >>conftest.$ac_ext <<_ACEOF
17835 /* end confdefs.h.  */
17836
17837 int
17838 main ()
17839 {
17840
17841   ;
17842   return 0;
17843 }
17844 _ACEOF
17845 rm -f conftest.$ac_objext conftest$ac_exeext
17846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17847   (eval $ac_link) 2>conftest.er1
17848   ac_status=$?
17849   grep -v '^ *+' conftest.er1 >conftest.err
17850   rm -f conftest.er1
17851   cat conftest.err >&5
17852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853   (exit $ac_status); } &&
17854          { ac_try='test -z "$ac_c_werror_flag"
17855                          || test ! -s conftest.err'
17856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17857   (eval $ac_try) 2>&5
17858   ac_status=$?
17859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860   (exit $ac_status); }; } &&
17861          { ac_try='test -s conftest$ac_exeext'
17862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17863   (eval $ac_try) 2>&5
17864   ac_status=$?
17865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866   (exit $ac_status); }; }; then
17867
17868 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17869 }'`
17870 # Check for a 64-bit object if we didn't find anything.
17871 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; }
17872 }'`; fi
17873 else
17874   echo "$as_me: failed program was:" >&5
17875 sed 's/^/| /' conftest.$ac_ext >&5
17876
17877 fi
17878 rm -f conftest.err conftest.$ac_objext \
17879       conftest$ac_exeext conftest.$ac_ext
17880 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17881
17882          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17883           # Warning - without using the other run time loading flags,
17884           # -berok will link without error, but may produce a broken library.
17885           no_undefined_flag_GCJ=' ${wl}-bernotok'
17886           allow_undefined_flag_GCJ=' ${wl}-berok'
17887           # -bexpall does not export symbols beginning with underscore (_)
17888           always_export_symbols_GCJ=yes
17889           # Exported symbols can be pulled into shared objects from archives
17890           whole_archive_flag_spec_GCJ=' '
17891           archive_cmds_need_lc_GCJ=yes
17892           # This is similar to how AIX traditionally builds it's shared libraries.
17893           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'
17894         fi
17895       fi
17896       ;;
17897
17898     amigaos*)
17899       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)'
17900       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17901       hardcode_minus_L_GCJ=yes
17902       # see comment about different semantics on the GNU ld section
17903       ld_shlibs_GCJ=no
17904       ;;
17905
17906     bsdi4*)
17907       export_dynamic_flag_spec_GCJ=-rdynamic
17908       ;;
17909
17910     cygwin* | mingw* | pw32*)
17911       # When not using gcc, we currently assume that we are using
17912       # Microsoft Visual C++.
17913       # hardcode_libdir_flag_spec is actually meaningless, as there is
17914       # no search path for DLLs.
17915       hardcode_libdir_flag_spec_GCJ=' '
17916       allow_undefined_flag_GCJ=unsupported
17917       # Tell ltmain to make .lib files, not .a files.
17918       libext=lib
17919       # Tell ltmain to make .dll files, not .so files.
17920       shrext=".dll"
17921       # FIXME: Setting linknames here is a bad hack.
17922       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17923       # The linker will automatically build a .lib file if we build a DLL.
17924       old_archive_From_new_cmds_GCJ='true'
17925       # FIXME: Should let the user specify the lib program.
17926       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17927       fix_srcfile_path='`cygpath -w "$srcfile"`'
17928       enable_shared_with_static_runtimes_GCJ=yes
17929       ;;
17930
17931     darwin* | rhapsody*)
17932     if test "$GXX" = yes ; then
17933       archive_cmds_need_lc_GCJ=no
17934       case "$host_os" in
17935       rhapsody* | darwin1.[012])
17936         allow_undefined_flag_GCJ='-undefined suppress'
17937         ;;
17938       *) # Darwin 1.3 on
17939       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17940         allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
17941       else
17942         case ${MACOSX_DEPLOYMENT_TARGET} in
17943           10.[012])
17944             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
17945             ;;
17946           10.*)
17947             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
17948             ;;
17949         esac
17950       fi
17951         ;;
17952       esac
17953         lt_int_apple_cc_single_mod=no
17954         output_verbose_link_cmd='echo'
17955         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
17956           lt_int_apple_cc_single_mod=yes
17957         fi
17958         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17959           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17960         else
17961         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'
17962       fi
17963       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17964       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17965         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17966           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}'
17967         else
17968           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}'
17969         fi
17970           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}'
17971       hardcode_direct_GCJ=no
17972       hardcode_automatic_GCJ=yes
17973       hardcode_shlibpath_var_GCJ=unsupported
17974       whole_archive_flag_spec_GCJ='-all_load $convenience'
17975       link_all_deplibs_GCJ=yes
17976     else
17977       ld_shlibs_GCJ=no
17978     fi
17979       ;;
17980
17981     dgux*)
17982       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17983       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17984       hardcode_shlibpath_var_GCJ=no
17985       ;;
17986
17987     freebsd1*)
17988       ld_shlibs_GCJ=no
17989       ;;
17990
17991     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17992     # support.  Future versions do this automatically, but an explicit c++rt0.o
17993     # does not break anything, and helps significantly (at the cost of a little
17994     # extra space).
17995     freebsd2.2*)
17996       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17997       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17998       hardcode_direct_GCJ=yes
17999       hardcode_shlibpath_var_GCJ=no
18000       ;;
18001
18002     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18003     freebsd2*)
18004       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18005       hardcode_direct_GCJ=yes
18006       hardcode_minus_L_GCJ=yes
18007       hardcode_shlibpath_var_GCJ=no
18008       ;;
18009
18010     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18011     freebsd* | kfreebsd*-gnu)
18012       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18013       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18014       hardcode_direct_GCJ=yes
18015       hardcode_shlibpath_var_GCJ=no
18016       ;;
18017
18018     hpux9*)
18019       if test "$GCC" = yes; then
18020         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'
18021       else
18022         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'
18023       fi
18024       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18025       hardcode_libdir_separator_GCJ=:
18026       hardcode_direct_GCJ=yes
18027
18028       # hardcode_minus_L: Not really in the search PATH,
18029       # but as the default location of the library.
18030       hardcode_minus_L_GCJ=yes
18031       export_dynamic_flag_spec_GCJ='${wl}-E'
18032       ;;
18033
18034     hpux10* | hpux11*)
18035       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18036         case "$host_cpu" in
18037         hppa*64*|ia64*)
18038           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18039           ;;
18040         *)
18041           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18042           ;;
18043         esac
18044       else
18045         case "$host_cpu" in
18046         hppa*64*|ia64*)
18047           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
18048           ;;
18049         *)
18050           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18051           ;;
18052         esac
18053       fi
18054       if test "$with_gnu_ld" = no; then
18055         case "$host_cpu" in
18056         hppa*64*)
18057           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18058           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18059           hardcode_libdir_separator_GCJ=:
18060           hardcode_direct_GCJ=no
18061           hardcode_shlibpath_var_GCJ=no
18062           ;;
18063         ia64*)
18064           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18065           hardcode_direct_GCJ=no
18066           hardcode_shlibpath_var_GCJ=no
18067
18068           # hardcode_minus_L: Not really in the search PATH,
18069           # but as the default location of the library.
18070           hardcode_minus_L_GCJ=yes
18071           ;;
18072         *)
18073           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18074           hardcode_libdir_separator_GCJ=:
18075           hardcode_direct_GCJ=yes
18076           export_dynamic_flag_spec_GCJ='${wl}-E'
18077
18078           # hardcode_minus_L: Not really in the search PATH,
18079           # but as the default location of the library.
18080           hardcode_minus_L_GCJ=yes
18081           ;;
18082         esac
18083       fi
18084       ;;
18085
18086     irix5* | irix6* | nonstopux*)
18087       if test "$GCC" = yes; then
18088         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'
18089       else
18090         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'
18091         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18092       fi
18093       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18094       hardcode_libdir_separator_GCJ=:
18095       link_all_deplibs_GCJ=yes
18096       ;;
18097
18098     netbsd*)
18099       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18100         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18101       else
18102         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18103       fi
18104       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18105       hardcode_direct_GCJ=yes
18106       hardcode_shlibpath_var_GCJ=no
18107       ;;
18108
18109     newsos6)
18110       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18111       hardcode_direct_GCJ=yes
18112       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18113       hardcode_libdir_separator_GCJ=:
18114       hardcode_shlibpath_var_GCJ=no
18115       ;;
18116
18117     openbsd*)
18118       hardcode_direct_GCJ=yes
18119       hardcode_shlibpath_var_GCJ=no
18120       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18121         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18122         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18123         export_dynamic_flag_spec_GCJ='${wl}-E'
18124       else
18125        case $host_os in
18126          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18127            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18128            hardcode_libdir_flag_spec_GCJ='-R$libdir'
18129            ;;
18130          *)
18131            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18132            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18133            ;;
18134        esac
18135       fi
18136       ;;
18137
18138     os2*)
18139       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18140       hardcode_minus_L_GCJ=yes
18141       allow_undefined_flag_GCJ=unsupported
18142       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'
18143       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18144       ;;
18145
18146     osf3*)
18147       if test "$GCC" = yes; then
18148         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18149         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'
18150       else
18151         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18152         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'
18153       fi
18154       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18155       hardcode_libdir_separator_GCJ=:
18156       ;;
18157
18158     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18159       if test "$GCC" = yes; then
18160         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18161         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'
18162         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18163       else
18164         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18165         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'
18166         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~
18167         $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'
18168
18169         # Both c and cxx compiler support -rpath directly
18170         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18171       fi
18172       hardcode_libdir_separator_GCJ=:
18173       ;;
18174
18175     sco3.2v5*)
18176       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18177       hardcode_shlibpath_var_GCJ=no
18178       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18179       runpath_var=LD_RUN_PATH
18180       hardcode_runpath_var=yes
18181       ;;
18182
18183     solaris*)
18184       no_undefined_flag_GCJ=' -z text'
18185       if test "$GCC" = yes; then
18186         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18187         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18188           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18189       else
18190         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18191         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18192         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18193       fi
18194       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18195       hardcode_shlibpath_var_GCJ=no
18196       case $host_os in
18197       solaris2.[0-5] | solaris2.[0-5].*) ;;
18198       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
18199         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18200       esac
18201       link_all_deplibs_GCJ=yes
18202       ;;
18203
18204     sunos4*)
18205       if test "x$host_vendor" = xsequent; then
18206         # Use $CC to link under sequent, because it throws in some extra .o
18207         # files that make .init and .fini sections work.
18208         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18209       else
18210         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18211       fi
18212       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18213       hardcode_direct_GCJ=yes
18214       hardcode_minus_L_GCJ=yes
18215       hardcode_shlibpath_var_GCJ=no
18216       ;;
18217
18218     sysv4)
18219       case $host_vendor in
18220         sni)
18221           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18222           hardcode_direct_GCJ=yes # is this really true???
18223         ;;
18224         siemens)
18225           ## LD is ld it makes a PLAMLIB
18226           ## CC just makes a GrossModule.
18227           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18228           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18229           hardcode_direct_GCJ=no
18230         ;;
18231         motorola)
18232           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18233           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18234         ;;
18235       esac
18236       runpath_var='LD_RUN_PATH'
18237       hardcode_shlibpath_var_GCJ=no
18238       ;;
18239
18240     sysv4.3*)
18241       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18242       hardcode_shlibpath_var_GCJ=no
18243       export_dynamic_flag_spec_GCJ='-Bexport'
18244       ;;
18245
18246     sysv4*MP*)
18247       if test -d /usr/nec; then
18248         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18249         hardcode_shlibpath_var_GCJ=no
18250         runpath_var=LD_RUN_PATH
18251         hardcode_runpath_var=yes
18252         ld_shlibs_GCJ=yes
18253       fi
18254       ;;
18255
18256     sysv4.2uw2*)
18257       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18258       hardcode_direct_GCJ=yes
18259       hardcode_minus_L_GCJ=no
18260       hardcode_shlibpath_var_GCJ=no
18261       hardcode_runpath_var=yes
18262       runpath_var=LD_RUN_PATH
18263       ;;
18264
18265    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
18266       no_undefined_flag_GCJ='${wl}-z ${wl}text'
18267       if test "$GCC" = yes; then
18268         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18269       else
18270         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18271       fi
18272       runpath_var='LD_RUN_PATH'
18273       hardcode_shlibpath_var_GCJ=no
18274       ;;
18275
18276     sysv5*)
18277       no_undefined_flag_GCJ=' -z text'
18278       # $CC -shared without GNU ld will not create a library from C++
18279       # object files and a static libstdc++, better avoid it by now
18280       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18281       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18282                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18283       hardcode_libdir_flag_spec_GCJ=
18284       hardcode_shlibpath_var_GCJ=no
18285       runpath_var='LD_RUN_PATH'
18286       ;;
18287
18288     uts4*)
18289       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18290       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18291       hardcode_shlibpath_var_GCJ=no
18292       ;;
18293
18294     *)
18295       ld_shlibs_GCJ=no
18296       ;;
18297     esac
18298   fi
18299
18300 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18301 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18302 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18303
18304 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18305 if test "$GCC" = yes; then
18306   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18307 fi
18308
18309 #
18310 # Do we need to explicitly link libc?
18311 #
18312 case "x$archive_cmds_need_lc_GCJ" in
18313 x|xyes)
18314   # Assume -lc should be added
18315   archive_cmds_need_lc_GCJ=yes
18316
18317   if test "$enable_shared" = yes && test "$GCC" = yes; then
18318     case $archive_cmds_GCJ in
18319     *'~'*)
18320       # FIXME: we may have to deal with multi-command sequences.
18321       ;;
18322     '$CC '*)
18323       # Test whether the compiler implicitly links with -lc since on some
18324       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18325       # to ld, don't add -lc before -lgcc.
18326       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18327 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18328       $rm conftest*
18329       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18330
18331       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18332   (eval $ac_compile) 2>&5
18333   ac_status=$?
18334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335   (exit $ac_status); } 2>conftest.err; then
18336         soname=conftest
18337         lib=conftest
18338         libobjs=conftest.$ac_objext
18339         deplibs=
18340         wl=$lt_prog_compiler_wl_GCJ
18341         compiler_flags=-v
18342         linker_flags=-v
18343         verstring=
18344         output_objdir=.
18345         libname=conftest
18346         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18347         allow_undefined_flag_GCJ=
18348         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18349   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18350   ac_status=$?
18351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352   (exit $ac_status); }
18353         then
18354           archive_cmds_need_lc_GCJ=no
18355         else
18356           archive_cmds_need_lc_GCJ=yes
18357         fi
18358         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18359       else
18360         cat conftest.err 1>&5
18361       fi
18362       $rm conftest*
18363       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18364 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18365       ;;
18366     esac
18367   fi
18368   ;;
18369 esac
18370
18371 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18372 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18373 library_names_spec=
18374 libname_spec='lib$name'
18375 soname_spec=
18376 shrext=".so"
18377 postinstall_cmds=
18378 postuninstall_cmds=
18379 finish_cmds=
18380 finish_eval=
18381 shlibpath_var=
18382 shlibpath_overrides_runpath=unknown
18383 version_type=none
18384 dynamic_linker="$host_os ld.so"
18385 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18386 if test "$GCC" = yes; then
18387   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18388   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18389     # if the path contains ";" then we assume it to be the separator
18390     # otherwise default to the standard path separator (i.e. ":") - it is
18391     # assumed that no part of a normal pathname contains ";" but that should
18392     # okay in the real world where ";" in dirpaths is itself problematic.
18393     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18394   else
18395     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18396   fi
18397 else
18398   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18399 fi
18400 need_lib_prefix=unknown
18401 hardcode_into_libs=no
18402
18403 # when you set need_version to no, make sure it does not cause -set_version
18404 # flags to be left without arguments
18405 need_version=unknown
18406
18407 case $host_os in
18408 aix3*)
18409   version_type=linux
18410   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18411   shlibpath_var=LIBPATH
18412
18413   # AIX 3 has no versioning support, so we append a major version to the name.
18414   soname_spec='${libname}${release}${shared_ext}$major'
18415   ;;
18416
18417 aix4* | aix5*)
18418   version_type=linux
18419   need_lib_prefix=no
18420   need_version=no
18421   hardcode_into_libs=yes
18422   if test "$host_cpu" = ia64; then
18423     # AIX 5 supports IA64
18424     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18425     shlibpath_var=LD_LIBRARY_PATH
18426   else
18427     # With GCC up to 2.95.x, collect2 would create an import file
18428     # for dependence libraries.  The import file would start with
18429     # the line `#! .'.  This would cause the generated library to
18430     # depend on `.', always an invalid library.  This was fixed in
18431     # development snapshots of GCC prior to 3.0.
18432     case $host_os in
18433       aix4 | aix4.[01] | aix4.[01].*)
18434       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18435            echo ' yes '
18436            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18437         :
18438       else
18439         can_build_shared=no
18440       fi
18441       ;;
18442     esac
18443     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18444     # soname into executable. Probably we can add versioning support to
18445     # collect2, so additional links can be useful in future.
18446     if test "$aix_use_runtimelinking" = yes; then
18447       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18448       # instead of lib<name>.a to let people know that these are not
18449       # typical AIX shared libraries.
18450       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18451     else
18452       # We preserve .a as extension for shared libraries through AIX4.2
18453       # and later when we are not doing run time linking.
18454       library_names_spec='${libname}${release}.a $libname.a'
18455       soname_spec='${libname}${release}${shared_ext}$major'
18456     fi
18457     shlibpath_var=LIBPATH
18458   fi
18459   ;;
18460
18461 amigaos*)
18462   library_names_spec='$libname.ixlibrary $libname.a'
18463   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18464   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'
18465   ;;
18466
18467 beos*)
18468   library_names_spec='${libname}${shared_ext}'
18469   dynamic_linker="$host_os ld.so"
18470   shlibpath_var=LIBRARY_PATH
18471   ;;
18472
18473 bsdi4*)
18474   version_type=linux
18475   need_version=no
18476   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18477   soname_spec='${libname}${release}${shared_ext}$major'
18478   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18479   shlibpath_var=LD_LIBRARY_PATH
18480   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18481   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18482   # the default ld.so.conf also contains /usr/contrib/lib and
18483   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18484   # libtool to hard-code these into programs
18485   ;;
18486
18487 cygwin* | mingw* | pw32*)
18488   version_type=windows
18489   shrext=".dll"
18490   need_version=no
18491   need_lib_prefix=no
18492
18493   case $GCC,$host_os in
18494   yes,cygwin* | yes,mingw* | yes,pw32*)
18495     library_names_spec='$libname.dll.a'
18496     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18497     postinstall_cmds='base_file=`basename \${file}`~
18498       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18499       dldir=$destdir/`dirname \$dlpath`~
18500       test -d \$dldir || mkdir -p \$dldir~
18501       $install_prog $dir/$dlname \$dldir/$dlname'
18502     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18503       dlpath=$dir/\$dldll~
18504        $rm \$dlpath'
18505     shlibpath_overrides_runpath=yes
18506
18507     case $host_os in
18508     cygwin*)
18509       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18510       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18511       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18512       ;;
18513     mingw*)
18514       # MinGW DLLs use traditional 'lib' prefix
18515       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18516       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18517       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18518         # It is most probably a Windows format PATH printed by
18519         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18520         # path with ; separators, and with drive letters. We can handle the
18521         # drive letters (cygwin fileutils understands them), so leave them,
18522         # especially as we might pass files found there to a mingw objdump,
18523         # which wouldn't understand a cygwinified path. Ahh.
18524         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18525       else
18526         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18527       fi
18528       ;;
18529     pw32*)
18530       # pw32 DLLs use 'pw' prefix rather than 'lib'
18531       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
18532       ;;
18533     esac
18534     ;;
18535
18536   *)
18537     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18538     ;;
18539   esac
18540   dynamic_linker='Win32 ld.exe'
18541   # FIXME: first we should search . and the directory the executable is in
18542   shlibpath_var=PATH
18543   ;;
18544
18545 darwin* | rhapsody*)
18546   dynamic_linker="$host_os dyld"
18547   version_type=darwin
18548   need_lib_prefix=no
18549   need_version=no
18550   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18551   soname_spec='${libname}${release}${major}$shared_ext'
18552   shlibpath_overrides_runpath=yes
18553   shlibpath_var=DYLD_LIBRARY_PATH
18554   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
18555   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18556   if test "$GCC" = yes; then
18557     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"`
18558   else
18559     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18560   fi
18561   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18562   ;;
18563
18564 dgux*)
18565   version_type=linux
18566   need_lib_prefix=no
18567   need_version=no
18568   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18569   soname_spec='${libname}${release}${shared_ext}$major'
18570   shlibpath_var=LD_LIBRARY_PATH
18571   ;;
18572
18573 freebsd1*)
18574   dynamic_linker=no
18575   ;;
18576
18577 kfreebsd*-gnu)
18578   version_type=linux
18579   need_lib_prefix=no
18580   need_version=no
18581   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18582   soname_spec='${libname}${release}${shared_ext}$major'
18583   shlibpath_var=LD_LIBRARY_PATH
18584   shlibpath_overrides_runpath=no
18585   hardcode_into_libs=yes
18586   dynamic_linker='GNU ld.so'
18587   ;;
18588
18589 freebsd*)
18590   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18591   version_type=freebsd-$objformat
18592   case $version_type in
18593     freebsd-elf*)
18594       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18595       need_version=no
18596       need_lib_prefix=no
18597       ;;
18598     freebsd-*)
18599       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18600       need_version=yes
18601       ;;
18602   esac
18603   shlibpath_var=LD_LIBRARY_PATH
18604   case $host_os in
18605   freebsd2*)
18606     shlibpath_overrides_runpath=yes
18607     ;;
18608   freebsd3.01* | freebsdelf3.01*)
18609     shlibpath_overrides_runpath=yes
18610     hardcode_into_libs=yes
18611     ;;
18612   *) # from 3.2 on
18613     shlibpath_overrides_runpath=no
18614     hardcode_into_libs=yes
18615     ;;
18616   esac
18617   ;;
18618
18619 gnu*)
18620   version_type=linux
18621   need_lib_prefix=no
18622   need_version=no
18623   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18624   soname_spec='${libname}${release}${shared_ext}$major'
18625   shlibpath_var=LD_LIBRARY_PATH
18626   hardcode_into_libs=yes
18627   ;;
18628
18629 hpux9* | hpux10* | hpux11*)
18630   # Give a soname corresponding to the major version so that dld.sl refuses to
18631   # link against other versions.
18632   version_type=sunos
18633   need_lib_prefix=no
18634   need_version=no
18635   case "$host_cpu" in
18636   ia64*)
18637     shrext='.so'
18638     hardcode_into_libs=yes
18639     dynamic_linker="$host_os dld.so"
18640     shlibpath_var=LD_LIBRARY_PATH
18641     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18642     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18643     soname_spec='${libname}${release}${shared_ext}$major'
18644     if test "X$HPUX_IA64_MODE" = X32; then
18645       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18646     else
18647       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18648     fi
18649     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18650     ;;
18651    hppa*64*)
18652      shrext='.sl'
18653      hardcode_into_libs=yes
18654      dynamic_linker="$host_os dld.sl"
18655      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18656      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18657      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18658      soname_spec='${libname}${release}${shared_ext}$major'
18659      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18660      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18661      ;;
18662    *)
18663     shrext='.sl'
18664     dynamic_linker="$host_os dld.sl"
18665     shlibpath_var=SHLIB_PATH
18666     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18667     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18668     soname_spec='${libname}${release}${shared_ext}$major'
18669     ;;
18670   esac
18671   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18672   postinstall_cmds='chmod 555 $lib'
18673   ;;
18674
18675 irix5* | irix6* | nonstopux*)
18676   case $host_os in
18677     nonstopux*) version_type=nonstopux ;;
18678     *)
18679         if test "$lt_cv_prog_gnu_ld" = yes; then
18680                 version_type=linux
18681         else
18682                 version_type=irix
18683         fi ;;
18684   esac
18685   need_lib_prefix=no
18686   need_version=no
18687   soname_spec='${libname}${release}${shared_ext}$major'
18688   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18689   case $host_os in
18690   irix5* | nonstopux*)
18691     libsuff= shlibsuff=
18692     ;;
18693   *)
18694     case $LD in # libtool.m4 will add one of these switches to LD
18695     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18696       libsuff= shlibsuff= libmagic=32-bit;;
18697     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18698       libsuff=32 shlibsuff=N32 libmagic=N32;;
18699     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18700       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18701     *) libsuff= shlibsuff= libmagic=never-match;;
18702     esac
18703     ;;
18704   esac
18705   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18706   shlibpath_overrides_runpath=no
18707   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18708   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18709   hardcode_into_libs=yes
18710   ;;
18711
18712 # No shared lib support for Linux oldld, aout, or coff.
18713 linux*oldld* | linux*aout* | linux*coff*)
18714   dynamic_linker=no
18715   ;;
18716
18717 # This must be Linux ELF.
18718 linux*)
18719   version_type=linux
18720   need_lib_prefix=no
18721   need_version=no
18722   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18723   soname_spec='${libname}${release}${shared_ext}$major'
18724   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18725   shlibpath_var=LD_LIBRARY_PATH
18726   shlibpath_overrides_runpath=no
18727   # This implies no fast_install, which is unacceptable.
18728   # Some rework will be needed to allow for fast_install
18729   # before this can be enabled.
18730   hardcode_into_libs=yes
18731
18732   # Append ld.so.conf contents to the search path
18733   if test -f /etc/ld.so.conf; then
18734     ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
18735     sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
18736   fi
18737
18738   # We used to test for /lib/ld.so.1 and disable shared libraries on
18739   # powerpc, because MkLinux only supported shared libraries with the
18740   # GNU dynamic linker.  Since this was broken with cross compilers,
18741   # most powerpc-linux boxes support dynamic linking these days and
18742   # people can always --disable-shared, the test was removed, and we
18743   # assume the GNU/Linux dynamic linker is in use.
18744   dynamic_linker='GNU/Linux ld.so'
18745   ;;
18746
18747 knetbsd*-gnu)
18748   version_type=linux
18749   need_lib_prefix=no
18750   need_version=no
18751   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18752   soname_spec='${libname}${release}${shared_ext}$major'
18753   shlibpath_var=LD_LIBRARY_PATH
18754   shlibpath_overrides_runpath=no
18755   hardcode_into_libs=yes
18756   dynamic_linker='GNU ld.so'
18757   ;;
18758
18759 netbsd*)
18760   version_type=sunos
18761   need_lib_prefix=no
18762   need_version=no
18763   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18764     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18765     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18766     dynamic_linker='NetBSD (a.out) ld.so'
18767   else
18768     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18769     soname_spec='${libname}${release}${shared_ext}$major'
18770     dynamic_linker='NetBSD ld.elf_so'
18771   fi
18772   shlibpath_var=LD_LIBRARY_PATH
18773   shlibpath_overrides_runpath=yes
18774   hardcode_into_libs=yes
18775   ;;
18776
18777 newsos6)
18778   version_type=linux
18779   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18780   shlibpath_var=LD_LIBRARY_PATH
18781   shlibpath_overrides_runpath=yes
18782   ;;
18783
18784 nto-qnx*)
18785   version_type=linux
18786   need_lib_prefix=no
18787   need_version=no
18788   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18789   soname_spec='${libname}${release}${shared_ext}$major'
18790   shlibpath_var=LD_LIBRARY_PATH
18791   shlibpath_overrides_runpath=yes
18792   ;;
18793
18794 openbsd*)
18795   version_type=sunos
18796   need_lib_prefix=no
18797   need_version=yes
18798   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18799   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18800   shlibpath_var=LD_LIBRARY_PATH
18801   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18802     case $host_os in
18803       openbsd2.[89] | openbsd2.[89].*)
18804         shlibpath_overrides_runpath=no
18805         ;;
18806       *)
18807         shlibpath_overrides_runpath=yes
18808         ;;
18809       esac
18810   else
18811     shlibpath_overrides_runpath=yes
18812   fi
18813   ;;
18814
18815 os2*)
18816   libname_spec='$name'
18817   shrext=".dll"
18818   need_lib_prefix=no
18819   library_names_spec='$libname${shared_ext} $libname.a'
18820   dynamic_linker='OS/2 ld.exe'
18821   shlibpath_var=LIBPATH
18822   ;;
18823
18824 osf3* | osf4* | osf5*)
18825   version_type=osf
18826   need_lib_prefix=no
18827   need_version=no
18828   soname_spec='${libname}${release}${shared_ext}$major'
18829   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18830   shlibpath_var=LD_LIBRARY_PATH
18831   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18832   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18833   ;;
18834
18835 sco3.2v5*)
18836   version_type=osf
18837   soname_spec='${libname}${release}${shared_ext}$major'
18838   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18839   shlibpath_var=LD_LIBRARY_PATH
18840   ;;
18841
18842 solaris*)
18843   version_type=linux
18844   need_lib_prefix=no
18845   need_version=no
18846   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18847   soname_spec='${libname}${release}${shared_ext}$major'
18848   shlibpath_var=LD_LIBRARY_PATH
18849   shlibpath_overrides_runpath=yes
18850   hardcode_into_libs=yes
18851   # ldd complains unless libraries are executable
18852   postinstall_cmds='chmod +x $lib'
18853   ;;
18854
18855 sunos4*)
18856   version_type=sunos
18857   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18858   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18859   shlibpath_var=LD_LIBRARY_PATH
18860   shlibpath_overrides_runpath=yes
18861   if test "$with_gnu_ld" = yes; then
18862     need_lib_prefix=no
18863   fi
18864   need_version=yes
18865   ;;
18866
18867 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18868   version_type=linux
18869   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18870   soname_spec='${libname}${release}${shared_ext}$major'
18871   shlibpath_var=LD_LIBRARY_PATH
18872   case $host_vendor in
18873     sni)
18874       shlibpath_overrides_runpath=no
18875       need_lib_prefix=no
18876       export_dynamic_flag_spec='${wl}-Blargedynsym'
18877       runpath_var=LD_RUN_PATH
18878       ;;
18879     siemens)
18880       need_lib_prefix=no
18881       ;;
18882     motorola)
18883       need_lib_prefix=no
18884       need_version=no
18885       shlibpath_overrides_runpath=no
18886       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18887       ;;
18888   esac
18889   ;;
18890
18891 sysv4*MP*)
18892   if test -d /usr/nec ;then
18893     version_type=linux
18894     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18895     soname_spec='$libname${shared_ext}.$major'
18896     shlibpath_var=LD_LIBRARY_PATH
18897   fi
18898   ;;
18899
18900 uts4*)
18901   version_type=linux
18902   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18903   soname_spec='${libname}${release}${shared_ext}$major'
18904   shlibpath_var=LD_LIBRARY_PATH
18905   ;;
18906
18907 *)
18908   dynamic_linker=no
18909   ;;
18910 esac
18911 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18912 echo "${ECHO_T}$dynamic_linker" >&6
18913 test "$dynamic_linker" = no && can_build_shared=no
18914
18915 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18916 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18917 hardcode_action_GCJ=
18918 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18919    test -n "$runpath_var GCJ" || \
18920    test "X$hardcode_automatic_GCJ"="Xyes" ; then
18921
18922   # We can hardcode non-existant directories.
18923   if test "$hardcode_direct_GCJ" != no &&
18924      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18925      # have to relink, otherwise we might link with an installed library
18926      # when we should be linking with a yet-to-be-installed one
18927      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18928      test "$hardcode_minus_L_GCJ" != no; then
18929     # Linking always hardcodes the temporary library directory.
18930     hardcode_action_GCJ=relink
18931   else
18932     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18933     hardcode_action_GCJ=immediate
18934   fi
18935 else
18936   # We cannot hardcode anything, or else we can only hardcode existing
18937   # directories.
18938   hardcode_action_GCJ=unsupported
18939 fi
18940 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18941 echo "${ECHO_T}$hardcode_action_GCJ" >&6
18942
18943 if test "$hardcode_action_GCJ" = relink; then
18944   # Fast installation is not supported
18945   enable_fast_install=no
18946 elif test "$shlibpath_overrides_runpath" = yes ||
18947      test "$enable_shared" = no; then
18948   # Fast installation is not necessary
18949   enable_fast_install=needless
18950 fi
18951
18952 striplib=
18953 old_striplib=
18954 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18955 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18956 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18957   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18958   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18959   echo "$as_me:$LINENO: result: yes" >&5
18960 echo "${ECHO_T}yes" >&6
18961 else
18962 # FIXME - insert some real tests, host_os isn't really good enough
18963   case $host_os in
18964    darwin*)
18965        if test -n "$STRIP" ; then
18966          striplib="$STRIP -x"
18967          echo "$as_me:$LINENO: result: yes" >&5
18968 echo "${ECHO_T}yes" >&6
18969        else
18970   echo "$as_me:$LINENO: result: no" >&5
18971 echo "${ECHO_T}no" >&6
18972 fi
18973        ;;
18974    *)
18975   echo "$as_me:$LINENO: result: no" >&5
18976 echo "${ECHO_T}no" >&6
18977     ;;
18978   esac
18979 fi
18980
18981 if test "x$enable_dlopen" != xyes; then
18982   enable_dlopen=unknown
18983   enable_dlopen_self=unknown
18984   enable_dlopen_self_static=unknown
18985 else
18986   lt_cv_dlopen=no
18987   lt_cv_dlopen_libs=
18988
18989   case $host_os in
18990   beos*)
18991     lt_cv_dlopen="load_add_on"
18992     lt_cv_dlopen_libs=
18993     lt_cv_dlopen_self=yes
18994     ;;
18995
18996   mingw* | pw32*)
18997     lt_cv_dlopen="LoadLibrary"
18998     lt_cv_dlopen_libs=
18999    ;;
19000
19001   cygwin*)
19002     lt_cv_dlopen="dlopen"
19003     lt_cv_dlopen_libs=
19004    ;;
19005
19006   darwin*)
19007   # if libdl is installed we need to link against it
19008     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19009 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19010 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19011   echo $ECHO_N "(cached) $ECHO_C" >&6
19012 else
19013   ac_check_lib_save_LIBS=$LIBS
19014 LIBS="-ldl  $LIBS"
19015 cat >conftest.$ac_ext <<_ACEOF
19016 /* confdefs.h.  */
19017 _ACEOF
19018 cat confdefs.h >>conftest.$ac_ext
19019 cat >>conftest.$ac_ext <<_ACEOF
19020 /* end confdefs.h.  */
19021
19022 /* Override any gcc2 internal prototype to avoid an error.  */
19023 #ifdef __cplusplus
19024 extern "C"
19025 #endif
19026 /* We use char because int might match the return type of a gcc2
19027    builtin and then its argument prototype would still apply.  */
19028 char dlopen ();
19029 int
19030 main ()
19031 {
19032 dlopen ();
19033   ;
19034   return 0;
19035 }
19036 _ACEOF
19037 rm -f conftest.$ac_objext conftest$ac_exeext
19038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19039   (eval $ac_link) 2>conftest.er1
19040   ac_status=$?
19041   grep -v '^ *+' conftest.er1 >conftest.err
19042   rm -f conftest.er1
19043   cat conftest.err >&5
19044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19045   (exit $ac_status); } &&
19046          { ac_try='test -z "$ac_c_werror_flag"
19047                          || test ! -s conftest.err'
19048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19049   (eval $ac_try) 2>&5
19050   ac_status=$?
19051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19052   (exit $ac_status); }; } &&
19053          { ac_try='test -s conftest$ac_exeext'
19054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19055   (eval $ac_try) 2>&5
19056   ac_status=$?
19057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058   (exit $ac_status); }; }; then
19059   ac_cv_lib_dl_dlopen=yes
19060 else
19061   echo "$as_me: failed program was:" >&5
19062 sed 's/^/| /' conftest.$ac_ext >&5
19063
19064 ac_cv_lib_dl_dlopen=no
19065 fi
19066 rm -f conftest.err conftest.$ac_objext \
19067       conftest$ac_exeext conftest.$ac_ext
19068 LIBS=$ac_check_lib_save_LIBS
19069 fi
19070 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19071 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19072 if test $ac_cv_lib_dl_dlopen = yes; then
19073   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19074 else
19075
19076     lt_cv_dlopen="dyld"
19077     lt_cv_dlopen_libs=
19078     lt_cv_dlopen_self=yes
19079
19080 fi
19081
19082    ;;
19083
19084   *)
19085     echo "$as_me:$LINENO: checking for shl_load" >&5
19086 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19087 if test "${ac_cv_func_shl_load+set}" = set; then
19088   echo $ECHO_N "(cached) $ECHO_C" >&6
19089 else
19090   cat >conftest.$ac_ext <<_ACEOF
19091 /* confdefs.h.  */
19092 _ACEOF
19093 cat confdefs.h >>conftest.$ac_ext
19094 cat >>conftest.$ac_ext <<_ACEOF
19095 /* end confdefs.h.  */
19096 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19097    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19098 #define shl_load innocuous_shl_load
19099
19100 /* System header to define __stub macros and hopefully few prototypes,
19101     which can conflict with char shl_load (); below.
19102     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19103     <limits.h> exists even on freestanding compilers.  */
19104
19105 #ifdef __STDC__
19106 # include <limits.h>
19107 #else
19108 # include <assert.h>
19109 #endif
19110
19111 #undef shl_load
19112
19113 /* Override any gcc2 internal prototype to avoid an error.  */
19114 #ifdef __cplusplus
19115 extern "C"
19116 {
19117 #endif
19118 /* We use char because int might match the return type of a gcc2
19119    builtin and then its argument prototype would still apply.  */
19120 char shl_load ();
19121 /* The GNU C library defines this for functions which it implements
19122     to always fail with ENOSYS.  Some functions are actually named
19123     something starting with __ and the normal name is an alias.  */
19124 #if defined (__stub_shl_load) || defined (__stub___shl_load)
19125 choke me
19126 #else
19127 char (*f) () = shl_load;
19128 #endif
19129 #ifdef __cplusplus
19130 }
19131 #endif
19132
19133 int
19134 main ()
19135 {
19136 return f != shl_load;
19137   ;
19138   return 0;
19139 }
19140 _ACEOF
19141 rm -f conftest.$ac_objext conftest$ac_exeext
19142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19143   (eval $ac_link) 2>conftest.er1
19144   ac_status=$?
19145   grep -v '^ *+' conftest.er1 >conftest.err
19146   rm -f conftest.er1
19147   cat conftest.err >&5
19148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149   (exit $ac_status); } &&
19150          { ac_try='test -z "$ac_c_werror_flag"
19151                          || test ! -s conftest.err'
19152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19153   (eval $ac_try) 2>&5
19154   ac_status=$?
19155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19156   (exit $ac_status); }; } &&
19157          { ac_try='test -s conftest$ac_exeext'
19158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19159   (eval $ac_try) 2>&5
19160   ac_status=$?
19161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19162   (exit $ac_status); }; }; then
19163   ac_cv_func_shl_load=yes
19164 else
19165   echo "$as_me: failed program was:" >&5
19166 sed 's/^/| /' conftest.$ac_ext >&5
19167
19168 ac_cv_func_shl_load=no
19169 fi
19170 rm -f conftest.err conftest.$ac_objext \
19171       conftest$ac_exeext conftest.$ac_ext
19172 fi
19173 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19174 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19175 if test $ac_cv_func_shl_load = yes; then
19176   lt_cv_dlopen="shl_load"
19177 else
19178   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19179 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19180 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19181   echo $ECHO_N "(cached) $ECHO_C" >&6
19182 else
19183   ac_check_lib_save_LIBS=$LIBS
19184 LIBS="-ldld  $LIBS"
19185 cat >conftest.$ac_ext <<_ACEOF
19186 /* confdefs.h.  */
19187 _ACEOF
19188 cat confdefs.h >>conftest.$ac_ext
19189 cat >>conftest.$ac_ext <<_ACEOF
19190 /* end confdefs.h.  */
19191
19192 /* Override any gcc2 internal prototype to avoid an error.  */
19193 #ifdef __cplusplus
19194 extern "C"
19195 #endif
19196 /* We use char because int might match the return type of a gcc2
19197    builtin and then its argument prototype would still apply.  */
19198 char shl_load ();
19199 int
19200 main ()
19201 {
19202 shl_load ();
19203   ;
19204   return 0;
19205 }
19206 _ACEOF
19207 rm -f conftest.$ac_objext conftest$ac_exeext
19208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19209   (eval $ac_link) 2>conftest.er1
19210   ac_status=$?
19211   grep -v '^ *+' conftest.er1 >conftest.err
19212   rm -f conftest.er1
19213   cat conftest.err >&5
19214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19215   (exit $ac_status); } &&
19216          { ac_try='test -z "$ac_c_werror_flag"
19217                          || test ! -s conftest.err'
19218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19219   (eval $ac_try) 2>&5
19220   ac_status=$?
19221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222   (exit $ac_status); }; } &&
19223          { ac_try='test -s conftest$ac_exeext'
19224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19225   (eval $ac_try) 2>&5
19226   ac_status=$?
19227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228   (exit $ac_status); }; }; then
19229   ac_cv_lib_dld_shl_load=yes
19230 else
19231   echo "$as_me: failed program was:" >&5
19232 sed 's/^/| /' conftest.$ac_ext >&5
19233
19234 ac_cv_lib_dld_shl_load=no
19235 fi
19236 rm -f conftest.err conftest.$ac_objext \
19237       conftest$ac_exeext conftest.$ac_ext
19238 LIBS=$ac_check_lib_save_LIBS
19239 fi
19240 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19241 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19242 if test $ac_cv_lib_dld_shl_load = yes; then
19243   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19244 else
19245   echo "$as_me:$LINENO: checking for dlopen" >&5
19246 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19247 if test "${ac_cv_func_dlopen+set}" = set; then
19248   echo $ECHO_N "(cached) $ECHO_C" >&6
19249 else
19250   cat >conftest.$ac_ext <<_ACEOF
19251 /* confdefs.h.  */
19252 _ACEOF
19253 cat confdefs.h >>conftest.$ac_ext
19254 cat >>conftest.$ac_ext <<_ACEOF
19255 /* end confdefs.h.  */
19256 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19257    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19258 #define dlopen innocuous_dlopen
19259
19260 /* System header to define __stub macros and hopefully few prototypes,
19261     which can conflict with char dlopen (); below.
19262     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19263     <limits.h> exists even on freestanding compilers.  */
19264
19265 #ifdef __STDC__
19266 # include <limits.h>
19267 #else
19268 # include <assert.h>
19269 #endif
19270
19271 #undef dlopen
19272
19273 /* Override any gcc2 internal prototype to avoid an error.  */
19274 #ifdef __cplusplus
19275 extern "C"
19276 {
19277 #endif
19278 /* We use char because int might match the return type of a gcc2
19279    builtin and then its argument prototype would still apply.  */
19280 char dlopen ();
19281 /* The GNU C library defines this for functions which it implements
19282     to always fail with ENOSYS.  Some functions are actually named
19283     something starting with __ and the normal name is an alias.  */
19284 #if defined (__stub_dlopen) || defined (__stub___dlopen)
19285 choke me
19286 #else
19287 char (*f) () = dlopen;
19288 #endif
19289 #ifdef __cplusplus
19290 }
19291 #endif
19292
19293 int
19294 main ()
19295 {
19296 return f != dlopen;
19297   ;
19298   return 0;
19299 }
19300 _ACEOF
19301 rm -f conftest.$ac_objext conftest$ac_exeext
19302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19303   (eval $ac_link) 2>conftest.er1
19304   ac_status=$?
19305   grep -v '^ *+' conftest.er1 >conftest.err
19306   rm -f conftest.er1
19307   cat conftest.err >&5
19308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309   (exit $ac_status); } &&
19310          { ac_try='test -z "$ac_c_werror_flag"
19311                          || test ! -s conftest.err'
19312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19313   (eval $ac_try) 2>&5
19314   ac_status=$?
19315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316   (exit $ac_status); }; } &&
19317          { ac_try='test -s conftest$ac_exeext'
19318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19319   (eval $ac_try) 2>&5
19320   ac_status=$?
19321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19322   (exit $ac_status); }; }; then
19323   ac_cv_func_dlopen=yes
19324 else
19325   echo "$as_me: failed program was:" >&5
19326 sed 's/^/| /' conftest.$ac_ext >&5
19327
19328 ac_cv_func_dlopen=no
19329 fi
19330 rm -f conftest.err conftest.$ac_objext \
19331       conftest$ac_exeext conftest.$ac_ext
19332 fi
19333 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19334 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19335 if test $ac_cv_func_dlopen = yes; then
19336   lt_cv_dlopen="dlopen"
19337 else
19338   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19339 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19340 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19341   echo $ECHO_N "(cached) $ECHO_C" >&6
19342 else
19343   ac_check_lib_save_LIBS=$LIBS
19344 LIBS="-ldl  $LIBS"
19345 cat >conftest.$ac_ext <<_ACEOF
19346 /* confdefs.h.  */
19347 _ACEOF
19348 cat confdefs.h >>conftest.$ac_ext
19349 cat >>conftest.$ac_ext <<_ACEOF
19350 /* end confdefs.h.  */
19351
19352 /* Override any gcc2 internal prototype to avoid an error.  */
19353 #ifdef __cplusplus
19354 extern "C"
19355 #endif
19356 /* We use char because int might match the return type of a gcc2
19357    builtin and then its argument prototype would still apply.  */
19358 char dlopen ();
19359 int
19360 main ()
19361 {
19362 dlopen ();
19363   ;
19364   return 0;
19365 }
19366 _ACEOF
19367 rm -f conftest.$ac_objext conftest$ac_exeext
19368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19369   (eval $ac_link) 2>conftest.er1
19370   ac_status=$?
19371   grep -v '^ *+' conftest.er1 >conftest.err
19372   rm -f conftest.er1
19373   cat conftest.err >&5
19374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375   (exit $ac_status); } &&
19376          { ac_try='test -z "$ac_c_werror_flag"
19377                          || test ! -s conftest.err'
19378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19379   (eval $ac_try) 2>&5
19380   ac_status=$?
19381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382   (exit $ac_status); }; } &&
19383          { ac_try='test -s conftest$ac_exeext'
19384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19385   (eval $ac_try) 2>&5
19386   ac_status=$?
19387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388   (exit $ac_status); }; }; then
19389   ac_cv_lib_dl_dlopen=yes
19390 else
19391   echo "$as_me: failed program was:" >&5
19392 sed 's/^/| /' conftest.$ac_ext >&5
19393
19394 ac_cv_lib_dl_dlopen=no
19395 fi
19396 rm -f conftest.err conftest.$ac_objext \
19397       conftest$ac_exeext conftest.$ac_ext
19398 LIBS=$ac_check_lib_save_LIBS
19399 fi
19400 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19401 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19402 if test $ac_cv_lib_dl_dlopen = yes; then
19403   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19404 else
19405   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19406 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19407 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19408   echo $ECHO_N "(cached) $ECHO_C" >&6
19409 else
19410   ac_check_lib_save_LIBS=$LIBS
19411 LIBS="-lsvld  $LIBS"
19412 cat >conftest.$ac_ext <<_ACEOF
19413 /* confdefs.h.  */
19414 _ACEOF
19415 cat confdefs.h >>conftest.$ac_ext
19416 cat >>conftest.$ac_ext <<_ACEOF
19417 /* end confdefs.h.  */
19418
19419 /* Override any gcc2 internal prototype to avoid an error.  */
19420 #ifdef __cplusplus
19421 extern "C"
19422 #endif
19423 /* We use char because int might match the return type of a gcc2
19424    builtin and then its argument prototype would still apply.  */
19425 char dlopen ();
19426 int
19427 main ()
19428 {
19429 dlopen ();
19430   ;
19431   return 0;
19432 }
19433 _ACEOF
19434 rm -f conftest.$ac_objext conftest$ac_exeext
19435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19436   (eval $ac_link) 2>conftest.er1
19437   ac_status=$?
19438   grep -v '^ *+' conftest.er1 >conftest.err
19439   rm -f conftest.er1
19440   cat conftest.err >&5
19441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442   (exit $ac_status); } &&
19443          { ac_try='test -z "$ac_c_werror_flag"
19444                          || test ! -s conftest.err'
19445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19446   (eval $ac_try) 2>&5
19447   ac_status=$?
19448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19449   (exit $ac_status); }; } &&
19450          { ac_try='test -s conftest$ac_exeext'
19451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19452   (eval $ac_try) 2>&5
19453   ac_status=$?
19454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19455   (exit $ac_status); }; }; then
19456   ac_cv_lib_svld_dlopen=yes
19457 else
19458   echo "$as_me: failed program was:" >&5
19459 sed 's/^/| /' conftest.$ac_ext >&5
19460
19461 ac_cv_lib_svld_dlopen=no
19462 fi
19463 rm -f conftest.err conftest.$ac_objext \
19464       conftest$ac_exeext conftest.$ac_ext
19465 LIBS=$ac_check_lib_save_LIBS
19466 fi
19467 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19468 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19469 if test $ac_cv_lib_svld_dlopen = yes; then
19470   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19471 else
19472   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19473 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19474 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19475   echo $ECHO_N "(cached) $ECHO_C" >&6
19476 else
19477   ac_check_lib_save_LIBS=$LIBS
19478 LIBS="-ldld  $LIBS"
19479 cat >conftest.$ac_ext <<_ACEOF
19480 /* confdefs.h.  */
19481 _ACEOF
19482 cat confdefs.h >>conftest.$ac_ext
19483 cat >>conftest.$ac_ext <<_ACEOF
19484 /* end confdefs.h.  */
19485
19486 /* Override any gcc2 internal prototype to avoid an error.  */
19487 #ifdef __cplusplus
19488 extern "C"
19489 #endif
19490 /* We use char because int might match the return type of a gcc2
19491    builtin and then its argument prototype would still apply.  */
19492 char dld_link ();
19493 int
19494 main ()
19495 {
19496 dld_link ();
19497   ;
19498   return 0;
19499 }
19500 _ACEOF
19501 rm -f conftest.$ac_objext conftest$ac_exeext
19502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19503   (eval $ac_link) 2>conftest.er1
19504   ac_status=$?
19505   grep -v '^ *+' conftest.er1 >conftest.err
19506   rm -f conftest.er1
19507   cat conftest.err >&5
19508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509   (exit $ac_status); } &&
19510          { ac_try='test -z "$ac_c_werror_flag"
19511                          || test ! -s conftest.err'
19512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19513   (eval $ac_try) 2>&5
19514   ac_status=$?
19515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516   (exit $ac_status); }; } &&
19517          { ac_try='test -s conftest$ac_exeext'
19518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19519   (eval $ac_try) 2>&5
19520   ac_status=$?
19521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522   (exit $ac_status); }; }; then
19523   ac_cv_lib_dld_dld_link=yes
19524 else
19525   echo "$as_me: failed program was:" >&5
19526 sed 's/^/| /' conftest.$ac_ext >&5
19527
19528 ac_cv_lib_dld_dld_link=no
19529 fi
19530 rm -f conftest.err conftest.$ac_objext \
19531       conftest$ac_exeext conftest.$ac_ext
19532 LIBS=$ac_check_lib_save_LIBS
19533 fi
19534 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19535 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19536 if test $ac_cv_lib_dld_dld_link = yes; then
19537   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19538 fi
19539
19540
19541 fi
19542
19543
19544 fi
19545
19546
19547 fi
19548
19549
19550 fi
19551
19552
19553 fi
19554
19555     ;;
19556   esac
19557
19558   if test "x$lt_cv_dlopen" != xno; then
19559     enable_dlopen=yes
19560   else
19561     enable_dlopen=no
19562   fi
19563
19564   case $lt_cv_dlopen in
19565   dlopen)
19566     save_CPPFLAGS="$CPPFLAGS"
19567     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19568
19569     save_LDFLAGS="$LDFLAGS"
19570     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19571
19572     save_LIBS="$LIBS"
19573     LIBS="$lt_cv_dlopen_libs $LIBS"
19574
19575     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19576 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19577 if test "${lt_cv_dlopen_self+set}" = set; then
19578   echo $ECHO_N "(cached) $ECHO_C" >&6
19579 else
19580           if test "$cross_compiling" = yes; then :
19581   lt_cv_dlopen_self=cross
19582 else
19583   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19584   lt_status=$lt_dlunknown
19585   cat > conftest.$ac_ext <<EOF
19586 #line 19586 "configure"
19587 #include "confdefs.h"
19588
19589 #if HAVE_DLFCN_H
19590 #include <dlfcn.h>
19591 #endif
19592
19593 #include <stdio.h>
19594
19595 #ifdef RTLD_GLOBAL
19596 #  define LT_DLGLOBAL           RTLD_GLOBAL
19597 #else
19598 #  ifdef DL_GLOBAL
19599 #    define LT_DLGLOBAL         DL_GLOBAL
19600 #  else
19601 #    define LT_DLGLOBAL         0
19602 #  endif
19603 #endif
19604
19605 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19606    find out it does not work in some platform. */
19607 #ifndef LT_DLLAZY_OR_NOW
19608 #  ifdef RTLD_LAZY
19609 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19610 #  else
19611 #    ifdef DL_LAZY
19612 #      define LT_DLLAZY_OR_NOW          DL_LAZY
19613 #    else
19614 #      ifdef RTLD_NOW
19615 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
19616 #      else
19617 #        ifdef DL_NOW
19618 #          define LT_DLLAZY_OR_NOW      DL_NOW
19619 #        else
19620 #          define LT_DLLAZY_OR_NOW      0
19621 #        endif
19622 #      endif
19623 #    endif
19624 #  endif
19625 #endif
19626
19627 #ifdef __cplusplus
19628 extern "C" void exit (int);
19629 #endif
19630
19631 void fnord() { int i=42;}
19632 int main ()
19633 {
19634   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19635   int status = $lt_dlunknown;
19636
19637   if (self)
19638     {
19639       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19640       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19641       /* dlclose (self); */
19642     }
19643
19644     exit (status);
19645 }
19646 EOF
19647   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19648   (eval $ac_link) 2>&5
19649   ac_status=$?
19650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19652     (./conftest; exit; ) 2>/dev/null
19653     lt_status=$?
19654     case x$lt_status in
19655       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19656       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19657       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19658     esac
19659   else :
19660     # compilation failed
19661     lt_cv_dlopen_self=no
19662   fi
19663 fi
19664 rm -fr conftest*
19665
19666
19667 fi
19668 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19669 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19670
19671     if test "x$lt_cv_dlopen_self" = xyes; then
19672       LDFLAGS="$LDFLAGS $link_static_flag"
19673       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19674 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19675 if test "${lt_cv_dlopen_self_static+set}" = set; then
19676   echo $ECHO_N "(cached) $ECHO_C" >&6
19677 else
19678           if test "$cross_compiling" = yes; then :
19679   lt_cv_dlopen_self_static=cross
19680 else
19681   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19682   lt_status=$lt_dlunknown
19683   cat > conftest.$ac_ext <<EOF
19684 #line 19684 "configure"
19685 #include "confdefs.h"
19686
19687 #if HAVE_DLFCN_H
19688 #include <dlfcn.h>
19689 #endif
19690
19691 #include <stdio.h>
19692
19693 #ifdef RTLD_GLOBAL
19694 #  define LT_DLGLOBAL           RTLD_GLOBAL
19695 #else
19696 #  ifdef DL_GLOBAL
19697 #    define LT_DLGLOBAL         DL_GLOBAL
19698 #  else
19699 #    define LT_DLGLOBAL         0
19700 #  endif
19701 #endif
19702
19703 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19704    find out it does not work in some platform. */
19705 #ifndef LT_DLLAZY_OR_NOW
19706 #  ifdef RTLD_LAZY
19707 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19708 #  else
19709 #    ifdef DL_LAZY
19710 #      define LT_DLLAZY_OR_NOW          DL_LAZY
19711 #    else
19712 #      ifdef RTLD_NOW
19713 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
19714 #      else
19715 #        ifdef DL_NOW
19716 #          define LT_DLLAZY_OR_NOW      DL_NOW
19717 #        else
19718 #          define LT_DLLAZY_OR_NOW      0
19719 #        endif
19720 #      endif
19721 #    endif
19722 #  endif
19723 #endif
19724
19725 #ifdef __cplusplus
19726 extern "C" void exit (int);
19727 #endif
19728
19729 void fnord() { int i=42;}
19730 int main ()
19731 {
19732   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19733   int status = $lt_dlunknown;
19734
19735   if (self)
19736     {
19737       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19738       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19739       /* dlclose (self); */
19740     }
19741
19742     exit (status);
19743 }
19744 EOF
19745   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19746   (eval $ac_link) 2>&5
19747   ac_status=$?
19748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19750     (./conftest; exit; ) 2>/dev/null
19751     lt_status=$?
19752     case x$lt_status in
19753       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19754       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19755       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19756     esac
19757   else :
19758     # compilation failed
19759     lt_cv_dlopen_self_static=no
19760   fi
19761 fi
19762 rm -fr conftest*
19763
19764
19765 fi
19766 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19767 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19768     fi
19769
19770     CPPFLAGS="$save_CPPFLAGS"
19771     LDFLAGS="$save_LDFLAGS"
19772     LIBS="$save_LIBS"
19773     ;;
19774   esac
19775
19776   case $lt_cv_dlopen_self in
19777   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19778   *) enable_dlopen_self=unknown ;;
19779   esac
19780
19781   case $lt_cv_dlopen_self_static in
19782   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19783   *) enable_dlopen_self_static=unknown ;;
19784   esac
19785 fi
19786
19787
19788 # The else clause should only fire when bootstrapping the
19789 # libtool distribution, otherwise you forgot to ship ltmain.sh
19790 # with your package, and you will get complaints that there are
19791 # no rules to generate ltmain.sh.
19792 if test -f "$ltmain"; then
19793   # See if we are running on zsh, and set the options which allow our commands through
19794   # without removal of \ escapes.
19795   if test -n "${ZSH_VERSION+set}" ; then
19796     setopt NO_GLOB_SUBST
19797   fi
19798   # Now quote all the things that may contain metacharacters while being
19799   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19800   # variables and quote the copies for generation of the libtool script.
19801   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19802     SED SHELL STRIP \
19803     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19804     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19805     deplibs_check_method reload_flag reload_cmds need_locks \
19806     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19807     lt_cv_sys_global_symbol_to_c_name_address \
19808     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19809     old_postinstall_cmds old_postuninstall_cmds \
19810     compiler_GCJ \
19811     CC_GCJ \
19812     LD_GCJ \
19813     lt_prog_compiler_wl_GCJ \
19814     lt_prog_compiler_pic_GCJ \
19815     lt_prog_compiler_static_GCJ \
19816     lt_prog_compiler_no_builtin_flag_GCJ \
19817     export_dynamic_flag_spec_GCJ \
19818     thread_safe_flag_spec_GCJ \
19819     whole_archive_flag_spec_GCJ \
19820     enable_shared_with_static_runtimes_GCJ \
19821     old_archive_cmds_GCJ \
19822     old_archive_from_new_cmds_GCJ \
19823     predep_objects_GCJ \
19824     postdep_objects_GCJ \
19825     predeps_GCJ \
19826     postdeps_GCJ \
19827     compiler_lib_search_path_GCJ \
19828     archive_cmds_GCJ \
19829     archive_expsym_cmds_GCJ \
19830     postinstall_cmds_GCJ \
19831     postuninstall_cmds_GCJ \
19832     old_archive_from_expsyms_cmds_GCJ \
19833     allow_undefined_flag_GCJ \
19834     no_undefined_flag_GCJ \
19835     export_symbols_cmds_GCJ \
19836     hardcode_libdir_flag_spec_GCJ \
19837     hardcode_libdir_flag_spec_ld_GCJ \
19838     hardcode_libdir_separator_GCJ \
19839     hardcode_automatic_GCJ \
19840     module_cmds_GCJ \
19841     module_expsym_cmds_GCJ \
19842     lt_cv_prog_compiler_c_o_GCJ \
19843     exclude_expsyms_GCJ \
19844     include_expsyms_GCJ; do
19845
19846     case $var in
19847     old_archive_cmds_GCJ | \
19848     old_archive_from_new_cmds_GCJ | \
19849     archive_cmds_GCJ | \
19850     archive_expsym_cmds_GCJ | \
19851     module_cmds_GCJ | \
19852     module_expsym_cmds_GCJ | \
19853     old_archive_from_expsyms_cmds_GCJ | \
19854     export_symbols_cmds_GCJ | \
19855     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19856     postinstall_cmds | postuninstall_cmds | \
19857     old_postinstall_cmds | old_postuninstall_cmds | \
19858     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19859       # Double-quote double-evaled strings.
19860       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19861       ;;
19862     *)
19863       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19864       ;;
19865     esac
19866   done
19867
19868   case $lt_echo in
19869   *'\$0 --fallback-echo"')
19870     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19871     ;;
19872   esac
19873
19874 cfgfile="$ofile"
19875
19876   cat <<__EOF__ >> "$cfgfile"
19877 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19878
19879 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19880
19881 # Shell to use when invoking shell scripts.
19882 SHELL=$lt_SHELL
19883
19884 # Whether or not to build shared libraries.
19885 build_libtool_libs=$enable_shared
19886
19887 # Whether or not to build static libraries.
19888 build_old_libs=$enable_static
19889
19890 # Whether or not to add -lc for building shared libraries.
19891 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19892
19893 # Whether or not to disallow shared libs when runtime libs are static
19894 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19895
19896 # Whether or not to optimize for fast installation.
19897 fast_install=$enable_fast_install
19898
19899 # The host system.
19900 host_alias=$host_alias
19901 host=$host
19902
19903 # An echo program that does not interpret backslashes.
19904 echo=$lt_echo
19905
19906 # The archiver.
19907 AR=$lt_AR
19908 AR_FLAGS=$lt_AR_FLAGS
19909
19910 # A C compiler.
19911 LTCC=$lt_LTCC
19912
19913 # A language-specific compiler.
19914 CC=$lt_compiler_GCJ
19915
19916 # Is the compiler the GNU C compiler?
19917 with_gcc=$GCC_GCJ
19918
19919 # An ERE matcher.
19920 EGREP=$lt_EGREP
19921
19922 # The linker used to build libraries.
19923 LD=$lt_LD_GCJ
19924
19925 # Whether we need hard or soft links.
19926 LN_S=$lt_LN_S
19927
19928 # A BSD-compatible nm program.
19929 NM=$lt_NM
19930
19931 # A symbol stripping program
19932 STRIP=$lt_STRIP
19933
19934 # Used to examine libraries when file_magic_cmd begins "file"
19935 MAGIC_CMD=$MAGIC_CMD
19936
19937 # Used on cygwin: DLL creation program.
19938 DLLTOOL="$DLLTOOL"
19939
19940 # Used on cygwin: object dumper.
19941 OBJDUMP="$OBJDUMP"
19942
19943 # Used on cygwin: assembler.
19944 AS="$AS"
19945
19946 # The name of the directory that contains temporary libtool files.
19947 objdir=$objdir
19948
19949 # How to create reloadable object files.
19950 reload_flag=$lt_reload_flag
19951 reload_cmds=$lt_reload_cmds
19952
19953 # How to pass a linker flag through the compiler.
19954 wl=$lt_lt_prog_compiler_wl_GCJ
19955
19956 # Object file suffix (normally "o").
19957 objext="$ac_objext"
19958
19959 # Old archive suffix (normally "a").
19960 libext="$libext"
19961
19962 # Shared library suffix (normally ".so").
19963 shrext='$shrext'
19964
19965 # Executable file suffix (normally "").
19966 exeext="$exeext"
19967
19968 # Additional compiler flags for building library objects.
19969 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19970 pic_mode=$pic_mode
19971
19972 # What is the maximum length of a command?
19973 max_cmd_len=$lt_cv_sys_max_cmd_len
19974
19975 # Does compiler simultaneously support -c and -o options?
19976 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19977
19978 # Must we lock files when doing compilation ?
19979 need_locks=$lt_need_locks
19980
19981 # Do we need the lib prefix for modules?
19982 need_lib_prefix=$need_lib_prefix
19983
19984 # Do we need a version for libraries?
19985 need_version=$need_version
19986
19987 # Whether dlopen is supported.
19988 dlopen_support=$enable_dlopen
19989
19990 # Whether dlopen of programs is supported.
19991 dlopen_self=$enable_dlopen_self
19992
19993 # Whether dlopen of statically linked programs is supported.
19994 dlopen_self_static=$enable_dlopen_self_static
19995
19996 # Compiler flag to prevent dynamic linking.
19997 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19998
19999 # Compiler flag to turn off builtin functions.
20000 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20001
20002 # Compiler flag to allow reflexive dlopens.
20003 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20004
20005 # Compiler flag to generate shared objects directly from archives.
20006 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20007
20008 # Compiler flag to generate thread-safe objects.
20009 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20010
20011 # Library versioning type.
20012 version_type=$version_type
20013
20014 # Format of library name prefix.
20015 libname_spec=$lt_libname_spec
20016
20017 # List of archive names.  First name is the real one, the rest are links.
20018 # The last name is the one that the linker finds with -lNAME.
20019 library_names_spec=$lt_library_names_spec
20020
20021 # The coded name of the library, if different from the real name.
20022 soname_spec=$lt_soname_spec
20023
20024 # Commands used to build and install an old-style archive.
20025 RANLIB=$lt_RANLIB
20026 old_archive_cmds=$lt_old_archive_cmds_GCJ
20027 old_postinstall_cmds=$lt_old_postinstall_cmds
20028 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20029
20030 # Create an old-style archive from a shared archive.
20031 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20032
20033 # Create a temporary old-style archive to link instead of a shared archive.
20034 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20035
20036 # Commands used to build and install a shared archive.
20037 archive_cmds=$lt_archive_cmds_GCJ
20038 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20039 postinstall_cmds=$lt_postinstall_cmds
20040 postuninstall_cmds=$lt_postuninstall_cmds
20041
20042 # Commands used to build a loadable module (assumed same as above if empty)
20043 module_cmds=$lt_module_cmds_GCJ
20044 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20045
20046 # Commands to strip libraries.
20047 old_striplib=$lt_old_striplib
20048 striplib=$lt_striplib
20049
20050 # Dependencies to place before the objects being linked to create a
20051 # shared library.
20052 predep_objects=$lt_predep_objects_GCJ
20053
20054 # Dependencies to place after the objects being linked to create a
20055 # shared library.
20056 postdep_objects=$lt_postdep_objects_GCJ
20057
20058 # Dependencies to place before the objects being linked to create a
20059 # shared library.
20060 predeps=$lt_predeps_GCJ
20061
20062 # Dependencies to place after the objects being linked to create a
20063 # shared library.
20064 postdeps=$lt_postdeps_GCJ
20065
20066 # The library search path used internally by the compiler when linking
20067 # a shared library.
20068 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20069
20070 # Method to check whether dependent libraries are shared objects.
20071 deplibs_check_method=$lt_deplibs_check_method
20072
20073 # Command to use when deplibs_check_method == file_magic.
20074 file_magic_cmd=$lt_file_magic_cmd
20075
20076 # Flag that allows shared libraries with undefined symbols to be built.
20077 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20078
20079 # Flag that forces no undefined symbols.
20080 no_undefined_flag=$lt_no_undefined_flag_GCJ
20081
20082 # Commands used to finish a libtool library installation in a directory.
20083 finish_cmds=$lt_finish_cmds
20084
20085 # Same as above, but a single script fragment to be evaled but not shown.
20086 finish_eval=$lt_finish_eval
20087
20088 # Take the output of nm and produce a listing of raw symbols and C names.
20089 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20090
20091 # Transform the output of nm in a proper C declaration
20092 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20093
20094 # Transform the output of nm in a C name address pair
20095 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20096
20097 # This is the shared library runtime path variable.
20098 runpath_var=$runpath_var
20099
20100 # This is the shared library path variable.
20101 shlibpath_var=$shlibpath_var
20102
20103 # Is shlibpath searched before the hard-coded library search path?
20104 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20105
20106 # How to hardcode a shared library path into an executable.
20107 hardcode_action=$hardcode_action_GCJ
20108
20109 # Whether we should hardcode library paths into libraries.
20110 hardcode_into_libs=$hardcode_into_libs
20111
20112 # Flag to hardcode \$libdir into a binary during linking.
20113 # This must work even if \$libdir does not exist.
20114 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20115
20116 # If ld is used when linking, flag to hardcode \$libdir into
20117 # a binary during linking. This must work even if \$libdir does
20118 # not exist.
20119 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20120
20121 # Whether we need a single -rpath flag with a separated argument.
20122 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20123
20124 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20125 # resulting binary.
20126 hardcode_direct=$hardcode_direct_GCJ
20127
20128 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20129 # resulting binary.
20130 hardcode_minus_L=$hardcode_minus_L_GCJ
20131
20132 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20133 # the resulting binary.
20134 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20135
20136 # Set to yes if building a shared library automatically hardcodes DIR into the library
20137 # and all subsequent libraries and executables linked against it.
20138 hardcode_automatic=$hardcode_automatic_GCJ
20139
20140 # Variables whose values should be saved in libtool wrapper scripts and
20141 # restored at relink time.
20142 variables_saved_for_relink="$variables_saved_for_relink"
20143
20144 # Whether libtool must link a program against all its dependency libraries.
20145 link_all_deplibs=$link_all_deplibs_GCJ
20146
20147 # Compile-time system search path for libraries
20148 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20149
20150 # Run-time system search path for libraries
20151 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20152
20153 # Fix the shell variable \$srcfile for the compiler.
20154 fix_srcfile_path="$fix_srcfile_path_GCJ"
20155
20156 # Set to yes if exported symbols are required.
20157 always_export_symbols=$always_export_symbols_GCJ
20158
20159 # The commands to list exported symbols.
20160 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20161
20162 # The commands to extract the exported symbol list from a shared archive.
20163 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20164
20165 # Symbols that should not be listed in the preloaded symbols.
20166 exclude_expsyms=$lt_exclude_expsyms_GCJ
20167
20168 # Symbols that must always be exported.
20169 include_expsyms=$lt_include_expsyms_GCJ
20170
20171 # ### END LIBTOOL TAG CONFIG: $tagname
20172
20173 __EOF__
20174
20175
20176 else
20177   # If there is no Makefile yet, we rely on a make rule to execute
20178   # `config.status --recheck' to rerun these tests and create the
20179   # libtool script then.
20180   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20181   if test -f "$ltmain_in"; then
20182     test -f Makefile && make "$ltmain"
20183   fi
20184 fi
20185
20186
20187 ac_ext=c
20188 ac_cpp='$CPP $CPPFLAGS'
20189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20192
20193 CC="$lt_save_CC"
20194
20195         else
20196           tagname=""
20197         fi
20198         ;;
20199
20200       RC)
20201
20202
20203
20204 # Source file extension for RC test sources.
20205 ac_ext=rc
20206
20207 # Object file extension for compiled RC test sources.
20208 objext=o
20209 objext_RC=$objext
20210
20211 # Code to be used in simple compile tests
20212 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20213
20214 # Code to be used in simple link tests
20215 lt_simple_link_test_code="$lt_simple_compile_test_code"
20216
20217 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20218
20219 # If no C compiler was specified, use CC.
20220 LTCC=${LTCC-"$CC"}
20221
20222 # Allow CC to be a program name with arguments.
20223 compiler=$CC
20224
20225
20226 # Allow CC to be a program name with arguments.
20227 lt_save_CC="$CC"
20228 CC=${RC-"windres"}
20229 compiler=$CC
20230 compiler_RC=$CC
20231 lt_cv_prog_compiler_c_o_RC=yes
20232
20233 # The else clause should only fire when bootstrapping the
20234 # libtool distribution, otherwise you forgot to ship ltmain.sh
20235 # with your package, and you will get complaints that there are
20236 # no rules to generate ltmain.sh.
20237 if test -f "$ltmain"; then
20238   # See if we are running on zsh, and set the options which allow our commands through
20239   # without removal of \ escapes.
20240   if test -n "${ZSH_VERSION+set}" ; then
20241     setopt NO_GLOB_SUBST
20242   fi
20243   # Now quote all the things that may contain metacharacters while being
20244   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20245   # variables and quote the copies for generation of the libtool script.
20246   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20247     SED SHELL STRIP \
20248     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20249     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20250     deplibs_check_method reload_flag reload_cmds need_locks \
20251     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20252     lt_cv_sys_global_symbol_to_c_name_address \
20253     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20254     old_postinstall_cmds old_postuninstall_cmds \
20255     compiler_RC \
20256     CC_RC \
20257     LD_RC \
20258     lt_prog_compiler_wl_RC \
20259     lt_prog_compiler_pic_RC \
20260     lt_prog_compiler_static_RC \
20261     lt_prog_compiler_no_builtin_flag_RC \
20262     export_dynamic_flag_spec_RC \
20263     thread_safe_flag_spec_RC \
20264     whole_archive_flag_spec_RC \
20265     enable_shared_with_static_runtimes_RC \
20266     old_archive_cmds_RC \
20267     old_archive_from_new_cmds_RC \
20268     predep_objects_RC \
20269     postdep_objects_RC \
20270     predeps_RC \
20271     postdeps_RC \
20272     compiler_lib_search_path_RC \
20273     archive_cmds_RC \
20274     archive_expsym_cmds_RC \
20275     postinstall_cmds_RC \
20276     postuninstall_cmds_RC \
20277     old_archive_from_expsyms_cmds_RC \
20278     allow_undefined_flag_RC \
20279     no_undefined_flag_RC \
20280     export_symbols_cmds_RC \
20281     hardcode_libdir_flag_spec_RC \
20282     hardcode_libdir_flag_spec_ld_RC \
20283     hardcode_libdir_separator_RC \
20284     hardcode_automatic_RC \
20285     module_cmds_RC \
20286     module_expsym_cmds_RC \
20287     lt_cv_prog_compiler_c_o_RC \
20288     exclude_expsyms_RC \
20289     include_expsyms_RC; do
20290
20291     case $var in
20292     old_archive_cmds_RC | \
20293     old_archive_from_new_cmds_RC | \
20294     archive_cmds_RC | \
20295     archive_expsym_cmds_RC | \
20296     module_cmds_RC | \
20297     module_expsym_cmds_RC | \
20298     old_archive_from_expsyms_cmds_RC | \
20299     export_symbols_cmds_RC | \
20300     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20301     postinstall_cmds | postuninstall_cmds | \
20302     old_postinstall_cmds | old_postuninstall_cmds | \
20303     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20304       # Double-quote double-evaled strings.
20305       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20306       ;;
20307     *)
20308       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20309       ;;
20310     esac
20311   done
20312
20313   case $lt_echo in
20314   *'\$0 --fallback-echo"')
20315     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20316     ;;
20317   esac
20318
20319 cfgfile="$ofile"
20320
20321   cat <<__EOF__ >> "$cfgfile"
20322 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20323
20324 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20325
20326 # Shell to use when invoking shell scripts.
20327 SHELL=$lt_SHELL
20328
20329 # Whether or not to build shared libraries.
20330 build_libtool_libs=$enable_shared
20331
20332 # Whether or not to build static libraries.
20333 build_old_libs=$enable_static
20334
20335 # Whether or not to add -lc for building shared libraries.
20336 build_libtool_need_lc=$archive_cmds_need_lc_RC
20337
20338 # Whether or not to disallow shared libs when runtime libs are static
20339 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20340
20341 # Whether or not to optimize for fast installation.
20342 fast_install=$enable_fast_install
20343
20344 # The host system.
20345 host_alias=$host_alias
20346 host=$host
20347
20348 # An echo program that does not interpret backslashes.
20349 echo=$lt_echo
20350
20351 # The archiver.
20352 AR=$lt_AR
20353 AR_FLAGS=$lt_AR_FLAGS
20354
20355 # A C compiler.
20356 LTCC=$lt_LTCC
20357
20358 # A language-specific compiler.
20359 CC=$lt_compiler_RC
20360
20361 # Is the compiler the GNU C compiler?
20362 with_gcc=$GCC_RC
20363
20364 # An ERE matcher.
20365 EGREP=$lt_EGREP
20366
20367 # The linker used to build libraries.
20368 LD=$lt_LD_RC
20369
20370 # Whether we need hard or soft links.
20371 LN_S=$lt_LN_S
20372
20373 # A BSD-compatible nm program.
20374 NM=$lt_NM
20375
20376 # A symbol stripping program
20377 STRIP=$lt_STRIP
20378
20379 # Used to examine libraries when file_magic_cmd begins "file"
20380 MAGIC_CMD=$MAGIC_CMD
20381
20382 # Used on cygwin: DLL creation program.
20383 DLLTOOL="$DLLTOOL"
20384
20385 # Used on cygwin: object dumper.
20386 OBJDUMP="$OBJDUMP"
20387
20388 # Used on cygwin: assembler.
20389 AS="$AS"
20390
20391 # The name of the directory that contains temporary libtool files.
20392 objdir=$objdir
20393
20394 # How to create reloadable object files.
20395 reload_flag=$lt_reload_flag
20396 reload_cmds=$lt_reload_cmds
20397
20398 # How to pass a linker flag through the compiler.
20399 wl=$lt_lt_prog_compiler_wl_RC
20400
20401 # Object file suffix (normally "o").
20402 objext="$ac_objext"
20403
20404 # Old archive suffix (normally "a").
20405 libext="$libext"
20406
20407 # Shared library suffix (normally ".so").
20408 shrext='$shrext'
20409
20410 # Executable file suffix (normally "").
20411 exeext="$exeext"
20412
20413 # Additional compiler flags for building library objects.
20414 pic_flag=$lt_lt_prog_compiler_pic_RC
20415 pic_mode=$pic_mode
20416
20417 # What is the maximum length of a command?
20418 max_cmd_len=$lt_cv_sys_max_cmd_len
20419
20420 # Does compiler simultaneously support -c and -o options?
20421 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20422
20423 # Must we lock files when doing compilation ?
20424 need_locks=$lt_need_locks
20425
20426 # Do we need the lib prefix for modules?
20427 need_lib_prefix=$need_lib_prefix
20428
20429 # Do we need a version for libraries?
20430 need_version=$need_version
20431
20432 # Whether dlopen is supported.
20433 dlopen_support=$enable_dlopen
20434
20435 # Whether dlopen of programs is supported.
20436 dlopen_self=$enable_dlopen_self
20437
20438 # Whether dlopen of statically linked programs is supported.
20439 dlopen_self_static=$enable_dlopen_self_static
20440
20441 # Compiler flag to prevent dynamic linking.
20442 link_static_flag=$lt_lt_prog_compiler_static_RC
20443
20444 # Compiler flag to turn off builtin functions.
20445 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20446
20447 # Compiler flag to allow reflexive dlopens.
20448 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20449
20450 # Compiler flag to generate shared objects directly from archives.
20451 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20452
20453 # Compiler flag to generate thread-safe objects.
20454 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20455
20456 # Library versioning type.
20457 version_type=$version_type
20458
20459 # Format of library name prefix.
20460 libname_spec=$lt_libname_spec
20461
20462 # List of archive names.  First name is the real one, the rest are links.
20463 # The last name is the one that the linker finds with -lNAME.
20464 library_names_spec=$lt_library_names_spec
20465
20466 # The coded name of the library, if different from the real name.
20467 soname_spec=$lt_soname_spec
20468
20469 # Commands used to build and install an old-style archive.
20470 RANLIB=$lt_RANLIB
20471 old_archive_cmds=$lt_old_archive_cmds_RC
20472 old_postinstall_cmds=$lt_old_postinstall_cmds
20473 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20474
20475 # Create an old-style archive from a shared archive.
20476 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20477
20478 # Create a temporary old-style archive to link instead of a shared archive.
20479 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20480
20481 # Commands used to build and install a shared archive.
20482 archive_cmds=$lt_archive_cmds_RC
20483 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20484 postinstall_cmds=$lt_postinstall_cmds
20485 postuninstall_cmds=$lt_postuninstall_cmds
20486
20487 # Commands used to build a loadable module (assumed same as above if empty)
20488 module_cmds=$lt_module_cmds_RC
20489 module_expsym_cmds=$lt_module_expsym_cmds_RC
20490
20491 # Commands to strip libraries.
20492 old_striplib=$lt_old_striplib
20493 striplib=$lt_striplib
20494
20495 # Dependencies to place before the objects being linked to create a
20496 # shared library.
20497 predep_objects=$lt_predep_objects_RC
20498
20499 # Dependencies to place after the objects being linked to create a
20500 # shared library.
20501 postdep_objects=$lt_postdep_objects_RC
20502
20503 # Dependencies to place before the objects being linked to create a
20504 # shared library.
20505 predeps=$lt_predeps_RC
20506
20507 # Dependencies to place after the objects being linked to create a
20508 # shared library.
20509 postdeps=$lt_postdeps_RC
20510
20511 # The library search path used internally by the compiler when linking
20512 # a shared library.
20513 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20514
20515 # Method to check whether dependent libraries are shared objects.
20516 deplibs_check_method=$lt_deplibs_check_method
20517
20518 # Command to use when deplibs_check_method == file_magic.
20519 file_magic_cmd=$lt_file_magic_cmd
20520
20521 # Flag that allows shared libraries with undefined symbols to be built.
20522 allow_undefined_flag=$lt_allow_undefined_flag_RC
20523
20524 # Flag that forces no undefined symbols.
20525 no_undefined_flag=$lt_no_undefined_flag_RC
20526
20527 # Commands used to finish a libtool library installation in a directory.
20528 finish_cmds=$lt_finish_cmds
20529
20530 # Same as above, but a single script fragment to be evaled but not shown.
20531 finish_eval=$lt_finish_eval
20532
20533 # Take the output of nm and produce a listing of raw symbols and C names.
20534 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20535
20536 # Transform the output of nm in a proper C declaration
20537 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20538
20539 # Transform the output of nm in a C name address pair
20540 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20541
20542 # This is the shared library runtime path variable.
20543 runpath_var=$runpath_var
20544
20545 # This is the shared library path variable.
20546 shlibpath_var=$shlibpath_var
20547
20548 # Is shlibpath searched before the hard-coded library search path?
20549 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20550
20551 # How to hardcode a shared library path into an executable.
20552 hardcode_action=$hardcode_action_RC
20553
20554 # Whether we should hardcode library paths into libraries.
20555 hardcode_into_libs=$hardcode_into_libs
20556
20557 # Flag to hardcode \$libdir into a binary during linking.
20558 # This must work even if \$libdir does not exist.
20559 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20560
20561 # If ld is used when linking, flag to hardcode \$libdir into
20562 # a binary during linking. This must work even if \$libdir does
20563 # not exist.
20564 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20565
20566 # Whether we need a single -rpath flag with a separated argument.
20567 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20568
20569 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20570 # resulting binary.
20571 hardcode_direct=$hardcode_direct_RC
20572
20573 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20574 # resulting binary.
20575 hardcode_minus_L=$hardcode_minus_L_RC
20576
20577 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20578 # the resulting binary.
20579 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20580
20581 # Set to yes if building a shared library automatically hardcodes DIR into the library
20582 # and all subsequent libraries and executables linked against it.
20583 hardcode_automatic=$hardcode_automatic_RC
20584
20585 # Variables whose values should be saved in libtool wrapper scripts and
20586 # restored at relink time.
20587 variables_saved_for_relink="$variables_saved_for_relink"
20588
20589 # Whether libtool must link a program against all its dependency libraries.
20590 link_all_deplibs=$link_all_deplibs_RC
20591
20592 # Compile-time system search path for libraries
20593 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20594
20595 # Run-time system search path for libraries
20596 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20597
20598 # Fix the shell variable \$srcfile for the compiler.
20599 fix_srcfile_path="$fix_srcfile_path_RC"
20600
20601 # Set to yes if exported symbols are required.
20602 always_export_symbols=$always_export_symbols_RC
20603
20604 # The commands to list exported symbols.
20605 export_symbols_cmds=$lt_export_symbols_cmds_RC
20606
20607 # The commands to extract the exported symbol list from a shared archive.
20608 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20609
20610 # Symbols that should not be listed in the preloaded symbols.
20611 exclude_expsyms=$lt_exclude_expsyms_RC
20612
20613 # Symbols that must always be exported.
20614 include_expsyms=$lt_include_expsyms_RC
20615
20616 # ### END LIBTOOL TAG CONFIG: $tagname
20617
20618 __EOF__
20619
20620
20621 else
20622   # If there is no Makefile yet, we rely on a make rule to execute
20623   # `config.status --recheck' to rerun these tests and create the
20624   # libtool script then.
20625   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20626   if test -f "$ltmain_in"; then
20627     test -f Makefile && make "$ltmain"
20628   fi
20629 fi
20630
20631
20632 ac_ext=c
20633 ac_cpp='$CPP $CPPFLAGS'
20634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20637
20638 CC="$lt_save_CC"
20639
20640         ;;
20641
20642       *)
20643         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20644 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20645    { (exit 1); exit 1; }; }
20646         ;;
20647       esac
20648
20649       # Append the new tag name to the list of available tags.
20650       if test -n "$tagname" ; then
20651       available_tags="$available_tags $tagname"
20652     fi
20653     fi
20654   done
20655   IFS="$lt_save_ifs"
20656
20657   # Now substitute the updated list of available tags.
20658   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20659     mv "${ofile}T" "$ofile"
20660     chmod +x "$ofile"
20661   else
20662     rm -f "${ofile}T"
20663     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20664 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20665    { (exit 1); exit 1; }; }
20666   fi
20667 fi
20668
20669
20670
20671 # This can be used to rebuild libtool when needed
20672 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20673
20674 # Always use our own libtool.
20675 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20676
20677 # Prevent multiple expansion
20678
20679
20680
20681
20682
20683
20684
20685
20686
20687
20688
20689
20690
20691
20692
20693
20694
20695
20696
20697
20698
20699 echo "$as_me:$LINENO: checking if we need -no-undefined" >&5
20700 echo $ECHO_N "checking if we need -no-undefined... $ECHO_C" >&6
20701 case $host in
20702   *-*-cygwin | *-*-mingw* | *-*-pw32*)
20703     need_no_undefined=yes
20704     ;;
20705   *)
20706     need_no_undefined=no
20707     ;;
20708 esac
20709 echo "$as_me:$LINENO: result: $need_no_undefined" >&5
20710 echo "${ECHO_T}$need_no_undefined" >&6
20711
20712
20713 if test x$need_no_undefined = xyes; then
20714   NO_UNDEFINED_TRUE=
20715   NO_UNDEFINED_FALSE='#'
20716 else
20717   NO_UNDEFINED_TRUE='#'
20718   NO_UNDEFINED_FALSE=
20719 fi
20720
20721
20722 echo "$as_me:$LINENO: checking if we need -mimpure-text" >&5
20723 echo $ECHO_N "checking if we need -mimpure-text... $ECHO_C" >&6
20724 case $host in
20725   *-*-solaris2*)
20726     if test "$GCC" = "yes"; then
20727       mimpure="yes"
20728     fi
20729     ;;
20730   *)
20731     mimpure=no
20732     ;;
20733 esac
20734 echo "$as_me:$LINENO: result: $mimpure" >&5
20735 echo "${ECHO_T}$mimpure" >&6
20736
20737
20738 if test x$mimpure = xyes; then
20739   MIMPURE_TRUE=
20740   MIMPURE_FALSE='#'
20741 else
20742   MIMPURE_TRUE='#'
20743   MIMPURE_FALSE=
20744 fi
20745
20746
20747 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20748 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
20749 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
20750 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
20751   echo $ECHO_N "(cached) $ECHO_C" >&6
20752 else
20753   cat >conftest.make <<\_ACEOF
20754 all:
20755         @echo 'ac_maketemp="$(MAKE)"'
20756 _ACEOF
20757 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20758 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
20759 if test -n "$ac_maketemp"; then
20760   eval ac_cv_prog_make_${ac_make}_set=yes
20761 else
20762   eval ac_cv_prog_make_${ac_make}_set=no
20763 fi
20764 rm -f conftest.make
20765 fi
20766 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
20767   echo "$as_me:$LINENO: result: yes" >&5
20768 echo "${ECHO_T}yes" >&6
20769   SET_MAKE=
20770 else
20771   echo "$as_me:$LINENO: result: no" >&5
20772 echo "${ECHO_T}no" >&6
20773   SET_MAKE="MAKE=${MAKE-make}"
20774 fi
20775
20776
20777 echo "$as_me:$LINENO: checking whether to support http" >&5
20778 echo $ECHO_N "checking whether to support http... $ECHO_C" >&6
20779 # Check whether --enable-http or --disable-http was given.
20780 if test "${enable_http+set}" = set; then
20781   enableval="$enable_http"
20782    case "$enableval" in
20783   no)
20784        echo "$as_me:$LINENO: result: no" >&5
20785 echo "${ECHO_T}no" >&6
20786
20787 cat >>confdefs.h <<\_ACEOF
20788 #define CURL_DISABLE_HTTP 1
20789 _ACEOF
20790
20791        { echo "$as_me:$LINENO: WARNING: disable HTTP disables FTP over proxy and GOPHER too" >&5
20792 echo "$as_me: WARNING: disable HTTP disables FTP over proxy and GOPHER too" >&2;}
20793
20794 cat >>confdefs.h <<\_ACEOF
20795 #define CURL_DISABLE_GOPHER 1
20796 _ACEOF
20797
20798
20799
20800        ;;
20801   *)   echo "$as_me:$LINENO: result: yes" >&5
20802 echo "${ECHO_T}yes" >&6
20803        ;;
20804   esac
20805 else
20806   echo "$as_me:$LINENO: result: yes" >&5
20807 echo "${ECHO_T}yes" >&6
20808
20809 fi;
20810 echo "$as_me:$LINENO: checking whether to support ftp" >&5
20811 echo $ECHO_N "checking whether to support ftp... $ECHO_C" >&6
20812 # Check whether --enable-ftp or --disable-ftp was given.
20813 if test "${enable_ftp+set}" = set; then
20814   enableval="$enable_ftp"
20815    case "$enableval" in
20816   no)
20817        echo "$as_me:$LINENO: result: no" >&5
20818 echo "${ECHO_T}no" >&6
20819
20820 cat >>confdefs.h <<\_ACEOF
20821 #define CURL_DISABLE_FTP 1
20822 _ACEOF
20823
20824
20825        ;;
20826   *)   echo "$as_me:$LINENO: result: yes" >&5
20827 echo "${ECHO_T}yes" >&6
20828        ;;
20829   esac
20830 else
20831   echo "$as_me:$LINENO: result: yes" >&5
20832 echo "${ECHO_T}yes" >&6
20833
20834 fi;
20835 echo "$as_me:$LINENO: checking whether to support gopher" >&5
20836 echo $ECHO_N "checking whether to support gopher... $ECHO_C" >&6
20837 # Check whether --enable-gopher or --disable-gopher was given.
20838 if test "${enable_gopher+set}" = set; then
20839   enableval="$enable_gopher"
20840    case "$enableval" in
20841   no)
20842        echo "$as_me:$LINENO: result: no" >&5
20843 echo "${ECHO_T}no" >&6
20844
20845 cat >>confdefs.h <<\_ACEOF
20846 #define CURL_DISABLE_GOPHER 1
20847 _ACEOF
20848
20849
20850        ;;
20851   *)   echo "$as_me:$LINENO: result: yes" >&5
20852 echo "${ECHO_T}yes" >&6
20853        ;;
20854   esac
20855 else
20856   echo "$as_me:$LINENO: result: yes" >&5
20857 echo "${ECHO_T}yes" >&6
20858
20859 fi;
20860 echo "$as_me:$LINENO: checking whether to support file" >&5
20861 echo $ECHO_N "checking whether to support file... $ECHO_C" >&6
20862 # Check whether --enable-file or --disable-file was given.
20863 if test "${enable_file+set}" = set; then
20864   enableval="$enable_file"
20865    case "$enableval" in
20866   no)
20867        echo "$as_me:$LINENO: result: no" >&5
20868 echo "${ECHO_T}no" >&6
20869
20870 cat >>confdefs.h <<\_ACEOF
20871 #define CURL_DISABLE_FILE 1
20872 _ACEOF
20873
20874
20875        ;;
20876   *)   echo "$as_me:$LINENO: result: yes" >&5
20877 echo "${ECHO_T}yes" >&6
20878        ;;
20879   esac
20880 else
20881   echo "$as_me:$LINENO: result: yes" >&5
20882 echo "${ECHO_T}yes" >&6
20883
20884 fi;
20885 echo "$as_me:$LINENO: checking whether to support ldap" >&5
20886 echo $ECHO_N "checking whether to support ldap... $ECHO_C" >&6
20887 # Check whether --enable-ldap or --disable-ldap was given.
20888 if test "${enable_ldap+set}" = set; then
20889   enableval="$enable_ldap"
20890    case "$enableval" in
20891   no)
20892        echo "$as_me:$LINENO: result: no" >&5
20893 echo "${ECHO_T}no" >&6
20894
20895 cat >>confdefs.h <<\_ACEOF
20896 #define CURL_DISABLE_LDAP 1
20897 _ACEOF
20898
20899
20900        ;;
20901   *)   echo "$as_me:$LINENO: result: yes" >&5
20902 echo "${ECHO_T}yes" >&6
20903        ;;
20904   esac
20905 else
20906   echo "$as_me:$LINENO: result: yes" >&5
20907 echo "${ECHO_T}yes" >&6
20908
20909 fi;
20910 echo "$as_me:$LINENO: checking whether to support dict" >&5
20911 echo $ECHO_N "checking whether to support dict... $ECHO_C" >&6
20912 # Check whether --enable-dict or --disable-dict was given.
20913 if test "${enable_dict+set}" = set; then
20914   enableval="$enable_dict"
20915    case "$enableval" in
20916   no)
20917        echo "$as_me:$LINENO: result: no" >&5
20918 echo "${ECHO_T}no" >&6
20919
20920 cat >>confdefs.h <<\_ACEOF
20921 #define CURL_DISABLE_DICT 1
20922 _ACEOF
20923
20924
20925        ;;
20926   *)   echo "$as_me:$LINENO: result: yes" >&5
20927 echo "${ECHO_T}yes" >&6
20928        ;;
20929   esac
20930 else
20931   echo "$as_me:$LINENO: result: yes" >&5
20932 echo "${ECHO_T}yes" >&6
20933
20934 fi;
20935 echo "$as_me:$LINENO: checking whether to support telnet" >&5
20936 echo $ECHO_N "checking whether to support telnet... $ECHO_C" >&6
20937 # Check whether --enable-telnet or --disable-telnet was given.
20938 if test "${enable_telnet+set}" = set; then
20939   enableval="$enable_telnet"
20940    case "$enableval" in
20941   no)
20942        echo "$as_me:$LINENO: result: no" >&5
20943 echo "${ECHO_T}no" >&6
20944
20945 cat >>confdefs.h <<\_ACEOF
20946 #define CURL_DISABLE_TELNET 1
20947 _ACEOF
20948
20949
20950        ;;
20951   *)   echo "$as_me:$LINENO: result: yes" >&5
20952 echo "${ECHO_T}yes" >&6
20953        ;;
20954   esac
20955 else
20956   echo "$as_me:$LINENO: result: yes" >&5
20957 echo "${ECHO_T}yes" >&6
20958
20959 fi;
20960
20961
20962 echo "$as_me:$LINENO: checking whether to provide built-in manual" >&5
20963 echo $ECHO_N "checking whether to provide built-in manual... $ECHO_C" >&6
20964 # Check whether --enable-manual or --disable-manual was given.
20965 if test "${enable_manual+set}" = set; then
20966   enableval="$enable_manual"
20967    case "$enableval" in
20968   no)
20969        echo "$as_me:$LINENO: result: no" >&5
20970 echo "${ECHO_T}no" >&6
20971        ;;
20972   *)   echo "$as_me:$LINENO: result: yes" >&5
20973 echo "${ECHO_T}yes" >&6
20974        USE_MANUAL="1"
20975        ;;
20976   esac
20977 else
20978   echo "$as_me:$LINENO: result: yes" >&5
20979 echo "${ECHO_T}yes" >&6
20980        USE_MANUAL="1"
20981
20982 fi;
20983
20984
20985
20986 echo "$as_me:$LINENO: checking for gethostbyname" >&5
20987 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
20988 if test "${ac_cv_func_gethostbyname+set}" = set; then
20989   echo $ECHO_N "(cached) $ECHO_C" >&6
20990 else
20991   cat >conftest.$ac_ext <<_ACEOF
20992 /* confdefs.h.  */
20993 _ACEOF
20994 cat confdefs.h >>conftest.$ac_ext
20995 cat >>conftest.$ac_ext <<_ACEOF
20996 /* end confdefs.h.  */
20997 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
20998    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20999 #define gethostbyname innocuous_gethostbyname
21000
21001 /* System header to define __stub macros and hopefully few prototypes,
21002     which can conflict with char gethostbyname (); below.
21003     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21004     <limits.h> exists even on freestanding compilers.  */
21005
21006 #ifdef __STDC__
21007 # include <limits.h>
21008 #else
21009 # include <assert.h>
21010 #endif
21011
21012 #undef gethostbyname
21013
21014 /* Override any gcc2 internal prototype to avoid an error.  */
21015 #ifdef __cplusplus
21016 extern "C"
21017 {
21018 #endif
21019 /* We use char because int might match the return type of a gcc2
21020    builtin and then its argument prototype would still apply.  */
21021 char gethostbyname ();
21022 /* The GNU C library defines this for functions which it implements
21023     to always fail with ENOSYS.  Some functions are actually named
21024     something starting with __ and the normal name is an alias.  */
21025 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
21026 choke me
21027 #else
21028 char (*f) () = gethostbyname;
21029 #endif
21030 #ifdef __cplusplus
21031 }
21032 #endif
21033
21034 int
21035 main ()
21036 {
21037 return f != gethostbyname;
21038   ;
21039   return 0;
21040 }
21041 _ACEOF
21042 rm -f conftest.$ac_objext conftest$ac_exeext
21043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21044   (eval $ac_link) 2>conftest.er1
21045   ac_status=$?
21046   grep -v '^ *+' conftest.er1 >conftest.err
21047   rm -f conftest.er1
21048   cat conftest.err >&5
21049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050   (exit $ac_status); } &&
21051          { ac_try='test -z "$ac_c_werror_flag"
21052                          || test ! -s conftest.err'
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); }; } &&
21058          { ac_try='test -s conftest$ac_exeext'
21059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21060   (eval $ac_try) 2>&5
21061   ac_status=$?
21062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063   (exit $ac_status); }; }; then
21064   ac_cv_func_gethostbyname=yes
21065 else
21066   echo "$as_me: failed program was:" >&5
21067 sed 's/^/| /' conftest.$ac_ext >&5
21068
21069 ac_cv_func_gethostbyname=no
21070 fi
21071 rm -f conftest.err conftest.$ac_objext \
21072       conftest$ac_exeext conftest.$ac_ext
21073 fi
21074 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
21075 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
21076 if test $ac_cv_func_gethostbyname = yes; then
21077   HAVE_GETHOSTBYNAME="1"
21078
21079 else
21080    echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
21081 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
21082 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
21083   echo $ECHO_N "(cached) $ECHO_C" >&6
21084 else
21085   ac_check_lib_save_LIBS=$LIBS
21086 LIBS="-lnsl  $LIBS"
21087 cat >conftest.$ac_ext <<_ACEOF
21088 /* confdefs.h.  */
21089 _ACEOF
21090 cat confdefs.h >>conftest.$ac_ext
21091 cat >>conftest.$ac_ext <<_ACEOF
21092 /* end confdefs.h.  */
21093
21094 /* Override any gcc2 internal prototype to avoid an error.  */
21095 #ifdef __cplusplus
21096 extern "C"
21097 #endif
21098 /* We use char because int might match the return type of a gcc2
21099    builtin and then its argument prototype would still apply.  */
21100 char gethostbyname ();
21101 int
21102 main ()
21103 {
21104 gethostbyname ();
21105   ;
21106   return 0;
21107 }
21108 _ACEOF
21109 rm -f conftest.$ac_objext conftest$ac_exeext
21110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21111   (eval $ac_link) 2>conftest.er1
21112   ac_status=$?
21113   grep -v '^ *+' conftest.er1 >conftest.err
21114   rm -f conftest.er1
21115   cat conftest.err >&5
21116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117   (exit $ac_status); } &&
21118          { ac_try='test -z "$ac_c_werror_flag"
21119                          || test ! -s conftest.err'
21120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21121   (eval $ac_try) 2>&5
21122   ac_status=$?
21123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124   (exit $ac_status); }; } &&
21125          { ac_try='test -s conftest$ac_exeext'
21126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21127   (eval $ac_try) 2>&5
21128   ac_status=$?
21129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21130   (exit $ac_status); }; }; then
21131   ac_cv_lib_nsl_gethostbyname=yes
21132 else
21133   echo "$as_me: failed program was:" >&5
21134 sed 's/^/| /' conftest.$ac_ext >&5
21135
21136 ac_cv_lib_nsl_gethostbyname=no
21137 fi
21138 rm -f conftest.err conftest.$ac_objext \
21139       conftest$ac_exeext conftest.$ac_ext
21140 LIBS=$ac_check_lib_save_LIBS
21141 fi
21142 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21143 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
21144 if test $ac_cv_lib_nsl_gethostbyname = yes; then
21145   HAVE_GETHOSTBYNAME="1"
21146                              LIBS="$LIBS -lnsl"
21147
21148 fi
21149
21150
21151 fi
21152
21153
21154 if test "$HAVE_GETHOSTBYNAME" != "1"
21155 then
21156     echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
21157 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
21158 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
21159   echo $ECHO_N "(cached) $ECHO_C" >&6
21160 else
21161   ac_check_lib_save_LIBS=$LIBS
21162 LIBS="-lsocket  $LIBS"
21163 cat >conftest.$ac_ext <<_ACEOF
21164 /* confdefs.h.  */
21165 _ACEOF
21166 cat confdefs.h >>conftest.$ac_ext
21167 cat >>conftest.$ac_ext <<_ACEOF
21168 /* end confdefs.h.  */
21169
21170 /* Override any gcc2 internal prototype to avoid an error.  */
21171 #ifdef __cplusplus
21172 extern "C"
21173 #endif
21174 /* We use char because int might match the return type of a gcc2
21175    builtin and then its argument prototype would still apply.  */
21176 char gethostbyname ();
21177 int
21178 main ()
21179 {
21180 gethostbyname ();
21181   ;
21182   return 0;
21183 }
21184 _ACEOF
21185 rm -f conftest.$ac_objext conftest$ac_exeext
21186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21187   (eval $ac_link) 2>conftest.er1
21188   ac_status=$?
21189   grep -v '^ *+' conftest.er1 >conftest.err
21190   rm -f conftest.er1
21191   cat conftest.err >&5
21192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21193   (exit $ac_status); } &&
21194          { ac_try='test -z "$ac_c_werror_flag"
21195                          || test ! -s conftest.err'
21196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21197   (eval $ac_try) 2>&5
21198   ac_status=$?
21199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21200   (exit $ac_status); }; } &&
21201          { ac_try='test -s conftest$ac_exeext'
21202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21203   (eval $ac_try) 2>&5
21204   ac_status=$?
21205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206   (exit $ac_status); }; }; then
21207   ac_cv_lib_socket_gethostbyname=yes
21208 else
21209   echo "$as_me: failed program was:" >&5
21210 sed 's/^/| /' conftest.$ac_ext >&5
21211
21212 ac_cv_lib_socket_gethostbyname=no
21213 fi
21214 rm -f conftest.err conftest.$ac_objext \
21215       conftest$ac_exeext conftest.$ac_ext
21216 LIBS=$ac_check_lib_save_LIBS
21217 fi
21218 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
21219 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
21220 if test $ac_cv_lib_socket_gethostbyname = yes; then
21221   HAVE_GETHOSTBYNAME="1"
21222                LIBS="$LIBS -lsocket"
21223
21224 fi
21225
21226 fi
21227
21228 if test "$HAVE_GETHOSTBYNAME" != "1"
21229 then
21230   echo "$as_me:$LINENO: checking trying gethostbyname with both nsl and socket libs" >&5
21231 echo $ECHO_N "checking trying gethostbyname with both nsl and socket libs... $ECHO_C" >&6
21232   my_ac_save_LIBS=$LIBS
21233   LIBS="-lnsl -lsocket $LIBS"
21234   cat >conftest.$ac_ext <<_ACEOF
21235 /* confdefs.h.  */
21236 _ACEOF
21237 cat confdefs.h >>conftest.$ac_ext
21238 cat >>conftest.$ac_ext <<_ACEOF
21239 /* end confdefs.h.  */
21240
21241 int
21242 main ()
21243 {
21244 gethostbyname();
21245   ;
21246   return 0;
21247 }
21248 _ACEOF
21249 rm -f conftest.$ac_objext conftest$ac_exeext
21250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21251   (eval $ac_link) 2>conftest.er1
21252   ac_status=$?
21253   grep -v '^ *+' conftest.er1 >conftest.err
21254   rm -f conftest.er1
21255   cat conftest.err >&5
21256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21257   (exit $ac_status); } &&
21258          { ac_try='test -z "$ac_c_werror_flag"
21259                          || test ! -s conftest.err'
21260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21261   (eval $ac_try) 2>&5
21262   ac_status=$?
21263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264   (exit $ac_status); }; } &&
21265          { ac_try='test -s conftest$ac_exeext'
21266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21267   (eval $ac_try) 2>&5
21268   ac_status=$?
21269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270   (exit $ac_status); }; }; then
21271                 HAVE_GETHOSTBYNAME="1",
21272              echo "$as_me:$LINENO: result: yes" >&5
21273 echo "${ECHO_T}yes" >&6
21274 else
21275   echo "$as_me: failed program was:" >&5
21276 sed 's/^/| /' conftest.$ac_ext >&5
21277
21278               echo "$as_me:$LINENO: result: no" >&5
21279 echo "${ECHO_T}no" >&6
21280                           LIBS=$my_ac_save_LIBS
21281
21282 fi
21283 rm -f conftest.err conftest.$ac_objext \
21284       conftest$ac_exeext conftest.$ac_ext
21285 fi
21286
21287 if test "$HAVE_GETHOSTBYNAME" != "1"
21288 then
21289     echo "$as_me:$LINENO: checking for gethostbyname in ws2_32" >&5
21290 echo $ECHO_N "checking for gethostbyname in ws2_32... $ECHO_C" >&6
21291   my_ac_save_LIBS=$LIBS
21292   LIBS="-lws2_32 $LIBS"
21293   cat >conftest.$ac_ext <<_ACEOF
21294 /* confdefs.h.  */
21295 _ACEOF
21296 cat confdefs.h >>conftest.$ac_ext
21297 cat >>conftest.$ac_ext <<_ACEOF
21298 /* end confdefs.h.  */
21299 #include <winsock2.h>
21300 int
21301 main ()
21302 {
21303 gethostbyname("www.dummysite.com");
21304   ;
21305   return 0;
21306 }
21307 _ACEOF
21308 rm -f conftest.$ac_objext conftest$ac_exeext
21309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21310   (eval $ac_link) 2>conftest.er1
21311   ac_status=$?
21312   grep -v '^ *+' conftest.er1 >conftest.err
21313   rm -f conftest.er1
21314   cat conftest.err >&5
21315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21316   (exit $ac_status); } &&
21317          { ac_try='test -z "$ac_c_werror_flag"
21318                          || test ! -s conftest.err'
21319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21320   (eval $ac_try) 2>&5
21321   ac_status=$?
21322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21323   (exit $ac_status); }; } &&
21324          { ac_try='test -s conftest$ac_exeext'
21325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21326   (eval $ac_try) 2>&5
21327   ac_status=$?
21328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21329   (exit $ac_status); }; }; then
21330                   echo "$as_me:$LINENO: result: yes" >&5
21331 echo "${ECHO_T}yes" >&6
21332                HAVE_GETHOSTBYNAME="1"
21333 else
21334   echo "$as_me: failed program was:" >&5
21335 sed 's/^/| /' conftest.$ac_ext >&5
21336
21337                 LIBS=$my_ac_save_LIBS
21338                echo "$as_me:$LINENO: result: no" >&5
21339 echo "${ECHO_T}no" >&6
21340
21341 fi
21342 rm -f conftest.err conftest.$ac_objext \
21343       conftest$ac_exeext conftest.$ac_ext
21344 fi
21345
21346 if test "$HAVE_GETHOSTBYNAME" = "1"; then
21347
21348 cat >>confdefs.h <<\_ACEOF
21349 #define HAVE_GETHOSTBYNAME 1
21350 _ACEOF
21351
21352 else
21353   { { echo "$as_me:$LINENO: error: couldn't find libraries for gethostbyname()" >&5
21354 echo "$as_me: error: couldn't find libraries for gethostbyname()" >&2;}
21355    { (exit 1); exit 1; }; }
21356 fi
21357
21358 echo "$as_me:$LINENO: checking for strcasecmp" >&5
21359 echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6
21360 if test "${ac_cv_func_strcasecmp+set}" = set; then
21361   echo $ECHO_N "(cached) $ECHO_C" >&6
21362 else
21363   cat >conftest.$ac_ext <<_ACEOF
21364 /* confdefs.h.  */
21365 _ACEOF
21366 cat confdefs.h >>conftest.$ac_ext
21367 cat >>conftest.$ac_ext <<_ACEOF
21368 /* end confdefs.h.  */
21369 /* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp.
21370    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21371 #define strcasecmp innocuous_strcasecmp
21372
21373 /* System header to define __stub macros and hopefully few prototypes,
21374     which can conflict with char strcasecmp (); below.
21375     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21376     <limits.h> exists even on freestanding compilers.  */
21377
21378 #ifdef __STDC__
21379 # include <limits.h>
21380 #else
21381 # include <assert.h>
21382 #endif
21383
21384 #undef strcasecmp
21385
21386 /* Override any gcc2 internal prototype to avoid an error.  */
21387 #ifdef __cplusplus
21388 extern "C"
21389 {
21390 #endif
21391 /* We use char because int might match the return type of a gcc2
21392    builtin and then its argument prototype would still apply.  */
21393 char strcasecmp ();
21394 /* The GNU C library defines this for functions which it implements
21395     to always fail with ENOSYS.  Some functions are actually named
21396     something starting with __ and the normal name is an alias.  */
21397 #if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
21398 choke me
21399 #else
21400 char (*f) () = strcasecmp;
21401 #endif
21402 #ifdef __cplusplus
21403 }
21404 #endif
21405
21406 int
21407 main ()
21408 {
21409 return f != strcasecmp;
21410   ;
21411   return 0;
21412 }
21413 _ACEOF
21414 rm -f conftest.$ac_objext conftest$ac_exeext
21415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21416   (eval $ac_link) 2>conftest.er1
21417   ac_status=$?
21418   grep -v '^ *+' conftest.er1 >conftest.err
21419   rm -f conftest.er1
21420   cat conftest.err >&5
21421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422   (exit $ac_status); } &&
21423          { ac_try='test -z "$ac_c_werror_flag"
21424                          || test ! -s conftest.err'
21425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21426   (eval $ac_try) 2>&5
21427   ac_status=$?
21428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429   (exit $ac_status); }; } &&
21430          { ac_try='test -s conftest$ac_exeext'
21431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21432   (eval $ac_try) 2>&5
21433   ac_status=$?
21434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21435   (exit $ac_status); }; }; then
21436   ac_cv_func_strcasecmp=yes
21437 else
21438   echo "$as_me: failed program was:" >&5
21439 sed 's/^/| /' conftest.$ac_ext >&5
21440
21441 ac_cv_func_strcasecmp=no
21442 fi
21443 rm -f conftest.err conftest.$ac_objext \
21444       conftest$ac_exeext conftest.$ac_ext
21445 fi
21446 echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
21447 echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6
21448 if test $ac_cv_func_strcasecmp = yes; then
21449   :
21450 else
21451
21452 echo "$as_me:$LINENO: checking for strcasecmp in -lresolve" >&5
21453 echo $ECHO_N "checking for strcasecmp in -lresolve... $ECHO_C" >&6
21454 if test "${ac_cv_lib_resolve_strcasecmp+set}" = set; then
21455   echo $ECHO_N "(cached) $ECHO_C" >&6
21456 else
21457   ac_check_lib_save_LIBS=$LIBS
21458 LIBS="-lresolve  $LIBS"
21459 cat >conftest.$ac_ext <<_ACEOF
21460 /* confdefs.h.  */
21461 _ACEOF
21462 cat confdefs.h >>conftest.$ac_ext
21463 cat >>conftest.$ac_ext <<_ACEOF
21464 /* end confdefs.h.  */
21465
21466 /* Override any gcc2 internal prototype to avoid an error.  */
21467 #ifdef __cplusplus
21468 extern "C"
21469 #endif
21470 /* We use char because int might match the return type of a gcc2
21471    builtin and then its argument prototype would still apply.  */
21472 char strcasecmp ();
21473 int
21474 main ()
21475 {
21476 strcasecmp ();
21477   ;
21478   return 0;
21479 }
21480 _ACEOF
21481 rm -f conftest.$ac_objext conftest$ac_exeext
21482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21483   (eval $ac_link) 2>conftest.er1
21484   ac_status=$?
21485   grep -v '^ *+' conftest.er1 >conftest.err
21486   rm -f conftest.er1
21487   cat conftest.err >&5
21488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21489   (exit $ac_status); } &&
21490          { ac_try='test -z "$ac_c_werror_flag"
21491                          || test ! -s conftest.err'
21492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21493   (eval $ac_try) 2>&5
21494   ac_status=$?
21495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21496   (exit $ac_status); }; } &&
21497          { ac_try='test -s conftest$ac_exeext'
21498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21499   (eval $ac_try) 2>&5
21500   ac_status=$?
21501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21502   (exit $ac_status); }; }; then
21503   ac_cv_lib_resolve_strcasecmp=yes
21504 else
21505   echo "$as_me: failed program was:" >&5
21506 sed 's/^/| /' conftest.$ac_ext >&5
21507
21508 ac_cv_lib_resolve_strcasecmp=no
21509 fi
21510 rm -f conftest.err conftest.$ac_objext \
21511       conftest$ac_exeext conftest.$ac_ext
21512 LIBS=$ac_check_lib_save_LIBS
21513 fi
21514 echo "$as_me:$LINENO: result: $ac_cv_lib_resolve_strcasecmp" >&5
21515 echo "${ECHO_T}$ac_cv_lib_resolve_strcasecmp" >&6
21516 if test $ac_cv_lib_resolve_strcasecmp = yes; then
21517   cat >>confdefs.h <<_ACEOF
21518 #define HAVE_LIBRESOLVE 1
21519 _ACEOF
21520
21521   LIBS="-lresolve $LIBS"
21522
21523 fi
21524
21525 fi
21526
21527
21528 if test "$ac_cv_lib_resolve_strcasecmp" = "$ac_cv_func_strcasecmp"; then
21529   echo "$as_me:$LINENO: checking for strcasecmp in -lresolve" >&5
21530 echo $ECHO_N "checking for strcasecmp in -lresolve... $ECHO_C" >&6
21531 if test "${ac_cv_lib_resolve_strcasecmp+set}" = set; then
21532   echo $ECHO_N "(cached) $ECHO_C" >&6
21533 else
21534   ac_check_lib_save_LIBS=$LIBS
21535 LIBS="-lresolve -lnsl $LIBS"
21536 cat >conftest.$ac_ext <<_ACEOF
21537 /* confdefs.h.  */
21538 _ACEOF
21539 cat confdefs.h >>conftest.$ac_ext
21540 cat >>conftest.$ac_ext <<_ACEOF
21541 /* end confdefs.h.  */
21542
21543 /* Override any gcc2 internal prototype to avoid an error.  */
21544 #ifdef __cplusplus
21545 extern "C"
21546 #endif
21547 /* We use char because int might match the return type of a gcc2
21548    builtin and then its argument prototype would still apply.  */
21549 char strcasecmp ();
21550 int
21551 main ()
21552 {
21553 strcasecmp ();
21554   ;
21555   return 0;
21556 }
21557 _ACEOF
21558 rm -f conftest.$ac_objext conftest$ac_exeext
21559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21560   (eval $ac_link) 2>conftest.er1
21561   ac_status=$?
21562   grep -v '^ *+' conftest.er1 >conftest.err
21563   rm -f conftest.er1
21564   cat conftest.err >&5
21565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21566   (exit $ac_status); } &&
21567          { ac_try='test -z "$ac_c_werror_flag"
21568                          || test ! -s conftest.err'
21569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21570   (eval $ac_try) 2>&5
21571   ac_status=$?
21572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573   (exit $ac_status); }; } &&
21574          { ac_try='test -s conftest$ac_exeext'
21575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21576   (eval $ac_try) 2>&5
21577   ac_status=$?
21578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21579   (exit $ac_status); }; }; then
21580   ac_cv_lib_resolve_strcasecmp=yes
21581 else
21582   echo "$as_me: failed program was:" >&5
21583 sed 's/^/| /' conftest.$ac_ext >&5
21584
21585 ac_cv_lib_resolve_strcasecmp=no
21586 fi
21587 rm -f conftest.err conftest.$ac_objext \
21588       conftest$ac_exeext conftest.$ac_ext
21589 LIBS=$ac_check_lib_save_LIBS
21590 fi
21591 echo "$as_me:$LINENO: result: $ac_cv_lib_resolve_strcasecmp" >&5
21592 echo "${ECHO_T}$ac_cv_lib_resolve_strcasecmp" >&6
21593 if test $ac_cv_lib_resolve_strcasecmp = yes; then
21594   LIBS="-lresolve $LIBS"
21595 fi
21596
21597 fi
21598
21599 echo "$as_me:$LINENO: checking for connect" >&5
21600 echo $ECHO_N "checking for connect... $ECHO_C" >&6
21601 if test "${ac_cv_func_connect+set}" = set; then
21602   echo $ECHO_N "(cached) $ECHO_C" >&6
21603 else
21604   cat >conftest.$ac_ext <<_ACEOF
21605 /* confdefs.h.  */
21606 _ACEOF
21607 cat confdefs.h >>conftest.$ac_ext
21608 cat >>conftest.$ac_ext <<_ACEOF
21609 /* end confdefs.h.  */
21610 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
21611    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21612 #define connect innocuous_connect
21613
21614 /* System header to define __stub macros and hopefully few prototypes,
21615     which can conflict with char connect (); below.
21616     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21617     <limits.h> exists even on freestanding compilers.  */
21618
21619 #ifdef __STDC__
21620 # include <limits.h>
21621 #else
21622 # include <assert.h>
21623 #endif
21624
21625 #undef connect
21626
21627 /* Override any gcc2 internal prototype to avoid an error.  */
21628 #ifdef __cplusplus
21629 extern "C"
21630 {
21631 #endif
21632 /* We use char because int might match the return type of a gcc2
21633    builtin and then its argument prototype would still apply.  */
21634 char connect ();
21635 /* The GNU C library defines this for functions which it implements
21636     to always fail with ENOSYS.  Some functions are actually named
21637     something starting with __ and the normal name is an alias.  */
21638 #if defined (__stub_connect) || defined (__stub___connect)
21639 choke me
21640 #else
21641 char (*f) () = connect;
21642 #endif
21643 #ifdef __cplusplus
21644 }
21645 #endif
21646
21647 int
21648 main ()
21649 {
21650 return f != connect;
21651   ;
21652   return 0;
21653 }
21654 _ACEOF
21655 rm -f conftest.$ac_objext conftest$ac_exeext
21656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21657   (eval $ac_link) 2>conftest.er1
21658   ac_status=$?
21659   grep -v '^ *+' conftest.er1 >conftest.err
21660   rm -f conftest.er1
21661   cat conftest.err >&5
21662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21663   (exit $ac_status); } &&
21664          { ac_try='test -z "$ac_c_werror_flag"
21665                          || test ! -s conftest.err'
21666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21667   (eval $ac_try) 2>&5
21668   ac_status=$?
21669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21670   (exit $ac_status); }; } &&
21671          { ac_try='test -s conftest$ac_exeext'
21672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21673   (eval $ac_try) 2>&5
21674   ac_status=$?
21675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21676   (exit $ac_status); }; }; then
21677   ac_cv_func_connect=yes
21678 else
21679   echo "$as_me: failed program was:" >&5
21680 sed 's/^/| /' conftest.$ac_ext >&5
21681
21682 ac_cv_func_connect=no
21683 fi
21684 rm -f conftest.err conftest.$ac_objext \
21685       conftest$ac_exeext conftest.$ac_ext
21686 fi
21687 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
21688 echo "${ECHO_T}$ac_cv_func_connect" >&6
21689 if test $ac_cv_func_connect = yes; then
21690   :
21691 else
21692
21693 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
21694 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
21695 if test "${ac_cv_lib_socket_connect+set}" = set; then
21696   echo $ECHO_N "(cached) $ECHO_C" >&6
21697 else
21698   ac_check_lib_save_LIBS=$LIBS
21699 LIBS="-lsocket  $LIBS"
21700 cat >conftest.$ac_ext <<_ACEOF
21701 /* confdefs.h.  */
21702 _ACEOF
21703 cat confdefs.h >>conftest.$ac_ext
21704 cat >>conftest.$ac_ext <<_ACEOF
21705 /* end confdefs.h.  */
21706
21707 /* Override any gcc2 internal prototype to avoid an error.  */
21708 #ifdef __cplusplus
21709 extern "C"
21710 #endif
21711 /* We use char because int might match the return type of a gcc2
21712    builtin and then its argument prototype would still apply.  */
21713 char connect ();
21714 int
21715 main ()
21716 {
21717 connect ();
21718   ;
21719   return 0;
21720 }
21721 _ACEOF
21722 rm -f conftest.$ac_objext conftest$ac_exeext
21723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21724   (eval $ac_link) 2>conftest.er1
21725   ac_status=$?
21726   grep -v '^ *+' conftest.er1 >conftest.err
21727   rm -f conftest.er1
21728   cat conftest.err >&5
21729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21730   (exit $ac_status); } &&
21731          { ac_try='test -z "$ac_c_werror_flag"
21732                          || test ! -s conftest.err'
21733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21734   (eval $ac_try) 2>&5
21735   ac_status=$?
21736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737   (exit $ac_status); }; } &&
21738          { ac_try='test -s conftest$ac_exeext'
21739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21740   (eval $ac_try) 2>&5
21741   ac_status=$?
21742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21743   (exit $ac_status); }; }; then
21744   ac_cv_lib_socket_connect=yes
21745 else
21746   echo "$as_me: failed program was:" >&5
21747 sed 's/^/| /' conftest.$ac_ext >&5
21748
21749 ac_cv_lib_socket_connect=no
21750 fi
21751 rm -f conftest.err conftest.$ac_objext \
21752       conftest$ac_exeext conftest.$ac_ext
21753 LIBS=$ac_check_lib_save_LIBS
21754 fi
21755 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
21756 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
21757 if test $ac_cv_lib_socket_connect = yes; then
21758   cat >>confdefs.h <<_ACEOF
21759 #define HAVE_LIBSOCKET 1
21760 _ACEOF
21761
21762   LIBS="-lsocket $LIBS"
21763
21764 fi
21765
21766 fi
21767
21768
21769 echo "$as_me:$LINENO: checking for dlclose" >&5
21770 echo $ECHO_N "checking for dlclose... $ECHO_C" >&6
21771 if test "${ac_cv_func_dlclose+set}" = set; then
21772   echo $ECHO_N "(cached) $ECHO_C" >&6
21773 else
21774   cat >conftest.$ac_ext <<_ACEOF
21775 /* confdefs.h.  */
21776 _ACEOF
21777 cat confdefs.h >>conftest.$ac_ext
21778 cat >>conftest.$ac_ext <<_ACEOF
21779 /* end confdefs.h.  */
21780 /* Define dlclose to an innocuous variant, in case <limits.h> declares dlclose.
21781    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21782 #define dlclose innocuous_dlclose
21783
21784 /* System header to define __stub macros and hopefully few prototypes,
21785     which can conflict with char dlclose (); below.
21786     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21787     <limits.h> exists even on freestanding compilers.  */
21788
21789 #ifdef __STDC__
21790 # include <limits.h>
21791 #else
21792 # include <assert.h>
21793 #endif
21794
21795 #undef dlclose
21796
21797 /* Override any gcc2 internal prototype to avoid an error.  */
21798 #ifdef __cplusplus
21799 extern "C"
21800 {
21801 #endif
21802 /* We use char because int might match the return type of a gcc2
21803    builtin and then its argument prototype would still apply.  */
21804 char dlclose ();
21805 /* The GNU C library defines this for functions which it implements
21806     to always fail with ENOSYS.  Some functions are actually named
21807     something starting with __ and the normal name is an alias.  */
21808 #if defined (__stub_dlclose) || defined (__stub___dlclose)
21809 choke me
21810 #else
21811 char (*f) () = dlclose;
21812 #endif
21813 #ifdef __cplusplus
21814 }
21815 #endif
21816
21817 int
21818 main ()
21819 {
21820 return f != dlclose;
21821   ;
21822   return 0;
21823 }
21824 _ACEOF
21825 rm -f conftest.$ac_objext conftest$ac_exeext
21826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21827   (eval $ac_link) 2>conftest.er1
21828   ac_status=$?
21829   grep -v '^ *+' conftest.er1 >conftest.err
21830   rm -f conftest.er1
21831   cat conftest.err >&5
21832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833   (exit $ac_status); } &&
21834          { ac_try='test -z "$ac_c_werror_flag"
21835                          || test ! -s conftest.err'
21836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21837   (eval $ac_try) 2>&5
21838   ac_status=$?
21839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21840   (exit $ac_status); }; } &&
21841          { ac_try='test -s conftest$ac_exeext'
21842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21843   (eval $ac_try) 2>&5
21844   ac_status=$?
21845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21846   (exit $ac_status); }; }; then
21847   ac_cv_func_dlclose=yes
21848 else
21849   echo "$as_me: failed program was:" >&5
21850 sed 's/^/| /' conftest.$ac_ext >&5
21851
21852 ac_cv_func_dlclose=no
21853 fi
21854 rm -f conftest.err conftest.$ac_objext \
21855       conftest$ac_exeext conftest.$ac_ext
21856 fi
21857 echo "$as_me:$LINENO: result: $ac_cv_func_dlclose" >&5
21858 echo "${ECHO_T}$ac_cv_func_dlclose" >&6
21859 if test $ac_cv_func_dlclose = yes; then
21860   :
21861 else
21862
21863 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
21864 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
21865 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
21866   echo $ECHO_N "(cached) $ECHO_C" >&6
21867 else
21868   ac_check_lib_save_LIBS=$LIBS
21869 LIBS="-ldl  $LIBS"
21870 cat >conftest.$ac_ext <<_ACEOF
21871 /* confdefs.h.  */
21872 _ACEOF
21873 cat confdefs.h >>conftest.$ac_ext
21874 cat >>conftest.$ac_ext <<_ACEOF
21875 /* end confdefs.h.  */
21876
21877 /* Override any gcc2 internal prototype to avoid an error.  */
21878 #ifdef __cplusplus
21879 extern "C"
21880 #endif
21881 /* We use char because int might match the return type of a gcc2
21882    builtin and then its argument prototype would still apply.  */
21883 char dlopen ();
21884 int
21885 main ()
21886 {
21887 dlopen ();
21888   ;
21889   return 0;
21890 }
21891 _ACEOF
21892 rm -f conftest.$ac_objext conftest$ac_exeext
21893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21894   (eval $ac_link) 2>conftest.er1
21895   ac_status=$?
21896   grep -v '^ *+' conftest.er1 >conftest.err
21897   rm -f conftest.er1
21898   cat conftest.err >&5
21899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21900   (exit $ac_status); } &&
21901          { ac_try='test -z "$ac_c_werror_flag"
21902                          || test ! -s conftest.err'
21903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21904   (eval $ac_try) 2>&5
21905   ac_status=$?
21906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21907   (exit $ac_status); }; } &&
21908          { ac_try='test -s conftest$ac_exeext'
21909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21910   (eval $ac_try) 2>&5
21911   ac_status=$?
21912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21913   (exit $ac_status); }; }; then
21914   ac_cv_lib_dl_dlopen=yes
21915 else
21916   echo "$as_me: failed program was:" >&5
21917 sed 's/^/| /' conftest.$ac_ext >&5
21918
21919 ac_cv_lib_dl_dlopen=no
21920 fi
21921 rm -f conftest.err conftest.$ac_objext \
21922       conftest$ac_exeext conftest.$ac_ext
21923 LIBS=$ac_check_lib_save_LIBS
21924 fi
21925 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21926 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
21927 if test $ac_cv_lib_dl_dlopen = yes; then
21928   cat >>confdefs.h <<_ACEOF
21929 #define HAVE_LIBDL 1
21930 _ACEOF
21931
21932   LIBS="-ldl $LIBS"
21933
21934 fi
21935
21936 fi
21937
21938
21939 echo "$as_me:$LINENO: checking whether to use libgcc" >&5
21940 echo $ECHO_N "checking whether to use libgcc... $ECHO_C" >&6
21941 # Check whether --enable-libgcc or --disable-libgcc was given.
21942 if test "${enable_libgcc+set}" = set; then
21943   enableval="$enable_libgcc"
21944    case "$enableval" in
21945   yes)
21946         LIBS="$LIBS -lgcc"
21947        echo "$as_me:$LINENO: result: yes" >&5
21948 echo "${ECHO_T}yes" >&6
21949        ;;
21950   *)   echo "$as_me:$LINENO: result: no" >&5
21951 echo "${ECHO_T}no" >&6
21952        ;;
21953   esac
21954 else
21955   echo "$as_me:$LINENO: result: no" >&5
21956 echo "${ECHO_T}no" >&6
21957
21958 fi;
21959
21960
21961 echo "$as_me:$LINENO: checking for timeGetTime in winmm" >&5
21962 echo $ECHO_N "checking for timeGetTime in winmm... $ECHO_C" >&6
21963 my_ac_save_LIBS=$LIBS
21964 LIBS="-lwinmm $LIBS"
21965 cat >conftest.$ac_ext <<_ACEOF
21966 /* confdefs.h.  */
21967 _ACEOF
21968 cat confdefs.h >>conftest.$ac_ext
21969 cat >>conftest.$ac_ext <<_ACEOF
21970 /* end confdefs.h.  */
21971 #include <windef.h>
21972              #include <mmsystem.h>
21973
21974 int
21975 main ()
21976 {
21977 timeGetTime();
21978   ;
21979   return 0;
21980 }
21981 _ACEOF
21982 rm -f conftest.$ac_objext conftest$ac_exeext
21983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21984   (eval $ac_link) 2>conftest.er1
21985   ac_status=$?
21986   grep -v '^ *+' conftest.er1 >conftest.err
21987   rm -f conftest.er1
21988   cat conftest.err >&5
21989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21990   (exit $ac_status); } &&
21991          { ac_try='test -z "$ac_c_werror_flag"
21992                          || test ! -s conftest.err'
21993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21994   (eval $ac_try) 2>&5
21995   ac_status=$?
21996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21997   (exit $ac_status); }; } &&
21998          { ac_try='test -s conftest$ac_exeext'
21999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22000   (eval $ac_try) 2>&5
22001   ac_status=$?
22002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22003   (exit $ac_status); }; }; then
22004                 echo "$as_me:$LINENO: result: yes" >&5
22005 echo "${ECHO_T}yes" >&6
22006
22007 else
22008   echo "$as_me: failed program was:" >&5
22009 sed 's/^/| /' conftest.$ac_ext >&5
22010
22011               LIBS=$my_ac_save_LIBS
22012              echo "$as_me:$LINENO: result: no" >&5
22013 echo "${ECHO_T}no" >&6
22014
22015 fi
22016 rm -f conftest.err conftest.$ac_objext \
22017       conftest$ac_exeext conftest.$ac_ext
22018
22019
22020 echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
22021 echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6
22022 # Check whether --enable-ipv6 or --disable-ipv6 was given.
22023 if test "${enable_ipv6+set}" = set; then
22024   enableval="$enable_ipv6"
22025    case "$enableval" in
22026   no)
22027        echo "$as_me:$LINENO: result: no" >&5
22028 echo "${ECHO_T}no" >&6
22029        ipv6=no
22030        ;;
22031   *)   echo "$as_me:$LINENO: result: yes" >&5
22032 echo "${ECHO_T}yes" >&6
22033        ipv6=yes
22034        ;;
22035   esac
22036 else
22037   if test "$cross_compiling" = yes; then
22038   echo "$as_me:$LINENO: result: no" >&5
22039 echo "${ECHO_T}no" >&6
22040   ipv6=no
22041
22042 else
22043   cat >conftest.$ac_ext <<_ACEOF
22044 /* confdefs.h.  */
22045 _ACEOF
22046 cat confdefs.h >>conftest.$ac_ext
22047 cat >>conftest.$ac_ext <<_ACEOF
22048 /* end confdefs.h.  */
22049  /* is AF_INET6 available? */
22050 #include <sys/types.h>
22051 #include <sys/socket.h>
22052 main()
22053 {
22054  if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
22055    exit(1);
22056  else
22057    exit(0);
22058 }
22059
22060 _ACEOF
22061 rm -f conftest$ac_exeext
22062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22063   (eval $ac_link) 2>&5
22064   ac_status=$?
22065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22068   (eval $ac_try) 2>&5
22069   ac_status=$?
22070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22071   (exit $ac_status); }; }; then
22072   echo "$as_me:$LINENO: result: yes" >&5
22073 echo "${ECHO_T}yes" >&6
22074   ipv6=yes
22075 else
22076   echo "$as_me: program exited with status $ac_status" >&5
22077 echo "$as_me: failed program was:" >&5
22078 sed 's/^/| /' conftest.$ac_ext >&5
22079
22080 ( exit $ac_status )
22081 echo "$as_me:$LINENO: result: no" >&5
22082 echo "${ECHO_T}no" >&6
22083   ipv6=no
22084 fi
22085 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22086 fi
22087 fi;
22088
22089 if test "$ipv6" = "yes"; then
22090
22091   echo "$as_me:$LINENO: checking for working getaddrinfo" >&5
22092 echo $ECHO_N "checking for working getaddrinfo... $ECHO_C" >&6
22093 if test "${ac_cv_working_getaddrinfo+set}" = set; then
22094   echo $ECHO_N "(cached) $ECHO_C" >&6
22095 else
22096
22097   if test "$cross_compiling" = yes; then
22098
22099   ac_cv_working_getaddrinfo="yes"
22100
22101 else
22102   cat >conftest.$ac_ext <<_ACEOF
22103 /* confdefs.h.  */
22104 _ACEOF
22105 cat confdefs.h >>conftest.$ac_ext
22106 cat >>conftest.$ac_ext <<_ACEOF
22107 /* end confdefs.h.  */
22108
22109 #include <netdb.h>
22110 #include <sys/types.h>
22111 #include <sys/socket.h>
22112
22113 void main(void) {
22114     struct addrinfo hints, *ai;
22115     int error;
22116
22117     memset(&hints, 0, sizeof(hints));
22118     hints.ai_family = AF_UNSPEC;
22119     hints.ai_socktype = SOCK_STREAM;
22120     error = getaddrinfo("127.0.0.1", "8080", &hints, &ai);
22121     if (error) {
22122         exit(1);
22123     }
22124     else {
22125         exit(0);
22126     }
22127 }
22128
22129 _ACEOF
22130 rm -f conftest$ac_exeext
22131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22132   (eval $ac_link) 2>&5
22133   ac_status=$?
22134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22135   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22137   (eval $ac_try) 2>&5
22138   ac_status=$?
22139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22140   (exit $ac_status); }; }; then
22141
22142   ac_cv_working_getaddrinfo="yes"
22143
22144 else
22145   echo "$as_me: program exited with status $ac_status" >&5
22146 echo "$as_me: failed program was:" >&5
22147 sed 's/^/| /' conftest.$ac_ext >&5
22148
22149 ( exit $ac_status )
22150
22151   ac_cv_working_getaddrinfo="no"
22152
22153 fi
22154 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22155 fi
22156 fi
22157 echo "$as_me:$LINENO: result: $ac_cv_working_getaddrinfo" >&5
22158 echo "${ECHO_T}$ac_cv_working_getaddrinfo" >&6
22159 if test "$ac_cv_working_getaddrinfo" = "yes"; then
22160
22161 cat >>confdefs.h <<\_ACEOF
22162 #define HAVE_GETADDRINFO 1
22163 _ACEOF
22164
22165
22166 cat >>confdefs.h <<\_ACEOF
22167 #define ENABLE_IPV6 1
22168 _ACEOF
22169
22170
22171   IPV6_ENABLED=1
22172
22173 fi
22174
22175 fi
22176
22177 # Check whether --enable-nonblocking or --disable-nonblocking was given.
22178 if test "${enable_nonblocking+set}" = set; then
22179   enableval="$enable_nonblocking"
22180
22181   if test "$enableval" = "no" ; then
22182     { echo "$as_me:$LINENO: WARNING: non-blocking sockets disabled" >&5
22183 echo "$as_me: WARNING: non-blocking sockets disabled" >&2;}
22184
22185 cat >>confdefs.h <<\_ACEOF
22186 #define HAVE_DISABLED_NONBLOCKING 1
22187 _ACEOF
22188
22189   else
22190
22191   echo "$as_me:$LINENO: checking non-blocking sockets style" >&5
22192 echo $ECHO_N "checking non-blocking sockets style... $ECHO_C" >&6
22193
22194   cat >conftest.$ac_ext <<_ACEOF
22195 /* confdefs.h.  */
22196 _ACEOF
22197 cat confdefs.h >>conftest.$ac_ext
22198 cat >>conftest.$ac_ext <<_ACEOF
22199 /* end confdefs.h.  */
22200
22201 /* headers for O_NONBLOCK test */
22202 #include <sys/types.h>
22203 #include <unistd.h>
22204 #include <fcntl.h>
22205
22206 int
22207 main ()
22208 {
22209
22210 /* try to compile O_NONBLOCK */
22211
22212 #if defined(sun) || defined(__sun__) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
22213 # if defined(__SVR4) || defined(__srv4__)
22214 #  define PLATFORM_SOLARIS
22215 # else
22216 #  define PLATFORM_SUNOS4
22217 # endif
22218 #endif
22219 #if (defined(_AIX) || defined(__xlC__)) && !defined(_AIX4)
22220 # define PLATFORM_AIX_V3
22221 #endif
22222
22223 #if defined(PLATFORM_SUNOS4) || defined(PLATFORM_AIX_V3) || defined(__BEOS__)
22224 #error "O_NONBLOCK does not work on this platform"
22225 #endif
22226   int socket;
22227   int flags = fcntl(socket, F_SETFL, flags | O_NONBLOCK);
22228
22229   ;
22230   return 0;
22231 }
22232 _ACEOF
22233 rm -f conftest.$ac_objext
22234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22235   (eval $ac_compile) 2>conftest.er1
22236   ac_status=$?
22237   grep -v '^ *+' conftest.er1 >conftest.err
22238   rm -f conftest.er1
22239   cat conftest.err >&5
22240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22241   (exit $ac_status); } &&
22242          { ac_try='test -z "$ac_c_werror_flag"
22243                          || test ! -s conftest.err'
22244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22245   (eval $ac_try) 2>&5
22246   ac_status=$?
22247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22248   (exit $ac_status); }; } &&
22249          { ac_try='test -s conftest.$ac_objext'
22250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22251   (eval $ac_try) 2>&5
22252   ac_status=$?
22253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22254   (exit $ac_status); }; }; then
22255
22256 nonblock="O_NONBLOCK"
22257
22258 cat >>confdefs.h <<\_ACEOF
22259 #define HAVE_O_NONBLOCK 1
22260 _ACEOF
22261
22262
22263 else
22264   echo "$as_me: failed program was:" >&5
22265 sed 's/^/| /' conftest.$ac_ext >&5
22266
22267
22268
22269   cat >conftest.$ac_ext <<_ACEOF
22270 /* confdefs.h.  */
22271 _ACEOF
22272 cat confdefs.h >>conftest.$ac_ext
22273 cat >>conftest.$ac_ext <<_ACEOF
22274 /* end confdefs.h.  */
22275
22276 /* headers for FIONBIO test */
22277 #include <unistd.h>
22278 #include <stropts.h>
22279
22280 int
22281 main ()
22282 {
22283
22284 /* FIONBIO source test (old-style unix) */
22285  int socket;
22286  int flags = ioctl(socket, FIONBIO, &flags);
22287
22288   ;
22289   return 0;
22290 }
22291 _ACEOF
22292 rm -f conftest.$ac_objext
22293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22294   (eval $ac_compile) 2>conftest.er1
22295   ac_status=$?
22296   grep -v '^ *+' conftest.er1 >conftest.err
22297   rm -f conftest.er1
22298   cat conftest.err >&5
22299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22300   (exit $ac_status); } &&
22301          { ac_try='test -z "$ac_c_werror_flag"
22302                          || test ! -s conftest.err'
22303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22304   (eval $ac_try) 2>&5
22305   ac_status=$?
22306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22307   (exit $ac_status); }; } &&
22308          { ac_try='test -s conftest.$ac_objext'
22309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22310   (eval $ac_try) 2>&5
22311   ac_status=$?
22312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22313   (exit $ac_status); }; }; then
22314
22315 nonblock="FIONBIO"
22316
22317 cat >>confdefs.h <<\_ACEOF
22318 #define HAVE_FIONBIO 1
22319 _ACEOF
22320
22321
22322 else
22323   echo "$as_me: failed program was:" >&5
22324 sed 's/^/| /' conftest.$ac_ext >&5
22325
22326
22327
22328   cat >conftest.$ac_ext <<_ACEOF
22329 /* confdefs.h.  */
22330 _ACEOF
22331 cat confdefs.h >>conftest.$ac_ext
22332 cat >>conftest.$ac_ext <<_ACEOF
22333 /* end confdefs.h.  */
22334
22335 /* headers for ioctlsocket test (cygwin?) */
22336 #include <windows.h>
22337
22338 int
22339 main ()
22340 {
22341
22342 /* ioctlsocket source code */
22343  int socket;
22344  int flags = ioctlsocket(socket, FIONBIO, &flags);
22345
22346   ;
22347   return 0;
22348 }
22349 _ACEOF
22350 rm -f conftest.$ac_objext
22351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22352   (eval $ac_compile) 2>conftest.er1
22353   ac_status=$?
22354   grep -v '^ *+' conftest.er1 >conftest.err
22355   rm -f conftest.er1
22356   cat conftest.err >&5
22357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22358   (exit $ac_status); } &&
22359          { ac_try='test -z "$ac_c_werror_flag"
22360                          || 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
22373 nonblock="ioctlsocket"
22374
22375 cat >>confdefs.h <<\_ACEOF
22376 #define HAVE_IOCTLSOCKET 1
22377 _ACEOF
22378
22379
22380 else
22381   echo "$as_me: failed program was:" >&5
22382 sed 's/^/| /' conftest.$ac_ext >&5
22383
22384
22385
22386   cat >conftest.$ac_ext <<_ACEOF
22387 /* confdefs.h.  */
22388 _ACEOF
22389 cat confdefs.h >>conftest.$ac_ext
22390 cat >>conftest.$ac_ext <<_ACEOF
22391 /* end confdefs.h.  */
22392
22393 /* headers for IoctlSocket test (Amiga?) */
22394 #include <sys/ioctl.h>
22395
22396 int
22397 main ()
22398 {
22399
22400 /* IoctlSocket source code */
22401  int socket;
22402  int flags = IoctlSocket(socket, FIONBIO, (long)1);
22403
22404   ;
22405   return 0;
22406 }
22407 _ACEOF
22408 rm -f conftest.$ac_objext conftest$ac_exeext
22409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22410   (eval $ac_link) 2>conftest.er1
22411   ac_status=$?
22412   grep -v '^ *+' conftest.er1 >conftest.err
22413   rm -f conftest.er1
22414   cat conftest.err >&5
22415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22416   (exit $ac_status); } &&
22417          { ac_try='test -z "$ac_c_werror_flag"
22418                          || test ! -s conftest.err'
22419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22420   (eval $ac_try) 2>&5
22421   ac_status=$?
22422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22423   (exit $ac_status); }; } &&
22424          { ac_try='test -s conftest$ac_exeext'
22425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22426   (eval $ac_try) 2>&5
22427   ac_status=$?
22428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22429   (exit $ac_status); }; }; then
22430
22431 nonblock="IoctlSocket"
22432
22433 cat >>confdefs.h <<\_ACEOF
22434 #define HAVE_IOCTLSOCKET_CASE 1
22435 _ACEOF
22436
22437
22438 else
22439   echo "$as_me: failed program was:" >&5
22440 sed 's/^/| /' conftest.$ac_ext >&5
22441
22442
22443   cat >conftest.$ac_ext <<_ACEOF
22444 /* confdefs.h.  */
22445 _ACEOF
22446 cat confdefs.h >>conftest.$ac_ext
22447 cat >>conftest.$ac_ext <<_ACEOF
22448 /* end confdefs.h.  */
22449
22450 /* headers for SO_NONBLOCK test (BeOS) */
22451 #include <sys/types.h>
22452 #include <unistd.h>
22453 #include <fcntl.h>
22454
22455 int
22456 main ()
22457 {
22458
22459 /* SO_NONBLOCK source code */
22460  long b = 1;
22461  int socket;
22462  int flags = setsockopt(socket, SOL_SOCKET, SO_NONBLOCK, &b, sizeof(b));
22463
22464   ;
22465   return 0;
22466 }
22467 _ACEOF
22468 rm -f conftest.$ac_objext
22469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22470   (eval $ac_compile) 2>conftest.er1
22471   ac_status=$?
22472   grep -v '^ *+' conftest.er1 >conftest.err
22473   rm -f conftest.er1
22474   cat conftest.err >&5
22475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22476   (exit $ac_status); } &&
22477          { ac_try='test -z "$ac_c_werror_flag"
22478                          || test ! -s conftest.err'
22479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22480   (eval $ac_try) 2>&5
22481   ac_status=$?
22482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22483   (exit $ac_status); }; } &&
22484          { ac_try='test -s conftest.$ac_objext'
22485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22486   (eval $ac_try) 2>&5
22487   ac_status=$?
22488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22489   (exit $ac_status); }; }; then
22490
22491 nonblock="SO_NONBLOCK"
22492
22493 cat >>confdefs.h <<\_ACEOF
22494 #define HAVE_SO_NONBLOCK 1
22495 _ACEOF
22496
22497
22498 else
22499   echo "$as_me: failed program was:" >&5
22500 sed 's/^/| /' conftest.$ac_ext >&5
22501
22502
22503 nonblock="nada"
22504
22505 cat >>confdefs.h <<\_ACEOF
22506 #define HAVE_DISABLED_NONBLOCKING 1
22507 _ACEOF
22508
22509
22510 fi
22511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22512
22513
22514 fi
22515 rm -f conftest.err conftest.$ac_objext \
22516       conftest$ac_exeext conftest.$ac_ext
22517
22518
22519 fi
22520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22521
22522
22523 fi
22524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22525
22526
22527 fi
22528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22529   echo "$as_me:$LINENO: result: $nonblock" >&5
22530 echo "${ECHO_T}$nonblock" >&6
22531
22532   if test "$nonblock" = "nada"; then
22533     { echo "$as_me:$LINENO: WARNING: non-block sockets disabled" >&5
22534 echo "$as_me: WARNING: non-block sockets disabled" >&2;}
22535   fi
22536
22537   fi
22538
22539 else
22540
22541
22542   echo "$as_me:$LINENO: checking non-blocking sockets style" >&5
22543 echo $ECHO_N "checking non-blocking sockets style... $ECHO_C" >&6
22544
22545   cat >conftest.$ac_ext <<_ACEOF
22546 /* confdefs.h.  */
22547 _ACEOF
22548 cat confdefs.h >>conftest.$ac_ext
22549 cat >>conftest.$ac_ext <<_ACEOF
22550 /* end confdefs.h.  */
22551
22552 /* headers for O_NONBLOCK test */
22553 #include <sys/types.h>
22554 #include <unistd.h>
22555 #include <fcntl.h>
22556
22557 int
22558 main ()
22559 {
22560
22561 /* try to compile O_NONBLOCK */
22562
22563 #if defined(sun) || defined(__sun__) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
22564 # if defined(__SVR4) || defined(__srv4__)
22565 #  define PLATFORM_SOLARIS
22566 # else
22567 #  define PLATFORM_SUNOS4
22568 # endif
22569 #endif
22570 #if (defined(_AIX) || defined(__xlC__)) && !defined(_AIX4)
22571 # define PLATFORM_AIX_V3
22572 #endif
22573
22574 #if defined(PLATFORM_SUNOS4) || defined(PLATFORM_AIX_V3) || defined(__BEOS__)
22575 #error "O_NONBLOCK does not work on this platform"
22576 #endif
22577   int socket;
22578   int flags = fcntl(socket, F_SETFL, flags | O_NONBLOCK);
22579
22580   ;
22581   return 0;
22582 }
22583 _ACEOF
22584 rm -f conftest.$ac_objext
22585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22586   (eval $ac_compile) 2>conftest.er1
22587   ac_status=$?
22588   grep -v '^ *+' conftest.er1 >conftest.err
22589   rm -f conftest.er1
22590   cat conftest.err >&5
22591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22592   (exit $ac_status); } &&
22593          { ac_try='test -z "$ac_c_werror_flag"
22594                          || test ! -s conftest.err'
22595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22596   (eval $ac_try) 2>&5
22597   ac_status=$?
22598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22599   (exit $ac_status); }; } &&
22600          { ac_try='test -s conftest.$ac_objext'
22601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22602   (eval $ac_try) 2>&5
22603   ac_status=$?
22604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22605   (exit $ac_status); }; }; then
22606
22607 nonblock="O_NONBLOCK"
22608
22609 cat >>confdefs.h <<\_ACEOF
22610 #define HAVE_O_NONBLOCK 1
22611 _ACEOF
22612
22613
22614 else
22615   echo "$as_me: failed program was:" >&5
22616 sed 's/^/| /' conftest.$ac_ext >&5
22617
22618
22619
22620   cat >conftest.$ac_ext <<_ACEOF
22621 /* confdefs.h.  */
22622 _ACEOF
22623 cat confdefs.h >>conftest.$ac_ext
22624 cat >>conftest.$ac_ext <<_ACEOF
22625 /* end confdefs.h.  */
22626
22627 /* headers for FIONBIO test */
22628 #include <unistd.h>
22629 #include <stropts.h>
22630
22631 int
22632 main ()
22633 {
22634
22635 /* FIONBIO source test (old-style unix) */
22636  int socket;
22637  int flags = ioctl(socket, FIONBIO, &flags);
22638
22639   ;
22640   return 0;
22641 }
22642 _ACEOF
22643 rm -f conftest.$ac_objext
22644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22645   (eval $ac_compile) 2>conftest.er1
22646   ac_status=$?
22647   grep -v '^ *+' conftest.er1 >conftest.err
22648   rm -f conftest.er1
22649   cat conftest.err >&5
22650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22651   (exit $ac_status); } &&
22652          { ac_try='test -z "$ac_c_werror_flag"
22653                          || test ! -s conftest.err'
22654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22655   (eval $ac_try) 2>&5
22656   ac_status=$?
22657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22658   (exit $ac_status); }; } &&
22659          { ac_try='test -s conftest.$ac_objext'
22660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22661   (eval $ac_try) 2>&5
22662   ac_status=$?
22663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22664   (exit $ac_status); }; }; then
22665
22666 nonblock="FIONBIO"
22667
22668 cat >>confdefs.h <<\_ACEOF
22669 #define HAVE_FIONBIO 1
22670 _ACEOF
22671
22672
22673 else
22674   echo "$as_me: failed program was:" >&5
22675 sed 's/^/| /' conftest.$ac_ext >&5
22676
22677
22678
22679   cat >conftest.$ac_ext <<_ACEOF
22680 /* confdefs.h.  */
22681 _ACEOF
22682 cat confdefs.h >>conftest.$ac_ext
22683 cat >>conftest.$ac_ext <<_ACEOF
22684 /* end confdefs.h.  */
22685
22686 /* headers for ioctlsocket test (cygwin?) */
22687 #include <windows.h>
22688
22689 int
22690 main ()
22691 {
22692
22693 /* ioctlsocket source code */
22694  int socket;
22695  int flags = ioctlsocket(socket, FIONBIO, &flags);
22696
22697   ;
22698   return 0;
22699 }
22700 _ACEOF
22701 rm -f conftest.$ac_objext
22702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22703   (eval $ac_compile) 2>conftest.er1
22704   ac_status=$?
22705   grep -v '^ *+' conftest.er1 >conftest.err
22706   rm -f conftest.er1
22707   cat conftest.err >&5
22708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22709   (exit $ac_status); } &&
22710          { ac_try='test -z "$ac_c_werror_flag"
22711                          || test ! -s conftest.err'
22712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22713   (eval $ac_try) 2>&5
22714   ac_status=$?
22715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22716   (exit $ac_status); }; } &&
22717          { ac_try='test -s conftest.$ac_objext'
22718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22719   (eval $ac_try) 2>&5
22720   ac_status=$?
22721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22722   (exit $ac_status); }; }; then
22723
22724 nonblock="ioctlsocket"
22725
22726 cat >>confdefs.h <<\_ACEOF
22727 #define HAVE_IOCTLSOCKET 1
22728 _ACEOF
22729
22730
22731 else
22732   echo "$as_me: failed program was:" >&5
22733 sed 's/^/| /' conftest.$ac_ext >&5
22734
22735
22736
22737   cat >conftest.$ac_ext <<_ACEOF
22738 /* confdefs.h.  */
22739 _ACEOF
22740 cat confdefs.h >>conftest.$ac_ext
22741 cat >>conftest.$ac_ext <<_ACEOF
22742 /* end confdefs.h.  */
22743
22744 /* headers for IoctlSocket test (Amiga?) */
22745 #include <sys/ioctl.h>
22746
22747 int
22748 main ()
22749 {
22750
22751 /* IoctlSocket source code */
22752  int socket;
22753  int flags = IoctlSocket(socket, FIONBIO, (long)1);
22754
22755   ;
22756   return 0;
22757 }
22758 _ACEOF
22759 rm -f conftest.$ac_objext conftest$ac_exeext
22760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22761   (eval $ac_link) 2>conftest.er1
22762   ac_status=$?
22763   grep -v '^ *+' conftest.er1 >conftest.err
22764   rm -f conftest.er1
22765   cat conftest.err >&5
22766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22767   (exit $ac_status); } &&
22768          { ac_try='test -z "$ac_c_werror_flag"
22769                          || test ! -s conftest.err'
22770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22771   (eval $ac_try) 2>&5
22772   ac_status=$?
22773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22774   (exit $ac_status); }; } &&
22775          { ac_try='test -s conftest$ac_exeext'
22776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22777   (eval $ac_try) 2>&5
22778   ac_status=$?
22779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22780   (exit $ac_status); }; }; then
22781
22782 nonblock="IoctlSocket"
22783
22784 cat >>confdefs.h <<\_ACEOF
22785 #define HAVE_IOCTLSOCKET_CASE 1
22786 _ACEOF
22787
22788
22789 else
22790   echo "$as_me: failed program was:" >&5
22791 sed 's/^/| /' conftest.$ac_ext >&5
22792
22793
22794   cat >conftest.$ac_ext <<_ACEOF
22795 /* confdefs.h.  */
22796 _ACEOF
22797 cat confdefs.h >>conftest.$ac_ext
22798 cat >>conftest.$ac_ext <<_ACEOF
22799 /* end confdefs.h.  */
22800
22801 /* headers for SO_NONBLOCK test (BeOS) */
22802 #include <sys/types.h>
22803 #include <unistd.h>
22804 #include <fcntl.h>
22805
22806 int
22807 main ()
22808 {
22809
22810 /* SO_NONBLOCK source code */
22811  long b = 1;
22812  int socket;
22813  int flags = setsockopt(socket, SOL_SOCKET, SO_NONBLOCK, &b, sizeof(b));
22814
22815   ;
22816   return 0;
22817 }
22818 _ACEOF
22819 rm -f conftest.$ac_objext
22820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22821   (eval $ac_compile) 2>conftest.er1
22822   ac_status=$?
22823   grep -v '^ *+' conftest.er1 >conftest.err
22824   rm -f conftest.er1
22825   cat conftest.err >&5
22826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22827   (exit $ac_status); } &&
22828          { ac_try='test -z "$ac_c_werror_flag"
22829                          || test ! -s conftest.err'
22830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22831   (eval $ac_try) 2>&5
22832   ac_status=$?
22833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22834   (exit $ac_status); }; } &&
22835          { ac_try='test -s conftest.$ac_objext'
22836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22837   (eval $ac_try) 2>&5
22838   ac_status=$?
22839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22840   (exit $ac_status); }; }; then
22841
22842 nonblock="SO_NONBLOCK"
22843
22844 cat >>confdefs.h <<\_ACEOF
22845 #define HAVE_SO_NONBLOCK 1
22846 _ACEOF
22847
22848
22849 else
22850   echo "$as_me: failed program was:" >&5
22851 sed 's/^/| /' conftest.$ac_ext >&5
22852
22853
22854 nonblock="nada"
22855
22856 cat >>confdefs.h <<\_ACEOF
22857 #define HAVE_DISABLED_NONBLOCKING 1
22858 _ACEOF
22859
22860
22861 fi
22862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22863
22864
22865 fi
22866 rm -f conftest.err conftest.$ac_objext \
22867       conftest$ac_exeext conftest.$ac_ext
22868
22869
22870 fi
22871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22872
22873
22874 fi
22875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22876
22877
22878 fi
22879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22880   echo "$as_me:$LINENO: result: $nonblock" >&5
22881 echo "${ECHO_T}$nonblock" >&6
22882
22883   if test "$nonblock" = "nada"; then
22884     { echo "$as_me:$LINENO: WARNING: non-block sockets disabled" >&5
22885 echo "$as_me: WARNING: non-block sockets disabled" >&2;}
22886   fi
22887
22888
22889 fi;
22890
22891
22892
22893 # Check whether --with-egd-socket or --without-egd-socket was given.
22894 if test "${with_egd_socket+set}" = set; then
22895   withval="$with_egd_socket"
22896    EGD_SOCKET="$withval"
22897
22898 fi;
22899 if test -n "$EGD_SOCKET" ; then
22900
22901 cat >>confdefs.h <<_ACEOF
22902 #define EGD_SOCKET "$EGD_SOCKET"
22903 _ACEOF
22904
22905 fi
22906
22907
22908 # Check whether --with-random or --without-random was given.
22909 if test "${with_random+set}" = set; then
22910   withval="$with_random"
22911    RANDOM_FILE="$withval"
22912 else
22913
22914                 echo "$as_me:$LINENO: checking for \"/dev/urandom\"" >&5
22915 echo $ECHO_N "checking for \"/dev/urandom\"... $ECHO_C" >&6
22916 if test "${ac_cv_file___dev_urandom_+set}" = set; then
22917   echo $ECHO_N "(cached) $ECHO_C" >&6
22918 else
22919   test "$cross_compiling" = yes &&
22920   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
22921 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
22922    { (exit 1); exit 1; }; }
22923 if test -r ""/dev/urandom""; then
22924   ac_cv_file___dev_urandom_=yes
22925 else
22926   ac_cv_file___dev_urandom_=no
22927 fi
22928 fi
22929 echo "$as_me:$LINENO: result: $ac_cv_file___dev_urandom_" >&5
22930 echo "${ECHO_T}$ac_cv_file___dev_urandom_" >&6
22931 if test $ac_cv_file___dev_urandom_ = yes; then
22932    RANDOM_FILE="/dev/urandom"
22933 fi
22934
22935
22936
22937 fi;
22938 if test -n "$RANDOM_FILE" ; then
22939
22940
22941 cat >>confdefs.h <<_ACEOF
22942 #define RANDOM_FILE "$RANDOM_FILE"
22943 _ACEOF
22944
22945 fi
22946
22947
22948 echo "$as_me:$LINENO: checking if argv can be written to" >&5
22949 echo $ECHO_N "checking if argv can be written to... $ECHO_C" >&6
22950 if test "${curl_cv_writable_argv+set}" = set; then
22951   echo $ECHO_N "(cached) $ECHO_C" >&6
22952 else
22953
22954 if test "$cross_compiling" = yes; then
22955   curl_cv_writable_argv=cross
22956 else
22957   cat >conftest.$ac_ext <<_ACEOF
22958
22959 int main(int argc, char ** argv) {
22960         argv[0][0] = ' ';
22961         return (argv[0][0] == ' ')?0:1;
22962 }
22963
22964 _ACEOF
22965 rm -f conftest$ac_exeext
22966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22967   (eval $ac_link) 2>&5
22968   ac_status=$?
22969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22970   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22972   (eval $ac_try) 2>&5
22973   ac_status=$?
22974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22975   (exit $ac_status); }; }; then
22976   curl_cv_writable_argv=yes
22977 else
22978   echo "$as_me: program exited with status $ac_status" >&5
22979 echo "$as_me: failed program was:" >&5
22980 sed 's/^/| /' conftest.$ac_ext >&5
22981
22982 ( exit $ac_status )
22983 curl_cv_writable_argv=no
22984 fi
22985 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22986 fi
22987
22988 fi
22989
22990 case $curl_cv_writable_argv in
22991 yes)
22992
22993 cat >>confdefs.h <<\_ACEOF
22994 #define HAVE_WRITABLE_ARGV 1
22995 _ACEOF
22996
22997         echo "$as_me:$LINENO: result: yes" >&5
22998 echo "${ECHO_T}yes" >&6
22999         ;;
23000 no)
23001         echo "$as_me:$LINENO: result: no" >&5
23002 echo "${ECHO_T}no" >&6
23003         ;;
23004 *)
23005         echo "$as_me:$LINENO: result: no" >&5
23006 echo "${ECHO_T}no" >&6
23007         { echo "$as_me:$LINENO: WARNING: the previous check could not be made default was used" >&5
23008 echo "$as_me: WARNING: the previous check could not be made default was used" >&2;}
23009         ;;
23010 esac
23011
23012
23013
23014 # Check whether --with-krb4-includes or --without-krb4-includes was given.
23015 if test "${with_krb4_includes+set}" = set; then
23016   withval="$with_krb4_includes"
23017
23018  CPPFLAGS="$CPPFLAGS -I$withval"
23019  KRB4INC="$withval"
23020  want_krb4=yes
23021
23022 fi;
23023
23024
23025 # Check whether --with-krb4-libs or --without-krb4-libs was given.
23026 if test "${with_krb4_libs+set}" = set; then
23027   withval="$with_krb4_libs"
23028
23029  LDFLAGS="$LDFLAGS -L$withval"
23030  KRB4LIB="$withval"
23031  want_krb4=yes
23032
23033 fi;
23034
23035
23036 OPT_KRB4=off
23037
23038 # Check whether --with-krb4 or --without-krb4 was given.
23039 if test "${with_krb4+set}" = set; then
23040   withval="$with_krb4"
23041
23042   OPT_KRB4="$withval"
23043   if test X"$OPT_KRB4" != Xyes
23044   then
23045     LDFLAGS="$LDFLAGS -L$OPT_KRB4/lib$libsuff"
23046     KRB4LIB="$OPT_KRB4/lib$libsuff"
23047     CPPFLAGS="$CPPFLAGS -I$OPT_KRB4/include"
23048     KRB4INC="$OPT_KRB4/include"
23049   fi
23050   want_krb4="yes"
23051
23052 fi;
23053
23054 echo "$as_me:$LINENO: checking if Kerberos4 support is requested" >&5
23055 echo $ECHO_N "checking if Kerberos4 support is requested... $ECHO_C" >&6
23056
23057 if test "$want_krb4" = yes
23058 then
23059   if test "$ipv6" = "yes"; then
23060     echo krb4 is not compatible with IPv6
23061     exit 1
23062   fi
23063   echo "$as_me:$LINENO: result: yes" >&5
23064 echo "${ECHO_T}yes" >&6
23065
23066
23067   echo "$as_me:$LINENO: checking where to look for Kerberos4" >&5
23068 echo $ECHO_N "checking where to look for Kerberos4... $ECHO_C" >&6
23069   if test X"$OPT_KRB4" = Xyes
23070   then
23071     echo "$as_me:$LINENO: result: defaults" >&5
23072 echo "${ECHO_T}defaults" >&6
23073   else
23074     echo "$as_me:$LINENO: result: libs in $KRB4LIB, headers in $KRB4INC" >&5
23075 echo "${ECHO_T}libs in $KRB4LIB, headers in $KRB4INC" >&6
23076   fi
23077
23078     echo "$as_me:$LINENO: checking for des_pcbc_encrypt in -ldes" >&5
23079 echo $ECHO_N "checking for des_pcbc_encrypt in -ldes... $ECHO_C" >&6
23080 if test "${ac_cv_lib_des_des_pcbc_encrypt+set}" = set; then
23081   echo $ECHO_N "(cached) $ECHO_C" >&6
23082 else
23083   ac_check_lib_save_LIBS=$LIBS
23084 LIBS="-ldes  $LIBS"
23085 cat >conftest.$ac_ext <<_ACEOF
23086 /* confdefs.h.  */
23087 _ACEOF
23088 cat confdefs.h >>conftest.$ac_ext
23089 cat >>conftest.$ac_ext <<_ACEOF
23090 /* end confdefs.h.  */
23091
23092 /* Override any gcc2 internal prototype to avoid an error.  */
23093 #ifdef __cplusplus
23094 extern "C"
23095 #endif
23096 /* We use char because int might match the return type of a gcc2
23097    builtin and then its argument prototype would still apply.  */
23098 char des_pcbc_encrypt ();
23099 int
23100 main ()
23101 {
23102 des_pcbc_encrypt ();
23103   ;
23104   return 0;
23105 }
23106 _ACEOF
23107 rm -f conftest.$ac_objext conftest$ac_exeext
23108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23109   (eval $ac_link) 2>conftest.er1
23110   ac_status=$?
23111   grep -v '^ *+' conftest.er1 >conftest.err
23112   rm -f conftest.er1
23113   cat conftest.err >&5
23114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23115   (exit $ac_status); } &&
23116          { ac_try='test -z "$ac_c_werror_flag"
23117                          || test ! -s conftest.err'
23118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23119   (eval $ac_try) 2>&5
23120   ac_status=$?
23121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23122   (exit $ac_status); }; } &&
23123          { ac_try='test -s conftest$ac_exeext'
23124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23125   (eval $ac_try) 2>&5
23126   ac_status=$?
23127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23128   (exit $ac_status); }; }; then
23129   ac_cv_lib_des_des_pcbc_encrypt=yes
23130 else
23131   echo "$as_me: failed program was:" >&5
23132 sed 's/^/| /' conftest.$ac_ext >&5
23133
23134 ac_cv_lib_des_des_pcbc_encrypt=no
23135 fi
23136 rm -f conftest.err conftest.$ac_objext \
23137       conftest$ac_exeext conftest.$ac_ext
23138 LIBS=$ac_check_lib_save_LIBS
23139 fi
23140 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_pcbc_encrypt" >&5
23141 echo "${ECHO_T}$ac_cv_lib_des_des_pcbc_encrypt" >&6
23142 if test $ac_cv_lib_des_des_pcbc_encrypt = yes; then
23143
23144
23145 for ac_header in des.h
23146 do
23147 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23149   echo "$as_me:$LINENO: checking for $ac_header" >&5
23150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23151 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23152   echo $ECHO_N "(cached) $ECHO_C" >&6
23153 fi
23154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23155 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23156 else
23157   # Is the header compilable?
23158 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23159 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23160 cat >conftest.$ac_ext <<_ACEOF
23161 /* confdefs.h.  */
23162 _ACEOF
23163 cat confdefs.h >>conftest.$ac_ext
23164 cat >>conftest.$ac_ext <<_ACEOF
23165 /* end confdefs.h.  */
23166 $ac_includes_default
23167 #include <$ac_header>
23168 _ACEOF
23169 rm -f conftest.$ac_objext
23170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23171   (eval $ac_compile) 2>conftest.er1
23172   ac_status=$?
23173   grep -v '^ *+' conftest.er1 >conftest.err
23174   rm -f conftest.er1
23175   cat conftest.err >&5
23176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23177   (exit $ac_status); } &&
23178          { ac_try='test -z "$ac_c_werror_flag"
23179                          || test ! -s conftest.err'
23180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23181   (eval $ac_try) 2>&5
23182   ac_status=$?
23183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23184   (exit $ac_status); }; } &&
23185          { ac_try='test -s conftest.$ac_objext'
23186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23187   (eval $ac_try) 2>&5
23188   ac_status=$?
23189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23190   (exit $ac_status); }; }; then
23191   ac_header_compiler=yes
23192 else
23193   echo "$as_me: failed program was:" >&5
23194 sed 's/^/| /' conftest.$ac_ext >&5
23195
23196 ac_header_compiler=no
23197 fi
23198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23199 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23200 echo "${ECHO_T}$ac_header_compiler" >&6
23201
23202 # Is the header present?
23203 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23204 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23205 cat >conftest.$ac_ext <<_ACEOF
23206 /* confdefs.h.  */
23207 _ACEOF
23208 cat confdefs.h >>conftest.$ac_ext
23209 cat >>conftest.$ac_ext <<_ACEOF
23210 /* end confdefs.h.  */
23211 #include <$ac_header>
23212 _ACEOF
23213 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23214   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23215   ac_status=$?
23216   grep -v '^ *+' conftest.er1 >conftest.err
23217   rm -f conftest.er1
23218   cat conftest.err >&5
23219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23220   (exit $ac_status); } >/dev/null; then
23221   if test -s conftest.err; then
23222     ac_cpp_err=$ac_c_preproc_warn_flag
23223     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23224   else
23225     ac_cpp_err=
23226   fi
23227 else
23228   ac_cpp_err=yes
23229 fi
23230 if test -z "$ac_cpp_err"; then
23231   ac_header_preproc=yes
23232 else
23233   echo "$as_me: failed program was:" >&5
23234 sed 's/^/| /' conftest.$ac_ext >&5
23235
23236   ac_header_preproc=no
23237 fi
23238 rm -f conftest.err conftest.$ac_ext
23239 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23240 echo "${ECHO_T}$ac_header_preproc" >&6
23241
23242 # So?  What about this header?
23243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23244   yes:no: )
23245     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23246 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23247     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23248 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23249     ac_header_preproc=yes
23250     ;;
23251   no:yes:* )
23252     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23253 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23254     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23255 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23256     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23257 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23258     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23259 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23260     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23261 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23262     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23263 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23264     (
23265       cat <<\_ASBOX
23266 ## ------------------------------- ##
23267 ## Report this to curl-bug@haxx.se ##
23268 ## ------------------------------- ##
23269 _ASBOX
23270     ) |
23271       sed "s/^/$as_me: WARNING:     /" >&2
23272     ;;
23273 esac
23274 echo "$as_me:$LINENO: checking for $ac_header" >&5
23275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23276 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23277   echo $ECHO_N "(cached) $ECHO_C" >&6
23278 else
23279   eval "$as_ac_Header=\$ac_header_preproc"
23280 fi
23281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23282 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23283
23284 fi
23285 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23286   cat >>confdefs.h <<_ACEOF
23287 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23288 _ACEOF
23289
23290 fi
23291
23292 done
23293
23294
23295         echo "$as_me:$LINENO: checking for res_search" >&5
23296 echo $ECHO_N "checking for res_search... $ECHO_C" >&6
23297 if test "${ac_cv_func_res_search+set}" = set; then
23298   echo $ECHO_N "(cached) $ECHO_C" >&6
23299 else
23300   cat >conftest.$ac_ext <<_ACEOF
23301 /* confdefs.h.  */
23302 _ACEOF
23303 cat confdefs.h >>conftest.$ac_ext
23304 cat >>conftest.$ac_ext <<_ACEOF
23305 /* end confdefs.h.  */
23306 /* Define res_search to an innocuous variant, in case <limits.h> declares res_search.
23307    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23308 #define res_search innocuous_res_search
23309
23310 /* System header to define __stub macros and hopefully few prototypes,
23311     which can conflict with char res_search (); below.
23312     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23313     <limits.h> exists even on freestanding compilers.  */
23314
23315 #ifdef __STDC__
23316 # include <limits.h>
23317 #else
23318 # include <assert.h>
23319 #endif
23320
23321 #undef res_search
23322
23323 /* Override any gcc2 internal prototype to avoid an error.  */
23324 #ifdef __cplusplus
23325 extern "C"
23326 {
23327 #endif
23328 /* We use char because int might match the return type of a gcc2
23329    builtin and then its argument prototype would still apply.  */
23330 char res_search ();
23331 /* The GNU C library defines this for functions which it implements
23332     to always fail with ENOSYS.  Some functions are actually named
23333     something starting with __ and the normal name is an alias.  */
23334 #if defined (__stub_res_search) || defined (__stub___res_search)
23335 choke me
23336 #else
23337 char (*f) () = res_search;
23338 #endif
23339 #ifdef __cplusplus
23340 }
23341 #endif
23342
23343 int
23344 main ()
23345 {
23346 return f != res_search;
23347   ;
23348   return 0;
23349 }
23350 _ACEOF
23351 rm -f conftest.$ac_objext conftest$ac_exeext
23352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23353   (eval $ac_link) 2>conftest.er1
23354   ac_status=$?
23355   grep -v '^ *+' conftest.er1 >conftest.err
23356   rm -f conftest.er1
23357   cat conftest.err >&5
23358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23359   (exit $ac_status); } &&
23360          { ac_try='test -z "$ac_c_werror_flag"
23361                          || test ! -s conftest.err'
23362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23363   (eval $ac_try) 2>&5
23364   ac_status=$?
23365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23366   (exit $ac_status); }; } &&
23367          { ac_try='test -s conftest$ac_exeext'
23368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23369   (eval $ac_try) 2>&5
23370   ac_status=$?
23371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23372   (exit $ac_status); }; }; then
23373   ac_cv_func_res_search=yes
23374 else
23375   echo "$as_me: failed program was:" >&5
23376 sed 's/^/| /' conftest.$ac_ext >&5
23377
23378 ac_cv_func_res_search=no
23379 fi
23380 rm -f conftest.err conftest.$ac_objext \
23381       conftest$ac_exeext conftest.$ac_ext
23382 fi
23383 echo "$as_me:$LINENO: result: $ac_cv_func_res_search" >&5
23384 echo "${ECHO_T}$ac_cv_func_res_search" >&6
23385 if test $ac_cv_func_res_search = yes; then
23386   :
23387 else
23388
23389 echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
23390 echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6
23391 if test "${ac_cv_lib_resolv_res_search+set}" = set; then
23392   echo $ECHO_N "(cached) $ECHO_C" >&6
23393 else
23394   ac_check_lib_save_LIBS=$LIBS
23395 LIBS="-lresolv  $LIBS"
23396 cat >conftest.$ac_ext <<_ACEOF
23397 /* confdefs.h.  */
23398 _ACEOF
23399 cat confdefs.h >>conftest.$ac_ext
23400 cat >>conftest.$ac_ext <<_ACEOF
23401 /* end confdefs.h.  */
23402
23403 /* Override any gcc2 internal prototype to avoid an error.  */
23404 #ifdef __cplusplus
23405 extern "C"
23406 #endif
23407 /* We use char because int might match the return type of a gcc2
23408    builtin and then its argument prototype would still apply.  */
23409 char res_search ();
23410 int
23411 main ()
23412 {
23413 res_search ();
23414   ;
23415   return 0;
23416 }
23417 _ACEOF
23418 rm -f conftest.$ac_objext conftest$ac_exeext
23419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23420   (eval $ac_link) 2>conftest.er1
23421   ac_status=$?
23422   grep -v '^ *+' conftest.er1 >conftest.err
23423   rm -f conftest.er1
23424   cat conftest.err >&5
23425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23426   (exit $ac_status); } &&
23427          { ac_try='test -z "$ac_c_werror_flag"
23428                          || test ! -s conftest.err'
23429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23430   (eval $ac_try) 2>&5
23431   ac_status=$?
23432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23433   (exit $ac_status); }; } &&
23434          { ac_try='test -s conftest$ac_exeext'
23435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23436   (eval $ac_try) 2>&5
23437   ac_status=$?
23438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23439   (exit $ac_status); }; }; then
23440   ac_cv_lib_resolv_res_search=yes
23441 else
23442   echo "$as_me: failed program was:" >&5
23443 sed 's/^/| /' conftest.$ac_ext >&5
23444
23445 ac_cv_lib_resolv_res_search=no
23446 fi
23447 rm -f conftest.err conftest.$ac_objext \
23448       conftest$ac_exeext conftest.$ac_ext
23449 LIBS=$ac_check_lib_save_LIBS
23450 fi
23451 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
23452 echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6
23453 if test $ac_cv_lib_resolv_res_search = yes; then
23454   cat >>confdefs.h <<_ACEOF
23455 #define HAVE_LIBRESOLV 1
23456 _ACEOF
23457
23458   LIBS="-lresolv $LIBS"
23459
23460 fi
23461
23462 fi
23463
23464
23465         echo "$as_me:$LINENO: checking for krb_net_read in -lkrb" >&5
23466 echo $ECHO_N "checking for krb_net_read in -lkrb... $ECHO_C" >&6
23467 if test "${ac_cv_lib_krb_krb_net_read+set}" = set; then
23468   echo $ECHO_N "(cached) $ECHO_C" >&6
23469 else
23470   ac_check_lib_save_LIBS=$LIBS
23471 LIBS="-lkrb  $LIBS"
23472 cat >conftest.$ac_ext <<_ACEOF
23473 /* confdefs.h.  */
23474 _ACEOF
23475 cat confdefs.h >>conftest.$ac_ext
23476 cat >>conftest.$ac_ext <<_ACEOF
23477 /* end confdefs.h.  */
23478
23479 /* Override any gcc2 internal prototype to avoid an error.  */
23480 #ifdef __cplusplus
23481 extern "C"
23482 #endif
23483 /* We use char because int might match the return type of a gcc2
23484    builtin and then its argument prototype would still apply.  */
23485 char krb_net_read ();
23486 int
23487 main ()
23488 {
23489 krb_net_read ();
23490   ;
23491   return 0;
23492 }
23493 _ACEOF
23494 rm -f conftest.$ac_objext conftest$ac_exeext
23495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23496   (eval $ac_link) 2>conftest.er1
23497   ac_status=$?
23498   grep -v '^ *+' conftest.er1 >conftest.err
23499   rm -f conftest.er1
23500   cat conftest.err >&5
23501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23502   (exit $ac_status); } &&
23503          { ac_try='test -z "$ac_c_werror_flag"
23504                          || test ! -s conftest.err'
23505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23506   (eval $ac_try) 2>&5
23507   ac_status=$?
23508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23509   (exit $ac_status); }; } &&
23510          { ac_try='test -s conftest$ac_exeext'
23511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23512   (eval $ac_try) 2>&5
23513   ac_status=$?
23514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23515   (exit $ac_status); }; }; then
23516   ac_cv_lib_krb_krb_net_read=yes
23517 else
23518   echo "$as_me: failed program was:" >&5
23519 sed 's/^/| /' conftest.$ac_ext >&5
23520
23521 ac_cv_lib_krb_krb_net_read=no
23522 fi
23523 rm -f conftest.err conftest.$ac_objext \
23524       conftest$ac_exeext conftest.$ac_ext
23525 LIBS=$ac_check_lib_save_LIBS
23526 fi
23527 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_net_read" >&5
23528 echo "${ECHO_T}$ac_cv_lib_krb_krb_net_read" >&6
23529 if test $ac_cv_lib_krb_krb_net_read = yes; then
23530
23531
23532 for ac_header in krb.h
23533 do
23534 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23536   echo "$as_me:$LINENO: checking for $ac_header" >&5
23537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23538 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23539   echo $ECHO_N "(cached) $ECHO_C" >&6
23540 fi
23541 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23542 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23543 else
23544   # Is the header compilable?
23545 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23546 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23547 cat >conftest.$ac_ext <<_ACEOF
23548 /* confdefs.h.  */
23549 _ACEOF
23550 cat confdefs.h >>conftest.$ac_ext
23551 cat >>conftest.$ac_ext <<_ACEOF
23552 /* end confdefs.h.  */
23553 $ac_includes_default
23554 #include <$ac_header>
23555 _ACEOF
23556 rm -f conftest.$ac_objext
23557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23558   (eval $ac_compile) 2>conftest.er1
23559   ac_status=$?
23560   grep -v '^ *+' conftest.er1 >conftest.err
23561   rm -f conftest.er1
23562   cat conftest.err >&5
23563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23564   (exit $ac_status); } &&
23565          { ac_try='test -z "$ac_c_werror_flag"
23566                          || test ! -s conftest.err'
23567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23568   (eval $ac_try) 2>&5
23569   ac_status=$?
23570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23571   (exit $ac_status); }; } &&
23572          { ac_try='test -s conftest.$ac_objext'
23573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23574   (eval $ac_try) 2>&5
23575   ac_status=$?
23576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23577   (exit $ac_status); }; }; then
23578   ac_header_compiler=yes
23579 else
23580   echo "$as_me: failed program was:" >&5
23581 sed 's/^/| /' conftest.$ac_ext >&5
23582
23583 ac_header_compiler=no
23584 fi
23585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23586 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23587 echo "${ECHO_T}$ac_header_compiler" >&6
23588
23589 # Is the header present?
23590 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23591 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23592 cat >conftest.$ac_ext <<_ACEOF
23593 /* confdefs.h.  */
23594 _ACEOF
23595 cat confdefs.h >>conftest.$ac_ext
23596 cat >>conftest.$ac_ext <<_ACEOF
23597 /* end confdefs.h.  */
23598 #include <$ac_header>
23599 _ACEOF
23600 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23601   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23602   ac_status=$?
23603   grep -v '^ *+' conftest.er1 >conftest.err
23604   rm -f conftest.er1
23605   cat conftest.err >&5
23606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23607   (exit $ac_status); } >/dev/null; then
23608   if test -s conftest.err; then
23609     ac_cpp_err=$ac_c_preproc_warn_flag
23610     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23611   else
23612     ac_cpp_err=
23613   fi
23614 else
23615   ac_cpp_err=yes
23616 fi
23617 if test -z "$ac_cpp_err"; then
23618   ac_header_preproc=yes
23619 else
23620   echo "$as_me: failed program was:" >&5
23621 sed 's/^/| /' conftest.$ac_ext >&5
23622
23623   ac_header_preproc=no
23624 fi
23625 rm -f conftest.err conftest.$ac_ext
23626 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23627 echo "${ECHO_T}$ac_header_preproc" >&6
23628
23629 # So?  What about this header?
23630 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23631   yes:no: )
23632     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23633 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23634     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23635 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23636     ac_header_preproc=yes
23637     ;;
23638   no:yes:* )
23639     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23640 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23641     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23642 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23643     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23644 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23645     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23646 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23647     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23648 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23649     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23650 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23651     (
23652       cat <<\_ASBOX
23653 ## ------------------------------- ##
23654 ## Report this to curl-bug@haxx.se ##
23655 ## ------------------------------- ##
23656 _ASBOX
23657     ) |
23658       sed "s/^/$as_me: WARNING:     /" >&2
23659     ;;
23660 esac
23661 echo "$as_me:$LINENO: checking for $ac_header" >&5
23662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23663 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23664   echo $ECHO_N "(cached) $ECHO_C" >&6
23665 else
23666   eval "$as_ac_Header=\$ac_header_preproc"
23667 fi
23668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23669 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23670
23671 fi
23672 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23673   cat >>confdefs.h <<_ACEOF
23674 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23675 _ACEOF
23676
23677 fi
23678
23679 done
23680
23681
23682             LIBS="-lkrb -ldes $LIBS"
23683
23684
23685 for ac_func in krb_get_our_ip_for_realm
23686 do
23687 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23688 echo "$as_me:$LINENO: checking for $ac_func" >&5
23689 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23690 if eval "test \"\${$as_ac_var+set}\" = set"; then
23691   echo $ECHO_N "(cached) $ECHO_C" >&6
23692 else
23693   cat >conftest.$ac_ext <<_ACEOF
23694 /* confdefs.h.  */
23695 _ACEOF
23696 cat confdefs.h >>conftest.$ac_ext
23697 cat >>conftest.$ac_ext <<_ACEOF
23698 /* end confdefs.h.  */
23699 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23700    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23701 #define $ac_func innocuous_$ac_func
23702
23703 /* System header to define __stub macros and hopefully few prototypes,
23704     which can conflict with char $ac_func (); below.
23705     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23706     <limits.h> exists even on freestanding compilers.  */
23707
23708 #ifdef __STDC__
23709 # include <limits.h>
23710 #else
23711 # include <assert.h>
23712 #endif
23713
23714 #undef $ac_func
23715
23716 /* Override any gcc2 internal prototype to avoid an error.  */
23717 #ifdef __cplusplus
23718 extern "C"
23719 {
23720 #endif
23721 /* We use char because int might match the return type of a gcc2
23722    builtin and then its argument prototype would still apply.  */
23723 char $ac_func ();
23724 /* The GNU C library defines this for functions which it implements
23725     to always fail with ENOSYS.  Some functions are actually named
23726     something starting with __ and the normal name is an alias.  */
23727 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23728 choke me
23729 #else
23730 char (*f) () = $ac_func;
23731 #endif
23732 #ifdef __cplusplus
23733 }
23734 #endif
23735
23736 int
23737 main ()
23738 {
23739 return f != $ac_func;
23740   ;
23741   return 0;
23742 }
23743 _ACEOF
23744 rm -f conftest.$ac_objext conftest$ac_exeext
23745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23746   (eval $ac_link) 2>conftest.er1
23747   ac_status=$?
23748   grep -v '^ *+' conftest.er1 >conftest.err
23749   rm -f conftest.er1
23750   cat conftest.err >&5
23751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23752   (exit $ac_status); } &&
23753          { ac_try='test -z "$ac_c_werror_flag"
23754                          || test ! -s conftest.err'
23755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23756   (eval $ac_try) 2>&5
23757   ac_status=$?
23758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23759   (exit $ac_status); }; } &&
23760          { ac_try='test -s conftest$ac_exeext'
23761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23762   (eval $ac_try) 2>&5
23763   ac_status=$?
23764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23765   (exit $ac_status); }; }; then
23766   eval "$as_ac_var=yes"
23767 else
23768   echo "$as_me: failed program was:" >&5
23769 sed 's/^/| /' conftest.$ac_ext >&5
23770
23771 eval "$as_ac_var=no"
23772 fi
23773 rm -f conftest.err conftest.$ac_objext \
23774       conftest$ac_exeext conftest.$ac_ext
23775 fi
23776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23777 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23778 if test `eval echo '${'$as_ac_var'}'` = yes; then
23779   cat >>confdefs.h <<_ACEOF
23780 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23781 _ACEOF
23782
23783 fi
23784 done
23785
23786
23787
23788 cat >>confdefs.h <<\_ACEOF
23789 #define HAVE_KRB4 1
23790 _ACEOF
23791
23792
23793             KRB4_ENABLED=1
23794
23795
23796
23797 for ac_func in strlcpy
23798 do
23799 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23800 echo "$as_me:$LINENO: checking for $ac_func" >&5
23801 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23802 if eval "test \"\${$as_ac_var+set}\" = set"; then
23803   echo $ECHO_N "(cached) $ECHO_C" >&6
23804 else
23805   cat >conftest.$ac_ext <<_ACEOF
23806 /* confdefs.h.  */
23807 _ACEOF
23808 cat confdefs.h >>conftest.$ac_ext
23809 cat >>conftest.$ac_ext <<_ACEOF
23810 /* end confdefs.h.  */
23811 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23812    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23813 #define $ac_func innocuous_$ac_func
23814
23815 /* System header to define __stub macros and hopefully few prototypes,
23816     which can conflict with char $ac_func (); below.
23817     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23818     <limits.h> exists even on freestanding compilers.  */
23819
23820 #ifdef __STDC__
23821 # include <limits.h>
23822 #else
23823 # include <assert.h>
23824 #endif
23825
23826 #undef $ac_func
23827
23828 /* Override any gcc2 internal prototype to avoid an error.  */
23829 #ifdef __cplusplus
23830 extern "C"
23831 {
23832 #endif
23833 /* We use char because int might match the return type of a gcc2
23834    builtin and then its argument prototype would still apply.  */
23835 char $ac_func ();
23836 /* The GNU C library defines this for functions which it implements
23837     to always fail with ENOSYS.  Some functions are actually named
23838     something starting with __ and the normal name is an alias.  */
23839 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23840 choke me
23841 #else
23842 char (*f) () = $ac_func;
23843 #endif
23844 #ifdef __cplusplus
23845 }
23846 #endif
23847
23848 int
23849 main ()
23850 {
23851 return f != $ac_func;
23852   ;
23853   return 0;
23854 }
23855 _ACEOF
23856 rm -f conftest.$ac_objext conftest$ac_exeext
23857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23858   (eval $ac_link) 2>conftest.er1
23859   ac_status=$?
23860   grep -v '^ *+' conftest.er1 >conftest.err
23861   rm -f conftest.er1
23862   cat conftest.err >&5
23863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23864   (exit $ac_status); } &&
23865          { ac_try='test -z "$ac_c_werror_flag"
23866                          || test ! -s conftest.err'
23867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23868   (eval $ac_try) 2>&5
23869   ac_status=$?
23870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23871   (exit $ac_status); }; } &&
23872          { ac_try='test -s conftest$ac_exeext'
23873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23874   (eval $ac_try) 2>&5
23875   ac_status=$?
23876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23877   (exit $ac_status); }; }; then
23878   eval "$as_ac_var=yes"
23879 else
23880   echo "$as_me: failed program was:" >&5
23881 sed 's/^/| /' conftest.$ac_ext >&5
23882
23883 eval "$as_ac_var=no"
23884 fi
23885 rm -f conftest.err conftest.$ac_objext \
23886       conftest$ac_exeext conftest.$ac_ext
23887 fi
23888 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23889 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23890 if test `eval echo '${'$as_ac_var'}'` = yes; then
23891   cat >>confdefs.h <<_ACEOF
23892 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23893 _ACEOF
23894
23895 fi
23896 done
23897
23898
23899
23900 fi
23901
23902
23903 fi
23904
23905 else
23906   echo "$as_me:$LINENO: result: no" >&5
23907 echo "${ECHO_T}no" >&6
23908 fi
23909
23910
23911
23912 # Check whether --with-spnego or --without-spnego was given.
23913 if test "${with_spnego+set}" = set; then
23914   withval="$with_spnego"
23915    SPNEGO_ROOT="$withval"
23916     want_spnego="yes"
23917
23918 fi;
23919 echo "$as_me:$LINENO: checking if SPNEGO support is requested" >&5
23920 echo $ECHO_N "checking if SPNEGO support is requested... $ECHO_C" >&6
23921 if test x"$want_spnego" = xyes; then
23922
23923   if test X"$SPNEGO_ROOT" = Xyes; then
23924      { { echo "$as_me:$LINENO: error: FBOpenSSL libs and/or directories were not found where specified!" >&5
23925 echo "$as_me: error: FBOpenSSL libs and/or directories were not found where specified!" >&2;}
23926    { (exit 1); exit 1; }; }
23927      echo "$as_me:$LINENO: result: no" >&5
23928 echo "${ECHO_T}no" >&6
23929   else
23930      if test -z "$SPNEGO_LIB_DIR"; then
23931         LDFLAGS="$LDFLAGS -L$SPNEGO_ROOT -lfbopenssl"
23932      else
23933         LDFLAGS="$LDFLAGS $SPNEGO_LIB_DIR"
23934      fi
23935
23936      echo "$as_me:$LINENO: result: yes" >&5
23937 echo "${ECHO_T}yes" >&6
23938
23939 cat >>confdefs.h <<\_ACEOF
23940 #define HAVE_SPNEGO 1
23941 _ACEOF
23942
23943   fi
23944 else
23945   echo "$as_me:$LINENO: result: no" >&5
23946 echo "${ECHO_T}no" >&6
23947 fi
23948
23949
23950
23951 # Check whether --with-gssapi-includes or --without-gssapi-includes was given.
23952 if test "${with_gssapi_includes+set}" = set; then
23953   withval="$with_gssapi_includes"
23954    GSSAPI_INCS="-I$withval"
23955     want_gss="yes"
23956
23957 fi;
23958
23959
23960 # Check whether --with-gssapi-libs or --without-gssapi-libs was given.
23961 if test "${with_gssapi_libs+set}" = set; then
23962   withval="$with_gssapi_libs"
23963    GSSAPI_LIBS="-L$withval -lgssapi"
23964     want_gss="yes"
23965
23966 fi;
23967
23968
23969 # Check whether --with-gssapi or --without-gssapi was given.
23970 if test "${with_gssapi+set}" = set; then
23971   withval="$with_gssapi"
23972    GSSAPI_ROOT="$withval"
23973     want_gss="yes"
23974
23975 fi;
23976
23977 echo "$as_me:$LINENO: checking if GSSAPI support is requested" >&5
23978 echo $ECHO_N "checking if GSSAPI support is requested... $ECHO_C" >&6
23979 if test x"$want_gss" = xyes; then
23980   if test -z "$GSSAPI_INCS"; then
23981      if test -f "$GSSAPI_ROOT/bin/krb5-config"; then
23982         GSSAPI_INCS=`$GSSAPI_ROOT/bin/krb5-config --cflags gssapi`
23983      else
23984         GSSAPI_INCS="-I$GSSAPI_ROOT/include"
23985      fi
23986   fi
23987   CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
23988
23989   if test -z "$GSSAPI_LIB_DIR"; then
23990      if test -f "$GSSAPI_ROOT/bin/krb5-config"; then
23991         gss_ldflags=`$GSSAPI_ROOT/bin/krb5-config --libs gssapi`
23992         LDFLAGS="$LDFLAGS $gss_ldflags"
23993      else
23994         LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff -lgssapi"
23995      fi
23996   else
23997      LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
23998   fi
23999
24000   echo "$as_me:$LINENO: result: yes" >&5
24001 echo "${ECHO_T}yes" >&6
24002
24003 cat >>confdefs.h <<\_ACEOF
24004 #define HAVE_GSSAPI 1
24005 _ACEOF
24006
24007
24008   if test -n "$GSSAPI_INCS"; then
24009     # cut off the preceding -I from the include path
24010     GSSAPI_INCS=`echo $GSSAPI_INCS | sed -e s/^-I//g`
24011   fi
24012
24013   if test -f "$GSSAPI_INCS/gssapi.h"; then
24014
24015 cat >>confdefs.h <<\_ACEOF
24016 #define HAVE_GSSHEIMDAL 1
24017 _ACEOF
24018
24019   else
24020
24021 cat >>confdefs.h <<\_ACEOF
24022 #define HAVE_GSSMIT 1
24023 _ACEOF
24024
24025   fi
24026
24027 else
24028   echo "$as_me:$LINENO: result: no" >&5
24029 echo "${ECHO_T}no" >&6
24030 fi
24031
24032
24033 # Extract the first word of "pkg-config", so it can be a program name with args.
24034 set dummy pkg-config; ac_word=$2
24035 echo "$as_me:$LINENO: checking for $ac_word" >&5
24036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24037 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
24038   echo $ECHO_N "(cached) $ECHO_C" >&6
24039 else
24040   case $PKGCONFIG in
24041   [\\/]* | ?:[\\/]*)
24042   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24043   ;;
24044   *)
24045   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24046 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24047 for as_dir in $as_dummy
24048 do
24049   IFS=$as_save_IFS
24050   test -z "$as_dir" && as_dir=.
24051   for ac_exec_ext in '' $ac_executable_extensions; do
24052   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24053     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24054     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24055     break 2
24056   fi
24057 done
24058 done
24059
24060   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no"
24061   ;;
24062 esac
24063 fi
24064 PKGCONFIG=$ac_cv_path_PKGCONFIG
24065
24066 if test -n "$PKGCONFIG"; then
24067   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
24068 echo "${ECHO_T}$PKGCONFIG" >&6
24069 else
24070   echo "$as_me:$LINENO: result: no" >&5
24071 echo "${ECHO_T}no" >&6
24072 fi
24073
24074 if test "$PKGCONFIG" != "no" ; then
24075   echo "$as_me:$LINENO: checking for OpenSSL options using pkg-config" >&5
24076 echo $ECHO_N "checking for OpenSSL options using pkg-config... $ECHO_C" >&6
24077
24078   $PKGCONFIG --exists openssl
24079   SSL_EXISTS=$?
24080
24081   if test "$SSL_EXISTS" -eq "0"; then
24082     SSL_LIBS=`$PKGCONFIG --libs-only-l openssl 2>/dev/null`
24083     SSL_LDFLAGS=`$PKGCONFIG --libs-only-L openssl 2>/dev/null`
24084     SSL_CPPFLAGS=`$PKGCONFIG --cflags-only-I openssl 2>/dev/null`
24085
24086     LIBS="$LIBS $SSL_LIBS"
24087     CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
24088     LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
24089
24090     echo "$as_me:$LINENO: result: yes" >&5
24091 echo "${ECHO_T}yes" >&6
24092   else
24093     echo "$as_me:$LINENO: result: no" >&5
24094 echo "${ECHO_T}no" >&6
24095   fi
24096
24097 fi
24098
24099
24100 OPT_SSL=off
24101 ca="no"
24102
24103 # Check whether --with-ssl or --without-ssl was given.
24104 if test "${with_ssl+set}" = set; then
24105   withval="$with_ssl"
24106   OPT_SSL=$withval
24107 fi;
24108
24109 if test X"$OPT_SSL" = Xno
24110 then
24111   { echo "$as_me:$LINENO: WARNING: SSL/https support disabled" >&5
24112 echo "$as_me: WARNING: SSL/https support disabled" >&2;}
24113 else
24114
24115
24116     CLEANLDFLAGS="$LDFLAGS"
24117   CLEANCPPFLAGS="$CPPFLAGS"
24118
24119   case "$OPT_SSL" in
24120   yes)
24121     EXTRA_SSL=/usr/local/ssl ;;
24122   off)
24123     EXTRA_SSL= ;;
24124   *)
24125         EXTRA_SSL=$OPT_SSL
24126     LDFLAGS="$LDFLAGS -L$EXTRA_SSL/lib$libsuff"
24127     CPPFLAGS="$CPPFLAGS -I$EXTRA_SSL/include/openssl -I$EXTRA_SSL/include"
24128     ;;
24129   esac
24130
24131   echo "$as_me:$LINENO: checking for CRYPTO_lock in -lcrypto" >&5
24132 echo $ECHO_N "checking for CRYPTO_lock in -lcrypto... $ECHO_C" >&6
24133 if test "${ac_cv_lib_crypto_CRYPTO_lock+set}" = set; then
24134   echo $ECHO_N "(cached) $ECHO_C" >&6
24135 else
24136   ac_check_lib_save_LIBS=$LIBS
24137 LIBS="-lcrypto  $LIBS"
24138 cat >conftest.$ac_ext <<_ACEOF
24139 /* confdefs.h.  */
24140 _ACEOF
24141 cat confdefs.h >>conftest.$ac_ext
24142 cat >>conftest.$ac_ext <<_ACEOF
24143 /* end confdefs.h.  */
24144
24145 /* Override any gcc2 internal prototype to avoid an error.  */
24146 #ifdef __cplusplus
24147 extern "C"
24148 #endif
24149 /* We use char because int might match the return type of a gcc2
24150    builtin and then its argument prototype would still apply.  */
24151 char CRYPTO_lock ();
24152 int
24153 main ()
24154 {
24155 CRYPTO_lock ();
24156   ;
24157   return 0;
24158 }
24159 _ACEOF
24160 rm -f conftest.$ac_objext conftest$ac_exeext
24161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24162   (eval $ac_link) 2>conftest.er1
24163   ac_status=$?
24164   grep -v '^ *+' conftest.er1 >conftest.err
24165   rm -f conftest.er1
24166   cat conftest.err >&5
24167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24168   (exit $ac_status); } &&
24169          { ac_try='test -z "$ac_c_werror_flag"
24170                          || test ! -s conftest.err'
24171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24172   (eval $ac_try) 2>&5
24173   ac_status=$?
24174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24175   (exit $ac_status); }; } &&
24176          { ac_try='test -s conftest$ac_exeext'
24177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24178   (eval $ac_try) 2>&5
24179   ac_status=$?
24180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24181   (exit $ac_status); }; }; then
24182   ac_cv_lib_crypto_CRYPTO_lock=yes
24183 else
24184   echo "$as_me: failed program was:" >&5
24185 sed 's/^/| /' conftest.$ac_ext >&5
24186
24187 ac_cv_lib_crypto_CRYPTO_lock=no
24188 fi
24189 rm -f conftest.err conftest.$ac_objext \
24190       conftest$ac_exeext conftest.$ac_ext
24191 LIBS=$ac_check_lib_save_LIBS
24192 fi
24193 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_lock" >&5
24194 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_lock" >&6
24195 if test $ac_cv_lib_crypto_CRYPTO_lock = yes; then
24196
24197      HAVECRYPTO="yes"
24198
24199 else
24200
24201      OLDLDFLAGS="$LDFLAGS"
24202      OLDCPPFLAGS="$CPPFLAGS"
24203      LDFLAGS="$CLEANLDFLAGS -L$EXTRA_SSL/lib$libsuff"
24204      CPPFLAGS="$CLEANCPPFLAGS -I$EXTRA_SSL/include/openssl -I$EXTRA_SSL/include"
24205      echo "$as_me:$LINENO: checking for CRYPTO_add_lock in -lcrypto" >&5
24206 echo $ECHO_N "checking for CRYPTO_add_lock in -lcrypto... $ECHO_C" >&6
24207 if test "${ac_cv_lib_crypto_CRYPTO_add_lock+set}" = set; then
24208   echo $ECHO_N "(cached) $ECHO_C" >&6
24209 else
24210   ac_check_lib_save_LIBS=$LIBS
24211 LIBS="-lcrypto  $LIBS"
24212 cat >conftest.$ac_ext <<_ACEOF
24213 /* confdefs.h.  */
24214 _ACEOF
24215 cat confdefs.h >>conftest.$ac_ext
24216 cat >>conftest.$ac_ext <<_ACEOF
24217 /* end confdefs.h.  */
24218
24219 /* Override any gcc2 internal prototype to avoid an error.  */
24220 #ifdef __cplusplus
24221 extern "C"
24222 #endif
24223 /* We use char because int might match the return type of a gcc2
24224    builtin and then its argument prototype would still apply.  */
24225 char CRYPTO_add_lock ();
24226 int
24227 main ()
24228 {
24229 CRYPTO_add_lock ();
24230   ;
24231   return 0;
24232 }
24233 _ACEOF
24234 rm -f conftest.$ac_objext conftest$ac_exeext
24235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24236   (eval $ac_link) 2>conftest.er1
24237   ac_status=$?
24238   grep -v '^ *+' conftest.er1 >conftest.err
24239   rm -f conftest.er1
24240   cat conftest.err >&5
24241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24242   (exit $ac_status); } &&
24243          { ac_try='test -z "$ac_c_werror_flag"
24244                          || test ! -s conftest.err'
24245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24246   (eval $ac_try) 2>&5
24247   ac_status=$?
24248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24249   (exit $ac_status); }; } &&
24250          { ac_try='test -s conftest$ac_exeext'
24251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24252   (eval $ac_try) 2>&5
24253   ac_status=$?
24254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24255   (exit $ac_status); }; }; then
24256   ac_cv_lib_crypto_CRYPTO_add_lock=yes
24257 else
24258   echo "$as_me: failed program was:" >&5
24259 sed 's/^/| /' conftest.$ac_ext >&5
24260
24261 ac_cv_lib_crypto_CRYPTO_add_lock=no
24262 fi
24263 rm -f conftest.err conftest.$ac_objext \
24264       conftest$ac_exeext conftest.$ac_ext
24265 LIBS=$ac_check_lib_save_LIBS
24266 fi
24267 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_add_lock" >&5
24268 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_add_lock" >&6
24269 if test $ac_cv_lib_crypto_CRYPTO_add_lock = yes; then
24270
24271        HAVECRYPTO="yes"
24272 else
24273
24274        LDFLAGS="$OLDLDFLAGS"
24275        CPPFLAGS="$OLDCPPFLAGS"
24276
24277 fi
24278
24279
24280 fi
24281
24282
24283
24284   if test "$HAVECRYPTO" = "yes"; then
24285
24286         echo "$as_me:$LINENO: checking for gdi32" >&5
24287 echo $ECHO_N "checking for gdi32... $ECHO_C" >&6
24288     my_ac_save_LIBS=$LIBS
24289     LIBS="-lgdi32 $LIBS"
24290     cat >conftest.$ac_ext <<_ACEOF
24291 /* confdefs.h.  */
24292 _ACEOF
24293 cat confdefs.h >>conftest.$ac_ext
24294 cat >>conftest.$ac_ext <<_ACEOF
24295 /* end confdefs.h.  */
24296 #include <windef.h>
24297                  #include <wingdi.h>
24298 int
24299 main ()
24300 {
24301 GdiFlush();
24302   ;
24303   return 0;
24304 }
24305 _ACEOF
24306 rm -f conftest.$ac_objext conftest$ac_exeext
24307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24308   (eval $ac_link) 2>conftest.er1
24309   ac_status=$?
24310   grep -v '^ *+' conftest.er1 >conftest.err
24311   rm -f conftest.er1
24312   cat conftest.err >&5
24313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24314   (exit $ac_status); } &&
24315          { ac_try='test -z "$ac_c_werror_flag"
24316                          || test ! -s conftest.err'
24317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24318   (eval $ac_try) 2>&5
24319   ac_status=$?
24320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24321   (exit $ac_status); }; } &&
24322          { ac_try='test -s conftest$ac_exeext'
24323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24324   (eval $ac_try) 2>&5
24325   ac_status=$?
24326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24327   (exit $ac_status); }; }; then
24328                   echo "$as_me:$LINENO: result: yes" >&5
24329 echo "${ECHO_T}yes" >&6
24330 else
24331   echo "$as_me: failed program was:" >&5
24332 sed 's/^/| /' conftest.$ac_ext >&5
24333
24334                 LIBS=$my_ac_save_LIBS
24335                echo "$as_me:$LINENO: result: no" >&5
24336 echo "${ECHO_T}no" >&6
24337
24338 fi
24339 rm -f conftest.err conftest.$ac_objext \
24340       conftest$ac_exeext conftest.$ac_ext
24341
24342
24343 echo "$as_me:$LINENO: checking for CRYPTO_add_lock in -lcrypto" >&5
24344 echo $ECHO_N "checking for CRYPTO_add_lock in -lcrypto... $ECHO_C" >&6
24345 if test "${ac_cv_lib_crypto_CRYPTO_add_lock+set}" = set; then
24346   echo $ECHO_N "(cached) $ECHO_C" >&6
24347 else
24348   ac_check_lib_save_LIBS=$LIBS
24349 LIBS="-lcrypto  $LIBS"
24350 cat >conftest.$ac_ext <<_ACEOF
24351 /* confdefs.h.  */
24352 _ACEOF
24353 cat confdefs.h >>conftest.$ac_ext
24354 cat >>conftest.$ac_ext <<_ACEOF
24355 /* end confdefs.h.  */
24356
24357 /* Override any gcc2 internal prototype to avoid an error.  */
24358 #ifdef __cplusplus
24359 extern "C"
24360 #endif
24361 /* We use char because int might match the return type of a gcc2
24362    builtin and then its argument prototype would still apply.  */
24363 char CRYPTO_add_lock ();
24364 int
24365 main ()
24366 {
24367 CRYPTO_add_lock ();
24368   ;
24369   return 0;
24370 }
24371 _ACEOF
24372 rm -f conftest.$ac_objext conftest$ac_exeext
24373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24374   (eval $ac_link) 2>conftest.er1
24375   ac_status=$?
24376   grep -v '^ *+' conftest.er1 >conftest.err
24377   rm -f conftest.er1
24378   cat conftest.err >&5
24379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24380   (exit $ac_status); } &&
24381          { ac_try='test -z "$ac_c_werror_flag"
24382                          || test ! -s conftest.err'
24383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24384   (eval $ac_try) 2>&5
24385   ac_status=$?
24386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24387   (exit $ac_status); }; } &&
24388          { ac_try='test -s conftest$ac_exeext'
24389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24390   (eval $ac_try) 2>&5
24391   ac_status=$?
24392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24393   (exit $ac_status); }; }; then
24394   ac_cv_lib_crypto_CRYPTO_add_lock=yes
24395 else
24396   echo "$as_me: failed program was:" >&5
24397 sed 's/^/| /' conftest.$ac_ext >&5
24398
24399 ac_cv_lib_crypto_CRYPTO_add_lock=no
24400 fi
24401 rm -f conftest.err conftest.$ac_objext \
24402       conftest$ac_exeext conftest.$ac_ext
24403 LIBS=$ac_check_lib_save_LIBS
24404 fi
24405 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_add_lock" >&5
24406 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_add_lock" >&6
24407 if test $ac_cv_lib_crypto_CRYPTO_add_lock = yes; then
24408   cat >>confdefs.h <<_ACEOF
24409 #define HAVE_LIBCRYPTO 1
24410 _ACEOF
24411
24412   LIBS="-lcrypto $LIBS"
24413
24414 fi
24415
24416
24417 echo "$as_me:$LINENO: checking for SSL_connect in -lssl" >&5
24418 echo $ECHO_N "checking for SSL_connect in -lssl... $ECHO_C" >&6
24419 if test "${ac_cv_lib_ssl_SSL_connect+set}" = set; then
24420   echo $ECHO_N "(cached) $ECHO_C" >&6
24421 else
24422   ac_check_lib_save_LIBS=$LIBS
24423 LIBS="-lssl  $LIBS"
24424 cat >conftest.$ac_ext <<_ACEOF
24425 /* confdefs.h.  */
24426 _ACEOF
24427 cat confdefs.h >>conftest.$ac_ext
24428 cat >>conftest.$ac_ext <<_ACEOF
24429 /* end confdefs.h.  */
24430
24431 /* Override any gcc2 internal prototype to avoid an error.  */
24432 #ifdef __cplusplus
24433 extern "C"
24434 #endif
24435 /* We use char because int might match the return type of a gcc2
24436    builtin and then its argument prototype would still apply.  */
24437 char SSL_connect ();
24438 int
24439 main ()
24440 {
24441 SSL_connect ();
24442   ;
24443   return 0;
24444 }
24445 _ACEOF
24446 rm -f conftest.$ac_objext conftest$ac_exeext
24447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24448   (eval $ac_link) 2>conftest.er1
24449   ac_status=$?
24450   grep -v '^ *+' conftest.er1 >conftest.err
24451   rm -f conftest.er1
24452   cat conftest.err >&5
24453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24454   (exit $ac_status); } &&
24455          { ac_try='test -z "$ac_c_werror_flag"
24456                          || test ! -s conftest.err'
24457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24458   (eval $ac_try) 2>&5
24459   ac_status=$?
24460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24461   (exit $ac_status); }; } &&
24462          { ac_try='test -s conftest$ac_exeext'
24463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24464   (eval $ac_try) 2>&5
24465   ac_status=$?
24466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24467   (exit $ac_status); }; }; then
24468   ac_cv_lib_ssl_SSL_connect=yes
24469 else
24470   echo "$as_me: failed program was:" >&5
24471 sed 's/^/| /' conftest.$ac_ext >&5
24472
24473 ac_cv_lib_ssl_SSL_connect=no
24474 fi
24475 rm -f conftest.err conftest.$ac_objext \
24476       conftest$ac_exeext conftest.$ac_ext
24477 LIBS=$ac_check_lib_save_LIBS
24478 fi
24479 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_connect" >&5
24480 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_connect" >&6
24481 if test $ac_cv_lib_ssl_SSL_connect = yes; then
24482   cat >>confdefs.h <<_ACEOF
24483 #define HAVE_LIBSSL 1
24484 _ACEOF
24485
24486   LIBS="-lssl $LIBS"
24487
24488 fi
24489
24490
24491     if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
24492                 echo "$as_me:$LINENO: checking for ssl with RSAglue/rsaref libs in use" >&5
24493 echo $ECHO_N "checking for ssl with RSAglue/rsaref libs in use... $ECHO_C" >&6;
24494         OLIBS=$LIBS
24495         LIBS="$LIBS -lRSAglue -lrsaref"
24496
24497 echo "$as_me:$LINENO: checking for SSL_connect in -lssl" >&5
24498 echo $ECHO_N "checking for SSL_connect in -lssl... $ECHO_C" >&6
24499 if test "${ac_cv_lib_ssl_SSL_connect+set}" = set; then
24500   echo $ECHO_N "(cached) $ECHO_C" >&6
24501 else
24502   ac_check_lib_save_LIBS=$LIBS
24503 LIBS="-lssl  $LIBS"
24504 cat >conftest.$ac_ext <<_ACEOF
24505 /* confdefs.h.  */
24506 _ACEOF
24507 cat confdefs.h >>conftest.$ac_ext
24508 cat >>conftest.$ac_ext <<_ACEOF
24509 /* end confdefs.h.  */
24510
24511 /* Override any gcc2 internal prototype to avoid an error.  */
24512 #ifdef __cplusplus
24513 extern "C"
24514 #endif
24515 /* We use char because int might match the return type of a gcc2
24516    builtin and then its argument prototype would still apply.  */
24517 char SSL_connect ();
24518 int
24519 main ()
24520 {
24521 SSL_connect ();
24522   ;
24523   return 0;
24524 }
24525 _ACEOF
24526 rm -f conftest.$ac_objext conftest$ac_exeext
24527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24528   (eval $ac_link) 2>conftest.er1
24529   ac_status=$?
24530   grep -v '^ *+' conftest.er1 >conftest.err
24531   rm -f conftest.er1
24532   cat conftest.err >&5
24533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24534   (exit $ac_status); } &&
24535          { ac_try='test -z "$ac_c_werror_flag"
24536                          || 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   ac_cv_lib_ssl_SSL_connect=yes
24549 else
24550   echo "$as_me: failed program was:" >&5
24551 sed 's/^/| /' conftest.$ac_ext >&5
24552
24553 ac_cv_lib_ssl_SSL_connect=no
24554 fi
24555 rm -f conftest.err conftest.$ac_objext \
24556       conftest$ac_exeext conftest.$ac_ext
24557 LIBS=$ac_check_lib_save_LIBS
24558 fi
24559 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_connect" >&5
24560 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_connect" >&6
24561 if test $ac_cv_lib_ssl_SSL_connect = yes; then
24562   cat >>confdefs.h <<_ACEOF
24563 #define HAVE_LIBSSL 1
24564 _ACEOF
24565
24566   LIBS="-lssl $LIBS"
24567
24568 fi
24569
24570         if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
24571                         echo "$as_me:$LINENO: result: no" >&5
24572 echo "${ECHO_T}no" >&6
24573             LIBS=$OLIBS
24574         else
24575             echo "$as_me:$LINENO: result: yes" >&5
24576 echo "${ECHO_T}yes" >&6
24577         fi
24578     fi
24579
24580
24581
24582
24583
24584
24585
24586
24587 for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h \
24588                      openssl/pem.h openssl/ssl.h openssl/err.h
24589 do
24590 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24592   echo "$as_me:$LINENO: checking for $ac_header" >&5
24593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24595   echo $ECHO_N "(cached) $ECHO_C" >&6
24596 fi
24597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24598 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24599 else
24600   # Is the header compilable?
24601 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24602 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24603 cat >conftest.$ac_ext <<_ACEOF
24604 /* confdefs.h.  */
24605 _ACEOF
24606 cat confdefs.h >>conftest.$ac_ext
24607 cat >>conftest.$ac_ext <<_ACEOF
24608 /* end confdefs.h.  */
24609 $ac_includes_default
24610 #include <$ac_header>
24611 _ACEOF
24612 rm -f conftest.$ac_objext
24613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24614   (eval $ac_compile) 2>conftest.er1
24615   ac_status=$?
24616   grep -v '^ *+' conftest.er1 >conftest.err
24617   rm -f conftest.er1
24618   cat conftest.err >&5
24619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24620   (exit $ac_status); } &&
24621          { ac_try='test -z "$ac_c_werror_flag"
24622                          || test ! -s conftest.err'
24623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24624   (eval $ac_try) 2>&5
24625   ac_status=$?
24626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24627   (exit $ac_status); }; } &&
24628          { ac_try='test -s conftest.$ac_objext'
24629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24630   (eval $ac_try) 2>&5
24631   ac_status=$?
24632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24633   (exit $ac_status); }; }; then
24634   ac_header_compiler=yes
24635 else
24636   echo "$as_me: failed program was:" >&5
24637 sed 's/^/| /' conftest.$ac_ext >&5
24638
24639 ac_header_compiler=no
24640 fi
24641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24642 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24643 echo "${ECHO_T}$ac_header_compiler" >&6
24644
24645 # Is the header present?
24646 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24647 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24648 cat >conftest.$ac_ext <<_ACEOF
24649 /* confdefs.h.  */
24650 _ACEOF
24651 cat confdefs.h >>conftest.$ac_ext
24652 cat >>conftest.$ac_ext <<_ACEOF
24653 /* end confdefs.h.  */
24654 #include <$ac_header>
24655 _ACEOF
24656 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24657   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24658   ac_status=$?
24659   grep -v '^ *+' conftest.er1 >conftest.err
24660   rm -f conftest.er1
24661   cat conftest.err >&5
24662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24663   (exit $ac_status); } >/dev/null; then
24664   if test -s conftest.err; then
24665     ac_cpp_err=$ac_c_preproc_warn_flag
24666     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24667   else
24668     ac_cpp_err=
24669   fi
24670 else
24671   ac_cpp_err=yes
24672 fi
24673 if test -z "$ac_cpp_err"; then
24674   ac_header_preproc=yes
24675 else
24676   echo "$as_me: failed program was:" >&5
24677 sed 's/^/| /' conftest.$ac_ext >&5
24678
24679   ac_header_preproc=no
24680 fi
24681 rm -f conftest.err conftest.$ac_ext
24682 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24683 echo "${ECHO_T}$ac_header_preproc" >&6
24684
24685 # So?  What about this header?
24686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24687   yes:no: )
24688     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24689 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24690     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24691 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24692     ac_header_preproc=yes
24693     ;;
24694   no:yes:* )
24695     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24696 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24697     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24698 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24699     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24700 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24701     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24702 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24703     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24704 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24705     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24706 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24707     (
24708       cat <<\_ASBOX
24709 ## ------------------------------- ##
24710 ## Report this to curl-bug@haxx.se ##
24711 ## ------------------------------- ##
24712 _ASBOX
24713     ) |
24714       sed "s/^/$as_me: WARNING:     /" >&2
24715     ;;
24716 esac
24717 echo "$as_me:$LINENO: checking for $ac_header" >&5
24718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24720   echo $ECHO_N "(cached) $ECHO_C" >&6
24721 else
24722   eval "$as_ac_Header=\$ac_header_preproc"
24723 fi
24724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24725 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24726
24727 fi
24728 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24729   cat >>confdefs.h <<_ACEOF
24730 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24731 _ACEOF
24732  OPENSSL_ENABLED=1
24733 fi
24734
24735 done
24736
24737
24738     if test $ac_cv_header_openssl_x509_h = no; then
24739
24740
24741
24742
24743
24744
24745 for ac_header in x509.h rsa.h crypto.h pem.h ssl.h err.h
24746 do
24747 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24749   echo "$as_me:$LINENO: checking for $ac_header" >&5
24750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24752   echo $ECHO_N "(cached) $ECHO_C" >&6
24753 fi
24754 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24755 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24756 else
24757   # Is the header compilable?
24758 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24759 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24760 cat >conftest.$ac_ext <<_ACEOF
24761 /* confdefs.h.  */
24762 _ACEOF
24763 cat confdefs.h >>conftest.$ac_ext
24764 cat >>conftest.$ac_ext <<_ACEOF
24765 /* end confdefs.h.  */
24766 $ac_includes_default
24767 #include <$ac_header>
24768 _ACEOF
24769 rm -f conftest.$ac_objext
24770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24771   (eval $ac_compile) 2>conftest.er1
24772   ac_status=$?
24773   grep -v '^ *+' conftest.er1 >conftest.err
24774   rm -f conftest.er1
24775   cat conftest.err >&5
24776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24777   (exit $ac_status); } &&
24778          { ac_try='test -z "$ac_c_werror_flag"
24779                          || test ! -s conftest.err'
24780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24781   (eval $ac_try) 2>&5
24782   ac_status=$?
24783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24784   (exit $ac_status); }; } &&
24785          { ac_try='test -s conftest.$ac_objext'
24786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24787   (eval $ac_try) 2>&5
24788   ac_status=$?
24789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24790   (exit $ac_status); }; }; then
24791   ac_header_compiler=yes
24792 else
24793   echo "$as_me: failed program was:" >&5
24794 sed 's/^/| /' conftest.$ac_ext >&5
24795
24796 ac_header_compiler=no
24797 fi
24798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24799 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24800 echo "${ECHO_T}$ac_header_compiler" >&6
24801
24802 # Is the header present?
24803 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24804 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24805 cat >conftest.$ac_ext <<_ACEOF
24806 /* confdefs.h.  */
24807 _ACEOF
24808 cat confdefs.h >>conftest.$ac_ext
24809 cat >>conftest.$ac_ext <<_ACEOF
24810 /* end confdefs.h.  */
24811 #include <$ac_header>
24812 _ACEOF
24813 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24814   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24815   ac_status=$?
24816   grep -v '^ *+' conftest.er1 >conftest.err
24817   rm -f conftest.er1
24818   cat conftest.err >&5
24819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24820   (exit $ac_status); } >/dev/null; then
24821   if test -s conftest.err; then
24822     ac_cpp_err=$ac_c_preproc_warn_flag
24823     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24824   else
24825     ac_cpp_err=
24826   fi
24827 else
24828   ac_cpp_err=yes
24829 fi
24830 if test -z "$ac_cpp_err"; then
24831   ac_header_preproc=yes
24832 else
24833   echo "$as_me: failed program was:" >&5
24834 sed 's/^/| /' conftest.$ac_ext >&5
24835
24836   ac_header_preproc=no
24837 fi
24838 rm -f conftest.err conftest.$ac_ext
24839 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24840 echo "${ECHO_T}$ac_header_preproc" >&6
24841
24842 # So?  What about this header?
24843 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24844   yes:no: )
24845     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24846 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24847     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24848 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24849     ac_header_preproc=yes
24850     ;;
24851   no:yes:* )
24852     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24853 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24854     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24855 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24856     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24857 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24858     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24859 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24860     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24861 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24862     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24863 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24864     (
24865       cat <<\_ASBOX
24866 ## ------------------------------- ##
24867 ## Report this to curl-bug@haxx.se ##
24868 ## ------------------------------- ##
24869 _ASBOX
24870     ) |
24871       sed "s/^/$as_me: WARNING:     /" >&2
24872     ;;
24873 esac
24874 echo "$as_me:$LINENO: checking for $ac_header" >&5
24875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24876 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24877   echo $ECHO_N "(cached) $ECHO_C" >&6
24878 else
24879   eval "$as_ac_Header=\$ac_header_preproc"
24880 fi
24881 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24882 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24883
24884 fi
24885 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24886   cat >>confdefs.h <<_ACEOF
24887 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24888 _ACEOF
24889  OPENSSL_ENABLED=1
24890 fi
24891
24892 done
24893
24894     fi
24895
24896             echo "$as_me:$LINENO: checking for ENGINE_init" >&5
24897 echo $ECHO_N "checking for ENGINE_init... $ECHO_C" >&6
24898 if test "${ac_cv_func_ENGINE_init+set}" = set; then
24899   echo $ECHO_N "(cached) $ECHO_C" >&6
24900 else
24901   cat >conftest.$ac_ext <<_ACEOF
24902 /* confdefs.h.  */
24903 _ACEOF
24904 cat confdefs.h >>conftest.$ac_ext
24905 cat >>conftest.$ac_ext <<_ACEOF
24906 /* end confdefs.h.  */
24907 /* Define ENGINE_init to an innocuous variant, in case <limits.h> declares ENGINE_init.
24908    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24909 #define ENGINE_init innocuous_ENGINE_init
24910
24911 /* System header to define __stub macros and hopefully few prototypes,
24912     which can conflict with char ENGINE_init (); below.
24913     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24914     <limits.h> exists even on freestanding compilers.  */
24915
24916 #ifdef __STDC__
24917 # include <limits.h>
24918 #else
24919 # include <assert.h>
24920 #endif
24921
24922 #undef ENGINE_init
24923
24924 /* Override any gcc2 internal prototype to avoid an error.  */
24925 #ifdef __cplusplus
24926 extern "C"
24927 {
24928 #endif
24929 /* We use char because int might match the return type of a gcc2
24930    builtin and then its argument prototype would still apply.  */
24931 char ENGINE_init ();
24932 /* The GNU C library defines this for functions which it implements
24933     to always fail with ENOSYS.  Some functions are actually named
24934     something starting with __ and the normal name is an alias.  */
24935 #if defined (__stub_ENGINE_init) || defined (__stub___ENGINE_init)
24936 choke me
24937 #else
24938 char (*f) () = ENGINE_init;
24939 #endif
24940 #ifdef __cplusplus
24941 }
24942 #endif
24943
24944 int
24945 main ()
24946 {
24947 return f != ENGINE_init;
24948   ;
24949   return 0;
24950 }
24951 _ACEOF
24952 rm -f conftest.$ac_objext conftest$ac_exeext
24953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24954   (eval $ac_link) 2>conftest.er1
24955   ac_status=$?
24956   grep -v '^ *+' conftest.er1 >conftest.err
24957   rm -f conftest.er1
24958   cat conftest.err >&5
24959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24960   (exit $ac_status); } &&
24961          { ac_try='test -z "$ac_c_werror_flag"
24962                          || test ! -s conftest.err'
24963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24964   (eval $ac_try) 2>&5
24965   ac_status=$?
24966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24967   (exit $ac_status); }; } &&
24968          { ac_try='test -s conftest$ac_exeext'
24969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24970   (eval $ac_try) 2>&5
24971   ac_status=$?
24972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24973   (exit $ac_status); }; }; then
24974   ac_cv_func_ENGINE_init=yes
24975 else
24976   echo "$as_me: failed program was:" >&5
24977 sed 's/^/| /' conftest.$ac_ext >&5
24978
24979 ac_cv_func_ENGINE_init=no
24980 fi
24981 rm -f conftest.err conftest.$ac_objext \
24982       conftest$ac_exeext conftest.$ac_ext
24983 fi
24984 echo "$as_me:$LINENO: result: $ac_cv_func_ENGINE_init" >&5
24985 echo "${ECHO_T}$ac_cv_func_ENGINE_init" >&6
24986 if test $ac_cv_func_ENGINE_init = yes; then
24987
24988 for ac_header in openssl/engine.h
24989 do
24990 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24992   echo "$as_me:$LINENO: checking for $ac_header" >&5
24993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24994 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24995   echo $ECHO_N "(cached) $ECHO_C" >&6
24996 fi
24997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24998 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24999 else
25000   # Is the header compilable?
25001 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25002 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25003 cat >conftest.$ac_ext <<_ACEOF
25004 /* confdefs.h.  */
25005 _ACEOF
25006 cat confdefs.h >>conftest.$ac_ext
25007 cat >>conftest.$ac_ext <<_ACEOF
25008 /* end confdefs.h.  */
25009 $ac_includes_default
25010 #include <$ac_header>
25011 _ACEOF
25012 rm -f conftest.$ac_objext
25013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25014   (eval $ac_compile) 2>conftest.er1
25015   ac_status=$?
25016   grep -v '^ *+' conftest.er1 >conftest.err
25017   rm -f conftest.er1
25018   cat conftest.err >&5
25019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25020   (exit $ac_status); } &&
25021          { ac_try='test -z "$ac_c_werror_flag"
25022                          || test ! -s conftest.err'
25023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25024   (eval $ac_try) 2>&5
25025   ac_status=$?
25026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25027   (exit $ac_status); }; } &&
25028          { ac_try='test -s conftest.$ac_objext'
25029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25030   (eval $ac_try) 2>&5
25031   ac_status=$?
25032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25033   (exit $ac_status); }; }; then
25034   ac_header_compiler=yes
25035 else
25036   echo "$as_me: failed program was:" >&5
25037 sed 's/^/| /' conftest.$ac_ext >&5
25038
25039 ac_header_compiler=no
25040 fi
25041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25042 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25043 echo "${ECHO_T}$ac_header_compiler" >&6
25044
25045 # Is the header present?
25046 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25047 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25048 cat >conftest.$ac_ext <<_ACEOF
25049 /* confdefs.h.  */
25050 _ACEOF
25051 cat confdefs.h >>conftest.$ac_ext
25052 cat >>conftest.$ac_ext <<_ACEOF
25053 /* end confdefs.h.  */
25054 #include <$ac_header>
25055 _ACEOF
25056 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25057   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25058   ac_status=$?
25059   grep -v '^ *+' conftest.er1 >conftest.err
25060   rm -f conftest.er1
25061   cat conftest.err >&5
25062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25063   (exit $ac_status); } >/dev/null; then
25064   if test -s conftest.err; then
25065     ac_cpp_err=$ac_c_preproc_warn_flag
25066     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25067   else
25068     ac_cpp_err=
25069   fi
25070 else
25071   ac_cpp_err=yes
25072 fi
25073 if test -z "$ac_cpp_err"; then
25074   ac_header_preproc=yes
25075 else
25076   echo "$as_me: failed program was:" >&5
25077 sed 's/^/| /' conftest.$ac_ext >&5
25078
25079   ac_header_preproc=no
25080 fi
25081 rm -f conftest.err conftest.$ac_ext
25082 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25083 echo "${ECHO_T}$ac_header_preproc" >&6
25084
25085 # So?  What about this header?
25086 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25087   yes:no: )
25088     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25089 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25090     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25091 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25092     ac_header_preproc=yes
25093     ;;
25094   no:yes:* )
25095     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25096 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25097     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25098 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25099     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25100 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25101     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25102 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25103     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25104 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25105     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25106 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25107     (
25108       cat <<\_ASBOX
25109 ## ------------------------------- ##
25110 ## Report this to curl-bug@haxx.se ##
25111 ## ------------------------------- ##
25112 _ASBOX
25113     ) |
25114       sed "s/^/$as_me: WARNING:     /" >&2
25115     ;;
25116 esac
25117 echo "$as_me:$LINENO: checking for $ac_header" >&5
25118 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25119 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25120   echo $ECHO_N "(cached) $ECHO_C" >&6
25121 else
25122   eval "$as_ac_Header=\$ac_header_preproc"
25123 fi
25124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25125 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25126
25127 fi
25128 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25129   cat >>confdefs.h <<_ACEOF
25130 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25131 _ACEOF
25132
25133 fi
25134
25135 done
25136
25137 fi
25138
25139
25140
25141
25142     echo "$as_me:$LINENO: checking CA cert bundle install path" >&5
25143 echo $ECHO_N "checking CA cert bundle install path... $ECHO_C" >&6
25144
25145
25146 # Check whether --with-ca-bundle or --without-ca-bundle was given.
25147 if test "${with_ca_bundle+set}" = set; then
25148   withval="$with_ca_bundle"
25149    ca="$withval"
25150 else
25151
25152       if test "x$prefix" != xNONE; then
25153         ca="\${prefix}/share/curl/curl-ca-bundle.crt"
25154       else
25155         ca="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
25156       fi
25157
25158 fi;
25159
25160     if test X"$OPT_SSL" = Xno; then
25161       ca="no"
25162     fi
25163
25164     if test "x$ca" != "xno"; then
25165       CURL_CA_BUNDLE='"'$ca'"'
25166
25167     fi
25168     echo "$as_me:$LINENO: result: $ca" >&5
25169 echo "${ECHO_T}$ca" >&6
25170
25171
25172
25173
25174
25175
25176 for ac_func in RAND_status \
25177                     RAND_screen \
25178                     RAND_egd \
25179                     CRYPTO_cleanup_all_ex_data
25180 do
25181 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25182 echo "$as_me:$LINENO: checking for $ac_func" >&5
25183 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25184 if eval "test \"\${$as_ac_var+set}\" = set"; then
25185   echo $ECHO_N "(cached) $ECHO_C" >&6
25186 else
25187   cat >conftest.$ac_ext <<_ACEOF
25188 /* confdefs.h.  */
25189 _ACEOF
25190 cat confdefs.h >>conftest.$ac_ext
25191 cat >>conftest.$ac_ext <<_ACEOF
25192 /* end confdefs.h.  */
25193 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25194    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25195 #define $ac_func innocuous_$ac_func
25196
25197 /* System header to define __stub macros and hopefully few prototypes,
25198     which can conflict with char $ac_func (); below.
25199     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25200     <limits.h> exists even on freestanding compilers.  */
25201
25202 #ifdef __STDC__
25203 # include <limits.h>
25204 #else
25205 # include <assert.h>
25206 #endif
25207
25208 #undef $ac_func
25209
25210 /* Override any gcc2 internal prototype to avoid an error.  */
25211 #ifdef __cplusplus
25212 extern "C"
25213 {
25214 #endif
25215 /* We use char because int might match the return type of a gcc2
25216    builtin and then its argument prototype would still apply.  */
25217 char $ac_func ();
25218 /* The GNU C library defines this for functions which it implements
25219     to always fail with ENOSYS.  Some functions are actually named
25220     something starting with __ and the normal name is an alias.  */
25221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25222 choke me
25223 #else
25224 char (*f) () = $ac_func;
25225 #endif
25226 #ifdef __cplusplus
25227 }
25228 #endif
25229
25230 int
25231 main ()
25232 {
25233 return f != $ac_func;
25234   ;
25235   return 0;
25236 }
25237 _ACEOF
25238 rm -f conftest.$ac_objext conftest$ac_exeext
25239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25240   (eval $ac_link) 2>conftest.er1
25241   ac_status=$?
25242   grep -v '^ *+' conftest.er1 >conftest.err
25243   rm -f conftest.er1
25244   cat conftest.err >&5
25245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25246   (exit $ac_status); } &&
25247          { ac_try='test -z "$ac_c_werror_flag"
25248                          || test ! -s conftest.err'
25249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25250   (eval $ac_try) 2>&5
25251   ac_status=$?
25252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25253   (exit $ac_status); }; } &&
25254          { ac_try='test -s conftest$ac_exeext'
25255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25256   (eval $ac_try) 2>&5
25257   ac_status=$?
25258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25259   (exit $ac_status); }; }; then
25260   eval "$as_ac_var=yes"
25261 else
25262   echo "$as_me: failed program was:" >&5
25263 sed 's/^/| /' conftest.$ac_ext >&5
25264
25265 eval "$as_ac_var=no"
25266 fi
25267 rm -f conftest.err conftest.$ac_objext \
25268       conftest$ac_exeext conftest.$ac_ext
25269 fi
25270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25271 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25272 if test `eval echo '${'$as_ac_var'}'` = yes; then
25273   cat >>confdefs.h <<_ACEOF
25274 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25275 _ACEOF
25276
25277 fi
25278 done
25279
25280
25281   fi
25282
25283   if test X"$OPT_SSL" != Xoff &&
25284      test "$OPENSSL_ENABLED" != "1"; then
25285     { { echo "$as_me:$LINENO: error: OpenSSL libs and/or directories were not found where specified!" >&5
25286 echo "$as_me: error: OpenSSL libs and/or directories were not found where specified!" >&2;}
25287    { (exit 1); exit 1; }; }
25288   fi
25289
25290 fi
25291
25292
25293
25294 if test x$ca != xno; then
25295   CABUNDLE_TRUE=
25296   CABUNDLE_FALSE='#'
25297 else
25298   CABUNDLE_TRUE='#'
25299   CABUNDLE_FALSE=
25300 fi
25301
25302
25303
25304
25305 _cppflags=$CPPFLAGS
25306 _ldflags=$LDFLAGS
25307 OPT_ZLIB="/usr/local"
25308
25309 # Check whether --with-zlib or --without-zlib was given.
25310 if test "${with_zlib+set}" = set; then
25311   withval="$with_zlib"
25312   OPT_ZLIB="$withval"
25313 fi;
25314
25315 case "$OPT_ZLIB" in
25316   no)
25317     { echo "$as_me:$LINENO: WARNING: zlib disabled" >&5
25318 echo "$as_me: WARNING: zlib disabled" >&2;} ;;
25319   *)
25320
25321     echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5
25322 echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6
25323 if test "${ac_cv_lib_z_inflateEnd+set}" = set; then
25324   echo $ECHO_N "(cached) $ECHO_C" >&6
25325 else
25326   ac_check_lib_save_LIBS=$LIBS
25327 LIBS="-lz  $LIBS"
25328 cat >conftest.$ac_ext <<_ACEOF
25329 /* confdefs.h.  */
25330 _ACEOF
25331 cat confdefs.h >>conftest.$ac_ext
25332 cat >>conftest.$ac_ext <<_ACEOF
25333 /* end confdefs.h.  */
25334
25335 /* Override any gcc2 internal prototype to avoid an error.  */
25336 #ifdef __cplusplus
25337 extern "C"
25338 #endif
25339 /* We use char because int might match the return type of a gcc2
25340    builtin and then its argument prototype would still apply.  */
25341 char inflateEnd ();
25342 int
25343 main ()
25344 {
25345 inflateEnd ();
25346   ;
25347   return 0;
25348 }
25349 _ACEOF
25350 rm -f conftest.$ac_objext conftest$ac_exeext
25351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25352   (eval $ac_link) 2>conftest.er1
25353   ac_status=$?
25354   grep -v '^ *+' conftest.er1 >conftest.err
25355   rm -f conftest.er1
25356   cat conftest.err >&5
25357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25358   (exit $ac_status); } &&
25359          { ac_try='test -z "$ac_c_werror_flag"
25360                          || test ! -s conftest.err'
25361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25362   (eval $ac_try) 2>&5
25363   ac_status=$?
25364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25365   (exit $ac_status); }; } &&
25366          { ac_try='test -s conftest$ac_exeext'
25367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25368   (eval $ac_try) 2>&5
25369   ac_status=$?
25370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25371   (exit $ac_status); }; }; then
25372   ac_cv_lib_z_inflateEnd=yes
25373 else
25374   echo "$as_me: failed program was:" >&5
25375 sed 's/^/| /' conftest.$ac_ext >&5
25376
25377 ac_cv_lib_z_inflateEnd=no
25378 fi
25379 rm -f conftest.err conftest.$ac_objext \
25380       conftest$ac_exeext conftest.$ac_ext
25381 LIBS=$ac_check_lib_save_LIBS
25382 fi
25383 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5
25384 echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6
25385 if test $ac_cv_lib_z_inflateEnd = yes; then
25386                      HAVE_LIBZ="1"
25387 else
25388                      if test -d "$OPT_ZLIB"; then
25389                       CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
25390                       LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
25391                    fi
25392 fi
25393
25394
25395     if test "${ac_cv_header_zlib_h+set}" = set; then
25396   echo "$as_me:$LINENO: checking for zlib.h" >&5
25397 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25398 if test "${ac_cv_header_zlib_h+set}" = set; then
25399   echo $ECHO_N "(cached) $ECHO_C" >&6
25400 fi
25401 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25402 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25403 else
25404   # Is the header compilable?
25405 echo "$as_me:$LINENO: checking zlib.h usability" >&5
25406 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
25407 cat >conftest.$ac_ext <<_ACEOF
25408 /* confdefs.h.  */
25409 _ACEOF
25410 cat confdefs.h >>conftest.$ac_ext
25411 cat >>conftest.$ac_ext <<_ACEOF
25412 /* end confdefs.h.  */
25413 $ac_includes_default
25414 #include <zlib.h>
25415 _ACEOF
25416 rm -f conftest.$ac_objext
25417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25418   (eval $ac_compile) 2>conftest.er1
25419   ac_status=$?
25420   grep -v '^ *+' conftest.er1 >conftest.err
25421   rm -f conftest.er1
25422   cat conftest.err >&5
25423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25424   (exit $ac_status); } &&
25425          { ac_try='test -z "$ac_c_werror_flag"
25426                          || test ! -s conftest.err'
25427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25428   (eval $ac_try) 2>&5
25429   ac_status=$?
25430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25431   (exit $ac_status); }; } &&
25432          { ac_try='test -s conftest.$ac_objext'
25433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25434   (eval $ac_try) 2>&5
25435   ac_status=$?
25436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25437   (exit $ac_status); }; }; then
25438   ac_header_compiler=yes
25439 else
25440   echo "$as_me: failed program was:" >&5
25441 sed 's/^/| /' conftest.$ac_ext >&5
25442
25443 ac_header_compiler=no
25444 fi
25445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25446 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25447 echo "${ECHO_T}$ac_header_compiler" >&6
25448
25449 # Is the header present?
25450 echo "$as_me:$LINENO: checking zlib.h presence" >&5
25451 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
25452 cat >conftest.$ac_ext <<_ACEOF
25453 /* confdefs.h.  */
25454 _ACEOF
25455 cat confdefs.h >>conftest.$ac_ext
25456 cat >>conftest.$ac_ext <<_ACEOF
25457 /* end confdefs.h.  */
25458 #include <zlib.h>
25459 _ACEOF
25460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25461   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25462   ac_status=$?
25463   grep -v '^ *+' conftest.er1 >conftest.err
25464   rm -f conftest.er1
25465   cat conftest.err >&5
25466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25467   (exit $ac_status); } >/dev/null; then
25468   if test -s conftest.err; then
25469     ac_cpp_err=$ac_c_preproc_warn_flag
25470     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25471   else
25472     ac_cpp_err=
25473   fi
25474 else
25475   ac_cpp_err=yes
25476 fi
25477 if test -z "$ac_cpp_err"; then
25478   ac_header_preproc=yes
25479 else
25480   echo "$as_me: failed program was:" >&5
25481 sed 's/^/| /' conftest.$ac_ext >&5
25482
25483   ac_header_preproc=no
25484 fi
25485 rm -f conftest.err conftest.$ac_ext
25486 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25487 echo "${ECHO_T}$ac_header_preproc" >&6
25488
25489 # So?  What about this header?
25490 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25491   yes:no: )
25492     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
25493 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25494     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
25495 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
25496     ac_header_preproc=yes
25497     ;;
25498   no:yes:* )
25499     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
25500 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
25501     { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
25502 echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
25503     { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
25504 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
25505     { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
25506 echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25507     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
25508 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
25509     { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
25510 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
25511     (
25512       cat <<\_ASBOX
25513 ## ------------------------------- ##
25514 ## Report this to curl-bug@haxx.se ##
25515 ## ------------------------------- ##
25516 _ASBOX
25517     ) |
25518       sed "s/^/$as_me: WARNING:     /" >&2
25519     ;;
25520 esac
25521 echo "$as_me:$LINENO: checking for zlib.h" >&5
25522 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25523 if test "${ac_cv_header_zlib_h+set}" = set; then
25524   echo $ECHO_N "(cached) $ECHO_C" >&6
25525 else
25526   ac_cv_header_zlib_h=$ac_header_preproc
25527 fi
25528 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25529 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25530
25531 fi
25532 if test $ac_cv_header_zlib_h = yes; then
25533
25534             HAVE_ZLIB_H="1"
25535             if test "$HAVE_LIBZ" != "1"; then
25536         echo "$as_me:$LINENO: checking for gzread in -lz" >&5
25537 echo $ECHO_N "checking for gzread in -lz... $ECHO_C" >&6
25538 if test "${ac_cv_lib_z_gzread+set}" = set; then
25539   echo $ECHO_N "(cached) $ECHO_C" >&6
25540 else
25541   ac_check_lib_save_LIBS=$LIBS
25542 LIBS="-lz  $LIBS"
25543 cat >conftest.$ac_ext <<_ACEOF
25544 /* confdefs.h.  */
25545 _ACEOF
25546 cat confdefs.h >>conftest.$ac_ext
25547 cat >>conftest.$ac_ext <<_ACEOF
25548 /* end confdefs.h.  */
25549
25550 /* Override any gcc2 internal prototype to avoid an error.  */
25551 #ifdef __cplusplus
25552 extern "C"
25553 #endif
25554 /* We use char because int might match the return type of a gcc2
25555    builtin and then its argument prototype would still apply.  */
25556 char gzread ();
25557 int
25558 main ()
25559 {
25560 gzread ();
25561   ;
25562   return 0;
25563 }
25564 _ACEOF
25565 rm -f conftest.$ac_objext conftest$ac_exeext
25566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25567   (eval $ac_link) 2>conftest.er1
25568   ac_status=$?
25569   grep -v '^ *+' conftest.er1 >conftest.err
25570   rm -f conftest.er1
25571   cat conftest.err >&5
25572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25573   (exit $ac_status); } &&
25574          { ac_try='test -z "$ac_c_werror_flag"
25575                          || test ! -s conftest.err'
25576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25577   (eval $ac_try) 2>&5
25578   ac_status=$?
25579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25580   (exit $ac_status); }; } &&
25581          { ac_try='test -s conftest$ac_exeext'
25582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25583   (eval $ac_try) 2>&5
25584   ac_status=$?
25585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25586   (exit $ac_status); }; }; then
25587   ac_cv_lib_z_gzread=yes
25588 else
25589   echo "$as_me: failed program was:" >&5
25590 sed 's/^/| /' conftest.$ac_ext >&5
25591
25592 ac_cv_lib_z_gzread=no
25593 fi
25594 rm -f conftest.err conftest.$ac_objext \
25595       conftest$ac_exeext conftest.$ac_ext
25596 LIBS=$ac_check_lib_save_LIBS
25597 fi
25598 echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzread" >&5
25599 echo "${ECHO_T}$ac_cv_lib_z_gzread" >&6
25600 if test $ac_cv_lib_z_gzread = yes; then
25601
25602                                           HAVE_LIBZ="1"
25603
25604 else
25605    CPPFLAGS=$_cppflags
25606                      LDFLAGS=$_ldflags
25607 fi
25608
25609       fi
25610
25611 else
25612
25613                 CPPFLAGS=$_cppflags
25614         LDFLAGS=$_ldflags
25615
25616 fi
25617
25618
25619
25620     if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
25621     then
25622       { echo "$as_me:$LINENO: WARNING: configure found only the libz lib, not the header file!" >&5
25623 echo "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;}
25624     elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
25625     then
25626       { echo "$as_me:$LINENO: WARNING: configure found only the libz header file, not the lib!" >&5
25627 echo "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;}
25628     elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
25629     then
25630
25631
25632 cat >>confdefs.h <<\_ACEOF
25633 #define HAVE_ZLIB_H 1
25634 _ACEOF
25635
25636
25637 cat >>confdefs.h <<\_ACEOF
25638 #define HAVE_LIBZ 1
25639 _ACEOF
25640
25641
25642       LIBS="$LIBS -lz"
25643
25644             AMFIXLIB="1"
25645       { echo "$as_me:$LINENO: found both libz and libz.h header" >&5
25646 echo "$as_me: found both libz and libz.h header" >&6;}
25647     fi
25648     ;;
25649 esac
25650
25651
25652
25653 if test x"$AMFIXLIB" = x1; then
25654   HAVE_LIBZ_TRUE=
25655   HAVE_LIBZ_FALSE='#'
25656 else
25657   HAVE_LIBZ_TRUE='#'
25658   HAVE_LIBZ_FALSE=
25659 fi
25660
25661
25662 OPT_THREAD=on
25663
25664 echo "$as_me:$LINENO: checking AIX 4.3 or later" >&5
25665 echo $ECHO_N "checking AIX 4.3 or later... $ECHO_C" >&6
25666 cat >conftest.$ac_ext <<_ACEOF
25667
25668 #if defined(_AIX) && defined(_AIX43)
25669 printf("just fine");
25670 #else
25671 #error "this is not AIX 4.3 or later"
25672 #endif
25673
25674 _ACEOF
25675 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25676   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25677   ac_status=$?
25678   grep -v '^ *+' conftest.er1 >conftest.err
25679   rm -f conftest.er1
25680   cat conftest.err >&5
25681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25682   (exit $ac_status); } >/dev/null; then
25683   if test -s conftest.err; then
25684     ac_cpp_err=$ac_c_preproc_warn_flag
25685     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25686   else
25687     ac_cpp_err=
25688   fi
25689 else
25690   ac_cpp_err=yes
25691 fi
25692 if test -z "$ac_cpp_err"; then
25693    echo "$as_me:$LINENO: result: yes" >&5
25694 echo "${ECHO_T}yes" >&6
25695    OPT_THREAD=off
25696 else
25697   echo "$as_me: failed program was:" >&5
25698 sed 's/^/| /' conftest.$ac_ext >&5
25699
25700    echo "$as_me:$LINENO: result: no" >&5
25701 echo "${ECHO_T}no" >&6
25702
25703 fi
25704 rm -f conftest.err conftest.$ac_ext
25705
25706 # Check whether --enable-thread or --disable-thread was given.
25707 if test "${enable_thread+set}" = set; then
25708   enableval="$enable_thread"
25709    case "$enableval" in
25710   no)
25711     OPT_THREAD=off
25712     { echo "$as_me:$LINENO: WARNING: libcurl will not get built using thread-safe functions" >&5
25713 echo "$as_me: WARNING: libcurl will not get built using thread-safe functions" >&2;}
25714     ;;
25715   *)
25716     ;;
25717   esac
25718
25719
25720 fi;
25721
25722 if test X"$OPT_THREAD" = Xoff
25723 then
25724
25725 cat >>confdefs.h <<\_ACEOF
25726 #define DISABLED_THREADSAFE 1
25727 _ACEOF
25728
25729 else
25730   if test "$ipv6" != "yes"; then
25731
25732
25733 for ac_func in gethostbyname_r
25734 do
25735 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25736 echo "$as_me:$LINENO: checking for $ac_func" >&5
25737 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25738 if eval "test \"\${$as_ac_var+set}\" = set"; then
25739   echo $ECHO_N "(cached) $ECHO_C" >&6
25740 else
25741   cat >conftest.$ac_ext <<_ACEOF
25742 /* confdefs.h.  */
25743 _ACEOF
25744 cat confdefs.h >>conftest.$ac_ext
25745 cat >>conftest.$ac_ext <<_ACEOF
25746 /* end confdefs.h.  */
25747 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25748    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25749 #define $ac_func innocuous_$ac_func
25750
25751 /* System header to define __stub macros and hopefully few prototypes,
25752     which can conflict with char $ac_func (); below.
25753     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25754     <limits.h> exists even on freestanding compilers.  */
25755
25756 #ifdef __STDC__
25757 # include <limits.h>
25758 #else
25759 # include <assert.h>
25760 #endif
25761
25762 #undef $ac_func
25763
25764 /* Override any gcc2 internal prototype to avoid an error.  */
25765 #ifdef __cplusplus
25766 extern "C"
25767 {
25768 #endif
25769 /* We use char because int might match the return type of a gcc2
25770    builtin and then its argument prototype would still apply.  */
25771 char $ac_func ();
25772 /* The GNU C library defines this for functions which it implements
25773     to always fail with ENOSYS.  Some functions are actually named
25774     something starting with __ and the normal name is an alias.  */
25775 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25776 choke me
25777 #else
25778 char (*f) () = $ac_func;
25779 #endif
25780 #ifdef __cplusplus
25781 }
25782 #endif
25783
25784 int
25785 main ()
25786 {
25787 return f != $ac_func;
25788   ;
25789   return 0;
25790 }
25791 _ACEOF
25792 rm -f conftest.$ac_objext conftest$ac_exeext
25793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25794   (eval $ac_link) 2>conftest.er1
25795   ac_status=$?
25796   grep -v '^ *+' conftest.er1 >conftest.err
25797   rm -f conftest.er1
25798   cat conftest.err >&5
25799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25800   (exit $ac_status); } &&
25801          { ac_try='test -z "$ac_c_werror_flag"
25802                          || test ! -s conftest.err'
25803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25804   (eval $ac_try) 2>&5
25805   ac_status=$?
25806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25807   (exit $ac_status); }; } &&
25808          { ac_try='test -s conftest$ac_exeext'
25809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25810   (eval $ac_try) 2>&5
25811   ac_status=$?
25812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25813   (exit $ac_status); }; }; then
25814   eval "$as_ac_var=yes"
25815 else
25816   echo "$as_me: failed program was:" >&5
25817 sed 's/^/| /' conftest.$ac_ext >&5
25818
25819 eval "$as_ac_var=no"
25820 fi
25821 rm -f conftest.err conftest.$ac_objext \
25822       conftest$ac_exeext conftest.$ac_ext
25823 fi
25824 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25825 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25826 if test `eval echo '${'$as_ac_var'}'` = yes; then
25827   cat >>confdefs.h <<_ACEOF
25828 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25829 _ACEOF
25830
25831     echo "$as_me:$LINENO: checking if gethostbyname_r takes 3 arguments" >&5
25832 echo $ECHO_N "checking if gethostbyname_r takes 3 arguments... $ECHO_C" >&6
25833     cat >conftest.$ac_ext <<_ACEOF
25834 /* confdefs.h.  */
25835 _ACEOF
25836 cat confdefs.h >>conftest.$ac_ext
25837 cat >>conftest.$ac_ext <<_ACEOF
25838 /* end confdefs.h.  */
25839
25840 #include <string.h>
25841 #include <sys/types.h>
25842 #include <netdb.h>
25843 #undef NULL
25844 #define NULL (void *)0
25845
25846 int
25847 gethostbyname_r(const char *, struct hostent *, struct hostent_data *);
25848 int
25849 main ()
25850 {
25851
25852 struct hostent_data data;
25853 gethostbyname_r(NULL, NULL, NULL);
25854   ;
25855   return 0;
25856 }
25857 _ACEOF
25858 rm -f conftest.$ac_objext
25859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25860   (eval $ac_compile) 2>conftest.er1
25861   ac_status=$?
25862   grep -v '^ *+' conftest.er1 >conftest.err
25863   rm -f conftest.er1
25864   cat conftest.err >&5
25865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25866   (exit $ac_status); } &&
25867          { ac_try='test -z "$ac_c_werror_flag"
25868                          || test ! -s conftest.err'
25869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25870   (eval $ac_try) 2>&5
25871   ac_status=$?
25872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25873   (exit $ac_status); }; } &&
25874          { ac_try='test -s conftest.$ac_objext'
25875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25876   (eval $ac_try) 2>&5
25877   ac_status=$?
25878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25879   (exit $ac_status); }; }; then
25880
25881       echo "$as_me:$LINENO: result: yes" >&5
25882 echo "${ECHO_T}yes" >&6
25883
25884 cat >>confdefs.h <<\_ACEOF
25885 #define HAVE_GETHOSTBYNAME_R_3 1
25886 _ACEOF
25887
25888       ac_cv_gethostbyname_args=3
25889 else
25890   echo "$as_me: failed program was:" >&5
25891 sed 's/^/| /' conftest.$ac_ext >&5
25892
25893
25894       echo "$as_me:$LINENO: result: no" >&5
25895 echo "${ECHO_T}no" >&6
25896       echo "$as_me:$LINENO: checking if gethostbyname_r with -D_REENTRANT takes 3 arguments" >&5
25897 echo $ECHO_N "checking if gethostbyname_r with -D_REENTRANT takes 3 arguments... $ECHO_C" >&6
25898       cat >conftest.$ac_ext <<_ACEOF
25899 /* confdefs.h.  */
25900 _ACEOF
25901 cat confdefs.h >>conftest.$ac_ext
25902 cat >>conftest.$ac_ext <<_ACEOF
25903 /* end confdefs.h.  */
25904
25905 #define _REENTRANT
25906
25907 #include <string.h>
25908 #include <sys/types.h>
25909 #include <netdb.h>
25910 #undef NULL
25911 #define NULL (void *)0
25912
25913 int
25914 gethostbyname_r(const char *,struct hostent *, struct hostent_data *);
25915 int
25916 main ()
25917 {
25918
25919 struct hostent_data data;
25920 gethostbyname_r(NULL, NULL, NULL);
25921   ;
25922   return 0;
25923 }
25924 _ACEOF
25925 rm -f conftest.$ac_objext
25926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25927   (eval $ac_compile) 2>conftest.er1
25928   ac_status=$?
25929   grep -v '^ *+' conftest.er1 >conftest.err
25930   rm -f conftest.er1
25931   cat conftest.err >&5
25932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25933   (exit $ac_status); } &&
25934          { ac_try='test -z "$ac_c_werror_flag"
25935                          || test ! -s conftest.err'
25936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25937   (eval $ac_try) 2>&5
25938   ac_status=$?
25939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25940   (exit $ac_status); }; } &&
25941          { ac_try='test -s conftest.$ac_objext'
25942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25943   (eval $ac_try) 2>&5
25944   ac_status=$?
25945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25946   (exit $ac_status); }; }; then
25947
25948         echo "$as_me:$LINENO: result: yes" >&5
25949 echo "${ECHO_T}yes" >&6
25950
25951 cat >>confdefs.h <<\_ACEOF
25952 #define HAVE_GETHOSTBYNAME_R_3 1
25953 _ACEOF
25954
25955
25956 cat >>confdefs.h <<\_ACEOF
25957 #define NEED_REENTRANT 1
25958 _ACEOF
25959
25960         ac_cv_gethostbyname_args=3
25961 else
25962   echo "$as_me: failed program was:" >&5
25963 sed 's/^/| /' conftest.$ac_ext >&5
25964
25965
25966         echo "$as_me:$LINENO: result: no" >&5
25967 echo "${ECHO_T}no" >&6
25968         echo "$as_me:$LINENO: checking if gethostbyname_r takes 5 arguments" >&5
25969 echo $ECHO_N "checking if gethostbyname_r takes 5 arguments... $ECHO_C" >&6
25970         cat >conftest.$ac_ext <<_ACEOF
25971 /* confdefs.h.  */
25972 _ACEOF
25973 cat confdefs.h >>conftest.$ac_ext
25974 cat >>conftest.$ac_ext <<_ACEOF
25975 /* end confdefs.h.  */
25976
25977 #include <sys/types.h>
25978 #include <netdb.h>
25979 #undef NULL
25980 #define NULL (void *)0
25981
25982 struct hostent *
25983 gethostbyname_r(const char *, struct hostent *, char *, int, int *);
25984 int
25985 main ()
25986 {
25987
25988 gethostbyname_r(NULL, NULL, NULL, 0, NULL);
25989   ;
25990   return 0;
25991 }
25992 _ACEOF
25993 rm -f conftest.$ac_objext
25994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25995   (eval $ac_compile) 2>conftest.er1
25996   ac_status=$?
25997   grep -v '^ *+' conftest.er1 >conftest.err
25998   rm -f conftest.er1
25999   cat conftest.err >&5
26000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26001   (exit $ac_status); } &&
26002          { ac_try='test -z "$ac_c_werror_flag"
26003                          || test ! -s conftest.err'
26004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26005   (eval $ac_try) 2>&5
26006   ac_status=$?
26007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26008   (exit $ac_status); }; } &&
26009          { ac_try='test -s conftest.$ac_objext'
26010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26011   (eval $ac_try) 2>&5
26012   ac_status=$?
26013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26014   (exit $ac_status); }; }; then
26015
26016           echo "$as_me:$LINENO: result: yes" >&5
26017 echo "${ECHO_T}yes" >&6
26018
26019 cat >>confdefs.h <<\_ACEOF
26020 #define HAVE_GETHOSTBYNAME_R_5 1
26021 _ACEOF
26022
26023           ac_cv_gethostbyname_args=5
26024 else
26025   echo "$as_me: failed program was:" >&5
26026 sed 's/^/| /' conftest.$ac_ext >&5
26027
26028
26029           echo "$as_me:$LINENO: result: no" >&5
26030 echo "${ECHO_T}no" >&6
26031           echo "$as_me:$LINENO: checking if gethostbyname_r takes 6 arguments" >&5
26032 echo $ECHO_N "checking if gethostbyname_r takes 6 arguments... $ECHO_C" >&6
26033           cat >conftest.$ac_ext <<_ACEOF
26034 /* confdefs.h.  */
26035 _ACEOF
26036 cat confdefs.h >>conftest.$ac_ext
26037 cat >>conftest.$ac_ext <<_ACEOF
26038 /* end confdefs.h.  */
26039
26040 #include <sys/types.h>
26041 #include <netdb.h>
26042 #undef NULL
26043 #define NULL (void *)0
26044
26045 int
26046 gethostbyname_r(const char *, struct hostent *, char *, size_t,
26047 struct hostent **, int *);
26048 int
26049 main ()
26050 {
26051
26052 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL);
26053   ;
26054   return 0;
26055 }
26056 _ACEOF
26057 rm -f conftest.$ac_objext
26058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26059   (eval $ac_compile) 2>conftest.er1
26060   ac_status=$?
26061   grep -v '^ *+' conftest.er1 >conftest.err
26062   rm -f conftest.er1
26063   cat conftest.err >&5
26064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26065   (exit $ac_status); } &&
26066          { ac_try='test -z "$ac_c_werror_flag"
26067                          || test ! -s conftest.err'
26068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26069   (eval $ac_try) 2>&5
26070   ac_status=$?
26071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26072   (exit $ac_status); }; } &&
26073          { ac_try='test -s conftest.$ac_objext'
26074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26075   (eval $ac_try) 2>&5
26076   ac_status=$?
26077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26078   (exit $ac_status); }; }; then
26079
26080             echo "$as_me:$LINENO: result: yes" >&5
26081 echo "${ECHO_T}yes" >&6
26082
26083 cat >>confdefs.h <<\_ACEOF
26084 #define HAVE_GETHOSTBYNAME_R_6 1
26085 _ACEOF
26086
26087             ac_cv_gethostbyname_args=6
26088 else
26089   echo "$as_me: failed program was:" >&5
26090 sed 's/^/| /' conftest.$ac_ext >&5
26091
26092
26093             echo "$as_me:$LINENO: result: no" >&5
26094 echo "${ECHO_T}no" >&6
26095             have_missing_r_funcs="$have_missing_r_funcs gethostbyname_r"
26096 fi
26097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26098 fi
26099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26100 fi
26101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26102 fi
26103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26104 fi
26105 done
26106
26107
26108 if test "$ac_cv_func_gethostbyname_r" = "yes"; then
26109   if test "$ac_cv_gethostbyname_args" = "0"; then
26110             { { echo "$as_me:$LINENO: error: couldn't figure out how to use gethostbyname_r()" >&5
26111 echo "$as_me: error: couldn't figure out how to use gethostbyname_r()" >&2;}
26112    { (exit 1); exit 1; }; }
26113   fi
26114 fi
26115
26116
26117
26118
26119 for ac_func in gethostbyaddr_r
26120 do
26121 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26122 echo "$as_me:$LINENO: checking for $ac_func" >&5
26123 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26124 if eval "test \"\${$as_ac_var+set}\" = set"; then
26125   echo $ECHO_N "(cached) $ECHO_C" >&6
26126 else
26127   cat >conftest.$ac_ext <<_ACEOF
26128 /* confdefs.h.  */
26129 _ACEOF
26130 cat confdefs.h >>conftest.$ac_ext
26131 cat >>conftest.$ac_ext <<_ACEOF
26132 /* end confdefs.h.  */
26133 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26134    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26135 #define $ac_func innocuous_$ac_func
26136
26137 /* System header to define __stub macros and hopefully few prototypes,
26138     which can conflict with char $ac_func (); below.
26139     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26140     <limits.h> exists even on freestanding compilers.  */
26141
26142 #ifdef __STDC__
26143 # include <limits.h>
26144 #else
26145 # include <assert.h>
26146 #endif
26147
26148 #undef $ac_func
26149
26150 /* Override any gcc2 internal prototype to avoid an error.  */
26151 #ifdef __cplusplus
26152 extern "C"
26153 {
26154 #endif
26155 /* We use char because int might match the return type of a gcc2
26156    builtin and then its argument prototype would still apply.  */
26157 char $ac_func ();
26158 /* The GNU C library defines this for functions which it implements
26159     to always fail with ENOSYS.  Some functions are actually named
26160     something starting with __ and the normal name is an alias.  */
26161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26162 choke me
26163 #else
26164 char (*f) () = $ac_func;
26165 #endif
26166 #ifdef __cplusplus
26167 }
26168 #endif
26169
26170 int
26171 main ()
26172 {
26173 return f != $ac_func;
26174   ;
26175   return 0;
26176 }
26177 _ACEOF
26178 rm -f conftest.$ac_objext conftest$ac_exeext
26179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26180   (eval $ac_link) 2>conftest.er1
26181   ac_status=$?
26182   grep -v '^ *+' conftest.er1 >conftest.err
26183   rm -f conftest.er1
26184   cat conftest.err >&5
26185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26186   (exit $ac_status); } &&
26187          { ac_try='test -z "$ac_c_werror_flag"
26188                          || test ! -s conftest.err'
26189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26190   (eval $ac_try) 2>&5
26191   ac_status=$?
26192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26193   (exit $ac_status); }; } &&
26194          { ac_try='test -s conftest$ac_exeext'
26195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26196   (eval $ac_try) 2>&5
26197   ac_status=$?
26198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26199   (exit $ac_status); }; }; then
26200   eval "$as_ac_var=yes"
26201 else
26202   echo "$as_me: failed program was:" >&5
26203 sed 's/^/| /' conftest.$ac_ext >&5
26204
26205 eval "$as_ac_var=no"
26206 fi
26207 rm -f conftest.err conftest.$ac_objext \
26208       conftest$ac_exeext conftest.$ac_ext
26209 fi
26210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26211 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26212 if test `eval echo '${'$as_ac_var'}'` = yes; then
26213   cat >>confdefs.h <<_ACEOF
26214 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26215 _ACEOF
26216
26217     echo "$as_me:$LINENO: checking if gethostbyaddr_r takes 5 arguments" >&5
26218 echo $ECHO_N "checking if gethostbyaddr_r takes 5 arguments... $ECHO_C" >&6
26219     cat >conftest.$ac_ext <<_ACEOF
26220 /* confdefs.h.  */
26221 _ACEOF
26222 cat confdefs.h >>conftest.$ac_ext
26223 cat >>conftest.$ac_ext <<_ACEOF
26224 /* end confdefs.h.  */
26225
26226 #include <sys/types.h>
26227 #include <netdb.h>
26228 int
26229 main ()
26230 {
26231
26232 char * address;
26233 int length;
26234 int type;
26235 struct hostent h;
26236 struct hostent_data hdata;
26237 int rc;
26238 rc = gethostbyaddr_r(address, length, type, &h, &hdata);
26239   ;
26240   return 0;
26241 }
26242 _ACEOF
26243 rm -f conftest.$ac_objext
26244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26245   (eval $ac_compile) 2>conftest.er1
26246   ac_status=$?
26247   grep -v '^ *+' conftest.er1 >conftest.err
26248   rm -f conftest.er1
26249   cat conftest.err >&5
26250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26251   (exit $ac_status); } &&
26252          { ac_try='test -z "$ac_c_werror_flag"
26253                          || test ! -s conftest.err'
26254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26255   (eval $ac_try) 2>&5
26256   ac_status=$?
26257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26258   (exit $ac_status); }; } &&
26259          { ac_try='test -s conftest.$ac_objext'
26260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26261   (eval $ac_try) 2>&5
26262   ac_status=$?
26263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26264   (exit $ac_status); }; }; then
26265
26266       echo "$as_me:$LINENO: result: yes" >&5
26267 echo "${ECHO_T}yes" >&6
26268
26269 cat >>confdefs.h <<\_ACEOF
26270 #define HAVE_GETHOSTBYADDR_R_5 1
26271 _ACEOF
26272
26273       ac_cv_gethostbyaddr_args=5
26274 else
26275   echo "$as_me: failed program was:" >&5
26276 sed 's/^/| /' conftest.$ac_ext >&5
26277
26278
26279       echo "$as_me:$LINENO: result: no" >&5
26280 echo "${ECHO_T}no" >&6
26281       echo "$as_me:$LINENO: checking if gethostbyaddr_r with -D_REENTRANT takes 5 arguments" >&5
26282 echo $ECHO_N "checking if gethostbyaddr_r with -D_REENTRANT takes 5 arguments... $ECHO_C" >&6
26283       cat >conftest.$ac_ext <<_ACEOF
26284 /* confdefs.h.  */
26285 _ACEOF
26286 cat confdefs.h >>conftest.$ac_ext
26287 cat >>conftest.$ac_ext <<_ACEOF
26288 /* end confdefs.h.  */
26289
26290 #define _REENTRANT
26291 #include <sys/types.h>
26292 #include <netdb.h>
26293 int
26294 main ()
26295 {
26296
26297 char * address;
26298 int length;
26299 int type;
26300 struct hostent h;
26301 struct hostent_data hdata;
26302 int rc;
26303 rc = gethostbyaddr_r(address, length, type, &h, &hdata);
26304   ;
26305   return 0;
26306 }
26307 _ACEOF
26308 rm -f conftest.$ac_objext
26309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26310   (eval $ac_compile) 2>conftest.er1
26311   ac_status=$?
26312   grep -v '^ *+' conftest.er1 >conftest.err
26313   rm -f conftest.er1
26314   cat conftest.err >&5
26315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26316   (exit $ac_status); } &&
26317          { ac_try='test -z "$ac_c_werror_flag"
26318                          || test ! -s conftest.err'
26319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26320   (eval $ac_try) 2>&5
26321   ac_status=$?
26322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26323   (exit $ac_status); }; } &&
26324          { ac_try='test -s conftest.$ac_objext'
26325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26326   (eval $ac_try) 2>&5
26327   ac_status=$?
26328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26329   (exit $ac_status); }; }; then
26330
26331         echo "$as_me:$LINENO: result: yes" >&5
26332 echo "${ECHO_T}yes" >&6
26333
26334 cat >>confdefs.h <<\_ACEOF
26335 #define HAVE_GETHOSTBYADDR_R_5 1
26336 _ACEOF
26337
26338
26339 cat >>confdefs.h <<\_ACEOF
26340 #define NEED_REENTRANT 1
26341 _ACEOF
26342
26343         ac_cv_gethostbyaddr_args=5
26344 else
26345   echo "$as_me: failed program was:" >&5
26346 sed 's/^/| /' conftest.$ac_ext >&5
26347
26348
26349         echo "$as_me:$LINENO: result: no" >&5
26350 echo "${ECHO_T}no" >&6
26351         echo "$as_me:$LINENO: checking if gethostbyaddr_r takes 7 arguments" >&5
26352 echo $ECHO_N "checking if gethostbyaddr_r takes 7 arguments... $ECHO_C" >&6
26353         cat >conftest.$ac_ext <<_ACEOF
26354 /* confdefs.h.  */
26355 _ACEOF
26356 cat confdefs.h >>conftest.$ac_ext
26357 cat >>conftest.$ac_ext <<_ACEOF
26358 /* end confdefs.h.  */
26359
26360 #include <sys/types.h>
26361 #include <netdb.h>
26362 int
26363 main ()
26364 {
26365
26366 char * address;
26367 int length;
26368 int type;
26369 struct hostent h;
26370 char buffer[8192];
26371 int h_errnop;
26372 struct hostent * hp;
26373
26374 hp = gethostbyaddr_r(address, length, type, &h,
26375                      buffer, 8192, &h_errnop);
26376   ;
26377   return 0;
26378 }
26379 _ACEOF
26380 rm -f conftest.$ac_objext
26381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26382   (eval $ac_compile) 2>conftest.er1
26383   ac_status=$?
26384   grep -v '^ *+' conftest.er1 >conftest.err
26385   rm -f conftest.er1
26386   cat conftest.err >&5
26387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26388   (exit $ac_status); } &&
26389          { ac_try='test -z "$ac_c_werror_flag"
26390                          || test ! -s conftest.err'
26391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26392   (eval $ac_try) 2>&5
26393   ac_status=$?
26394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26395   (exit $ac_status); }; } &&
26396          { ac_try='test -s conftest.$ac_objext'
26397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26398   (eval $ac_try) 2>&5
26399   ac_status=$?
26400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26401   (exit $ac_status); }; }; then
26402
26403           echo "$as_me:$LINENO: result: yes" >&5
26404 echo "${ECHO_T}yes" >&6
26405
26406 cat >>confdefs.h <<\_ACEOF
26407 #define HAVE_GETHOSTBYADDR_R_7 1
26408 _ACEOF
26409
26410           ac_cv_gethostbyaddr_args=7
26411 else
26412   echo "$as_me: failed program was:" >&5
26413 sed 's/^/| /' conftest.$ac_ext >&5
26414
26415
26416           echo "$as_me:$LINENO: result: no" >&5
26417 echo "${ECHO_T}no" >&6
26418           echo "$as_me:$LINENO: checking if gethostbyaddr_r takes 8 arguments" >&5
26419 echo $ECHO_N "checking if gethostbyaddr_r takes 8 arguments... $ECHO_C" >&6
26420           cat >conftest.$ac_ext <<_ACEOF
26421 /* confdefs.h.  */
26422 _ACEOF
26423 cat confdefs.h >>conftest.$ac_ext
26424 cat >>conftest.$ac_ext <<_ACEOF
26425 /* end confdefs.h.  */
26426
26427 #include <sys/types.h>
26428 #include <netdb.h>
26429 int
26430 main ()
26431 {
26432
26433 char * address;
26434 int length;
26435 int type;
26436 struct hostent h;
26437 char buffer[8192];
26438 int h_errnop;
26439 struct hostent * hp;
26440 int rc;
26441
26442 rc = gethostbyaddr_r(address, length, type, &h,
26443                      buffer, 8192, &hp, &h_errnop);
26444   ;
26445   return 0;
26446 }
26447 _ACEOF
26448 rm -f conftest.$ac_objext
26449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26450   (eval $ac_compile) 2>conftest.er1
26451   ac_status=$?
26452   grep -v '^ *+' conftest.er1 >conftest.err
26453   rm -f conftest.er1
26454   cat conftest.err >&5
26455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26456   (exit $ac_status); } &&
26457          { ac_try='test -z "$ac_c_werror_flag"
26458                          || test ! -s conftest.err'
26459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26460   (eval $ac_try) 2>&5
26461   ac_status=$?
26462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26463   (exit $ac_status); }; } &&
26464          { ac_try='test -s conftest.$ac_objext'
26465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26466   (eval $ac_try) 2>&5
26467   ac_status=$?
26468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26469   (exit $ac_status); }; }; then
26470
26471             echo "$as_me:$LINENO: result: yes" >&5
26472 echo "${ECHO_T}yes" >&6
26473
26474 cat >>confdefs.h <<\_ACEOF
26475 #define HAVE_GETHOSTBYADDR_R_8 1
26476 _ACEOF
26477
26478             ac_cv_gethostbyaddr_args=8
26479 else
26480   echo "$as_me: failed program was:" >&5
26481 sed 's/^/| /' conftest.$ac_ext >&5
26482
26483
26484             echo "$as_me:$LINENO: result: no" >&5
26485 echo "${ECHO_T}no" >&6
26486             have_missing_r_funcs="$have_missing_r_funcs gethostbyaddr_r"
26487 fi
26488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26489 fi
26490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26491 fi
26492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26493 fi
26494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26495 fi
26496 done
26497
26498
26499   fi
26500
26501
26502
26503 for ac_func in inet_ntoa_r
26504 do
26505 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26506 echo "$as_me:$LINENO: checking for $ac_func" >&5
26507 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26508 if eval "test \"\${$as_ac_var+set}\" = set"; then
26509   echo $ECHO_N "(cached) $ECHO_C" >&6
26510 else
26511   cat >conftest.$ac_ext <<_ACEOF
26512 /* confdefs.h.  */
26513 _ACEOF
26514 cat confdefs.h >>conftest.$ac_ext
26515 cat >>conftest.$ac_ext <<_ACEOF
26516 /* end confdefs.h.  */
26517 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26518    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26519 #define $ac_func innocuous_$ac_func
26520
26521 /* System header to define __stub macros and hopefully few prototypes,
26522     which can conflict with char $ac_func (); below.
26523     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26524     <limits.h> exists even on freestanding compilers.  */
26525
26526 #ifdef __STDC__
26527 # include <limits.h>
26528 #else
26529 # include <assert.h>
26530 #endif
26531
26532 #undef $ac_func
26533
26534 /* Override any gcc2 internal prototype to avoid an error.  */
26535 #ifdef __cplusplus
26536 extern "C"
26537 {
26538 #endif
26539 /* We use char because int might match the return type of a gcc2
26540    builtin and then its argument prototype would still apply.  */
26541 char $ac_func ();
26542 /* The GNU C library defines this for functions which it implements
26543     to always fail with ENOSYS.  Some functions are actually named
26544     something starting with __ and the normal name is an alias.  */
26545 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26546 choke me
26547 #else
26548 char (*f) () = $ac_func;
26549 #endif
26550 #ifdef __cplusplus
26551 }
26552 #endif
26553
26554 int
26555 main ()
26556 {
26557 return f != $ac_func;
26558   ;
26559   return 0;
26560 }
26561 _ACEOF
26562 rm -f conftest.$ac_objext conftest$ac_exeext
26563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26564   (eval $ac_link) 2>conftest.er1
26565   ac_status=$?
26566   grep -v '^ *+' conftest.er1 >conftest.err
26567   rm -f conftest.er1
26568   cat conftest.err >&5
26569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26570   (exit $ac_status); } &&
26571          { ac_try='test -z "$ac_c_werror_flag"
26572                          || test ! -s conftest.err'
26573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26574   (eval $ac_try) 2>&5
26575   ac_status=$?
26576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26577   (exit $ac_status); }; } &&
26578          { ac_try='test -s conftest$ac_exeext'
26579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26580   (eval $ac_try) 2>&5
26581   ac_status=$?
26582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26583   (exit $ac_status); }; }; then
26584   eval "$as_ac_var=yes"
26585 else
26586   echo "$as_me: failed program was:" >&5
26587 sed 's/^/| /' conftest.$ac_ext >&5
26588
26589 eval "$as_ac_var=no"
26590 fi
26591 rm -f conftest.err conftest.$ac_objext \
26592       conftest$ac_exeext conftest.$ac_ext
26593 fi
26594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26595 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26596 if test `eval echo '${'$as_ac_var'}'` = yes; then
26597   cat >>confdefs.h <<_ACEOF
26598 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26599 _ACEOF
26600
26601     echo "$as_me:$LINENO: checking whether inet_ntoa_r is declared" >&5
26602 echo $ECHO_N "checking whether inet_ntoa_r is declared... $ECHO_C" >&6
26603     cat >conftest.$ac_ext <<_ACEOF
26604 /* confdefs.h.  */
26605 _ACEOF
26606 cat confdefs.h >>conftest.$ac_ext
26607 cat >>conftest.$ac_ext <<_ACEOF
26608 /* end confdefs.h.  */
26609
26610 #include <arpa/inet.h>
26611 _ACEOF
26612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26613   $EGREP "inet_ntoa_r" >/dev/null 2>&1; then
26614
26615
26616 cat >>confdefs.h <<\_ACEOF
26617 #define HAVE_INET_NTOA_R_DECL 1
26618 _ACEOF
26619
26620       echo "$as_me:$LINENO: result: yes" >&5
26621 echo "${ECHO_T}yes" >&6
26622 else
26623
26624       echo "$as_me:$LINENO: result: no" >&5
26625 echo "${ECHO_T}no" >&6
26626       echo "$as_me:$LINENO: checking whether inet_ntoa_r with -D_REENTRANT is declared" >&5
26627 echo $ECHO_N "checking whether inet_ntoa_r with -D_REENTRANT is declared... $ECHO_C" >&6
26628       cat >conftest.$ac_ext <<_ACEOF
26629 /* confdefs.h.  */
26630 _ACEOF
26631 cat confdefs.h >>conftest.$ac_ext
26632 cat >>conftest.$ac_ext <<_ACEOF
26633 /* end confdefs.h.  */
26634
26635 #define _REENTRANT
26636 #include <arpa/inet.h>
26637 _ACEOF
26638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26639   $EGREP "inet_ntoa_r" >/dev/null 2>&1; then
26640
26641
26642 cat >>confdefs.h <<\_ACEOF
26643 #define HAVE_INET_NTOA_R_DECL 1
26644 _ACEOF
26645
26646
26647 cat >>confdefs.h <<\_ACEOF
26648 #define NEED_REENTRANT 1
26649 _ACEOF
26650
26651         echo "$as_me:$LINENO: result: yes" >&5
26652 echo "${ECHO_T}yes" >&6
26653 else
26654   echo "$as_me:$LINENO: result: no" >&5
26655 echo "${ECHO_T}no" >&6
26656 fi
26657 rm -f conftest*
26658
26659 fi
26660 rm -f conftest*
26661
26662 fi
26663 done
26664
26665
26666
26667
26668
26669 for ac_func in localtime_r
26670 do
26671 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26672 echo "$as_me:$LINENO: checking for $ac_func" >&5
26673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26674 if eval "test \"\${$as_ac_var+set}\" = set"; then
26675   echo $ECHO_N "(cached) $ECHO_C" >&6
26676 else
26677   cat >conftest.$ac_ext <<_ACEOF
26678 /* confdefs.h.  */
26679 _ACEOF
26680 cat confdefs.h >>conftest.$ac_ext
26681 cat >>conftest.$ac_ext <<_ACEOF
26682 /* end confdefs.h.  */
26683 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26684    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26685 #define $ac_func innocuous_$ac_func
26686
26687 /* System header to define __stub macros and hopefully few prototypes,
26688     which can conflict with char $ac_func (); below.
26689     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26690     <limits.h> exists even on freestanding compilers.  */
26691
26692 #ifdef __STDC__
26693 # include <limits.h>
26694 #else
26695 # include <assert.h>
26696 #endif
26697
26698 #undef $ac_func
26699
26700 /* Override any gcc2 internal prototype to avoid an error.  */
26701 #ifdef __cplusplus
26702 extern "C"
26703 {
26704 #endif
26705 /* We use char because int might match the return type of a gcc2
26706    builtin and then its argument prototype would still apply.  */
26707 char $ac_func ();
26708 /* The GNU C library defines this for functions which it implements
26709     to always fail with ENOSYS.  Some functions are actually named
26710     something starting with __ and the normal name is an alias.  */
26711 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26712 choke me
26713 #else
26714 char (*f) () = $ac_func;
26715 #endif
26716 #ifdef __cplusplus
26717 }
26718 #endif
26719
26720 int
26721 main ()
26722 {
26723 return f != $ac_func;
26724   ;
26725   return 0;
26726 }
26727 _ACEOF
26728 rm -f conftest.$ac_objext conftest$ac_exeext
26729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26730   (eval $ac_link) 2>conftest.er1
26731   ac_status=$?
26732   grep -v '^ *+' conftest.er1 >conftest.err
26733   rm -f conftest.er1
26734   cat conftest.err >&5
26735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26736   (exit $ac_status); } &&
26737          { ac_try='test -z "$ac_c_werror_flag"
26738                          || test ! -s conftest.err'
26739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26740   (eval $ac_try) 2>&5
26741   ac_status=$?
26742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26743   (exit $ac_status); }; } &&
26744          { ac_try='test -s conftest$ac_exeext'
26745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26746   (eval $ac_try) 2>&5
26747   ac_status=$?
26748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26749   (exit $ac_status); }; }; then
26750   eval "$as_ac_var=yes"
26751 else
26752   echo "$as_me: failed program was:" >&5
26753 sed 's/^/| /' conftest.$ac_ext >&5
26754
26755 eval "$as_ac_var=no"
26756 fi
26757 rm -f conftest.err conftest.$ac_objext \
26758       conftest$ac_exeext conftest.$ac_ext
26759 fi
26760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26761 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26762 if test `eval echo '${'$as_ac_var'}'` = yes; then
26763   cat >>confdefs.h <<_ACEOF
26764 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26765 _ACEOF
26766
26767     echo "$as_me:$LINENO: checking whether localtime_r is declared" >&5
26768 echo $ECHO_N "checking whether localtime_r is declared... $ECHO_C" >&6
26769     cat >conftest.$ac_ext <<_ACEOF
26770 /* confdefs.h.  */
26771 _ACEOF
26772 cat confdefs.h >>conftest.$ac_ext
26773 cat >>conftest.$ac_ext <<_ACEOF
26774 /* end confdefs.h.  */
26775
26776 #include <time.h>
26777 _ACEOF
26778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26779   $EGREP "localtime_r" >/dev/null 2>&1; then
26780
26781       echo "$as_me:$LINENO: result: yes" >&5
26782 echo "${ECHO_T}yes" >&6
26783 else
26784
26785       echo "$as_me:$LINENO: result: no" >&5
26786 echo "${ECHO_T}no" >&6
26787       echo "$as_me:$LINENO: checking whether localtime_r with -D_REENTRANT is declared" >&5
26788 echo $ECHO_N "checking whether localtime_r with -D_REENTRANT is declared... $ECHO_C" >&6
26789       cat >conftest.$ac_ext <<_ACEOF
26790 /* confdefs.h.  */
26791 _ACEOF
26792 cat confdefs.h >>conftest.$ac_ext
26793 cat >>conftest.$ac_ext <<_ACEOF
26794 /* end confdefs.h.  */
26795
26796 #define _REENTRANT
26797 #include <time.h>
26798 _ACEOF
26799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26800   $EGREP "localtime_r" >/dev/null 2>&1; then
26801
26802         cat >>confdefs.h <<\_ACEOF
26803 #define NEED_REENTRANT 1
26804 _ACEOF
26805
26806         echo "$as_me:$LINENO: result: yes" >&5
26807 echo "${ECHO_T}yes" >&6
26808 else
26809   echo "$as_me:$LINENO: result: no" >&5
26810 echo "${ECHO_T}no" >&6
26811 fi
26812 rm -f conftest*
26813
26814 fi
26815 rm -f conftest*
26816
26817 fi
26818 done
26819
26820
26821
26822
26823 for ac_func in gmtime_r
26824 do
26825 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26826 echo "$as_me:$LINENO: checking for $ac_func" >&5
26827 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26828 if eval "test \"\${$as_ac_var+set}\" = set"; then
26829   echo $ECHO_N "(cached) $ECHO_C" >&6
26830 else
26831   cat >conftest.$ac_ext <<_ACEOF
26832 /* confdefs.h.  */
26833 _ACEOF
26834 cat confdefs.h >>conftest.$ac_ext
26835 cat >>conftest.$ac_ext <<_ACEOF
26836 /* end confdefs.h.  */
26837 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26838    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26839 #define $ac_func innocuous_$ac_func
26840
26841 /* System header to define __stub macros and hopefully few prototypes,
26842     which can conflict with char $ac_func (); below.
26843     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26844     <limits.h> exists even on freestanding compilers.  */
26845
26846 #ifdef __STDC__
26847 # include <limits.h>
26848 #else
26849 # include <assert.h>
26850 #endif
26851
26852 #undef $ac_func
26853
26854 /* Override any gcc2 internal prototype to avoid an error.  */
26855 #ifdef __cplusplus
26856 extern "C"
26857 {
26858 #endif
26859 /* We use char because int might match the return type of a gcc2
26860    builtin and then its argument prototype would still apply.  */
26861 char $ac_func ();
26862 /* The GNU C library defines this for functions which it implements
26863     to always fail with ENOSYS.  Some functions are actually named
26864     something starting with __ and the normal name is an alias.  */
26865 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26866 choke me
26867 #else
26868 char (*f) () = $ac_func;
26869 #endif
26870 #ifdef __cplusplus
26871 }
26872 #endif
26873
26874 int
26875 main ()
26876 {
26877 return f != $ac_func;
26878   ;
26879   return 0;
26880 }
26881 _ACEOF
26882 rm -f conftest.$ac_objext conftest$ac_exeext
26883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26884   (eval $ac_link) 2>conftest.er1
26885   ac_status=$?
26886   grep -v '^ *+' conftest.er1 >conftest.err
26887   rm -f conftest.er1
26888   cat conftest.err >&5
26889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26890   (exit $ac_status); } &&
26891          { ac_try='test -z "$ac_c_werror_flag"
26892                          || test ! -s conftest.err'
26893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26894   (eval $ac_try) 2>&5
26895   ac_status=$?
26896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26897   (exit $ac_status); }; } &&
26898          { ac_try='test -s conftest$ac_exeext'
26899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26900   (eval $ac_try) 2>&5
26901   ac_status=$?
26902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26903   (exit $ac_status); }; }; then
26904   eval "$as_ac_var=yes"
26905 else
26906   echo "$as_me: failed program was:" >&5
26907 sed 's/^/| /' conftest.$ac_ext >&5
26908
26909 eval "$as_ac_var=no"
26910 fi
26911 rm -f conftest.err conftest.$ac_objext \
26912       conftest$ac_exeext conftest.$ac_ext
26913 fi
26914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26915 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26916 if test `eval echo '${'$as_ac_var'}'` = yes; then
26917   cat >>confdefs.h <<_ACEOF
26918 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26919 _ACEOF
26920
26921 fi
26922 done
26923
26924
26925 fi
26926
26927
26928 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
26929 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
26930 if test "${ac_cv_header_stdc+set}" = set; then
26931   echo $ECHO_N "(cached) $ECHO_C" >&6
26932 else
26933   cat >conftest.$ac_ext <<_ACEOF
26934 /* confdefs.h.  */
26935 _ACEOF
26936 cat confdefs.h >>conftest.$ac_ext
26937 cat >>conftest.$ac_ext <<_ACEOF
26938 /* end confdefs.h.  */
26939 #include <stdlib.h>
26940 #include <stdarg.h>
26941 #include <string.h>
26942 #include <float.h>
26943
26944 int
26945 main ()
26946 {
26947
26948   ;
26949   return 0;
26950 }
26951 _ACEOF
26952 rm -f conftest.$ac_objext
26953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26954   (eval $ac_compile) 2>conftest.er1
26955   ac_status=$?
26956   grep -v '^ *+' conftest.er1 >conftest.err
26957   rm -f conftest.er1
26958   cat conftest.err >&5
26959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26960   (exit $ac_status); } &&
26961          { ac_try='test -z "$ac_c_werror_flag"
26962                          || test ! -s conftest.err'
26963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26964   (eval $ac_try) 2>&5
26965   ac_status=$?
26966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26967   (exit $ac_status); }; } &&
26968          { ac_try='test -s conftest.$ac_objext'
26969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26970   (eval $ac_try) 2>&5
26971   ac_status=$?
26972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26973   (exit $ac_status); }; }; then
26974   ac_cv_header_stdc=yes
26975 else
26976   echo "$as_me: failed program was:" >&5
26977 sed 's/^/| /' conftest.$ac_ext >&5
26978
26979 ac_cv_header_stdc=no
26980 fi
26981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26982
26983 if test $ac_cv_header_stdc = yes; then
26984   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26985   cat >conftest.$ac_ext <<_ACEOF
26986 /* confdefs.h.  */
26987 _ACEOF
26988 cat confdefs.h >>conftest.$ac_ext
26989 cat >>conftest.$ac_ext <<_ACEOF
26990 /* end confdefs.h.  */
26991 #include <string.h>
26992
26993 _ACEOF
26994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26995   $EGREP "memchr" >/dev/null 2>&1; then
26996   :
26997 else
26998   ac_cv_header_stdc=no
26999 fi
27000 rm -f conftest*
27001
27002 fi
27003
27004 if test $ac_cv_header_stdc = yes; then
27005   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
27006   cat >conftest.$ac_ext <<_ACEOF
27007 /* confdefs.h.  */
27008 _ACEOF
27009 cat confdefs.h >>conftest.$ac_ext
27010 cat >>conftest.$ac_ext <<_ACEOF
27011 /* end confdefs.h.  */
27012 #include <stdlib.h>
27013
27014 _ACEOF
27015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27016   $EGREP "free" >/dev/null 2>&1; then
27017   :
27018 else
27019   ac_cv_header_stdc=no
27020 fi
27021 rm -f conftest*
27022
27023 fi
27024
27025 if test $ac_cv_header_stdc = yes; then
27026   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
27027   if test "$cross_compiling" = yes; then
27028   :
27029 else
27030   cat >conftest.$ac_ext <<_ACEOF
27031 /* confdefs.h.  */
27032 _ACEOF
27033 cat confdefs.h >>conftest.$ac_ext
27034 cat >>conftest.$ac_ext <<_ACEOF
27035 /* end confdefs.h.  */
27036 #include <ctype.h>
27037 #if ((' ' & 0x0FF) == 0x020)
27038 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
27039 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
27040 #else
27041 # define ISLOWER(c) \
27042                    (('a' <= (c) && (c) <= 'i') \
27043                      || ('j' <= (c) && (c) <= 'r') \
27044                      || ('s' <= (c) && (c) <= 'z'))
27045 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
27046 #endif
27047
27048 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
27049 int
27050 main ()
27051 {
27052   int i;
27053   for (i = 0; i < 256; i++)
27054     if (XOR (islower (i), ISLOWER (i))
27055         || toupper (i) != TOUPPER (i))
27056       exit(2);
27057   exit (0);
27058 }
27059 _ACEOF
27060 rm -f conftest$ac_exeext
27061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27062   (eval $ac_link) 2>&5
27063   ac_status=$?
27064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27065   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27067   (eval $ac_try) 2>&5
27068   ac_status=$?
27069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27070   (exit $ac_status); }; }; then
27071   :
27072 else
27073   echo "$as_me: program exited with status $ac_status" >&5
27074 echo "$as_me: failed program was:" >&5
27075 sed 's/^/| /' conftest.$ac_ext >&5
27076
27077 ( exit $ac_status )
27078 ac_cv_header_stdc=no
27079 fi
27080 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27081 fi
27082 fi
27083 fi
27084 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
27085 echo "${ECHO_T}$ac_cv_header_stdc" >&6
27086 if test $ac_cv_header_stdc = yes; then
27087
27088 cat >>confdefs.h <<\_ACEOF
27089 #define STDC_HEADERS 1
27090 _ACEOF
27091
27092 fi
27093
27094
27095
27096
27097
27098
27099
27100
27101
27102
27103
27104
27105
27106
27107
27108
27109
27110
27111
27112
27113
27114
27115
27116
27117
27118
27119
27120
27121
27122
27123
27124
27125
27126 for ac_header in sys/types.h \
27127         sys/time.h \
27128         sys/select.h \
27129         sys/socket.h \
27130         sys/ioctl.h \
27131         assert.h \
27132         unistd.h \
27133         malloc.h \
27134         stdlib.h \
27135         limits.h \
27136         arpa/inet.h \
27137         net/if.h \
27138         netinet/in.h \
27139         netdb.h \
27140         sys/sockio.h \
27141         sys/stat.h \
27142         sys/param.h \
27143         termios.h \
27144         termio.h \
27145         sgtty.h \
27146         fcntl.h \
27147         dlfcn.h \
27148         alloca.h \
27149         winsock.h \
27150         time.h \
27151         io.h \
27152         pwd.h \
27153         utime.h \
27154         sys/utime.h \
27155         sys/poll.h \
27156         setjmp.h
27157 do
27158 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27159 echo "$as_me:$LINENO: checking for $ac_header" >&5
27160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27161 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27162   echo $ECHO_N "(cached) $ECHO_C" >&6
27163 else
27164   cat >conftest.$ac_ext <<_ACEOF
27165 /* confdefs.h.  */
27166 _ACEOF
27167 cat confdefs.h >>conftest.$ac_ext
27168 cat >>conftest.$ac_ext <<_ACEOF
27169 /* end confdefs.h.  */
27170
27171 #ifdef HAVE_SYS_TYPES_H
27172 #include <sys/types.h>
27173 #endif
27174 #ifdef HAVE_SYS_TIME_H
27175 #include <sys/time.h>
27176 #endif
27177 #ifdef HAVE_SYS_SELECT_H
27178 #include <sys/select.h>
27179 #endif
27180 #ifdef HAVE_SYS_SOCKET_H
27181 #include <sys/socket.h>
27182 #endif
27183
27184
27185
27186 #include <$ac_header>
27187 _ACEOF
27188 rm -f conftest.$ac_objext
27189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27190   (eval $ac_compile) 2>conftest.er1
27191   ac_status=$?
27192   grep -v '^ *+' conftest.er1 >conftest.err
27193   rm -f conftest.er1
27194   cat conftest.err >&5
27195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27196   (exit $ac_status); } &&
27197          { ac_try='test -z "$ac_c_werror_flag"
27198                          || test ! -s conftest.err'
27199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27200   (eval $ac_try) 2>&5
27201   ac_status=$?
27202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27203   (exit $ac_status); }; } &&
27204          { ac_try='test -s conftest.$ac_objext'
27205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27206   (eval $ac_try) 2>&5
27207   ac_status=$?
27208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27209   (exit $ac_status); }; }; then
27210   eval "$as_ac_Header=yes"
27211 else
27212   echo "$as_me: failed program was:" >&5
27213 sed 's/^/| /' conftest.$ac_ext >&5
27214
27215 eval "$as_ac_Header=no"
27216 fi
27217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27218 fi
27219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27220 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27222   cat >>confdefs.h <<_ACEOF
27223 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27224 _ACEOF
27225
27226 fi
27227
27228 done
27229
27230
27231 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
27232 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
27233 if test "${ac_cv_c_const+set}" = set; then
27234   echo $ECHO_N "(cached) $ECHO_C" >&6
27235 else
27236   cat >conftest.$ac_ext <<_ACEOF
27237 /* confdefs.h.  */
27238 _ACEOF
27239 cat confdefs.h >>conftest.$ac_ext
27240 cat >>conftest.$ac_ext <<_ACEOF
27241 /* end confdefs.h.  */
27242
27243 int
27244 main ()
27245 {
27246 /* FIXME: Include the comments suggested by Paul. */
27247 #ifndef __cplusplus
27248   /* Ultrix mips cc rejects this.  */
27249   typedef int charset[2];
27250   const charset x;
27251   /* SunOS 4.1.1 cc rejects this.  */
27252   char const *const *ccp;
27253   char **p;
27254   /* NEC SVR4.0.2 mips cc rejects this.  */
27255   struct point {int x, y;};
27256   static struct point const zero = {0,0};
27257   /* AIX XL C 1.02.0.0 rejects this.
27258      It does not let you subtract one const X* pointer from another in
27259      an arm of an if-expression whose if-part is not a constant
27260      expression */
27261   const char *g = "string";
27262   ccp = &g + (g ? g-g : 0);
27263   /* HPUX 7.0 cc rejects these. */
27264   ++ccp;
27265   p = (char**) ccp;
27266   ccp = (char const *const *) p;
27267   { /* SCO 3.2v4 cc rejects this.  */
27268     char *t;
27269     char const *s = 0 ? (char *) 0 : (char const *) 0;
27270
27271     *t++ = 0;
27272   }
27273   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
27274     int x[] = {25, 17};
27275     const int *foo = &x[0];
27276     ++foo;
27277   }
27278   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27279     typedef const int *iptr;
27280     iptr p = 0;
27281     ++p;
27282   }
27283   { /* AIX XL C 1.02.0.0 rejects this saying
27284        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27285     struct s { int j; const int *ap[3]; };
27286     struct s *b; b->j = 5;
27287   }
27288   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27289     const int foo = 10;
27290   }
27291 #endif
27292
27293   ;
27294   return 0;
27295 }
27296 _ACEOF
27297 rm -f conftest.$ac_objext
27298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27299   (eval $ac_compile) 2>conftest.er1
27300   ac_status=$?
27301   grep -v '^ *+' conftest.er1 >conftest.err
27302   rm -f conftest.er1
27303   cat conftest.err >&5
27304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27305   (exit $ac_status); } &&
27306          { ac_try='test -z "$ac_c_werror_flag"
27307                          || test ! -s conftest.err'
27308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27309   (eval $ac_try) 2>&5
27310   ac_status=$?
27311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27312   (exit $ac_status); }; } &&
27313          { ac_try='test -s conftest.$ac_objext'
27314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27315   (eval $ac_try) 2>&5
27316   ac_status=$?
27317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27318   (exit $ac_status); }; }; then
27319   ac_cv_c_const=yes
27320 else
27321   echo "$as_me: failed program was:" >&5
27322 sed 's/^/| /' conftest.$ac_ext >&5
27323
27324 ac_cv_c_const=no
27325 fi
27326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27327 fi
27328 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
27329 echo "${ECHO_T}$ac_cv_c_const" >&6
27330 if test $ac_cv_c_const = no; then
27331
27332 cat >>confdefs.h <<\_ACEOF
27333 #define const
27334 _ACEOF
27335
27336 fi
27337
27338 echo "$as_me:$LINENO: checking for size_t" >&5
27339 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27340 if test "${ac_cv_type_size_t+set}" = set; then
27341   echo $ECHO_N "(cached) $ECHO_C" >&6
27342 else
27343   cat >conftest.$ac_ext <<_ACEOF
27344 /* confdefs.h.  */
27345 _ACEOF
27346 cat confdefs.h >>conftest.$ac_ext
27347 cat >>conftest.$ac_ext <<_ACEOF
27348 /* end confdefs.h.  */
27349 $ac_includes_default
27350 int
27351 main ()
27352 {
27353 if ((size_t *) 0)
27354   return 0;
27355 if (sizeof (size_t))
27356   return 0;
27357   ;
27358   return 0;
27359 }
27360 _ACEOF
27361 rm -f conftest.$ac_objext
27362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27363   (eval $ac_compile) 2>conftest.er1
27364   ac_status=$?
27365   grep -v '^ *+' conftest.er1 >conftest.err
27366   rm -f conftest.er1
27367   cat conftest.err >&5
27368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27369   (exit $ac_status); } &&
27370          { ac_try='test -z "$ac_c_werror_flag"
27371                          || test ! -s conftest.err'
27372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27373   (eval $ac_try) 2>&5
27374   ac_status=$?
27375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27376   (exit $ac_status); }; } &&
27377          { ac_try='test -s conftest.$ac_objext'
27378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27379   (eval $ac_try) 2>&5
27380   ac_status=$?
27381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27382   (exit $ac_status); }; }; then
27383   ac_cv_type_size_t=yes
27384 else
27385   echo "$as_me: failed program was:" >&5
27386 sed 's/^/| /' conftest.$ac_ext >&5
27387
27388 ac_cv_type_size_t=no
27389 fi
27390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27391 fi
27392 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27393 echo "${ECHO_T}$ac_cv_type_size_t" >&6
27394 if test $ac_cv_type_size_t = yes; then
27395   :
27396 else
27397
27398 cat >>confdefs.h <<_ACEOF
27399 #define size_t unsigned
27400 _ACEOF
27401
27402 fi
27403
27404 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
27405 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
27406 if test "${ac_cv_header_time+set}" = set; then
27407   echo $ECHO_N "(cached) $ECHO_C" >&6
27408 else
27409   cat >conftest.$ac_ext <<_ACEOF
27410 /* confdefs.h.  */
27411 _ACEOF
27412 cat confdefs.h >>conftest.$ac_ext
27413 cat >>conftest.$ac_ext <<_ACEOF
27414 /* end confdefs.h.  */
27415 #include <sys/types.h>
27416 #include <sys/time.h>
27417 #include <time.h>
27418
27419 int
27420 main ()
27421 {
27422 if ((struct tm *) 0)
27423 return 0;
27424   ;
27425   return 0;
27426 }
27427 _ACEOF
27428 rm -f conftest.$ac_objext
27429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27430   (eval $ac_compile) 2>conftest.er1
27431   ac_status=$?
27432   grep -v '^ *+' conftest.er1 >conftest.err
27433   rm -f conftest.er1
27434   cat conftest.err >&5
27435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27436   (exit $ac_status); } &&
27437          { ac_try='test -z "$ac_c_werror_flag"
27438                          || test ! -s conftest.err'
27439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27440   (eval $ac_try) 2>&5
27441   ac_status=$?
27442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27443   (exit $ac_status); }; } &&
27444          { ac_try='test -s conftest.$ac_objext'
27445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27446   (eval $ac_try) 2>&5
27447   ac_status=$?
27448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27449   (exit $ac_status); }; }; then
27450   ac_cv_header_time=yes
27451 else
27452   echo "$as_me: failed program was:" >&5
27453 sed 's/^/| /' conftest.$ac_ext >&5
27454
27455 ac_cv_header_time=no
27456 fi
27457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27458 fi
27459 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
27460 echo "${ECHO_T}$ac_cv_header_time" >&6
27461 if test $ac_cv_header_time = yes; then
27462
27463 cat >>confdefs.h <<\_ACEOF
27464 #define TIME_WITH_SYS_TIME 1
27465 _ACEOF
27466
27467 fi
27468
27469
27470 echo "$as_me:$LINENO: checking for curl_off_t" >&5
27471 echo $ECHO_N "checking for curl_off_t... $ECHO_C" >&6
27472 if test "${ac_cv_type_curl_off_t+set}" = set; then
27473   echo $ECHO_N "(cached) $ECHO_C" >&6
27474 else
27475   cat >conftest.$ac_ext <<_ACEOF
27476 /* confdefs.h.  */
27477 _ACEOF
27478 cat confdefs.h >>conftest.$ac_ext
27479 cat >>conftest.$ac_ext <<_ACEOF
27480 /* end confdefs.h.  */
27481
27482 #include <stdio.h>
27483 #include "$srcdir/include/curl/curl.h"
27484
27485
27486 int
27487 main ()
27488 {
27489 if ((curl_off_t *) 0)
27490   return 0;
27491 if (sizeof (curl_off_t))
27492   return 0;
27493   ;
27494   return 0;
27495 }
27496 _ACEOF
27497 rm -f conftest.$ac_objext
27498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27499   (eval $ac_compile) 2>conftest.er1
27500   ac_status=$?
27501   grep -v '^ *+' conftest.er1 >conftest.err
27502   rm -f conftest.er1
27503   cat conftest.err >&5
27504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27505   (exit $ac_status); } &&
27506          { ac_try='test -z "$ac_c_werror_flag"
27507                          || test ! -s conftest.err'
27508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27509   (eval $ac_try) 2>&5
27510   ac_status=$?
27511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27512   (exit $ac_status); }; } &&
27513          { ac_try='test -s conftest.$ac_objext'
27514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27515   (eval $ac_try) 2>&5
27516   ac_status=$?
27517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27518   (exit $ac_status); }; }; then
27519   ac_cv_type_curl_off_t=yes
27520 else
27521   echo "$as_me: failed program was:" >&5
27522 sed 's/^/| /' conftest.$ac_ext >&5
27523
27524 ac_cv_type_curl_off_t=no
27525 fi
27526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27527 fi
27528 echo "$as_me:$LINENO: result: $ac_cv_type_curl_off_t" >&5
27529 echo "${ECHO_T}$ac_cv_type_curl_off_t" >&6
27530
27531 echo "$as_me:$LINENO: checking size of curl_off_t" >&5
27532 echo $ECHO_N "checking size of curl_off_t... $ECHO_C" >&6
27533 if test "${ac_cv_sizeof_curl_off_t+set}" = set; then
27534   echo $ECHO_N "(cached) $ECHO_C" >&6
27535 else
27536   if test "$ac_cv_type_curl_off_t" = yes; then
27537   # The cast to unsigned long works around a bug in the HP C Compiler
27538   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27539   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27540   # This bug is HP SR number 8606223364.
27541   if test "$cross_compiling" = yes; then
27542   # Depending upon the size, compute the lo and hi bounds.
27543 cat >conftest.$ac_ext <<_ACEOF
27544 /* confdefs.h.  */
27545 _ACEOF
27546 cat confdefs.h >>conftest.$ac_ext
27547 cat >>conftest.$ac_ext <<_ACEOF
27548 /* end confdefs.h.  */
27549
27550 #include <stdio.h>
27551 #include "$srcdir/include/curl/curl.h"
27552
27553
27554 int
27555 main ()
27556 {
27557 static int test_array [1 - 2 * !(((long) (sizeof (curl_off_t))) >= 0)];
27558 test_array [0] = 0
27559
27560   ;
27561   return 0;
27562 }
27563 _ACEOF
27564 rm -f conftest.$ac_objext
27565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27566   (eval $ac_compile) 2>conftest.er1
27567   ac_status=$?
27568   grep -v '^ *+' conftest.er1 >conftest.err
27569   rm -f conftest.er1
27570   cat conftest.err >&5
27571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27572   (exit $ac_status); } &&
27573          { ac_try='test -z "$ac_c_werror_flag"
27574                          || test ! -s conftest.err'
27575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27576   (eval $ac_try) 2>&5
27577   ac_status=$?
27578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27579   (exit $ac_status); }; } &&
27580          { ac_try='test -s conftest.$ac_objext'
27581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27582   (eval $ac_try) 2>&5
27583   ac_status=$?
27584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27585   (exit $ac_status); }; }; then
27586   ac_lo=0 ac_mid=0
27587   while :; do
27588     cat >conftest.$ac_ext <<_ACEOF
27589 /* confdefs.h.  */
27590 _ACEOF
27591 cat confdefs.h >>conftest.$ac_ext
27592 cat >>conftest.$ac_ext <<_ACEOF
27593 /* end confdefs.h.  */
27594
27595 #include <stdio.h>
27596 #include "$srcdir/include/curl/curl.h"
27597
27598
27599 int
27600 main ()
27601 {
27602 static int test_array [1 - 2 * !(((long) (sizeof (curl_off_t))) <= $ac_mid)];
27603 test_array [0] = 0
27604
27605   ;
27606   return 0;
27607 }
27608 _ACEOF
27609 rm -f conftest.$ac_objext
27610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27611   (eval $ac_compile) 2>conftest.er1
27612   ac_status=$?
27613   grep -v '^ *+' conftest.er1 >conftest.err
27614   rm -f conftest.er1
27615   cat conftest.err >&5
27616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27617   (exit $ac_status); } &&
27618          { ac_try='test -z "$ac_c_werror_flag"
27619                          || test ! -s conftest.err'
27620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27621   (eval $ac_try) 2>&5
27622   ac_status=$?
27623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27624   (exit $ac_status); }; } &&
27625          { ac_try='test -s conftest.$ac_objext'
27626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27627   (eval $ac_try) 2>&5
27628   ac_status=$?
27629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27630   (exit $ac_status); }; }; then
27631   ac_hi=$ac_mid; break
27632 else
27633   echo "$as_me: failed program was:" >&5
27634 sed 's/^/| /' conftest.$ac_ext >&5
27635
27636 ac_lo=`expr $ac_mid + 1`
27637                     if test $ac_lo -le $ac_mid; then
27638                       ac_lo= ac_hi=
27639                       break
27640                     fi
27641                     ac_mid=`expr 2 '*' $ac_mid + 1`
27642 fi
27643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27644   done
27645 else
27646   echo "$as_me: failed program was:" >&5
27647 sed 's/^/| /' conftest.$ac_ext >&5
27648
27649 cat >conftest.$ac_ext <<_ACEOF
27650 /* confdefs.h.  */
27651 _ACEOF
27652 cat confdefs.h >>conftest.$ac_ext
27653 cat >>conftest.$ac_ext <<_ACEOF
27654 /* end confdefs.h.  */
27655
27656 #include <stdio.h>
27657 #include "$srcdir/include/curl/curl.h"
27658
27659
27660 int
27661 main ()
27662 {
27663 static int test_array [1 - 2 * !(((long) (sizeof (curl_off_t))) < 0)];
27664 test_array [0] = 0
27665
27666   ;
27667   return 0;
27668 }
27669 _ACEOF
27670 rm -f conftest.$ac_objext
27671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27672   (eval $ac_compile) 2>conftest.er1
27673   ac_status=$?
27674   grep -v '^ *+' conftest.er1 >conftest.err
27675   rm -f conftest.er1
27676   cat conftest.err >&5
27677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27678   (exit $ac_status); } &&
27679          { ac_try='test -z "$ac_c_werror_flag"
27680                          || test ! -s conftest.err'
27681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27682   (eval $ac_try) 2>&5
27683   ac_status=$?
27684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27685   (exit $ac_status); }; } &&
27686          { ac_try='test -s conftest.$ac_objext'
27687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27688   (eval $ac_try) 2>&5
27689   ac_status=$?
27690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27691   (exit $ac_status); }; }; then
27692   ac_hi=-1 ac_mid=-1
27693   while :; do
27694     cat >conftest.$ac_ext <<_ACEOF
27695 /* confdefs.h.  */
27696 _ACEOF
27697 cat confdefs.h >>conftest.$ac_ext
27698 cat >>conftest.$ac_ext <<_ACEOF
27699 /* end confdefs.h.  */
27700
27701 #include <stdio.h>
27702 #include "$srcdir/include/curl/curl.h"
27703
27704
27705 int
27706 main ()
27707 {
27708 static int test_array [1 - 2 * !(((long) (sizeof (curl_off_t))) >= $ac_mid)];
27709 test_array [0] = 0
27710
27711   ;
27712   return 0;
27713 }
27714 _ACEOF
27715 rm -f conftest.$ac_objext
27716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27717   (eval $ac_compile) 2>conftest.er1
27718   ac_status=$?
27719   grep -v '^ *+' conftest.er1 >conftest.err
27720   rm -f conftest.er1
27721   cat conftest.err >&5
27722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27723   (exit $ac_status); } &&
27724          { ac_try='test -z "$ac_c_werror_flag"
27725                          || test ! -s conftest.err'
27726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27727   (eval $ac_try) 2>&5
27728   ac_status=$?
27729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27730   (exit $ac_status); }; } &&
27731          { ac_try='test -s conftest.$ac_objext'
27732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27733   (eval $ac_try) 2>&5
27734   ac_status=$?
27735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27736   (exit $ac_status); }; }; then
27737   ac_lo=$ac_mid; break
27738 else
27739   echo "$as_me: failed program was:" >&5
27740 sed 's/^/| /' conftest.$ac_ext >&5
27741
27742 ac_hi=`expr '(' $ac_mid ')' - 1`
27743                        if test $ac_mid -le $ac_hi; then
27744                          ac_lo= ac_hi=
27745                          break
27746                        fi
27747                        ac_mid=`expr 2 '*' $ac_mid`
27748 fi
27749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27750   done
27751 else
27752   echo "$as_me: failed program was:" >&5
27753 sed 's/^/| /' conftest.$ac_ext >&5
27754
27755 ac_lo= ac_hi=
27756 fi
27757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27758 fi
27759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27760 # Binary search between lo and hi bounds.
27761 while test "x$ac_lo" != "x$ac_hi"; do
27762   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27763   cat >conftest.$ac_ext <<_ACEOF
27764 /* confdefs.h.  */
27765 _ACEOF
27766 cat confdefs.h >>conftest.$ac_ext
27767 cat >>conftest.$ac_ext <<_ACEOF
27768 /* end confdefs.h.  */
27769
27770 #include <stdio.h>
27771 #include "$srcdir/include/curl/curl.h"
27772
27773
27774 int
27775 main ()
27776 {
27777 static int test_array [1 - 2 * !(((long) (sizeof (curl_off_t))) <= $ac_mid)];
27778 test_array [0] = 0
27779
27780   ;
27781   return 0;
27782 }
27783 _ACEOF
27784 rm -f conftest.$ac_objext
27785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27786   (eval $ac_compile) 2>conftest.er1
27787   ac_status=$?
27788   grep -v '^ *+' conftest.er1 >conftest.err
27789   rm -f conftest.er1
27790   cat conftest.err >&5
27791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27792   (exit $ac_status); } &&
27793          { ac_try='test -z "$ac_c_werror_flag"
27794                          || test ! -s conftest.err'
27795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27796   (eval $ac_try) 2>&5
27797   ac_status=$?
27798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27799   (exit $ac_status); }; } &&
27800          { ac_try='test -s conftest.$ac_objext'
27801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27802   (eval $ac_try) 2>&5
27803   ac_status=$?
27804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27805   (exit $ac_status); }; }; then
27806   ac_hi=$ac_mid
27807 else
27808   echo "$as_me: failed program was:" >&5
27809 sed 's/^/| /' conftest.$ac_ext >&5
27810
27811 ac_lo=`expr '(' $ac_mid ')' + 1`
27812 fi
27813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27814 done
27815 case $ac_lo in
27816 ?*) ac_cv_sizeof_curl_off_t=$ac_lo;;
27817 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (curl_off_t), 77
27818 See \`config.log' for more details." >&5
27819 echo "$as_me: error: cannot compute sizeof (curl_off_t), 77
27820 See \`config.log' for more details." >&2;}
27821    { (exit 1); exit 1; }; } ;;
27822 esac
27823 else
27824   if test "$cross_compiling" = yes; then
27825   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27826 See \`config.log' for more details." >&5
27827 echo "$as_me: error: cannot run test program while cross compiling
27828 See \`config.log' for more details." >&2;}
27829    { (exit 1); exit 1; }; }
27830 else
27831   cat >conftest.$ac_ext <<_ACEOF
27832 /* confdefs.h.  */
27833 _ACEOF
27834 cat confdefs.h >>conftest.$ac_ext
27835 cat >>conftest.$ac_ext <<_ACEOF
27836 /* end confdefs.h.  */
27837
27838 #include <stdio.h>
27839 #include "$srcdir/include/curl/curl.h"
27840
27841
27842 long longval () { return (long) (sizeof (curl_off_t)); }
27843 unsigned long ulongval () { return (long) (sizeof (curl_off_t)); }
27844 #include <stdio.h>
27845 #include <stdlib.h>
27846 int
27847 main ()
27848 {
27849
27850   FILE *f = fopen ("conftest.val", "w");
27851   if (! f)
27852     exit (1);
27853   if (((long) (sizeof (curl_off_t))) < 0)
27854     {
27855       long i = longval ();
27856       if (i != ((long) (sizeof (curl_off_t))))
27857         exit (1);
27858       fprintf (f, "%ld\n", i);
27859     }
27860   else
27861     {
27862       unsigned long i = ulongval ();
27863       if (i != ((long) (sizeof (curl_off_t))))
27864         exit (1);
27865       fprintf (f, "%lu\n", i);
27866     }
27867   exit (ferror (f) || fclose (f) != 0);
27868
27869   ;
27870   return 0;
27871 }
27872 _ACEOF
27873 rm -f conftest$ac_exeext
27874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27875   (eval $ac_link) 2>&5
27876   ac_status=$?
27877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27878   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27880   (eval $ac_try) 2>&5
27881   ac_status=$?
27882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27883   (exit $ac_status); }; }; then
27884   ac_cv_sizeof_curl_off_t=`cat conftest.val`
27885 else
27886   echo "$as_me: program exited with status $ac_status" >&5
27887 echo "$as_me: failed program was:" >&5
27888 sed 's/^/| /' conftest.$ac_ext >&5
27889
27890 ( exit $ac_status )
27891 { { echo "$as_me:$LINENO: error: cannot compute sizeof (curl_off_t), 77
27892 See \`config.log' for more details." >&5
27893 echo "$as_me: error: cannot compute sizeof (curl_off_t), 77
27894 See \`config.log' for more details." >&2;}
27895    { (exit 1); exit 1; }; }
27896 fi
27897 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27898 fi
27899 fi
27900 rm -f conftest.val
27901 else
27902   ac_cv_sizeof_curl_off_t=0
27903 fi
27904 fi
27905 echo "$as_me:$LINENO: result: $ac_cv_sizeof_curl_off_t" >&5
27906 echo "${ECHO_T}$ac_cv_sizeof_curl_off_t" >&6
27907 cat >>confdefs.h <<_ACEOF
27908 #define SIZEOF_CURL_OFF_T $ac_cv_sizeof_curl_off_t
27909 _ACEOF
27910
27911
27912
27913 echo "$as_me:$LINENO: checking for long long" >&5
27914 echo $ECHO_N "checking for long long... $ECHO_C" >&6
27915 if test "${ac_cv_type_long_long+set}" = set; then
27916   echo $ECHO_N "(cached) $ECHO_C" >&6
27917 else
27918   cat >conftest.$ac_ext <<_ACEOF
27919 /* confdefs.h.  */
27920 _ACEOF
27921 cat confdefs.h >>conftest.$ac_ext
27922 cat >>conftest.$ac_ext <<_ACEOF
27923 /* end confdefs.h.  */
27924 $ac_includes_default
27925 int
27926 main ()
27927 {
27928 if ((long long *) 0)
27929   return 0;
27930 if (sizeof (long long))
27931   return 0;
27932   ;
27933   return 0;
27934 }
27935 _ACEOF
27936 rm -f conftest.$ac_objext
27937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27938   (eval $ac_compile) 2>conftest.er1
27939   ac_status=$?
27940   grep -v '^ *+' conftest.er1 >conftest.err
27941   rm -f conftest.er1
27942   cat conftest.err >&5
27943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27944   (exit $ac_status); } &&
27945          { ac_try='test -z "$ac_c_werror_flag"
27946                          || test ! -s conftest.err'
27947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27948   (eval $ac_try) 2>&5
27949   ac_status=$?
27950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27951   (exit $ac_status); }; } &&
27952          { ac_try='test -s conftest.$ac_objext'
27953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27954   (eval $ac_try) 2>&5
27955   ac_status=$?
27956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27957   (exit $ac_status); }; }; then
27958   ac_cv_type_long_long=yes
27959 else
27960   echo "$as_me: failed program was:" >&5
27961 sed 's/^/| /' conftest.$ac_ext >&5
27962
27963 ac_cv_type_long_long=no
27964 fi
27965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27966 fi
27967 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
27968 echo "${ECHO_T}$ac_cv_type_long_long" >&6
27969 if test $ac_cv_type_long_long = yes; then
27970
27971 cat >>confdefs.h <<\_ACEOF
27972 #define HAVE_LONGLONG 1
27973 _ACEOF
27974
27975 fi
27976
27977
27978 # check for ssize_t
27979 echo "$as_me:$LINENO: checking for ssize_t" >&5
27980 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
27981 if test "${ac_cv_type_ssize_t+set}" = set; then
27982   echo $ECHO_N "(cached) $ECHO_C" >&6
27983 else
27984   cat >conftest.$ac_ext <<_ACEOF
27985 /* confdefs.h.  */
27986 _ACEOF
27987 cat confdefs.h >>conftest.$ac_ext
27988 cat >>conftest.$ac_ext <<_ACEOF
27989 /* end confdefs.h.  */
27990 $ac_includes_default
27991 int
27992 main ()
27993 {
27994 if ((ssize_t *) 0)
27995   return 0;
27996 if (sizeof (ssize_t))
27997   return 0;
27998   ;
27999   return 0;
28000 }
28001 _ACEOF
28002 rm -f conftest.$ac_objext
28003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28004   (eval $ac_compile) 2>conftest.er1
28005   ac_status=$?
28006   grep -v '^ *+' conftest.er1 >conftest.err
28007   rm -f conftest.er1
28008   cat conftest.err >&5
28009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28010   (exit $ac_status); } &&
28011          { ac_try='test -z "$ac_c_werror_flag"
28012                          || test ! -s conftest.err'
28013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28014   (eval $ac_try) 2>&5
28015   ac_status=$?
28016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28017   (exit $ac_status); }; } &&
28018          { ac_try='test -s conftest.$ac_objext'
28019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28020   (eval $ac_try) 2>&5
28021   ac_status=$?
28022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28023   (exit $ac_status); }; }; then
28024   ac_cv_type_ssize_t=yes
28025 else
28026   echo "$as_me: failed program was:" >&5
28027 sed 's/^/| /' conftest.$ac_ext >&5
28028
28029 ac_cv_type_ssize_t=no
28030 fi
28031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28032 fi
28033 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
28034 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
28035 if test $ac_cv_type_ssize_t = yes; then
28036   :
28037 else
28038
28039 cat >>confdefs.h <<\_ACEOF
28040 #define ssize_t int
28041 _ACEOF
28042
28043 fi
28044
28045
28046
28047    echo "$as_me:$LINENO: checking for socklen_t" >&5
28048 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
28049 if test "${ac_cv_type_socklen_t+set}" = set; then
28050   echo $ECHO_N "(cached) $ECHO_C" >&6
28051 else
28052   cat >conftest.$ac_ext <<_ACEOF
28053 /* confdefs.h.  */
28054 _ACEOF
28055 cat confdefs.h >>conftest.$ac_ext
28056 cat >>conftest.$ac_ext <<_ACEOF
28057 /* end confdefs.h.  */
28058 #include <sys/types.h>
28059 #include <sys/socket.h>
28060
28061 int
28062 main ()
28063 {
28064 if ((socklen_t *) 0)
28065   return 0;
28066 if (sizeof (socklen_t))
28067   return 0;
28068   ;
28069   return 0;
28070 }
28071 _ACEOF
28072 rm -f conftest.$ac_objext
28073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28074   (eval $ac_compile) 2>conftest.er1
28075   ac_status=$?
28076   grep -v '^ *+' conftest.er1 >conftest.err
28077   rm -f conftest.er1
28078   cat conftest.err >&5
28079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28080   (exit $ac_status); } &&
28081          { ac_try='test -z "$ac_c_werror_flag"
28082                          || test ! -s conftest.err'
28083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28084   (eval $ac_try) 2>&5
28085   ac_status=$?
28086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28087   (exit $ac_status); }; } &&
28088          { ac_try='test -s conftest.$ac_objext'
28089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28090   (eval $ac_try) 2>&5
28091   ac_status=$?
28092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28093   (exit $ac_status); }; }; then
28094   ac_cv_type_socklen_t=yes
28095 else
28096   echo "$as_me: failed program was:" >&5
28097 sed 's/^/| /' conftest.$ac_ext >&5
28098
28099 ac_cv_type_socklen_t=no
28100 fi
28101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28102 fi
28103 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
28104 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
28105 if test $ac_cv_type_socklen_t = yes; then
28106   :
28107 else
28108
28109       echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
28110 echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6
28111       if test "${curl_cv_socklen_t_equiv+set}" = set; then
28112   echo $ECHO_N "(cached) $ECHO_C" >&6
28113 else
28114
28115          # Systems have either "struct sockaddr *" or
28116          # "void *" as the second argument to getpeername
28117          curl_cv_socklen_t_equiv=
28118          for arg2 in "struct sockaddr" void; do
28119             for t in int size_t unsigned long "unsigned long"; do
28120                cat >conftest.$ac_ext <<_ACEOF
28121 /* confdefs.h.  */
28122 _ACEOF
28123 cat confdefs.h >>conftest.$ac_ext
28124 cat >>conftest.$ac_ext <<_ACEOF
28125 /* end confdefs.h.  */
28126
28127                   #ifdef HAVE_SYS_TYPES_H
28128                   #include <sys/types.h>
28129                   #endif
28130                   #ifdef HAVE_SYS_SOCKET_H
28131                   #include <sys/socket.h>
28132                   #endif
28133
28134                   int getpeername (int, $arg2 *, $t *);
28135
28136 int
28137 main ()
28138 {
28139
28140                   $t len;
28141                   getpeername(0,0,&len);
28142
28143   ;
28144   return 0;
28145 }
28146 _ACEOF
28147 rm -f conftest.$ac_objext
28148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28149   (eval $ac_compile) 2>conftest.er1
28150   ac_status=$?
28151   grep -v '^ *+' conftest.er1 >conftest.err
28152   rm -f conftest.er1
28153   cat conftest.err >&5
28154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28155   (exit $ac_status); } &&
28156          { ac_try='test -z "$ac_c_werror_flag"
28157                          || test ! -s conftest.err'
28158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28159   (eval $ac_try) 2>&5
28160   ac_status=$?
28161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28162   (exit $ac_status); }; } &&
28163          { ac_try='test -s conftest.$ac_objext'
28164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28165   (eval $ac_try) 2>&5
28166   ac_status=$?
28167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28168   (exit $ac_status); }; }; then
28169
28170                   curl_cv_socklen_t_equiv="$t"
28171                   break
28172
28173 else
28174   echo "$as_me: failed program was:" >&5
28175 sed 's/^/| /' conftest.$ac_ext >&5
28176
28177 fi
28178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28179             done
28180          done
28181
28182          if test "x$curl_cv_socklen_t_equiv" = x; then
28183             { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
28184 echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
28185    { (exit 1); exit 1; }; }
28186          fi
28187
28188 fi
28189
28190       echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
28191 echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6
28192
28193 cat >>confdefs.h <<_ACEOF
28194 #define socklen_t $curl_cv_socklen_t_equiv
28195 _ACEOF
28196
28197 fi
28198
28199
28200
28201    echo "$as_me:$LINENO: checking for in_addr_t" >&5
28202 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
28203 if test "${ac_cv_type_in_addr_t+set}" = set; then
28204   echo $ECHO_N "(cached) $ECHO_C" >&6
28205 else
28206   cat >conftest.$ac_ext <<_ACEOF
28207 /* confdefs.h.  */
28208 _ACEOF
28209 cat confdefs.h >>conftest.$ac_ext
28210 cat >>conftest.$ac_ext <<_ACEOF
28211 /* end confdefs.h.  */
28212 #include <sys/types.h>
28213 #include <sys/socket.h>
28214 #include <arpa/inet.h>
28215
28216 int
28217 main ()
28218 {
28219 if ((in_addr_t *) 0)
28220   return 0;
28221 if (sizeof (in_addr_t))
28222   return 0;
28223   ;
28224   return 0;
28225 }
28226 _ACEOF
28227 rm -f conftest.$ac_objext
28228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28229   (eval $ac_compile) 2>conftest.er1
28230   ac_status=$?
28231   grep -v '^ *+' conftest.er1 >conftest.err
28232   rm -f conftest.er1
28233   cat conftest.err >&5
28234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28235   (exit $ac_status); } &&
28236          { ac_try='test -z "$ac_c_werror_flag"
28237                          || test ! -s conftest.err'
28238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28239   (eval $ac_try) 2>&5
28240   ac_status=$?
28241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28242   (exit $ac_status); }; } &&
28243          { ac_try='test -s conftest.$ac_objext'
28244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28245   (eval $ac_try) 2>&5
28246   ac_status=$?
28247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28248   (exit $ac_status); }; }; then
28249   ac_cv_type_in_addr_t=yes
28250 else
28251   echo "$as_me: failed program was:" >&5
28252 sed 's/^/| /' conftest.$ac_ext >&5
28253
28254 ac_cv_type_in_addr_t=no
28255 fi
28256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28257 fi
28258 echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5
28259 echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6
28260 if test $ac_cv_type_in_addr_t = yes; then
28261   :
28262 else
28263
28264       echo "$as_me:$LINENO: checking for in_addr_t equivalent" >&5
28265 echo $ECHO_N "checking for in_addr_t equivalent... $ECHO_C" >&6
28266       if test "${curl_cv_in_addr_t_equiv+set}" = set; then
28267   echo $ECHO_N "(cached) $ECHO_C" >&6
28268 else
28269
28270          curl_cv_in_addr_t_equiv=
28271          for t in "unsigned long" int size_t unsigned long; do
28272             cat >conftest.$ac_ext <<_ACEOF
28273 /* confdefs.h.  */
28274 _ACEOF
28275 cat confdefs.h >>conftest.$ac_ext
28276 cat >>conftest.$ac_ext <<_ACEOF
28277 /* end confdefs.h.  */
28278
28279                #ifdef HAVE_SYS_TYPES_H
28280                #include <sys/types.h>
28281                #endif
28282                #ifdef HAVE_SYS_SOCKET_H
28283                #include <sys/socket.h>
28284                #endif
28285                #ifdef HAVE_ARPA_INET_H
28286                #include <arpa/inet.h>
28287                #endif
28288
28289 int
28290 main ()
28291 {
28292
28293                $t data = inet_addr ("1.2.3.4");
28294
28295   ;
28296   return 0;
28297 }
28298 _ACEOF
28299 rm -f conftest.$ac_objext
28300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28301   (eval $ac_compile) 2>conftest.er1
28302   ac_status=$?
28303   grep -v '^ *+' conftest.er1 >conftest.err
28304   rm -f conftest.er1
28305   cat conftest.err >&5
28306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28307   (exit $ac_status); } &&
28308          { ac_try='test -z "$ac_c_werror_flag"
28309                          || test ! -s conftest.err'
28310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28311   (eval $ac_try) 2>&5
28312   ac_status=$?
28313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28314   (exit $ac_status); }; } &&
28315          { ac_try='test -s conftest.$ac_objext'
28316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28317   (eval $ac_try) 2>&5
28318   ac_status=$?
28319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28320   (exit $ac_status); }; }; then
28321
28322                curl_cv_in_addr_t_equiv="$t"
28323                break
28324
28325 else
28326   echo "$as_me: failed program was:" >&5
28327 sed 's/^/| /' conftest.$ac_ext >&5
28328
28329 fi
28330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28331          done
28332
28333          if test "x$curl_cv_in_addr_t_equiv" = x; then
28334             { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of in_addr_t" >&5
28335 echo "$as_me: error: Cannot find a type to use in place of in_addr_t" >&2;}
28336    { (exit 1); exit 1; }; }
28337          fi
28338
28339 fi
28340
28341       echo "$as_me:$LINENO: result: $curl_cv_in_addr_t_equiv" >&5
28342 echo "${ECHO_T}$curl_cv_in_addr_t_equiv" >&6
28343
28344 cat >>confdefs.h <<_ACEOF
28345 #define in_addr_t $curl_cv_in_addr_t_equiv
28346 _ACEOF
28347
28348 fi
28349
28350
28351
28352
28353
28354 for ac_header in sys/select.h sys/socket.h
28355 do
28356 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28358   echo "$as_me:$LINENO: checking for $ac_header" >&5
28359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28361   echo $ECHO_N "(cached) $ECHO_C" >&6
28362 fi
28363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28364 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28365 else
28366   # Is the header compilable?
28367 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28368 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28369 cat >conftest.$ac_ext <<_ACEOF
28370 /* confdefs.h.  */
28371 _ACEOF
28372 cat confdefs.h >>conftest.$ac_ext
28373 cat >>conftest.$ac_ext <<_ACEOF
28374 /* end confdefs.h.  */
28375 $ac_includes_default
28376 #include <$ac_header>
28377 _ACEOF
28378 rm -f conftest.$ac_objext
28379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28380   (eval $ac_compile) 2>conftest.er1
28381   ac_status=$?
28382   grep -v '^ *+' conftest.er1 >conftest.err
28383   rm -f conftest.er1
28384   cat conftest.err >&5
28385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28386   (exit $ac_status); } &&
28387          { ac_try='test -z "$ac_c_werror_flag"
28388                          || test ! -s conftest.err'
28389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28390   (eval $ac_try) 2>&5
28391   ac_status=$?
28392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28393   (exit $ac_status); }; } &&
28394          { ac_try='test -s conftest.$ac_objext'
28395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28396   (eval $ac_try) 2>&5
28397   ac_status=$?
28398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28399   (exit $ac_status); }; }; then
28400   ac_header_compiler=yes
28401 else
28402   echo "$as_me: failed program was:" >&5
28403 sed 's/^/| /' conftest.$ac_ext >&5
28404
28405 ac_header_compiler=no
28406 fi
28407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28408 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28409 echo "${ECHO_T}$ac_header_compiler" >&6
28410
28411 # Is the header present?
28412 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28413 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28414 cat >conftest.$ac_ext <<_ACEOF
28415 /* confdefs.h.  */
28416 _ACEOF
28417 cat confdefs.h >>conftest.$ac_ext
28418 cat >>conftest.$ac_ext <<_ACEOF
28419 /* end confdefs.h.  */
28420 #include <$ac_header>
28421 _ACEOF
28422 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28423   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28424   ac_status=$?
28425   grep -v '^ *+' conftest.er1 >conftest.err
28426   rm -f conftest.er1
28427   cat conftest.err >&5
28428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28429   (exit $ac_status); } >/dev/null; then
28430   if test -s conftest.err; then
28431     ac_cpp_err=$ac_c_preproc_warn_flag
28432     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28433   else
28434     ac_cpp_err=
28435   fi
28436 else
28437   ac_cpp_err=yes
28438 fi
28439 if test -z "$ac_cpp_err"; then
28440   ac_header_preproc=yes
28441 else
28442   echo "$as_me: failed program was:" >&5
28443 sed 's/^/| /' conftest.$ac_ext >&5
28444
28445   ac_header_preproc=no
28446 fi
28447 rm -f conftest.err conftest.$ac_ext
28448 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28449 echo "${ECHO_T}$ac_header_preproc" >&6
28450
28451 # So?  What about this header?
28452 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28453   yes:no: )
28454     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28455 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28456     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28457 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28458     ac_header_preproc=yes
28459     ;;
28460   no:yes:* )
28461     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28462 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28463     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28464 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28465     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28466 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28467     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28468 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28469     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28470 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28471     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28472 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28473     (
28474       cat <<\_ASBOX
28475 ## ------------------------------- ##
28476 ## Report this to curl-bug@haxx.se ##
28477 ## ------------------------------- ##
28478 _ASBOX
28479     ) |
28480       sed "s/^/$as_me: WARNING:     /" >&2
28481     ;;
28482 esac
28483 echo "$as_me:$LINENO: checking for $ac_header" >&5
28484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28486   echo $ECHO_N "(cached) $ECHO_C" >&6
28487 else
28488   eval "$as_ac_Header=\$ac_header_preproc"
28489 fi
28490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28491 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28492
28493 fi
28494 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28495   cat >>confdefs.h <<_ACEOF
28496 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28497 _ACEOF
28498
28499 fi
28500
28501 done
28502
28503 echo "$as_me:$LINENO: checking types of arguments for select" >&5
28504 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
28505 if test "${ac_cv_func_select_args+set}" = set; then
28506   echo $ECHO_N "(cached) $ECHO_C" >&6
28507 else
28508   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
28509  for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
28510   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
28511    cat >conftest.$ac_ext <<_ACEOF
28512 /* confdefs.h.  */
28513 _ACEOF
28514 cat confdefs.h >>conftest.$ac_ext
28515 cat >>conftest.$ac_ext <<_ACEOF
28516 /* end confdefs.h.  */
28517 $ac_includes_default
28518 #if HAVE_SYS_SELECT_H
28519 # include <sys/select.h>
28520 #endif
28521 #if HAVE_SYS_SOCKET_H
28522 # include <sys/socket.h>
28523 #endif
28524
28525 int
28526 main ()
28527 {
28528 extern int select ($ac_arg1,
28529                                             $ac_arg234, $ac_arg234, $ac_arg234,
28530                                             $ac_arg5);
28531   ;
28532   return 0;
28533 }
28534 _ACEOF
28535 rm -f conftest.$ac_objext
28536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28537   (eval $ac_compile) 2>conftest.er1
28538   ac_status=$?
28539   grep -v '^ *+' conftest.er1 >conftest.err
28540   rm -f conftest.er1
28541   cat conftest.err >&5
28542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28543   (exit $ac_status); } &&
28544          { ac_try='test -z "$ac_c_werror_flag"
28545                          || test ! -s conftest.err'
28546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28547   (eval $ac_try) 2>&5
28548   ac_status=$?
28549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28550   (exit $ac_status); }; } &&
28551          { ac_try='test -s conftest.$ac_objext'
28552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28553   (eval $ac_try) 2>&5
28554   ac_status=$?
28555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28556   (exit $ac_status); }; }; then
28557   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
28558 else
28559   echo "$as_me: failed program was:" >&5
28560 sed 's/^/| /' conftest.$ac_ext >&5
28561
28562 fi
28563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28564   done
28565  done
28566 done
28567 # Provide a safe default value.
28568 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
28569
28570 fi
28571 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
28572 echo "${ECHO_T}$ac_cv_func_select_args" >&6
28573 ac_save_IFS=$IFS; IFS=','
28574 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
28575 IFS=$ac_save_IFS
28576 shift
28577
28578 cat >>confdefs.h <<_ACEOF
28579 #define SELECT_TYPE_ARG1 $1
28580 _ACEOF
28581
28582
28583 cat >>confdefs.h <<_ACEOF
28584 #define SELECT_TYPE_ARG234 ($2)
28585 _ACEOF
28586
28587
28588 cat >>confdefs.h <<_ACEOF
28589 #define SELECT_TYPE_ARG5 ($3)
28590 _ACEOF
28591
28592 rm -f conftest*
28593
28594
28595 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
28596 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
28597 if test "${ac_cv_type_signal+set}" = set; then
28598   echo $ECHO_N "(cached) $ECHO_C" >&6
28599 else
28600   cat >conftest.$ac_ext <<_ACEOF
28601 /* confdefs.h.  */
28602 _ACEOF
28603 cat confdefs.h >>conftest.$ac_ext
28604 cat >>conftest.$ac_ext <<_ACEOF
28605 /* end confdefs.h.  */
28606 #include <sys/types.h>
28607 #include <signal.h>
28608 #ifdef signal
28609 # undef signal
28610 #endif
28611 #ifdef __cplusplus
28612 extern "C" void (*signal (int, void (*)(int)))(int);
28613 #else
28614 void (*signal ()) ();
28615 #endif
28616
28617 int
28618 main ()
28619 {
28620 int i;
28621   ;
28622   return 0;
28623 }
28624 _ACEOF
28625 rm -f conftest.$ac_objext
28626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28627   (eval $ac_compile) 2>conftest.er1
28628   ac_status=$?
28629   grep -v '^ *+' conftest.er1 >conftest.err
28630   rm -f conftest.er1
28631   cat conftest.err >&5
28632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28633   (exit $ac_status); } &&
28634          { ac_try='test -z "$ac_c_werror_flag"
28635                          || test ! -s conftest.err'
28636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28637   (eval $ac_try) 2>&5
28638   ac_status=$?
28639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28640   (exit $ac_status); }; } &&
28641          { ac_try='test -s conftest.$ac_objext'
28642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28643   (eval $ac_try) 2>&5
28644   ac_status=$?
28645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28646   (exit $ac_status); }; }; then
28647   ac_cv_type_signal=void
28648 else
28649   echo "$as_me: failed program was:" >&5
28650 sed 's/^/| /' conftest.$ac_ext >&5
28651
28652 ac_cv_type_signal=int
28653 fi
28654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28655 fi
28656 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
28657 echo "${ECHO_T}$ac_cv_type_signal" >&6
28658
28659 cat >>confdefs.h <<_ACEOF
28660 #define RETSIGTYPE $ac_cv_type_signal
28661 _ACEOF
28662
28663
28664
28665
28666
28667
28668
28669
28670
28671
28672
28673
28674
28675
28676
28677
28678
28679
28680
28681
28682
28683
28684
28685
28686
28687
28688
28689
28690
28691
28692
28693
28694
28695 for ac_func in strtoll \
28696                 socket \
28697                 select \
28698                 strdup \
28699                 strstr \
28700                 strtok_r \
28701                 strftime \
28702                 uname \
28703                 strcasecmp \
28704                 stricmp \
28705                 strcmpi \
28706                 gethostbyaddr \
28707                 gettimeofday \
28708                 inet_addr \
28709                 inet_ntoa \
28710                 inet_pton \
28711                 tcsetattr \
28712                 tcgetattr \
28713                 perror \
28714                 closesocket \
28715                 siginterrupt \
28716                 sigaction \
28717                 signal \
28718                 getpass_r \
28719                 strlcat \
28720                 getpwuid \
28721                 geteuid \
28722                 dlopen \
28723                 utime \
28724                 sigsetjmp \
28725                 poll
28726 do
28727 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28728 echo "$as_me:$LINENO: checking for $ac_func" >&5
28729 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28730 if eval "test \"\${$as_ac_var+set}\" = set"; then
28731   echo $ECHO_N "(cached) $ECHO_C" >&6
28732 else
28733   cat >conftest.$ac_ext <<_ACEOF
28734 /* confdefs.h.  */
28735 _ACEOF
28736 cat confdefs.h >>conftest.$ac_ext
28737 cat >>conftest.$ac_ext <<_ACEOF
28738 /* end confdefs.h.  */
28739 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28740    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28741 #define $ac_func innocuous_$ac_func
28742
28743 /* System header to define __stub macros and hopefully few prototypes,
28744     which can conflict with char $ac_func (); below.
28745     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28746     <limits.h> exists even on freestanding compilers.  */
28747
28748 #ifdef __STDC__
28749 # include <limits.h>
28750 #else
28751 # include <assert.h>
28752 #endif
28753
28754 #undef $ac_func
28755
28756 /* Override any gcc2 internal prototype to avoid an error.  */
28757 #ifdef __cplusplus
28758 extern "C"
28759 {
28760 #endif
28761 /* We use char because int might match the return type of a gcc2
28762    builtin and then its argument prototype would still apply.  */
28763 char $ac_func ();
28764 /* The GNU C library defines this for functions which it implements
28765     to always fail with ENOSYS.  Some functions are actually named
28766     something starting with __ and the normal name is an alias.  */
28767 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28768 choke me
28769 #else
28770 char (*f) () = $ac_func;
28771 #endif
28772 #ifdef __cplusplus
28773 }
28774 #endif
28775
28776 int
28777 main ()
28778 {
28779 return f != $ac_func;
28780   ;
28781   return 0;
28782 }
28783 _ACEOF
28784 rm -f conftest.$ac_objext conftest$ac_exeext
28785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28786   (eval $ac_link) 2>conftest.er1
28787   ac_status=$?
28788   grep -v '^ *+' conftest.er1 >conftest.err
28789   rm -f conftest.er1
28790   cat conftest.err >&5
28791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28792   (exit $ac_status); } &&
28793          { ac_try='test -z "$ac_c_werror_flag"
28794                          || test ! -s conftest.err'
28795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28796   (eval $ac_try) 2>&5
28797   ac_status=$?
28798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28799   (exit $ac_status); }; } &&
28800          { ac_try='test -s conftest$ac_exeext'
28801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28802   (eval $ac_try) 2>&5
28803   ac_status=$?
28804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28805   (exit $ac_status); }; }; then
28806   eval "$as_ac_var=yes"
28807 else
28808   echo "$as_me: failed program was:" >&5
28809 sed 's/^/| /' conftest.$ac_ext >&5
28810
28811 eval "$as_ac_var=no"
28812 fi
28813 rm -f conftest.err conftest.$ac_objext \
28814       conftest$ac_exeext conftest.$ac_ext
28815 fi
28816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28817 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28818 if test `eval echo '${'$as_ac_var'}'` = yes; then
28819   cat >>confdefs.h <<_ACEOF
28820 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28821 _ACEOF
28822
28823 else
28824     func="$ac_func"
28825   echo "$as_me:$LINENO: checking deeper for $func" >&5
28826 echo $ECHO_N "checking deeper for $func... $ECHO_C" >&6
28827   cat >conftest.$ac_ext <<_ACEOF
28828 /* confdefs.h.  */
28829 _ACEOF
28830 cat confdefs.h >>conftest.$ac_ext
28831 cat >>conftest.$ac_ext <<_ACEOF
28832 /* end confdefs.h.  */
28833
28834 int
28835 main ()
28836 {
28837  $func ();
28838   ;
28839   return 0;
28840 }
28841 _ACEOF
28842 rm -f conftest.$ac_objext conftest$ac_exeext
28843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28844   (eval $ac_link) 2>conftest.er1
28845   ac_status=$?
28846   grep -v '^ *+' conftest.er1 >conftest.err
28847   rm -f conftest.er1
28848   cat conftest.err >&5
28849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28850   (exit $ac_status); } &&
28851          { ac_try='test -z "$ac_c_werror_flag"
28852                          || test ! -s conftest.err'
28853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28854   (eval $ac_try) 2>&5
28855   ac_status=$?
28856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28857   (exit $ac_status); }; } &&
28858          { ac_try='test -s conftest$ac_exeext'
28859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28860   (eval $ac_try) 2>&5
28861   ac_status=$?
28862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28863   (exit $ac_status); }; }; then
28864   echo "$as_me:$LINENO: result: yes!" >&5
28865 echo "${ECHO_T}yes!" >&6
28866                eval "ac_cv_func_$func=yes"
28867                def=`echo "HAVE_$func" | tr 'a-z' 'A-Z'`
28868
28869 cat >>confdefs.h <<_ACEOF
28870 #define $def 1
28871 _ACEOF
28872
28873 else
28874   echo "$as_me: failed program was:" >&5
28875 sed 's/^/| /' conftest.$ac_ext >&5
28876
28877 echo "$as_me:$LINENO: result: but still no" >&5
28878 echo "${ECHO_T}but still no" >&6
28879
28880 fi
28881 rm -f conftest.err conftest.$ac_objext \
28882       conftest$ac_exeext conftest.$ac_ext
28883
28884
28885 fi
28886 done
28887
28888
28889 if test "$ac_cv_func_sigsetjmp" != "yes"; then
28890   echo "$as_me:$LINENO: checking for sigsetjmp defined as macro" >&5
28891 echo $ECHO_N "checking for sigsetjmp defined as macro... $ECHO_C" >&6
28892   cat >conftest.$ac_ext <<_ACEOF
28893 /* confdefs.h.  */
28894 _ACEOF
28895 cat confdefs.h >>conftest.$ac_ext
28896 cat >>conftest.$ac_ext <<_ACEOF
28897 /* end confdefs.h.  */
28898 #include <setjmp.h>
28899 int
28900 main ()
28901 {
28902 sigjmp_buf jmpenv;
28903                 sigsetjmp(jmpenv, 1);
28904   ;
28905   return 0;
28906 }
28907 _ACEOF
28908 rm -f conftest.$ac_objext conftest$ac_exeext
28909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28910   (eval $ac_link) 2>conftest.er1
28911   ac_status=$?
28912   grep -v '^ *+' conftest.er1 >conftest.err
28913   rm -f conftest.er1
28914   cat conftest.err >&5
28915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28916   (exit $ac_status); } &&
28917          { ac_try='test -z "$ac_c_werror_flag"
28918                          || test ! -s conftest.err'
28919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28920   (eval $ac_try) 2>&5
28921   ac_status=$?
28922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28923   (exit $ac_status); }; } &&
28924          { ac_try='test -s conftest$ac_exeext'
28925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28926   (eval $ac_try) 2>&5
28927   ac_status=$?
28928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28929   (exit $ac_status); }; }; then
28930   echo "$as_me:$LINENO: result: yes" >&5
28931 echo "${ECHO_T}yes" >&6
28932
28933 cat >>confdefs.h <<\_ACEOF
28934 #define HAVE_SIGSETJMP 1
28935 _ACEOF
28936
28937 else
28938   echo "$as_me: failed program was:" >&5
28939 sed 's/^/| /' conftest.$ac_ext >&5
28940
28941 echo "$as_me:$LINENO: result: no" >&5
28942 echo "${ECHO_T}no" >&6
28943
28944 fi
28945 rm -f conftest.err conftest.$ac_objext \
28946       conftest$ac_exeext conftest.$ac_ext
28947 fi
28948
28949 # Extract the first word of "perl", so it can be a program name with args.
28950 set dummy perl; ac_word=$2
28951 echo "$as_me:$LINENO: checking for $ac_word" >&5
28952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28953 if test "${ac_cv_path_PERL+set}" = set; then
28954   echo $ECHO_N "(cached) $ECHO_C" >&6
28955 else
28956   case $PERL in
28957   [\\/]* | ?:[\\/]*)
28958   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
28959   ;;
28960   *)
28961   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28962 as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
28963 for as_dir in $as_dummy
28964 do
28965   IFS=$as_save_IFS
28966   test -z "$as_dir" && as_dir=.
28967   for ac_exec_ext in '' $ac_executable_extensions; do
28968   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28969     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
28970     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28971     break 2
28972   fi
28973 done
28974 done
28975
28976   ;;
28977 esac
28978 fi
28979 PERL=$ac_cv_path_PERL
28980
28981 if test -n "$PERL"; then
28982   echo "$as_me:$LINENO: result: $PERL" >&5
28983 echo "${ECHO_T}$PERL" >&6
28984 else
28985   echo "$as_me:$LINENO: result: no" >&5
28986 echo "${ECHO_T}no" >&6
28987 fi
28988
28989
28990
28991 for ac_prog in gnroff nroff
28992 do
28993   # Extract the first word of "$ac_prog", so it can be a program name with args.
28994 set dummy $ac_prog; ac_word=$2
28995 echo "$as_me:$LINENO: checking for $ac_word" >&5
28996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28997 if test "${ac_cv_path_NROFF+set}" = set; then
28998   echo $ECHO_N "(cached) $ECHO_C" >&6
28999 else
29000   case $NROFF in
29001   [\\/]* | ?:[\\/]*)
29002   ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
29003   ;;
29004   *)
29005   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29006 as_dummy="$PATH:/usr/bin/:/usr/local/bin "
29007 for as_dir in $as_dummy
29008 do
29009   IFS=$as_save_IFS
29010   test -z "$as_dir" && as_dir=.
29011   for ac_exec_ext in '' $ac_executable_extensions; do
29012   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29013     ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
29014     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29015     break 2
29016   fi
29017 done
29018 done
29019
29020   ;;
29021 esac
29022 fi
29023 NROFF=$ac_cv_path_NROFF
29024
29025 if test -n "$NROFF"; then
29026   echo "$as_me:$LINENO: result: $NROFF" >&5
29027 echo "${ECHO_T}$NROFF" >&6
29028 else
29029   echo "$as_me:$LINENO: result: no" >&5
29030 echo "${ECHO_T}no" >&6
29031 fi
29032
29033   test -n "$NROFF" && break
29034 done
29035
29036
29037
29038 if test -n "$NROFF"; then
29039
29040   echo "$as_me:$LINENO: checking how to use *nroff to get plain text from man pages" >&5
29041 echo $ECHO_N "checking how to use *nroff to get plain text from man pages... $ECHO_C" >&6
29042   MANOPT="-man"
29043   mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
29044   if test -z "$mancheck"; then
29045     MANOPT="-mandoc"
29046    mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
29047     if test -z "$mancheck"; then
29048       MANOPT=""
29049       echo "$as_me:$LINENO: result: failed" >&5
29050 echo "${ECHO_T}failed" >&6
29051       { echo "$as_me:$LINENO: WARNING: found no *nroff option to get plaintext from man pages" >&5
29052 echo "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;}
29053     else
29054       echo "$as_me:$LINENO: result: $MANOPT" >&5
29055 echo "${ECHO_T}$MANOPT" >&6
29056     fi
29057   else
29058     echo "$as_me:$LINENO: result: $MANOPT" >&5
29059 echo "${ECHO_T}$MANOPT" >&6
29060   fi
29061
29062 fi
29063
29064 if test -z "$MANOPT"
29065 then
29066       { echo "$as_me:$LINENO: WARNING: disabling built-in manual" >&5
29067 echo "$as_me: WARNING: disabling built-in manual" >&2;}
29068   USE_MANUAL="no";
29069 fi
29070
29071 for ac_prog in 'bison -y' byacc
29072 do
29073   # Extract the first word of "$ac_prog", so it can be a program name with args.
29074 set dummy $ac_prog; ac_word=$2
29075 echo "$as_me:$LINENO: checking for $ac_word" >&5
29076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29077 if test "${ac_cv_prog_YACC+set}" = set; then
29078   echo $ECHO_N "(cached) $ECHO_C" >&6
29079 else
29080   if test -n "$YACC"; then
29081   ac_cv_prog_YACC="$YACC" # Let the user override the test.
29082 else
29083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29084 for as_dir in $PATH
29085 do
29086   IFS=$as_save_IFS
29087   test -z "$as_dir" && as_dir=.
29088   for ac_exec_ext in '' $ac_executable_extensions; do
29089   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29090     ac_cv_prog_YACC="$ac_prog"
29091     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29092     break 2
29093   fi
29094 done
29095 done
29096
29097 fi
29098 fi
29099 YACC=$ac_cv_prog_YACC
29100 if test -n "$YACC"; then
29101   echo "$as_me:$LINENO: result: $YACC" >&5
29102 echo "${ECHO_T}$YACC" >&6
29103 else
29104   echo "$as_me:$LINENO: result: no" >&5
29105 echo "${ECHO_T}no" >&6
29106 fi
29107
29108   test -n "$YACC" && break
29109 done
29110 test -n "$YACC" || YACC="yacc"
29111
29112
29113 if test -z "$YACC"
29114 then
29115   echo "$as_me:$LINENO: checking if OK to build without bison/yacc" >&5
29116 echo $ECHO_N "checking if OK to build without bison/yacc... $ECHO_C" >&6
29117     if test -r "$srcdir/lib/getdate.c"
29118   then
29119         echo "$as_me:$LINENO: result: yes" >&5
29120 echo "${ECHO_T}yes" >&6
29121   else
29122     echo "$as_me:$LINENO: result: no" >&5
29123 echo "${ECHO_T}no" >&6
29124     { { echo "$as_me:$LINENO: error: no yacc or bison found, can't build libcurl!" >&5
29125 echo "$as_me: error: no yacc or bison found, can't build libcurl!" >&2;}
29126    { (exit 1); exit 1; }; }
29127   fi
29128 fi
29129
29130
29131 if test "$USE_MANUAL" = "1"; then
29132
29133 cat >>confdefs.h <<\_ACEOF
29134 #define USE_MANUAL 1
29135 _ACEOF
29136
29137 fi
29138
29139
29140
29141 if test x"$USE_MANUAL" = x1; then
29142   USE_MANUAL_TRUE=
29143   USE_MANUAL_FALSE='#'
29144 else
29145   USE_MANUAL_TRUE='#'
29146   USE_MANUAL_FALSE=
29147 fi
29148
29149
29150
29151
29152 echo "$as_me:$LINENO: checking whether to enable debug options" >&5
29153 echo $ECHO_N "checking whether to enable debug options... $ECHO_C" >&6
29154 # Check whether --enable-debug or --disable-debug was given.
29155 if test "${enable_debug+set}" = set; then
29156   enableval="$enable_debug"
29157    case "$enableval" in
29158   no)
29159        echo "$as_me:$LINENO: result: no" >&5
29160 echo "${ECHO_T}no" >&6
29161        ;;
29162   *)   echo "$as_me:$LINENO: result: yes" >&5
29163 echo "${ECHO_T}yes" >&6
29164
29165     CPPFLAGS="$CPPFLAGS -DCURLDEBUG"
29166     CFLAGS="$CFLAGS -g"
29167
29168
29169     if test "$GCC" = "yes"; then
29170
29171               echo "$as_me:$LINENO: checking gcc version" >&5
29172 echo $ECHO_N "checking gcc version... $ECHO_C" >&6
29173        gccver=`$CC -dumpversion`
29174        num1=`echo $gccver | cut -d . -f1`
29175        num2=`echo $gccver | cut -d . -f2`
29176        gccnum=`(expr $num1 "*" 100 + $num2) 2>/dev/null`
29177        echo "$as_me:$LINENO: result: $gccver" >&5
29178 echo "${ECHO_T}$gccver" >&6
29179
29180        echo "$as_me:$LINENO: checking if this is icc in disguise" >&5
29181 echo $ECHO_N "checking if this is icc in disguise... $ECHO_C" >&6
29182        cat >conftest.$ac_ext <<_ACEOF
29183 /* confdefs.h.  */
29184 _ACEOF
29185 cat confdefs.h >>conftest.$ac_ext
29186 cat >>conftest.$ac_ext <<_ACEOF
29187 /* end confdefs.h.  */
29188 __INTEL_COMPILER
29189 _ACEOF
29190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29191   $EGREP "^__INTEL_COMPILER" >/dev/null 2>&1; then
29192                     ICC="no"
29193          echo "$as_me:$LINENO: result: no" >&5
29194 echo "${ECHO_T}no" >&6
29195 else
29196            ICC="yes"
29197          echo "$as_me:$LINENO: result: yes" >&5
29198 echo "${ECHO_T}yes" >&6
29199
29200 fi
29201 rm -f conftest*
29202
29203
29204        if test "$ICC" = "yes"; then
29205
29206
29207          WARN="-wd279,269,1419,981"
29208
29209          if test "$gccnum" -gt "600"; then
29210                         WARN="-Wall $WARN"
29211          fi
29212        else                   WARN="-W -Wall -Wwrite-strings -pedantic -Wno-long-long -Wpointer-arith -Wnested-externs -Winline -Wmissing-declarations -Wmissing-prototypes -Wsign-compare"
29213
29214
29215          if test "$gccnum" -gt "295"; then
29216                                             WARN="$WARN -Wundef"
29217          fi
29218
29219          if test "$gccnum" -ge "296"; then
29220                       WARN="$WARN -Wfloat-equal"
29221          fi
29222
29223          if test "$gccnum" -gt "296"; then
29224                       WARN="$WARN -Wno-format-nonliteral"
29225          fi
29226
29227                            if test "$gccnum" -ge "303"; then
29228                       WARN="$WARN -Wendif-labels -Wstrict-prototypes"
29229          fi
29230
29231          for flag in $CPPFLAGS; do
29232            case "$flag" in
29233             -I*)
29234                                                         add=`echo $flag | sed 's/^-I/-isystem /g'`
29235               WARN="$WARN $add"
29236               ;;
29237            esac
29238          done
29239
29240        fi
29241        CFLAGS="$CFLAGS $WARN"
29242
29243       { echo "$as_me:$LINENO: Added this set of compiler options: $WARN" >&5
29244 echo "$as_me: Added this set of compiler options: $WARN" >&6;}
29245
29246     else
29247       { echo "$as_me:$LINENO: Added no extra compiler options" >&5
29248 echo "$as_me: Added no extra compiler options" >&6;}
29249
29250     fi
29251         NEWFLAGS=""
29252     for flag in $CFLAGS; do
29253       case "$flag" in
29254       -O*)
29255                 ;;
29256       *)
29257         NEWFLAGS="$NEWFLAGS $flag"
29258         ;;
29259       esac
29260     done
29261     CFLAGS=$NEWFLAGS
29262
29263
29264        ;;
29265   esac
29266
29267 else
29268   echo "$as_me:$LINENO: result: no" >&5
29269 echo "${ECHO_T}no" >&6
29270
29271 fi;
29272
29273 echo "$as_me:$LINENO: checking whether to enable ares" >&5
29274 echo $ECHO_N "checking whether to enable ares... $ECHO_C" >&6
29275 # Check whether --enable-ares or --disable-ares was given.
29276 if test "${enable_ares+set}" = set; then
29277   enableval="$enable_ares"
29278    case "$enableval" in
29279   no)
29280        echo "$as_me:$LINENO: result: no" >&5
29281 echo "${ECHO_T}no" >&6
29282        ;;
29283   *)   echo "$as_me:$LINENO: result: yes" >&5
29284 echo "${ECHO_T}yes" >&6
29285
29286        if test "x$IPV6_ENABLED" = "x1"; then
29287          { { echo "$as_me:$LINENO: error: ares doesn't work with ipv6, disable ipv6 to use ares" >&5
29288 echo "$as_me: error: ares doesn't work with ipv6, disable ipv6 to use ares" >&2;}
29289    { (exit 1); exit 1; }; }
29290        fi
29291
29292
29293 cat >>confdefs.h <<\_ACEOF
29294 #define USE_ARES 1
29295 _ACEOF
29296
29297               HAVE_ARES="1"
29298
29299
29300        LIBS="$LIBS -lcares"
29301
29302                                    if test "x$enableval" = "xyes" ; then
29303          if test -d "$srcdir/ares"; then
29304
29305
29306 subdirs="$subdirs ares"
29307
29308             aresinc=`cd $srcdir/ares && pwd`
29309             CPPFLAGS="$CPPFLAGS -I$aresinc"
29310
29311                                                 pwd=`pwd`
29312             LDFLAGS="$LDFLAGS -L$pwd/ares"
29313          fi
29314        else
29315          CPPFLAGS="$CPPFLAGS -I$enableval/include"
29316          LDFLAGS="$LDFLAGS -L$enableval/lib"
29317        fi
29318        ;;
29319   esac
29320 else
29321   echo "$as_me:$LINENO: result: no" >&5
29322 echo "${ECHO_T}no" >&6
29323
29324 fi;
29325
29326                                                                                                                                                                                                                                                           ac_config_files="$ac_config_files Makefile docs/Makefile docs/examples/Makefile docs/libcurl/Makefile include/Makefile include/curl/Makefile src/Makefile lib/Makefile tests/Makefile tests/data/Makefile tests/server/Makefile tests/libtest/Makefile packages/Makefile packages/Win32/Makefile packages/Win32/cygwin/Makefile packages/Linux/Makefile packages/Linux/RPM/Makefile packages/Linux/RPM/curl.spec packages/Linux/RPM/curl-ssl.spec packages/Solaris/Makefile packages/DOS/Makefile packages/EPM/curl.list packages/EPM/Makefile packages/vms/Makefile curl-config"
29327
29328 cat >confcache <<\_ACEOF
29329 # This file is a shell script that caches the results of configure
29330 # tests run on this system so they can be shared between configure
29331 # scripts and configure runs, see configure's option --config-cache.
29332 # It is not useful on other systems.  If it contains results you don't
29333 # want to keep, you may remove or edit it.
29334 #
29335 # config.status only pays attention to the cache file if you give it
29336 # the --recheck option to rerun configure.
29337 #
29338 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29339 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29340 # following values.
29341
29342 _ACEOF
29343
29344 # The following way of writing the cache mishandles newlines in values,
29345 # but we know of no workaround that is simple, portable, and efficient.
29346 # So, don't put newlines in cache variables' values.
29347 # Ultrix sh set writes to stderr and can't be redirected directly,
29348 # and sets the high bit in the cache file unless we assign to the vars.
29349 {
29350   (set) 2>&1 |
29351     case `(ac_space=' '; set | grep ac_space) 2>&1` in
29352     *ac_space=\ *)
29353       # `set' does not quote correctly, so add quotes (double-quote
29354       # substitution turns \\\\ into \\, and sed turns \\ into \).
29355       sed -n \
29356         "s/'/'\\\\''/g;
29357           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29358       ;;
29359     *)
29360       # `set' quotes correctly as required by POSIX, so do not add quotes.
29361       sed -n \
29362         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
29363       ;;
29364     esac;
29365 } |
29366   sed '
29367      t clear
29368      : clear
29369      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29370      t end
29371      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29372      : end' >>confcache
29373 if diff $cache_file confcache >/dev/null 2>&1; then :; else
29374   if test -w $cache_file; then
29375     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29376     cat confcache >$cache_file
29377   else
29378     echo "not updating unwritable cache $cache_file"
29379   fi
29380 fi
29381 rm -f confcache
29382
29383 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29384 # Let make expand exec_prefix.
29385 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29386
29387 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29388 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29389 # trailing colons and then remove the whole line if VPATH becomes empty
29390 # (actually we leave an empty line to preserve line numbers).
29391 if test "x$srcdir" = x.; then
29392   ac_vpsub='/^[  ]*VPATH[        ]*=/{
29393 s/:*\$(srcdir):*/:/;
29394 s/:*\${srcdir}:*/:/;
29395 s/:*@srcdir@:*/:/;
29396 s/^\([^=]*=[     ]*\):*/\1/;
29397 s/:*$//;
29398 s/^[^=]*=[       ]*$//;
29399 }'
29400 fi
29401
29402 DEFS=-DHAVE_CONFIG_H
29403
29404 ac_libobjs=
29405 ac_ltlibobjs=
29406 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29407   # 1. Remove the extension, and $U if already installed.
29408   ac_i=`echo "$ac_i" |
29409          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
29410   # 2. Add them.
29411   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
29412   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
29413 done
29414 LIBOBJS=$ac_libobjs
29415
29416 LTLIBOBJS=$ac_ltlibobjs
29417
29418
29419 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
29420   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
29421 Usually this means the macro was only invoked conditionally." >&5
29422 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
29423 Usually this means the macro was only invoked conditionally." >&2;}
29424    { (exit 1); exit 1; }; }
29425 fi
29426 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
29427   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
29428 Usually this means the macro was only invoked conditionally." >&5
29429 echo "$as_me: error: conditional \"AMDEP\" was never defined.
29430 Usually this means the macro was only invoked conditionally." >&2;}
29431    { (exit 1); exit 1; }; }
29432 fi
29433 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29434   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
29435 Usually this means the macro was only invoked conditionally." >&5
29436 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
29437 Usually this means the macro was only invoked conditionally." >&2;}
29438    { (exit 1); exit 1; }; }
29439 fi
29440 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29441   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
29442 Usually this means the macro was only invoked conditionally." >&5
29443 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
29444 Usually this means the macro was only invoked conditionally." >&2;}
29445    { (exit 1); exit 1; }; }
29446 fi
29447 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
29448   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
29449 Usually this means the macro was only invoked conditionally." >&5
29450 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
29451 Usually this means the macro was only invoked conditionally." >&2;}
29452    { (exit 1); exit 1; }; }
29453 fi
29454 if test -z "${NO_UNDEFINED_TRUE}" && test -z "${NO_UNDEFINED_FALSE}"; then
29455   { { echo "$as_me:$LINENO: error: conditional \"NO_UNDEFINED\" was never defined.
29456 Usually this means the macro was only invoked conditionally." >&5
29457 echo "$as_me: error: conditional \"NO_UNDEFINED\" was never defined.
29458 Usually this means the macro was only invoked conditionally." >&2;}
29459    { (exit 1); exit 1; }; }
29460 fi
29461 if test -z "${MIMPURE_TRUE}" && test -z "${MIMPURE_FALSE}"; then
29462   { { echo "$as_me:$LINENO: error: conditional \"MIMPURE\" was never defined.
29463 Usually this means the macro was only invoked conditionally." >&5
29464 echo "$as_me: error: conditional \"MIMPURE\" was never defined.
29465 Usually this means the macro was only invoked conditionally." >&2;}
29466    { (exit 1); exit 1; }; }
29467 fi
29468 if test -z "${CABUNDLE_TRUE}" && test -z "${CABUNDLE_FALSE}"; then
29469   { { echo "$as_me:$LINENO: error: conditional \"CABUNDLE\" was never defined.
29470 Usually this means the macro was only invoked conditionally." >&5
29471 echo "$as_me: error: conditional \"CABUNDLE\" was never defined.
29472 Usually this means the macro was only invoked conditionally." >&2;}
29473    { (exit 1); exit 1; }; }
29474 fi
29475 if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
29476   { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBZ\" was never defined.
29477 Usually this means the macro was only invoked conditionally." >&5
29478 echo "$as_me: error: conditional \"HAVE_LIBZ\" was never defined.
29479 Usually this means the macro was only invoked conditionally." >&2;}
29480    { (exit 1); exit 1; }; }
29481 fi
29482 if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then
29483   { { echo "$as_me:$LINENO: error: conditional \"USE_MANUAL\" was never defined.
29484 Usually this means the macro was only invoked conditionally." >&5
29485 echo "$as_me: error: conditional \"USE_MANUAL\" was never defined.
29486 Usually this means the macro was only invoked conditionally." >&2;}
29487    { (exit 1); exit 1; }; }
29488 fi
29489
29490 : ${CONFIG_STATUS=./config.status}
29491 ac_clean_files_save=$ac_clean_files
29492 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29493 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29494 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29495 cat >$CONFIG_STATUS <<_ACEOF
29496 #! $SHELL
29497 # Generated by $as_me.
29498 # Run this file to recreate the current configuration.
29499 # Compiler output produced by configure, useful for debugging
29500 # configure, is in config.log if it exists.
29501
29502 debug=false
29503 ac_cs_recheck=false
29504 ac_cs_silent=false
29505 SHELL=\${CONFIG_SHELL-$SHELL}
29506 _ACEOF
29507
29508 cat >>$CONFIG_STATUS <<\_ACEOF
29509 ## --------------------- ##
29510 ## M4sh Initialization.  ##
29511 ## --------------------- ##
29512
29513 # Be Bourne compatible
29514 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29515   emulate sh
29516   NULLCMD=:
29517   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29518   # is contrary to our usage.  Disable this feature.
29519   alias -g '${1+"$@"}'='"$@"'
29520 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29521   set -o posix
29522 fi
29523 DUALCASE=1; export DUALCASE # for MKS sh
29524
29525 # Support unset when possible.
29526 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29527   as_unset=unset
29528 else
29529   as_unset=false
29530 fi
29531
29532
29533 # Work around bugs in pre-3.0 UWIN ksh.
29534 $as_unset ENV MAIL MAILPATH
29535 PS1='$ '
29536 PS2='> '
29537 PS4='+ '
29538
29539 # NLS nuisances.
29540 for as_var in \
29541   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29542   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29543   LC_TELEPHONE LC_TIME
29544 do
29545   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29546     eval $as_var=C; export $as_var
29547   else
29548     $as_unset $as_var
29549   fi
29550 done
29551
29552 # Required to use basename.
29553 if expr a : '\(a\)' >/dev/null 2>&1; then
29554   as_expr=expr
29555 else
29556   as_expr=false
29557 fi
29558
29559 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
29560   as_basename=basename
29561 else
29562   as_basename=false
29563 fi
29564
29565
29566 # Name of the executable.
29567 as_me=`$as_basename "$0" ||
29568 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29569          X"$0" : 'X\(//\)$' \| \
29570          X"$0" : 'X\(/\)$' \| \
29571          .     : '\(.\)' 2>/dev/null ||
29572 echo X/"$0" |
29573     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
29574           /^X\/\(\/\/\)$/{ s//\1/; q; }
29575           /^X\/\(\/\).*/{ s//\1/; q; }
29576           s/.*/./; q'`
29577
29578
29579 # PATH needs CR, and LINENO needs CR and PATH.
29580 # Avoid depending upon Character Ranges.
29581 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29582 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29583 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29584 as_cr_digits='0123456789'
29585 as_cr_alnum=$as_cr_Letters$as_cr_digits
29586
29587 # The user is always right.
29588 if test "${PATH_SEPARATOR+set}" != set; then
29589   echo "#! /bin/sh" >conf$$.sh
29590   echo  "exit 0"   >>conf$$.sh
29591   chmod +x conf$$.sh
29592   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29593     PATH_SEPARATOR=';'
29594   else
29595     PATH_SEPARATOR=:
29596   fi
29597   rm -f conf$$.sh
29598 fi
29599
29600
29601   as_lineno_1=$LINENO
29602   as_lineno_2=$LINENO
29603   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29604   test "x$as_lineno_1" != "x$as_lineno_2" &&
29605   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
29606   # Find who we are.  Look in the path if we contain no path at all
29607   # relative or not.
29608   case $0 in
29609     *[\\/]* ) as_myself=$0 ;;
29610     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29611 for as_dir in $PATH
29612 do
29613   IFS=$as_save_IFS
29614   test -z "$as_dir" && as_dir=.
29615   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29616 done
29617
29618        ;;
29619   esac
29620   # We did not find ourselves, most probably we were run as `sh COMMAND'
29621   # in which case we are not to be found in the path.
29622   if test "x$as_myself" = x; then
29623     as_myself=$0
29624   fi
29625   if test ! -f "$as_myself"; then
29626     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
29627 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
29628    { (exit 1); exit 1; }; }
29629   fi
29630   case $CONFIG_SHELL in
29631   '')
29632     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29633 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
29634 do
29635   IFS=$as_save_IFS
29636   test -z "$as_dir" && as_dir=.
29637   for as_base in sh bash ksh sh5; do
29638          case $as_dir in
29639          /*)
29640            if ("$as_dir/$as_base" -c '
29641   as_lineno_1=$LINENO
29642   as_lineno_2=$LINENO
29643   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29644   test "x$as_lineno_1" != "x$as_lineno_2" &&
29645   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
29646              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
29647              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
29648              CONFIG_SHELL=$as_dir/$as_base
29649              export CONFIG_SHELL
29650              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
29651            fi;;
29652          esac
29653        done
29654 done
29655 ;;
29656   esac
29657
29658   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29659   # uniformly replaced by the line number.  The first 'sed' inserts a
29660   # line-number line before each line; the second 'sed' does the real
29661   # work.  The second script uses 'N' to pair each line-number line
29662   # with the numbered line, and appends trailing '-' during
29663   # substitution so that $LINENO is not a special case at line end.
29664   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29665   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
29666   sed '=' <$as_myself |
29667     sed '
29668       N
29669       s,$,-,
29670       : loop
29671       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
29672       t loop
29673       s,-$,,
29674       s,^['$as_cr_digits']*\n,,
29675     ' >$as_me.lineno &&
29676   chmod +x $as_me.lineno ||
29677     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
29678 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
29679    { (exit 1); exit 1; }; }
29680
29681   # Don't try to exec as it changes $[0], causing all sort of problems
29682   # (the dirname of $[0] is not the place where we might find the
29683   # original and so on.  Autoconf is especially sensible to this).
29684   . ./$as_me.lineno
29685   # Exit status is that of the last command.
29686   exit
29687 }
29688
29689
29690 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
29691   *c*,-n*) ECHO_N= ECHO_C='
29692 ' ECHO_T='      ' ;;
29693   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
29694   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
29695 esac
29696
29697 if expr a : '\(a\)' >/dev/null 2>&1; then
29698   as_expr=expr
29699 else
29700   as_expr=false
29701 fi
29702
29703 rm -f conf$$ conf$$.exe conf$$.file
29704 echo >conf$$.file
29705 if ln -s conf$$.file conf$$ 2>/dev/null; then
29706   # We could just check for DJGPP; but this test a) works b) is more generic
29707   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
29708   if test -f conf$$.exe; then
29709     # Don't use ln at all; we don't have any links
29710     as_ln_s='cp -p'
29711   else
29712     as_ln_s='ln -s'
29713   fi
29714 elif ln conf$$.file conf$$ 2>/dev/null; then
29715   as_ln_s=ln
29716 else
29717   as_ln_s='cp -p'
29718 fi
29719 rm -f conf$$ conf$$.exe conf$$.file
29720
29721 if mkdir -p . 2>/dev/null; then
29722   as_mkdir_p=:
29723 else
29724   test -d ./-p && rmdir ./-p
29725   as_mkdir_p=false
29726 fi
29727
29728 as_executable_p="test -f"
29729
29730 # Sed expression to map a string onto a valid CPP name.
29731 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29732
29733 # Sed expression to map a string onto a valid variable name.
29734 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29735
29736
29737 # IFS
29738 # We need space, tab and new line, in precisely that order.
29739 as_nl='
29740 '
29741 IFS="   $as_nl"
29742
29743 # CDPATH.
29744 $as_unset CDPATH
29745
29746 exec 6>&1
29747
29748 # Open the log real soon, to keep \$[0] and so on meaningful, and to
29749 # report actual input values of CONFIG_FILES etc. instead of their
29750 # values after options handling.  Logging --version etc. is OK.
29751 exec 5>>config.log
29752 {
29753   echo
29754   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29755 ## Running $as_me. ##
29756 _ASBOX
29757 } >&5
29758 cat >&5 <<_CSEOF
29759
29760 This file was extended by curl $as_me -, which was
29761 generated by GNU Autoconf 2.59.  Invocation command line was
29762
29763   CONFIG_FILES    = $CONFIG_FILES
29764   CONFIG_HEADERS  = $CONFIG_HEADERS
29765   CONFIG_LINKS    = $CONFIG_LINKS
29766   CONFIG_COMMANDS = $CONFIG_COMMANDS
29767   $ $0 $@
29768
29769 _CSEOF
29770 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
29771 echo >&5
29772 _ACEOF
29773
29774 # Files that config.status was made for.
29775 if test -n "$ac_config_files"; then
29776   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
29777 fi
29778
29779 if test -n "$ac_config_headers"; then
29780   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
29781 fi
29782
29783 if test -n "$ac_config_links"; then
29784   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
29785 fi
29786
29787 if test -n "$ac_config_commands"; then
29788   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
29789 fi
29790
29791 cat >>$CONFIG_STATUS <<\_ACEOF
29792
29793 ac_cs_usage="\
29794 \`$as_me' instantiates files from templates according to the
29795 current configuration.
29796
29797 Usage: $0 [OPTIONS] [FILE]...
29798
29799   -h, --help       print this help, then exit
29800   -V, --version    print version number, then exit
29801   -q, --quiet      do not print progress messages
29802   -d, --debug      don't remove temporary files
29803       --recheck    update $as_me by reconfiguring in the same conditions
29804   --file=FILE[:TEMPLATE]
29805                    instantiate the configuration file FILE
29806   --header=FILE[:TEMPLATE]
29807                    instantiate the configuration header FILE
29808
29809 Configuration files:
29810 $config_files
29811
29812 Configuration headers:
29813 $config_headers
29814
29815 Configuration commands:
29816 $config_commands
29817
29818 Report bugs to <bug-autoconf@gnu.org>."
29819 _ACEOF
29820
29821 cat >>$CONFIG_STATUS <<_ACEOF
29822 ac_cs_version="\\
29823 curl config.status -
29824 configured by $0, generated by GNU Autoconf 2.59,
29825   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
29826
29827 Copyright (C) 2003 Free Software Foundation, Inc.
29828 This config.status script is free software; the Free Software Foundation
29829 gives unlimited permission to copy, distribute and modify it."
29830 srcdir=$srcdir
29831 INSTALL="$INSTALL"
29832 _ACEOF
29833
29834 cat >>$CONFIG_STATUS <<\_ACEOF
29835 # If no file are specified by the user, then we need to provide default
29836 # value.  By we need to know if files were specified by the user.
29837 ac_need_defaults=:
29838 while test $# != 0
29839 do
29840   case $1 in
29841   --*=*)
29842     ac_option=`expr "x$1" : 'x\([^=]*\)='`
29843     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
29844     ac_shift=:
29845     ;;
29846   -*)
29847     ac_option=$1
29848     ac_optarg=$2
29849     ac_shift=shift
29850     ;;
29851   *) # This is not an option, so the user has probably given explicit
29852      # arguments.
29853      ac_option=$1
29854      ac_need_defaults=false;;
29855   esac
29856
29857   case $ac_option in
29858   # Handling of the options.
29859 _ACEOF
29860 cat >>$CONFIG_STATUS <<\_ACEOF
29861   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29862     ac_cs_recheck=: ;;
29863   --version | --vers* | -V )
29864     echo "$ac_cs_version"; exit 0 ;;
29865   --he | --h)
29866     # Conflict between --help and --header
29867     { { echo "$as_me:$LINENO: error: ambiguous option: $1
29868 Try \`$0 --help' for more information." >&5
29869 echo "$as_me: error: ambiguous option: $1
29870 Try \`$0 --help' for more information." >&2;}
29871    { (exit 1); exit 1; }; };;
29872   --help | --hel | -h )
29873     echo "$ac_cs_usage"; exit 0 ;;
29874   --debug | --d* | -d )
29875     debug=: ;;
29876   --file | --fil | --fi | --f )
29877     $ac_shift
29878     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
29879     ac_need_defaults=false;;
29880   --header | --heade | --head | --hea )
29881     $ac_shift
29882     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
29883     ac_need_defaults=false;;
29884   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29885   | -silent | --silent | --silen | --sile | --sil | --si | --s)
29886     ac_cs_silent=: ;;
29887
29888   # This is an error.
29889   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
29890 Try \`$0 --help' for more information." >&5
29891 echo "$as_me: error: unrecognized option: $1
29892 Try \`$0 --help' for more information." >&2;}
29893    { (exit 1); exit 1; }; } ;;
29894
29895   *) ac_config_targets="$ac_config_targets $1" ;;
29896
29897   esac
29898   shift
29899 done
29900
29901 ac_configure_extra_args=
29902
29903 if $ac_cs_silent; then
29904   exec 6>/dev/null
29905   ac_configure_extra_args="$ac_configure_extra_args --silent"
29906 fi
29907
29908 _ACEOF
29909 cat >>$CONFIG_STATUS <<_ACEOF
29910 if \$ac_cs_recheck; then
29911   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
29912   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29913 fi
29914
29915 _ACEOF
29916
29917 cat >>$CONFIG_STATUS <<_ACEOF
29918 #
29919 # INIT-COMMANDS section.
29920 #
29921
29922 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29923
29924 _ACEOF
29925
29926
29927
29928 cat >>$CONFIG_STATUS <<\_ACEOF
29929 for ac_config_target in $ac_config_targets
29930 do
29931   case "$ac_config_target" in
29932   # Handling of arguments.
29933   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29934   "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
29935   "docs/examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
29936   "docs/libcurl/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;;
29937   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
29938   "include/curl/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
29939   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
29940   "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
29941   "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
29942   "tests/data/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
29943   "tests/server/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
29944   "tests/libtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;;
29945   "packages/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
29946   "packages/Win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Win32/Makefile" ;;
29947   "packages/Win32/cygwin/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Win32/cygwin/Makefile" ;;
29948   "packages/Linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Linux/Makefile" ;;
29949   "packages/Linux/RPM/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/Makefile" ;;
29950   "packages/Linux/RPM/curl.spec" ) CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl.spec" ;;
29951   "packages/Linux/RPM/curl-ssl.spec" ) CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl-ssl.spec" ;;
29952   "packages/Solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Solaris/Makefile" ;;
29953   "packages/DOS/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/DOS/Makefile" ;;
29954   "packages/EPM/curl.list" ) CONFIG_FILES="$CONFIG_FILES packages/EPM/curl.list" ;;
29955   "packages/EPM/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/EPM/Makefile" ;;
29956   "packages/vms/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;;
29957   "curl-config" ) CONFIG_FILES="$CONFIG_FILES curl-config" ;;
29958   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29959   "lib/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
29960   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
29961   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29962 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29963    { (exit 1); exit 1; }; };;
29964   esac
29965 done
29966
29967 # If the user did not use the arguments to specify the items to instantiate,
29968 # then the envvar interface is used.  Set only those that are not.
29969 # We use the long form for the default assignment because of an extremely
29970 # bizarre bug on SunOS 4.1.3.
29971 if $ac_need_defaults; then
29972   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29973   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29974   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29975 fi
29976
29977 # Have a temporary directory for convenience.  Make it in the build tree
29978 # simply because there is no reason to put it here, and in addition,
29979 # creating and moving files from /tmp can sometimes cause problems.
29980 # Create a temporary directory, and hook for its removal unless debugging.
29981 $debug ||
29982 {
29983   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
29984   trap '{ (exit 1); exit 1; }' 1 2 13 15
29985 }
29986
29987 # Create a (secure) tmp directory for tmp files.
29988
29989 {
29990   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
29991   test -n "$tmp" && test -d "$tmp"
29992 }  ||
29993 {
29994   tmp=./confstat$$-$RANDOM
29995   (umask 077 && mkdir $tmp)
29996 } ||
29997 {
29998    echo "$me: cannot create a temporary directory in ." >&2
29999    { (exit 1); exit 1; }
30000 }
30001
30002 _ACEOF
30003
30004 cat >>$CONFIG_STATUS <<_ACEOF
30005
30006 #
30007 # CONFIG_FILES section.
30008 #
30009
30010 # No need to generate the scripts if there are no CONFIG_FILES.
30011 # This happens for instance when ./config.status config.h
30012 if test -n "\$CONFIG_FILES"; then
30013   # Protect against being on the right side of a sed subst in config.status.
30014   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30015    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30016 s,@SHELL@,$SHELL,;t t
30017 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30018 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30019 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30020 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30021 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30022 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30023 s,@exec_prefix@,$exec_prefix,;t t
30024 s,@prefix@,$prefix,;t t
30025 s,@program_transform_name@,$program_transform_name,;t t
30026 s,@bindir@,$bindir,;t t
30027 s,@sbindir@,$sbindir,;t t
30028 s,@libexecdir@,$libexecdir,;t t
30029 s,@datadir@,$datadir,;t t
30030 s,@sysconfdir@,$sysconfdir,;t t
30031 s,@sharedstatedir@,$sharedstatedir,;t t
30032 s,@localstatedir@,$localstatedir,;t t
30033 s,@libdir@,$libdir,;t t
30034 s,@includedir@,$includedir,;t t
30035 s,@oldincludedir@,$oldincludedir,;t t
30036 s,@infodir@,$infodir,;t t
30037 s,@mandir@,$mandir,;t t
30038 s,@build_alias@,$build_alias,;t t
30039 s,@host_alias@,$host_alias,;t t
30040 s,@target_alias@,$target_alias,;t t
30041 s,@DEFS@,$DEFS,;t t
30042 s,@ECHO_C@,$ECHO_C,;t t
30043 s,@ECHO_N@,$ECHO_N,;t t
30044 s,@ECHO_T@,$ECHO_T,;t t
30045 s,@LIBS@,$LIBS,;t t
30046 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
30047 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
30048 s,@MAINT@,$MAINT,;t t
30049 s,@SED@,$SED,;t t
30050 s,@AR@,$AR,;t t
30051 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30052 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30053 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
30054 s,@CYGPATH_W@,$CYGPATH_W,;t t
30055 s,@PACKAGE@,$PACKAGE,;t t
30056 s,@VERSION@,$VERSION,;t t
30057 s,@ACLOCAL@,$ACLOCAL,;t t
30058 s,@AUTOCONF@,$AUTOCONF,;t t
30059 s,@AUTOMAKE@,$AUTOMAKE,;t t
30060 s,@AUTOHEADER@,$AUTOHEADER,;t t
30061 s,@MAKEINFO@,$MAKEINFO,;t t
30062 s,@AMTAR@,$AMTAR,;t t
30063 s,@install_sh@,$install_sh,;t t
30064 s,@STRIP@,$STRIP,;t t
30065 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
30066 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
30067 s,@mkdir_p@,$mkdir_p,;t t
30068 s,@AWK@,$AWK,;t t
30069 s,@SET_MAKE@,$SET_MAKE,;t t
30070 s,@am__leading_dot@,$am__leading_dot,;t t
30071 s,@VERSIONNUM@,$VERSIONNUM,;t t
30072 s,@PKGADD_PKG@,$PKGADD_PKG,;t t
30073 s,@PKGADD_NAME@,$PKGADD_NAME,;t t
30074 s,@PKGADD_VENDOR@,$PKGADD_VENDOR,;t t
30075 s,@build@,$build,;t t
30076 s,@build_cpu@,$build_cpu,;t t
30077 s,@build_vendor@,$build_vendor,;t t
30078 s,@build_os@,$build_os,;t t
30079 s,@host@,$host,;t t
30080 s,@host_cpu@,$host_cpu,;t t
30081 s,@host_vendor@,$host_vendor,;t t
30082 s,@host_os@,$host_os,;t t
30083 s,@CC@,$CC,;t t
30084 s,@CFLAGS@,$CFLAGS,;t t
30085 s,@LDFLAGS@,$LDFLAGS,;t t
30086 s,@CPPFLAGS@,$CPPFLAGS,;t t
30087 s,@ac_ct_CC@,$ac_ct_CC,;t t
30088 s,@EXEEXT@,$EXEEXT,;t t
30089 s,@OBJEXT@,$OBJEXT,;t t
30090 s,@DEPDIR@,$DEPDIR,;t t
30091 s,@am__include@,$am__include,;t t
30092 s,@am__quote@,$am__quote,;t t
30093 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
30094 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
30095 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
30096 s,@CCDEPMODE@,$CCDEPMODE,;t t
30097 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
30098 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
30099 s,@CPP@,$CPP,;t t
30100 s,@EGREP@,$EGREP,;t t
30101 s,@LN_S@,$LN_S,;t t
30102 s,@ECHO@,$ECHO,;t t
30103 s,@ac_ct_AR@,$ac_ct_AR,;t t
30104 s,@RANLIB@,$RANLIB,;t t
30105 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
30106 s,@DLLTOOL@,$DLLTOOL,;t t
30107 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
30108 s,@AS@,$AS,;t t
30109 s,@ac_ct_AS@,$ac_ct_AS,;t t
30110 s,@OBJDUMP@,$OBJDUMP,;t t
30111 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
30112 s,@CXX@,$CXX,;t t
30113 s,@CXXFLAGS@,$CXXFLAGS,;t t
30114 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
30115 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
30116 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
30117 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
30118 s,@CXXCPP@,$CXXCPP,;t t
30119 s,@F77@,$F77,;t t
30120 s,@FFLAGS@,$FFLAGS,;t t
30121 s,@ac_ct_F77@,$ac_ct_F77,;t t
30122 s,@LIBTOOL@,$LIBTOOL,;t t
30123 s,@NO_UNDEFINED_TRUE@,$NO_UNDEFINED_TRUE,;t t
30124 s,@NO_UNDEFINED_FALSE@,$NO_UNDEFINED_FALSE,;t t
30125 s,@MIMPURE_TRUE@,$MIMPURE_TRUE,;t t
30126 s,@MIMPURE_FALSE@,$MIMPURE_FALSE,;t t
30127 s,@CURL_DISABLE_HTTP@,$CURL_DISABLE_HTTP,;t t
30128 s,@CURL_DISABLE_GOPHER@,$CURL_DISABLE_GOPHER,;t t
30129 s,@CURL_DISABLE_FTP@,$CURL_DISABLE_FTP,;t t
30130 s,@CURL_DISABLE_FILE@,$CURL_DISABLE_FILE,;t t
30131 s,@CURL_DISABLE_LDAP@,$CURL_DISABLE_LDAP,;t t
30132 s,@CURL_DISABLE_DICT@,$CURL_DISABLE_DICT,;t t
30133 s,@CURL_DISABLE_TELNET@,$CURL_DISABLE_TELNET,;t t
30134 s,@IPV6_ENABLED@,$IPV6_ENABLED,;t t
30135 s,@RANDOM_FILE@,$RANDOM_FILE,;t t
30136 s,@KRB4_ENABLED@,$KRB4_ENABLED,;t t
30137 s,@PKGCONFIG@,$PKGCONFIG,;t t
30138 s,@OPENSSL_ENABLED@,$OPENSSL_ENABLED,;t t
30139 s,@CURL_CA_BUNDLE@,$CURL_CA_BUNDLE,;t t
30140 s,@CABUNDLE_TRUE@,$CABUNDLE_TRUE,;t t
30141 s,@CABUNDLE_FALSE@,$CABUNDLE_FALSE,;t t
30142 s,@HAVE_LIBZ@,$HAVE_LIBZ,;t t
30143 s,@HAVE_LIBZ_TRUE@,$HAVE_LIBZ_TRUE,;t t
30144 s,@HAVE_LIBZ_FALSE@,$HAVE_LIBZ_FALSE,;t t
30145 s,@PERL@,$PERL,;t t
30146 s,@NROFF@,$NROFF,;t t
30147 s,@MANOPT@,$MANOPT,;t t
30148 s,@YACC@,$YACC,;t t
30149 s,@USE_MANUAL_TRUE@,$USE_MANUAL_TRUE,;t t
30150 s,@USE_MANUAL_FALSE@,$USE_MANUAL_FALSE,;t t
30151 s,@HAVE_ARES@,$HAVE_ARES,;t t
30152 s,@subdirs@,$subdirs,;t t
30153 s,@LIBOBJS@,$LIBOBJS,;t t
30154 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
30155 CEOF
30156
30157 _ACEOF
30158
30159   cat >>$CONFIG_STATUS <<\_ACEOF
30160   # Split the substitutions into bite-sized pieces for seds with
30161   # small command number limits, like on Digital OSF/1 and HP-UX.
30162   ac_max_sed_lines=48
30163   ac_sed_frag=1 # Number of current file.
30164   ac_beg=1 # First line for current file.
30165   ac_end=$ac_max_sed_lines # Line after last line for current file.
30166   ac_more_lines=:
30167   ac_sed_cmds=
30168   while $ac_more_lines; do
30169     if test $ac_beg -gt 1; then
30170       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30171     else
30172       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30173     fi
30174     if test ! -s $tmp/subs.frag; then
30175       ac_more_lines=false
30176     else
30177       # The purpose of the label and of the branching condition is to
30178       # speed up the sed processing (if there are no `@' at all, there
30179       # is no need to browse any of the substitutions).
30180       # These are the two extra sed commands mentioned above.
30181       (echo ':t
30182   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
30183       if test -z "$ac_sed_cmds"; then
30184         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
30185       else
30186         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
30187       fi
30188       ac_sed_frag=`expr $ac_sed_frag + 1`
30189       ac_beg=$ac_end
30190       ac_end=`expr $ac_end + $ac_max_sed_lines`
30191     fi
30192   done
30193   if test -z "$ac_sed_cmds"; then
30194     ac_sed_cmds=cat
30195   fi
30196 fi # test -n "$CONFIG_FILES"
30197
30198 _ACEOF
30199 cat >>$CONFIG_STATUS <<\_ACEOF
30200 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30201   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30202   case $ac_file in
30203   - | *:- | *:-:* ) # input from stdin
30204         cat >$tmp/stdin
30205         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30206         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30207   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30208         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30209   * )   ac_file_in=$ac_file.in ;;
30210   esac
30211
30212   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30213   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30214 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30215          X"$ac_file" : 'X\(//\)[^/]' \| \
30216          X"$ac_file" : 'X\(//\)$' \| \
30217          X"$ac_file" : 'X\(/\)' \| \
30218          .     : '\(.\)' 2>/dev/null ||
30219 echo X"$ac_file" |
30220     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30221           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30222           /^X\(\/\/\)$/{ s//\1/; q; }
30223           /^X\(\/\).*/{ s//\1/; q; }
30224           s/.*/./; q'`
30225   { if $as_mkdir_p; then
30226     mkdir -p "$ac_dir"
30227   else
30228     as_dir="$ac_dir"
30229     as_dirs=
30230     while test ! -d "$as_dir"; do
30231       as_dirs="$as_dir $as_dirs"
30232       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30233 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30234          X"$as_dir" : 'X\(//\)[^/]' \| \
30235          X"$as_dir" : 'X\(//\)$' \| \
30236          X"$as_dir" : 'X\(/\)' \| \
30237          .     : '\(.\)' 2>/dev/null ||
30238 echo X"$as_dir" |
30239     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30240           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30241           /^X\(\/\/\)$/{ s//\1/; q; }
30242           /^X\(\/\).*/{ s//\1/; q; }
30243           s/.*/./; q'`
30244     done
30245     test ! -n "$as_dirs" || mkdir $as_dirs
30246   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30247 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30248    { (exit 1); exit 1; }; }; }
30249
30250   ac_builddir=.
30251
30252 if test "$ac_dir" != .; then
30253   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30254   # A "../" for each directory in $ac_dir_suffix.
30255   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30256 else
30257   ac_dir_suffix= ac_top_builddir=
30258 fi
30259
30260 case $srcdir in
30261   .)  # No --srcdir option.  We are building in place.
30262     ac_srcdir=.
30263     if test -z "$ac_top_builddir"; then
30264        ac_top_srcdir=.
30265     else
30266        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30267     fi ;;
30268   [\\/]* | ?:[\\/]* )  # Absolute path.
30269     ac_srcdir=$srcdir$ac_dir_suffix;
30270     ac_top_srcdir=$srcdir ;;
30271   *) # Relative path.
30272     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30273     ac_top_srcdir=$ac_top_builddir$srcdir ;;
30274 esac
30275
30276 # Do not use `cd foo && pwd` to compute absolute paths, because
30277 # the directories may not exist.
30278 case `pwd` in
30279 .) ac_abs_builddir="$ac_dir";;
30280 *)
30281   case "$ac_dir" in
30282   .) ac_abs_builddir=`pwd`;;
30283   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30284   *) ac_abs_builddir=`pwd`/"$ac_dir";;
30285   esac;;
30286 esac
30287 case $ac_abs_builddir in
30288 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30289 *)
30290   case ${ac_top_builddir}. in
30291   .) ac_abs_top_builddir=$ac_abs_builddir;;
30292   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30293   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30294   esac;;
30295 esac
30296 case $ac_abs_builddir in
30297 .) ac_abs_srcdir=$ac_srcdir;;
30298 *)
30299   case $ac_srcdir in
30300   .) ac_abs_srcdir=$ac_abs_builddir;;
30301   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30302   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30303   esac;;
30304 esac
30305 case $ac_abs_builddir in
30306 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30307 *)
30308   case $ac_top_srcdir in
30309   .) ac_abs_top_srcdir=$ac_abs_builddir;;
30310   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30311   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30312   esac;;
30313 esac
30314
30315
30316   case $INSTALL in
30317   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30318   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
30319   esac
30320
30321   if test x"$ac_file" != x-; then
30322     { echo "$as_me:$LINENO: creating $ac_file" >&5
30323 echo "$as_me: creating $ac_file" >&6;}
30324     rm -f "$ac_file"
30325   fi
30326   # Let's still pretend it is `configure' which instantiates (i.e., don't
30327   # use $as_me), people would be surprised to read:
30328   #    /* config.h.  Generated by config.status.  */
30329   if test x"$ac_file" = x-; then
30330     configure_input=
30331   else
30332     configure_input="$ac_file.  "
30333   fi
30334   configure_input=$configure_input"Generated from `echo $ac_file_in |
30335                                      sed 's,.*/,,'` by configure."
30336
30337   # First look for the input files in the build tree, otherwise in the
30338   # src tree.
30339   ac_file_inputs=`IFS=:
30340     for f in $ac_file_in; do
30341       case $f in
30342       -) echo $tmp/stdin ;;
30343       [\\/$]*)
30344          # Absolute (can't be DOS-style, as IFS=:)
30345          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30346 echo "$as_me: error: cannot find input file: $f" >&2;}
30347    { (exit 1); exit 1; }; }
30348          echo "$f";;
30349       *) # Relative
30350          if test -f "$f"; then
30351            # Build tree
30352            echo "$f"
30353          elif test -f "$srcdir/$f"; then
30354            # Source tree
30355            echo "$srcdir/$f"
30356          else
30357            # /dev/null tree
30358            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30359 echo "$as_me: error: cannot find input file: $f" >&2;}
30360    { (exit 1); exit 1; }; }
30361          fi;;
30362       esac
30363     done` || { (exit 1); exit 1; }
30364 _ACEOF
30365 cat >>$CONFIG_STATUS <<_ACEOF
30366   sed "$ac_vpsub
30367 $extrasub
30368 _ACEOF
30369 cat >>$CONFIG_STATUS <<\_ACEOF
30370 :t
30371 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30372 s,@configure_input@,$configure_input,;t t
30373 s,@srcdir@,$ac_srcdir,;t t
30374 s,@abs_srcdir@,$ac_abs_srcdir,;t t
30375 s,@top_srcdir@,$ac_top_srcdir,;t t
30376 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
30377 s,@builddir@,$ac_builddir,;t t
30378 s,@abs_builddir@,$ac_abs_builddir,;t t
30379 s,@top_builddir@,$ac_top_builddir,;t t
30380 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
30381 s,@INSTALL@,$ac_INSTALL,;t t
30382 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
30383   rm -f $tmp/stdin
30384   if test x"$ac_file" != x-; then
30385     mv $tmp/out $ac_file
30386   else
30387     cat $tmp/out
30388     rm -f $tmp/out
30389   fi
30390
30391 done
30392 _ACEOF
30393 cat >>$CONFIG_STATUS <<\_ACEOF
30394
30395 #
30396 # CONFIG_HEADER section.
30397 #
30398
30399 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
30400 # NAME is the cpp macro being defined and VALUE is the value it is being given.
30401 #
30402 # ac_d sets the value in "#define NAME VALUE" lines.
30403 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
30404 ac_dB='[         ].*$,\1#\2'
30405 ac_dC=' '
30406 ac_dD=',;t'
30407 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
30408 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
30409 ac_uB='$,\1#\2define\3'
30410 ac_uC=' '
30411 ac_uD=',;t'
30412
30413 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
30414   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30415   case $ac_file in
30416   - | *:- | *:-:* ) # input from stdin
30417         cat >$tmp/stdin
30418         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30419         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30420   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30421         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30422   * )   ac_file_in=$ac_file.in ;;
30423   esac
30424
30425   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
30426 echo "$as_me: creating $ac_file" >&6;}
30427
30428   # First look for the input files in the build tree, otherwise in the
30429   # src tree.
30430   ac_file_inputs=`IFS=:
30431     for f in $ac_file_in; do
30432       case $f in
30433       -) echo $tmp/stdin ;;
30434       [\\/$]*)
30435          # Absolute (can't be DOS-style, as IFS=:)
30436          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30437 echo "$as_me: error: cannot find input file: $f" >&2;}
30438    { (exit 1); exit 1; }; }
30439          # Do quote $f, to prevent DOS paths from being IFS'd.
30440          echo "$f";;
30441       *) # Relative
30442          if test -f "$f"; then
30443            # Build tree
30444            echo "$f"
30445          elif test -f "$srcdir/$f"; then
30446            # Source tree
30447            echo "$srcdir/$f"
30448          else
30449            # /dev/null tree
30450            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30451 echo "$as_me: error: cannot find input file: $f" >&2;}
30452    { (exit 1); exit 1; }; }
30453          fi;;
30454       esac
30455     done` || { (exit 1); exit 1; }
30456   # Remove the trailing spaces.
30457   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
30458
30459 _ACEOF
30460
30461 # Transform confdefs.h into two sed scripts, `conftest.defines' and
30462 # `conftest.undefs', that substitutes the proper values into
30463 # config.h.in to produce config.h.  The first handles `#define'
30464 # templates, and the second `#undef' templates.
30465 # And first: Protect against being on the right side of a sed subst in
30466 # config.status.  Protect against being in an unquoted here document
30467 # in config.status.
30468 rm -f conftest.defines conftest.undefs
30469 # Using a here document instead of a string reduces the quoting nightmare.
30470 # Putting comments in sed scripts is not portable.
30471 #
30472 # `end' is used to avoid that the second main sed command (meant for
30473 # 0-ary CPP macros) applies to n-ary macro definitions.
30474 # See the Autoconf documentation for `clear'.
30475 cat >confdef2sed.sed <<\_ACEOF
30476 s/[\\&,]/\\&/g
30477 s,[\\$`],\\&,g
30478 t clear
30479 : clear
30480 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
30481 t end
30482 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
30483 : end
30484 _ACEOF
30485 # If some macros were called several times there might be several times
30486 # the same #defines, which is useless.  Nevertheless, we may not want to
30487 # sort them, since we want the *last* AC-DEFINE to be honored.
30488 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
30489 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
30490 rm -f confdef2sed.sed
30491
30492 # This sed command replaces #undef with comments.  This is necessary, for
30493 # example, in the case of _POSIX_SOURCE, which is predefined and required
30494 # on some systems where configure will not decide to define it.
30495 cat >>conftest.undefs <<\_ACEOF
30496 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
30497 _ACEOF
30498
30499 # Break up conftest.defines because some shells have a limit on the size
30500 # of here documents, and old seds have small limits too (100 cmds).
30501 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
30502 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
30503 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
30504 echo '  :' >>$CONFIG_STATUS
30505 rm -f conftest.tail
30506 while grep . conftest.defines >/dev/null
30507 do
30508   # Write a limited-size here document to $tmp/defines.sed.
30509   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
30510   # Speed up: don't consider the non `#define' lines.
30511   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
30512   # Work around the forget-to-reset-the-flag bug.
30513   echo 't clr' >>$CONFIG_STATUS
30514   echo ': clr' >>$CONFIG_STATUS
30515   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
30516   echo 'CEOF
30517   sed -f $tmp/defines.sed $tmp/in >$tmp/out
30518   rm -f $tmp/in
30519   mv $tmp/out $tmp/in
30520 ' >>$CONFIG_STATUS
30521   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
30522   rm -f conftest.defines
30523   mv conftest.tail conftest.defines
30524 done
30525 rm -f conftest.defines
30526 echo '  fi # grep' >>$CONFIG_STATUS
30527 echo >>$CONFIG_STATUS
30528
30529 # Break up conftest.undefs because some shells have a limit on the size
30530 # of here documents, and old seds have small limits too (100 cmds).
30531 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
30532 rm -f conftest.tail
30533 while grep . conftest.undefs >/dev/null
30534 do
30535   # Write a limited-size here document to $tmp/undefs.sed.
30536   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
30537   # Speed up: don't consider the non `#undef'
30538   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
30539   # Work around the forget-to-reset-the-flag bug.
30540   echo 't clr' >>$CONFIG_STATUS
30541   echo ': clr' >>$CONFIG_STATUS
30542   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
30543   echo 'CEOF
30544   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
30545   rm -f $tmp/in
30546   mv $tmp/out $tmp/in
30547 ' >>$CONFIG_STATUS
30548   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
30549   rm -f conftest.undefs
30550   mv conftest.tail conftest.undefs
30551 done
30552 rm -f conftest.undefs
30553
30554 cat >>$CONFIG_STATUS <<\_ACEOF
30555   # Let's still pretend it is `configure' which instantiates (i.e., don't
30556   # use $as_me), people would be surprised to read:
30557   #    /* config.h.  Generated by config.status.  */
30558   if test x"$ac_file" = x-; then
30559     echo "/* Generated by configure.  */" >$tmp/config.h
30560   else
30561     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
30562   fi
30563   cat $tmp/in >>$tmp/config.h
30564   rm -f $tmp/in
30565   if test x"$ac_file" != x-; then
30566     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
30567       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30568 echo "$as_me: $ac_file is unchanged" >&6;}
30569     else
30570       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30571 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30572          X"$ac_file" : 'X\(//\)[^/]' \| \
30573          X"$ac_file" : 'X\(//\)$' \| \
30574          X"$ac_file" : 'X\(/\)' \| \
30575          .     : '\(.\)' 2>/dev/null ||
30576 echo X"$ac_file" |
30577     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30578           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30579           /^X\(\/\/\)$/{ s//\1/; q; }
30580           /^X\(\/\).*/{ s//\1/; q; }
30581           s/.*/./; q'`
30582       { if $as_mkdir_p; then
30583     mkdir -p "$ac_dir"
30584   else
30585     as_dir="$ac_dir"
30586     as_dirs=
30587     while test ! -d "$as_dir"; do
30588       as_dirs="$as_dir $as_dirs"
30589       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30590 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30591          X"$as_dir" : 'X\(//\)[^/]' \| \
30592          X"$as_dir" : 'X\(//\)$' \| \
30593          X"$as_dir" : 'X\(/\)' \| \
30594          .     : '\(.\)' 2>/dev/null ||
30595 echo X"$as_dir" |
30596     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30597           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30598           /^X\(\/\/\)$/{ s//\1/; q; }
30599           /^X\(\/\).*/{ s//\1/; q; }
30600           s/.*/./; q'`
30601     done
30602     test ! -n "$as_dirs" || mkdir $as_dirs
30603   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30604 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30605    { (exit 1); exit 1; }; }; }
30606
30607       rm -f $ac_file
30608       mv $tmp/config.h $ac_file
30609     fi
30610   else
30611     cat $tmp/config.h
30612     rm -f $tmp/config.h
30613   fi
30614 # Compute $ac_file's index in $config_headers.
30615 _am_stamp_count=1
30616 for _am_header in $config_headers :; do
30617   case $_am_header in
30618     $ac_file | $ac_file:* )
30619       break ;;
30620     * )
30621       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30622   esac
30623 done
30624 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
30625 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30626          X$ac_file : 'X\(//\)[^/]' \| \
30627          X$ac_file : 'X\(//\)$' \| \
30628          X$ac_file : 'X\(/\)' \| \
30629          .     : '\(.\)' 2>/dev/null ||
30630 echo X$ac_file |
30631     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30632           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30633           /^X\(\/\/\)$/{ s//\1/; q; }
30634           /^X\(\/\).*/{ s//\1/; q; }
30635           s/.*/./; q'`/stamp-h$_am_stamp_count
30636 done
30637 _ACEOF
30638 cat >>$CONFIG_STATUS <<\_ACEOF
30639
30640 #
30641 # CONFIG_COMMANDS section.
30642 #
30643 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
30644   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30645   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30646   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
30647 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30648          X"$ac_dest" : 'X\(//\)[^/]' \| \
30649          X"$ac_dest" : 'X\(//\)$' \| \
30650          X"$ac_dest" : 'X\(/\)' \| \
30651          .     : '\(.\)' 2>/dev/null ||
30652 echo X"$ac_dest" |
30653     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30654           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30655           /^X\(\/\/\)$/{ s//\1/; q; }
30656           /^X\(\/\).*/{ s//\1/; q; }
30657           s/.*/./; q'`
30658   { if $as_mkdir_p; then
30659     mkdir -p "$ac_dir"
30660   else
30661     as_dir="$ac_dir"
30662     as_dirs=
30663     while test ! -d "$as_dir"; do
30664       as_dirs="$as_dir $as_dirs"
30665       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30666 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30667          X"$as_dir" : 'X\(//\)[^/]' \| \
30668          X"$as_dir" : 'X\(//\)$' \| \
30669          X"$as_dir" : 'X\(/\)' \| \
30670          .     : '\(.\)' 2>/dev/null ||
30671 echo X"$as_dir" |
30672     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30673           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30674           /^X\(\/\/\)$/{ s//\1/; q; }
30675           /^X\(\/\).*/{ s//\1/; q; }
30676           s/.*/./; q'`
30677     done
30678     test ! -n "$as_dirs" || mkdir $as_dirs
30679   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30680 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30681    { (exit 1); exit 1; }; }; }
30682
30683   ac_builddir=.
30684
30685 if test "$ac_dir" != .; then
30686   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30687   # A "../" for each directory in $ac_dir_suffix.
30688   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30689 else
30690   ac_dir_suffix= ac_top_builddir=
30691 fi
30692
30693 case $srcdir in
30694   .)  # No --srcdir option.  We are building in place.
30695     ac_srcdir=.
30696     if test -z "$ac_top_builddir"; then
30697        ac_top_srcdir=.
30698     else
30699        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30700     fi ;;
30701   [\\/]* | ?:[\\/]* )  # Absolute path.
30702     ac_srcdir=$srcdir$ac_dir_suffix;
30703     ac_top_srcdir=$srcdir ;;
30704   *) # Relative path.
30705     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30706     ac_top_srcdir=$ac_top_builddir$srcdir ;;
30707 esac
30708
30709 # Do not use `cd foo && pwd` to compute absolute paths, because
30710 # the directories may not exist.
30711 case `pwd` in
30712 .) ac_abs_builddir="$ac_dir";;
30713 *)
30714   case "$ac_dir" in
30715   .) ac_abs_builddir=`pwd`;;
30716   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30717   *) ac_abs_builddir=`pwd`/"$ac_dir";;
30718   esac;;
30719 esac
30720 case $ac_abs_builddir in
30721 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30722 *)
30723   case ${ac_top_builddir}. in
30724   .) ac_abs_top_builddir=$ac_abs_builddir;;
30725   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30726   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30727   esac;;
30728 esac
30729 case $ac_abs_builddir in
30730 .) ac_abs_srcdir=$ac_srcdir;;
30731 *)
30732   case $ac_srcdir in
30733   .) ac_abs_srcdir=$ac_abs_builddir;;
30734   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30735   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30736   esac;;
30737 esac
30738 case $ac_abs_builddir in
30739 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30740 *)
30741   case $ac_top_srcdir in
30742   .) ac_abs_top_srcdir=$ac_abs_builddir;;
30743   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30744   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30745   esac;;
30746 esac
30747
30748
30749   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
30750 echo "$as_me: executing $ac_dest commands" >&6;}
30751   case $ac_dest in
30752     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
30753   # Strip MF so we end up with the name of the file.
30754   mf=`echo "$mf" | sed -e 's/:.*$//'`
30755   # Check whether this is an Automake generated Makefile or not.
30756   # We used to match only the files named `Makefile.in', but
30757   # some people rename them; so instead we look at the file content.
30758   # Grep'ing the first line is not enough: some people post-process
30759   # each Makefile.in and add a new line on top of each file to say so.
30760   # So let's grep whole file.
30761   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
30762     dirpart=`(dirname "$mf") 2>/dev/null ||
30763 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30764          X"$mf" : 'X\(//\)[^/]' \| \
30765          X"$mf" : 'X\(//\)$' \| \
30766          X"$mf" : 'X\(/\)' \| \
30767          .     : '\(.\)' 2>/dev/null ||
30768 echo X"$mf" |
30769     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30770           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30771           /^X\(\/\/\)$/{ s//\1/; q; }
30772           /^X\(\/\).*/{ s//\1/; q; }
30773           s/.*/./; q'`
30774   else
30775     continue
30776   fi
30777   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
30778   # Extract the definition of DEP_FILES from the Makefile without
30779   # running `make'.
30780   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30781   test -z "$DEPDIR" && continue
30782   # When using ansi2knr, U may be empty or an underscore; expand it
30783   U=`sed -n 's/^U = //p' < "$mf"`
30784   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
30785   # We invoke sed twice because it is the simplest approach to
30786   # changing $(DEPDIR) to its actual value in the expansion.
30787   for file in `sed -n '
30788     /^DEP_FILES = .*\\\\$/ {
30789       s/^DEP_FILES = //
30790       :loop
30791         s/\\\\$//
30792         p
30793         n
30794         /\\\\$/ b loop
30795       p
30796     }
30797     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
30798        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30799     # Make sure the directory exists.
30800     test -f "$dirpart/$file" && continue
30801     fdir=`(dirname "$file") 2>/dev/null ||
30802 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30803          X"$file" : 'X\(//\)[^/]' \| \
30804          X"$file" : 'X\(//\)$' \| \
30805          X"$file" : 'X\(/\)' \| \
30806          .     : '\(.\)' 2>/dev/null ||
30807 echo X"$file" |
30808     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30809           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30810           /^X\(\/\/\)$/{ s//\1/; q; }
30811           /^X\(\/\).*/{ s//\1/; q; }
30812           s/.*/./; q'`
30813     { if $as_mkdir_p; then
30814     mkdir -p $dirpart/$fdir
30815   else
30816     as_dir=$dirpart/$fdir
30817     as_dirs=
30818     while test ! -d "$as_dir"; do
30819       as_dirs="$as_dir $as_dirs"
30820       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30821 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30822          X"$as_dir" : 'X\(//\)[^/]' \| \
30823          X"$as_dir" : 'X\(//\)$' \| \
30824          X"$as_dir" : 'X\(/\)' \| \
30825          .     : '\(.\)' 2>/dev/null ||
30826 echo X"$as_dir" |
30827     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30828           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30829           /^X\(\/\/\)$/{ s//\1/; q; }
30830           /^X\(\/\).*/{ s//\1/; q; }
30831           s/.*/./; q'`
30832     done
30833     test ! -n "$as_dirs" || mkdir $as_dirs
30834   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
30835 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
30836    { (exit 1); exit 1; }; }; }
30837
30838     # echo "creating $dirpart/$file"
30839     echo '# dummy' > "$dirpart/$file"
30840   done
30841 done
30842  ;;
30843   esac
30844 done
30845 _ACEOF
30846
30847 cat >>$CONFIG_STATUS <<\_ACEOF
30848
30849 { (exit 0); exit 0; }
30850 _ACEOF
30851 chmod +x $CONFIG_STATUS
30852 ac_clean_files=$ac_clean_files_save
30853
30854
30855 # configure is writing to config.log, and then calls config.status.
30856 # config.status does its own redirection, appending to config.log.
30857 # Unfortunately, on DOS this fails, as config.log is still kept open
30858 # by configure, so config.status won't be able to write to it; its
30859 # output is simply discarded.  So we exec the FD to /dev/null,
30860 # effectively closing config.log, so it can be properly (re)opened and
30861 # appended to by config.status.  When coming back to configure, we
30862 # need to make the FD available again.
30863 if test "$no_create" != yes; then
30864   ac_cs_success=:
30865   ac_config_status_args=
30866   test "$silent" = yes &&
30867     ac_config_status_args="$ac_config_status_args --quiet"
30868   exec 5>/dev/null
30869   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30870   exec 5>>config.log
30871   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30872   # would make configure fail if this is the last instruction.
30873   $ac_cs_success || { (exit 1); exit 1; }
30874 fi
30875
30876 #
30877 # CONFIG_SUBDIRS section.
30878 #
30879 if test "$no_recursion" != yes; then
30880
30881   # Remove --cache-file and --srcdir arguments so they do not pile up.
30882   ac_sub_configure_args=
30883   ac_prev=
30884   for ac_arg in $ac_configure_args; do
30885     if test -n "$ac_prev"; then
30886       ac_prev=
30887       continue
30888     fi
30889     case $ac_arg in
30890     -cache-file | --cache-file | --cache-fil | --cache-fi \
30891     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
30892       ac_prev=cache_file ;;
30893     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
30894     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
30895     | --c=*)
30896       ;;
30897     --config-cache | -C)
30898       ;;
30899     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
30900       ac_prev=srcdir ;;
30901     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
30902       ;;
30903     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
30904       ac_prev=prefix ;;
30905     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
30906       ;;
30907     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
30908     esac
30909   done
30910
30911   # Always prepend --prefix to ensure using the same prefix
30912   # in subdir configurations.
30913   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
30914
30915   ac_popdir=`pwd`
30916   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
30917
30918     # Do not complain, so a configure script can configure whichever
30919     # parts of a large source tree are present.
30920     test -d $srcdir/$ac_dir || continue
30921
30922     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
30923 echo "$as_me: configuring in $ac_dir" >&6;}
30924     { if $as_mkdir_p; then
30925     mkdir -p "$ac_dir"
30926   else
30927     as_dir="$ac_dir"
30928     as_dirs=
30929     while test ! -d "$as_dir"; do
30930       as_dirs="$as_dir $as_dirs"
30931       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30932 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30933          X"$as_dir" : 'X\(//\)[^/]' \| \
30934          X"$as_dir" : 'X\(//\)$' \| \
30935          X"$as_dir" : 'X\(/\)' \| \
30936          .     : '\(.\)' 2>/dev/null ||
30937 echo X"$as_dir" |
30938     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30939           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30940           /^X\(\/\/\)$/{ s//\1/; q; }
30941           /^X\(\/\).*/{ s//\1/; q; }
30942           s/.*/./; q'`
30943     done
30944     test ! -n "$as_dirs" || mkdir $as_dirs
30945   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30946 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30947    { (exit 1); exit 1; }; }; }
30948
30949     ac_builddir=.
30950
30951 if test "$ac_dir" != .; then
30952   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30953   # A "../" for each directory in $ac_dir_suffix.
30954   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30955 else
30956   ac_dir_suffix= ac_top_builddir=
30957 fi
30958
30959 case $srcdir in
30960   .)  # No --srcdir option.  We are building in place.
30961     ac_srcdir=.
30962     if test -z "$ac_top_builddir"; then
30963        ac_top_srcdir=.
30964     else
30965        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30966     fi ;;
30967   [\\/]* | ?:[\\/]* )  # Absolute path.
30968     ac_srcdir=$srcdir$ac_dir_suffix;
30969     ac_top_srcdir=$srcdir ;;
30970   *) # Relative path.
30971     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30972     ac_top_srcdir=$ac_top_builddir$srcdir ;;
30973 esac
30974
30975 # Do not use `cd foo && pwd` to compute absolute paths, because
30976 # the directories may not exist.
30977 case `pwd` in
30978 .) ac_abs_builddir="$ac_dir";;
30979 *)
30980   case "$ac_dir" in
30981   .) ac_abs_builddir=`pwd`;;
30982   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30983   *) ac_abs_builddir=`pwd`/"$ac_dir";;
30984   esac;;
30985 esac
30986 case $ac_abs_builddir in
30987 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30988 *)
30989   case ${ac_top_builddir}. in
30990   .) ac_abs_top_builddir=$ac_abs_builddir;;
30991   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30992   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30993   esac;;
30994 esac
30995 case $ac_abs_builddir in
30996 .) ac_abs_srcdir=$ac_srcdir;;
30997 *)
30998   case $ac_srcdir in
30999   .) ac_abs_srcdir=$ac_abs_builddir;;
31000   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31001   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31002   esac;;
31003 esac
31004 case $ac_abs_builddir in
31005 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31006 *)
31007   case $ac_top_srcdir in
31008   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31009   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31010   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31011   esac;;
31012 esac
31013
31014
31015     cd $ac_dir
31016
31017     # Check for guested configure; otherwise get Cygnus style configure.
31018     if test -f $ac_srcdir/configure.gnu; then
31019       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
31020     elif test -f $ac_srcdir/configure; then
31021       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
31022     elif test -f $ac_srcdir/configure.in; then
31023       ac_sub_configure=$ac_configure
31024     else
31025       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31026 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31027       ac_sub_configure=
31028     fi
31029
31030     # The recursion is here.
31031     if test -n "$ac_sub_configure"; then
31032       # Make the cache file name correct relative to the subdirectory.
31033       case $cache_file in
31034       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31035       *) # Relative path.
31036         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
31037       esac
31038
31039       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31040 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31041       # The eval makes quoting arguments work.
31042       eval $ac_sub_configure $ac_sub_configure_args \
31043            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
31044         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
31045 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31046    { (exit 1); exit 1; }; }
31047     fi
31048
31049     cd $ac_popdir
31050   done
31051 fi
31052