]> git.decadent.org.uk Git - nfs-utils.git/blob - configure
Set libnfsidmap library debugging level and logging function.
[nfs-utils.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for linux nfs-utils 1.0.8-rc2.
4 #
5 # Report bugs to <nfs@lists.sf.net>.
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 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22   set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44   LC_TELEPHONE LC_TIME
45 do
46   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48   else
49     $as_unset $as_var
50   fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90   echo "#! /bin/sh" >conf$$.sh
91   echo  "exit 0"   >>conf$$.sh
92   chmod +x conf$$.sh
93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95   else
96     PATH_SEPARATOR=:
97   fi
98   rm -f conf$$.sh
99 fi
100
101
102   as_lineno_1=$LINENO
103   as_lineno_2=$LINENO
104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105   test "x$as_lineno_1" != "x$as_lineno_2" &&
106   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107   # Find who we are.  Look in the path if we contain no path at all
108   # relative or not.
109   case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119        ;;
120   esac
121   # We did not find ourselves, most probably we were run as `sh COMMAND'
122   # in which case we are not to be found in the path.
123   if test "x$as_myself" = x; then
124     as_myself=$0
125   fi
126   if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128    { (exit 1); exit 1; }; }
129   fi
130   case $CONFIG_SHELL in
131   '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135   IFS=$as_save_IFS
136   test -z "$as_dir" && as_dir=.
137   for as_base in sh bash ksh sh5; do
138          case $as_dir in
139          /*)
140            if ("$as_dir/$as_base" -c '
141   as_lineno_1=$LINENO
142   as_lineno_2=$LINENO
143   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144   test "x$as_lineno_1" != "x$as_lineno_2" &&
145   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148              CONFIG_SHELL=$as_dir/$as_base
149              export CONFIG_SHELL
150              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151            fi;;
152          esac
153        done
154 done
155 ;;
156   esac
157
158   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159   # uniformly replaced by the line number.  The first 'sed' inserts a
160   # line-number line before each line; the second 'sed' does the real
161   # work.  The second script uses 'N' to pair each line-number line
162   # with the numbered line, and appends trailing '-' during
163   # substitution so that $LINENO is not a special case at line end.
164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166   sed '=' <$as_myself |
167     sed '
168       N
169       s,$,-,
170       : loop
171       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172       t loop
173       s,-$,,
174       s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176   chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178    { (exit 1); exit 1; }; }
179
180   # Don't try to exec as it changes $[0], causing all sort of problems
181   # (the dirname of $[0] is not the place where we might find the
182   # original and so on.  Autoconf is especially sensible to this).
183   . ./$as_me.lineno
184   # Exit status is that of the last command.
185   exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190   *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T='      ' ;;
192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205   # We could just check for DJGPP; but this test a) works b) is more generic
206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207   if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   test -d ./-p && rmdir ./-p
224   as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS="   $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
249
250 case X$ECHO in
251 X*--fallback-echo)
252   # Remove one level of quotation (which was required for Make).
253   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254   ;;
255 esac
256
257 echo=${ECHO-echo}
258 if test "X$1" = X--no-reexec; then
259   # Discard the --no-reexec flag, and continue.
260   shift
261 elif test "X$1" = X--fallback-echo; then
262   # Avoid inline document here, it may be left over
263   :
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265   # Yippee, $echo works!
266   :
267 else
268   # Restart under the correct shell.
269   exec $SHELL "$0" --no-reexec ${1+"$@"}
270 fi
271
272 if test "X$1" = X--fallback-echo; then
273   # used as fallback echo
274   shift
275   cat <<EOF
276 $*
277 EOF
278   exit 0
279 fi
280
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 # if CDPATH is set.
283 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
291        echo_test_string=`eval $cmd` &&
292        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293     then
294       break
295     fi
296   done
297 fi
298
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301    test "X$echo_testing_string" = "X$echo_test_string"; then
302   :
303 else
304   # The Solaris, AIX, and Digital Unix default echo programs unquote
305   # backslashes.  This makes it impossible to quote backslashes using
306   #   echo "$something" | sed 's/\\/\\\\/g'
307   #
308   # So, first we look for a working echo in the user's PATH.
309
310   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311   for dir in $PATH /usr/ucb; do
312     IFS="$lt_save_ifs"
313     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316        test "X$echo_testing_string" = "X$echo_test_string"; then
317       echo="$dir/echo"
318       break
319     fi
320   done
321   IFS="$lt_save_ifs"
322
323   if test "X$echo" = Xecho; then
324     # We didn't find a better echo, so look for alternatives.
325     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327        test "X$echo_testing_string" = "X$echo_test_string"; then
328       # This shell has a builtin print -r that does the trick.
329       echo='print -r'
330     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331          test "X$CONFIG_SHELL" != X/bin/ksh; then
332       # If we have ksh, try running configure again with it.
333       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334       export ORIGINAL_CONFIG_SHELL
335       CONFIG_SHELL=/bin/ksh
336       export CONFIG_SHELL
337       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338     else
339       # Try using printf.
340       echo='printf %s\n'
341       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343          test "X$echo_testing_string" = "X$echo_test_string"; then
344         # Cool, printf works
345         :
346       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347            test "X$echo_testing_string" = 'X\t' &&
348            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349            test "X$echo_testing_string" = "X$echo_test_string"; then
350         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351         export CONFIG_SHELL
352         SHELL="$CONFIG_SHELL"
353         export SHELL
354         echo="$CONFIG_SHELL $0 --fallback-echo"
355       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356            test "X$echo_testing_string" = 'X\t' &&
357            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358            test "X$echo_testing_string" = "X$echo_test_string"; then
359         echo="$CONFIG_SHELL $0 --fallback-echo"
360       else
361         # maybe with a smaller string...
362         prev=:
363
364         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366           then
367             break
368           fi
369           prev="$cmd"
370         done
371
372         if test "$prev" != 'sed 50q "$0"'; then
373           echo_test_string=`eval $prev`
374           export echo_test_string
375           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376         else
377           # Oops.  We lost completely, so just stick with echo.
378           echo=echo
379         fi
380       fi
381     fi
382   fi
383 fi
384 fi
385
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
388 ECHO=$echo
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391 fi
392
393
394
395
396 tagnames=${tagnames+${tagnames},}CXX
397
398 tagnames=${tagnames+${tagnames},}F77
399
400 # Name of the host.
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405 exec 6>&1
406
407 #
408 # Initializations.
409 #
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
412 cross_compiling=no
413 subdirs=
414 MFLAGS=
415 MAKEFLAGS=
416 SHELL=${CONFIG_SHELL-/bin/sh}
417
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete.  It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
422
423 # Identity of this package.
424 PACKAGE_NAME='linux nfs-utils'
425 PACKAGE_TARNAME='nfs-utils'
426 PACKAGE_VERSION='1.0.8-rc2'
427 PACKAGE_STRING='linux nfs-utils 1.0.8-rc2'
428 PACKAGE_BUGREPORT='nfs@lists.sf.net'
429
430 ac_unique_file="tools/getiversion/getiversion.c"
431 ac_default_prefix=/usr
432 ac_unique_file="support/include/config.h.in"
433 # Factoring default headers for most tests.
434 ac_includes_default="\
435 #include <stdio.h>
436 #if HAVE_SYS_TYPES_H
437 # include <sys/types.h>
438 #endif
439 #if HAVE_SYS_STAT_H
440 # include <sys/stat.h>
441 #endif
442 #if STDC_HEADERS
443 # include <stdlib.h>
444 # include <stddef.h>
445 #else
446 # if HAVE_STDLIB_H
447 #  include <stdlib.h>
448 # endif
449 #endif
450 #if HAVE_STRING_H
451 # if !STDC_HEADERS && HAVE_MEMORY_H
452 #  include <memory.h>
453 # endif
454 # include <string.h>
455 #endif
456 #if HAVE_STRINGS_H
457 # include <strings.h>
458 #endif
459 #if HAVE_INTTYPES_H
460 # include <inttypes.h>
461 #else
462 # if HAVE_STDINT_H
463 #  include <stdint.h>
464 # endif
465 #endif
466 #if HAVE_UNISTD_H
467 # include <unistd.h>
468 #endif"
469
470 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar RELEASE statedir statduser enable_nfsv3 IDMAPD enable_nfsv4 CONFIG_NFSV4_TRUE CONFIG_NFSV4_FALSE GSSD SVCGSSD enable_gss CONFIG_GSS_TRUE CONFIG_GSS_FALSE kprefix secure_statd CONFIG_RQUOTAD_TRUE CONFIG_RQUOTAD_FALSE 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 LIBWRAP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CPP LN_S EGREP ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL CC_FOR_BUILD LD ac_ct_LD LIBSOCKET LIBNSL LIBCRYPT LIBBSD KRBDIR KRBLIBS KRBCFLAGS K5VERS ALLOCA LIBOBJS CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD CPPFLAGS_FOR_BUILD LDFLAGS_FOR_BUILD AM_CPPFLAGS AM_CFLAGS ACLOCAL_AMFLAGS LTLIBOBJS'
471 ac_subst_files=''
472
473 # Initialize some variables set by options.
474 ac_init_help=
475 ac_init_version=false
476 # The variables have the same names as the options, with
477 # dashes changed to underlines.
478 cache_file=/dev/null
479 exec_prefix=NONE
480 no_create=
481 no_recursion=
482 prefix=NONE
483 program_prefix=NONE
484 program_suffix=NONE
485 program_transform_name=s,x,x,
486 silent=
487 site=
488 srcdir=
489 verbose=
490 x_includes=NONE
491 x_libraries=NONE
492
493 # Installation directory options.
494 # These are left unexpanded so users can "make install exec_prefix=/foo"
495 # and all the variables that are supposed to be based on exec_prefix
496 # by default will actually change.
497 # Use braces instead of parens because sh, perl, etc. also accept them.
498 bindir='${exec_prefix}/bin'
499 sbindir='${exec_prefix}/sbin'
500 libexecdir='${exec_prefix}/libexec'
501 datadir='${prefix}/share'
502 sysconfdir='${prefix}/etc'
503 sharedstatedir='${prefix}/com'
504 localstatedir='${prefix}/var'
505 libdir='${exec_prefix}/lib'
506 includedir='${prefix}/include'
507 oldincludedir='/usr/include'
508 infodir='${prefix}/info'
509 mandir='${prefix}/man'
510
511 ac_prev=
512 for ac_option
513 do
514   # If the previous option needs an argument, assign it.
515   if test -n "$ac_prev"; then
516     eval "$ac_prev=\$ac_option"
517     ac_prev=
518     continue
519   fi
520
521   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
522
523   # Accept the important Cygnus configure options, so we can diagnose typos.
524
525   case $ac_option in
526
527   -bindir | --bindir | --bindi | --bind | --bin | --bi)
528     ac_prev=bindir ;;
529   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530     bindir=$ac_optarg ;;
531
532   -build | --build | --buil | --bui | --bu)
533     ac_prev=build_alias ;;
534   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
535     build_alias=$ac_optarg ;;
536
537   -cache-file | --cache-file | --cache-fil | --cache-fi \
538   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
539     ac_prev=cache_file ;;
540   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
541   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
542     cache_file=$ac_optarg ;;
543
544   --config-cache | -C)
545     cache_file=config.cache ;;
546
547   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
548     ac_prev=datadir ;;
549   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
550   | --da=*)
551     datadir=$ac_optarg ;;
552
553   -disable-* | --disable-*)
554     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
555     # Reject names that are not valid shell variable names.
556     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558    { (exit 1); exit 1; }; }
559     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560     eval "enable_$ac_feature=no" ;;
561
562   -enable-* | --enable-*)
563     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
564     # Reject names that are not valid shell variable names.
565     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567    { (exit 1); exit 1; }; }
568     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569     case $ac_option in
570       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571       *) ac_optarg=yes ;;
572     esac
573     eval "enable_$ac_feature='$ac_optarg'" ;;
574
575   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
576   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
577   | --exec | --exe | --ex)
578     ac_prev=exec_prefix ;;
579   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
580   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
581   | --exec=* | --exe=* | --ex=*)
582     exec_prefix=$ac_optarg ;;
583
584   -gas | --gas | --ga | --g)
585     # Obsolete; use --with-gas.
586     with_gas=yes ;;
587
588   -help | --help | --hel | --he | -h)
589     ac_init_help=long ;;
590   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
591     ac_init_help=recursive ;;
592   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
593     ac_init_help=short ;;
594
595   -host | --host | --hos | --ho)
596     ac_prev=host_alias ;;
597   -host=* | --host=* | --hos=* | --ho=*)
598     host_alias=$ac_optarg ;;
599
600   -includedir | --includedir | --includedi | --included | --include \
601   | --includ | --inclu | --incl | --inc)
602     ac_prev=includedir ;;
603   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
604   | --includ=* | --inclu=* | --incl=* | --inc=*)
605     includedir=$ac_optarg ;;
606
607   -infodir | --infodir | --infodi | --infod | --info | --inf)
608     ac_prev=infodir ;;
609   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
610     infodir=$ac_optarg ;;
611
612   -libdir | --libdir | --libdi | --libd)
613     ac_prev=libdir ;;
614   -libdir=* | --libdir=* | --libdi=* | --libd=*)
615     libdir=$ac_optarg ;;
616
617   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
618   | --libexe | --libex | --libe)
619     ac_prev=libexecdir ;;
620   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
621   | --libexe=* | --libex=* | --libe=*)
622     libexecdir=$ac_optarg ;;
623
624   -localstatedir | --localstatedir | --localstatedi | --localstated \
625   | --localstate | --localstat | --localsta | --localst \
626   | --locals | --local | --loca | --loc | --lo)
627     ac_prev=localstatedir ;;
628   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
629   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
630   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
631     localstatedir=$ac_optarg ;;
632
633   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
634     ac_prev=mandir ;;
635   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
636     mandir=$ac_optarg ;;
637
638   -nfp | --nfp | --nf)
639     # Obsolete; use --without-fp.
640     with_fp=no ;;
641
642   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
643   | --no-cr | --no-c | -n)
644     no_create=yes ;;
645
646   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
647   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648     no_recursion=yes ;;
649
650   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
651   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
652   | --oldin | --oldi | --old | --ol | --o)
653     ac_prev=oldincludedir ;;
654   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
655   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
656   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
657     oldincludedir=$ac_optarg ;;
658
659   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
660     ac_prev=prefix ;;
661   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662     prefix=$ac_optarg ;;
663
664   -program-prefix | --program-prefix | --program-prefi | --program-pref \
665   | --program-pre | --program-pr | --program-p)
666     ac_prev=program_prefix ;;
667   -program-prefix=* | --program-prefix=* | --program-prefi=* \
668   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
669     program_prefix=$ac_optarg ;;
670
671   -program-suffix | --program-suffix | --program-suffi | --program-suff \
672   | --program-suf | --program-su | --program-s)
673     ac_prev=program_suffix ;;
674   -program-suffix=* | --program-suffix=* | --program-suffi=* \
675   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
676     program_suffix=$ac_optarg ;;
677
678   -program-transform-name | --program-transform-name \
679   | --program-transform-nam | --program-transform-na \
680   | --program-transform-n | --program-transform- \
681   | --program-transform | --program-transfor \
682   | --program-transfo | --program-transf \
683   | --program-trans | --program-tran \
684   | --progr-tra | --program-tr | --program-t)
685     ac_prev=program_transform_name ;;
686   -program-transform-name=* | --program-transform-name=* \
687   | --program-transform-nam=* | --program-transform-na=* \
688   | --program-transform-n=* | --program-transform-=* \
689   | --program-transform=* | --program-transfor=* \
690   | --program-transfo=* | --program-transf=* \
691   | --program-trans=* | --program-tran=* \
692   | --progr-tra=* | --program-tr=* | --program-t=*)
693     program_transform_name=$ac_optarg ;;
694
695   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
696   | -silent | --silent | --silen | --sile | --sil)
697     silent=yes ;;
698
699   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
700     ac_prev=sbindir ;;
701   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
702   | --sbi=* | --sb=*)
703     sbindir=$ac_optarg ;;
704
705   -sharedstatedir | --sharedstatedir | --sharedstatedi \
706   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
707   | --sharedst | --shareds | --shared | --share | --shar \
708   | --sha | --sh)
709     ac_prev=sharedstatedir ;;
710   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
711   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
712   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
713   | --sha=* | --sh=*)
714     sharedstatedir=$ac_optarg ;;
715
716   -site | --site | --sit)
717     ac_prev=site ;;
718   -site=* | --site=* | --sit=*)
719     site=$ac_optarg ;;
720
721   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
722     ac_prev=srcdir ;;
723   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724     srcdir=$ac_optarg ;;
725
726   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
727   | --syscon | --sysco | --sysc | --sys | --sy)
728     ac_prev=sysconfdir ;;
729   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
730   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
731     sysconfdir=$ac_optarg ;;
732
733   -target | --target | --targe | --targ | --tar | --ta | --t)
734     ac_prev=target_alias ;;
735   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
736     target_alias=$ac_optarg ;;
737
738   -v | -verbose | --verbose | --verbos | --verbo | --verb)
739     verbose=yes ;;
740
741   -version | --version | --versio | --versi | --vers | -V)
742     ac_init_version=: ;;
743
744   -with-* | --with-*)
745     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
746     # Reject names that are not valid shell variable names.
747     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
748       { echo "$as_me: error: invalid package name: $ac_package" >&2
749    { (exit 1); exit 1; }; }
750     ac_package=`echo $ac_package| sed 's/-/_/g'`
751     case $ac_option in
752       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753       *) ac_optarg=yes ;;
754     esac
755     eval "with_$ac_package='$ac_optarg'" ;;
756
757   -without-* | --without-*)
758     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
759     # Reject names that are not valid shell variable names.
760     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
761       { echo "$as_me: error: invalid package name: $ac_package" >&2
762    { (exit 1); exit 1; }; }
763     ac_package=`echo $ac_package | sed 's/-/_/g'`
764     eval "with_$ac_package=no" ;;
765
766   --x)
767     # Obsolete; use --with-x.
768     with_x=yes ;;
769
770   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
771   | --x-incl | --x-inc | --x-in | --x-i)
772     ac_prev=x_includes ;;
773   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
774   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
775     x_includes=$ac_optarg ;;
776
777   -x-libraries | --x-libraries | --x-librarie | --x-librari \
778   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
779     ac_prev=x_libraries ;;
780   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
781   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
782     x_libraries=$ac_optarg ;;
783
784   -*) { echo "$as_me: error: unrecognized option: $ac_option
785 Try \`$0 --help' for more information." >&2
786    { (exit 1); exit 1; }; }
787     ;;
788
789   *=*)
790     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
791     # Reject names that are not valid shell variable names.
792     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
793       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
794    { (exit 1); exit 1; }; }
795     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
796     eval "$ac_envvar='$ac_optarg'"
797     export $ac_envvar ;;
798
799   *)
800     # FIXME: should be removed in autoconf 3.0.
801     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
802     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
803       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
804     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
805     ;;
806
807   esac
808 done
809
810 if test -n "$ac_prev"; then
811   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
812   { echo "$as_me: error: missing argument to $ac_option" >&2
813    { (exit 1); exit 1; }; }
814 fi
815
816 # Be sure to have absolute paths.
817 for ac_var in exec_prefix prefix
818 do
819   eval ac_val=$`echo $ac_var`
820   case $ac_val in
821     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
822     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
823    { (exit 1); exit 1; }; };;
824   esac
825 done
826
827 # Be sure to have absolute paths.
828 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
829               localstatedir libdir includedir oldincludedir infodir mandir
830 do
831   eval ac_val=$`echo $ac_var`
832   case $ac_val in
833     [\\/$]* | ?:[\\/]* ) ;;
834     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
835    { (exit 1); exit 1; }; };;
836   esac
837 done
838
839 # There might be people who depend on the old broken behavior: `$host'
840 # used to hold the argument of --host etc.
841 # FIXME: To remove some day.
842 build=$build_alias
843 host=$host_alias
844 target=$target_alias
845
846 # FIXME: To remove some day.
847 if test "x$host_alias" != x; then
848   if test "x$build_alias" = x; then
849     cross_compiling=maybe
850     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
851     If a cross compiler is detected then cross compile mode will be used." >&2
852   elif test "x$build_alias" != "x$host_alias"; then
853     cross_compiling=yes
854   fi
855 fi
856
857 ac_tool_prefix=
858 test -n "$host_alias" && ac_tool_prefix=$host_alias-
859
860 test "$silent" = yes && exec 6>/dev/null
861
862
863 # Find the source files, if location was not specified.
864 if test -z "$srcdir"; then
865   ac_srcdir_defaulted=yes
866   # Try the directory containing this script, then its parent.
867   ac_confdir=`(dirname "$0") 2>/dev/null ||
868 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
869          X"$0" : 'X\(//\)[^/]' \| \
870          X"$0" : 'X\(//\)$' \| \
871          X"$0" : 'X\(/\)' \| \
872          .     : '\(.\)' 2>/dev/null ||
873 echo X"$0" |
874     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
875           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
876           /^X\(\/\/\)$/{ s//\1/; q; }
877           /^X\(\/\).*/{ s//\1/; q; }
878           s/.*/./; q'`
879   srcdir=$ac_confdir
880   if test ! -r $srcdir/$ac_unique_file; then
881     srcdir=..
882   fi
883 else
884   ac_srcdir_defaulted=no
885 fi
886 if test ! -r $srcdir/$ac_unique_file; then
887   if test "$ac_srcdir_defaulted" = yes; then
888     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
889    { (exit 1); exit 1; }; }
890   else
891     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
892    { (exit 1); exit 1; }; }
893   fi
894 fi
895 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
896   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
897    { (exit 1); exit 1; }; }
898 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
899 ac_env_build_alias_set=${build_alias+set}
900 ac_env_build_alias_value=$build_alias
901 ac_cv_env_build_alias_set=${build_alias+set}
902 ac_cv_env_build_alias_value=$build_alias
903 ac_env_host_alias_set=${host_alias+set}
904 ac_env_host_alias_value=$host_alias
905 ac_cv_env_host_alias_set=${host_alias+set}
906 ac_cv_env_host_alias_value=$host_alias
907 ac_env_target_alias_set=${target_alias+set}
908 ac_env_target_alias_value=$target_alias
909 ac_cv_env_target_alias_set=${target_alias+set}
910 ac_cv_env_target_alias_value=$target_alias
911 ac_env_CC_set=${CC+set}
912 ac_env_CC_value=$CC
913 ac_cv_env_CC_set=${CC+set}
914 ac_cv_env_CC_value=$CC
915 ac_env_CFLAGS_set=${CFLAGS+set}
916 ac_env_CFLAGS_value=$CFLAGS
917 ac_cv_env_CFLAGS_set=${CFLAGS+set}
918 ac_cv_env_CFLAGS_value=$CFLAGS
919 ac_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_env_LDFLAGS_value=$LDFLAGS
921 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
922 ac_cv_env_LDFLAGS_value=$LDFLAGS
923 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_env_CPPFLAGS_value=$CPPFLAGS
925 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
926 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
927 ac_env_CXX_set=${CXX+set}
928 ac_env_CXX_value=$CXX
929 ac_cv_env_CXX_set=${CXX+set}
930 ac_cv_env_CXX_value=$CXX
931 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932 ac_env_CXXFLAGS_value=$CXXFLAGS
933 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
935 ac_env_CPP_set=${CPP+set}
936 ac_env_CPP_value=$CPP
937 ac_cv_env_CPP_set=${CPP+set}
938 ac_cv_env_CPP_value=$CPP
939 ac_env_CXXCPP_set=${CXXCPP+set}
940 ac_env_CXXCPP_value=$CXXCPP
941 ac_cv_env_CXXCPP_set=${CXXCPP+set}
942 ac_cv_env_CXXCPP_value=$CXXCPP
943 ac_env_F77_set=${F77+set}
944 ac_env_F77_value=$F77
945 ac_cv_env_F77_set=${F77+set}
946 ac_cv_env_F77_value=$F77
947 ac_env_FFLAGS_set=${FFLAGS+set}
948 ac_env_FFLAGS_value=$FFLAGS
949 ac_cv_env_FFLAGS_set=${FFLAGS+set}
950 ac_cv_env_FFLAGS_value=$FFLAGS
951
952 #
953 # Report the --help message.
954 #
955 if test "$ac_init_help" = "long"; then
956   # Omit some internal or obsolete options to make the list less imposing.
957   # This message is too long to be a string in the A/UX 3.1 sh.
958   cat <<_ACEOF
959 \`configure' configures linux nfs-utils 1.0.8-rc2 to adapt to many kinds of systems.
960
961 Usage: $0 [OPTION]... [VAR=VALUE]...
962
963 To assign environment variables (e.g., CC, CFLAGS...), specify them as
964 VAR=VALUE.  See below for descriptions of some of the useful variables.
965
966 Defaults for the options are specified in brackets.
967
968 Configuration:
969   -h, --help              display this help and exit
970       --help=short        display options specific to this package
971       --help=recursive    display the short help of all the included packages
972   -V, --version           display version information and exit
973   -q, --quiet, --silent   do not print \`checking...' messages
974       --cache-file=FILE   cache test results in FILE [disabled]
975   -C, --config-cache      alias for \`--cache-file=config.cache'
976   -n, --no-create         do not create output files
977       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
978
979 _ACEOF
980
981   cat <<_ACEOF
982 Installation directories:
983   --prefix=PREFIX         install architecture-independent files in PREFIX
984                           [$ac_default_prefix]
985   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
986                           [PREFIX]
987
988 By default, \`make install' will install all the files in
989 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
990 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
991 for instance \`--prefix=\$HOME'.
992
993 For better control, use the options below.
994
995 Fine tuning of the installation directories:
996   --bindir=DIR           user executables [EPREFIX/bin]
997   --sbindir=DIR          system admin executables [EPREFIX/sbin]
998   --libexecdir=DIR       program executables [EPREFIX/libexec]
999   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1000   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1001   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1002   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1003   --libdir=DIR           object code libraries [EPREFIX/lib]
1004   --includedir=DIR       C header files [PREFIX/include]
1005   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1006   --infodir=DIR          info documentation [PREFIX/info]
1007   --mandir=DIR           man documentation [PREFIX/man]
1008 _ACEOF
1009
1010   cat <<\_ACEOF
1011
1012 Program names:
1013   --program-prefix=PREFIX            prepend PREFIX to installed program names
1014   --program-suffix=SUFFIX            append SUFFIX to installed program names
1015   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1016
1017 System types:
1018   --build=BUILD     configure for building on BUILD [guessed]
1019   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1020 _ACEOF
1021 fi
1022
1023 if test -n "$ac_init_help"; then
1024   case $ac_init_help in
1025      short | recursive ) echo "Configuration of linux nfs-utils 1.0.8-rc2:";;
1026    esac
1027   cat <<\_ACEOF
1028
1029 Optional Features:
1030   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1031   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1032   --enable-nfsv3          enable support for NFSv3 [default=yes]
1033   --enable-nfsv4          enable support for NFSv4 [default=yes]
1034   --enable-gss            enable support for rpcsec_gss [default=yes]
1035   --enable-kprefix        install progs as rpc.knfsd etc
1036   --enable-secure-statd   Only lockd can use statd (security)
1037   --enable-rquotad        enable rquotad [default=yes]
1038   --disable-dependency-tracking  speeds up one-time build
1039   --enable-dependency-tracking   do not reject slow dependency extractors
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
1048 Optional Packages:
1049   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1050   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1051   --with-release=XXX      set release to XXX [1]
1052   --with-statedir=/foo    use state dir /foo /var/lib/nfs
1053   --with-statduser=rpcuser
1054                           statd to run under [rpcuser or nobody]
1055   --with-tcp-wrappers[=PATH]      Enable tcpwrappers support
1056                  (optionally in PATH)
1057   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1058   --with-pic              try to use only PIC/non-PIC objects [default=use
1059                           both]
1060   --with-tags[=TAGS]
1061                           include additional configurations [automatic]
1062   --with-krb5=DIR         use Kerberos v5 installation in DIR
1063
1064 Some influential environment variables:
1065   CC          C compiler command
1066   CFLAGS      C compiler flags
1067   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1068               nonstandard directory <lib dir>
1069   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1070               headers in a nonstandard directory <include dir>
1071   CXX         C++ compiler command
1072   CXXFLAGS    C++ compiler flags
1073   CPP         C preprocessor
1074   CXXCPP      C++ preprocessor
1075   F77         Fortran 77 compiler command
1076   FFLAGS      Fortran 77 compiler flags
1077
1078 Use these variables to override the choices made by `configure' or to help
1079 it to find libraries and programs with nonstandard names/locations.
1080
1081 Report bugs to <nfs@lists.sf.net>.
1082 _ACEOF
1083 fi
1084
1085 if test "$ac_init_help" = "recursive"; then
1086   # If there are subdirs, report their specific --help.
1087   ac_popdir=`pwd`
1088   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1089     test -d $ac_dir || continue
1090     ac_builddir=.
1091
1092 if test "$ac_dir" != .; then
1093   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1094   # A "../" for each directory in $ac_dir_suffix.
1095   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1096 else
1097   ac_dir_suffix= ac_top_builddir=
1098 fi
1099
1100 case $srcdir in
1101   .)  # No --srcdir option.  We are building in place.
1102     ac_srcdir=.
1103     if test -z "$ac_top_builddir"; then
1104        ac_top_srcdir=.
1105     else
1106        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1107     fi ;;
1108   [\\/]* | ?:[\\/]* )  # Absolute path.
1109     ac_srcdir=$srcdir$ac_dir_suffix;
1110     ac_top_srcdir=$srcdir ;;
1111   *) # Relative path.
1112     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1113     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1114 esac
1115
1116 # Do not use `cd foo && pwd` to compute absolute paths, because
1117 # the directories may not exist.
1118 case `pwd` in
1119 .) ac_abs_builddir="$ac_dir";;
1120 *)
1121   case "$ac_dir" in
1122   .) ac_abs_builddir=`pwd`;;
1123   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1124   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1125   esac;;
1126 esac
1127 case $ac_abs_builddir in
1128 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1129 *)
1130   case ${ac_top_builddir}. in
1131   .) ac_abs_top_builddir=$ac_abs_builddir;;
1132   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1133   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1134   esac;;
1135 esac
1136 case $ac_abs_builddir in
1137 .) ac_abs_srcdir=$ac_srcdir;;
1138 *)
1139   case $ac_srcdir in
1140   .) ac_abs_srcdir=$ac_abs_builddir;;
1141   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1142   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1143   esac;;
1144 esac
1145 case $ac_abs_builddir in
1146 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1147 *)
1148   case $ac_top_srcdir in
1149   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1150   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1151   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1152   esac;;
1153 esac
1154
1155     cd $ac_dir
1156     # Check for guested configure; otherwise get Cygnus style configure.
1157     if test -f $ac_srcdir/configure.gnu; then
1158       echo
1159       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1160     elif test -f $ac_srcdir/configure; then
1161       echo
1162       $SHELL $ac_srcdir/configure  --help=recursive
1163     elif test -f $ac_srcdir/configure.ac ||
1164            test -f $ac_srcdir/configure.in; then
1165       echo
1166       $ac_configure --help
1167     else
1168       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1169     fi
1170     cd "$ac_popdir"
1171   done
1172 fi
1173
1174 test -n "$ac_init_help" && exit 0
1175 if $ac_init_version; then
1176   cat <<\_ACEOF
1177 linux nfs-utils configure 1.0.8-rc2
1178 generated by GNU Autoconf 2.59
1179
1180 Copyright (C) 2003 Free Software Foundation, Inc.
1181 This configure script is free software; the Free Software Foundation
1182 gives unlimited permission to copy, distribute and modify it.
1183 _ACEOF
1184   exit 0
1185 fi
1186 exec 5>config.log
1187 cat >&5 <<_ACEOF
1188 This file contains any messages produced by compilers while
1189 running configure, to aid debugging if configure makes a mistake.
1190
1191 It was created by linux nfs-utils $as_me 1.0.8-rc2, which was
1192 generated by GNU Autoconf 2.59.  Invocation command line was
1193
1194   $ $0 $@
1195
1196 _ACEOF
1197 {
1198 cat <<_ASUNAME
1199 ## --------- ##
1200 ## Platform. ##
1201 ## --------- ##
1202
1203 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1204 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1205 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1206 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1207 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1208
1209 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1210 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1211
1212 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1213 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1214 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1215 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1216 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1217 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1218 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1219
1220 _ASUNAME
1221
1222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1223 for as_dir in $PATH
1224 do
1225   IFS=$as_save_IFS
1226   test -z "$as_dir" && as_dir=.
1227   echo "PATH: $as_dir"
1228 done
1229
1230 } >&5
1231
1232 cat >&5 <<_ACEOF
1233
1234
1235 ## ----------- ##
1236 ## Core tests. ##
1237 ## ----------- ##
1238
1239 _ACEOF
1240
1241
1242 # Keep a trace of the command line.
1243 # Strip out --no-create and --no-recursion so they do not pile up.
1244 # Strip out --silent because we don't want to record it for future runs.
1245 # Also quote any args containing shell meta-characters.
1246 # Make two passes to allow for proper duplicate-argument suppression.
1247 ac_configure_args=
1248 ac_configure_args0=
1249 ac_configure_args1=
1250 ac_sep=
1251 ac_must_keep_next=false
1252 for ac_pass in 1 2
1253 do
1254   for ac_arg
1255   do
1256     case $ac_arg in
1257     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1258     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1259     | -silent | --silent | --silen | --sile | --sil)
1260       continue ;;
1261     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1262       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1263     esac
1264     case $ac_pass in
1265     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1266     2)
1267       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1268       if test $ac_must_keep_next = true; then
1269         ac_must_keep_next=false # Got value, back to normal.
1270       else
1271         case $ac_arg in
1272           *=* | --config-cache | -C | -disable-* | --disable-* \
1273           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1274           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1275           | -with-* | --with-* | -without-* | --without-* | --x)
1276             case "$ac_configure_args0 " in
1277               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1278             esac
1279             ;;
1280           -* ) ac_must_keep_next=true ;;
1281         esac
1282       fi
1283       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1284       # Get rid of the leading space.
1285       ac_sep=" "
1286       ;;
1287     esac
1288   done
1289 done
1290 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1291 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1292
1293 # When interrupted or exit'd, cleanup temporary files, and complete
1294 # config.log.  We remove comments because anyway the quotes in there
1295 # would cause problems or look ugly.
1296 # WARNING: Be sure not to use single quotes in there, as some shells,
1297 # such as our DU 5.0 friend, will then `close' the trap.
1298 trap 'exit_status=$?
1299   # Save into config.log some information that might help in debugging.
1300   {
1301     echo
1302
1303     cat <<\_ASBOX
1304 ## ---------------- ##
1305 ## Cache variables. ##
1306 ## ---------------- ##
1307 _ASBOX
1308     echo
1309     # The following way of writing the cache mishandles newlines in values,
1310 {
1311   (set) 2>&1 |
1312     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1313     *ac_space=\ *)
1314       sed -n \
1315         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1316           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1317       ;;
1318     *)
1319       sed -n \
1320         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1321       ;;
1322     esac;
1323 }
1324     echo
1325
1326     cat <<\_ASBOX
1327 ## ----------------- ##
1328 ## Output variables. ##
1329 ## ----------------- ##
1330 _ASBOX
1331     echo
1332     for ac_var in $ac_subst_vars
1333     do
1334       eval ac_val=$`echo $ac_var`
1335       echo "$ac_var='"'"'$ac_val'"'"'"
1336     done | sort
1337     echo
1338
1339     if test -n "$ac_subst_files"; then
1340       cat <<\_ASBOX
1341 ## ------------- ##
1342 ## Output files. ##
1343 ## ------------- ##
1344 _ASBOX
1345       echo
1346       for ac_var in $ac_subst_files
1347       do
1348         eval ac_val=$`echo $ac_var`
1349         echo "$ac_var='"'"'$ac_val'"'"'"
1350       done | sort
1351       echo
1352     fi
1353
1354     if test -s confdefs.h; then
1355       cat <<\_ASBOX
1356 ## ----------- ##
1357 ## confdefs.h. ##
1358 ## ----------- ##
1359 _ASBOX
1360       echo
1361       sed "/^$/d" confdefs.h | sort
1362       echo
1363     fi
1364     test "$ac_signal" != 0 &&
1365       echo "$as_me: caught signal $ac_signal"
1366     echo "$as_me: exit $exit_status"
1367   } >&5
1368   rm -f core *.core &&
1369   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1370     exit $exit_status
1371      ' 0
1372 for ac_signal in 1 2 13 15; do
1373   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1374 done
1375 ac_signal=0
1376
1377 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1378 rm -rf conftest* confdefs.h
1379 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1380 echo >confdefs.h
1381
1382 # Predefined preprocessor variables.
1383
1384 cat >>confdefs.h <<_ACEOF
1385 #define PACKAGE_NAME "$PACKAGE_NAME"
1386 _ACEOF
1387
1388
1389 cat >>confdefs.h <<_ACEOF
1390 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1391 _ACEOF
1392
1393
1394 cat >>confdefs.h <<_ACEOF
1395 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1396 _ACEOF
1397
1398
1399 cat >>confdefs.h <<_ACEOF
1400 #define PACKAGE_STRING "$PACKAGE_STRING"
1401 _ACEOF
1402
1403
1404 cat >>confdefs.h <<_ACEOF
1405 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1406 _ACEOF
1407
1408
1409 # Let the site file select an alternate cache file if it wants to.
1410 # Prefer explicitly selected file to automatically selected ones.
1411 if test -z "$CONFIG_SITE"; then
1412   if test "x$prefix" != xNONE; then
1413     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1414   else
1415     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1416   fi
1417 fi
1418 for ac_site_file in $CONFIG_SITE; do
1419   if test -r "$ac_site_file"; then
1420     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1421 echo "$as_me: loading site script $ac_site_file" >&6;}
1422     sed 's/^/| /' "$ac_site_file" >&5
1423     . "$ac_site_file"
1424   fi
1425 done
1426
1427 if test -r "$cache_file"; then
1428   # Some versions of bash will fail to source /dev/null (special
1429   # files actually), so we avoid doing that.
1430   if test -f "$cache_file"; then
1431     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1432 echo "$as_me: loading cache $cache_file" >&6;}
1433     case $cache_file in
1434       [\\/]* | ?:[\\/]* ) . $cache_file;;
1435       *)                      . ./$cache_file;;
1436     esac
1437   fi
1438 else
1439   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1440 echo "$as_me: creating cache $cache_file" >&6;}
1441   >$cache_file
1442 fi
1443
1444 # Check that the precious variables saved in the cache have kept the same
1445 # value.
1446 ac_cache_corrupted=false
1447 for ac_var in `(set) 2>&1 |
1448                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1449   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1450   eval ac_new_set=\$ac_env_${ac_var}_set
1451   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1452   eval ac_new_val="\$ac_env_${ac_var}_value"
1453   case $ac_old_set,$ac_new_set in
1454     set,)
1455       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1456 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1457       ac_cache_corrupted=: ;;
1458     ,set)
1459       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1460 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1461       ac_cache_corrupted=: ;;
1462     ,);;
1463     *)
1464       if test "x$ac_old_val" != "x$ac_new_val"; then
1465         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1466 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1467         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1468 echo "$as_me:   former value:  $ac_old_val" >&2;}
1469         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1470 echo "$as_me:   current value: $ac_new_val" >&2;}
1471         ac_cache_corrupted=:
1472       fi;;
1473   esac
1474   # Pass precious variables to config.status.
1475   if test "$ac_new_set" = set; then
1476     case $ac_new_val in
1477     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1478       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1479     *) ac_arg=$ac_var=$ac_new_val ;;
1480     esac
1481     case " $ac_configure_args " in
1482       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1483       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1484     esac
1485   fi
1486 done
1487 if $ac_cache_corrupted; then
1488   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1489 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1490   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1491 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1492    { (exit 1); exit 1; }; }
1493 fi
1494
1495 ac_ext=c
1496 ac_cpp='$CPP $CPPFLAGS'
1497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527 ac_aux_dir=
1528 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1529   if test -f $ac_dir/install-sh; then
1530     ac_aux_dir=$ac_dir
1531     ac_install_sh="$ac_aux_dir/install-sh -c"
1532     break
1533   elif test -f $ac_dir/install.sh; then
1534     ac_aux_dir=$ac_dir
1535     ac_install_sh="$ac_aux_dir/install.sh -c"
1536     break
1537   elif test -f $ac_dir/shtool; then
1538     ac_aux_dir=$ac_dir
1539     ac_install_sh="$ac_aux_dir/shtool install -c"
1540     break
1541   fi
1542 done
1543 if test -z "$ac_aux_dir"; then
1544   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1545 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1546    { (exit 1); exit 1; }; }
1547 fi
1548 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1549 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1550 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1551
1552 # Make sure we can run config.sub.
1553 $ac_config_sub sun4 >/dev/null 2>&1 ||
1554   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1555 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1556    { (exit 1); exit 1; }; }
1557
1558 echo "$as_me:$LINENO: checking build system type" >&5
1559 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1560 if test "${ac_cv_build+set}" = set; then
1561   echo $ECHO_N "(cached) $ECHO_C" >&6
1562 else
1563   ac_cv_build_alias=$build_alias
1564 test -z "$ac_cv_build_alias" &&
1565   ac_cv_build_alias=`$ac_config_guess`
1566 test -z "$ac_cv_build_alias" &&
1567   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1568 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1569    { (exit 1); exit 1; }; }
1570 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1571   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1572 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1573    { (exit 1); exit 1; }; }
1574
1575 fi
1576 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1577 echo "${ECHO_T}$ac_cv_build" >&6
1578 build=$ac_cv_build
1579 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1580 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1581 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1582
1583
1584 echo "$as_me:$LINENO: checking host system type" >&5
1585 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1586 if test "${ac_cv_host+set}" = set; then
1587   echo $ECHO_N "(cached) $ECHO_C" >&6
1588 else
1589   ac_cv_host_alias=$host_alias
1590 test -z "$ac_cv_host_alias" &&
1591   ac_cv_host_alias=$ac_cv_build_alias
1592 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1593   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1594 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1595    { (exit 1); exit 1; }; }
1596
1597 fi
1598 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1599 echo "${ECHO_T}$ac_cv_host" >&6
1600 host=$ac_cv_host
1601 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1602 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1603 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1604
1605
1606
1607 case aclocal in
1608   [\\/]* | ?:[\\/]* ) ac_macro_dir=aclocal         ;;
1609   *)                      ac_macro_dir=$srcdir/aclocal ;;
1610 esac
1611 if test -d "$ac_macro_dir"; then :
1612 else
1613   { { echo "$as_me:$LINENO: error: cannot find macro directory \`aclocal'" >&5
1614 echo "$as_me: error: cannot find macro directory \`aclocal'" >&2;}
1615    { (exit 1); exit 1; }; }
1616 fi
1617
1618 am__api_version="1.9"
1619 # Find a good install program.  We prefer a C program (faster),
1620 # so one script is as good as another.  But avoid the broken or
1621 # incompatible versions:
1622 # SysV /etc/install, /usr/sbin/install
1623 # SunOS /usr/etc/install
1624 # IRIX /sbin/install
1625 # AIX /bin/install
1626 # AmigaOS /C/install, which installs bootblocks on floppy discs
1627 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1628 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1629 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1630 # OS/2's system install, which has a completely different semantic
1631 # ./install, which can be erroneously created by make from ./install.sh.
1632 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1633 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1634 if test -z "$INSTALL"; then
1635 if test "${ac_cv_path_install+set}" = set; then
1636   echo $ECHO_N "(cached) $ECHO_C" >&6
1637 else
1638   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1639 for as_dir in $PATH
1640 do
1641   IFS=$as_save_IFS
1642   test -z "$as_dir" && as_dir=.
1643   # Account for people who put trailing slashes in PATH elements.
1644 case $as_dir/ in
1645   ./ | .// | /cC/* | \
1646   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1647   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1648   /usr/ucb/* ) ;;
1649   *)
1650     # OSF1 and SCO ODT 3.0 have their own names for install.
1651     # Don't use installbsd from OSF since it installs stuff as root
1652     # by default.
1653     for ac_prog in ginstall scoinst install; do
1654       for ac_exec_ext in '' $ac_executable_extensions; do
1655         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1656           if test $ac_prog = install &&
1657             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1658             # AIX install.  It has an incompatible calling convention.
1659             :
1660           elif test $ac_prog = install &&
1661             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1662             # program-specific install script used by HP pwplus--don't use.
1663             :
1664           else
1665             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1666             break 3
1667           fi
1668         fi
1669       done
1670     done
1671     ;;
1672 esac
1673 done
1674
1675
1676 fi
1677   if test "${ac_cv_path_install+set}" = set; then
1678     INSTALL=$ac_cv_path_install
1679   else
1680     # As a last resort, use the slow shell script.  We don't cache a
1681     # path for INSTALL within a source directory, because that will
1682     # break other packages using the cache if that directory is
1683     # removed, or if the path is relative.
1684     INSTALL=$ac_install_sh
1685   fi
1686 fi
1687 echo "$as_me:$LINENO: result: $INSTALL" >&5
1688 echo "${ECHO_T}$INSTALL" >&6
1689
1690 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1691 # It thinks the first close brace ends the variable substitution.
1692 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1693
1694 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1695
1696 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1697
1698 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1699 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1700 # Just in case
1701 sleep 1
1702 echo timestamp > conftest.file
1703 # Do `set' in a subshell so we don't clobber the current shell's
1704 # arguments.  Must try -L first in case configure is actually a
1705 # symlink; some systems play weird games with the mod time of symlinks
1706 # (eg FreeBSD returns the mod time of the symlink's containing
1707 # directory).
1708 if (
1709    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1710    if test "$*" = "X"; then
1711       # -L didn't work.
1712       set X `ls -t $srcdir/configure conftest.file`
1713    fi
1714    rm -f conftest.file
1715    if test "$*" != "X $srcdir/configure conftest.file" \
1716       && test "$*" != "X conftest.file $srcdir/configure"; then
1717
1718       # If neither matched, then we have a broken ls.  This can happen
1719       # if, for instance, CONFIG_SHELL is bash and it inherits a
1720       # broken ls alias from the environment.  This has actually
1721       # happened.  Such a system could not be considered "sane".
1722       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1723 alias in your environment" >&5
1724 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1725 alias in your environment" >&2;}
1726    { (exit 1); exit 1; }; }
1727    fi
1728
1729    test "$2" = conftest.file
1730    )
1731 then
1732    # Ok.
1733    :
1734 else
1735    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1736 Check your system clock" >&5
1737 echo "$as_me: error: newly created file is older than distributed files!
1738 Check your system clock" >&2;}
1739    { (exit 1); exit 1; }; }
1740 fi
1741 echo "$as_me:$LINENO: result: yes" >&5
1742 echo "${ECHO_T}yes" >&6
1743 test "$program_prefix" != NONE &&
1744   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1745 # Use a double $ so make ignores it.
1746 test "$program_suffix" != NONE &&
1747   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1748 # Double any \ or $.  echo might interpret backslashes.
1749 # By default was `s,x,x', remove it if useless.
1750 cat <<\_ACEOF >conftest.sed
1751 s/[\\$]/&&/g;s/;s,x,x,$//
1752 _ACEOF
1753 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1754 rm conftest.sed
1755
1756 # expand $ac_aux_dir to an absolute path
1757 am_aux_dir=`cd $ac_aux_dir && pwd`
1758
1759 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1760 # Use eval to expand $SHELL
1761 if eval "$MISSING --run true"; then
1762   am_missing_run="$MISSING --run "
1763 else
1764   am_missing_run=
1765   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1766 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1767 fi
1768
1769 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1770   # We used to keeping the `.' as first argument, in order to
1771   # allow $(mkdir_p) to be used without argument.  As in
1772   #   $(mkdir_p) $(somedir)
1773   # where $(somedir) is conditionally defined.  However this is wrong
1774   # for two reasons:
1775   #  1. if the package is installed by a user who cannot write `.'
1776   #     make install will fail,
1777   #  2. the above comment should most certainly read
1778   #     $(mkdir_p) $(DESTDIR)$(somedir)
1779   #     so it does not work when $(somedir) is undefined and
1780   #     $(DESTDIR) is not.
1781   #  To support the latter case, we have to write
1782   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1783   #  so the `.' trick is pointless.
1784   mkdir_p='mkdir -p --'
1785 else
1786   # On NextStep and OpenStep, the `mkdir' command does not
1787   # recognize any option.  It will interpret all options as
1788   # directories to create, and then abort because `.' already
1789   # exists.
1790   for d in ./-p ./--version;
1791   do
1792     test -d $d && rmdir $d
1793   done
1794   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1795   if test -f "$ac_aux_dir/mkinstalldirs"; then
1796     mkdir_p='$(mkinstalldirs)'
1797   else
1798     mkdir_p='$(install_sh) -d'
1799   fi
1800 fi
1801
1802 for ac_prog in gawk mawk nawk awk
1803 do
1804   # Extract the first word of "$ac_prog", so it can be a program name with args.
1805 set dummy $ac_prog; ac_word=$2
1806 echo "$as_me:$LINENO: checking for $ac_word" >&5
1807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1808 if test "${ac_cv_prog_AWK+set}" = set; then
1809   echo $ECHO_N "(cached) $ECHO_C" >&6
1810 else
1811   if test -n "$AWK"; then
1812   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1813 else
1814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1815 for as_dir in $PATH
1816 do
1817   IFS=$as_save_IFS
1818   test -z "$as_dir" && as_dir=.
1819   for ac_exec_ext in '' $ac_executable_extensions; do
1820   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1821     ac_cv_prog_AWK="$ac_prog"
1822     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1823     break 2
1824   fi
1825 done
1826 done
1827
1828 fi
1829 fi
1830 AWK=$ac_cv_prog_AWK
1831 if test -n "$AWK"; then
1832   echo "$as_me:$LINENO: result: $AWK" >&5
1833 echo "${ECHO_T}$AWK" >&6
1834 else
1835   echo "$as_me:$LINENO: result: no" >&5
1836 echo "${ECHO_T}no" >&6
1837 fi
1838
1839   test -n "$AWK" && break
1840 done
1841
1842 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1843 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1844 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1845 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1846   echo $ECHO_N "(cached) $ECHO_C" >&6
1847 else
1848   cat >conftest.make <<\_ACEOF
1849 all:
1850         @echo 'ac_maketemp="$(MAKE)"'
1851 _ACEOF
1852 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1853 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1854 if test -n "$ac_maketemp"; then
1855   eval ac_cv_prog_make_${ac_make}_set=yes
1856 else
1857   eval ac_cv_prog_make_${ac_make}_set=no
1858 fi
1859 rm -f conftest.make
1860 fi
1861 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1862   echo "$as_me:$LINENO: result: yes" >&5
1863 echo "${ECHO_T}yes" >&6
1864   SET_MAKE=
1865 else
1866   echo "$as_me:$LINENO: result: no" >&5
1867 echo "${ECHO_T}no" >&6
1868   SET_MAKE="MAKE=${MAKE-make}"
1869 fi
1870
1871 rm -rf .tst 2>/dev/null
1872 mkdir .tst 2>/dev/null
1873 if test -d .tst; then
1874   am__leading_dot=.
1875 else
1876   am__leading_dot=_
1877 fi
1878 rmdir .tst 2>/dev/null
1879
1880 # test to see if srcdir already configured
1881 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1882    test -f $srcdir/config.status; then
1883   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1884 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1885    { (exit 1); exit 1; }; }
1886 fi
1887
1888 # test whether we have cygpath
1889 if test -z "$CYGPATH_W"; then
1890   if (cygpath --version) >/dev/null 2>/dev/null; then
1891     CYGPATH_W='cygpath -w'
1892   else
1893     CYGPATH_W=echo
1894   fi
1895 fi
1896
1897
1898 # Define the identity of the package.
1899  PACKAGE='nfs-utils'
1900  VERSION='1.0.8-rc2'
1901
1902
1903 cat >>confdefs.h <<_ACEOF
1904 #define PACKAGE "$PACKAGE"
1905 _ACEOF
1906
1907
1908 cat >>confdefs.h <<_ACEOF
1909 #define VERSION "$VERSION"
1910 _ACEOF
1911
1912 # Some tools Automake needs.
1913
1914 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1915
1916
1917 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1918
1919
1920 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1921
1922
1923 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1924
1925
1926 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1927
1928 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1929
1930 # Installed binaries are usually stripped using `strip' when the user
1931 # run `make install-strip'.  However `strip' might not be the right
1932 # tool to use in cross-compilation environments, therefore Automake
1933 # will honor the `STRIP' environment variable to overrule this program.
1934 if test "$cross_compiling" != no; then
1935   if test -n "$ac_tool_prefix"; then
1936   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1937 set dummy ${ac_tool_prefix}strip; ac_word=$2
1938 echo "$as_me:$LINENO: checking for $ac_word" >&5
1939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1940 if test "${ac_cv_prog_STRIP+set}" = set; then
1941   echo $ECHO_N "(cached) $ECHO_C" >&6
1942 else
1943   if test -n "$STRIP"; then
1944   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1945 else
1946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1947 for as_dir in $PATH
1948 do
1949   IFS=$as_save_IFS
1950   test -z "$as_dir" && as_dir=.
1951   for ac_exec_ext in '' $ac_executable_extensions; do
1952   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1953     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1954     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1955     break 2
1956   fi
1957 done
1958 done
1959
1960 fi
1961 fi
1962 STRIP=$ac_cv_prog_STRIP
1963 if test -n "$STRIP"; then
1964   echo "$as_me:$LINENO: result: $STRIP" >&5
1965 echo "${ECHO_T}$STRIP" >&6
1966 else
1967   echo "$as_me:$LINENO: result: no" >&5
1968 echo "${ECHO_T}no" >&6
1969 fi
1970
1971 fi
1972 if test -z "$ac_cv_prog_STRIP"; then
1973   ac_ct_STRIP=$STRIP
1974   # Extract the first word of "strip", so it can be a program name with args.
1975 set dummy strip; ac_word=$2
1976 echo "$as_me:$LINENO: checking for $ac_word" >&5
1977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1978 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1979   echo $ECHO_N "(cached) $ECHO_C" >&6
1980 else
1981   if test -n "$ac_ct_STRIP"; then
1982   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1983 else
1984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1985 for as_dir in $PATH
1986 do
1987   IFS=$as_save_IFS
1988   test -z "$as_dir" && as_dir=.
1989   for ac_exec_ext in '' $ac_executable_extensions; do
1990   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1991     ac_cv_prog_ac_ct_STRIP="strip"
1992     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1993     break 2
1994   fi
1995 done
1996 done
1997
1998   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1999 fi
2000 fi
2001 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2002 if test -n "$ac_ct_STRIP"; then
2003   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2004 echo "${ECHO_T}$ac_ct_STRIP" >&6
2005 else
2006   echo "$as_me:$LINENO: result: no" >&5
2007 echo "${ECHO_T}no" >&6
2008 fi
2009
2010   STRIP=$ac_ct_STRIP
2011 else
2012   STRIP="$ac_cv_prog_STRIP"
2013 fi
2014
2015 fi
2016 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2017
2018 # We need awk for the "check" target.  The system "awk" is bad on
2019 # some platforms.
2020 # Always define AMTAR for backward compatibility.
2021
2022 AMTAR=${AMTAR-"${am_missing_run}tar"}
2023
2024 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034 # Check whether --with-release or --without-release was given.
2035 if test "${with_release+set}" = set; then
2036   withval="$with_release"
2037   RELEASE=$withval
2038 else
2039   RELEASE=1
2040 fi;
2041
2042
2043 # Check whether --with-statedir or --without-statedir was given.
2044 if test "${with_statedir+set}" = set; then
2045   withval="$with_statedir"
2046   statedir=$withval
2047 else
2048   statedir=/var/lib/nfs
2049 fi;
2050
2051
2052 # Check whether --with-statduser or --without-statduser was given.
2053 if test "${with_statduser+set}" = set; then
2054   withval="$with_statduser"
2055   statduser=$withval
2056 else
2057   if test "x$cross_compiling" = "xno"; then
2058                 if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
2059                         statduser=rpcuser
2060                 else
2061                         statduser=nobody
2062                 fi
2063         else
2064                 statduser=nobody
2065         fi
2066 fi;
2067
2068 # Check whether --enable-nfsv3 or --disable-nfsv3 was given.
2069 if test "${enable_nfsv3+set}" = set; then
2070   enableval="$enable_nfsv3"
2071   enable_nfsv3=$enableval
2072 else
2073   enable_nfsv3=yes
2074 fi;
2075         if test "$enable_nfsv3" = yes; then
2076
2077 cat >>confdefs.h <<\_ACEOF
2078 #define NFS3_SUPPORTED 1
2079 _ACEOF
2080
2081         else
2082                 enable_nfsv3=
2083         fi
2084
2085 # Check whether --enable-nfsv4 or --disable-nfsv4 was given.
2086 if test "${enable_nfsv4+set}" = set; then
2087   enableval="$enable_nfsv4"
2088   enable_nfsv4=$enableval
2089 else
2090   enable_nfsv4=yes
2091 fi;
2092         if test "$enable_nfsv4" = yes; then
2093
2094 cat >>confdefs.h <<\_ACEOF
2095 #define NFS4_SUPPORTED 1
2096 _ACEOF
2097
2098                 IDMAPD=idmapd
2099         else
2100                 enable_nfsv4=
2101                 IDMAPD=
2102         fi
2103
2104
2105
2106
2107 if test "$enable_nfsv4" = "yes"; then
2108   CONFIG_NFSV4_TRUE=
2109   CONFIG_NFSV4_FALSE='#'
2110 else
2111   CONFIG_NFSV4_TRUE='#'
2112   CONFIG_NFSV4_FALSE=
2113 fi
2114
2115 # Check whether --enable-gss or --disable-gss was given.
2116 if test "${enable_gss+set}" = set; then
2117   enableval="$enable_gss"
2118   enable_gss=$enableval
2119 else
2120   enable_gss=yes
2121 fi;
2122         if test "$enable_gss" = yes; then
2123
2124 cat >>confdefs.h <<\_ACEOF
2125 #define GSS_SUPPORTED 1
2126 _ACEOF
2127
2128                 GSSD=gssd
2129                 SVCGSSD=svcgssd
2130         else
2131                 enable_gss=
2132                 GSSD=
2133                 SVCGSSD=
2134         fi
2135
2136
2137
2138
2139
2140 if test "$enable_gss" = "yes"; then
2141   CONFIG_GSS_TRUE=
2142   CONFIG_GSS_FALSE='#'
2143 else
2144   CONFIG_GSS_TRUE='#'
2145   CONFIG_GSS_FALSE=
2146 fi
2147
2148 # Check whether --enable-kprefix or --disable-kprefix was given.
2149 if test "${enable_kprefix+set}" = set; then
2150   enableval="$enable_kprefix"
2151   test "$enableval" = "yes" && kprefix=k
2152 else
2153   kprefix=
2154 fi;
2155
2156 # Check whether --enable-secure-statd or --disable-secure-statd was given.
2157 if test "${enable_secure_statd+set}" = set; then
2158   enableval="$enable_secure_statd"
2159   test "$enableval" = "yes" && secure_statd=yes
2160 else
2161   secure_statd=no
2162 fi;
2163         if test "$secure_statd" = yes; then
2164
2165 cat >>confdefs.h <<\_ACEOF
2166 #define RESTRICTED_STATD 1
2167 _ACEOF
2168
2169         fi
2170
2171 # Check whether --enable-rquotad or --disable-rquotad was given.
2172 if test "${enable_rquotad+set}" = set; then
2173   enableval="$enable_rquotad"
2174   enable_rquotad=$enableval
2175 else
2176   enable_rquotad=yes
2177 fi;
2178         if test "$enable_rquotad" = yes; then
2179                 RQUOTAD=rquotad
2180         else
2181                 RQUOTAD=
2182         fi
2183
2184
2185 if test "$enable_rquotad" = "yes"; then
2186   CONFIG_RQUOTAD_TRUE=
2187   CONFIG_RQUOTAD_FALSE='#'
2188 else
2189   CONFIG_RQUOTAD_TRUE='#'
2190   CONFIG_RQUOTAD_FALSE=
2191 fi
2192
2193
2194 # Check whether user wants TCP wrappers support
2195 DEPDIR="${am__leading_dot}deps"
2196
2197           ac_config_commands="$ac_config_commands depfiles"
2198
2199
2200 am_make=${MAKE-make}
2201 cat > confinc << 'END'
2202 am__doit:
2203         @echo done
2204 .PHONY: am__doit
2205 END
2206 # If we don't find an include directive, just comment out the code.
2207 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2208 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2209 am__include="#"
2210 am__quote=
2211 _am_result=none
2212 # First try GNU make style include.
2213 echo "include confinc" > confmf
2214 # We grep out `Entering directory' and `Leaving directory'
2215 # messages which can occur if `w' ends up in MAKEFLAGS.
2216 # In particular we don't look at `^make:' because GNU make might
2217 # be invoked under some other name (usually "gmake"), in which
2218 # case it prints its new name instead of `make'.
2219 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2220    am__include=include
2221    am__quote=
2222    _am_result=GNU
2223 fi
2224 # Now try BSD make style include.
2225 if test "$am__include" = "#"; then
2226    echo '.include "confinc"' > confmf
2227    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2228       am__include=.include
2229       am__quote="\""
2230       _am_result=BSD
2231    fi
2232 fi
2233
2234
2235 echo "$as_me:$LINENO: result: $_am_result" >&5
2236 echo "${ECHO_T}$_am_result" >&6
2237 rm -f confinc confmf
2238
2239 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2240 if test "${enable_dependency_tracking+set}" = set; then
2241   enableval="$enable_dependency_tracking"
2242
2243 fi;
2244 if test "x$enable_dependency_tracking" != xno; then
2245   am_depcomp="$ac_aux_dir/depcomp"
2246   AMDEPBACKSLASH='\'
2247 fi
2248
2249
2250 if test "x$enable_dependency_tracking" != xno; then
2251   AMDEP_TRUE=
2252   AMDEP_FALSE='#'
2253 else
2254   AMDEP_TRUE='#'
2255   AMDEP_FALSE=
2256 fi
2257
2258
2259
2260 ac_ext=c
2261 ac_cpp='$CPP $CPPFLAGS'
2262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2265 if test -n "$ac_tool_prefix"; then
2266   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2267 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2268 echo "$as_me:$LINENO: checking for $ac_word" >&5
2269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2270 if test "${ac_cv_prog_CC+set}" = set; then
2271   echo $ECHO_N "(cached) $ECHO_C" >&6
2272 else
2273   if test -n "$CC"; then
2274   ac_cv_prog_CC="$CC" # Let the user override the test.
2275 else
2276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2277 for as_dir in $PATH
2278 do
2279   IFS=$as_save_IFS
2280   test -z "$as_dir" && as_dir=.
2281   for ac_exec_ext in '' $ac_executable_extensions; do
2282   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2283     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2284     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2285     break 2
2286   fi
2287 done
2288 done
2289
2290 fi
2291 fi
2292 CC=$ac_cv_prog_CC
2293 if test -n "$CC"; then
2294   echo "$as_me:$LINENO: result: $CC" >&5
2295 echo "${ECHO_T}$CC" >&6
2296 else
2297   echo "$as_me:$LINENO: result: no" >&5
2298 echo "${ECHO_T}no" >&6
2299 fi
2300
2301 fi
2302 if test -z "$ac_cv_prog_CC"; then
2303   ac_ct_CC=$CC
2304   # Extract the first word of "gcc", so it can be a program name with args.
2305 set dummy gcc; ac_word=$2
2306 echo "$as_me:$LINENO: checking for $ac_word" >&5
2307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2308 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2309   echo $ECHO_N "(cached) $ECHO_C" >&6
2310 else
2311   if test -n "$ac_ct_CC"; then
2312   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2313 else
2314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2315 for as_dir in $PATH
2316 do
2317   IFS=$as_save_IFS
2318   test -z "$as_dir" && as_dir=.
2319   for ac_exec_ext in '' $ac_executable_extensions; do
2320   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2321     ac_cv_prog_ac_ct_CC="gcc"
2322     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2323     break 2
2324   fi
2325 done
2326 done
2327
2328 fi
2329 fi
2330 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2331 if test -n "$ac_ct_CC"; then
2332   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2333 echo "${ECHO_T}$ac_ct_CC" >&6
2334 else
2335   echo "$as_me:$LINENO: result: no" >&5
2336 echo "${ECHO_T}no" >&6
2337 fi
2338
2339   CC=$ac_ct_CC
2340 else
2341   CC="$ac_cv_prog_CC"
2342 fi
2343
2344 if test -z "$CC"; then
2345   if test -n "$ac_tool_prefix"; then
2346   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2347 set dummy ${ac_tool_prefix}cc; ac_word=$2
2348 echo "$as_me:$LINENO: checking for $ac_word" >&5
2349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2350 if test "${ac_cv_prog_CC+set}" = set; then
2351   echo $ECHO_N "(cached) $ECHO_C" >&6
2352 else
2353   if test -n "$CC"; then
2354   ac_cv_prog_CC="$CC" # Let the user override the test.
2355 else
2356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2357 for as_dir in $PATH
2358 do
2359   IFS=$as_save_IFS
2360   test -z "$as_dir" && as_dir=.
2361   for ac_exec_ext in '' $ac_executable_extensions; do
2362   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2363     ac_cv_prog_CC="${ac_tool_prefix}cc"
2364     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2365     break 2
2366   fi
2367 done
2368 done
2369
2370 fi
2371 fi
2372 CC=$ac_cv_prog_CC
2373 if test -n "$CC"; then
2374   echo "$as_me:$LINENO: result: $CC" >&5
2375 echo "${ECHO_T}$CC" >&6
2376 else
2377   echo "$as_me:$LINENO: result: no" >&5
2378 echo "${ECHO_T}no" >&6
2379 fi
2380
2381 fi
2382 if test -z "$ac_cv_prog_CC"; then
2383   ac_ct_CC=$CC
2384   # Extract the first word of "cc", so it can be a program name with args.
2385 set dummy cc; ac_word=$2
2386 echo "$as_me:$LINENO: checking for $ac_word" >&5
2387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2388 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2389   echo $ECHO_N "(cached) $ECHO_C" >&6
2390 else
2391   if test -n "$ac_ct_CC"; then
2392   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2393 else
2394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2395 for as_dir in $PATH
2396 do
2397   IFS=$as_save_IFS
2398   test -z "$as_dir" && as_dir=.
2399   for ac_exec_ext in '' $ac_executable_extensions; do
2400   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2401     ac_cv_prog_ac_ct_CC="cc"
2402     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2403     break 2
2404   fi
2405 done
2406 done
2407
2408 fi
2409 fi
2410 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2411 if test -n "$ac_ct_CC"; then
2412   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2413 echo "${ECHO_T}$ac_ct_CC" >&6
2414 else
2415   echo "$as_me:$LINENO: result: no" >&5
2416 echo "${ECHO_T}no" >&6
2417 fi
2418
2419   CC=$ac_ct_CC
2420 else
2421   CC="$ac_cv_prog_CC"
2422 fi
2423
2424 fi
2425 if test -z "$CC"; then
2426   # Extract the first word of "cc", so it can be a program name with args.
2427 set dummy cc; ac_word=$2
2428 echo "$as_me:$LINENO: checking for $ac_word" >&5
2429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2430 if test "${ac_cv_prog_CC+set}" = set; then
2431   echo $ECHO_N "(cached) $ECHO_C" >&6
2432 else
2433   if test -n "$CC"; then
2434   ac_cv_prog_CC="$CC" # Let the user override the test.
2435 else
2436   ac_prog_rejected=no
2437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2438 for as_dir in $PATH
2439 do
2440   IFS=$as_save_IFS
2441   test -z "$as_dir" && as_dir=.
2442   for ac_exec_ext in '' $ac_executable_extensions; do
2443   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2444     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2445        ac_prog_rejected=yes
2446        continue
2447      fi
2448     ac_cv_prog_CC="cc"
2449     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2450     break 2
2451   fi
2452 done
2453 done
2454
2455 if test $ac_prog_rejected = yes; then
2456   # We found a bogon in the path, so make sure we never use it.
2457   set dummy $ac_cv_prog_CC
2458   shift
2459   if test $# != 0; then
2460     # We chose a different compiler from the bogus one.
2461     # However, it has the same basename, so the bogon will be chosen
2462     # first if we set CC to just the basename; use the full file name.
2463     shift
2464     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2465   fi
2466 fi
2467 fi
2468 fi
2469 CC=$ac_cv_prog_CC
2470 if test -n "$CC"; then
2471   echo "$as_me:$LINENO: result: $CC" >&5
2472 echo "${ECHO_T}$CC" >&6
2473 else
2474   echo "$as_me:$LINENO: result: no" >&5
2475 echo "${ECHO_T}no" >&6
2476 fi
2477
2478 fi
2479 if test -z "$CC"; then
2480   if test -n "$ac_tool_prefix"; then
2481   for ac_prog in cl
2482   do
2483     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2484 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2485 echo "$as_me:$LINENO: checking for $ac_word" >&5
2486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2487 if test "${ac_cv_prog_CC+set}" = set; then
2488   echo $ECHO_N "(cached) $ECHO_C" >&6
2489 else
2490   if test -n "$CC"; then
2491   ac_cv_prog_CC="$CC" # Let the user override the test.
2492 else
2493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494 for as_dir in $PATH
2495 do
2496   IFS=$as_save_IFS
2497   test -z "$as_dir" && as_dir=.
2498   for ac_exec_ext in '' $ac_executable_extensions; do
2499   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2500     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2501     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2502     break 2
2503   fi
2504 done
2505 done
2506
2507 fi
2508 fi
2509 CC=$ac_cv_prog_CC
2510 if test -n "$CC"; then
2511   echo "$as_me:$LINENO: result: $CC" >&5
2512 echo "${ECHO_T}$CC" >&6
2513 else
2514   echo "$as_me:$LINENO: result: no" >&5
2515 echo "${ECHO_T}no" >&6
2516 fi
2517
2518     test -n "$CC" && break
2519   done
2520 fi
2521 if test -z "$CC"; then
2522   ac_ct_CC=$CC
2523   for ac_prog in cl
2524 do
2525   # Extract the first word of "$ac_prog", so it can be a program name with args.
2526 set dummy $ac_prog; ac_word=$2
2527 echo "$as_me:$LINENO: checking for $ac_word" >&5
2528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2529 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2530   echo $ECHO_N "(cached) $ECHO_C" >&6
2531 else
2532   if test -n "$ac_ct_CC"; then
2533   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2534 else
2535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536 for as_dir in $PATH
2537 do
2538   IFS=$as_save_IFS
2539   test -z "$as_dir" && as_dir=.
2540   for ac_exec_ext in '' $ac_executable_extensions; do
2541   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2542     ac_cv_prog_ac_ct_CC="$ac_prog"
2543     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2544     break 2
2545   fi
2546 done
2547 done
2548
2549 fi
2550 fi
2551 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2552 if test -n "$ac_ct_CC"; then
2553   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2554 echo "${ECHO_T}$ac_ct_CC" >&6
2555 else
2556   echo "$as_me:$LINENO: result: no" >&5
2557 echo "${ECHO_T}no" >&6
2558 fi
2559
2560   test -n "$ac_ct_CC" && break
2561 done
2562
2563   CC=$ac_ct_CC
2564 fi
2565
2566 fi
2567
2568
2569 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2570 See \`config.log' for more details." >&5
2571 echo "$as_me: error: no acceptable C compiler found in \$PATH
2572 See \`config.log' for more details." >&2;}
2573    { (exit 1); exit 1; }; }
2574
2575 # Provide some information about the compiler.
2576 echo "$as_me:$LINENO:" \
2577      "checking for C compiler version" >&5
2578 ac_compiler=`set X $ac_compile; echo $2`
2579 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2580   (eval $ac_compiler --version </dev/null >&5) 2>&5
2581   ac_status=$?
2582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583   (exit $ac_status); }
2584 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2585   (eval $ac_compiler -v </dev/null >&5) 2>&5
2586   ac_status=$?
2587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588   (exit $ac_status); }
2589 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2590   (eval $ac_compiler -V </dev/null >&5) 2>&5
2591   ac_status=$?
2592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593   (exit $ac_status); }
2594
2595 cat >conftest.$ac_ext <<_ACEOF
2596 /* confdefs.h.  */
2597 _ACEOF
2598 cat confdefs.h >>conftest.$ac_ext
2599 cat >>conftest.$ac_ext <<_ACEOF
2600 /* end confdefs.h.  */
2601
2602 int
2603 main ()
2604 {
2605
2606   ;
2607   return 0;
2608 }
2609 _ACEOF
2610 ac_clean_files_save=$ac_clean_files
2611 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2612 # Try to create an executable without -o first, disregard a.out.
2613 # It will help us diagnose broken compilers, and finding out an intuition
2614 # of exeext.
2615 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2616 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2617 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2618 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2619   (eval $ac_link_default) 2>&5
2620   ac_status=$?
2621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622   (exit $ac_status); }; then
2623   # Find the output, starting from the most likely.  This scheme is
2624 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2625 # resort.
2626
2627 # Be careful to initialize this variable, since it used to be cached.
2628 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2629 ac_cv_exeext=
2630 # b.out is created by i960 compilers.
2631 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2632 do
2633   test -f "$ac_file" || continue
2634   case $ac_file in
2635     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2636         ;;
2637     conftest.$ac_ext )
2638         # This is the source file.
2639         ;;
2640     [ab].out )
2641         # We found the default executable, but exeext='' is most
2642         # certainly right.
2643         break;;
2644     *.* )
2645         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2646         # FIXME: I believe we export ac_cv_exeext for Libtool,
2647         # but it would be cool to find out if it's true.  Does anybody
2648         # maintain Libtool? --akim.
2649         export ac_cv_exeext
2650         break;;
2651     * )
2652         break;;
2653   esac
2654 done
2655 else
2656   echo "$as_me: failed program was:" >&5
2657 sed 's/^/| /' conftest.$ac_ext >&5
2658
2659 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2660 See \`config.log' for more details." >&5
2661 echo "$as_me: error: C compiler cannot create executables
2662 See \`config.log' for more details." >&2;}
2663    { (exit 77); exit 77; }; }
2664 fi
2665
2666 ac_exeext=$ac_cv_exeext
2667 echo "$as_me:$LINENO: result: $ac_file" >&5
2668 echo "${ECHO_T}$ac_file" >&6
2669
2670 # Check the compiler produces executables we can run.  If not, either
2671 # the compiler is broken, or we cross compile.
2672 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2673 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2674 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2675 # If not cross compiling, check that we can run a simple program.
2676 if test "$cross_compiling" != yes; then
2677   if { ac_try='./$ac_file'
2678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2679   (eval $ac_try) 2>&5
2680   ac_status=$?
2681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682   (exit $ac_status); }; }; then
2683     cross_compiling=no
2684   else
2685     if test "$cross_compiling" = maybe; then
2686         cross_compiling=yes
2687     else
2688         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2689 If you meant to cross compile, use \`--host'.
2690 See \`config.log' for more details." >&5
2691 echo "$as_me: error: cannot run C compiled programs.
2692 If you meant to cross compile, use \`--host'.
2693 See \`config.log' for more details." >&2;}
2694    { (exit 1); exit 1; }; }
2695     fi
2696   fi
2697 fi
2698 echo "$as_me:$LINENO: result: yes" >&5
2699 echo "${ECHO_T}yes" >&6
2700
2701 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2702 ac_clean_files=$ac_clean_files_save
2703 # Check the compiler produces executables we can run.  If not, either
2704 # the compiler is broken, or we cross compile.
2705 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2706 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2707 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2708 echo "${ECHO_T}$cross_compiling" >&6
2709
2710 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2711 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2713   (eval $ac_link) 2>&5
2714   ac_status=$?
2715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716   (exit $ac_status); }; then
2717   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2718 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2719 # work properly (i.e., refer to `conftest.exe'), while it won't with
2720 # `rm'.
2721 for ac_file in conftest.exe conftest conftest.*; do
2722   test -f "$ac_file" || continue
2723   case $ac_file in
2724     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2725     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2726           export ac_cv_exeext
2727           break;;
2728     * ) break;;
2729   esac
2730 done
2731 else
2732   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2733 See \`config.log' for more details." >&5
2734 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2735 See \`config.log' for more details." >&2;}
2736    { (exit 1); exit 1; }; }
2737 fi
2738
2739 rm -f conftest$ac_cv_exeext
2740 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2741 echo "${ECHO_T}$ac_cv_exeext" >&6
2742
2743 rm -f conftest.$ac_ext
2744 EXEEXT=$ac_cv_exeext
2745 ac_exeext=$EXEEXT
2746 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2747 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2748 if test "${ac_cv_objext+set}" = set; then
2749   echo $ECHO_N "(cached) $ECHO_C" >&6
2750 else
2751   cat >conftest.$ac_ext <<_ACEOF
2752 /* confdefs.h.  */
2753 _ACEOF
2754 cat confdefs.h >>conftest.$ac_ext
2755 cat >>conftest.$ac_ext <<_ACEOF
2756 /* end confdefs.h.  */
2757
2758 int
2759 main ()
2760 {
2761
2762   ;
2763   return 0;
2764 }
2765 _ACEOF
2766 rm -f conftest.o conftest.obj
2767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2768   (eval $ac_compile) 2>&5
2769   ac_status=$?
2770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771   (exit $ac_status); }; then
2772   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2773   case $ac_file in
2774     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2775     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2776        break;;
2777   esac
2778 done
2779 else
2780   echo "$as_me: failed program was:" >&5
2781 sed 's/^/| /' conftest.$ac_ext >&5
2782
2783 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2784 See \`config.log' for more details." >&5
2785 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2786 See \`config.log' for more details." >&2;}
2787    { (exit 1); exit 1; }; }
2788 fi
2789
2790 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2791 fi
2792 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2793 echo "${ECHO_T}$ac_cv_objext" >&6
2794 OBJEXT=$ac_cv_objext
2795 ac_objext=$OBJEXT
2796 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2797 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2798 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2799   echo $ECHO_N "(cached) $ECHO_C" >&6
2800 else
2801   cat >conftest.$ac_ext <<_ACEOF
2802 /* confdefs.h.  */
2803 _ACEOF
2804 cat confdefs.h >>conftest.$ac_ext
2805 cat >>conftest.$ac_ext <<_ACEOF
2806 /* end confdefs.h.  */
2807
2808 int
2809 main ()
2810 {
2811 #ifndef __GNUC__
2812        choke me
2813 #endif
2814
2815   ;
2816   return 0;
2817 }
2818 _ACEOF
2819 rm -f conftest.$ac_objext
2820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2821   (eval $ac_compile) 2>conftest.er1
2822   ac_status=$?
2823   grep -v '^ *+' conftest.er1 >conftest.err
2824   rm -f conftest.er1
2825   cat conftest.err >&5
2826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827   (exit $ac_status); } &&
2828          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2830   (eval $ac_try) 2>&5
2831   ac_status=$?
2832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833   (exit $ac_status); }; } &&
2834          { ac_try='test -s conftest.$ac_objext'
2835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2836   (eval $ac_try) 2>&5
2837   ac_status=$?
2838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839   (exit $ac_status); }; }; then
2840   ac_compiler_gnu=yes
2841 else
2842   echo "$as_me: failed program was:" >&5
2843 sed 's/^/| /' conftest.$ac_ext >&5
2844
2845 ac_compiler_gnu=no
2846 fi
2847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2848 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2849
2850 fi
2851 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2852 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2853 GCC=`test $ac_compiler_gnu = yes && echo yes`
2854 ac_test_CFLAGS=${CFLAGS+set}
2855 ac_save_CFLAGS=$CFLAGS
2856 CFLAGS="-g"
2857 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2858 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2859 if test "${ac_cv_prog_cc_g+set}" = set; then
2860   echo $ECHO_N "(cached) $ECHO_C" >&6
2861 else
2862   cat >conftest.$ac_ext <<_ACEOF
2863 /* confdefs.h.  */
2864 _ACEOF
2865 cat confdefs.h >>conftest.$ac_ext
2866 cat >>conftest.$ac_ext <<_ACEOF
2867 /* end confdefs.h.  */
2868
2869 int
2870 main ()
2871 {
2872
2873   ;
2874   return 0;
2875 }
2876 _ACEOF
2877 rm -f conftest.$ac_objext
2878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2879   (eval $ac_compile) 2>conftest.er1
2880   ac_status=$?
2881   grep -v '^ *+' conftest.er1 >conftest.err
2882   rm -f conftest.er1
2883   cat conftest.err >&5
2884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885   (exit $ac_status); } &&
2886          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
2892          { ac_try='test -s conftest.$ac_objext'
2893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2894   (eval $ac_try) 2>&5
2895   ac_status=$?
2896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897   (exit $ac_status); }; }; then
2898   ac_cv_prog_cc_g=yes
2899 else
2900   echo "$as_me: failed program was:" >&5
2901 sed 's/^/| /' conftest.$ac_ext >&5
2902
2903 ac_cv_prog_cc_g=no
2904 fi
2905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2906 fi
2907 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2908 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2909 if test "$ac_test_CFLAGS" = set; then
2910   CFLAGS=$ac_save_CFLAGS
2911 elif test $ac_cv_prog_cc_g = yes; then
2912   if test "$GCC" = yes; then
2913     CFLAGS="-g -O2"
2914   else
2915     CFLAGS="-g"
2916   fi
2917 else
2918   if test "$GCC" = yes; then
2919     CFLAGS="-O2"
2920   else
2921     CFLAGS=
2922   fi
2923 fi
2924 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2925 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2926 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2927   echo $ECHO_N "(cached) $ECHO_C" >&6
2928 else
2929   ac_cv_prog_cc_stdc=no
2930 ac_save_CC=$CC
2931 cat >conftest.$ac_ext <<_ACEOF
2932 /* confdefs.h.  */
2933 _ACEOF
2934 cat confdefs.h >>conftest.$ac_ext
2935 cat >>conftest.$ac_ext <<_ACEOF
2936 /* end confdefs.h.  */
2937 #include <stdarg.h>
2938 #include <stdio.h>
2939 #include <sys/types.h>
2940 #include <sys/stat.h>
2941 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2942 struct buf { int x; };
2943 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2944 static char *e (p, i)
2945      char **p;
2946      int i;
2947 {
2948   return p[i];
2949 }
2950 static char *f (char * (*g) (char **, int), char **p, ...)
2951 {
2952   char *s;
2953   va_list v;
2954   va_start (v,p);
2955   s = g (p, va_arg (v,int));
2956   va_end (v);
2957   return s;
2958 }
2959
2960 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2961    function prototypes and stuff, but not '\xHH' hex character constants.
2962    These don't provoke an error unfortunately, instead are silently treated
2963    as 'x'.  The following induces an error, until -std1 is added to get
2964    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2965    array size at least.  It's necessary to write '\x00'==0 to get something
2966    that's true only with -std1.  */
2967 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2968
2969 int test (int i, double x);
2970 struct s1 {int (*f) (int a);};
2971 struct s2 {int (*f) (double a);};
2972 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2973 int argc;
2974 char **argv;
2975 int
2976 main ()
2977 {
2978 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2979   ;
2980   return 0;
2981 }
2982 _ACEOF
2983 # Don't try gcc -ansi; that turns off useful extensions and
2984 # breaks some systems' header files.
2985 # AIX                   -qlanglvl=ansi
2986 # Ultrix and OSF/1      -std1
2987 # HP-UX 10.20 and later -Ae
2988 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2989 # SVR4                  -Xc -D__EXTENSIONS__
2990 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2991 do
2992   CC="$ac_save_CC $ac_arg"
2993   rm -f conftest.$ac_objext
2994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2995   (eval $ac_compile) 2>conftest.er1
2996   ac_status=$?
2997   grep -v '^ *+' conftest.er1 >conftest.err
2998   rm -f conftest.er1
2999   cat conftest.err >&5
3000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001   (exit $ac_status); } &&
3002          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3004   (eval $ac_try) 2>&5
3005   ac_status=$?
3006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007   (exit $ac_status); }; } &&
3008          { ac_try='test -s conftest.$ac_objext'
3009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3010   (eval $ac_try) 2>&5
3011   ac_status=$?
3012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013   (exit $ac_status); }; }; then
3014   ac_cv_prog_cc_stdc=$ac_arg
3015 break
3016 else
3017   echo "$as_me: failed program was:" >&5
3018 sed 's/^/| /' conftest.$ac_ext >&5
3019
3020 fi
3021 rm -f conftest.err conftest.$ac_objext
3022 done
3023 rm -f conftest.$ac_ext conftest.$ac_objext
3024 CC=$ac_save_CC
3025
3026 fi
3027
3028 case "x$ac_cv_prog_cc_stdc" in
3029   x|xno)
3030     echo "$as_me:$LINENO: result: none needed" >&5
3031 echo "${ECHO_T}none needed" >&6 ;;
3032   *)
3033     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3034 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3035     CC="$CC $ac_cv_prog_cc_stdc" ;;
3036 esac
3037
3038 # Some people use a C++ compiler to compile C.  Since we use `exit',
3039 # in C++ we need to declare it.  In case someone uses the same compiler
3040 # for both compiling C and C++ we need to have the C++ compiler decide
3041 # the declaration of exit, since it's the most demanding environment.
3042 cat >conftest.$ac_ext <<_ACEOF
3043 #ifndef __cplusplus
3044   choke me
3045 #endif
3046 _ACEOF
3047 rm -f conftest.$ac_objext
3048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3049   (eval $ac_compile) 2>conftest.er1
3050   ac_status=$?
3051   grep -v '^ *+' conftest.er1 >conftest.err
3052   rm -f conftest.er1
3053   cat conftest.err >&5
3054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055   (exit $ac_status); } &&
3056          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3058   (eval $ac_try) 2>&5
3059   ac_status=$?
3060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061   (exit $ac_status); }; } &&
3062          { ac_try='test -s conftest.$ac_objext'
3063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3064   (eval $ac_try) 2>&5
3065   ac_status=$?
3066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067   (exit $ac_status); }; }; then
3068   for ac_declaration in \
3069    '' \
3070    'extern "C" void std::exit (int) throw (); using std::exit;' \
3071    'extern "C" void std::exit (int); using std::exit;' \
3072    'extern "C" void exit (int) throw ();' \
3073    'extern "C" void exit (int);' \
3074    'void exit (int);'
3075 do
3076   cat >conftest.$ac_ext <<_ACEOF
3077 /* confdefs.h.  */
3078 _ACEOF
3079 cat confdefs.h >>conftest.$ac_ext
3080 cat >>conftest.$ac_ext <<_ACEOF
3081 /* end confdefs.h.  */
3082 $ac_declaration
3083 #include <stdlib.h>
3084 int
3085 main ()
3086 {
3087 exit (42);
3088   ;
3089   return 0;
3090 }
3091 _ACEOF
3092 rm -f conftest.$ac_objext
3093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3094   (eval $ac_compile) 2>conftest.er1
3095   ac_status=$?
3096   grep -v '^ *+' conftest.er1 >conftest.err
3097   rm -f conftest.er1
3098   cat conftest.err >&5
3099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100   (exit $ac_status); } &&
3101          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3103   (eval $ac_try) 2>&5
3104   ac_status=$?
3105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106   (exit $ac_status); }; } &&
3107          { ac_try='test -s conftest.$ac_objext'
3108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3109   (eval $ac_try) 2>&5
3110   ac_status=$?
3111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112   (exit $ac_status); }; }; then
3113   :
3114 else
3115   echo "$as_me: failed program was:" >&5
3116 sed 's/^/| /' conftest.$ac_ext >&5
3117
3118 continue
3119 fi
3120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3121   cat >conftest.$ac_ext <<_ACEOF
3122 /* confdefs.h.  */
3123 _ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h.  */
3127 $ac_declaration
3128 int
3129 main ()
3130 {
3131 exit (42);
3132   ;
3133   return 0;
3134 }
3135 _ACEOF
3136 rm -f conftest.$ac_objext
3137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3138   (eval $ac_compile) 2>conftest.er1
3139   ac_status=$?
3140   grep -v '^ *+' conftest.er1 >conftest.err
3141   rm -f conftest.er1
3142   cat conftest.err >&5
3143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144   (exit $ac_status); } &&
3145          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3147   (eval $ac_try) 2>&5
3148   ac_status=$?
3149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150   (exit $ac_status); }; } &&
3151          { ac_try='test -s conftest.$ac_objext'
3152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3153   (eval $ac_try) 2>&5
3154   ac_status=$?
3155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156   (exit $ac_status); }; }; then
3157   break
3158 else
3159   echo "$as_me: failed program was:" >&5
3160 sed 's/^/| /' conftest.$ac_ext >&5
3161
3162 fi
3163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3164 done
3165 rm -f conftest*
3166 if test -n "$ac_declaration"; then
3167   echo '#ifdef __cplusplus' >>confdefs.h
3168   echo $ac_declaration      >>confdefs.h
3169   echo '#endif'             >>confdefs.h
3170 fi
3171
3172 else
3173   echo "$as_me: failed program was:" >&5
3174 sed 's/^/| /' conftest.$ac_ext >&5
3175
3176 fi
3177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3178 ac_ext=c
3179 ac_cpp='$CPP $CPPFLAGS'
3180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3183
3184 depcc="$CC"   am_compiler_list=
3185
3186 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3187 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3188 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3189   echo $ECHO_N "(cached) $ECHO_C" >&6
3190 else
3191   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3192   # We make a subdir and do the tests there.  Otherwise we can end up
3193   # making bogus files that we don't know about and never remove.  For
3194   # instance it was reported that on HP-UX the gcc test will end up
3195   # making a dummy file named `D' -- because `-MD' means `put the output
3196   # in D'.
3197   mkdir conftest.dir
3198   # Copy depcomp to subdir because otherwise we won't find it if we're
3199   # using a relative directory.
3200   cp "$am_depcomp" conftest.dir
3201   cd conftest.dir
3202   # We will build objects and dependencies in a subdirectory because
3203   # it helps to detect inapplicable dependency modes.  For instance
3204   # both Tru64's cc and ICC support -MD to output dependencies as a
3205   # side effect of compilation, but ICC will put the dependencies in
3206   # the current directory while Tru64 will put them in the object
3207   # directory.
3208   mkdir sub
3209
3210   am_cv_CC_dependencies_compiler_type=none
3211   if test "$am_compiler_list" = ""; then
3212      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3213   fi
3214   for depmode in $am_compiler_list; do
3215     # Setup a source with many dependencies, because some compilers
3216     # like to wrap large dependency lists on column 80 (with \), and
3217     # we should not choose a depcomp mode which is confused by this.
3218     #
3219     # We need to recreate these files for each test, as the compiler may
3220     # overwrite some of them when testing with obscure command lines.
3221     # This happens at least with the AIX C compiler.
3222     : > sub/conftest.c
3223     for i in 1 2 3 4 5 6; do
3224       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3225       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3226       # Solaris 8's {/usr,}/bin/sh.
3227       touch sub/conftst$i.h
3228     done
3229     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3230
3231     case $depmode in
3232     nosideeffect)
3233       # after this tag, mechanisms are not by side-effect, so they'll
3234       # only be used when explicitly requested
3235       if test "x$enable_dependency_tracking" = xyes; then
3236         continue
3237       else
3238         break
3239       fi
3240       ;;
3241     none) break ;;
3242     esac
3243     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3244     # mode.  It turns out that the SunPro C++ compiler does not properly
3245     # handle `-M -o', and we need to detect this.
3246     if depmode=$depmode \
3247        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3248        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3249        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3250          >/dev/null 2>conftest.err &&
3251        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3252        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3253        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3254       # icc doesn't choke on unknown options, it will just issue warnings
3255       # or remarks (even with -Werror).  So we grep stderr for any message
3256       # that says an option was ignored or not supported.
3257       # When given -MP, icc 7.0 and 7.1 complain thusly:
3258       #   icc: Command line warning: ignoring option '-M'; no argument required
3259       # The diagnosis changed in icc 8.0:
3260       #   icc: Command line remark: option '-MP' not supported
3261       if (grep 'ignoring option' conftest.err ||
3262           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3263         am_cv_CC_dependencies_compiler_type=$depmode
3264         break
3265       fi
3266     fi
3267   done
3268
3269   cd ..
3270   rm -rf conftest.dir
3271 else
3272   am_cv_CC_dependencies_compiler_type=none
3273 fi
3274
3275 fi
3276 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3277 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3278 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3279
3280
3281
3282 if
3283   test "x$enable_dependency_tracking" != xno \
3284   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3285   am__fastdepCC_TRUE=
3286   am__fastdepCC_FALSE='#'
3287 else
3288   am__fastdepCC_TRUE='#'
3289   am__fastdepCC_FALSE=
3290 fi
3291
3292
3293
3294
3295   TCPW_MSG="no"
3296
3297 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
3298 if test "${with_tcp_wrappers+set}" = set; then
3299   withval="$with_tcp_wrappers"
3300
3301         if test "x$withval" != "xno" ; then
3302             saved_LIBS="$LIBS"
3303             saved_LDFLAGS="$LDFLAGS"
3304             saved_CPPFLAGS="$CPPFLAGS"
3305             if test -n "${withval}" -a "${withval}" != "yes"; then
3306                 if test -d "${withval}/lib"; then
3307                     if test -n "${need_dash_r}"; then
3308                         LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
3309                     else
3310                         LDFLAGS="-L${withval}/lib ${LDFLAGS}"
3311                     fi
3312                 else
3313                     if test -n "${need_dash_r}"; then
3314                         LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
3315                     else
3316                         LDFLAGS="-L${withval} ${LDFLAGS}"
3317                     fi
3318                 fi
3319                 if test -d "${withval}/include"; then
3320                     CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
3321                 else
3322                     CPPFLAGS="-I${withval} ${CPPFLAGS}"
3323                 fi
3324             fi
3325             LIBWRAP="-lwrap"
3326             LIBS="$LIBWRAP $LIBS"
3327             echo "$as_me:$LINENO: checking for libwrap" >&5
3328 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
3329             cat >conftest.$ac_ext <<_ACEOF
3330 /* confdefs.h.  */
3331 _ACEOF
3332 cat confdefs.h >>conftest.$ac_ext
3333 cat >>conftest.$ac_ext <<_ACEOF
3334 /* end confdefs.h.  */
3335
3336                 #include <tcpd.h>
3337                 int deny_severity = 0, allow_severity = 0;
3338
3339 int
3340 main ()
3341 {
3342 hosts_access(0);
3343   ;
3344   return 0;
3345 }
3346 _ACEOF
3347 rm -f conftest.$ac_objext conftest$ac_exeext
3348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3349   (eval $ac_link) 2>conftest.er1
3350   ac_status=$?
3351   grep -v '^ *+' conftest.er1 >conftest.err
3352   rm -f conftest.er1
3353   cat conftest.err >&5
3354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355   (exit $ac_status); } &&
3356          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3358   (eval $ac_try) 2>&5
3359   ac_status=$?
3360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361   (exit $ac_status); }; } &&
3362          { ac_try='test -s conftest$ac_exeext'
3363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3364   (eval $ac_try) 2>&5
3365   ac_status=$?
3366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367   (exit $ac_status); }; }; then
3368
3369                 echo "$as_me:$LINENO: result: yes" >&5
3370 echo "${ECHO_T}yes" >&6
3371
3372
3373 cat >>confdefs.h <<\_ACEOF
3374 #define LIBWRAP 1
3375 _ACEOF
3376
3377                 TCPW_MSG="yes"
3378
3379 else
3380   echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.$ac_ext >&5
3382
3383
3384                 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
3385 echo "$as_me: error: *** libwrap missing" >&2;}
3386    { (exit 1); exit 1; }; }
3387
3388
3389 fi
3390 rm -f conftest.err conftest.$ac_objext \
3391       conftest$ac_exeext conftest.$ac_ext
3392             LIBS="$saved_LIBS"
3393         fi
3394
3395
3396 fi;
3397
3398
3399
3400
3401           ac_config_headers="$ac_config_headers support/include/config.h"
3402
3403
3404 # Checks for programs.
3405 ac_ext=cc
3406 ac_cpp='$CXXCPP $CPPFLAGS'
3407 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3408 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3409 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3410 if test -n "$ac_tool_prefix"; then
3411   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3412   do
3413     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3414 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3415 echo "$as_me:$LINENO: checking for $ac_word" >&5
3416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3417 if test "${ac_cv_prog_CXX+set}" = set; then
3418   echo $ECHO_N "(cached) $ECHO_C" >&6
3419 else
3420   if test -n "$CXX"; then
3421   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3422 else
3423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3424 for as_dir in $PATH
3425 do
3426   IFS=$as_save_IFS
3427   test -z "$as_dir" && as_dir=.
3428   for ac_exec_ext in '' $ac_executable_extensions; do
3429   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3430     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3431     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3432     break 2
3433   fi
3434 done
3435 done
3436
3437 fi
3438 fi
3439 CXX=$ac_cv_prog_CXX
3440 if test -n "$CXX"; then
3441   echo "$as_me:$LINENO: result: $CXX" >&5
3442 echo "${ECHO_T}$CXX" >&6
3443 else
3444   echo "$as_me:$LINENO: result: no" >&5
3445 echo "${ECHO_T}no" >&6
3446 fi
3447
3448     test -n "$CXX" && break
3449   done
3450 fi
3451 if test -z "$CXX"; then
3452   ac_ct_CXX=$CXX
3453   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3454 do
3455   # Extract the first word of "$ac_prog", so it can be a program name with args.
3456 set dummy $ac_prog; ac_word=$2
3457 echo "$as_me:$LINENO: checking for $ac_word" >&5
3458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3459 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3460   echo $ECHO_N "(cached) $ECHO_C" >&6
3461 else
3462   if test -n "$ac_ct_CXX"; then
3463   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3464 else
3465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3466 for as_dir in $PATH
3467 do
3468   IFS=$as_save_IFS
3469   test -z "$as_dir" && as_dir=.
3470   for ac_exec_ext in '' $ac_executable_extensions; do
3471   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3472     ac_cv_prog_ac_ct_CXX="$ac_prog"
3473     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3474     break 2
3475   fi
3476 done
3477 done
3478
3479 fi
3480 fi
3481 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3482 if test -n "$ac_ct_CXX"; then
3483   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3484 echo "${ECHO_T}$ac_ct_CXX" >&6
3485 else
3486   echo "$as_me:$LINENO: result: no" >&5
3487 echo "${ECHO_T}no" >&6
3488 fi
3489
3490   test -n "$ac_ct_CXX" && break
3491 done
3492 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3493
3494   CXX=$ac_ct_CXX
3495 fi
3496
3497
3498 # Provide some information about the compiler.
3499 echo "$as_me:$LINENO:" \
3500      "checking for C++ compiler version" >&5
3501 ac_compiler=`set X $ac_compile; echo $2`
3502 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3503   (eval $ac_compiler --version </dev/null >&5) 2>&5
3504   ac_status=$?
3505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506   (exit $ac_status); }
3507 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3508   (eval $ac_compiler -v </dev/null >&5) 2>&5
3509   ac_status=$?
3510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511   (exit $ac_status); }
3512 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3513   (eval $ac_compiler -V </dev/null >&5) 2>&5
3514   ac_status=$?
3515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516   (exit $ac_status); }
3517
3518 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3519 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3520 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3521   echo $ECHO_N "(cached) $ECHO_C" >&6
3522 else
3523   cat >conftest.$ac_ext <<_ACEOF
3524 /* confdefs.h.  */
3525 _ACEOF
3526 cat confdefs.h >>conftest.$ac_ext
3527 cat >>conftest.$ac_ext <<_ACEOF
3528 /* end confdefs.h.  */
3529
3530 int
3531 main ()
3532 {
3533 #ifndef __GNUC__
3534        choke me
3535 #endif
3536
3537   ;
3538   return 0;
3539 }
3540 _ACEOF
3541 rm -f conftest.$ac_objext
3542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3543   (eval $ac_compile) 2>conftest.er1
3544   ac_status=$?
3545   grep -v '^ *+' conftest.er1 >conftest.err
3546   rm -f conftest.er1
3547   cat conftest.err >&5
3548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549   (exit $ac_status); } &&
3550          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3552   (eval $ac_try) 2>&5
3553   ac_status=$?
3554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555   (exit $ac_status); }; } &&
3556          { ac_try='test -s conftest.$ac_objext'
3557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3558   (eval $ac_try) 2>&5
3559   ac_status=$?
3560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561   (exit $ac_status); }; }; then
3562   ac_compiler_gnu=yes
3563 else
3564   echo "$as_me: failed program was:" >&5
3565 sed 's/^/| /' conftest.$ac_ext >&5
3566
3567 ac_compiler_gnu=no
3568 fi
3569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3570 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3571
3572 fi
3573 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3574 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3575 GXX=`test $ac_compiler_gnu = yes && echo yes`
3576 ac_test_CXXFLAGS=${CXXFLAGS+set}
3577 ac_save_CXXFLAGS=$CXXFLAGS
3578 CXXFLAGS="-g"
3579 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3580 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3581 if test "${ac_cv_prog_cxx_g+set}" = set; then
3582   echo $ECHO_N "(cached) $ECHO_C" >&6
3583 else
3584   cat >conftest.$ac_ext <<_ACEOF
3585 /* confdefs.h.  */
3586 _ACEOF
3587 cat confdefs.h >>conftest.$ac_ext
3588 cat >>conftest.$ac_ext <<_ACEOF
3589 /* end confdefs.h.  */
3590
3591 int
3592 main ()
3593 {
3594
3595   ;
3596   return 0;
3597 }
3598 _ACEOF
3599 rm -f conftest.$ac_objext
3600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3601   (eval $ac_compile) 2>conftest.er1
3602   ac_status=$?
3603   grep -v '^ *+' conftest.er1 >conftest.err
3604   rm -f conftest.er1
3605   cat conftest.err >&5
3606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607   (exit $ac_status); } &&
3608          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3610   (eval $ac_try) 2>&5
3611   ac_status=$?
3612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613   (exit $ac_status); }; } &&
3614          { ac_try='test -s conftest.$ac_objext'
3615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3616   (eval $ac_try) 2>&5
3617   ac_status=$?
3618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619   (exit $ac_status); }; }; then
3620   ac_cv_prog_cxx_g=yes
3621 else
3622   echo "$as_me: failed program was:" >&5
3623 sed 's/^/| /' conftest.$ac_ext >&5
3624
3625 ac_cv_prog_cxx_g=no
3626 fi
3627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3628 fi
3629 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3630 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3631 if test "$ac_test_CXXFLAGS" = set; then
3632   CXXFLAGS=$ac_save_CXXFLAGS
3633 elif test $ac_cv_prog_cxx_g = yes; then
3634   if test "$GXX" = yes; then
3635     CXXFLAGS="-g -O2"
3636   else
3637     CXXFLAGS="-g"
3638   fi
3639 else
3640   if test "$GXX" = yes; then
3641     CXXFLAGS="-O2"
3642   else
3643     CXXFLAGS=
3644   fi
3645 fi
3646 for ac_declaration in \
3647    '' \
3648    'extern "C" void std::exit (int) throw (); using std::exit;' \
3649    'extern "C" void std::exit (int); using std::exit;' \
3650    'extern "C" void exit (int) throw ();' \
3651    'extern "C" void exit (int);' \
3652    'void exit (int);'
3653 do
3654   cat >conftest.$ac_ext <<_ACEOF
3655 /* confdefs.h.  */
3656 _ACEOF
3657 cat confdefs.h >>conftest.$ac_ext
3658 cat >>conftest.$ac_ext <<_ACEOF
3659 /* end confdefs.h.  */
3660 $ac_declaration
3661 #include <stdlib.h>
3662 int
3663 main ()
3664 {
3665 exit (42);
3666   ;
3667   return 0;
3668 }
3669 _ACEOF
3670 rm -f conftest.$ac_objext
3671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3672   (eval $ac_compile) 2>conftest.er1
3673   ac_status=$?
3674   grep -v '^ *+' conftest.er1 >conftest.err
3675   rm -f conftest.er1
3676   cat conftest.err >&5
3677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678   (exit $ac_status); } &&
3679          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3681   (eval $ac_try) 2>&5
3682   ac_status=$?
3683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684   (exit $ac_status); }; } &&
3685          { ac_try='test -s conftest.$ac_objext'
3686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3687   (eval $ac_try) 2>&5
3688   ac_status=$?
3689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690   (exit $ac_status); }; }; then
3691   :
3692 else
3693   echo "$as_me: failed program was:" >&5
3694 sed 's/^/| /' conftest.$ac_ext >&5
3695
3696 continue
3697 fi
3698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3699   cat >conftest.$ac_ext <<_ACEOF
3700 /* confdefs.h.  */
3701 _ACEOF
3702 cat confdefs.h >>conftest.$ac_ext
3703 cat >>conftest.$ac_ext <<_ACEOF
3704 /* end confdefs.h.  */
3705 $ac_declaration
3706 int
3707 main ()
3708 {
3709 exit (42);
3710   ;
3711   return 0;
3712 }
3713 _ACEOF
3714 rm -f conftest.$ac_objext
3715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3716   (eval $ac_compile) 2>conftest.er1
3717   ac_status=$?
3718   grep -v '^ *+' conftest.er1 >conftest.err
3719   rm -f conftest.er1
3720   cat conftest.err >&5
3721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722   (exit $ac_status); } &&
3723          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3725   (eval $ac_try) 2>&5
3726   ac_status=$?
3727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728   (exit $ac_status); }; } &&
3729          { ac_try='test -s conftest.$ac_objext'
3730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3731   (eval $ac_try) 2>&5
3732   ac_status=$?
3733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734   (exit $ac_status); }; }; then
3735   break
3736 else
3737   echo "$as_me: failed program was:" >&5
3738 sed 's/^/| /' conftest.$ac_ext >&5
3739
3740 fi
3741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3742 done
3743 rm -f conftest*
3744 if test -n "$ac_declaration"; then
3745   echo '#ifdef __cplusplus' >>confdefs.h
3746   echo $ac_declaration      >>confdefs.h
3747   echo '#endif'             >>confdefs.h
3748 fi
3749
3750 ac_ext=c
3751 ac_cpp='$CPP $CPPFLAGS'
3752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3755
3756 depcc="$CXX"  am_compiler_list=
3757
3758 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3759 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3760 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3761   echo $ECHO_N "(cached) $ECHO_C" >&6
3762 else
3763   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3764   # We make a subdir and do the tests there.  Otherwise we can end up
3765   # making bogus files that we don't know about and never remove.  For
3766   # instance it was reported that on HP-UX the gcc test will end up
3767   # making a dummy file named `D' -- because `-MD' means `put the output
3768   # in D'.
3769   mkdir conftest.dir
3770   # Copy depcomp to subdir because otherwise we won't find it if we're
3771   # using a relative directory.
3772   cp "$am_depcomp" conftest.dir
3773   cd conftest.dir
3774   # We will build objects and dependencies in a subdirectory because
3775   # it helps to detect inapplicable dependency modes.  For instance
3776   # both Tru64's cc and ICC support -MD to output dependencies as a
3777   # side effect of compilation, but ICC will put the dependencies in
3778   # the current directory while Tru64 will put them in the object
3779   # directory.
3780   mkdir sub
3781
3782   am_cv_CXX_dependencies_compiler_type=none
3783   if test "$am_compiler_list" = ""; then
3784      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3785   fi
3786   for depmode in $am_compiler_list; do
3787     # Setup a source with many dependencies, because some compilers
3788     # like to wrap large dependency lists on column 80 (with \), and
3789     # we should not choose a depcomp mode which is confused by this.
3790     #
3791     # We need to recreate these files for each test, as the compiler may
3792     # overwrite some of them when testing with obscure command lines.
3793     # This happens at least with the AIX C compiler.
3794     : > sub/conftest.c
3795     for i in 1 2 3 4 5 6; do
3796       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3797       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3798       # Solaris 8's {/usr,}/bin/sh.
3799       touch sub/conftst$i.h
3800     done
3801     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3802
3803     case $depmode in
3804     nosideeffect)
3805       # after this tag, mechanisms are not by side-effect, so they'll
3806       # only be used when explicitly requested
3807       if test "x$enable_dependency_tracking" = xyes; then
3808         continue
3809       else
3810         break
3811       fi
3812       ;;
3813     none) break ;;
3814     esac
3815     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3816     # mode.  It turns out that the SunPro C++ compiler does not properly
3817     # handle `-M -o', and we need to detect this.
3818     if depmode=$depmode \
3819        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3820        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3821        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3822          >/dev/null 2>conftest.err &&
3823        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3824        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3825        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3826       # icc doesn't choke on unknown options, it will just issue warnings
3827       # or remarks (even with -Werror).  So we grep stderr for any message
3828       # that says an option was ignored or not supported.
3829       # When given -MP, icc 7.0 and 7.1 complain thusly:
3830       #   icc: Command line warning: ignoring option '-M'; no argument required
3831       # The diagnosis changed in icc 8.0:
3832       #   icc: Command line remark: option '-MP' not supported
3833       if (grep 'ignoring option' conftest.err ||
3834           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3835         am_cv_CXX_dependencies_compiler_type=$depmode
3836         break
3837       fi
3838     fi
3839   done
3840
3841   cd ..
3842   rm -rf conftest.dir
3843 else
3844   am_cv_CXX_dependencies_compiler_type=none
3845 fi
3846
3847 fi
3848 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3849 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3850 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3851
3852
3853
3854 if
3855   test "x$enable_dependency_tracking" != xno \
3856   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3857   am__fastdepCXX_TRUE=
3858   am__fastdepCXX_FALSE='#'
3859 else
3860   am__fastdepCXX_TRUE='#'
3861   am__fastdepCXX_FALSE=
3862 fi
3863
3864
3865 ac_ext=c
3866 ac_cpp='$CPP $CPPFLAGS'
3867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3870 if test -n "$ac_tool_prefix"; then
3871   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3872 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3873 echo "$as_me:$LINENO: checking for $ac_word" >&5
3874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3875 if test "${ac_cv_prog_CC+set}" = set; then
3876   echo $ECHO_N "(cached) $ECHO_C" >&6
3877 else
3878   if test -n "$CC"; then
3879   ac_cv_prog_CC="$CC" # Let the user override the test.
3880 else
3881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3882 for as_dir in $PATH
3883 do
3884   IFS=$as_save_IFS
3885   test -z "$as_dir" && as_dir=.
3886   for ac_exec_ext in '' $ac_executable_extensions; do
3887   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3888     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3889     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3890     break 2
3891   fi
3892 done
3893 done
3894
3895 fi
3896 fi
3897 CC=$ac_cv_prog_CC
3898 if test -n "$CC"; then
3899   echo "$as_me:$LINENO: result: $CC" >&5
3900 echo "${ECHO_T}$CC" >&6
3901 else
3902   echo "$as_me:$LINENO: result: no" >&5
3903 echo "${ECHO_T}no" >&6
3904 fi
3905
3906 fi
3907 if test -z "$ac_cv_prog_CC"; then
3908   ac_ct_CC=$CC
3909   # Extract the first word of "gcc", so it can be a program name with args.
3910 set dummy gcc; ac_word=$2
3911 echo "$as_me:$LINENO: checking for $ac_word" >&5
3912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3913 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3914   echo $ECHO_N "(cached) $ECHO_C" >&6
3915 else
3916   if test -n "$ac_ct_CC"; then
3917   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3918 else
3919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3920 for as_dir in $PATH
3921 do
3922   IFS=$as_save_IFS
3923   test -z "$as_dir" && as_dir=.
3924   for ac_exec_ext in '' $ac_executable_extensions; do
3925   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3926     ac_cv_prog_ac_ct_CC="gcc"
3927     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3928     break 2
3929   fi
3930 done
3931 done
3932
3933 fi
3934 fi
3935 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3936 if test -n "$ac_ct_CC"; then
3937   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3938 echo "${ECHO_T}$ac_ct_CC" >&6
3939 else
3940   echo "$as_me:$LINENO: result: no" >&5
3941 echo "${ECHO_T}no" >&6
3942 fi
3943
3944   CC=$ac_ct_CC
3945 else
3946   CC="$ac_cv_prog_CC"
3947 fi
3948
3949 if test -z "$CC"; then
3950   if test -n "$ac_tool_prefix"; then
3951   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3952 set dummy ${ac_tool_prefix}cc; ac_word=$2
3953 echo "$as_me:$LINENO: checking for $ac_word" >&5
3954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3955 if test "${ac_cv_prog_CC+set}" = set; then
3956   echo $ECHO_N "(cached) $ECHO_C" >&6
3957 else
3958   if test -n "$CC"; then
3959   ac_cv_prog_CC="$CC" # Let the user override the test.
3960 else
3961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3962 for as_dir in $PATH
3963 do
3964   IFS=$as_save_IFS
3965   test -z "$as_dir" && as_dir=.
3966   for ac_exec_ext in '' $ac_executable_extensions; do
3967   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3968     ac_cv_prog_CC="${ac_tool_prefix}cc"
3969     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3970     break 2
3971   fi
3972 done
3973 done
3974
3975 fi
3976 fi
3977 CC=$ac_cv_prog_CC
3978 if test -n "$CC"; then
3979   echo "$as_me:$LINENO: result: $CC" >&5
3980 echo "${ECHO_T}$CC" >&6
3981 else
3982   echo "$as_me:$LINENO: result: no" >&5
3983 echo "${ECHO_T}no" >&6
3984 fi
3985
3986 fi
3987 if test -z "$ac_cv_prog_CC"; then
3988   ac_ct_CC=$CC
3989   # Extract the first word of "cc", so it can be a program name with args.
3990 set dummy cc; ac_word=$2
3991 echo "$as_me:$LINENO: checking for $ac_word" >&5
3992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3993 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3994   echo $ECHO_N "(cached) $ECHO_C" >&6
3995 else
3996   if test -n "$ac_ct_CC"; then
3997   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3998 else
3999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4000 for as_dir in $PATH
4001 do
4002   IFS=$as_save_IFS
4003   test -z "$as_dir" && as_dir=.
4004   for ac_exec_ext in '' $ac_executable_extensions; do
4005   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4006     ac_cv_prog_ac_ct_CC="cc"
4007     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4008     break 2
4009   fi
4010 done
4011 done
4012
4013 fi
4014 fi
4015 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4016 if test -n "$ac_ct_CC"; then
4017   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4018 echo "${ECHO_T}$ac_ct_CC" >&6
4019 else
4020   echo "$as_me:$LINENO: result: no" >&5
4021 echo "${ECHO_T}no" >&6
4022 fi
4023
4024   CC=$ac_ct_CC
4025 else
4026   CC="$ac_cv_prog_CC"
4027 fi
4028
4029 fi
4030 if test -z "$CC"; then
4031   # Extract the first word of "cc", so it can be a program name with args.
4032 set dummy cc; ac_word=$2
4033 echo "$as_me:$LINENO: checking for $ac_word" >&5
4034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4035 if test "${ac_cv_prog_CC+set}" = set; then
4036   echo $ECHO_N "(cached) $ECHO_C" >&6
4037 else
4038   if test -n "$CC"; then
4039   ac_cv_prog_CC="$CC" # Let the user override the test.
4040 else
4041   ac_prog_rejected=no
4042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043 for as_dir in $PATH
4044 do
4045   IFS=$as_save_IFS
4046   test -z "$as_dir" && as_dir=.
4047   for ac_exec_ext in '' $ac_executable_extensions; do
4048   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4049     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4050        ac_prog_rejected=yes
4051        continue
4052      fi
4053     ac_cv_prog_CC="cc"
4054     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4055     break 2
4056   fi
4057 done
4058 done
4059
4060 if test $ac_prog_rejected = yes; then
4061   # We found a bogon in the path, so make sure we never use it.
4062   set dummy $ac_cv_prog_CC
4063   shift
4064   if test $# != 0; then
4065     # We chose a different compiler from the bogus one.
4066     # However, it has the same basename, so the bogon will be chosen
4067     # first if we set CC to just the basename; use the full file name.
4068     shift
4069     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4070   fi
4071 fi
4072 fi
4073 fi
4074 CC=$ac_cv_prog_CC
4075 if test -n "$CC"; then
4076   echo "$as_me:$LINENO: result: $CC" >&5
4077 echo "${ECHO_T}$CC" >&6
4078 else
4079   echo "$as_me:$LINENO: result: no" >&5
4080 echo "${ECHO_T}no" >&6
4081 fi
4082
4083 fi
4084 if test -z "$CC"; then
4085   if test -n "$ac_tool_prefix"; then
4086   for ac_prog in cl
4087   do
4088     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4089 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4090 echo "$as_me:$LINENO: checking for $ac_word" >&5
4091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4092 if test "${ac_cv_prog_CC+set}" = set; then
4093   echo $ECHO_N "(cached) $ECHO_C" >&6
4094 else
4095   if test -n "$CC"; then
4096   ac_cv_prog_CC="$CC" # Let the user override the test.
4097 else
4098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4099 for as_dir in $PATH
4100 do
4101   IFS=$as_save_IFS
4102   test -z "$as_dir" && as_dir=.
4103   for ac_exec_ext in '' $ac_executable_extensions; do
4104   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4105     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4106     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4107     break 2
4108   fi
4109 done
4110 done
4111
4112 fi
4113 fi
4114 CC=$ac_cv_prog_CC
4115 if test -n "$CC"; then
4116   echo "$as_me:$LINENO: result: $CC" >&5
4117 echo "${ECHO_T}$CC" >&6
4118 else
4119   echo "$as_me:$LINENO: result: no" >&5
4120 echo "${ECHO_T}no" >&6
4121 fi
4122
4123     test -n "$CC" && break
4124   done
4125 fi
4126 if test -z "$CC"; then
4127   ac_ct_CC=$CC
4128   for ac_prog in cl
4129 do
4130   # Extract the first word of "$ac_prog", so it can be a program name with args.
4131 set dummy $ac_prog; ac_word=$2
4132 echo "$as_me:$LINENO: checking for $ac_word" >&5
4133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4134 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4135   echo $ECHO_N "(cached) $ECHO_C" >&6
4136 else
4137   if test -n "$ac_ct_CC"; then
4138   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4139 else
4140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4141 for as_dir in $PATH
4142 do
4143   IFS=$as_save_IFS
4144   test -z "$as_dir" && as_dir=.
4145   for ac_exec_ext in '' $ac_executable_extensions; do
4146   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4147     ac_cv_prog_ac_ct_CC="$ac_prog"
4148     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4149     break 2
4150   fi
4151 done
4152 done
4153
4154 fi
4155 fi
4156 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4157 if test -n "$ac_ct_CC"; then
4158   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4159 echo "${ECHO_T}$ac_ct_CC" >&6
4160 else
4161   echo "$as_me:$LINENO: result: no" >&5
4162 echo "${ECHO_T}no" >&6
4163 fi
4164
4165   test -n "$ac_ct_CC" && break
4166 done
4167
4168   CC=$ac_ct_CC
4169 fi
4170
4171 fi
4172
4173
4174 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4175 See \`config.log' for more details." >&5
4176 echo "$as_me: error: no acceptable C compiler found in \$PATH
4177 See \`config.log' for more details." >&2;}
4178    { (exit 1); exit 1; }; }
4179
4180 # Provide some information about the compiler.
4181 echo "$as_me:$LINENO:" \
4182      "checking for C compiler version" >&5
4183 ac_compiler=`set X $ac_compile; echo $2`
4184 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4185   (eval $ac_compiler --version </dev/null >&5) 2>&5
4186   ac_status=$?
4187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188   (exit $ac_status); }
4189 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4190   (eval $ac_compiler -v </dev/null >&5) 2>&5
4191   ac_status=$?
4192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193   (exit $ac_status); }
4194 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4195   (eval $ac_compiler -V </dev/null >&5) 2>&5
4196   ac_status=$?
4197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198   (exit $ac_status); }
4199
4200 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4201 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4202 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4203   echo $ECHO_N "(cached) $ECHO_C" >&6
4204 else
4205   cat >conftest.$ac_ext <<_ACEOF
4206 /* confdefs.h.  */
4207 _ACEOF
4208 cat confdefs.h >>conftest.$ac_ext
4209 cat >>conftest.$ac_ext <<_ACEOF
4210 /* end confdefs.h.  */
4211
4212 int
4213 main ()
4214 {
4215 #ifndef __GNUC__
4216        choke me
4217 #endif
4218
4219   ;
4220   return 0;
4221 }
4222 _ACEOF
4223 rm -f conftest.$ac_objext
4224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4225   (eval $ac_compile) 2>conftest.er1
4226   ac_status=$?
4227   grep -v '^ *+' conftest.er1 >conftest.err
4228   rm -f conftest.er1
4229   cat conftest.err >&5
4230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231   (exit $ac_status); } &&
4232          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4234   (eval $ac_try) 2>&5
4235   ac_status=$?
4236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237   (exit $ac_status); }; } &&
4238          { ac_try='test -s conftest.$ac_objext'
4239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4240   (eval $ac_try) 2>&5
4241   ac_status=$?
4242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243   (exit $ac_status); }; }; then
4244   ac_compiler_gnu=yes
4245 else
4246   echo "$as_me: failed program was:" >&5
4247 sed 's/^/| /' conftest.$ac_ext >&5
4248
4249 ac_compiler_gnu=no
4250 fi
4251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4252 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4253
4254 fi
4255 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4256 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4257 GCC=`test $ac_compiler_gnu = yes && echo yes`
4258 ac_test_CFLAGS=${CFLAGS+set}
4259 ac_save_CFLAGS=$CFLAGS
4260 CFLAGS="-g"
4261 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4262 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4263 if test "${ac_cv_prog_cc_g+set}" = set; then
4264   echo $ECHO_N "(cached) $ECHO_C" >&6
4265 else
4266   cat >conftest.$ac_ext <<_ACEOF
4267 /* confdefs.h.  */
4268 _ACEOF
4269 cat confdefs.h >>conftest.$ac_ext
4270 cat >>conftest.$ac_ext <<_ACEOF
4271 /* end confdefs.h.  */
4272
4273 int
4274 main ()
4275 {
4276
4277   ;
4278   return 0;
4279 }
4280 _ACEOF
4281 rm -f conftest.$ac_objext
4282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4283   (eval $ac_compile) 2>conftest.er1
4284   ac_status=$?
4285   grep -v '^ *+' conftest.er1 >conftest.err
4286   rm -f conftest.er1
4287   cat conftest.err >&5
4288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289   (exit $ac_status); } &&
4290          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4292   (eval $ac_try) 2>&5
4293   ac_status=$?
4294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295   (exit $ac_status); }; } &&
4296          { ac_try='test -s conftest.$ac_objext'
4297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4298   (eval $ac_try) 2>&5
4299   ac_status=$?
4300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301   (exit $ac_status); }; }; then
4302   ac_cv_prog_cc_g=yes
4303 else
4304   echo "$as_me: failed program was:" >&5
4305 sed 's/^/| /' conftest.$ac_ext >&5
4306
4307 ac_cv_prog_cc_g=no
4308 fi
4309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4310 fi
4311 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4312 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4313 if test "$ac_test_CFLAGS" = set; then
4314   CFLAGS=$ac_save_CFLAGS
4315 elif test $ac_cv_prog_cc_g = yes; then
4316   if test "$GCC" = yes; then
4317     CFLAGS="-g -O2"
4318   else
4319     CFLAGS="-g"
4320   fi
4321 else
4322   if test "$GCC" = yes; then
4323     CFLAGS="-O2"
4324   else
4325     CFLAGS=
4326   fi
4327 fi
4328 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4329 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4330 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4331   echo $ECHO_N "(cached) $ECHO_C" >&6
4332 else
4333   ac_cv_prog_cc_stdc=no
4334 ac_save_CC=$CC
4335 cat >conftest.$ac_ext <<_ACEOF
4336 /* confdefs.h.  */
4337 _ACEOF
4338 cat confdefs.h >>conftest.$ac_ext
4339 cat >>conftest.$ac_ext <<_ACEOF
4340 /* end confdefs.h.  */
4341 #include <stdarg.h>
4342 #include <stdio.h>
4343 #include <sys/types.h>
4344 #include <sys/stat.h>
4345 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4346 struct buf { int x; };
4347 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4348 static char *e (p, i)
4349      char **p;
4350      int i;
4351 {
4352   return p[i];
4353 }
4354 static char *f (char * (*g) (char **, int), char **p, ...)
4355 {
4356   char *s;
4357   va_list v;
4358   va_start (v,p);
4359   s = g (p, va_arg (v,int));
4360   va_end (v);
4361   return s;
4362 }
4363
4364 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4365    function prototypes and stuff, but not '\xHH' hex character constants.
4366    These don't provoke an error unfortunately, instead are silently treated
4367    as 'x'.  The following induces an error, until -std1 is added to get
4368    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4369    array size at least.  It's necessary to write '\x00'==0 to get something
4370    that's true only with -std1.  */
4371 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4372
4373 int test (int i, double x);
4374 struct s1 {int (*f) (int a);};
4375 struct s2 {int (*f) (double a);};
4376 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4377 int argc;
4378 char **argv;
4379 int
4380 main ()
4381 {
4382 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4383   ;
4384   return 0;
4385 }
4386 _ACEOF
4387 # Don't try gcc -ansi; that turns off useful extensions and
4388 # breaks some systems' header files.
4389 # AIX                   -qlanglvl=ansi
4390 # Ultrix and OSF/1      -std1
4391 # HP-UX 10.20 and later -Ae
4392 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4393 # SVR4                  -Xc -D__EXTENSIONS__
4394 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4395 do
4396   CC="$ac_save_CC $ac_arg"
4397   rm -f conftest.$ac_objext
4398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4399   (eval $ac_compile) 2>conftest.er1
4400   ac_status=$?
4401   grep -v '^ *+' conftest.er1 >conftest.err
4402   rm -f conftest.er1
4403   cat conftest.err >&5
4404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405   (exit $ac_status); } &&
4406          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4408   (eval $ac_try) 2>&5
4409   ac_status=$?
4410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411   (exit $ac_status); }; } &&
4412          { ac_try='test -s conftest.$ac_objext'
4413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4414   (eval $ac_try) 2>&5
4415   ac_status=$?
4416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417   (exit $ac_status); }; }; then
4418   ac_cv_prog_cc_stdc=$ac_arg
4419 break
4420 else
4421   echo "$as_me: failed program was:" >&5
4422 sed 's/^/| /' conftest.$ac_ext >&5
4423
4424 fi
4425 rm -f conftest.err conftest.$ac_objext
4426 done
4427 rm -f conftest.$ac_ext conftest.$ac_objext
4428 CC=$ac_save_CC
4429
4430 fi
4431
4432 case "x$ac_cv_prog_cc_stdc" in
4433   x|xno)
4434     echo "$as_me:$LINENO: result: none needed" >&5
4435 echo "${ECHO_T}none needed" >&6 ;;
4436   *)
4437     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4438 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4439     CC="$CC $ac_cv_prog_cc_stdc" ;;
4440 esac
4441
4442 # Some people use a C++ compiler to compile C.  Since we use `exit',
4443 # in C++ we need to declare it.  In case someone uses the same compiler
4444 # for both compiling C and C++ we need to have the C++ compiler decide
4445 # the declaration of exit, since it's the most demanding environment.
4446 cat >conftest.$ac_ext <<_ACEOF
4447 #ifndef __cplusplus
4448   choke me
4449 #endif
4450 _ACEOF
4451 rm -f conftest.$ac_objext
4452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4453   (eval $ac_compile) 2>conftest.er1
4454   ac_status=$?
4455   grep -v '^ *+' conftest.er1 >conftest.err
4456   rm -f conftest.er1
4457   cat conftest.err >&5
4458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459   (exit $ac_status); } &&
4460          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4462   (eval $ac_try) 2>&5
4463   ac_status=$?
4464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465   (exit $ac_status); }; } &&
4466          { ac_try='test -s conftest.$ac_objext'
4467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4468   (eval $ac_try) 2>&5
4469   ac_status=$?
4470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471   (exit $ac_status); }; }; then
4472   for ac_declaration in \
4473    '' \
4474    'extern "C" void std::exit (int) throw (); using std::exit;' \
4475    'extern "C" void std::exit (int); using std::exit;' \
4476    'extern "C" void exit (int) throw ();' \
4477    'extern "C" void exit (int);' \
4478    'void exit (int);'
4479 do
4480   cat >conftest.$ac_ext <<_ACEOF
4481 /* confdefs.h.  */
4482 _ACEOF
4483 cat confdefs.h >>conftest.$ac_ext
4484 cat >>conftest.$ac_ext <<_ACEOF
4485 /* end confdefs.h.  */
4486 $ac_declaration
4487 #include <stdlib.h>
4488 int
4489 main ()
4490 {
4491 exit (42);
4492   ;
4493   return 0;
4494 }
4495 _ACEOF
4496 rm -f conftest.$ac_objext
4497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4498   (eval $ac_compile) 2>conftest.er1
4499   ac_status=$?
4500   grep -v '^ *+' conftest.er1 >conftest.err
4501   rm -f conftest.er1
4502   cat conftest.err >&5
4503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504   (exit $ac_status); } &&
4505          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4507   (eval $ac_try) 2>&5
4508   ac_status=$?
4509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510   (exit $ac_status); }; } &&
4511          { ac_try='test -s conftest.$ac_objext'
4512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4513   (eval $ac_try) 2>&5
4514   ac_status=$?
4515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516   (exit $ac_status); }; }; then
4517   :
4518 else
4519   echo "$as_me: failed program was:" >&5
4520 sed 's/^/| /' conftest.$ac_ext >&5
4521
4522 continue
4523 fi
4524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4525   cat >conftest.$ac_ext <<_ACEOF
4526 /* confdefs.h.  */
4527 _ACEOF
4528 cat confdefs.h >>conftest.$ac_ext
4529 cat >>conftest.$ac_ext <<_ACEOF
4530 /* end confdefs.h.  */
4531 $ac_declaration
4532 int
4533 main ()
4534 {
4535 exit (42);
4536   ;
4537   return 0;
4538 }
4539 _ACEOF
4540 rm -f conftest.$ac_objext
4541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4542   (eval $ac_compile) 2>conftest.er1
4543   ac_status=$?
4544   grep -v '^ *+' conftest.er1 >conftest.err
4545   rm -f conftest.er1
4546   cat conftest.err >&5
4547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548   (exit $ac_status); } &&
4549          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551   (eval $ac_try) 2>&5
4552   ac_status=$?
4553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554   (exit $ac_status); }; } &&
4555          { ac_try='test -s conftest.$ac_objext'
4556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557   (eval $ac_try) 2>&5
4558   ac_status=$?
4559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560   (exit $ac_status); }; }; then
4561   break
4562 else
4563   echo "$as_me: failed program was:" >&5
4564 sed 's/^/| /' conftest.$ac_ext >&5
4565
4566 fi
4567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4568 done
4569 rm -f conftest*
4570 if test -n "$ac_declaration"; then
4571   echo '#ifdef __cplusplus' >>confdefs.h
4572   echo $ac_declaration      >>confdefs.h
4573   echo '#endif'             >>confdefs.h
4574 fi
4575
4576 else
4577   echo "$as_me: failed program was:" >&5
4578 sed 's/^/| /' conftest.$ac_ext >&5
4579
4580 fi
4581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4582 ac_ext=c
4583 ac_cpp='$CPP $CPPFLAGS'
4584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4587
4588 depcc="$CC"   am_compiler_list=
4589
4590 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4591 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4592 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4593   echo $ECHO_N "(cached) $ECHO_C" >&6
4594 else
4595   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4596   # We make a subdir and do the tests there.  Otherwise we can end up
4597   # making bogus files that we don't know about and never remove.  For
4598   # instance it was reported that on HP-UX the gcc test will end up
4599   # making a dummy file named `D' -- because `-MD' means `put the output
4600   # in D'.
4601   mkdir conftest.dir
4602   # Copy depcomp to subdir because otherwise we won't find it if we're
4603   # using a relative directory.
4604   cp "$am_depcomp" conftest.dir
4605   cd conftest.dir
4606   # We will build objects and dependencies in a subdirectory because
4607   # it helps to detect inapplicable dependency modes.  For instance
4608   # both Tru64's cc and ICC support -MD to output dependencies as a
4609   # side effect of compilation, but ICC will put the dependencies in
4610   # the current directory while Tru64 will put them in the object
4611   # directory.
4612   mkdir sub
4613
4614   am_cv_CC_dependencies_compiler_type=none
4615   if test "$am_compiler_list" = ""; then
4616      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4617   fi
4618   for depmode in $am_compiler_list; do
4619     # Setup a source with many dependencies, because some compilers
4620     # like to wrap large dependency lists on column 80 (with \), and
4621     # we should not choose a depcomp mode which is confused by this.
4622     #
4623     # We need to recreate these files for each test, as the compiler may
4624     # overwrite some of them when testing with obscure command lines.
4625     # This happens at least with the AIX C compiler.
4626     : > sub/conftest.c
4627     for i in 1 2 3 4 5 6; do
4628       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4629       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4630       # Solaris 8's {/usr,}/bin/sh.
4631       touch sub/conftst$i.h
4632     done
4633     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4634
4635     case $depmode in
4636     nosideeffect)
4637       # after this tag, mechanisms are not by side-effect, so they'll
4638       # only be used when explicitly requested
4639       if test "x$enable_dependency_tracking" = xyes; then
4640         continue
4641       else
4642         break
4643       fi
4644       ;;
4645     none) break ;;
4646     esac
4647     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4648     # mode.  It turns out that the SunPro C++ compiler does not properly
4649     # handle `-M -o', and we need to detect this.
4650     if depmode=$depmode \
4651        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4652        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4653        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4654          >/dev/null 2>conftest.err &&
4655        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4656        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4657        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4658       # icc doesn't choke on unknown options, it will just issue warnings
4659       # or remarks (even with -Werror).  So we grep stderr for any message
4660       # that says an option was ignored or not supported.
4661       # When given -MP, icc 7.0 and 7.1 complain thusly:
4662       #   icc: Command line warning: ignoring option '-M'; no argument required
4663       # The diagnosis changed in icc 8.0:
4664       #   icc: Command line remark: option '-MP' not supported
4665       if (grep 'ignoring option' conftest.err ||
4666           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4667         am_cv_CC_dependencies_compiler_type=$depmode
4668         break
4669       fi
4670     fi
4671   done
4672
4673   cd ..
4674   rm -rf conftest.dir
4675 else
4676   am_cv_CC_dependencies_compiler_type=none
4677 fi
4678
4679 fi
4680 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4681 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4682 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4683
4684
4685
4686 if
4687   test "x$enable_dependency_tracking" != xno \
4688   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4689   am__fastdepCC_TRUE=
4690   am__fastdepCC_FALSE='#'
4691 else
4692   am__fastdepCC_TRUE='#'
4693   am__fastdepCC_FALSE=
4694 fi
4695
4696
4697 ac_ext=c
4698 ac_cpp='$CPP $CPPFLAGS'
4699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4702 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4703 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4704 # On Suns, sometimes $CPP names a directory.
4705 if test -n "$CPP" && test -d "$CPP"; then
4706   CPP=
4707 fi
4708 if test -z "$CPP"; then
4709   if test "${ac_cv_prog_CPP+set}" = set; then
4710   echo $ECHO_N "(cached) $ECHO_C" >&6
4711 else
4712       # Double quotes because CPP needs to be expanded
4713     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4714     do
4715       ac_preproc_ok=false
4716 for ac_c_preproc_warn_flag in '' yes
4717 do
4718   # Use a header file that comes with gcc, so configuring glibc
4719   # with a fresh cross-compiler works.
4720   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4721   # <limits.h> exists even on freestanding compilers.
4722   # On the NeXT, cc -E runs the code through the compiler's parser,
4723   # not just through cpp. "Syntax error" is here to catch this case.
4724   cat >conftest.$ac_ext <<_ACEOF
4725 /* confdefs.h.  */
4726 _ACEOF
4727 cat confdefs.h >>conftest.$ac_ext
4728 cat >>conftest.$ac_ext <<_ACEOF
4729 /* end confdefs.h.  */
4730 #ifdef __STDC__
4731 # include <limits.h>
4732 #else
4733 # include <assert.h>
4734 #endif
4735                      Syntax error
4736 _ACEOF
4737 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4738   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4739   ac_status=$?
4740   grep -v '^ *+' conftest.er1 >conftest.err
4741   rm -f conftest.er1
4742   cat conftest.err >&5
4743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744   (exit $ac_status); } >/dev/null; then
4745   if test -s conftest.err; then
4746     ac_cpp_err=$ac_c_preproc_warn_flag
4747     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4748   else
4749     ac_cpp_err=
4750   fi
4751 else
4752   ac_cpp_err=yes
4753 fi
4754 if test -z "$ac_cpp_err"; then
4755   :
4756 else
4757   echo "$as_me: failed program was:" >&5
4758 sed 's/^/| /' conftest.$ac_ext >&5
4759
4760   # Broken: fails on valid input.
4761 continue
4762 fi
4763 rm -f conftest.err conftest.$ac_ext
4764
4765   # OK, works on sane cases.  Now check whether non-existent headers
4766   # can be detected and how.
4767   cat >conftest.$ac_ext <<_ACEOF
4768 /* confdefs.h.  */
4769 _ACEOF
4770 cat confdefs.h >>conftest.$ac_ext
4771 cat >>conftest.$ac_ext <<_ACEOF
4772 /* end confdefs.h.  */
4773 #include <ac_nonexistent.h>
4774 _ACEOF
4775 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4776   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4777   ac_status=$?
4778   grep -v '^ *+' conftest.er1 >conftest.err
4779   rm -f conftest.er1
4780   cat conftest.err >&5
4781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782   (exit $ac_status); } >/dev/null; then
4783   if test -s conftest.err; then
4784     ac_cpp_err=$ac_c_preproc_warn_flag
4785     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4786   else
4787     ac_cpp_err=
4788   fi
4789 else
4790   ac_cpp_err=yes
4791 fi
4792 if test -z "$ac_cpp_err"; then
4793   # Broken: success on invalid input.
4794 continue
4795 else
4796   echo "$as_me: failed program was:" >&5
4797 sed 's/^/| /' conftest.$ac_ext >&5
4798
4799   # Passes both tests.
4800 ac_preproc_ok=:
4801 break
4802 fi
4803 rm -f conftest.err conftest.$ac_ext
4804
4805 done
4806 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4807 rm -f conftest.err conftest.$ac_ext
4808 if $ac_preproc_ok; then
4809   break
4810 fi
4811
4812     done
4813     ac_cv_prog_CPP=$CPP
4814
4815 fi
4816   CPP=$ac_cv_prog_CPP
4817 else
4818   ac_cv_prog_CPP=$CPP
4819 fi
4820 echo "$as_me:$LINENO: result: $CPP" >&5
4821 echo "${ECHO_T}$CPP" >&6
4822 ac_preproc_ok=false
4823 for ac_c_preproc_warn_flag in '' yes
4824 do
4825   # Use a header file that comes with gcc, so configuring glibc
4826   # with a fresh cross-compiler works.
4827   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4828   # <limits.h> exists even on freestanding compilers.
4829   # On the NeXT, cc -E runs the code through the compiler's parser,
4830   # not just through cpp. "Syntax error" is here to catch this case.
4831   cat >conftest.$ac_ext <<_ACEOF
4832 /* confdefs.h.  */
4833 _ACEOF
4834 cat confdefs.h >>conftest.$ac_ext
4835 cat >>conftest.$ac_ext <<_ACEOF
4836 /* end confdefs.h.  */
4837 #ifdef __STDC__
4838 # include <limits.h>
4839 #else
4840 # include <assert.h>
4841 #endif
4842                      Syntax error
4843 _ACEOF
4844 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4845   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4846   ac_status=$?
4847   grep -v '^ *+' conftest.er1 >conftest.err
4848   rm -f conftest.er1
4849   cat conftest.err >&5
4850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851   (exit $ac_status); } >/dev/null; then
4852   if test -s conftest.err; then
4853     ac_cpp_err=$ac_c_preproc_warn_flag
4854     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4855   else
4856     ac_cpp_err=
4857   fi
4858 else
4859   ac_cpp_err=yes
4860 fi
4861 if test -z "$ac_cpp_err"; then
4862   :
4863 else
4864   echo "$as_me: failed program was:" >&5
4865 sed 's/^/| /' conftest.$ac_ext >&5
4866
4867   # Broken: fails on valid input.
4868 continue
4869 fi
4870 rm -f conftest.err conftest.$ac_ext
4871
4872   # OK, works on sane cases.  Now check whether non-existent headers
4873   # can be detected and how.
4874   cat >conftest.$ac_ext <<_ACEOF
4875 /* confdefs.h.  */
4876 _ACEOF
4877 cat confdefs.h >>conftest.$ac_ext
4878 cat >>conftest.$ac_ext <<_ACEOF
4879 /* end confdefs.h.  */
4880 #include <ac_nonexistent.h>
4881 _ACEOF
4882 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4883   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4884   ac_status=$?
4885   grep -v '^ *+' conftest.er1 >conftest.err
4886   rm -f conftest.er1
4887   cat conftest.err >&5
4888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889   (exit $ac_status); } >/dev/null; then
4890   if test -s conftest.err; then
4891     ac_cpp_err=$ac_c_preproc_warn_flag
4892     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4893   else
4894     ac_cpp_err=
4895   fi
4896 else
4897   ac_cpp_err=yes
4898 fi
4899 if test -z "$ac_cpp_err"; then
4900   # Broken: success on invalid input.
4901 continue
4902 else
4903   echo "$as_me: failed program was:" >&5
4904 sed 's/^/| /' conftest.$ac_ext >&5
4905
4906   # Passes both tests.
4907 ac_preproc_ok=:
4908 break
4909 fi
4910 rm -f conftest.err conftest.$ac_ext
4911
4912 done
4913 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4914 rm -f conftest.err conftest.$ac_ext
4915 if $ac_preproc_ok; then
4916   :
4917 else
4918   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4919 See \`config.log' for more details." >&5
4920 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4921 See \`config.log' for more details." >&2;}
4922    { (exit 1); exit 1; }; }
4923 fi
4924
4925 ac_ext=c
4926 ac_cpp='$CPP $CPPFLAGS'
4927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4930
4931 # Find a good install program.  We prefer a C program (faster),
4932 # so one script is as good as another.  But avoid the broken or
4933 # incompatible versions:
4934 # SysV /etc/install, /usr/sbin/install
4935 # SunOS /usr/etc/install
4936 # IRIX /sbin/install
4937 # AIX /bin/install
4938 # AmigaOS /C/install, which installs bootblocks on floppy discs
4939 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4940 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4941 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4942 # OS/2's system install, which has a completely different semantic
4943 # ./install, which can be erroneously created by make from ./install.sh.
4944 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4945 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4946 if test -z "$INSTALL"; then
4947 if test "${ac_cv_path_install+set}" = set; then
4948   echo $ECHO_N "(cached) $ECHO_C" >&6
4949 else
4950   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951 for as_dir in $PATH
4952 do
4953   IFS=$as_save_IFS
4954   test -z "$as_dir" && as_dir=.
4955   # Account for people who put trailing slashes in PATH elements.
4956 case $as_dir/ in
4957   ./ | .// | /cC/* | \
4958   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4959   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4960   /usr/ucb/* ) ;;
4961   *)
4962     # OSF1 and SCO ODT 3.0 have their own names for install.
4963     # Don't use installbsd from OSF since it installs stuff as root
4964     # by default.
4965     for ac_prog in ginstall scoinst install; do
4966       for ac_exec_ext in '' $ac_executable_extensions; do
4967         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4968           if test $ac_prog = install &&
4969             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4970             # AIX install.  It has an incompatible calling convention.
4971             :
4972           elif test $ac_prog = install &&
4973             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4974             # program-specific install script used by HP pwplus--don't use.
4975             :
4976           else
4977             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4978             break 3
4979           fi
4980         fi
4981       done
4982     done
4983     ;;
4984 esac
4985 done
4986
4987
4988 fi
4989   if test "${ac_cv_path_install+set}" = set; then
4990     INSTALL=$ac_cv_path_install
4991   else
4992     # As a last resort, use the slow shell script.  We don't cache a
4993     # path for INSTALL within a source directory, because that will
4994     # break other packages using the cache if that directory is
4995     # removed, or if the path is relative.
4996     INSTALL=$ac_install_sh
4997   fi
4998 fi
4999 echo "$as_me:$LINENO: result: $INSTALL" >&5
5000 echo "${ECHO_T}$INSTALL" >&6
5001
5002 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5003 # It thinks the first close brace ends the variable substitution.
5004 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5005
5006 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5007
5008 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5009
5010 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5011 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5012 LN_S=$as_ln_s
5013 if test "$LN_S" = "ln -s"; then
5014   echo "$as_me:$LINENO: result: yes" >&5
5015 echo "${ECHO_T}yes" >&6
5016 else
5017   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5018 echo "${ECHO_T}no, using $LN_S" >&6
5019 fi
5020
5021 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5022 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5023 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5024 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5025   echo $ECHO_N "(cached) $ECHO_C" >&6
5026 else
5027   cat >conftest.make <<\_ACEOF
5028 all:
5029         @echo 'ac_maketemp="$(MAKE)"'
5030 _ACEOF
5031 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5032 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5033 if test -n "$ac_maketemp"; then
5034   eval ac_cv_prog_make_${ac_make}_set=yes
5035 else
5036   eval ac_cv_prog_make_${ac_make}_set=no
5037 fi
5038 rm -f conftest.make
5039 fi
5040 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5041   echo "$as_me:$LINENO: result: yes" >&5
5042 echo "${ECHO_T}yes" >&6
5043   SET_MAKE=
5044 else
5045   echo "$as_me:$LINENO: result: no" >&5
5046 echo "${ECHO_T}no" >&6
5047   SET_MAKE="MAKE=${MAKE-make}"
5048 fi
5049
5050 # Check whether --enable-shared or --disable-shared was given.
5051 if test "${enable_shared+set}" = set; then
5052   enableval="$enable_shared"
5053   p=${PACKAGE-default}
5054     case $enableval in
5055     yes) enable_shared=yes ;;
5056     no) enable_shared=no ;;
5057     *)
5058       enable_shared=no
5059       # Look at the argument we got.  We use all the common list separators.
5060       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5061       for pkg in $enableval; do
5062         IFS="$lt_save_ifs"
5063         if test "X$pkg" = "X$p"; then
5064           enable_shared=yes
5065         fi
5066       done
5067       IFS="$lt_save_ifs"
5068       ;;
5069     esac
5070 else
5071   enable_shared=yes
5072 fi;
5073
5074 # Check whether --enable-static or --disable-static was given.
5075 if test "${enable_static+set}" = set; then
5076   enableval="$enable_static"
5077   p=${PACKAGE-default}
5078     case $enableval in
5079     yes) enable_static=yes ;;
5080     no) enable_static=no ;;
5081     *)
5082      enable_static=no
5083       # Look at the argument we got.  We use all the common list separators.
5084       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5085       for pkg in $enableval; do
5086         IFS="$lt_save_ifs"
5087         if test "X$pkg" = "X$p"; then
5088           enable_static=yes
5089         fi
5090       done
5091       IFS="$lt_save_ifs"
5092       ;;
5093     esac
5094 else
5095   enable_static=yes
5096 fi;
5097
5098 # Check whether --enable-fast-install or --disable-fast-install was given.
5099 if test "${enable_fast_install+set}" = set; then
5100   enableval="$enable_fast_install"
5101   p=${PACKAGE-default}
5102     case $enableval in
5103     yes) enable_fast_install=yes ;;
5104     no) enable_fast_install=no ;;
5105     *)
5106       enable_fast_install=no
5107       # Look at the argument we got.  We use all the common list separators.
5108       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5109       for pkg in $enableval; do
5110         IFS="$lt_save_ifs"
5111         if test "X$pkg" = "X$p"; then
5112           enable_fast_install=yes
5113         fi
5114       done
5115       IFS="$lt_save_ifs"
5116       ;;
5117     esac
5118 else
5119   enable_fast_install=yes
5120 fi;
5121
5122 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5123 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5124 if test "${lt_cv_path_SED+set}" = set; then
5125   echo $ECHO_N "(cached) $ECHO_C" >&6
5126 else
5127   # Loop through the user's path and test for sed and gsed.
5128 # Then use that list of sed's as ones to test for truncation.
5129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5130 for as_dir in $PATH
5131 do
5132   IFS=$as_save_IFS
5133   test -z "$as_dir" && as_dir=.
5134   for lt_ac_prog in sed gsed; do
5135     for ac_exec_ext in '' $ac_executable_extensions; do
5136       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5137         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5138       fi
5139     done
5140   done
5141 done
5142 lt_ac_max=0
5143 lt_ac_count=0
5144 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5145 # along with /bin/sed that truncates output.
5146 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5147   test ! -f $lt_ac_sed && continue
5148   cat /dev/null > conftest.in
5149   lt_ac_count=0
5150   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5151   # Check for GNU sed and select it if it is found.
5152   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5153     lt_cv_path_SED=$lt_ac_sed
5154     break
5155   fi
5156   while true; do
5157     cat conftest.in conftest.in >conftest.tmp
5158     mv conftest.tmp conftest.in
5159     cp conftest.in conftest.nl
5160     echo >>conftest.nl
5161     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5162     cmp -s conftest.out conftest.nl || break
5163     # 10000 chars as input seems more than enough
5164     test $lt_ac_count -gt 10 && break
5165     lt_ac_count=`expr $lt_ac_count + 1`
5166     if test $lt_ac_count -gt $lt_ac_max; then
5167       lt_ac_max=$lt_ac_count
5168       lt_cv_path_SED=$lt_ac_sed
5169     fi
5170   done
5171 done
5172
5173 fi
5174
5175 SED=$lt_cv_path_SED
5176 echo "$as_me:$LINENO: result: $SED" >&5
5177 echo "${ECHO_T}$SED" >&6
5178
5179 echo "$as_me:$LINENO: checking for egrep" >&5
5180 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5181 if test "${ac_cv_prog_egrep+set}" = set; then
5182   echo $ECHO_N "(cached) $ECHO_C" >&6
5183 else
5184   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5185     then ac_cv_prog_egrep='grep -E'
5186     else ac_cv_prog_egrep='egrep'
5187     fi
5188 fi
5189 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5190 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5191  EGREP=$ac_cv_prog_egrep
5192
5193
5194
5195 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5196 if test "${with_gnu_ld+set}" = set; then
5197   withval="$with_gnu_ld"
5198   test "$withval" = no || with_gnu_ld=yes
5199 else
5200   with_gnu_ld=no
5201 fi;
5202 ac_prog=ld
5203 if test "$GCC" = yes; then
5204   # Check if gcc -print-prog-name=ld gives a path.
5205   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5206 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5207   case $host in
5208   *-*-mingw*)
5209     # gcc leaves a trailing carriage return which upsets mingw
5210     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5211   *)
5212     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5213   esac
5214   case $ac_prog in
5215     # Accept absolute paths.
5216     [\\/]* | ?:[\\/]*)
5217       re_direlt='/[^/][^/]*/\.\./'
5218       # Canonicalize the pathname of ld
5219       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5220       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5221         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5222       done
5223       test -z "$LD" && LD="$ac_prog"
5224       ;;
5225   "")
5226     # If it fails, then pretend we aren't using GCC.
5227     ac_prog=ld
5228     ;;
5229   *)
5230     # If it is relative, then search for the first ld in PATH.
5231     with_gnu_ld=unknown
5232     ;;
5233   esac
5234 elif test "$with_gnu_ld" = yes; then
5235   echo "$as_me:$LINENO: checking for GNU ld" >&5
5236 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5237 else
5238   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5239 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5240 fi
5241 if test "${lt_cv_path_LD+set}" = set; then
5242   echo $ECHO_N "(cached) $ECHO_C" >&6
5243 else
5244   if test -z "$LD"; then
5245   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5246   for ac_dir in $PATH; do
5247     IFS="$lt_save_ifs"
5248     test -z "$ac_dir" && ac_dir=.
5249     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5250       lt_cv_path_LD="$ac_dir/$ac_prog"
5251       # Check to see if the program is GNU ld.  I'd rather use --version,
5252       # but apparently some variants of GNU ld only accept -v.
5253       # Break only if it was the GNU/non-GNU ld that we prefer.
5254       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5255       *GNU* | *'with BFD'*)
5256         test "$with_gnu_ld" != no && break
5257         ;;
5258       *)
5259         test "$with_gnu_ld" != yes && break
5260         ;;
5261       esac
5262     fi
5263   done
5264   IFS="$lt_save_ifs"
5265 else
5266   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5267 fi
5268 fi
5269
5270 LD="$lt_cv_path_LD"
5271 if test -n "$LD"; then
5272   echo "$as_me:$LINENO: result: $LD" >&5
5273 echo "${ECHO_T}$LD" >&6
5274 else
5275   echo "$as_me:$LINENO: result: no" >&5
5276 echo "${ECHO_T}no" >&6
5277 fi
5278 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5279 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5280    { (exit 1); exit 1; }; }
5281 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5282 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5283 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5284   echo $ECHO_N "(cached) $ECHO_C" >&6
5285 else
5286   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5287 case `$LD -v 2>&1 </dev/null` in
5288 *GNU* | *'with BFD'*)
5289   lt_cv_prog_gnu_ld=yes
5290   ;;
5291 *)
5292   lt_cv_prog_gnu_ld=no
5293   ;;
5294 esac
5295 fi
5296 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5297 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5298 with_gnu_ld=$lt_cv_prog_gnu_ld
5299
5300
5301 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5302 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5303 if test "${lt_cv_ld_reload_flag+set}" = set; then
5304   echo $ECHO_N "(cached) $ECHO_C" >&6
5305 else
5306   lt_cv_ld_reload_flag='-r'
5307 fi
5308 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5309 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5310 reload_flag=$lt_cv_ld_reload_flag
5311 case $reload_flag in
5312 "" | " "*) ;;
5313 *) reload_flag=" $reload_flag" ;;
5314 esac
5315 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5316 case $host_os in
5317   darwin*)
5318     if test "$GCC" = yes; then
5319       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5320     else
5321       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5322     fi
5323     ;;
5324 esac
5325
5326 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5327 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5328 if test "${lt_cv_path_NM+set}" = set; then
5329   echo $ECHO_N "(cached) $ECHO_C" >&6
5330 else
5331   if test -n "$NM"; then
5332   # Let the user override the test.
5333   lt_cv_path_NM="$NM"
5334 else
5335   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5336   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5337     IFS="$lt_save_ifs"
5338     test -z "$ac_dir" && ac_dir=.
5339     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5340     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5341       # Check to see if the nm accepts a BSD-compat flag.
5342       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5343       #   nm: unknown option "B" ignored
5344       # Tru64's nm complains that /dev/null is an invalid object file
5345       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5346       */dev/null* | *'Invalid file or object type'*)
5347         lt_cv_path_NM="$tmp_nm -B"
5348         break
5349         ;;
5350       *)
5351         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5352         */dev/null*)
5353           lt_cv_path_NM="$tmp_nm -p"
5354           break
5355           ;;
5356         *)
5357           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5358           continue # so that we can try to find one that supports BSD flags
5359           ;;
5360         esac
5361       esac
5362     fi
5363   done
5364   IFS="$lt_save_ifs"
5365   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5366 fi
5367 fi
5368 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5369 echo "${ECHO_T}$lt_cv_path_NM" >&6
5370 NM="$lt_cv_path_NM"
5371
5372 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5373 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5374 if test "${lt_cv_deplibs_check_method+set}" = set; then
5375   echo $ECHO_N "(cached) $ECHO_C" >&6
5376 else
5377   lt_cv_file_magic_cmd='$MAGIC_CMD'
5378 lt_cv_file_magic_test_file=
5379 lt_cv_deplibs_check_method='unknown'
5380 # Need to set the preceding variable on all platforms that support
5381 # interlibrary dependencies.
5382 # 'none' -- dependencies not supported.
5383 # `unknown' -- same as none, but documents that we really don't know.
5384 # 'pass_all' -- all dependencies passed with no checks.
5385 # 'test_compile' -- check by making test program.
5386 # 'file_magic [[regex]]' -- check by looking for files in library path
5387 # which responds to the $file_magic_cmd with a given extended regex.
5388 # If you have `file' or equivalent on your system and you're not sure
5389 # whether `pass_all' will *always* work, you probably want this one.
5390
5391 case $host_os in
5392 aix4* | aix5*)
5393   lt_cv_deplibs_check_method=pass_all
5394   ;;
5395
5396 beos*)
5397   lt_cv_deplibs_check_method=pass_all
5398   ;;
5399
5400 bsdi[45]*)
5401   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5402   lt_cv_file_magic_cmd='/usr/bin/file -L'
5403   lt_cv_file_magic_test_file=/shlib/libc.so
5404   ;;
5405
5406 cygwin*)
5407   # func_win32_libid is a shell function defined in ltmain.sh
5408   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5409   lt_cv_file_magic_cmd='func_win32_libid'
5410   ;;
5411
5412 mingw* | pw32*)
5413   # Base MSYS/MinGW do not provide the 'file' command needed by
5414   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5415   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5416   lt_cv_file_magic_cmd='$OBJDUMP -f'
5417   ;;
5418
5419 darwin* | rhapsody*)
5420   lt_cv_deplibs_check_method=pass_all
5421   ;;
5422
5423 freebsd* | kfreebsd*-gnu | dragonfly*)
5424   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5425     case $host_cpu in
5426     i*86 )
5427       # Not sure whether the presence of OpenBSD here was a mistake.
5428       # Let's accept both of them until this is cleared up.
5429       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5430       lt_cv_file_magic_cmd=/usr/bin/file
5431       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5432       ;;
5433     esac
5434   else
5435     lt_cv_deplibs_check_method=pass_all
5436   fi
5437   ;;
5438
5439 gnu*)
5440   lt_cv_deplibs_check_method=pass_all
5441   ;;
5442
5443 hpux10.20* | hpux11*)
5444   lt_cv_file_magic_cmd=/usr/bin/file
5445   case $host_cpu in
5446   ia64*)
5447     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5448     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5449     ;;
5450   hppa*64*)
5451     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]'
5452     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5453     ;;
5454   *)
5455     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5456     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5457     ;;
5458   esac
5459   ;;
5460
5461 irix5* | irix6* | nonstopux*)
5462   case $LD in
5463   *-32|*"-32 ") libmagic=32-bit;;
5464   *-n32|*"-n32 ") libmagic=N32;;
5465   *-64|*"-64 ") libmagic=64-bit;;
5466   *) libmagic=never-match;;
5467   esac
5468   lt_cv_deplibs_check_method=pass_all
5469   ;;
5470
5471 # This must be Linux ELF.
5472 linux*)
5473   lt_cv_deplibs_check_method=pass_all
5474   ;;
5475
5476 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
5477   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5478     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5479   else
5480     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5481   fi
5482   ;;
5483
5484 newos6*)
5485   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5486   lt_cv_file_magic_cmd=/usr/bin/file
5487   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5488   ;;
5489
5490 nto-qnx*)
5491   lt_cv_deplibs_check_method=unknown
5492   ;;
5493
5494 openbsd*)
5495   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5496     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5497   else
5498     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5499   fi
5500   ;;
5501
5502 osf3* | osf4* | osf5*)
5503   lt_cv_deplibs_check_method=pass_all
5504   ;;
5505
5506 sco3.2v5*)
5507   lt_cv_deplibs_check_method=pass_all
5508   ;;
5509
5510 solaris*)
5511   lt_cv_deplibs_check_method=pass_all
5512   ;;
5513
5514 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5515   case $host_vendor in
5516   motorola)
5517     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]'
5518     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5519     ;;
5520   ncr)
5521     lt_cv_deplibs_check_method=pass_all
5522     ;;
5523   sequent)
5524     lt_cv_file_magic_cmd='/bin/file'
5525     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5526     ;;
5527   sni)
5528     lt_cv_file_magic_cmd='/bin/file'
5529     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5530     lt_cv_file_magic_test_file=/lib/libc.so
5531     ;;
5532   siemens)
5533     lt_cv_deplibs_check_method=pass_all
5534     ;;
5535   esac
5536   ;;
5537
5538 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5539   lt_cv_deplibs_check_method=pass_all
5540   ;;
5541 esac
5542
5543 fi
5544 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5545 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5546 file_magic_cmd=$lt_cv_file_magic_cmd
5547 deplibs_check_method=$lt_cv_deplibs_check_method
5548 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5549
5550
5551
5552
5553 # If no C compiler was specified, use CC.
5554 LTCC=${LTCC-"$CC"}
5555
5556 # Allow CC to be a program name with arguments.
5557 compiler=$CC
5558
5559 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5560 if test "${enable_libtool_lock+set}" = set; then
5561   enableval="$enable_libtool_lock"
5562
5563 fi;
5564 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5565
5566 # Some flags need to be propagated to the compiler or linker for good
5567 # libtool support.
5568 case $host in
5569 ia64-*-hpux*)
5570   # Find out which ABI we are using.
5571   echo 'int i;' > conftest.$ac_ext
5572   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5573   (eval $ac_compile) 2>&5
5574   ac_status=$?
5575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576   (exit $ac_status); }; then
5577     case `/usr/bin/file conftest.$ac_objext` in
5578     *ELF-32*)
5579       HPUX_IA64_MODE="32"
5580       ;;
5581     *ELF-64*)
5582       HPUX_IA64_MODE="64"
5583       ;;
5584     esac
5585   fi
5586   rm -rf conftest*
5587   ;;
5588 *-*-irix6*)
5589   # Find out which ABI we are using.
5590   echo '#line 5590 "configure"' > conftest.$ac_ext
5591   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5592   (eval $ac_compile) 2>&5
5593   ac_status=$?
5594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595   (exit $ac_status); }; then
5596    if test "$lt_cv_prog_gnu_ld" = yes; then
5597     case `/usr/bin/file conftest.$ac_objext` in
5598     *32-bit*)
5599       LD="${LD-ld} -melf32bsmip"
5600       ;;
5601     *N32*)
5602       LD="${LD-ld} -melf32bmipn32"
5603       ;;
5604     *64-bit*)
5605       LD="${LD-ld} -melf64bmip"
5606       ;;
5607     esac
5608    else
5609     case `/usr/bin/file conftest.$ac_objext` in
5610     *32-bit*)
5611       LD="${LD-ld} -32"
5612       ;;
5613     *N32*)
5614       LD="${LD-ld} -n32"
5615       ;;
5616     *64-bit*)
5617       LD="${LD-ld} -64"
5618       ;;
5619     esac
5620    fi
5621   fi
5622   rm -rf conftest*
5623   ;;
5624
5625 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5626   # Find out which ABI we are using.
5627   echo 'int i;' > conftest.$ac_ext
5628   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5629   (eval $ac_compile) 2>&5
5630   ac_status=$?
5631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632   (exit $ac_status); }; then
5633     case `/usr/bin/file conftest.o` in
5634     *32-bit*)
5635       case $host in
5636         x86_64-*linux*)
5637           LD="${LD-ld} -m elf_i386"
5638           ;;
5639         ppc64-*linux*|powerpc64-*linux*)
5640           LD="${LD-ld} -m elf32ppclinux"
5641           ;;
5642         s390x-*linux*)
5643           LD="${LD-ld} -m elf_s390"
5644           ;;
5645         sparc64-*linux*)
5646           LD="${LD-ld} -m elf32_sparc"
5647           ;;
5648       esac
5649       ;;
5650     *64-bit*)
5651       case $host in
5652         x86_64-*linux*)
5653           LD="${LD-ld} -m elf_x86_64"
5654           ;;
5655         ppc*-*linux*|powerpc*-*linux*)
5656           LD="${LD-ld} -m elf64ppc"
5657           ;;
5658         s390*-*linux*)
5659           LD="${LD-ld} -m elf64_s390"
5660           ;;
5661         sparc*-*linux*)
5662           LD="${LD-ld} -m elf64_sparc"
5663           ;;
5664       esac
5665       ;;
5666     esac
5667   fi
5668   rm -rf conftest*
5669   ;;
5670
5671 *-*-sco3.2v5*)
5672   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5673   SAVE_CFLAGS="$CFLAGS"
5674   CFLAGS="$CFLAGS -belf"
5675   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5676 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5677 if test "${lt_cv_cc_needs_belf+set}" = set; then
5678   echo $ECHO_N "(cached) $ECHO_C" >&6
5679 else
5680   ac_ext=c
5681 ac_cpp='$CPP $CPPFLAGS'
5682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5685
5686      cat >conftest.$ac_ext <<_ACEOF
5687 /* confdefs.h.  */
5688 _ACEOF
5689 cat confdefs.h >>conftest.$ac_ext
5690 cat >>conftest.$ac_ext <<_ACEOF
5691 /* end confdefs.h.  */
5692
5693 int
5694 main ()
5695 {
5696
5697   ;
5698   return 0;
5699 }
5700 _ACEOF
5701 rm -f conftest.$ac_objext conftest$ac_exeext
5702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5703   (eval $ac_link) 2>conftest.er1
5704   ac_status=$?
5705   grep -v '^ *+' conftest.er1 >conftest.err
5706   rm -f conftest.er1
5707   cat conftest.err >&5
5708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709   (exit $ac_status); } &&
5710          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5712   (eval $ac_try) 2>&5
5713   ac_status=$?
5714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715   (exit $ac_status); }; } &&
5716          { ac_try='test -s conftest$ac_exeext'
5717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5718   (eval $ac_try) 2>&5
5719   ac_status=$?
5720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721   (exit $ac_status); }; }; then
5722   lt_cv_cc_needs_belf=yes
5723 else
5724   echo "$as_me: failed program was:" >&5
5725 sed 's/^/| /' conftest.$ac_ext >&5
5726
5727 lt_cv_cc_needs_belf=no
5728 fi
5729 rm -f conftest.err conftest.$ac_objext \
5730       conftest$ac_exeext conftest.$ac_ext
5731      ac_ext=c
5732 ac_cpp='$CPP $CPPFLAGS'
5733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5736
5737 fi
5738 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5739 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5740   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5741     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5742     CFLAGS="$SAVE_CFLAGS"
5743   fi
5744   ;;
5745
5746 esac
5747
5748 need_locks="$enable_libtool_lock"
5749
5750
5751
5752 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5753 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5754 if test "${ac_cv_header_stdc+set}" = set; then
5755   echo $ECHO_N "(cached) $ECHO_C" >&6
5756 else
5757   cat >conftest.$ac_ext <<_ACEOF
5758 /* confdefs.h.  */
5759 _ACEOF
5760 cat confdefs.h >>conftest.$ac_ext
5761 cat >>conftest.$ac_ext <<_ACEOF
5762 /* end confdefs.h.  */
5763 #include <stdlib.h>
5764 #include <stdarg.h>
5765 #include <string.h>
5766 #include <float.h>
5767
5768 int
5769 main ()
5770 {
5771
5772   ;
5773   return 0;
5774 }
5775 _ACEOF
5776 rm -f conftest.$ac_objext
5777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5778   (eval $ac_compile) 2>conftest.er1
5779   ac_status=$?
5780   grep -v '^ *+' conftest.er1 >conftest.err
5781   rm -f conftest.er1
5782   cat conftest.err >&5
5783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784   (exit $ac_status); } &&
5785          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5787   (eval $ac_try) 2>&5
5788   ac_status=$?
5789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790   (exit $ac_status); }; } &&
5791          { ac_try='test -s conftest.$ac_objext'
5792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5793   (eval $ac_try) 2>&5
5794   ac_status=$?
5795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796   (exit $ac_status); }; }; then
5797   ac_cv_header_stdc=yes
5798 else
5799   echo "$as_me: failed program was:" >&5
5800 sed 's/^/| /' conftest.$ac_ext >&5
5801
5802 ac_cv_header_stdc=no
5803 fi
5804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5805
5806 if test $ac_cv_header_stdc = yes; then
5807   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5808   cat >conftest.$ac_ext <<_ACEOF
5809 /* confdefs.h.  */
5810 _ACEOF
5811 cat confdefs.h >>conftest.$ac_ext
5812 cat >>conftest.$ac_ext <<_ACEOF
5813 /* end confdefs.h.  */
5814 #include <string.h>
5815
5816 _ACEOF
5817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5818   $EGREP "memchr" >/dev/null 2>&1; then
5819   :
5820 else
5821   ac_cv_header_stdc=no
5822 fi
5823 rm -f conftest*
5824
5825 fi
5826
5827 if test $ac_cv_header_stdc = yes; then
5828   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5829   cat >conftest.$ac_ext <<_ACEOF
5830 /* confdefs.h.  */
5831 _ACEOF
5832 cat confdefs.h >>conftest.$ac_ext
5833 cat >>conftest.$ac_ext <<_ACEOF
5834 /* end confdefs.h.  */
5835 #include <stdlib.h>
5836
5837 _ACEOF
5838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5839   $EGREP "free" >/dev/null 2>&1; then
5840   :
5841 else
5842   ac_cv_header_stdc=no
5843 fi
5844 rm -f conftest*
5845
5846 fi
5847
5848 if test $ac_cv_header_stdc = yes; then
5849   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5850   if test "$cross_compiling" = yes; then
5851   :
5852 else
5853   cat >conftest.$ac_ext <<_ACEOF
5854 /* confdefs.h.  */
5855 _ACEOF
5856 cat confdefs.h >>conftest.$ac_ext
5857 cat >>conftest.$ac_ext <<_ACEOF
5858 /* end confdefs.h.  */
5859 #include <ctype.h>
5860 #if ((' ' & 0x0FF) == 0x020)
5861 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5862 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5863 #else
5864 # define ISLOWER(c) \
5865                    (('a' <= (c) && (c) <= 'i') \
5866                      || ('j' <= (c) && (c) <= 'r') \
5867                      || ('s' <= (c) && (c) <= 'z'))
5868 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5869 #endif
5870
5871 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5872 int
5873 main ()
5874 {
5875   int i;
5876   for (i = 0; i < 256; i++)
5877     if (XOR (islower (i), ISLOWER (i))
5878         || toupper (i) != TOUPPER (i))
5879       exit(2);
5880   exit (0);
5881 }
5882 _ACEOF
5883 rm -f conftest$ac_exeext
5884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5885   (eval $ac_link) 2>&5
5886   ac_status=$?
5887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5890   (eval $ac_try) 2>&5
5891   ac_status=$?
5892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893   (exit $ac_status); }; }; then
5894   :
5895 else
5896   echo "$as_me: program exited with status $ac_status" >&5
5897 echo "$as_me: failed program was:" >&5
5898 sed 's/^/| /' conftest.$ac_ext >&5
5899
5900 ( exit $ac_status )
5901 ac_cv_header_stdc=no
5902 fi
5903 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5904 fi
5905 fi
5906 fi
5907 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5908 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5909 if test $ac_cv_header_stdc = yes; then
5910
5911 cat >>confdefs.h <<\_ACEOF
5912 #define STDC_HEADERS 1
5913 _ACEOF
5914
5915 fi
5916
5917 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5928                   inttypes.h stdint.h unistd.h
5929 do
5930 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5931 echo "$as_me:$LINENO: checking for $ac_header" >&5
5932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5934   echo $ECHO_N "(cached) $ECHO_C" >&6
5935 else
5936   cat >conftest.$ac_ext <<_ACEOF
5937 /* confdefs.h.  */
5938 _ACEOF
5939 cat confdefs.h >>conftest.$ac_ext
5940 cat >>conftest.$ac_ext <<_ACEOF
5941 /* end confdefs.h.  */
5942 $ac_includes_default
5943
5944 #include <$ac_header>
5945 _ACEOF
5946 rm -f conftest.$ac_objext
5947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5948   (eval $ac_compile) 2>conftest.er1
5949   ac_status=$?
5950   grep -v '^ *+' conftest.er1 >conftest.err
5951   rm -f conftest.er1
5952   cat conftest.err >&5
5953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954   (exit $ac_status); } &&
5955          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5957   (eval $ac_try) 2>&5
5958   ac_status=$?
5959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960   (exit $ac_status); }; } &&
5961          { ac_try='test -s conftest.$ac_objext'
5962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5963   (eval $ac_try) 2>&5
5964   ac_status=$?
5965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966   (exit $ac_status); }; }; then
5967   eval "$as_ac_Header=yes"
5968 else
5969   echo "$as_me: failed program was:" >&5
5970 sed 's/^/| /' conftest.$ac_ext >&5
5971
5972 eval "$as_ac_Header=no"
5973 fi
5974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5975 fi
5976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5977 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5978 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5979   cat >>confdefs.h <<_ACEOF
5980 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5981 _ACEOF
5982
5983 fi
5984
5985 done
5986
5987
5988
5989 for ac_header in dlfcn.h
5990 do
5991 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5992 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5993   echo "$as_me:$LINENO: checking for $ac_header" >&5
5994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5996   echo $ECHO_N "(cached) $ECHO_C" >&6
5997 fi
5998 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5999 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6000 else
6001   # Is the header compilable?
6002 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6003 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6004 cat >conftest.$ac_ext <<_ACEOF
6005 /* confdefs.h.  */
6006 _ACEOF
6007 cat confdefs.h >>conftest.$ac_ext
6008 cat >>conftest.$ac_ext <<_ACEOF
6009 /* end confdefs.h.  */
6010 $ac_includes_default
6011 #include <$ac_header>
6012 _ACEOF
6013 rm -f conftest.$ac_objext
6014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6015   (eval $ac_compile) 2>conftest.er1
6016   ac_status=$?
6017   grep -v '^ *+' conftest.er1 >conftest.err
6018   rm -f conftest.er1
6019   cat conftest.err >&5
6020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021   (exit $ac_status); } &&
6022          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6024   (eval $ac_try) 2>&5
6025   ac_status=$?
6026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027   (exit $ac_status); }; } &&
6028          { ac_try='test -s conftest.$ac_objext'
6029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6030   (eval $ac_try) 2>&5
6031   ac_status=$?
6032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033   (exit $ac_status); }; }; then
6034   ac_header_compiler=yes
6035 else
6036   echo "$as_me: failed program was:" >&5
6037 sed 's/^/| /' conftest.$ac_ext >&5
6038
6039 ac_header_compiler=no
6040 fi
6041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6042 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6043 echo "${ECHO_T}$ac_header_compiler" >&6
6044
6045 # Is the header present?
6046 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6047 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6048 cat >conftest.$ac_ext <<_ACEOF
6049 /* confdefs.h.  */
6050 _ACEOF
6051 cat confdefs.h >>conftest.$ac_ext
6052 cat >>conftest.$ac_ext <<_ACEOF
6053 /* end confdefs.h.  */
6054 #include <$ac_header>
6055 _ACEOF
6056 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6057   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6058   ac_status=$?
6059   grep -v '^ *+' conftest.er1 >conftest.err
6060   rm -f conftest.er1
6061   cat conftest.err >&5
6062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063   (exit $ac_status); } >/dev/null; then
6064   if test -s conftest.err; then
6065     ac_cpp_err=$ac_c_preproc_warn_flag
6066     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6067   else
6068     ac_cpp_err=
6069   fi
6070 else
6071   ac_cpp_err=yes
6072 fi
6073 if test -z "$ac_cpp_err"; then
6074   ac_header_preproc=yes
6075 else
6076   echo "$as_me: failed program was:" >&5
6077 sed 's/^/| /' conftest.$ac_ext >&5
6078
6079   ac_header_preproc=no
6080 fi
6081 rm -f conftest.err conftest.$ac_ext
6082 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6083 echo "${ECHO_T}$ac_header_preproc" >&6
6084
6085 # So?  What about this header?
6086 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6087   yes:no: )
6088     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6089 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6090     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6091 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6092     ac_header_preproc=yes
6093     ;;
6094   no:yes:* )
6095     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6096 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6097     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6098 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6099     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6100 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6101     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6102 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6103     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6104 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6105     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6106 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6107     (
6108       cat <<\_ASBOX
6109 ## ------------------------------- ##
6110 ## Report this to nfs@lists.sf.net ##
6111 ## ------------------------------- ##
6112 _ASBOX
6113     ) |
6114       sed "s/^/$as_me: WARNING:     /" >&2
6115     ;;
6116 esac
6117 echo "$as_me:$LINENO: checking for $ac_header" >&5
6118 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6119 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6120   echo $ECHO_N "(cached) $ECHO_C" >&6
6121 else
6122   eval "$as_ac_Header=\$ac_header_preproc"
6123 fi
6124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6125 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6126
6127 fi
6128 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6129   cat >>confdefs.h <<_ACEOF
6130 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6131 _ACEOF
6132
6133 fi
6134
6135 done
6136
6137
6138
6139 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6140     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6141     (test "X$CXX" != "Xg++"))) ; then
6142   ac_ext=cc
6143 ac_cpp='$CXXCPP $CPPFLAGS'
6144 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6145 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6146 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6147 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6148 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6149 if test -z "$CXXCPP"; then
6150   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6151   echo $ECHO_N "(cached) $ECHO_C" >&6
6152 else
6153       # Double quotes because CXXCPP needs to be expanded
6154     for CXXCPP in "$CXX -E" "/lib/cpp"
6155     do
6156       ac_preproc_ok=false
6157 for ac_cxx_preproc_warn_flag in '' yes
6158 do
6159   # Use a header file that comes with gcc, so configuring glibc
6160   # with a fresh cross-compiler works.
6161   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6162   # <limits.h> exists even on freestanding compilers.
6163   # On the NeXT, cc -E runs the code through the compiler's parser,
6164   # not just through cpp. "Syntax error" is here to catch this case.
6165   cat >conftest.$ac_ext <<_ACEOF
6166 /* confdefs.h.  */
6167 _ACEOF
6168 cat confdefs.h >>conftest.$ac_ext
6169 cat >>conftest.$ac_ext <<_ACEOF
6170 /* end confdefs.h.  */
6171 #ifdef __STDC__
6172 # include <limits.h>
6173 #else
6174 # include <assert.h>
6175 #endif
6176                      Syntax error
6177 _ACEOF
6178 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6179   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6180   ac_status=$?
6181   grep -v '^ *+' conftest.er1 >conftest.err
6182   rm -f conftest.er1
6183   cat conftest.err >&5
6184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185   (exit $ac_status); } >/dev/null; then
6186   if test -s conftest.err; then
6187     ac_cpp_err=$ac_cxx_preproc_warn_flag
6188     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6189   else
6190     ac_cpp_err=
6191   fi
6192 else
6193   ac_cpp_err=yes
6194 fi
6195 if test -z "$ac_cpp_err"; then
6196   :
6197 else
6198   echo "$as_me: failed program was:" >&5
6199 sed 's/^/| /' conftest.$ac_ext >&5
6200
6201   # Broken: fails on valid input.
6202 continue
6203 fi
6204 rm -f conftest.err conftest.$ac_ext
6205
6206   # OK, works on sane cases.  Now check whether non-existent headers
6207   # can be detected and how.
6208   cat >conftest.$ac_ext <<_ACEOF
6209 /* confdefs.h.  */
6210 _ACEOF
6211 cat confdefs.h >>conftest.$ac_ext
6212 cat >>conftest.$ac_ext <<_ACEOF
6213 /* end confdefs.h.  */
6214 #include <ac_nonexistent.h>
6215 _ACEOF
6216 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6217   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6218   ac_status=$?
6219   grep -v '^ *+' conftest.er1 >conftest.err
6220   rm -f conftest.er1
6221   cat conftest.err >&5
6222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223   (exit $ac_status); } >/dev/null; then
6224   if test -s conftest.err; then
6225     ac_cpp_err=$ac_cxx_preproc_warn_flag
6226     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6227   else
6228     ac_cpp_err=
6229   fi
6230 else
6231   ac_cpp_err=yes
6232 fi
6233 if test -z "$ac_cpp_err"; then
6234   # Broken: success on invalid input.
6235 continue
6236 else
6237   echo "$as_me: failed program was:" >&5
6238 sed 's/^/| /' conftest.$ac_ext >&5
6239
6240   # Passes both tests.
6241 ac_preproc_ok=:
6242 break
6243 fi
6244 rm -f conftest.err conftest.$ac_ext
6245
6246 done
6247 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6248 rm -f conftest.err conftest.$ac_ext
6249 if $ac_preproc_ok; then
6250   break
6251 fi
6252
6253     done
6254     ac_cv_prog_CXXCPP=$CXXCPP
6255
6256 fi
6257   CXXCPP=$ac_cv_prog_CXXCPP
6258 else
6259   ac_cv_prog_CXXCPP=$CXXCPP
6260 fi
6261 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6262 echo "${ECHO_T}$CXXCPP" >&6
6263 ac_preproc_ok=false
6264 for ac_cxx_preproc_warn_flag in '' yes
6265 do
6266   # Use a header file that comes with gcc, so configuring glibc
6267   # with a fresh cross-compiler works.
6268   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6269   # <limits.h> exists even on freestanding compilers.
6270   # On the NeXT, cc -E runs the code through the compiler's parser,
6271   # not just through cpp. "Syntax error" is here to catch this case.
6272   cat >conftest.$ac_ext <<_ACEOF
6273 /* confdefs.h.  */
6274 _ACEOF
6275 cat confdefs.h >>conftest.$ac_ext
6276 cat >>conftest.$ac_ext <<_ACEOF
6277 /* end confdefs.h.  */
6278 #ifdef __STDC__
6279 # include <limits.h>
6280 #else
6281 # include <assert.h>
6282 #endif
6283                      Syntax error
6284 _ACEOF
6285 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6286   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6287   ac_status=$?
6288   grep -v '^ *+' conftest.er1 >conftest.err
6289   rm -f conftest.er1
6290   cat conftest.err >&5
6291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292   (exit $ac_status); } >/dev/null; then
6293   if test -s conftest.err; then
6294     ac_cpp_err=$ac_cxx_preproc_warn_flag
6295     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6296   else
6297     ac_cpp_err=
6298   fi
6299 else
6300   ac_cpp_err=yes
6301 fi
6302 if test -z "$ac_cpp_err"; then
6303   :
6304 else
6305   echo "$as_me: failed program was:" >&5
6306 sed 's/^/| /' conftest.$ac_ext >&5
6307
6308   # Broken: fails on valid input.
6309 continue
6310 fi
6311 rm -f conftest.err conftest.$ac_ext
6312
6313   # OK, works on sane cases.  Now check whether non-existent headers
6314   # can be detected and how.
6315   cat >conftest.$ac_ext <<_ACEOF
6316 /* confdefs.h.  */
6317 _ACEOF
6318 cat confdefs.h >>conftest.$ac_ext
6319 cat >>conftest.$ac_ext <<_ACEOF
6320 /* end confdefs.h.  */
6321 #include <ac_nonexistent.h>
6322 _ACEOF
6323 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6324   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6325   ac_status=$?
6326   grep -v '^ *+' conftest.er1 >conftest.err
6327   rm -f conftest.er1
6328   cat conftest.err >&5
6329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330   (exit $ac_status); } >/dev/null; then
6331   if test -s conftest.err; then
6332     ac_cpp_err=$ac_cxx_preproc_warn_flag
6333     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6334   else
6335     ac_cpp_err=
6336   fi
6337 else
6338   ac_cpp_err=yes
6339 fi
6340 if test -z "$ac_cpp_err"; then
6341   # Broken: success on invalid input.
6342 continue
6343 else
6344   echo "$as_me: failed program was:" >&5
6345 sed 's/^/| /' conftest.$ac_ext >&5
6346
6347   # Passes both tests.
6348 ac_preproc_ok=:
6349 break
6350 fi
6351 rm -f conftest.err conftest.$ac_ext
6352
6353 done
6354 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6355 rm -f conftest.err conftest.$ac_ext
6356 if $ac_preproc_ok; then
6357   :
6358 else
6359   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6360 See \`config.log' for more details." >&5
6361 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6362 See \`config.log' for more details." >&2;}
6363    { (exit 1); exit 1; }; }
6364 fi
6365
6366 ac_ext=cc
6367 ac_cpp='$CXXCPP $CPPFLAGS'
6368 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6369 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6370 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6371
6372 fi
6373
6374
6375 ac_ext=f
6376 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6377 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6378 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6379 if test -n "$ac_tool_prefix"; then
6380   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6381   do
6382     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6383 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6384 echo "$as_me:$LINENO: checking for $ac_word" >&5
6385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6386 if test "${ac_cv_prog_F77+set}" = set; then
6387   echo $ECHO_N "(cached) $ECHO_C" >&6
6388 else
6389   if test -n "$F77"; then
6390   ac_cv_prog_F77="$F77" # Let the user override the test.
6391 else
6392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6393 for as_dir in $PATH
6394 do
6395   IFS=$as_save_IFS
6396   test -z "$as_dir" && as_dir=.
6397   for ac_exec_ext in '' $ac_executable_extensions; do
6398   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6399     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6400     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6401     break 2
6402   fi
6403 done
6404 done
6405
6406 fi
6407 fi
6408 F77=$ac_cv_prog_F77
6409 if test -n "$F77"; then
6410   echo "$as_me:$LINENO: result: $F77" >&5
6411 echo "${ECHO_T}$F77" >&6
6412 else
6413   echo "$as_me:$LINENO: result: no" >&5
6414 echo "${ECHO_T}no" >&6
6415 fi
6416
6417     test -n "$F77" && break
6418   done
6419 fi
6420 if test -z "$F77"; then
6421   ac_ct_F77=$F77
6422   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6423 do
6424   # Extract the first word of "$ac_prog", so it can be a program name with args.
6425 set dummy $ac_prog; ac_word=$2
6426 echo "$as_me:$LINENO: checking for $ac_word" >&5
6427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6428 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6429   echo $ECHO_N "(cached) $ECHO_C" >&6
6430 else
6431   if test -n "$ac_ct_F77"; then
6432   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6433 else
6434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6435 for as_dir in $PATH
6436 do
6437   IFS=$as_save_IFS
6438   test -z "$as_dir" && as_dir=.
6439   for ac_exec_ext in '' $ac_executable_extensions; do
6440   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6441     ac_cv_prog_ac_ct_F77="$ac_prog"
6442     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6443     break 2
6444   fi
6445 done
6446 done
6447
6448 fi
6449 fi
6450 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6451 if test -n "$ac_ct_F77"; then
6452   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6453 echo "${ECHO_T}$ac_ct_F77" >&6
6454 else
6455   echo "$as_me:$LINENO: result: no" >&5
6456 echo "${ECHO_T}no" >&6
6457 fi
6458
6459   test -n "$ac_ct_F77" && break
6460 done
6461
6462   F77=$ac_ct_F77
6463 fi
6464
6465
6466 # Provide some information about the compiler.
6467 echo "$as_me:6467:" \
6468      "checking for Fortran 77 compiler version" >&5
6469 ac_compiler=`set X $ac_compile; echo $2`
6470 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6471   (eval $ac_compiler --version </dev/null >&5) 2>&5
6472   ac_status=$?
6473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474   (exit $ac_status); }
6475 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6476   (eval $ac_compiler -v </dev/null >&5) 2>&5
6477   ac_status=$?
6478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479   (exit $ac_status); }
6480 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6481   (eval $ac_compiler -V </dev/null >&5) 2>&5
6482   ac_status=$?
6483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484   (exit $ac_status); }
6485 rm -f a.out
6486
6487 # If we don't use `.F' as extension, the preprocessor is not run on the
6488 # input file.  (Note that this only needs to work for GNU compilers.)
6489 ac_save_ext=$ac_ext
6490 ac_ext=F
6491 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6492 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6493 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6494   echo $ECHO_N "(cached) $ECHO_C" >&6
6495 else
6496   cat >conftest.$ac_ext <<_ACEOF
6497       program main
6498 #ifndef __GNUC__
6499        choke me
6500 #endif
6501
6502       end
6503 _ACEOF
6504 rm -f conftest.$ac_objext
6505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6506   (eval $ac_compile) 2>conftest.er1
6507   ac_status=$?
6508   grep -v '^ *+' conftest.er1 >conftest.err
6509   rm -f conftest.er1
6510   cat conftest.err >&5
6511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6512   (exit $ac_status); } &&
6513          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
6514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6515   (eval $ac_try) 2>&5
6516   ac_status=$?
6517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518   (exit $ac_status); }; } &&
6519          { ac_try='test -s conftest.$ac_objext'
6520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6521   (eval $ac_try) 2>&5
6522   ac_status=$?
6523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524   (exit $ac_status); }; }; then
6525   ac_compiler_gnu=yes
6526 else
6527   echo "$as_me: failed program was:" >&5
6528 sed 's/^/| /' conftest.$ac_ext >&5
6529
6530 ac_compiler_gnu=no
6531 fi
6532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6533 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6534
6535 fi
6536 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6537 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6538 ac_ext=$ac_save_ext
6539 ac_test_FFLAGS=${FFLAGS+set}
6540 ac_save_FFLAGS=$FFLAGS
6541 FFLAGS=
6542 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6543 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6544 if test "${ac_cv_prog_f77_g+set}" = set; then
6545   echo $ECHO_N "(cached) $ECHO_C" >&6
6546 else
6547   FFLAGS=-g
6548 cat >conftest.$ac_ext <<_ACEOF
6549       program main
6550
6551       end
6552 _ACEOF
6553 rm -f conftest.$ac_objext
6554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6555   (eval $ac_compile) 2>conftest.er1
6556   ac_status=$?
6557   grep -v '^ *+' conftest.er1 >conftest.err
6558   rm -f conftest.er1
6559   cat conftest.err >&5
6560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561   (exit $ac_status); } &&
6562          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
6563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6564   (eval $ac_try) 2>&5
6565   ac_status=$?
6566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567   (exit $ac_status); }; } &&
6568          { ac_try='test -s conftest.$ac_objext'
6569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6570   (eval $ac_try) 2>&5
6571   ac_status=$?
6572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573   (exit $ac_status); }; }; then
6574   ac_cv_prog_f77_g=yes
6575 else
6576   echo "$as_me: failed program was:" >&5
6577 sed 's/^/| /' conftest.$ac_ext >&5
6578
6579 ac_cv_prog_f77_g=no
6580 fi
6581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6582
6583 fi
6584 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6585 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6586 if test "$ac_test_FFLAGS" = set; then
6587   FFLAGS=$ac_save_FFLAGS
6588 elif test $ac_cv_prog_f77_g = yes; then
6589   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6590     FFLAGS="-g -O2"
6591   else
6592     FFLAGS="-g"
6593   fi
6594 else
6595   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6596     FFLAGS="-O2"
6597   else
6598     FFLAGS=
6599   fi
6600 fi
6601
6602 G77=`test $ac_compiler_gnu = yes && echo yes`
6603 ac_ext=c
6604 ac_cpp='$CPP $CPPFLAGS'
6605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6608
6609
6610
6611 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6612
6613 # find the maximum length of command line arguments
6614 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6615 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6616 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6617   echo $ECHO_N "(cached) $ECHO_C" >&6
6618 else
6619     i=0
6620   teststring="ABCD"
6621
6622   case $build_os in
6623   msdosdjgpp*)
6624     # On DJGPP, this test can blow up pretty badly due to problems in libc
6625     # (any single argument exceeding 2000 bytes causes a buffer overrun
6626     # during glob expansion).  Even if it were fixed, the result of this
6627     # check would be larger than it should be.
6628     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6629     ;;
6630
6631   gnu*)
6632     # Under GNU Hurd, this test is not required because there is
6633     # no limit to the length of command line arguments.
6634     # Libtool will interpret -1 as no limit whatsoever
6635     lt_cv_sys_max_cmd_len=-1;
6636     ;;
6637
6638   cygwin* | mingw*)
6639     # On Win9x/ME, this test blows up -- it succeeds, but takes
6640     # about 5 minutes as the teststring grows exponentially.
6641     # Worse, since 9x/ME are not pre-emptively multitasking,
6642     # you end up with a "frozen" computer, even though with patience
6643     # the test eventually succeeds (with a max line length of 256k).
6644     # Instead, let's just punt: use the minimum linelength reported by
6645     # all of the supported platforms: 8192 (on NT/2K/XP).
6646     lt_cv_sys_max_cmd_len=8192;
6647     ;;
6648
6649   amigaos*)
6650     # On AmigaOS with pdksh, this test takes hours, literally.
6651     # So we just punt and use a minimum line length of 8192.
6652     lt_cv_sys_max_cmd_len=8192;
6653     ;;
6654
6655   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6656     # This has been around since 386BSD, at least.  Likely further.
6657     if test -x /sbin/sysctl; then
6658       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6659     elif test -x /usr/sbin/sysctl; then
6660       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6661     else
6662       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6663     fi
6664     # And add a safety zone
6665     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6666     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6667     ;;
6668   osf*)
6669     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6670     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6671     # nice to cause kernel panics so lets avoid the loop below.
6672     # First set a reasonable default.
6673     lt_cv_sys_max_cmd_len=16384
6674     #
6675     if test -x /sbin/sysconfig; then
6676       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6677         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6678       esac
6679     fi
6680     ;;
6681   *)
6682     # If test is not a shell built-in, we'll probably end up computing a
6683     # maximum length that is only half of the actual maximum length, but
6684     # we can't tell.
6685     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6686     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6687                = "XX$teststring") >/dev/null 2>&1 &&
6688             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6689             lt_cv_sys_max_cmd_len=$new_result &&
6690             test $i != 17 # 1/2 MB should be enough
6691     do
6692       i=`expr $i + 1`
6693       teststring=$teststring$teststring
6694     done
6695     teststring=
6696     # Add a significant safety factor because C++ compilers can tack on massive
6697     # amounts of additional arguments before passing them to the linker.
6698     # It appears as though 1/2 is a usable value.
6699     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6700     ;;
6701   esac
6702
6703 fi
6704
6705 if test -n $lt_cv_sys_max_cmd_len ; then
6706   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6707 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6708 else
6709   echo "$as_me:$LINENO: result: none" >&5
6710 echo "${ECHO_T}none" >&6
6711 fi
6712
6713
6714
6715
6716 # Check for command to grab the raw symbol name followed by C symbol from nm.
6717 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6718 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6719 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6720   echo $ECHO_N "(cached) $ECHO_C" >&6
6721 else
6722
6723 # These are sane defaults that work on at least a few old systems.
6724 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6725
6726 # Character class describing NM global symbol codes.
6727 symcode='[BCDEGRST]'
6728
6729 # Regexp to match symbols that can be accessed directly from C.
6730 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6731
6732 # Transform an extracted symbol line into a proper C declaration
6733 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6734
6735 # Transform an extracted symbol line into symbol name and symbol address
6736 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'"
6737
6738 # Define system-specific variables.
6739 case $host_os in
6740 aix*)
6741   symcode='[BCDT]'
6742   ;;
6743 cygwin* | mingw* | pw32*)
6744   symcode='[ABCDGISTW]'
6745   ;;
6746 hpux*) # Its linker distinguishes data from code symbols
6747   if test "$host_cpu" = ia64; then
6748     symcode='[ABCDEGRST]'
6749   fi
6750   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6751   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'"
6752   ;;
6753 linux*)
6754   if test "$host_cpu" = ia64; then
6755     symcode='[ABCDGIRSTW]'
6756     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6757     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'"
6758   fi
6759   ;;
6760 irix* | nonstopux*)
6761   symcode='[BCDEGRST]'
6762   ;;
6763 osf*)
6764   symcode='[BCDEGQRST]'
6765   ;;
6766 solaris* | sysv5*)
6767   symcode='[BDRT]'
6768   ;;
6769 sysv4)
6770   symcode='[DFNSTU]'
6771   ;;
6772 esac
6773
6774 # Handle CRLF in mingw tool chain
6775 opt_cr=
6776 case $build_os in
6777 mingw*)
6778   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6779   ;;
6780 esac
6781
6782 # If we're using GNU nm, then use its standard symbol codes.
6783 case `$NM -V 2>&1` in
6784 *GNU* | *'with BFD'*)
6785   symcode='[ABCDGIRSTW]' ;;
6786 esac
6787
6788 # Try without a prefix undercore, then with it.
6789 for ac_symprfx in "" "_"; do
6790
6791   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6792   symxfrm="\\1 $ac_symprfx\\2 \\2"
6793
6794   # Write the raw and C identifiers.
6795   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6796
6797   # Check to see that the pipe works correctly.
6798   pipe_works=no
6799
6800   rm -f conftest*
6801   cat > conftest.$ac_ext <<EOF
6802 #ifdef __cplusplus
6803 extern "C" {
6804 #endif
6805 char nm_test_var;
6806 void nm_test_func(){}
6807 #ifdef __cplusplus
6808 }
6809 #endif
6810 int main(){nm_test_var='a';nm_test_func();return(0);}
6811 EOF
6812
6813   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6814   (eval $ac_compile) 2>&5
6815   ac_status=$?
6816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817   (exit $ac_status); }; then
6818     # Now try to grab the symbols.
6819     nlist=conftest.nm
6820     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6821   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6822   ac_status=$?
6823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824   (exit $ac_status); } && test -s "$nlist"; then
6825       # Try sorting and uniquifying the output.
6826       if sort "$nlist" | uniq > "$nlist"T; then
6827         mv -f "$nlist"T "$nlist"
6828       else
6829         rm -f "$nlist"T
6830       fi
6831
6832       # Make sure that we snagged all the symbols we need.
6833       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6834         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6835           cat <<EOF > conftest.$ac_ext
6836 #ifdef __cplusplus
6837 extern "C" {
6838 #endif
6839
6840 EOF
6841           # Now generate the symbol file.
6842           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6843
6844           cat <<EOF >> conftest.$ac_ext
6845 #if defined (__STDC__) && __STDC__
6846 # define lt_ptr_t void *
6847 #else
6848 # define lt_ptr_t char *
6849 # define const
6850 #endif
6851
6852 /* The mapping between symbol names and symbols. */
6853 const struct {
6854   const char *name;
6855   lt_ptr_t address;
6856 }
6857 lt_preloaded_symbols[] =
6858 {
6859 EOF
6860           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6861           cat <<\EOF >> conftest.$ac_ext
6862   {0, (lt_ptr_t) 0}
6863 };
6864
6865 #ifdef __cplusplus
6866 }
6867 #endif
6868 EOF
6869           # Now try linking the two files.
6870           mv conftest.$ac_objext conftstm.$ac_objext
6871           lt_save_LIBS="$LIBS"
6872           lt_save_CFLAGS="$CFLAGS"
6873           LIBS="conftstm.$ac_objext"
6874           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6875           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6876   (eval $ac_link) 2>&5
6877   ac_status=$?
6878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6880             pipe_works=yes
6881           fi
6882           LIBS="$lt_save_LIBS"
6883           CFLAGS="$lt_save_CFLAGS"
6884         else
6885           echo "cannot find nm_test_func in $nlist" >&5
6886         fi
6887       else
6888         echo "cannot find nm_test_var in $nlist" >&5
6889       fi
6890     else
6891       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6892     fi
6893   else
6894     echo "$progname: failed program was:" >&5
6895     cat conftest.$ac_ext >&5
6896   fi
6897   rm -f conftest* conftst*
6898
6899   # Do not use the global_symbol_pipe unless it works.
6900   if test "$pipe_works" = yes; then
6901     break
6902   else
6903     lt_cv_sys_global_symbol_pipe=
6904   fi
6905 done
6906
6907 fi
6908
6909 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6910   lt_cv_sys_global_symbol_to_cdecl=
6911 fi
6912 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6913   echo "$as_me:$LINENO: result: failed" >&5
6914 echo "${ECHO_T}failed" >&6
6915 else
6916   echo "$as_me:$LINENO: result: ok" >&5
6917 echo "${ECHO_T}ok" >&6
6918 fi
6919
6920 echo "$as_me:$LINENO: checking for objdir" >&5
6921 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6922 if test "${lt_cv_objdir+set}" = set; then
6923   echo $ECHO_N "(cached) $ECHO_C" >&6
6924 else
6925   rm -f .libs 2>/dev/null
6926 mkdir .libs 2>/dev/null
6927 if test -d .libs; then
6928   lt_cv_objdir=.libs
6929 else
6930   # MS-DOS does not allow filenames that begin with a dot.
6931   lt_cv_objdir=_libs
6932 fi
6933 rmdir .libs 2>/dev/null
6934 fi
6935 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6936 echo "${ECHO_T}$lt_cv_objdir" >&6
6937 objdir=$lt_cv_objdir
6938
6939
6940
6941
6942
6943 case $host_os in
6944 aix3*)
6945   # AIX sometimes has problems with the GCC collect2 program.  For some
6946   # reason, if we set the COLLECT_NAMES environment variable, the problems
6947   # vanish in a puff of smoke.
6948   if test "X${COLLECT_NAMES+set}" != Xset; then
6949     COLLECT_NAMES=
6950     export COLLECT_NAMES
6951   fi
6952   ;;
6953 esac
6954
6955 # Sed substitution that helps us do robust quoting.  It backslashifies
6956 # metacharacters that are still active within double-quoted strings.
6957 Xsed='sed -e 1s/^X//'
6958 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6959
6960 # Same as above, but do not quote variable references.
6961 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6962
6963 # Sed substitution to delay expansion of an escaped shell variable in a
6964 # double_quote_subst'ed string.
6965 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6966
6967 # Sed substitution to avoid accidental globbing in evaled expressions
6968 no_glob_subst='s/\*/\\\*/g'
6969
6970 # Constants:
6971 rm="rm -f"
6972
6973 # Global variables:
6974 default_ofile=libtool
6975 can_build_shared=yes
6976
6977 # All known linkers require a `.a' archive for static linking (except MSVC,
6978 # which needs '.lib').
6979 libext=a
6980 ltmain="$ac_aux_dir/ltmain.sh"
6981 ofile="$default_ofile"
6982 with_gnu_ld="$lt_cv_prog_gnu_ld"
6983
6984 if test -n "$ac_tool_prefix"; then
6985   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6986 set dummy ${ac_tool_prefix}ar; ac_word=$2
6987 echo "$as_me:$LINENO: checking for $ac_word" >&5
6988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6989 if test "${ac_cv_prog_AR+set}" = set; then
6990   echo $ECHO_N "(cached) $ECHO_C" >&6
6991 else
6992   if test -n "$AR"; then
6993   ac_cv_prog_AR="$AR" # Let the user override the test.
6994 else
6995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6996 for as_dir in $PATH
6997 do
6998   IFS=$as_save_IFS
6999   test -z "$as_dir" && as_dir=.
7000   for ac_exec_ext in '' $ac_executable_extensions; do
7001   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7002     ac_cv_prog_AR="${ac_tool_prefix}ar"
7003     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7004     break 2
7005   fi
7006 done
7007 done
7008
7009 fi
7010 fi
7011 AR=$ac_cv_prog_AR
7012 if test -n "$AR"; then
7013   echo "$as_me:$LINENO: result: $AR" >&5
7014 echo "${ECHO_T}$AR" >&6
7015 else
7016   echo "$as_me:$LINENO: result: no" >&5
7017 echo "${ECHO_T}no" >&6
7018 fi
7019
7020 fi
7021 if test -z "$ac_cv_prog_AR"; then
7022   ac_ct_AR=$AR
7023   # Extract the first word of "ar", so it can be a program name with args.
7024 set dummy ar; ac_word=$2
7025 echo "$as_me:$LINENO: checking for $ac_word" >&5
7026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7027 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7028   echo $ECHO_N "(cached) $ECHO_C" >&6
7029 else
7030   if test -n "$ac_ct_AR"; then
7031   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7032 else
7033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7034 for as_dir in $PATH
7035 do
7036   IFS=$as_save_IFS
7037   test -z "$as_dir" && as_dir=.
7038   for ac_exec_ext in '' $ac_executable_extensions; do
7039   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7040     ac_cv_prog_ac_ct_AR="ar"
7041     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7042     break 2
7043   fi
7044 done
7045 done
7046
7047   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7048 fi
7049 fi
7050 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7051 if test -n "$ac_ct_AR"; then
7052   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7053 echo "${ECHO_T}$ac_ct_AR" >&6
7054 else
7055   echo "$as_me:$LINENO: result: no" >&5
7056 echo "${ECHO_T}no" >&6
7057 fi
7058
7059   AR=$ac_ct_AR
7060 else
7061   AR="$ac_cv_prog_AR"
7062 fi
7063
7064 if test -n "$ac_tool_prefix"; then
7065   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7066 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7067 echo "$as_me:$LINENO: checking for $ac_word" >&5
7068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7069 if test "${ac_cv_prog_RANLIB+set}" = set; then
7070   echo $ECHO_N "(cached) $ECHO_C" >&6
7071 else
7072   if test -n "$RANLIB"; then
7073   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7074 else
7075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7076 for as_dir in $PATH
7077 do
7078   IFS=$as_save_IFS
7079   test -z "$as_dir" && as_dir=.
7080   for ac_exec_ext in '' $ac_executable_extensions; do
7081   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7082     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7083     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7084     break 2
7085   fi
7086 done
7087 done
7088
7089 fi
7090 fi
7091 RANLIB=$ac_cv_prog_RANLIB
7092 if test -n "$RANLIB"; then
7093   echo "$as_me:$LINENO: result: $RANLIB" >&5
7094 echo "${ECHO_T}$RANLIB" >&6
7095 else
7096   echo "$as_me:$LINENO: result: no" >&5
7097 echo "${ECHO_T}no" >&6
7098 fi
7099
7100 fi
7101 if test -z "$ac_cv_prog_RANLIB"; then
7102   ac_ct_RANLIB=$RANLIB
7103   # Extract the first word of "ranlib", so it can be a program name with args.
7104 set dummy ranlib; ac_word=$2
7105 echo "$as_me:$LINENO: checking for $ac_word" >&5
7106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7107 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7108   echo $ECHO_N "(cached) $ECHO_C" >&6
7109 else
7110   if test -n "$ac_ct_RANLIB"; then
7111   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7112 else
7113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114 for as_dir in $PATH
7115 do
7116   IFS=$as_save_IFS
7117   test -z "$as_dir" && as_dir=.
7118   for ac_exec_ext in '' $ac_executable_extensions; do
7119   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7120     ac_cv_prog_ac_ct_RANLIB="ranlib"
7121     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7122     break 2
7123   fi
7124 done
7125 done
7126
7127   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7128 fi
7129 fi
7130 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7131 if test -n "$ac_ct_RANLIB"; then
7132   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7133 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7134 else
7135   echo "$as_me:$LINENO: result: no" >&5
7136 echo "${ECHO_T}no" >&6
7137 fi
7138
7139   RANLIB=$ac_ct_RANLIB
7140 else
7141   RANLIB="$ac_cv_prog_RANLIB"
7142 fi
7143
7144 if test -n "$ac_tool_prefix"; then
7145   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7146 set dummy ${ac_tool_prefix}strip; ac_word=$2
7147 echo "$as_me:$LINENO: checking for $ac_word" >&5
7148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7149 if test "${ac_cv_prog_STRIP+set}" = set; then
7150   echo $ECHO_N "(cached) $ECHO_C" >&6
7151 else
7152   if test -n "$STRIP"; then
7153   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7154 else
7155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7156 for as_dir in $PATH
7157 do
7158   IFS=$as_save_IFS
7159   test -z "$as_dir" && as_dir=.
7160   for ac_exec_ext in '' $ac_executable_extensions; do
7161   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7162     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7163     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7164     break 2
7165   fi
7166 done
7167 done
7168
7169 fi
7170 fi
7171 STRIP=$ac_cv_prog_STRIP
7172 if test -n "$STRIP"; then
7173   echo "$as_me:$LINENO: result: $STRIP" >&5
7174 echo "${ECHO_T}$STRIP" >&6
7175 else
7176   echo "$as_me:$LINENO: result: no" >&5
7177 echo "${ECHO_T}no" >&6
7178 fi
7179
7180 fi
7181 if test -z "$ac_cv_prog_STRIP"; then
7182   ac_ct_STRIP=$STRIP
7183   # Extract the first word of "strip", so it can be a program name with args.
7184 set dummy strip; ac_word=$2
7185 echo "$as_me:$LINENO: checking for $ac_word" >&5
7186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7187 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7188   echo $ECHO_N "(cached) $ECHO_C" >&6
7189 else
7190   if test -n "$ac_ct_STRIP"; then
7191   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7192 else
7193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194 for as_dir in $PATH
7195 do
7196   IFS=$as_save_IFS
7197   test -z "$as_dir" && as_dir=.
7198   for ac_exec_ext in '' $ac_executable_extensions; do
7199   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7200     ac_cv_prog_ac_ct_STRIP="strip"
7201     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7202     break 2
7203   fi
7204 done
7205 done
7206
7207   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7208 fi
7209 fi
7210 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7211 if test -n "$ac_ct_STRIP"; then
7212   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7213 echo "${ECHO_T}$ac_ct_STRIP" >&6
7214 else
7215   echo "$as_me:$LINENO: result: no" >&5
7216 echo "${ECHO_T}no" >&6
7217 fi
7218
7219   STRIP=$ac_ct_STRIP
7220 else
7221   STRIP="$ac_cv_prog_STRIP"
7222 fi
7223
7224
7225 old_CC="$CC"
7226 old_CFLAGS="$CFLAGS"
7227
7228 # Set sane defaults for various variables
7229 test -z "$AR" && AR=ar
7230 test -z "$AR_FLAGS" && AR_FLAGS=cru
7231 test -z "$AS" && AS=as
7232 test -z "$CC" && CC=cc
7233 test -z "$LTCC" && LTCC=$CC
7234 test -z "$DLLTOOL" && DLLTOOL=dlltool
7235 test -z "$LD" && LD=ld
7236 test -z "$LN_S" && LN_S="ln -s"
7237 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7238 test -z "$NM" && NM=nm
7239 test -z "$SED" && SED=sed
7240 test -z "$OBJDUMP" && OBJDUMP=objdump
7241 test -z "$RANLIB" && RANLIB=:
7242 test -z "$STRIP" && STRIP=:
7243 test -z "$ac_objext" && ac_objext=o
7244
7245 # Determine commands to create old-style static archives.
7246 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7247 old_postinstall_cmds='chmod 644 $oldlib'
7248 old_postuninstall_cmds=
7249
7250 if test -n "$RANLIB"; then
7251   case $host_os in
7252   openbsd*)
7253     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7254     ;;
7255   *)
7256     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7257     ;;
7258   esac
7259   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7260 fi
7261
7262 for cc_temp in $compiler""; do
7263   case $cc_temp in
7264     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7265     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7266     \-*) ;;
7267     *) break;;
7268   esac
7269 done
7270 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7271
7272
7273 # Only perform the check for file, if the check method requires it
7274 case $deplibs_check_method in
7275 file_magic*)
7276   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7277     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7278 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7279 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7280   echo $ECHO_N "(cached) $ECHO_C" >&6
7281 else
7282   case $MAGIC_CMD in
7283 [\\/*] |  ?:[\\/]*)
7284   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7285   ;;
7286 *)
7287   lt_save_MAGIC_CMD="$MAGIC_CMD"
7288   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7289   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7290   for ac_dir in $ac_dummy; do
7291     IFS="$lt_save_ifs"
7292     test -z "$ac_dir" && ac_dir=.
7293     if test -f $ac_dir/${ac_tool_prefix}file; then
7294       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7295       if test -n "$file_magic_test_file"; then
7296         case $deplibs_check_method in
7297         "file_magic "*)
7298           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7299           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7300           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7301             $EGREP "$file_magic_regex" > /dev/null; then
7302             :
7303           else
7304             cat <<EOF 1>&2
7305
7306 *** Warning: the command libtool uses to detect shared libraries,
7307 *** $file_magic_cmd, produces output that libtool cannot recognize.
7308 *** The result is that libtool may fail to recognize shared libraries
7309 *** as such.  This will affect the creation of libtool libraries that
7310 *** depend on shared libraries, but programs linked with such libtool
7311 *** libraries will work regardless of this problem.  Nevertheless, you
7312 *** may want to report the problem to your system manager and/or to
7313 *** bug-libtool@gnu.org
7314
7315 EOF
7316           fi ;;
7317         esac
7318       fi
7319       break
7320     fi
7321   done
7322   IFS="$lt_save_ifs"
7323   MAGIC_CMD="$lt_save_MAGIC_CMD"
7324   ;;
7325 esac
7326 fi
7327
7328 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7329 if test -n "$MAGIC_CMD"; then
7330   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7331 echo "${ECHO_T}$MAGIC_CMD" >&6
7332 else
7333   echo "$as_me:$LINENO: result: no" >&5
7334 echo "${ECHO_T}no" >&6
7335 fi
7336
7337 if test -z "$lt_cv_path_MAGIC_CMD"; then
7338   if test -n "$ac_tool_prefix"; then
7339     echo "$as_me:$LINENO: checking for file" >&5
7340 echo $ECHO_N "checking for file... $ECHO_C" >&6
7341 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7342   echo $ECHO_N "(cached) $ECHO_C" >&6
7343 else
7344   case $MAGIC_CMD in
7345 [\\/*] |  ?:[\\/]*)
7346   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7347   ;;
7348 *)
7349   lt_save_MAGIC_CMD="$MAGIC_CMD"
7350   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7351   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7352   for ac_dir in $ac_dummy; do
7353     IFS="$lt_save_ifs"
7354     test -z "$ac_dir" && ac_dir=.
7355     if test -f $ac_dir/file; then
7356       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7357       if test -n "$file_magic_test_file"; then
7358         case $deplibs_check_method in
7359         "file_magic "*)
7360           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7361           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7362           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7363             $EGREP "$file_magic_regex" > /dev/null; then
7364             :
7365           else
7366             cat <<EOF 1>&2
7367
7368 *** Warning: the command libtool uses to detect shared libraries,
7369 *** $file_magic_cmd, produces output that libtool cannot recognize.
7370 *** The result is that libtool may fail to recognize shared libraries
7371 *** as such.  This will affect the creation of libtool libraries that
7372 *** depend on shared libraries, but programs linked with such libtool
7373 *** libraries will work regardless of this problem.  Nevertheless, you
7374 *** may want to report the problem to your system manager and/or to
7375 *** bug-libtool@gnu.org
7376
7377 EOF
7378           fi ;;
7379         esac
7380       fi
7381       break
7382     fi
7383   done
7384   IFS="$lt_save_ifs"
7385   MAGIC_CMD="$lt_save_MAGIC_CMD"
7386   ;;
7387 esac
7388 fi
7389
7390 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7391 if test -n "$MAGIC_CMD"; then
7392   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7393 echo "${ECHO_T}$MAGIC_CMD" >&6
7394 else
7395   echo "$as_me:$LINENO: result: no" >&5
7396 echo "${ECHO_T}no" >&6
7397 fi
7398
7399   else
7400     MAGIC_CMD=:
7401   fi
7402 fi
7403
7404   fi
7405   ;;
7406 esac
7407
7408 enable_dlopen=no
7409 enable_win32_dll=no
7410
7411 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7412 if test "${enable_libtool_lock+set}" = set; then
7413   enableval="$enable_libtool_lock"
7414
7415 fi;
7416 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7417
7418
7419 # Check whether --with-pic or --without-pic was given.
7420 if test "${with_pic+set}" = set; then
7421   withval="$with_pic"
7422   pic_mode="$withval"
7423 else
7424   pic_mode=default
7425 fi;
7426 test -z "$pic_mode" && pic_mode=default
7427
7428 # Use C for the default configuration in the libtool script
7429 tagname=
7430 lt_save_CC="$CC"
7431 ac_ext=c
7432 ac_cpp='$CPP $CPPFLAGS'
7433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7436
7437
7438 # Source file extension for C test sources.
7439 ac_ext=c
7440
7441 # Object file extension for compiled C test sources.
7442 objext=o
7443 objext=$objext
7444
7445 # Code to be used in simple compile tests
7446 lt_simple_compile_test_code="int some_variable = 0;\n"
7447
7448 # Code to be used in simple link tests
7449 lt_simple_link_test_code='int main(){return(0);}\n'
7450
7451
7452 # If no C compiler was specified, use CC.
7453 LTCC=${LTCC-"$CC"}
7454
7455 # Allow CC to be a program name with arguments.
7456 compiler=$CC
7457
7458
7459 # save warnings/boilerplate of simple test code
7460 ac_outfile=conftest.$ac_objext
7461 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7462 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7463 _lt_compiler_boilerplate=`cat conftest.err`
7464 $rm conftest*
7465
7466 ac_outfile=conftest.$ac_objext
7467 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7468 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7469 _lt_linker_boilerplate=`cat conftest.err`
7470 $rm conftest*
7471
7472
7473 #
7474 # Check for any special shared library compilation flags.
7475 #
7476 lt_prog_cc_shlib=
7477 if test "$GCC" = no; then
7478   case $host_os in
7479   sco3.2v5*)
7480     lt_prog_cc_shlib='-belf'
7481     ;;
7482   esac
7483 fi
7484 if test -n "$lt_prog_cc_shlib"; then
7485   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7486 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7487   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
7488   else
7489     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7490 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7491     lt_cv_prog_cc_can_build_shared=no
7492   fi
7493 fi
7494
7495
7496 #
7497 # Check to make sure the static flag actually works.
7498 #
7499 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7500 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7501 if test "${lt_prog_compiler_static_works+set}" = set; then
7502   echo $ECHO_N "(cached) $ECHO_C" >&6
7503 else
7504   lt_prog_compiler_static_works=no
7505    save_LDFLAGS="$LDFLAGS"
7506    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7507    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7508    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7509      # The linker can only warn and ignore the option if not recognized
7510      # So say no if there are warnings
7511      if test -s conftest.err; then
7512        # Append any errors to the config.log.
7513        cat conftest.err 1>&5
7514        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7515        $SED '/^$/d' conftest.err >conftest.er2
7516        if diff conftest.exp conftest.er2 >/dev/null; then
7517          lt_prog_compiler_static_works=yes
7518        fi
7519      else
7520        lt_prog_compiler_static_works=yes
7521      fi
7522    fi
7523    $rm conftest*
7524    LDFLAGS="$save_LDFLAGS"
7525
7526 fi
7527 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7528 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7529
7530 if test x"$lt_prog_compiler_static_works" = xyes; then
7531     :
7532 else
7533     lt_prog_compiler_static=
7534 fi
7535
7536
7537
7538
7539 lt_prog_compiler_no_builtin_flag=
7540
7541 if test "$GCC" = yes; then
7542   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7543
7544
7545 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7546 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7547 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7548   echo $ECHO_N "(cached) $ECHO_C" >&6
7549 else
7550   lt_cv_prog_compiler_rtti_exceptions=no
7551   ac_outfile=conftest.$ac_objext
7552    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7553    lt_compiler_flag="-fno-rtti -fno-exceptions"
7554    # Insert the option either (1) after the last *FLAGS variable, or
7555    # (2) before a word containing "conftest.", or (3) at the end.
7556    # Note that $ac_compile itself does not contain backslashes and begins
7557    # with a dollar sign (not a hyphen), so the echo should work correctly.
7558    # The option is referenced via a variable to avoid confusing sed.
7559    lt_compile=`echo "$ac_compile" | $SED \
7560    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7561    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7562    -e 's:$: $lt_compiler_flag:'`
7563    (eval echo "\"\$as_me:7563: $lt_compile\"" >&5)
7564    (eval "$lt_compile" 2>conftest.err)
7565    ac_status=$?
7566    cat conftest.err >&5
7567    echo "$as_me:7567: \$? = $ac_status" >&5
7568    if (exit $ac_status) && test -s "$ac_outfile"; then
7569      # The compiler can only warn and ignore the option if not recognized
7570      # So say no if there are warnings other than the usual output.
7571      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7572      $SED '/^$/d' conftest.err >conftest.er2
7573      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7574        lt_cv_prog_compiler_rtti_exceptions=yes
7575      fi
7576    fi
7577    $rm conftest*
7578
7579 fi
7580 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7581 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7582
7583 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7584     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7585 else
7586     :
7587 fi
7588
7589 fi
7590
7591 lt_prog_compiler_wl=
7592 lt_prog_compiler_pic=
7593 lt_prog_compiler_static=
7594
7595 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7596 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7597
7598   if test "$GCC" = yes; then
7599     lt_prog_compiler_wl='-Wl,'
7600     lt_prog_compiler_static='-static'
7601
7602     case $host_os in
7603       aix*)
7604       # All AIX code is PIC.
7605       if test "$host_cpu" = ia64; then
7606         # AIX 5 now supports IA64 processor
7607         lt_prog_compiler_static='-Bstatic'
7608       fi
7609       ;;
7610
7611     amigaos*)
7612       # FIXME: we need at least 68020 code to build shared libraries, but
7613       # adding the `-m68020' flag to GCC prevents building anything better,
7614       # like `-m68040'.
7615       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7616       ;;
7617
7618     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7619       # PIC is the default for these OSes.
7620       ;;
7621
7622     mingw* | pw32* | os2*)
7623       # This hack is so that the source file can tell whether it is being
7624       # built for inclusion in a dll (and should export symbols for example).
7625       lt_prog_compiler_pic='-DDLL_EXPORT'
7626       ;;
7627
7628     darwin* | rhapsody*)
7629       # PIC is the default on this platform
7630       # Common symbols not allowed in MH_DYLIB files
7631       lt_prog_compiler_pic='-fno-common'
7632       ;;
7633
7634     msdosdjgpp*)
7635       # Just because we use GCC doesn't mean we suddenly get shared libraries
7636       # on systems that don't support them.
7637       lt_prog_compiler_can_build_shared=no
7638       enable_shared=no
7639       ;;
7640
7641     sysv4*MP*)
7642       if test -d /usr/nec; then
7643         lt_prog_compiler_pic=-Kconform_pic
7644       fi
7645       ;;
7646
7647     hpux*)
7648       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7649       # not for PA HP-UX.
7650       case $host_cpu in
7651       hppa*64*|ia64*)
7652         # +Z the default
7653         ;;
7654       *)
7655         lt_prog_compiler_pic='-fPIC'
7656         ;;
7657       esac
7658       ;;
7659
7660     *)
7661       lt_prog_compiler_pic='-fPIC'
7662       ;;
7663     esac
7664   else
7665     # PORTME Check for flag to pass linker flags through the system compiler.
7666     case $host_os in
7667     aix*)
7668       lt_prog_compiler_wl='-Wl,'
7669       if test "$host_cpu" = ia64; then
7670         # AIX 5 now supports IA64 processor
7671         lt_prog_compiler_static='-Bstatic'
7672       else
7673         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7674       fi
7675       ;;
7676       darwin*)
7677         # PIC is the default on this platform
7678         # Common symbols not allowed in MH_DYLIB files
7679        case $cc_basename in
7680          xlc*)
7681          lt_prog_compiler_pic='-qnocommon'
7682          lt_prog_compiler_wl='-Wl,'
7683          ;;
7684        esac
7685        ;;
7686
7687     mingw* | pw32* | os2*)
7688       # This hack is so that the source file can tell whether it is being
7689       # built for inclusion in a dll (and should export symbols for example).
7690       lt_prog_compiler_pic='-DDLL_EXPORT'
7691       ;;
7692
7693     hpux9* | hpux10* | hpux11*)
7694       lt_prog_compiler_wl='-Wl,'
7695       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7696       # not for PA HP-UX.
7697       case $host_cpu in
7698       hppa*64*|ia64*)
7699         # +Z the default
7700         ;;
7701       *)
7702         lt_prog_compiler_pic='+Z'
7703         ;;
7704       esac
7705       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7706       lt_prog_compiler_static='${wl}-a ${wl}archive'
7707       ;;
7708
7709     irix5* | irix6* | nonstopux*)
7710       lt_prog_compiler_wl='-Wl,'
7711       # PIC (with -KPIC) is the default.
7712       lt_prog_compiler_static='-non_shared'
7713       ;;
7714
7715     newsos6)
7716       lt_prog_compiler_pic='-KPIC'
7717       lt_prog_compiler_static='-Bstatic'
7718       ;;
7719
7720     linux*)
7721       case $cc_basename in
7722       icc* | ecc*)
7723         lt_prog_compiler_wl='-Wl,'
7724         lt_prog_compiler_pic='-KPIC'
7725         lt_prog_compiler_static='-static'
7726         ;;
7727       pgcc* | pgf77* | pgf90* | pgf95*)
7728         # Portland Group compilers (*not* the Pentium gcc compiler,
7729         # which looks to be a dead project)
7730         lt_prog_compiler_wl='-Wl,'
7731         lt_prog_compiler_pic='-fpic'
7732         lt_prog_compiler_static='-Bstatic'
7733         ;;
7734       ccc*)
7735         lt_prog_compiler_wl='-Wl,'
7736         # All Alpha code is PIC.
7737         lt_prog_compiler_static='-non_shared'
7738         ;;
7739       esac
7740       ;;
7741
7742     osf3* | osf4* | osf5*)
7743       lt_prog_compiler_wl='-Wl,'
7744       # All OSF/1 code is PIC.
7745       lt_prog_compiler_static='-non_shared'
7746       ;;
7747
7748     sco3.2v5*)
7749       lt_prog_compiler_pic='-Kpic'
7750       lt_prog_compiler_static='-dn'
7751       ;;
7752
7753     solaris*)
7754       lt_prog_compiler_pic='-KPIC'
7755       lt_prog_compiler_static='-Bstatic'
7756       case $cc_basename in
7757       f77* | f90* | f95*)
7758         lt_prog_compiler_wl='-Qoption ld ';;
7759       *)
7760         lt_prog_compiler_wl='-Wl,';;
7761       esac
7762       ;;
7763
7764     sunos4*)
7765       lt_prog_compiler_wl='-Qoption ld '
7766       lt_prog_compiler_pic='-PIC'
7767       lt_prog_compiler_static='-Bstatic'
7768       ;;
7769
7770     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7771       lt_prog_compiler_wl='-Wl,'
7772       lt_prog_compiler_pic='-KPIC'
7773       lt_prog_compiler_static='-Bstatic'
7774       ;;
7775
7776     sysv4*MP*)
7777       if test -d /usr/nec ;then
7778         lt_prog_compiler_pic='-Kconform_pic'
7779         lt_prog_compiler_static='-Bstatic'
7780       fi
7781       ;;
7782
7783     unicos*)
7784       lt_prog_compiler_wl='-Wl,'
7785       lt_prog_compiler_can_build_shared=no
7786       ;;
7787
7788     uts4*)
7789       lt_prog_compiler_pic='-pic'
7790       lt_prog_compiler_static='-Bstatic'
7791       ;;
7792
7793     *)
7794       lt_prog_compiler_can_build_shared=no
7795       ;;
7796     esac
7797   fi
7798
7799 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7800 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7801
7802 #
7803 # Check to make sure the PIC flag actually works.
7804 #
7805 if test -n "$lt_prog_compiler_pic"; then
7806
7807 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7808 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7809 if test "${lt_prog_compiler_pic_works+set}" = set; then
7810   echo $ECHO_N "(cached) $ECHO_C" >&6
7811 else
7812   lt_prog_compiler_pic_works=no
7813   ac_outfile=conftest.$ac_objext
7814    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7815    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7816    # Insert the option either (1) after the last *FLAGS variable, or
7817    # (2) before a word containing "conftest.", or (3) at the end.
7818    # Note that $ac_compile itself does not contain backslashes and begins
7819    # with a dollar sign (not a hyphen), so the echo should work correctly.
7820    # The option is referenced via a variable to avoid confusing sed.
7821    lt_compile=`echo "$ac_compile" | $SED \
7822    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7823    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7824    -e 's:$: $lt_compiler_flag:'`
7825    (eval echo "\"\$as_me:7825: $lt_compile\"" >&5)
7826    (eval "$lt_compile" 2>conftest.err)
7827    ac_status=$?
7828    cat conftest.err >&5
7829    echo "$as_me:7829: \$? = $ac_status" >&5
7830    if (exit $ac_status) && test -s "$ac_outfile"; then
7831      # The compiler can only warn and ignore the option if not recognized
7832      # So say no if there are warnings other than the usual output.
7833      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7834      $SED '/^$/d' conftest.err >conftest.er2
7835      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7836        lt_prog_compiler_pic_works=yes
7837      fi
7838    fi
7839    $rm conftest*
7840
7841 fi
7842 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7843 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7844
7845 if test x"$lt_prog_compiler_pic_works" = xyes; then
7846     case $lt_prog_compiler_pic in
7847      "" | " "*) ;;
7848      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7849      esac
7850 else
7851     lt_prog_compiler_pic=
7852      lt_prog_compiler_can_build_shared=no
7853 fi
7854
7855 fi
7856 case $host_os in
7857   # For platforms which do not support PIC, -DPIC is meaningless:
7858   *djgpp*)
7859     lt_prog_compiler_pic=
7860     ;;
7861   *)
7862     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7863     ;;
7864 esac
7865
7866 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7867 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7868 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7869   echo $ECHO_N "(cached) $ECHO_C" >&6
7870 else
7871   lt_cv_prog_compiler_c_o=no
7872    $rm -r conftest 2>/dev/null
7873    mkdir conftest
7874    cd conftest
7875    mkdir out
7876    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7877
7878    lt_compiler_flag="-o out/conftest2.$ac_objext"
7879    # Insert the option either (1) after the last *FLAGS variable, or
7880    # (2) before a word containing "conftest.", or (3) at the end.
7881    # Note that $ac_compile itself does not contain backslashes and begins
7882    # with a dollar sign (not a hyphen), so the echo should work correctly.
7883    lt_compile=`echo "$ac_compile" | $SED \
7884    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7885    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7886    -e 's:$: $lt_compiler_flag:'`
7887    (eval echo "\"\$as_me:7887: $lt_compile\"" >&5)
7888    (eval "$lt_compile" 2>out/conftest.err)
7889    ac_status=$?
7890    cat out/conftest.err >&5
7891    echo "$as_me:7891: \$? = $ac_status" >&5
7892    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7893    then
7894      # The compiler can only warn and ignore the option if not recognized
7895      # So say no if there are warnings
7896      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
7897      $SED '/^$/d' out/conftest.err >out/conftest.er2
7898      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7899        lt_cv_prog_compiler_c_o=yes
7900      fi
7901    fi
7902    chmod u+w . 2>&5
7903    $rm conftest*
7904    # SGI C++ compiler will create directory out/ii_files/ for
7905    # template instantiation
7906    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7907    $rm out/* && rmdir out
7908    cd ..
7909    rmdir conftest
7910    $rm conftest*
7911
7912 fi
7913 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7914 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7915
7916
7917 hard_links="nottested"
7918 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7919   # do not overwrite the value of need_locks provided by the user
7920   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7921 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7922   hard_links=yes
7923   $rm conftest*
7924   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7925   touch conftest.a
7926   ln conftest.a conftest.b 2>&5 || hard_links=no
7927   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7928   echo "$as_me:$LINENO: result: $hard_links" >&5
7929 echo "${ECHO_T}$hard_links" >&6
7930   if test "$hard_links" = no; then
7931     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7932 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7933     need_locks=warn
7934   fi
7935 else
7936   need_locks=no
7937 fi
7938
7939 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7940 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7941
7942   runpath_var=
7943   allow_undefined_flag=
7944   enable_shared_with_static_runtimes=no
7945   archive_cmds=
7946   archive_expsym_cmds=
7947   old_archive_From_new_cmds=
7948   old_archive_from_expsyms_cmds=
7949   export_dynamic_flag_spec=
7950   whole_archive_flag_spec=
7951   thread_safe_flag_spec=
7952   hardcode_libdir_flag_spec=
7953   hardcode_libdir_flag_spec_ld=
7954   hardcode_libdir_separator=
7955   hardcode_direct=no
7956   hardcode_minus_L=no
7957   hardcode_shlibpath_var=unsupported
7958   link_all_deplibs=unknown
7959   hardcode_automatic=no
7960   module_cmds=
7961   module_expsym_cmds=
7962   always_export_symbols=no
7963   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7964   # include_expsyms should be a list of space-separated symbols to be *always*
7965   # included in the symbol list
7966   include_expsyms=
7967   # exclude_expsyms can be an extended regexp of symbols to exclude
7968   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7969   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7970   # as well as any symbol that contains `d'.
7971   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7972   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7973   # platforms (ab)use it in PIC code, but their linkers get confused if
7974   # the symbol is explicitly referenced.  Since portable code cannot
7975   # rely on this symbol name, it's probably fine to never include it in
7976   # preloaded symbol tables.
7977   extract_expsyms_cmds=
7978   # Just being paranoid about ensuring that cc_basename is set.
7979   for cc_temp in $compiler""; do
7980   case $cc_temp in
7981     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7982     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7983     \-*) ;;
7984     *) break;;
7985   esac
7986 done
7987 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7988
7989   case $host_os in
7990   cygwin* | mingw* | pw32*)
7991     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7992     # When not using gcc, we currently assume that we are using
7993     # Microsoft Visual C++.
7994     if test "$GCC" != yes; then
7995       with_gnu_ld=no
7996     fi
7997     ;;
7998   openbsd*)
7999     with_gnu_ld=no
8000     ;;
8001   esac
8002
8003   ld_shlibs=yes
8004   if test "$with_gnu_ld" = yes; then
8005     # If archive_cmds runs LD, not CC, wlarc should be empty
8006     wlarc='${wl}'
8007
8008     # Set some defaults for GNU ld with shared library support. These
8009     # are reset later if shared libraries are not supported. Putting them
8010     # here allows them to be overridden if necessary.
8011     runpath_var=LD_RUN_PATH
8012     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8013     export_dynamic_flag_spec='${wl}--export-dynamic'
8014     # ancient GNU ld didn't support --whole-archive et. al.
8015     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8016         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8017       else
8018         whole_archive_flag_spec=
8019     fi
8020     supports_anon_versioning=no
8021     case `$LD -v 2>/dev/null` in
8022       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8023       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8024       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8025       *\ 2.11.*) ;; # other 2.11 versions
8026       *) supports_anon_versioning=yes ;;
8027     esac
8028
8029     # See if GNU ld supports shared libraries.
8030     case $host_os in
8031     aix3* | aix4* | aix5*)
8032       # On AIX/PPC, the GNU linker is very broken
8033       if test "$host_cpu" != ia64; then
8034         ld_shlibs=no
8035         cat <<EOF 1>&2
8036
8037 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8038 *** to be unable to reliably create shared libraries on AIX.
8039 *** Therefore, libtool is disabling shared libraries support.  If you
8040 *** really care for shared libraries, you may want to modify your PATH
8041 *** so that a non-GNU linker is found, and then restart.
8042
8043 EOF
8044       fi
8045       ;;
8046
8047     amigaos*)
8048       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)'
8049       hardcode_libdir_flag_spec='-L$libdir'
8050       hardcode_minus_L=yes
8051
8052       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8053       # that the semantics of dynamic libraries on AmigaOS, at least up
8054       # to version 4, is to share data among multiple programs linked
8055       # with the same dynamic library.  Since this doesn't match the
8056       # behavior of shared libraries on other platforms, we can't use
8057       # them.
8058       ld_shlibs=no
8059       ;;
8060
8061     beos*)
8062       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8063         allow_undefined_flag=unsupported
8064         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8065         # support --undefined.  This deserves some investigation.  FIXME
8066         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8067       else
8068         ld_shlibs=no
8069       fi
8070       ;;
8071
8072     cygwin* | mingw* | pw32*)
8073       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8074       # as there is no search path for DLLs.
8075       hardcode_libdir_flag_spec='-L$libdir'
8076       allow_undefined_flag=unsupported
8077       always_export_symbols=no
8078       enable_shared_with_static_runtimes=yes
8079       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8080
8081       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8082         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8083         # If the export-symbols file already is a .def file (1st line
8084         # is EXPORTS), use it as is; otherwise, prepend...
8085         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8086           cp $export_symbols $output_objdir/$soname.def;
8087         else
8088           echo EXPORTS > $output_objdir/$soname.def;
8089           cat $export_symbols >> $output_objdir/$soname.def;
8090         fi~
8091         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
8092       else
8093         ld_shlibs=no
8094       fi
8095       ;;
8096
8097     linux*)
8098       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8099         tmp_addflag=
8100         case $cc_basename,$host_cpu in
8101         pgcc*)                          # Portland Group C compiler
8102           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8103           tmp_addflag=' $pic_flag'
8104           ;;
8105         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8106           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8107           tmp_addflag=' $pic_flag -Mnomain' ;;
8108         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8109           tmp_addflag=' -i_dynamic' ;;
8110         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8111           tmp_addflag=' -i_dynamic -nofor_main' ;;
8112         ifc* | ifort*)                  # Intel Fortran compiler
8113           tmp_addflag=' -nofor_main' ;;
8114         esac
8115         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8116
8117         if test $supports_anon_versioning = yes; then
8118           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8119   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8120   $echo "local: *; };" >> $output_objdir/$libname.ver~
8121           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8122         fi
8123         link_all_deplibs=no
8124       else
8125         ld_shlibs=no
8126       fi
8127       ;;
8128
8129     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
8130       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8131         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8132         wlarc=
8133       else
8134         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8135         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8136       fi
8137       ;;
8138
8139     solaris* | sysv5*)
8140       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8141         ld_shlibs=no
8142         cat <<EOF 1>&2
8143
8144 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8145 *** create shared libraries on Solaris systems.  Therefore, libtool
8146 *** is disabling shared libraries support.  We urge you to upgrade GNU
8147 *** binutils to release 2.9.1 or newer.  Another option is to modify
8148 *** your PATH or compiler configuration so that the native linker is
8149 *** used, and then restart.
8150
8151 EOF
8152       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8153         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8154         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8155       else
8156         ld_shlibs=no
8157       fi
8158       ;;
8159
8160     sunos4*)
8161       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8162       wlarc=
8163       hardcode_direct=yes
8164       hardcode_shlibpath_var=no
8165       ;;
8166
8167     *)
8168       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8169         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8170         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8171       else
8172         ld_shlibs=no
8173       fi
8174       ;;
8175     esac
8176
8177     if test "$ld_shlibs" = no; then
8178       runpath_var=
8179       hardcode_libdir_flag_spec=
8180       export_dynamic_flag_spec=
8181       whole_archive_flag_spec=
8182     fi
8183   else
8184     # PORTME fill in a description of your system's linker (not GNU ld)
8185     case $host_os in
8186     aix3*)
8187       allow_undefined_flag=unsupported
8188       always_export_symbols=yes
8189       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'
8190       # Note: this linker hardcodes the directories in LIBPATH if there
8191       # are no directories specified by -L.
8192       hardcode_minus_L=yes
8193       if test "$GCC" = yes && test -z "$link_static_flag"; then
8194         # Neither direct hardcoding nor static linking is supported with a
8195         # broken collect2.
8196         hardcode_direct=unsupported
8197       fi
8198       ;;
8199
8200     aix4* | aix5*)
8201       if test "$host_cpu" = ia64; then
8202         # On IA64, the linker does run time linking by default, so we don't
8203         # have to do anything special.
8204         aix_use_runtimelinking=no
8205         exp_sym_flag='-Bexport'
8206         no_entry_flag=""
8207       else
8208         # If we're using GNU nm, then we don't want the "-C" option.
8209         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8210         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8211           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'
8212         else
8213           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'
8214         fi
8215         aix_use_runtimelinking=no
8216
8217         # Test if we are trying to use run time linking or normal
8218         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8219         # need to do runtime linking.
8220         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8221           for ld_flag in $LDFLAGS; do
8222           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8223             aix_use_runtimelinking=yes
8224             break
8225           fi
8226           done
8227         esac
8228
8229         exp_sym_flag='-bexport'
8230         no_entry_flag='-bnoentry'
8231       fi
8232
8233       # When large executables or shared objects are built, AIX ld can
8234       # have problems creating the table of contents.  If linking a library
8235       # or program results in "error TOC overflow" add -mminimal-toc to
8236       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8237       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8238
8239       archive_cmds=''
8240       hardcode_direct=yes
8241       hardcode_libdir_separator=':'
8242       link_all_deplibs=yes
8243
8244       if test "$GCC" = yes; then
8245         case $host_os in aix4.[012]|aix4.[012].*)
8246         # We only want to do this on AIX 4.2 and lower, the check
8247         # below for broken collect2 doesn't work under 4.3+
8248           collect2name=`${CC} -print-prog-name=collect2`
8249           if test -f "$collect2name" && \
8250            strings "$collect2name" | grep resolve_lib_name >/dev/null
8251           then
8252           # We have reworked collect2
8253           hardcode_direct=yes
8254           else
8255           # We have old collect2
8256           hardcode_direct=unsupported
8257           # It fails to find uninstalled libraries when the uninstalled
8258           # path is not listed in the libpath.  Setting hardcode_minus_L
8259           # to unsupported forces relinking
8260           hardcode_minus_L=yes
8261           hardcode_libdir_flag_spec='-L$libdir'
8262           hardcode_libdir_separator=
8263           fi
8264         esac
8265         shared_flag='-shared'
8266         if test "$aix_use_runtimelinking" = yes; then
8267           shared_flag="$shared_flag "'${wl}-G'
8268         fi
8269       else
8270         # not using gcc
8271         if test "$host_cpu" = ia64; then
8272         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8273         # chokes on -Wl,-G. The following line is correct:
8274           shared_flag='-G'
8275         else
8276         if test "$aix_use_runtimelinking" = yes; then
8277             shared_flag='${wl}-G'
8278           else
8279             shared_flag='${wl}-bM:SRE'
8280         fi
8281         fi
8282       fi
8283
8284       # It seems that -bexpall does not export symbols beginning with
8285       # underscore (_), so it is better to generate a list of symbols to export.
8286       always_export_symbols=yes
8287       if test "$aix_use_runtimelinking" = yes; then
8288         # Warning - without using the other runtime loading flags (-brtl),
8289         # -berok will link without error, but may produce a broken library.
8290         allow_undefined_flag='-berok'
8291        # Determine the default libpath from the value encoded in an empty executable.
8292        cat >conftest.$ac_ext <<_ACEOF
8293 /* confdefs.h.  */
8294 _ACEOF
8295 cat confdefs.h >>conftest.$ac_ext
8296 cat >>conftest.$ac_ext <<_ACEOF
8297 /* end confdefs.h.  */
8298
8299 int
8300 main ()
8301 {
8302
8303   ;
8304   return 0;
8305 }
8306 _ACEOF
8307 rm -f conftest.$ac_objext conftest$ac_exeext
8308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8309   (eval $ac_link) 2>conftest.er1
8310   ac_status=$?
8311   grep -v '^ *+' conftest.er1 >conftest.err
8312   rm -f conftest.er1
8313   cat conftest.err >&5
8314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315   (exit $ac_status); } &&
8316          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8318   (eval $ac_try) 2>&5
8319   ac_status=$?
8320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321   (exit $ac_status); }; } &&
8322          { ac_try='test -s conftest$ac_exeext'
8323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8324   (eval $ac_try) 2>&5
8325   ac_status=$?
8326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327   (exit $ac_status); }; }; then
8328
8329 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8330 }'`
8331 # Check for a 64-bit object if we didn't find anything.
8332 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; }
8333 }'`; fi
8334 else
8335   echo "$as_me: failed program was:" >&5
8336 sed 's/^/| /' conftest.$ac_ext >&5
8337
8338 fi
8339 rm -f conftest.err conftest.$ac_objext \
8340       conftest$ac_exeext conftest.$ac_ext
8341 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8342
8343        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8344         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"
8345        else
8346         if test "$host_cpu" = ia64; then
8347           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8348           allow_undefined_flag="-z nodefs"
8349           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"
8350         else
8351          # Determine the default libpath from the value encoded in an empty executable.
8352          cat >conftest.$ac_ext <<_ACEOF
8353 /* confdefs.h.  */
8354 _ACEOF
8355 cat confdefs.h >>conftest.$ac_ext
8356 cat >>conftest.$ac_ext <<_ACEOF
8357 /* end confdefs.h.  */
8358
8359 int
8360 main ()
8361 {
8362
8363   ;
8364   return 0;
8365 }
8366 _ACEOF
8367 rm -f conftest.$ac_objext conftest$ac_exeext
8368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8369   (eval $ac_link) 2>conftest.er1
8370   ac_status=$?
8371   grep -v '^ *+' conftest.er1 >conftest.err
8372   rm -f conftest.er1
8373   cat conftest.err >&5
8374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375   (exit $ac_status); } &&
8376          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8378   (eval $ac_try) 2>&5
8379   ac_status=$?
8380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381   (exit $ac_status); }; } &&
8382          { ac_try='test -s conftest$ac_exeext'
8383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8384   (eval $ac_try) 2>&5
8385   ac_status=$?
8386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387   (exit $ac_status); }; }; then
8388
8389 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8390 }'`
8391 # Check for a 64-bit object if we didn't find anything.
8392 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; }
8393 }'`; fi
8394 else
8395   echo "$as_me: failed program was:" >&5
8396 sed 's/^/| /' conftest.$ac_ext >&5
8397
8398 fi
8399 rm -f conftest.err conftest.$ac_objext \
8400       conftest$ac_exeext conftest.$ac_ext
8401 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8402
8403          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8404           # Warning - without using the other run time loading flags,
8405           # -berok will link without error, but may produce a broken library.
8406           no_undefined_flag=' ${wl}-bernotok'
8407           allow_undefined_flag=' ${wl}-berok'
8408           # -bexpall does not export symbols beginning with underscore (_)
8409           always_export_symbols=yes
8410           # Exported symbols can be pulled into shared objects from archives
8411           whole_archive_flag_spec=' '
8412           archive_cmds_need_lc=yes
8413           # This is similar to how AIX traditionally builds its shared libraries.
8414           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'
8415         fi
8416       fi
8417       ;;
8418
8419     amigaos*)
8420       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)'
8421       hardcode_libdir_flag_spec='-L$libdir'
8422       hardcode_minus_L=yes
8423       # see comment about different semantics on the GNU ld section
8424       ld_shlibs=no
8425       ;;
8426
8427     bsdi[45]*)
8428       export_dynamic_flag_spec=-rdynamic
8429       ;;
8430
8431     cygwin* | mingw* | pw32*)
8432       # When not using gcc, we currently assume that we are using
8433       # Microsoft Visual C++.
8434       # hardcode_libdir_flag_spec is actually meaningless, as there is
8435       # no search path for DLLs.
8436       hardcode_libdir_flag_spec=' '
8437       allow_undefined_flag=unsupported
8438       # Tell ltmain to make .lib files, not .a files.
8439       libext=lib
8440       # Tell ltmain to make .dll files, not .so files.
8441       shrext_cmds=".dll"
8442       # FIXME: Setting linknames here is a bad hack.
8443       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8444       # The linker will automatically build a .lib file if we build a DLL.
8445       old_archive_From_new_cmds='true'
8446       # FIXME: Should let the user specify the lib program.
8447       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8448       fix_srcfile_path='`cygpath -w "$srcfile"`'
8449       enable_shared_with_static_runtimes=yes
8450       ;;
8451
8452     darwin* | rhapsody*)
8453       case $host_os in
8454         rhapsody* | darwin1.[012])
8455          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8456          ;;
8457        *) # Darwin 1.3 on
8458          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8459            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8460          else
8461            case ${MACOSX_DEPLOYMENT_TARGET} in
8462              10.[012])
8463                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8464                ;;
8465              10.*)
8466                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8467                ;;
8468            esac
8469          fi
8470          ;;
8471       esac
8472       archive_cmds_need_lc=no
8473       hardcode_direct=no
8474       hardcode_automatic=yes
8475       hardcode_shlibpath_var=unsupported
8476       whole_archive_flag_spec=''
8477       link_all_deplibs=yes
8478     if test "$GCC" = yes ; then
8479         output_verbose_link_cmd='echo'
8480         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8481       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8482       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8483       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}'
8484       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}'
8485     else
8486       case $cc_basename in
8487         xlc*)
8488          output_verbose_link_cmd='echo'
8489          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8490          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8491           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8492          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8493           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}'
8494           ;;
8495        *)
8496          ld_shlibs=no
8497           ;;
8498       esac
8499     fi
8500       ;;
8501
8502     dgux*)
8503       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8504       hardcode_libdir_flag_spec='-L$libdir'
8505       hardcode_shlibpath_var=no
8506       ;;
8507
8508     freebsd1*)
8509       ld_shlibs=no
8510       ;;
8511
8512     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8513     # support.  Future versions do this automatically, but an explicit c++rt0.o
8514     # does not break anything, and helps significantly (at the cost of a little
8515     # extra space).
8516     freebsd2.2*)
8517       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8518       hardcode_libdir_flag_spec='-R$libdir'
8519       hardcode_direct=yes
8520       hardcode_shlibpath_var=no
8521       ;;
8522
8523     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8524     freebsd2*)
8525       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8526       hardcode_direct=yes
8527       hardcode_minus_L=yes
8528       hardcode_shlibpath_var=no
8529       ;;
8530
8531     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8532     freebsd* | kfreebsd*-gnu | dragonfly*)
8533       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8534       hardcode_libdir_flag_spec='-R$libdir'
8535       hardcode_direct=yes
8536       hardcode_shlibpath_var=no
8537       ;;
8538
8539     hpux9*)
8540       if test "$GCC" = yes; then
8541         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'
8542       else
8543         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'
8544       fi
8545       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8546       hardcode_libdir_separator=:
8547       hardcode_direct=yes
8548
8549       # hardcode_minus_L: Not really in the search PATH,
8550       # but as the default location of the library.
8551       hardcode_minus_L=yes
8552       export_dynamic_flag_spec='${wl}-E'
8553       ;;
8554
8555     hpux10* | hpux11*)
8556       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8557         case $host_cpu in
8558         hppa*64*|ia64*)
8559           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8560           ;;
8561         *)
8562           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8563           ;;
8564         esac
8565       else
8566         case $host_cpu in
8567         hppa*64*|ia64*)
8568           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8569           ;;
8570         *)
8571           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8572           ;;
8573         esac
8574       fi
8575       if test "$with_gnu_ld" = no; then
8576         case $host_cpu in
8577         hppa*64*)
8578           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8579           hardcode_libdir_flag_spec_ld='+b $libdir'
8580           hardcode_libdir_separator=:
8581           hardcode_direct=no
8582           hardcode_shlibpath_var=no
8583           ;;
8584         ia64*)
8585           hardcode_libdir_flag_spec='-L$libdir'
8586           hardcode_direct=no
8587           hardcode_shlibpath_var=no
8588
8589           # hardcode_minus_L: Not really in the search PATH,
8590           # but as the default location of the library.
8591           hardcode_minus_L=yes
8592           ;;
8593         *)
8594           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8595           hardcode_libdir_separator=:
8596           hardcode_direct=yes
8597           export_dynamic_flag_spec='${wl}-E'
8598
8599           # hardcode_minus_L: Not really in the search PATH,
8600           # but as the default location of the library.
8601           hardcode_minus_L=yes
8602           ;;
8603         esac
8604       fi
8605       ;;
8606
8607     irix5* | irix6* | nonstopux*)
8608       if test "$GCC" = yes; then
8609         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'
8610       else
8611         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'
8612         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8613       fi
8614       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8615       hardcode_libdir_separator=:
8616       link_all_deplibs=yes
8617       ;;
8618
8619     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
8620       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8621         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8622       else
8623         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8624       fi
8625       hardcode_libdir_flag_spec='-R$libdir'
8626       hardcode_direct=yes
8627       hardcode_shlibpath_var=no
8628       ;;
8629
8630     newsos6)
8631       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8632       hardcode_direct=yes
8633       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8634       hardcode_libdir_separator=:
8635       hardcode_shlibpath_var=no
8636       ;;
8637
8638     openbsd*)
8639       hardcode_direct=yes
8640       hardcode_shlibpath_var=no
8641       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8642         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8643         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8644         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8645         export_dynamic_flag_spec='${wl}-E'
8646       else
8647        case $host_os in
8648          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8649            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8650            hardcode_libdir_flag_spec='-R$libdir'
8651            ;;
8652          *)
8653            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8654            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8655            ;;
8656        esac
8657       fi
8658       ;;
8659
8660     os2*)
8661       hardcode_libdir_flag_spec='-L$libdir'
8662       hardcode_minus_L=yes
8663       allow_undefined_flag=unsupported
8664       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'
8665       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8666       ;;
8667
8668     osf3*)
8669       if test "$GCC" = yes; then
8670         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8671         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'
8672       else
8673         allow_undefined_flag=' -expect_unresolved \*'
8674         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'
8675       fi
8676       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8677       hardcode_libdir_separator=:
8678       ;;
8679
8680     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8681       if test "$GCC" = yes; then
8682         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8683         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'
8684         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8685       else
8686         allow_undefined_flag=' -expect_unresolved \*'
8687         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'
8688         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8689         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8690
8691         # Both c and cxx compiler support -rpath directly
8692         hardcode_libdir_flag_spec='-rpath $libdir'
8693       fi
8694       hardcode_libdir_separator=:
8695       ;;
8696
8697     sco3.2v5*)
8698       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8699       hardcode_shlibpath_var=no
8700       export_dynamic_flag_spec='${wl}-Bexport'
8701       runpath_var=LD_RUN_PATH
8702       hardcode_runpath_var=yes
8703       ;;
8704
8705     solaris*)
8706       no_undefined_flag=' -z text'
8707       if test "$GCC" = yes; then
8708         wlarc='${wl}'
8709         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8710         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8711           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8712       else
8713         wlarc=''
8714         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8715         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8716         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8717       fi
8718       hardcode_libdir_flag_spec='-R$libdir'
8719       hardcode_shlibpath_var=no
8720       case $host_os in
8721       solaris2.[0-5] | solaris2.[0-5].*) ;;
8722       *)
8723         # The compiler driver will combine linker options so we
8724         # cannot just pass the convience library names through
8725         # without $wl, iff we do not link with $LD.
8726         # Luckily, gcc supports the same syntax we need for Sun Studio.
8727         # Supported since Solaris 2.6 (maybe 2.5.1?)
8728         case $wlarc in
8729         '')
8730           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8731         *)
8732           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8733         esac ;;
8734       esac
8735       link_all_deplibs=yes
8736       ;;
8737
8738     sunos4*)
8739       if test "x$host_vendor" = xsequent; then
8740         # Use $CC to link under sequent, because it throws in some extra .o
8741         # files that make .init and .fini sections work.
8742         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8743       else
8744         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8745       fi
8746       hardcode_libdir_flag_spec='-L$libdir'
8747       hardcode_direct=yes
8748       hardcode_minus_L=yes
8749       hardcode_shlibpath_var=no
8750       ;;
8751
8752     sysv4)
8753       case $host_vendor in
8754         sni)
8755           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8756           hardcode_direct=yes # is this really true???
8757         ;;
8758         siemens)
8759           ## LD is ld it makes a PLAMLIB
8760           ## CC just makes a GrossModule.
8761           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8762           reload_cmds='$CC -r -o $output$reload_objs'
8763           hardcode_direct=no
8764         ;;
8765         motorola)
8766           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8767           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8768         ;;
8769       esac
8770       runpath_var='LD_RUN_PATH'
8771       hardcode_shlibpath_var=no
8772       ;;
8773
8774     sysv4.3*)
8775       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8776       hardcode_shlibpath_var=no
8777       export_dynamic_flag_spec='-Bexport'
8778       ;;
8779
8780     sysv4*MP*)
8781       if test -d /usr/nec; then
8782         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8783         hardcode_shlibpath_var=no
8784         runpath_var=LD_RUN_PATH
8785         hardcode_runpath_var=yes
8786         ld_shlibs=yes
8787       fi
8788       ;;
8789
8790     sysv4.2uw2*)
8791       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8792       hardcode_direct=yes
8793       hardcode_minus_L=no
8794       hardcode_shlibpath_var=no
8795       hardcode_runpath_var=yes
8796       runpath_var=LD_RUN_PATH
8797       ;;
8798
8799    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
8800       no_undefined_flag='${wl}-z ${wl}text'
8801       if test "$GCC" = yes; then
8802         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8803       else
8804         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8805       fi
8806       runpath_var='LD_RUN_PATH'
8807       hardcode_shlibpath_var=no
8808       ;;
8809
8810     sysv5*)
8811       no_undefined_flag=' -z text'
8812       # $CC -shared without GNU ld will not create a library from C++
8813       # object files and a static libstdc++, better avoid it by now
8814       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8815       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8816                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8817       hardcode_libdir_flag_spec=
8818       hardcode_shlibpath_var=no
8819       runpath_var='LD_RUN_PATH'
8820       ;;
8821
8822     uts4*)
8823       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8824       hardcode_libdir_flag_spec='-L$libdir'
8825       hardcode_shlibpath_var=no
8826       ;;
8827
8828     *)
8829       ld_shlibs=no
8830       ;;
8831     esac
8832   fi
8833
8834 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8835 echo "${ECHO_T}$ld_shlibs" >&6
8836 test "$ld_shlibs" = no && can_build_shared=no
8837
8838 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8839 if test "$GCC" = yes; then
8840   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8841 fi
8842
8843 #
8844 # Do we need to explicitly link libc?
8845 #
8846 case "x$archive_cmds_need_lc" in
8847 x|xyes)
8848   # Assume -lc should be added
8849   archive_cmds_need_lc=yes
8850
8851   if test "$enable_shared" = yes && test "$GCC" = yes; then
8852     case $archive_cmds in
8853     *'~'*)
8854       # FIXME: we may have to deal with multi-command sequences.
8855       ;;
8856     '$CC '*)
8857       # Test whether the compiler implicitly links with -lc since on some
8858       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8859       # to ld, don't add -lc before -lgcc.
8860       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8861 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8862       $rm conftest*
8863       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8864
8865       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8866   (eval $ac_compile) 2>&5
8867   ac_status=$?
8868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869   (exit $ac_status); } 2>conftest.err; then
8870         soname=conftest
8871         lib=conftest
8872         libobjs=conftest.$ac_objext
8873         deplibs=
8874         wl=$lt_prog_compiler_wl
8875         compiler_flags=-v
8876         linker_flags=-v
8877         verstring=
8878         output_objdir=.
8879         libname=conftest
8880         lt_save_allow_undefined_flag=$allow_undefined_flag
8881         allow_undefined_flag=
8882         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8883   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8884   ac_status=$?
8885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886   (exit $ac_status); }
8887         then
8888           archive_cmds_need_lc=no
8889         else
8890           archive_cmds_need_lc=yes
8891         fi
8892         allow_undefined_flag=$lt_save_allow_undefined_flag
8893       else
8894         cat conftest.err 1>&5
8895       fi
8896       $rm conftest*
8897       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8898 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8899       ;;
8900     esac
8901   fi
8902   ;;
8903 esac
8904
8905 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8906 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8907 library_names_spec=
8908 libname_spec='lib$name'
8909 soname_spec=
8910 shrext_cmds=".so"
8911 postinstall_cmds=
8912 postuninstall_cmds=
8913 finish_cmds=
8914 finish_eval=
8915 shlibpath_var=
8916 shlibpath_overrides_runpath=unknown
8917 version_type=none
8918 dynamic_linker="$host_os ld.so"
8919 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8920 if test "$GCC" = yes; then
8921   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8922   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8923     # if the path contains ";" then we assume it to be the separator
8924     # otherwise default to the standard path separator (i.e. ":") - it is
8925     # assumed that no part of a normal pathname contains ";" but that should
8926     # okay in the real world where ";" in dirpaths is itself problematic.
8927     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8928   else
8929     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8930   fi
8931 else
8932   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8933 fi
8934 need_lib_prefix=unknown
8935 hardcode_into_libs=no
8936
8937 # when you set need_version to no, make sure it does not cause -set_version
8938 # flags to be left without arguments
8939 need_version=unknown
8940
8941 case $host_os in
8942 aix3*)
8943   version_type=linux
8944   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8945   shlibpath_var=LIBPATH
8946
8947   # AIX 3 has no versioning support, so we append a major version to the name.
8948   soname_spec='${libname}${release}${shared_ext}$major'
8949   ;;
8950
8951 aix4* | aix5*)
8952   version_type=linux
8953   need_lib_prefix=no
8954   need_version=no
8955   hardcode_into_libs=yes
8956   if test "$host_cpu" = ia64; then
8957     # AIX 5 supports IA64
8958     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8959     shlibpath_var=LD_LIBRARY_PATH
8960   else
8961     # With GCC up to 2.95.x, collect2 would create an import file
8962     # for dependence libraries.  The import file would start with
8963     # the line `#! .'.  This would cause the generated library to
8964     # depend on `.', always an invalid library.  This was fixed in
8965     # development snapshots of GCC prior to 3.0.
8966     case $host_os in
8967       aix4 | aix4.[01] | aix4.[01].*)
8968       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8969            echo ' yes '
8970            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8971         :
8972       else
8973         can_build_shared=no
8974       fi
8975       ;;
8976     esac
8977     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8978     # soname into executable. Probably we can add versioning support to
8979     # collect2, so additional links can be useful in future.
8980     if test "$aix_use_runtimelinking" = yes; then
8981       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8982       # instead of lib<name>.a to let people know that these are not
8983       # typical AIX shared libraries.
8984       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8985     else
8986       # We preserve .a as extension for shared libraries through AIX4.2
8987       # and later when we are not doing run time linking.
8988       library_names_spec='${libname}${release}.a $libname.a'
8989       soname_spec='${libname}${release}${shared_ext}$major'
8990     fi
8991     shlibpath_var=LIBPATH
8992   fi
8993   ;;
8994
8995 amigaos*)
8996   library_names_spec='$libname.ixlibrary $libname.a'
8997   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8998   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'
8999   ;;
9000
9001 beos*)
9002   library_names_spec='${libname}${shared_ext}'
9003   dynamic_linker="$host_os ld.so"
9004   shlibpath_var=LIBRARY_PATH
9005   ;;
9006
9007 bsdi[45]*)
9008   version_type=linux
9009   need_version=no
9010   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9011   soname_spec='${libname}${release}${shared_ext}$major'
9012   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9013   shlibpath_var=LD_LIBRARY_PATH
9014   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9015   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9016   # the default ld.so.conf also contains /usr/contrib/lib and
9017   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9018   # libtool to hard-code these into programs
9019   ;;
9020
9021 cygwin* | mingw* | pw32*)
9022   version_type=windows
9023   shrext_cmds=".dll"
9024   need_version=no
9025   need_lib_prefix=no
9026
9027   case $GCC,$host_os in
9028   yes,cygwin* | yes,mingw* | yes,pw32*)
9029     library_names_spec='$libname.dll.a'
9030     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9031     postinstall_cmds='base_file=`basename \${file}`~
9032       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9033       dldir=$destdir/`dirname \$dlpath`~
9034       test -d \$dldir || mkdir -p \$dldir~
9035       $install_prog $dir/$dlname \$dldir/$dlname~
9036       chmod a+x \$dldir/$dlname'
9037     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9038       dlpath=$dir/\$dldll~
9039        $rm \$dlpath'
9040     shlibpath_overrides_runpath=yes
9041
9042     case $host_os in
9043     cygwin*)
9044       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9045       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9046       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9047       ;;
9048     mingw*)
9049       # MinGW DLLs use traditional 'lib' prefix
9050       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9051       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9052       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9053         # It is most probably a Windows format PATH printed by
9054         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9055         # path with ; separators, and with drive letters. We can handle the
9056         # drive letters (cygwin fileutils understands them), so leave them,
9057         # especially as we might pass files found there to a mingw objdump,
9058         # which wouldn't understand a cygwinified path. Ahh.
9059         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9060       else
9061         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9062       fi
9063       ;;
9064     pw32*)
9065       # pw32 DLLs use 'pw' prefix rather than 'lib'
9066       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9067       ;;
9068     esac
9069     ;;
9070
9071   *)
9072     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9073     ;;
9074   esac
9075   dynamic_linker='Win32 ld.exe'
9076   # FIXME: first we should search . and the directory the executable is in
9077   shlibpath_var=PATH
9078   ;;
9079
9080 darwin* | rhapsody*)
9081   dynamic_linker="$host_os dyld"
9082   version_type=darwin
9083   need_lib_prefix=no
9084   need_version=no
9085   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9086   soname_spec='${libname}${release}${major}$shared_ext'
9087   shlibpath_overrides_runpath=yes
9088   shlibpath_var=DYLD_LIBRARY_PATH
9089   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9090   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9091   if test "$GCC" = yes; then
9092     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"`
9093   else
9094     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9095   fi
9096   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9097   ;;
9098
9099 dgux*)
9100   version_type=linux
9101   need_lib_prefix=no
9102   need_version=no
9103   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9104   soname_spec='${libname}${release}${shared_ext}$major'
9105   shlibpath_var=LD_LIBRARY_PATH
9106   ;;
9107
9108 freebsd1*)
9109   dynamic_linker=no
9110   ;;
9111
9112 kfreebsd*-gnu)
9113   version_type=linux
9114   need_lib_prefix=no
9115   need_version=no
9116   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9117   soname_spec='${libname}${release}${shared_ext}$major'
9118   shlibpath_var=LD_LIBRARY_PATH
9119   shlibpath_overrides_runpath=no
9120   hardcode_into_libs=yes
9121   dynamic_linker='GNU ld.so'
9122   ;;
9123
9124 freebsd* | dragonfly*)
9125   # DragonFly does not have aout.  When/if they implement a new
9126   # versioning mechanism, adjust this.
9127   if test -x /usr/bin/objformat; then
9128     objformat=`/usr/bin/objformat`
9129   else
9130     case $host_os in
9131     freebsd[123]*) objformat=aout ;;
9132     *) objformat=elf ;;
9133     esac
9134   fi
9135   version_type=freebsd-$objformat
9136   case $version_type in
9137     freebsd-elf*)
9138       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9139       need_version=no
9140       need_lib_prefix=no
9141       ;;
9142     freebsd-*)
9143       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9144       need_version=yes
9145       ;;
9146   esac
9147   shlibpath_var=LD_LIBRARY_PATH
9148   case $host_os in
9149   freebsd2*)
9150     shlibpath_overrides_runpath=yes
9151     ;;
9152   freebsd3.[01]* | freebsdelf3.[01]*)
9153     shlibpath_overrides_runpath=yes
9154     hardcode_into_libs=yes
9155     ;;
9156   *) # from 3.2 on
9157     shlibpath_overrides_runpath=no
9158     hardcode_into_libs=yes
9159     ;;
9160   esac
9161   ;;
9162
9163 gnu*)
9164   version_type=linux
9165   need_lib_prefix=no
9166   need_version=no
9167   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9168   soname_spec='${libname}${release}${shared_ext}$major'
9169   shlibpath_var=LD_LIBRARY_PATH
9170   hardcode_into_libs=yes
9171   ;;
9172
9173 hpux9* | hpux10* | hpux11*)
9174   # Give a soname corresponding to the major version so that dld.sl refuses to
9175   # link against other versions.
9176   version_type=sunos
9177   need_lib_prefix=no
9178   need_version=no
9179   case $host_cpu in
9180   ia64*)
9181     shrext_cmds='.so'
9182     hardcode_into_libs=yes
9183     dynamic_linker="$host_os dld.so"
9184     shlibpath_var=LD_LIBRARY_PATH
9185     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9186     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9187     soname_spec='${libname}${release}${shared_ext}$major'
9188     if test "X$HPUX_IA64_MODE" = X32; then
9189       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9190     else
9191       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9192     fi
9193     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9194     ;;
9195    hppa*64*)
9196      shrext_cmds='.sl'
9197      hardcode_into_libs=yes
9198      dynamic_linker="$host_os dld.sl"
9199      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9200      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9201      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9202      soname_spec='${libname}${release}${shared_ext}$major'
9203      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9204      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9205      ;;
9206    *)
9207     shrext_cmds='.sl'
9208     dynamic_linker="$host_os dld.sl"
9209     shlibpath_var=SHLIB_PATH
9210     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9211     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9212     soname_spec='${libname}${release}${shared_ext}$major'
9213     ;;
9214   esac
9215   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9216   postinstall_cmds='chmod 555 $lib'
9217   ;;
9218
9219 irix5* | irix6* | nonstopux*)
9220   case $host_os in
9221     nonstopux*) version_type=nonstopux ;;
9222     *)
9223         if test "$lt_cv_prog_gnu_ld" = yes; then
9224                 version_type=linux
9225         else
9226                 version_type=irix
9227         fi ;;
9228   esac
9229   need_lib_prefix=no
9230   need_version=no
9231   soname_spec='${libname}${release}${shared_ext}$major'
9232   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9233   case $host_os in
9234   irix5* | nonstopux*)
9235     libsuff= shlibsuff=
9236     ;;
9237   *)
9238     case $LD in # libtool.m4 will add one of these switches to LD
9239     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9240       libsuff= shlibsuff= libmagic=32-bit;;
9241     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9242       libsuff=32 shlibsuff=N32 libmagic=N32;;
9243     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9244       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9245     *) libsuff= shlibsuff= libmagic=never-match;;
9246     esac
9247     ;;
9248   esac
9249   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9250   shlibpath_overrides_runpath=no
9251   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9252   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9253   hardcode_into_libs=yes
9254   ;;
9255
9256 # No shared lib support for Linux oldld, aout, or coff.
9257 linux*oldld* | linux*aout* | linux*coff*)
9258   dynamic_linker=no
9259   ;;
9260
9261 # This must be Linux ELF.
9262 linux*)
9263   version_type=linux
9264   need_lib_prefix=no
9265   need_version=no
9266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9267   soname_spec='${libname}${release}${shared_ext}$major'
9268   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9269   shlibpath_var=LD_LIBRARY_PATH
9270   shlibpath_overrides_runpath=no
9271   # This implies no fast_install, which is unacceptable.
9272   # Some rework will be needed to allow for fast_install
9273   # before this can be enabled.
9274   hardcode_into_libs=yes
9275
9276   # Append ld.so.conf contents to the search path
9277   if test -f /etc/ld.so.conf; then
9278     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9279     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9280   fi
9281
9282   # We used to test for /lib/ld.so.1 and disable shared libraries on
9283   # powerpc, because MkLinux only supported shared libraries with the
9284   # GNU dynamic linker.  Since this was broken with cross compilers,
9285   # most powerpc-linux boxes support dynamic linking these days and
9286   # people can always --disable-shared, the test was removed, and we
9287   # assume the GNU/Linux dynamic linker is in use.
9288   dynamic_linker='GNU/Linux ld.so'
9289   ;;
9290
9291 netbsdelf*-gnu)
9292   version_type=linux
9293   need_lib_prefix=no
9294   need_version=no
9295   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9296   soname_spec='${libname}${release}${shared_ext}$major'
9297   shlibpath_var=LD_LIBRARY_PATH
9298   shlibpath_overrides_runpath=no
9299   hardcode_into_libs=yes
9300   dynamic_linker='NetBSD ld.elf_so'
9301   ;;
9302
9303 knetbsd*-gnu)
9304   version_type=linux
9305   need_lib_prefix=no
9306   need_version=no
9307   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9308   soname_spec='${libname}${release}${shared_ext}$major'
9309   shlibpath_var=LD_LIBRARY_PATH
9310   shlibpath_overrides_runpath=no
9311   hardcode_into_libs=yes
9312   dynamic_linker='GNU ld.so'
9313   ;;
9314
9315 netbsd*)
9316   version_type=sunos
9317   need_lib_prefix=no
9318   need_version=no
9319   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9320     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9321     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9322     dynamic_linker='NetBSD (a.out) ld.so'
9323   else
9324     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9325     soname_spec='${libname}${release}${shared_ext}$major'
9326     dynamic_linker='NetBSD ld.elf_so'
9327   fi
9328   shlibpath_var=LD_LIBRARY_PATH
9329   shlibpath_overrides_runpath=yes
9330   hardcode_into_libs=yes
9331   ;;
9332
9333 newsos6)
9334   version_type=linux
9335   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9336   shlibpath_var=LD_LIBRARY_PATH
9337   shlibpath_overrides_runpath=yes
9338   ;;
9339
9340 nto-qnx*)
9341   version_type=linux
9342   need_lib_prefix=no
9343   need_version=no
9344   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9345   soname_spec='${libname}${release}${shared_ext}$major'
9346   shlibpath_var=LD_LIBRARY_PATH
9347   shlibpath_overrides_runpath=yes
9348   ;;
9349
9350 openbsd*)
9351   version_type=sunos
9352   need_lib_prefix=no
9353   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9354   case $host_os in
9355     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9356     *)                         need_version=no  ;;
9357   esac
9358   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9359   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9360   shlibpath_var=LD_LIBRARY_PATH
9361   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9362     case $host_os in
9363       openbsd2.[89] | openbsd2.[89].*)
9364         shlibpath_overrides_runpath=no
9365         ;;
9366       *)
9367         shlibpath_overrides_runpath=yes
9368         ;;
9369       esac
9370   else
9371     shlibpath_overrides_runpath=yes
9372   fi
9373   ;;
9374
9375 os2*)
9376   libname_spec='$name'
9377   shrext_cmds=".dll"
9378   need_lib_prefix=no
9379   library_names_spec='$libname${shared_ext} $libname.a'
9380   dynamic_linker='OS/2 ld.exe'
9381   shlibpath_var=LIBPATH
9382   ;;
9383
9384 osf3* | osf4* | osf5*)
9385   version_type=osf
9386   need_lib_prefix=no
9387   need_version=no
9388   soname_spec='${libname}${release}${shared_ext}$major'
9389   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9390   shlibpath_var=LD_LIBRARY_PATH
9391   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9392   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9393   ;;
9394
9395 sco3.2v5*)
9396   version_type=osf
9397   soname_spec='${libname}${release}${shared_ext}$major'
9398   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9399   shlibpath_var=LD_LIBRARY_PATH
9400   ;;
9401
9402 solaris*)
9403   version_type=linux
9404   need_lib_prefix=no
9405   need_version=no
9406   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9407   soname_spec='${libname}${release}${shared_ext}$major'
9408   shlibpath_var=LD_LIBRARY_PATH
9409   shlibpath_overrides_runpath=yes
9410   hardcode_into_libs=yes
9411   # ldd complains unless libraries are executable
9412   postinstall_cmds='chmod +x $lib'
9413   ;;
9414
9415 sunos4*)
9416   version_type=sunos
9417   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9418   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9419   shlibpath_var=LD_LIBRARY_PATH
9420   shlibpath_overrides_runpath=yes
9421   if test "$with_gnu_ld" = yes; then
9422     need_lib_prefix=no
9423   fi
9424   need_version=yes
9425   ;;
9426
9427 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9428   version_type=linux
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   case $host_vendor in
9433     sni)
9434       shlibpath_overrides_runpath=no
9435       need_lib_prefix=no
9436       export_dynamic_flag_spec='${wl}-Blargedynsym'
9437       runpath_var=LD_RUN_PATH
9438       ;;
9439     siemens)
9440       need_lib_prefix=no
9441       ;;
9442     motorola)
9443       need_lib_prefix=no
9444       need_version=no
9445       shlibpath_overrides_runpath=no
9446       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9447       ;;
9448   esac
9449   ;;
9450
9451 sysv4*MP*)
9452   if test -d /usr/nec ;then
9453     version_type=linux
9454     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9455     soname_spec='$libname${shared_ext}.$major'
9456     shlibpath_var=LD_LIBRARY_PATH
9457   fi
9458   ;;
9459
9460 uts4*)
9461   version_type=linux
9462   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9463   soname_spec='${libname}${release}${shared_ext}$major'
9464   shlibpath_var=LD_LIBRARY_PATH
9465   ;;
9466
9467 *)
9468   dynamic_linker=no
9469   ;;
9470 esac
9471 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9472 echo "${ECHO_T}$dynamic_linker" >&6
9473 test "$dynamic_linker" = no && can_build_shared=no
9474
9475 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9476 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9477 hardcode_action=
9478 if test -n "$hardcode_libdir_flag_spec" || \
9479    test -n "$runpath_var" || \
9480    test "X$hardcode_automatic" = "Xyes" ; then
9481
9482   # We can hardcode non-existant directories.
9483   if test "$hardcode_direct" != no &&
9484      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9485      # have to relink, otherwise we might link with an installed library
9486      # when we should be linking with a yet-to-be-installed one
9487      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9488      test "$hardcode_minus_L" != no; then
9489     # Linking always hardcodes the temporary library directory.
9490     hardcode_action=relink
9491   else
9492     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9493     hardcode_action=immediate
9494   fi
9495 else
9496   # We cannot hardcode anything, or else we can only hardcode existing
9497   # directories.
9498   hardcode_action=unsupported
9499 fi
9500 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9501 echo "${ECHO_T}$hardcode_action" >&6
9502
9503 if test "$hardcode_action" = relink; then
9504   # Fast installation is not supported
9505   enable_fast_install=no
9506 elif test "$shlibpath_overrides_runpath" = yes ||
9507      test "$enable_shared" = no; then
9508   # Fast installation is not necessary
9509   enable_fast_install=needless
9510 fi
9511
9512 striplib=
9513 old_striplib=
9514 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9515 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9516 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9517   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9518   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9519   echo "$as_me:$LINENO: result: yes" >&5
9520 echo "${ECHO_T}yes" >&6
9521 else
9522 # FIXME - insert some real tests, host_os isn't really good enough
9523   case $host_os in
9524    darwin*)
9525        if test -n "$STRIP" ; then
9526          striplib="$STRIP -x"
9527          echo "$as_me:$LINENO: result: yes" >&5
9528 echo "${ECHO_T}yes" >&6
9529        else
9530   echo "$as_me:$LINENO: result: no" >&5
9531 echo "${ECHO_T}no" >&6
9532 fi
9533        ;;
9534    *)
9535   echo "$as_me:$LINENO: result: no" >&5
9536 echo "${ECHO_T}no" >&6
9537     ;;
9538   esac
9539 fi
9540
9541 if test "x$enable_dlopen" != xyes; then
9542   enable_dlopen=unknown
9543   enable_dlopen_self=unknown
9544   enable_dlopen_self_static=unknown
9545 else
9546   lt_cv_dlopen=no
9547   lt_cv_dlopen_libs=
9548
9549   case $host_os in
9550   beos*)
9551     lt_cv_dlopen="load_add_on"
9552     lt_cv_dlopen_libs=
9553     lt_cv_dlopen_self=yes
9554     ;;
9555
9556   mingw* | pw32*)
9557     lt_cv_dlopen="LoadLibrary"
9558     lt_cv_dlopen_libs=
9559    ;;
9560
9561   cygwin*)
9562     lt_cv_dlopen="dlopen"
9563     lt_cv_dlopen_libs=
9564    ;;
9565
9566   darwin*)
9567   # if libdl is installed we need to link against it
9568     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9569 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9570 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9571   echo $ECHO_N "(cached) $ECHO_C" >&6
9572 else
9573   ac_check_lib_save_LIBS=$LIBS
9574 LIBS="-ldl  $LIBS"
9575 cat >conftest.$ac_ext <<_ACEOF
9576 /* confdefs.h.  */
9577 _ACEOF
9578 cat confdefs.h >>conftest.$ac_ext
9579 cat >>conftest.$ac_ext <<_ACEOF
9580 /* end confdefs.h.  */
9581
9582 /* Override any gcc2 internal prototype to avoid an error.  */
9583 #ifdef __cplusplus
9584 extern "C"
9585 #endif
9586 /* We use char because int might match the return type of a gcc2
9587    builtin and then its argument prototype would still apply.  */
9588 char dlopen ();
9589 int
9590 main ()
9591 {
9592 dlopen ();
9593   ;
9594   return 0;
9595 }
9596 _ACEOF
9597 rm -f conftest.$ac_objext conftest$ac_exeext
9598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9599   (eval $ac_link) 2>conftest.er1
9600   ac_status=$?
9601   grep -v '^ *+' conftest.er1 >conftest.err
9602   rm -f conftest.er1
9603   cat conftest.err >&5
9604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605   (exit $ac_status); } &&
9606          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9608   (eval $ac_try) 2>&5
9609   ac_status=$?
9610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611   (exit $ac_status); }; } &&
9612          { ac_try='test -s conftest$ac_exeext'
9613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9614   (eval $ac_try) 2>&5
9615   ac_status=$?
9616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617   (exit $ac_status); }; }; then
9618   ac_cv_lib_dl_dlopen=yes
9619 else
9620   echo "$as_me: failed program was:" >&5
9621 sed 's/^/| /' conftest.$ac_ext >&5
9622
9623 ac_cv_lib_dl_dlopen=no
9624 fi
9625 rm -f conftest.err conftest.$ac_objext \
9626       conftest$ac_exeext conftest.$ac_ext
9627 LIBS=$ac_check_lib_save_LIBS
9628 fi
9629 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9630 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9631 if test $ac_cv_lib_dl_dlopen = yes; then
9632   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9633 else
9634
9635     lt_cv_dlopen="dyld"
9636     lt_cv_dlopen_libs=
9637     lt_cv_dlopen_self=yes
9638
9639 fi
9640
9641    ;;
9642
9643   *)
9644     echo "$as_me:$LINENO: checking for shl_load" >&5
9645 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9646 if test "${ac_cv_func_shl_load+set}" = set; then
9647   echo $ECHO_N "(cached) $ECHO_C" >&6
9648 else
9649   cat >conftest.$ac_ext <<_ACEOF
9650 /* confdefs.h.  */
9651 _ACEOF
9652 cat confdefs.h >>conftest.$ac_ext
9653 cat >>conftest.$ac_ext <<_ACEOF
9654 /* end confdefs.h.  */
9655 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9656    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9657 #define shl_load innocuous_shl_load
9658
9659 /* System header to define __stub macros and hopefully few prototypes,
9660     which can conflict with char shl_load (); below.
9661     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9662     <limits.h> exists even on freestanding compilers.  */
9663
9664 #ifdef __STDC__
9665 # include <limits.h>
9666 #else
9667 # include <assert.h>
9668 #endif
9669
9670 #undef shl_load
9671
9672 /* Override any gcc2 internal prototype to avoid an error.  */
9673 #ifdef __cplusplus
9674 extern "C"
9675 {
9676 #endif
9677 /* We use char because int might match the return type of a gcc2
9678    builtin and then its argument prototype would still apply.  */
9679 char shl_load ();
9680 /* The GNU C library defines this for functions which it implements
9681     to always fail with ENOSYS.  Some functions are actually named
9682     something starting with __ and the normal name is an alias.  */
9683 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9684 choke me
9685 #else
9686 char (*f) () = shl_load;
9687 #endif
9688 #ifdef __cplusplus
9689 }
9690 #endif
9691
9692 int
9693 main ()
9694 {
9695 return f != shl_load;
9696   ;
9697   return 0;
9698 }
9699 _ACEOF
9700 rm -f conftest.$ac_objext conftest$ac_exeext
9701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9702   (eval $ac_link) 2>conftest.er1
9703   ac_status=$?
9704   grep -v '^ *+' conftest.er1 >conftest.err
9705   rm -f conftest.er1
9706   cat conftest.err >&5
9707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708   (exit $ac_status); } &&
9709          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9711   (eval $ac_try) 2>&5
9712   ac_status=$?
9713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714   (exit $ac_status); }; } &&
9715          { ac_try='test -s conftest$ac_exeext'
9716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9717   (eval $ac_try) 2>&5
9718   ac_status=$?
9719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720   (exit $ac_status); }; }; then
9721   ac_cv_func_shl_load=yes
9722 else
9723   echo "$as_me: failed program was:" >&5
9724 sed 's/^/| /' conftest.$ac_ext >&5
9725
9726 ac_cv_func_shl_load=no
9727 fi
9728 rm -f conftest.err conftest.$ac_objext \
9729       conftest$ac_exeext conftest.$ac_ext
9730 fi
9731 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9732 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9733 if test $ac_cv_func_shl_load = yes; then
9734   lt_cv_dlopen="shl_load"
9735 else
9736   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9737 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9738 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9739   echo $ECHO_N "(cached) $ECHO_C" >&6
9740 else
9741   ac_check_lib_save_LIBS=$LIBS
9742 LIBS="-ldld  $LIBS"
9743 cat >conftest.$ac_ext <<_ACEOF
9744 /* confdefs.h.  */
9745 _ACEOF
9746 cat confdefs.h >>conftest.$ac_ext
9747 cat >>conftest.$ac_ext <<_ACEOF
9748 /* end confdefs.h.  */
9749
9750 /* Override any gcc2 internal prototype to avoid an error.  */
9751 #ifdef __cplusplus
9752 extern "C"
9753 #endif
9754 /* We use char because int might match the return type of a gcc2
9755    builtin and then its argument prototype would still apply.  */
9756 char shl_load ();
9757 int
9758 main ()
9759 {
9760 shl_load ();
9761   ;
9762   return 0;
9763 }
9764 _ACEOF
9765 rm -f conftest.$ac_objext conftest$ac_exeext
9766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9767   (eval $ac_link) 2>conftest.er1
9768   ac_status=$?
9769   grep -v '^ *+' conftest.er1 >conftest.err
9770   rm -f conftest.er1
9771   cat conftest.err >&5
9772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773   (exit $ac_status); } &&
9774          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9776   (eval $ac_try) 2>&5
9777   ac_status=$?
9778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779   (exit $ac_status); }; } &&
9780          { ac_try='test -s conftest$ac_exeext'
9781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9782   (eval $ac_try) 2>&5
9783   ac_status=$?
9784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785   (exit $ac_status); }; }; then
9786   ac_cv_lib_dld_shl_load=yes
9787 else
9788   echo "$as_me: failed program was:" >&5
9789 sed 's/^/| /' conftest.$ac_ext >&5
9790
9791 ac_cv_lib_dld_shl_load=no
9792 fi
9793 rm -f conftest.err conftest.$ac_objext \
9794       conftest$ac_exeext conftest.$ac_ext
9795 LIBS=$ac_check_lib_save_LIBS
9796 fi
9797 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9798 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9799 if test $ac_cv_lib_dld_shl_load = yes; then
9800   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9801 else
9802   echo "$as_me:$LINENO: checking for dlopen" >&5
9803 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9804 if test "${ac_cv_func_dlopen+set}" = set; then
9805   echo $ECHO_N "(cached) $ECHO_C" >&6
9806 else
9807   cat >conftest.$ac_ext <<_ACEOF
9808 /* confdefs.h.  */
9809 _ACEOF
9810 cat confdefs.h >>conftest.$ac_ext
9811 cat >>conftest.$ac_ext <<_ACEOF
9812 /* end confdefs.h.  */
9813 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9814    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9815 #define dlopen innocuous_dlopen
9816
9817 /* System header to define __stub macros and hopefully few prototypes,
9818     which can conflict with char dlopen (); below.
9819     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9820     <limits.h> exists even on freestanding compilers.  */
9821
9822 #ifdef __STDC__
9823 # include <limits.h>
9824 #else
9825 # include <assert.h>
9826 #endif
9827
9828 #undef dlopen
9829
9830 /* Override any gcc2 internal prototype to avoid an error.  */
9831 #ifdef __cplusplus
9832 extern "C"
9833 {
9834 #endif
9835 /* We use char because int might match the return type of a gcc2
9836    builtin and then its argument prototype would still apply.  */
9837 char dlopen ();
9838 /* The GNU C library defines this for functions which it implements
9839     to always fail with ENOSYS.  Some functions are actually named
9840     something starting with __ and the normal name is an alias.  */
9841 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9842 choke me
9843 #else
9844 char (*f) () = dlopen;
9845 #endif
9846 #ifdef __cplusplus
9847 }
9848 #endif
9849
9850 int
9851 main ()
9852 {
9853 return f != dlopen;
9854   ;
9855   return 0;
9856 }
9857 _ACEOF
9858 rm -f conftest.$ac_objext conftest$ac_exeext
9859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9860   (eval $ac_link) 2>conftest.er1
9861   ac_status=$?
9862   grep -v '^ *+' conftest.er1 >conftest.err
9863   rm -f conftest.er1
9864   cat conftest.err >&5
9865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866   (exit $ac_status); } &&
9867          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9869   (eval $ac_try) 2>&5
9870   ac_status=$?
9871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872   (exit $ac_status); }; } &&
9873          { ac_try='test -s conftest$ac_exeext'
9874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9875   (eval $ac_try) 2>&5
9876   ac_status=$?
9877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878   (exit $ac_status); }; }; then
9879   ac_cv_func_dlopen=yes
9880 else
9881   echo "$as_me: failed program was:" >&5
9882 sed 's/^/| /' conftest.$ac_ext >&5
9883
9884 ac_cv_func_dlopen=no
9885 fi
9886 rm -f conftest.err conftest.$ac_objext \
9887       conftest$ac_exeext conftest.$ac_ext
9888 fi
9889 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9890 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9891 if test $ac_cv_func_dlopen = yes; then
9892   lt_cv_dlopen="dlopen"
9893 else
9894   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9895 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9896 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9897   echo $ECHO_N "(cached) $ECHO_C" >&6
9898 else
9899   ac_check_lib_save_LIBS=$LIBS
9900 LIBS="-ldl  $LIBS"
9901 cat >conftest.$ac_ext <<_ACEOF
9902 /* confdefs.h.  */
9903 _ACEOF
9904 cat confdefs.h >>conftest.$ac_ext
9905 cat >>conftest.$ac_ext <<_ACEOF
9906 /* end confdefs.h.  */
9907
9908 /* Override any gcc2 internal prototype to avoid an error.  */
9909 #ifdef __cplusplus
9910 extern "C"
9911 #endif
9912 /* We use char because int might match the return type of a gcc2
9913    builtin and then its argument prototype would still apply.  */
9914 char dlopen ();
9915 int
9916 main ()
9917 {
9918 dlopen ();
9919   ;
9920   return 0;
9921 }
9922 _ACEOF
9923 rm -f conftest.$ac_objext conftest$ac_exeext
9924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9925   (eval $ac_link) 2>conftest.er1
9926   ac_status=$?
9927   grep -v '^ *+' conftest.er1 >conftest.err
9928   rm -f conftest.er1
9929   cat conftest.err >&5
9930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931   (exit $ac_status); } &&
9932          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9934   (eval $ac_try) 2>&5
9935   ac_status=$?
9936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937   (exit $ac_status); }; } &&
9938          { ac_try='test -s conftest$ac_exeext'
9939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9940   (eval $ac_try) 2>&5
9941   ac_status=$?
9942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943   (exit $ac_status); }; }; then
9944   ac_cv_lib_dl_dlopen=yes
9945 else
9946   echo "$as_me: failed program was:" >&5
9947 sed 's/^/| /' conftest.$ac_ext >&5
9948
9949 ac_cv_lib_dl_dlopen=no
9950 fi
9951 rm -f conftest.err conftest.$ac_objext \
9952       conftest$ac_exeext conftest.$ac_ext
9953 LIBS=$ac_check_lib_save_LIBS
9954 fi
9955 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9956 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9957 if test $ac_cv_lib_dl_dlopen = yes; then
9958   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9959 else
9960   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9961 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9962 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9963   echo $ECHO_N "(cached) $ECHO_C" >&6
9964 else
9965   ac_check_lib_save_LIBS=$LIBS
9966 LIBS="-lsvld  $LIBS"
9967 cat >conftest.$ac_ext <<_ACEOF
9968 /* confdefs.h.  */
9969 _ACEOF
9970 cat confdefs.h >>conftest.$ac_ext
9971 cat >>conftest.$ac_ext <<_ACEOF
9972 /* end confdefs.h.  */
9973
9974 /* Override any gcc2 internal prototype to avoid an error.  */
9975 #ifdef __cplusplus
9976 extern "C"
9977 #endif
9978 /* We use char because int might match the return type of a gcc2
9979    builtin and then its argument prototype would still apply.  */
9980 char dlopen ();
9981 int
9982 main ()
9983 {
9984 dlopen ();
9985   ;
9986   return 0;
9987 }
9988 _ACEOF
9989 rm -f conftest.$ac_objext conftest$ac_exeext
9990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9991   (eval $ac_link) 2>conftest.er1
9992   ac_status=$?
9993   grep -v '^ *+' conftest.er1 >conftest.err
9994   rm -f conftest.er1
9995   cat conftest.err >&5
9996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997   (exit $ac_status); } &&
9998          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10000   (eval $ac_try) 2>&5
10001   ac_status=$?
10002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003   (exit $ac_status); }; } &&
10004          { ac_try='test -s conftest$ac_exeext'
10005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10006   (eval $ac_try) 2>&5
10007   ac_status=$?
10008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009   (exit $ac_status); }; }; then
10010   ac_cv_lib_svld_dlopen=yes
10011 else
10012   echo "$as_me: failed program was:" >&5
10013 sed 's/^/| /' conftest.$ac_ext >&5
10014
10015 ac_cv_lib_svld_dlopen=no
10016 fi
10017 rm -f conftest.err conftest.$ac_objext \
10018       conftest$ac_exeext conftest.$ac_ext
10019 LIBS=$ac_check_lib_save_LIBS
10020 fi
10021 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10022 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10023 if test $ac_cv_lib_svld_dlopen = yes; then
10024   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10025 else
10026   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10027 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10028 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10029   echo $ECHO_N "(cached) $ECHO_C" >&6
10030 else
10031   ac_check_lib_save_LIBS=$LIBS
10032 LIBS="-ldld  $LIBS"
10033 cat >conftest.$ac_ext <<_ACEOF
10034 /* confdefs.h.  */
10035 _ACEOF
10036 cat confdefs.h >>conftest.$ac_ext
10037 cat >>conftest.$ac_ext <<_ACEOF
10038 /* end confdefs.h.  */
10039
10040 /* Override any gcc2 internal prototype to avoid an error.  */
10041 #ifdef __cplusplus
10042 extern "C"
10043 #endif
10044 /* We use char because int might match the return type of a gcc2
10045    builtin and then its argument prototype would still apply.  */
10046 char dld_link ();
10047 int
10048 main ()
10049 {
10050 dld_link ();
10051   ;
10052   return 0;
10053 }
10054 _ACEOF
10055 rm -f conftest.$ac_objext conftest$ac_exeext
10056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10057   (eval $ac_link) 2>conftest.er1
10058   ac_status=$?
10059   grep -v '^ *+' conftest.er1 >conftest.err
10060   rm -f conftest.er1
10061   cat conftest.err >&5
10062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063   (exit $ac_status); } &&
10064          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10066   (eval $ac_try) 2>&5
10067   ac_status=$?
10068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069   (exit $ac_status); }; } &&
10070          { ac_try='test -s conftest$ac_exeext'
10071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10072   (eval $ac_try) 2>&5
10073   ac_status=$?
10074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075   (exit $ac_status); }; }; then
10076   ac_cv_lib_dld_dld_link=yes
10077 else
10078   echo "$as_me: failed program was:" >&5
10079 sed 's/^/| /' conftest.$ac_ext >&5
10080
10081 ac_cv_lib_dld_dld_link=no
10082 fi
10083 rm -f conftest.err conftest.$ac_objext \
10084       conftest$ac_exeext conftest.$ac_ext
10085 LIBS=$ac_check_lib_save_LIBS
10086 fi
10087 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10088 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10089 if test $ac_cv_lib_dld_dld_link = yes; then
10090   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10091 fi
10092
10093
10094 fi
10095
10096
10097 fi
10098
10099
10100 fi
10101
10102
10103 fi
10104
10105
10106 fi
10107
10108     ;;
10109   esac
10110
10111   if test "x$lt_cv_dlopen" != xno; then
10112     enable_dlopen=yes
10113   else
10114     enable_dlopen=no
10115   fi
10116
10117   case $lt_cv_dlopen in
10118   dlopen)
10119     save_CPPFLAGS="$CPPFLAGS"
10120     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10121
10122     save_LDFLAGS="$LDFLAGS"
10123     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10124
10125     save_LIBS="$LIBS"
10126     LIBS="$lt_cv_dlopen_libs $LIBS"
10127
10128     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10129 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10130 if test "${lt_cv_dlopen_self+set}" = set; then
10131   echo $ECHO_N "(cached) $ECHO_C" >&6
10132 else
10133           if test "$cross_compiling" = yes; then :
10134   lt_cv_dlopen_self=cross
10135 else
10136   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10137   lt_status=$lt_dlunknown
10138   cat > conftest.$ac_ext <<EOF
10139 #line 10139 "configure"
10140 #include "confdefs.h"
10141
10142 #if HAVE_DLFCN_H
10143 #include <dlfcn.h>
10144 #endif
10145
10146 #include <stdio.h>
10147
10148 #ifdef RTLD_GLOBAL
10149 #  define LT_DLGLOBAL           RTLD_GLOBAL
10150 #else
10151 #  ifdef DL_GLOBAL
10152 #    define LT_DLGLOBAL         DL_GLOBAL
10153 #  else
10154 #    define LT_DLGLOBAL         0
10155 #  endif
10156 #endif
10157
10158 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10159    find out it does not work in some platform. */
10160 #ifndef LT_DLLAZY_OR_NOW
10161 #  ifdef RTLD_LAZY
10162 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10163 #  else
10164 #    ifdef DL_LAZY
10165 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10166 #    else
10167 #      ifdef RTLD_NOW
10168 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10169 #      else
10170 #        ifdef DL_NOW
10171 #          define LT_DLLAZY_OR_NOW      DL_NOW
10172 #        else
10173 #          define LT_DLLAZY_OR_NOW      0
10174 #        endif
10175 #      endif
10176 #    endif
10177 #  endif
10178 #endif
10179
10180 #ifdef __cplusplus
10181 extern "C" void exit (int);
10182 #endif
10183
10184 void fnord() { int i=42;}
10185 int main ()
10186 {
10187   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10188   int status = $lt_dlunknown;
10189
10190   if (self)
10191     {
10192       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10193       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10194       /* dlclose (self); */
10195     }
10196
10197     exit (status);
10198 }
10199 EOF
10200   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10201   (eval $ac_link) 2>&5
10202   ac_status=$?
10203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10205     (./conftest; exit; ) >&5 2>/dev/null
10206     lt_status=$?
10207     case x$lt_status in
10208       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10209       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10210       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10211     esac
10212   else :
10213     # compilation failed
10214     lt_cv_dlopen_self=no
10215   fi
10216 fi
10217 rm -fr conftest*
10218
10219
10220 fi
10221 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10222 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10223
10224     if test "x$lt_cv_dlopen_self" = xyes; then
10225       LDFLAGS="$LDFLAGS $link_static_flag"
10226       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10227 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10228 if test "${lt_cv_dlopen_self_static+set}" = set; then
10229   echo $ECHO_N "(cached) $ECHO_C" >&6
10230 else
10231           if test "$cross_compiling" = yes; then :
10232   lt_cv_dlopen_self_static=cross
10233 else
10234   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10235   lt_status=$lt_dlunknown
10236   cat > conftest.$ac_ext <<EOF
10237 #line 10237 "configure"
10238 #include "confdefs.h"
10239
10240 #if HAVE_DLFCN_H
10241 #include <dlfcn.h>
10242 #endif
10243
10244 #include <stdio.h>
10245
10246 #ifdef RTLD_GLOBAL
10247 #  define LT_DLGLOBAL           RTLD_GLOBAL
10248 #else
10249 #  ifdef DL_GLOBAL
10250 #    define LT_DLGLOBAL         DL_GLOBAL
10251 #  else
10252 #    define LT_DLGLOBAL         0
10253 #  endif
10254 #endif
10255
10256 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10257    find out it does not work in some platform. */
10258 #ifndef LT_DLLAZY_OR_NOW
10259 #  ifdef RTLD_LAZY
10260 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10261 #  else
10262 #    ifdef DL_LAZY
10263 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10264 #    else
10265 #      ifdef RTLD_NOW
10266 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10267 #      else
10268 #        ifdef DL_NOW
10269 #          define LT_DLLAZY_OR_NOW      DL_NOW
10270 #        else
10271 #          define LT_DLLAZY_OR_NOW      0
10272 #        endif
10273 #      endif
10274 #    endif
10275 #  endif
10276 #endif
10277
10278 #ifdef __cplusplus
10279 extern "C" void exit (int);
10280 #endif
10281
10282 void fnord() { int i=42;}
10283 int main ()
10284 {
10285   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10286   int status = $lt_dlunknown;
10287
10288   if (self)
10289     {
10290       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10291       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10292       /* dlclose (self); */
10293     }
10294
10295     exit (status);
10296 }
10297 EOF
10298   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10299   (eval $ac_link) 2>&5
10300   ac_status=$?
10301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10303     (./conftest; exit; ) >&5 2>/dev/null
10304     lt_status=$?
10305     case x$lt_status in
10306       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10307       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10308       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10309     esac
10310   else :
10311     # compilation failed
10312     lt_cv_dlopen_self_static=no
10313   fi
10314 fi
10315 rm -fr conftest*
10316
10317
10318 fi
10319 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10320 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10321     fi
10322
10323     CPPFLAGS="$save_CPPFLAGS"
10324     LDFLAGS="$save_LDFLAGS"
10325     LIBS="$save_LIBS"
10326     ;;
10327   esac
10328
10329   case $lt_cv_dlopen_self in
10330   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10331   *) enable_dlopen_self=unknown ;;
10332   esac
10333
10334   case $lt_cv_dlopen_self_static in
10335   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10336   *) enable_dlopen_self_static=unknown ;;
10337   esac
10338 fi
10339
10340
10341 # Report which librarie types wil actually be built
10342 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10343 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10344 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10345 echo "${ECHO_T}$can_build_shared" >&6
10346
10347 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10348 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10349 test "$can_build_shared" = "no" && enable_shared=no
10350
10351 # On AIX, shared libraries and static libraries use the same namespace, and
10352 # are all built from PIC.
10353 case $host_os in
10354 aix3*)
10355   test "$enable_shared" = yes && enable_static=no
10356   if test -n "$RANLIB"; then
10357     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10358     postinstall_cmds='$RANLIB $lib'
10359   fi
10360   ;;
10361
10362 aix4* | aix5*)
10363   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10364     test "$enable_shared" = yes && enable_static=no
10365   fi
10366     ;;
10367 esac
10368 echo "$as_me:$LINENO: result: $enable_shared" >&5
10369 echo "${ECHO_T}$enable_shared" >&6
10370
10371 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10372 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10373 # Make sure either enable_shared or enable_static is yes.
10374 test "$enable_shared" = yes || enable_static=yes
10375 echo "$as_me:$LINENO: result: $enable_static" >&5
10376 echo "${ECHO_T}$enable_static" >&6
10377
10378 # The else clause should only fire when bootstrapping the
10379 # libtool distribution, otherwise you forgot to ship ltmain.sh
10380 # with your package, and you will get complaints that there are
10381 # no rules to generate ltmain.sh.
10382 if test -f "$ltmain"; then
10383   # See if we are running on zsh, and set the options which allow our commands through
10384   # without removal of \ escapes.
10385   if test -n "${ZSH_VERSION+set}" ; then
10386     setopt NO_GLOB_SUBST
10387   fi
10388   # Now quote all the things that may contain metacharacters while being
10389   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10390   # variables and quote the copies for generation of the libtool script.
10391   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10392     SED SHELL STRIP \
10393     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10394     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10395     deplibs_check_method reload_flag reload_cmds need_locks \
10396     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10397     lt_cv_sys_global_symbol_to_c_name_address \
10398     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10399     old_postinstall_cmds old_postuninstall_cmds \
10400     compiler \
10401     CC \
10402     LD \
10403     lt_prog_compiler_wl \
10404     lt_prog_compiler_pic \
10405     lt_prog_compiler_static \
10406     lt_prog_compiler_no_builtin_flag \
10407     export_dynamic_flag_spec \
10408     thread_safe_flag_spec \
10409     whole_archive_flag_spec \
10410     enable_shared_with_static_runtimes \
10411     old_archive_cmds \
10412     old_archive_from_new_cmds \
10413     predep_objects \
10414     postdep_objects \
10415     predeps \
10416     postdeps \
10417     compiler_lib_search_path \
10418     archive_cmds \
10419     archive_expsym_cmds \
10420     postinstall_cmds \
10421     postuninstall_cmds \
10422     old_archive_from_expsyms_cmds \
10423     allow_undefined_flag \
10424     no_undefined_flag \
10425     export_symbols_cmds \
10426     hardcode_libdir_flag_spec \
10427     hardcode_libdir_flag_spec_ld \
10428     hardcode_libdir_separator \
10429     hardcode_automatic \
10430     module_cmds \
10431     module_expsym_cmds \
10432     lt_cv_prog_compiler_c_o \
10433     exclude_expsyms \
10434     include_expsyms; do
10435
10436     case $var in
10437     old_archive_cmds | \
10438     old_archive_from_new_cmds | \
10439     archive_cmds | \
10440     archive_expsym_cmds | \
10441     module_cmds | \
10442     module_expsym_cmds | \
10443     old_archive_from_expsyms_cmds | \
10444     export_symbols_cmds | \
10445     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10446     postinstall_cmds | postuninstall_cmds | \
10447     old_postinstall_cmds | old_postuninstall_cmds | \
10448     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10449       # Double-quote double-evaled strings.
10450       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10451       ;;
10452     *)
10453       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10454       ;;
10455     esac
10456   done
10457
10458   case $lt_echo in
10459   *'\$0 --fallback-echo"')
10460     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10461     ;;
10462   esac
10463
10464 cfgfile="${ofile}T"
10465   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10466   $rm -f "$cfgfile"
10467   { echo "$as_me:$LINENO: creating $ofile" >&5
10468 echo "$as_me: creating $ofile" >&6;}
10469
10470   cat <<__EOF__ >> "$cfgfile"
10471 #! $SHELL
10472
10473 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10474 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10475 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10476 #
10477 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10478 # Free Software Foundation, Inc.
10479 #
10480 # This file is part of GNU Libtool:
10481 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10482 #
10483 # This program is free software; you can redistribute it and/or modify
10484 # it under the terms of the GNU General Public License as published by
10485 # the Free Software Foundation; either version 2 of the License, or
10486 # (at your option) any later version.
10487 #
10488 # This program is distributed in the hope that it will be useful, but
10489 # WITHOUT ANY WARRANTY; without even the implied warranty of
10490 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10491 # General Public License for more details.
10492 #
10493 # You should have received a copy of the GNU General Public License
10494 # along with this program; if not, write to the Free Software
10495 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10496 #
10497 # As a special exception to the GNU General Public License, if you
10498 # distribute this file as part of a program that contains a
10499 # configuration script generated by Autoconf, you may include it under
10500 # the same distribution terms that you use for the rest of that program.
10501
10502 # A sed program that does not truncate output.
10503 SED=$lt_SED
10504
10505 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10506 Xsed="$SED -e 1s/^X//"
10507
10508 # The HP-UX ksh and POSIX shell print the target directory to stdout
10509 # if CDPATH is set.
10510 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10511
10512 # The names of the tagged configurations supported by this script.
10513 available_tags=
10514
10515 # ### BEGIN LIBTOOL CONFIG
10516
10517 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10518
10519 # Shell to use when invoking shell scripts.
10520 SHELL=$lt_SHELL
10521
10522 # Whether or not to build shared libraries.
10523 build_libtool_libs=$enable_shared
10524
10525 # Whether or not to build static libraries.
10526 build_old_libs=$enable_static
10527
10528 # Whether or not to add -lc for building shared libraries.
10529 build_libtool_need_lc=$archive_cmds_need_lc
10530
10531 # Whether or not to disallow shared libs when runtime libs are static
10532 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10533
10534 # Whether or not to optimize for fast installation.
10535 fast_install=$enable_fast_install
10536
10537 # The host system.
10538 host_alias=$host_alias
10539 host=$host
10540 host_os=$host_os
10541
10542 # The build system.
10543 build_alias=$build_alias
10544 build=$build
10545 build_os=$build_os
10546
10547 # An echo program that does not interpret backslashes.
10548 echo=$lt_echo
10549
10550 # The archiver.
10551 AR=$lt_AR
10552 AR_FLAGS=$lt_AR_FLAGS
10553
10554 # A C compiler.
10555 LTCC=$lt_LTCC
10556
10557 # A language-specific compiler.
10558 CC=$lt_compiler
10559
10560 # Is the compiler the GNU C compiler?
10561 with_gcc=$GCC
10562
10563 # An ERE matcher.
10564 EGREP=$lt_EGREP
10565
10566 # The linker used to build libraries.
10567 LD=$lt_LD
10568
10569 # Whether we need hard or soft links.
10570 LN_S=$lt_LN_S
10571
10572 # A BSD-compatible nm program.
10573 NM=$lt_NM
10574
10575 # A symbol stripping program
10576 STRIP=$lt_STRIP
10577
10578 # Used to examine libraries when file_magic_cmd begins "file"
10579 MAGIC_CMD=$MAGIC_CMD
10580
10581 # Used on cygwin: DLL creation program.
10582 DLLTOOL="$DLLTOOL"
10583
10584 # Used on cygwin: object dumper.
10585 OBJDUMP="$OBJDUMP"
10586
10587 # Used on cygwin: assembler.
10588 AS="$AS"
10589
10590 # The name of the directory that contains temporary libtool files.
10591 objdir=$objdir
10592
10593 # How to create reloadable object files.
10594 reload_flag=$lt_reload_flag
10595 reload_cmds=$lt_reload_cmds
10596
10597 # How to pass a linker flag through the compiler.
10598 wl=$lt_lt_prog_compiler_wl
10599
10600 # Object file suffix (normally "o").
10601 objext="$ac_objext"
10602
10603 # Old archive suffix (normally "a").
10604 libext="$libext"
10605
10606 # Shared library suffix (normally ".so").
10607 shrext_cmds='$shrext_cmds'
10608
10609 # Executable file suffix (normally "").
10610 exeext="$exeext"
10611
10612 # Additional compiler flags for building library objects.
10613 pic_flag=$lt_lt_prog_compiler_pic
10614 pic_mode=$pic_mode
10615
10616 # What is the maximum length of a command?
10617 max_cmd_len=$lt_cv_sys_max_cmd_len
10618
10619 # Does compiler simultaneously support -c and -o options?
10620 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10621
10622 # Must we lock files when doing compilation?
10623 need_locks=$lt_need_locks
10624
10625 # Do we need the lib prefix for modules?
10626 need_lib_prefix=$need_lib_prefix
10627
10628 # Do we need a version for libraries?
10629 need_version=$need_version
10630
10631 # Whether dlopen is supported.
10632 dlopen_support=$enable_dlopen
10633
10634 # Whether dlopen of programs is supported.
10635 dlopen_self=$enable_dlopen_self
10636
10637 # Whether dlopen of statically linked programs is supported.
10638 dlopen_self_static=$enable_dlopen_self_static
10639
10640 # Compiler flag to prevent dynamic linking.
10641 link_static_flag=$lt_lt_prog_compiler_static
10642
10643 # Compiler flag to turn off builtin functions.
10644 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10645
10646 # Compiler flag to allow reflexive dlopens.
10647 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10648
10649 # Compiler flag to generate shared objects directly from archives.
10650 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10651
10652 # Compiler flag to generate thread-safe objects.
10653 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10654
10655 # Library versioning type.
10656 version_type=$version_type
10657
10658 # Format of library name prefix.
10659 libname_spec=$lt_libname_spec
10660
10661 # List of archive names.  First name is the real one, the rest are links.
10662 # The last name is the one that the linker finds with -lNAME.
10663 library_names_spec=$lt_library_names_spec
10664
10665 # The coded name of the library, if different from the real name.
10666 soname_spec=$lt_soname_spec
10667
10668 # Commands used to build and install an old-style archive.
10669 RANLIB=$lt_RANLIB
10670 old_archive_cmds=$lt_old_archive_cmds
10671 old_postinstall_cmds=$lt_old_postinstall_cmds
10672 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10673
10674 # Create an old-style archive from a shared archive.
10675 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10676
10677 # Create a temporary old-style archive to link instead of a shared archive.
10678 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10679
10680 # Commands used to build and install a shared archive.
10681 archive_cmds=$lt_archive_cmds
10682 archive_expsym_cmds=$lt_archive_expsym_cmds
10683 postinstall_cmds=$lt_postinstall_cmds
10684 postuninstall_cmds=$lt_postuninstall_cmds
10685
10686 # Commands used to build a loadable module (assumed same as above if empty)
10687 module_cmds=$lt_module_cmds
10688 module_expsym_cmds=$lt_module_expsym_cmds
10689
10690 # Commands to strip libraries.
10691 old_striplib=$lt_old_striplib
10692 striplib=$lt_striplib
10693
10694 # Dependencies to place before the objects being linked to create a
10695 # shared library.
10696 predep_objects=$lt_predep_objects
10697
10698 # Dependencies to place after the objects being linked to create a
10699 # shared library.
10700 postdep_objects=$lt_postdep_objects
10701
10702 # Dependencies to place before the objects being linked to create a
10703 # shared library.
10704 predeps=$lt_predeps
10705
10706 # Dependencies to place after the objects being linked to create a
10707 # shared library.
10708 postdeps=$lt_postdeps
10709
10710 # The library search path used internally by the compiler when linking
10711 # a shared library.
10712 compiler_lib_search_path=$lt_compiler_lib_search_path
10713
10714 # Method to check whether dependent libraries are shared objects.
10715 deplibs_check_method=$lt_deplibs_check_method
10716
10717 # Command to use when deplibs_check_method == file_magic.
10718 file_magic_cmd=$lt_file_magic_cmd
10719
10720 # Flag that allows shared libraries with undefined symbols to be built.
10721 allow_undefined_flag=$lt_allow_undefined_flag
10722
10723 # Flag that forces no undefined symbols.
10724 no_undefined_flag=$lt_no_undefined_flag
10725
10726 # Commands used to finish a libtool library installation in a directory.
10727 finish_cmds=$lt_finish_cmds
10728
10729 # Same as above, but a single script fragment to be evaled but not shown.
10730 finish_eval=$lt_finish_eval
10731
10732 # Take the output of nm and produce a listing of raw symbols and C names.
10733 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10734
10735 # Transform the output of nm in a proper C declaration
10736 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10737
10738 # Transform the output of nm in a C name address pair
10739 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10740
10741 # This is the shared library runtime path variable.
10742 runpath_var=$runpath_var
10743
10744 # This is the shared library path variable.
10745 shlibpath_var=$shlibpath_var
10746
10747 # Is shlibpath searched before the hard-coded library search path?
10748 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10749
10750 # How to hardcode a shared library path into an executable.
10751 hardcode_action=$hardcode_action
10752
10753 # Whether we should hardcode library paths into libraries.
10754 hardcode_into_libs=$hardcode_into_libs
10755
10756 # Flag to hardcode \$libdir into a binary during linking.
10757 # This must work even if \$libdir does not exist.
10758 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10759
10760 # If ld is used when linking, flag to hardcode \$libdir into
10761 # a binary during linking. This must work even if \$libdir does
10762 # not exist.
10763 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10764
10765 # Whether we need a single -rpath flag with a separated argument.
10766 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10767
10768 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10769 # resulting binary.
10770 hardcode_direct=$hardcode_direct
10771
10772 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10773 # resulting binary.
10774 hardcode_minus_L=$hardcode_minus_L
10775
10776 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10777 # the resulting binary.
10778 hardcode_shlibpath_var=$hardcode_shlibpath_var
10779
10780 # Set to yes if building a shared library automatically hardcodes DIR into the library
10781 # and all subsequent libraries and executables linked against it.
10782 hardcode_automatic=$hardcode_automatic
10783
10784 # Variables whose values should be saved in libtool wrapper scripts and
10785 # restored at relink time.
10786 variables_saved_for_relink="$variables_saved_for_relink"
10787
10788 # Whether libtool must link a program against all its dependency libraries.
10789 link_all_deplibs=$link_all_deplibs
10790
10791 # Compile-time system search path for libraries
10792 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10793
10794 # Run-time system search path for libraries
10795 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10796
10797 # Fix the shell variable \$srcfile for the compiler.
10798 fix_srcfile_path="$fix_srcfile_path"
10799
10800 # Set to yes if exported symbols are required.
10801 always_export_symbols=$always_export_symbols
10802
10803 # The commands to list exported symbols.
10804 export_symbols_cmds=$lt_export_symbols_cmds
10805
10806 # The commands to extract the exported symbol list from a shared archive.
10807 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10808
10809 # Symbols that should not be listed in the preloaded symbols.
10810 exclude_expsyms=$lt_exclude_expsyms
10811
10812 # Symbols that must always be exported.
10813 include_expsyms=$lt_include_expsyms
10814
10815 # ### END LIBTOOL CONFIG
10816
10817 __EOF__
10818
10819
10820   case $host_os in
10821   aix3*)
10822     cat <<\EOF >> "$cfgfile"
10823
10824 # AIX sometimes has problems with the GCC collect2 program.  For some
10825 # reason, if we set the COLLECT_NAMES environment variable, the problems
10826 # vanish in a puff of smoke.
10827 if test "X${COLLECT_NAMES+set}" != Xset; then
10828   COLLECT_NAMES=
10829   export COLLECT_NAMES
10830 fi
10831 EOF
10832     ;;
10833   esac
10834
10835   # We use sed instead of cat because bash on DJGPP gets confused if
10836   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10837   # text mode, it properly converts lines to CR/LF.  This bash problem
10838   # is reportedly fixed, but why not run on old versions too?
10839   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10840
10841   mv -f "$cfgfile" "$ofile" || \
10842     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10843   chmod +x "$ofile"
10844
10845 else
10846   # If there is no Makefile yet, we rely on a make rule to execute
10847   # `config.status --recheck' to rerun these tests and create the
10848   # libtool script then.
10849   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10850   if test -f "$ltmain_in"; then
10851     test -f Makefile && make "$ltmain"
10852   fi
10853 fi
10854
10855
10856 ac_ext=c
10857 ac_cpp='$CPP $CPPFLAGS'
10858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10861
10862 CC="$lt_save_CC"
10863
10864
10865 # Check whether --with-tags or --without-tags was given.
10866 if test "${with_tags+set}" = set; then
10867   withval="$with_tags"
10868   tagnames="$withval"
10869 fi;
10870
10871 if test -f "$ltmain" && test -n "$tagnames"; then
10872   if test ! -f "${ofile}"; then
10873     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10874 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10875   fi
10876
10877   if test -z "$LTCC"; then
10878     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10879     if test -z "$LTCC"; then
10880       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10881 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10882     else
10883       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10884 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10885     fi
10886   fi
10887
10888   # Extract list of available tagged configurations in $ofile.
10889   # Note that this assumes the entire list is on one line.
10890   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10891
10892   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10893   for tagname in $tagnames; do
10894     IFS="$lt_save_ifs"
10895     # Check whether tagname contains only valid characters
10896     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10897     "") ;;
10898     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10899 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10900    { (exit 1); exit 1; }; }
10901         ;;
10902     esac
10903
10904     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10905     then
10906       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10907 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10908    { (exit 1); exit 1; }; }
10909     fi
10910
10911     # Update the list of available tags.
10912     if test -n "$tagname"; then
10913       echo appending configuration tag \"$tagname\" to $ofile
10914
10915       case $tagname in
10916       CXX)
10917         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10918             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10919             (test "X$CXX" != "Xg++"))) ; then
10920           ac_ext=cc
10921 ac_cpp='$CXXCPP $CPPFLAGS'
10922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10925
10926
10927
10928
10929 archive_cmds_need_lc_CXX=no
10930 allow_undefined_flag_CXX=
10931 always_export_symbols_CXX=no
10932 archive_expsym_cmds_CXX=
10933 export_dynamic_flag_spec_CXX=
10934 hardcode_direct_CXX=no
10935 hardcode_libdir_flag_spec_CXX=
10936 hardcode_libdir_flag_spec_ld_CXX=
10937 hardcode_libdir_separator_CXX=
10938 hardcode_minus_L_CXX=no
10939 hardcode_automatic_CXX=no
10940 module_cmds_CXX=
10941 module_expsym_cmds_CXX=
10942 link_all_deplibs_CXX=unknown
10943 old_archive_cmds_CXX=$old_archive_cmds
10944 no_undefined_flag_CXX=
10945 whole_archive_flag_spec_CXX=
10946 enable_shared_with_static_runtimes_CXX=no
10947
10948 # Dependencies to place before and after the object being linked:
10949 predep_objects_CXX=
10950 postdep_objects_CXX=
10951 predeps_CXX=
10952 postdeps_CXX=
10953 compiler_lib_search_path_CXX=
10954
10955 # Source file extension for C++ test sources.
10956 ac_ext=cpp
10957
10958 # Object file extension for compiled C++ test sources.
10959 objext=o
10960 objext_CXX=$objext
10961
10962 # Code to be used in simple compile tests
10963 lt_simple_compile_test_code="int some_variable = 0;\n"
10964
10965 # Code to be used in simple link tests
10966 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10967
10968 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10969
10970 # If no C compiler was specified, use CC.
10971 LTCC=${LTCC-"$CC"}
10972
10973 # Allow CC to be a program name with arguments.
10974 compiler=$CC
10975
10976
10977 # save warnings/boilerplate of simple test code
10978 ac_outfile=conftest.$ac_objext
10979 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10980 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10981 _lt_compiler_boilerplate=`cat conftest.err`
10982 $rm conftest*
10983
10984 ac_outfile=conftest.$ac_objext
10985 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10986 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10987 _lt_linker_boilerplate=`cat conftest.err`
10988 $rm conftest*
10989
10990
10991 # Allow CC to be a program name with arguments.
10992 lt_save_CC=$CC
10993 lt_save_LD=$LD
10994 lt_save_GCC=$GCC
10995 GCC=$GXX
10996 lt_save_with_gnu_ld=$with_gnu_ld
10997 lt_save_path_LD=$lt_cv_path_LD
10998 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10999   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11000 else
11001   unset lt_cv_prog_gnu_ld
11002 fi
11003 if test -n "${lt_cv_path_LDCXX+set}"; then
11004   lt_cv_path_LD=$lt_cv_path_LDCXX
11005 else
11006   unset lt_cv_path_LD
11007 fi
11008 test -z "${LDCXX+set}" || LD=$LDCXX
11009 CC=${CXX-"c++"}
11010 compiler=$CC
11011 compiler_CXX=$CC
11012 for cc_temp in $compiler""; do
11013   case $cc_temp in
11014     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11015     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11016     \-*) ;;
11017     *) break;;
11018   esac
11019 done
11020 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11021
11022
11023 # We don't want -fno-exception wen compiling C++ code, so set the
11024 # no_builtin_flag separately
11025 if test "$GXX" = yes; then
11026   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11027 else
11028   lt_prog_compiler_no_builtin_flag_CXX=
11029 fi
11030
11031 if test "$GXX" = yes; then
11032   # Set up default GNU C++ configuration
11033
11034
11035 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11036 if test "${with_gnu_ld+set}" = set; then
11037   withval="$with_gnu_ld"
11038   test "$withval" = no || with_gnu_ld=yes
11039 else
11040   with_gnu_ld=no
11041 fi;
11042 ac_prog=ld
11043 if test "$GCC" = yes; then
11044   # Check if gcc -print-prog-name=ld gives a path.
11045   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11046 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11047   case $host in
11048   *-*-mingw*)
11049     # gcc leaves a trailing carriage return which upsets mingw
11050     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11051   *)
11052     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11053   esac
11054   case $ac_prog in
11055     # Accept absolute paths.
11056     [\\/]* | ?:[\\/]*)
11057       re_direlt='/[^/][^/]*/\.\./'
11058       # Canonicalize the pathname of ld
11059       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11060       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11061         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11062       done
11063       test -z "$LD" && LD="$ac_prog"
11064       ;;
11065   "")
11066     # If it fails, then pretend we aren't using GCC.
11067     ac_prog=ld
11068     ;;
11069   *)
11070     # If it is relative, then search for the first ld in PATH.
11071     with_gnu_ld=unknown
11072     ;;
11073   esac
11074 elif test "$with_gnu_ld" = yes; then
11075   echo "$as_me:$LINENO: checking for GNU ld" >&5
11076 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11077 else
11078   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11079 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11080 fi
11081 if test "${lt_cv_path_LD+set}" = set; then
11082   echo $ECHO_N "(cached) $ECHO_C" >&6
11083 else
11084   if test -z "$LD"; then
11085   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11086   for ac_dir in $PATH; do
11087     IFS="$lt_save_ifs"
11088     test -z "$ac_dir" && ac_dir=.
11089     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11090       lt_cv_path_LD="$ac_dir/$ac_prog"
11091       # Check to see if the program is GNU ld.  I'd rather use --version,
11092       # but apparently some variants of GNU ld only accept -v.
11093       # Break only if it was the GNU/non-GNU ld that we prefer.
11094       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11095       *GNU* | *'with BFD'*)
11096         test "$with_gnu_ld" != no && break
11097         ;;
11098       *)
11099         test "$with_gnu_ld" != yes && break
11100         ;;
11101       esac
11102     fi
11103   done
11104   IFS="$lt_save_ifs"
11105 else
11106   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11107 fi
11108 fi
11109
11110 LD="$lt_cv_path_LD"
11111 if test -n "$LD"; then
11112   echo "$as_me:$LINENO: result: $LD" >&5
11113 echo "${ECHO_T}$LD" >&6
11114 else
11115   echo "$as_me:$LINENO: result: no" >&5
11116 echo "${ECHO_T}no" >&6
11117 fi
11118 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11119 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11120    { (exit 1); exit 1; }; }
11121 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11122 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11123 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11124   echo $ECHO_N "(cached) $ECHO_C" >&6
11125 else
11126   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11127 case `$LD -v 2>&1 </dev/null` in
11128 *GNU* | *'with BFD'*)
11129   lt_cv_prog_gnu_ld=yes
11130   ;;
11131 *)
11132   lt_cv_prog_gnu_ld=no
11133   ;;
11134 esac
11135 fi
11136 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11137 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11138 with_gnu_ld=$lt_cv_prog_gnu_ld
11139
11140
11141
11142   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11143   # archiving commands below assume that GNU ld is being used.
11144   if test "$with_gnu_ld" = yes; then
11145     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11146     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'
11147
11148     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11149     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11150
11151     # If archive_cmds runs LD, not CC, wlarc should be empty
11152     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11153     #     investigate it a little bit more. (MM)
11154     wlarc='${wl}'
11155
11156     # ancient GNU ld didn't support --whole-archive et. al.
11157     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11158         grep 'no-whole-archive' > /dev/null; then
11159       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11160     else
11161       whole_archive_flag_spec_CXX=
11162     fi
11163   else
11164     with_gnu_ld=no
11165     wlarc=
11166
11167     # A generic and very simple default shared library creation
11168     # command for GNU C++ for the case where it uses the native
11169     # linker, instead of GNU ld.  If possible, this setting should
11170     # overridden to take advantage of the native linker features on
11171     # the platform it is being used on.
11172     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11173   fi
11174
11175   # Commands to make compiler produce verbose output that lists
11176   # what "hidden" libraries, object files and flags are used when
11177   # linking a shared library.
11178   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11179
11180 else
11181   GXX=no
11182   with_gnu_ld=no
11183   wlarc=
11184 fi
11185
11186 # PORTME: fill in a description of your system's C++ link characteristics
11187 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11188 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11189 ld_shlibs_CXX=yes
11190 case $host_os in
11191   aix3*)
11192     # FIXME: insert proper C++ library support
11193     ld_shlibs_CXX=no
11194     ;;
11195   aix4* | aix5*)
11196     if test "$host_cpu" = ia64; then
11197       # On IA64, the linker does run time linking by default, so we don't
11198       # have to do anything special.
11199       aix_use_runtimelinking=no
11200       exp_sym_flag='-Bexport'
11201       no_entry_flag=""
11202     else
11203       aix_use_runtimelinking=no
11204
11205       # Test if we are trying to use run time linking or normal
11206       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11207       # need to do runtime linking.
11208       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11209         for ld_flag in $LDFLAGS; do
11210           case $ld_flag in
11211           *-brtl*)
11212             aix_use_runtimelinking=yes
11213             break
11214             ;;
11215           esac
11216         done
11217       esac
11218
11219       exp_sym_flag='-bexport'
11220       no_entry_flag='-bnoentry'
11221     fi
11222
11223     # When large executables or shared objects are built, AIX ld can
11224     # have problems creating the table of contents.  If linking a library
11225     # or program results in "error TOC overflow" add -mminimal-toc to
11226     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11227     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11228
11229     archive_cmds_CXX=''
11230     hardcode_direct_CXX=yes
11231     hardcode_libdir_separator_CXX=':'
11232     link_all_deplibs_CXX=yes
11233
11234     if test "$GXX" = yes; then
11235       case $host_os in aix4.[012]|aix4.[012].*)
11236       # We only want to do this on AIX 4.2 and lower, the check
11237       # below for broken collect2 doesn't work under 4.3+
11238         collect2name=`${CC} -print-prog-name=collect2`
11239         if test -f "$collect2name" && \
11240            strings "$collect2name" | grep resolve_lib_name >/dev/null
11241         then
11242           # We have reworked collect2
11243           hardcode_direct_CXX=yes
11244         else
11245           # We have old collect2
11246           hardcode_direct_CXX=unsupported
11247           # It fails to find uninstalled libraries when the uninstalled
11248           # path is not listed in the libpath.  Setting hardcode_minus_L
11249           # to unsupported forces relinking
11250           hardcode_minus_L_CXX=yes
11251           hardcode_libdir_flag_spec_CXX='-L$libdir'
11252           hardcode_libdir_separator_CXX=
11253         fi
11254       esac
11255       shared_flag='-shared'
11256       if test "$aix_use_runtimelinking" = yes; then
11257         shared_flag="$shared_flag "'${wl}-G'
11258       fi
11259     else
11260       # not using gcc
11261       if test "$host_cpu" = ia64; then
11262         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11263         # chokes on -Wl,-G. The following line is correct:
11264         shared_flag='-G'
11265       else
11266         if test "$aix_use_runtimelinking" = yes; then
11267           shared_flag='${wl}-G'
11268         else
11269           shared_flag='${wl}-bM:SRE'
11270         fi
11271       fi
11272     fi
11273
11274     # It seems that -bexpall does not export symbols beginning with
11275     # underscore (_), so it is better to generate a list of symbols to export.
11276     always_export_symbols_CXX=yes
11277     if test "$aix_use_runtimelinking" = yes; then
11278       # Warning - without using the other runtime loading flags (-brtl),
11279       # -berok will link without error, but may produce a broken library.
11280       allow_undefined_flag_CXX='-berok'
11281       # Determine the default libpath from the value encoded in an empty executable.
11282       cat >conftest.$ac_ext <<_ACEOF
11283 /* confdefs.h.  */
11284 _ACEOF
11285 cat confdefs.h >>conftest.$ac_ext
11286 cat >>conftest.$ac_ext <<_ACEOF
11287 /* end confdefs.h.  */
11288
11289 int
11290 main ()
11291 {
11292
11293   ;
11294   return 0;
11295 }
11296 _ACEOF
11297 rm -f conftest.$ac_objext conftest$ac_exeext
11298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11299   (eval $ac_link) 2>conftest.er1
11300   ac_status=$?
11301   grep -v '^ *+' conftest.er1 >conftest.err
11302   rm -f conftest.er1
11303   cat conftest.err >&5
11304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305   (exit $ac_status); } &&
11306          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
11307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11308   (eval $ac_try) 2>&5
11309   ac_status=$?
11310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311   (exit $ac_status); }; } &&
11312          { ac_try='test -s conftest$ac_exeext'
11313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11314   (eval $ac_try) 2>&5
11315   ac_status=$?
11316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317   (exit $ac_status); }; }; then
11318
11319 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11320 }'`
11321 # Check for a 64-bit object if we didn't find anything.
11322 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; }
11323 }'`; fi
11324 else
11325   echo "$as_me: failed program was:" >&5
11326 sed 's/^/| /' conftest.$ac_ext >&5
11327
11328 fi
11329 rm -f conftest.err conftest.$ac_objext \
11330       conftest$ac_exeext conftest.$ac_ext
11331 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11332
11333       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11334
11335       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"
11336      else
11337       if test "$host_cpu" = ia64; then
11338         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11339         allow_undefined_flag_CXX="-z nodefs"
11340         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"
11341       else
11342         # Determine the default libpath from the value encoded in an empty executable.
11343         cat >conftest.$ac_ext <<_ACEOF
11344 /* confdefs.h.  */
11345 _ACEOF
11346 cat confdefs.h >>conftest.$ac_ext
11347 cat >>conftest.$ac_ext <<_ACEOF
11348 /* end confdefs.h.  */
11349
11350 int
11351 main ()
11352 {
11353
11354   ;
11355   return 0;
11356 }
11357 _ACEOF
11358 rm -f conftest.$ac_objext conftest$ac_exeext
11359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11360   (eval $ac_link) 2>conftest.er1
11361   ac_status=$?
11362   grep -v '^ *+' conftest.er1 >conftest.err
11363   rm -f conftest.er1
11364   cat conftest.err >&5
11365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366   (exit $ac_status); } &&
11367          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
11368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11369   (eval $ac_try) 2>&5
11370   ac_status=$?
11371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372   (exit $ac_status); }; } &&
11373          { ac_try='test -s conftest$ac_exeext'
11374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11375   (eval $ac_try) 2>&5
11376   ac_status=$?
11377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378   (exit $ac_status); }; }; then
11379
11380 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11381 }'`
11382 # Check for a 64-bit object if we didn't find anything.
11383 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; }
11384 }'`; fi
11385 else
11386   echo "$as_me: failed program was:" >&5
11387 sed 's/^/| /' conftest.$ac_ext >&5
11388
11389 fi
11390 rm -f conftest.err conftest.$ac_objext \
11391       conftest$ac_exeext conftest.$ac_ext
11392 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11393
11394         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11395         # Warning - without using the other run time loading flags,
11396         # -berok will link without error, but may produce a broken library.
11397         no_undefined_flag_CXX=' ${wl}-bernotok'
11398         allow_undefined_flag_CXX=' ${wl}-berok'
11399         # -bexpall does not export symbols beginning with underscore (_)
11400         always_export_symbols_CXX=yes
11401         # Exported symbols can be pulled into shared objects from archives
11402         whole_archive_flag_spec_CXX=' '
11403         archive_cmds_need_lc_CXX=yes
11404         # This is similar to how AIX traditionally builds its shared libraries.
11405         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'
11406       fi
11407     fi
11408     ;;
11409   chorus*)
11410     case $cc_basename in
11411       *)
11412         # FIXME: insert proper C++ library support
11413         ld_shlibs_CXX=no
11414         ;;
11415     esac
11416     ;;
11417
11418
11419   cygwin* | mingw* | pw32*)
11420     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11421     # as there is no search path for DLLs.
11422     hardcode_libdir_flag_spec_CXX='-L$libdir'
11423     allow_undefined_flag_CXX=unsupported
11424     always_export_symbols_CXX=no
11425     enable_shared_with_static_runtimes_CXX=yes
11426
11427     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11428       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'
11429       # If the export-symbols file already is a .def file (1st line
11430       # is EXPORTS), use it as is; otherwise, prepend...
11431       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11432         cp $export_symbols $output_objdir/$soname.def;
11433       else
11434         echo EXPORTS > $output_objdir/$soname.def;
11435         cat $export_symbols >> $output_objdir/$soname.def;
11436       fi~
11437       $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'
11438     else
11439       ld_shlibs_CXX=no
11440     fi
11441   ;;
11442       darwin* | rhapsody*)
11443         case $host_os in
11444         rhapsody* | darwin1.[012])
11445          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11446          ;;
11447        *) # Darwin 1.3 on
11448          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11449            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11450          else
11451            case ${MACOSX_DEPLOYMENT_TARGET} in
11452              10.[012])
11453                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11454                ;;
11455              10.*)
11456                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11457                ;;
11458            esac
11459          fi
11460          ;;
11461         esac
11462       archive_cmds_need_lc_CXX=no
11463       hardcode_direct_CXX=no
11464       hardcode_automatic_CXX=yes
11465       hardcode_shlibpath_var_CXX=unsupported
11466       whole_archive_flag_spec_CXX=''
11467       link_all_deplibs_CXX=yes
11468
11469     if test "$GXX" = yes ; then
11470       lt_int_apple_cc_single_mod=no
11471       output_verbose_link_cmd='echo'
11472       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11473        lt_int_apple_cc_single_mod=yes
11474       fi
11475       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11476        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11477       else
11478           archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11479         fi
11480         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11481         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11482           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11483             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}'
11484           else
11485             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11486           fi
11487             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}'
11488       else
11489       case $cc_basename in
11490         xlc*)
11491          output_verbose_link_cmd='echo'
11492           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11493           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11494           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11495           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11496           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}'
11497           ;;
11498        *)
11499          ld_shlibs_CXX=no
11500           ;;
11501       esac
11502       fi
11503         ;;
11504
11505   dgux*)
11506     case $cc_basename in
11507       ec++*)
11508         # FIXME: insert proper C++ library support
11509         ld_shlibs_CXX=no
11510         ;;
11511       ghcx*)
11512         # Green Hills C++ Compiler
11513         # FIXME: insert proper C++ library support
11514         ld_shlibs_CXX=no
11515         ;;
11516       *)
11517         # FIXME: insert proper C++ library support
11518         ld_shlibs_CXX=no
11519         ;;
11520     esac
11521     ;;
11522   freebsd[12]*)
11523     # C++ shared libraries reported to be fairly broken before switch to ELF
11524     ld_shlibs_CXX=no
11525     ;;
11526   freebsd-elf*)
11527     archive_cmds_need_lc_CXX=no
11528     ;;
11529   freebsd* | kfreebsd*-gnu | dragonfly*)
11530     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11531     # conventions
11532     ld_shlibs_CXX=yes
11533     ;;
11534   gnu*)
11535     ;;
11536   hpux9*)
11537     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11538     hardcode_libdir_separator_CXX=:
11539     export_dynamic_flag_spec_CXX='${wl}-E'
11540     hardcode_direct_CXX=yes
11541     hardcode_minus_L_CXX=yes # Not in the search PATH,
11542                                 # but as the default
11543                                 # location of the library.
11544
11545     case $cc_basename in
11546     CC*)
11547       # FIXME: insert proper C++ library support
11548       ld_shlibs_CXX=no
11549       ;;
11550     aCC*)
11551       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'
11552       # Commands to make compiler produce verbose output that lists
11553       # what "hidden" libraries, object files and flags are used when
11554       # linking a shared library.
11555       #
11556       # There doesn't appear to be a way to prevent this compiler from
11557       # explicitly linking system object files so we need to strip them
11558       # from the output so that they don't get included in the library
11559       # dependencies.
11560       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'
11561       ;;
11562     *)
11563       if test "$GXX" = yes; then
11564         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'
11565       else
11566         # FIXME: insert proper C++ library support
11567         ld_shlibs_CXX=no
11568       fi
11569       ;;
11570     esac
11571     ;;
11572   hpux10*|hpux11*)
11573     if test $with_gnu_ld = no; then
11574       case $host_cpu in
11575       hppa*64*)
11576         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11577         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11578         hardcode_libdir_separator_CXX=:
11579         ;;
11580       ia64*)
11581         hardcode_libdir_flag_spec_CXX='-L$libdir'
11582         ;;
11583       *)
11584         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11585         hardcode_libdir_separator_CXX=:
11586         export_dynamic_flag_spec_CXX='${wl}-E'
11587         ;;
11588       esac
11589     fi
11590     case $host_cpu in
11591     hppa*64*)
11592       hardcode_direct_CXX=no
11593       hardcode_shlibpath_var_CXX=no
11594       ;;
11595     ia64*)
11596       hardcode_direct_CXX=no
11597       hardcode_shlibpath_var_CXX=no
11598       hardcode_minus_L_CXX=yes # Not in the search PATH,
11599                                               # but as the default
11600                                               # location of the library.
11601       ;;
11602     *)
11603       hardcode_direct_CXX=yes
11604       hardcode_minus_L_CXX=yes # Not in the search PATH,
11605                                               # but as the default
11606                                               # location of the library.
11607       ;;
11608     esac
11609
11610     case $cc_basename in
11611       CC*)
11612         # FIXME: insert proper C++ library support
11613         ld_shlibs_CXX=no
11614         ;;
11615       aCC*)
11616         case $host_cpu in
11617         hppa*64*|ia64*)
11618           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11619           ;;
11620         *)
11621           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11622           ;;
11623         esac
11624         # Commands to make compiler produce verbose output that lists
11625         # what "hidden" libraries, object files and flags are used when
11626         # linking a shared library.
11627         #
11628         # There doesn't appear to be a way to prevent this compiler from
11629         # explicitly linking system object files so we need to strip them
11630         # from the output so that they don't get included in the library
11631         # dependencies.
11632         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'
11633         ;;
11634       *)
11635         if test "$GXX" = yes; then
11636           if test $with_gnu_ld = no; then
11637             case $host_cpu in
11638             ia64*|hppa*64*)
11639               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11640               ;;
11641             *)
11642               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'
11643               ;;
11644             esac
11645           fi
11646         else
11647           # FIXME: insert proper C++ library support
11648           ld_shlibs_CXX=no
11649         fi
11650         ;;
11651     esac
11652     ;;
11653   irix5* | irix6*)
11654     case $cc_basename in
11655       CC*)
11656         # SGI C++
11657         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11658
11659         # Archives containing C++ object files must be created using
11660         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11661         # necessary to make sure instantiated templates are included
11662         # in the archive.
11663         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11664         ;;
11665       *)
11666         if test "$GXX" = yes; then
11667           if test "$with_gnu_ld" = no; then
11668             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11669           else
11670             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'
11671           fi
11672         fi
11673         link_all_deplibs_CXX=yes
11674         ;;
11675     esac
11676     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11677     hardcode_libdir_separator_CXX=:
11678     ;;
11679   linux*)
11680     case $cc_basename in
11681       KCC*)
11682         # Kuck and Associates, Inc. (KAI) C++ Compiler
11683
11684         # KCC will only create a shared library if the output file
11685         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11686         # to its proper name (with version) after linking.
11687         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'
11688         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'
11689         # Commands to make compiler produce verbose output that lists
11690         # what "hidden" libraries, object files and flags are used when
11691         # linking a shared library.
11692         #
11693         # There doesn't appear to be a way to prevent this compiler from
11694         # explicitly linking system object files so we need to strip them
11695         # from the output so that they don't get included in the library
11696         # dependencies.
11697         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'
11698
11699         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11700         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11701
11702         # Archives containing C++ object files must be created using
11703         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11704         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11705         ;;
11706       icpc*)
11707         # Intel C++
11708         with_gnu_ld=yes
11709         # version 8.0 and above of icpc choke on multiply defined symbols
11710         # if we add $predep_objects and $postdep_objects, however 7.1 and
11711         # earlier do not add the objects themselves.
11712         case `$CC -V 2>&1` in
11713         *"Version 7."*)
11714           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11715           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'
11716           ;;
11717         *)  # Version 8.0 or newer
11718           tmp_idyn=
11719           case $host_cpu in
11720             ia64*) tmp_idyn=' -i_dynamic';;
11721           esac
11722           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11723           archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11724           ;;
11725         esac
11726         archive_cmds_need_lc_CXX=no
11727         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11728         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11729         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11730         ;;
11731       pgCC*)
11732         # Portland Group C++ compiler
11733         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11734         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11735
11736         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11737         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11738         whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11739         ;;
11740       cxx*)
11741         # Compaq C++
11742         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11743         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'
11744
11745         runpath_var=LD_RUN_PATH
11746         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11747         hardcode_libdir_separator_CXX=:
11748
11749         # Commands to make compiler produce verbose output that lists
11750         # what "hidden" libraries, object files and flags are used when
11751         # linking a shared library.
11752         #
11753         # There doesn't appear to be a way to prevent this compiler from
11754         # explicitly linking system object files so we need to strip them
11755         # from the output so that they don't get included in the library
11756         # dependencies.
11757         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'
11758         ;;
11759     esac
11760     ;;
11761   lynxos*)
11762     # FIXME: insert proper C++ library support
11763     ld_shlibs_CXX=no
11764     ;;
11765   m88k*)
11766     # FIXME: insert proper C++ library support
11767     ld_shlibs_CXX=no
11768     ;;
11769   mvs*)
11770     case $cc_basename in
11771       cxx*)
11772         # FIXME: insert proper C++ library support
11773         ld_shlibs_CXX=no
11774         ;;
11775       *)
11776         # FIXME: insert proper C++ library support
11777         ld_shlibs_CXX=no
11778         ;;
11779     esac
11780     ;;
11781   netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11782     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11783       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11784       wlarc=
11785       hardcode_libdir_flag_spec_CXX='-R$libdir'
11786       hardcode_direct_CXX=yes
11787       hardcode_shlibpath_var_CXX=no
11788     fi
11789     # Workaround some broken pre-1.5 toolchains
11790     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11791     ;;
11792   openbsd2*)
11793     # C++ shared libraries are fairly broken
11794     ld_shlibs_CXX=no
11795     ;;
11796   openbsd*)
11797     hardcode_direct_CXX=yes
11798     hardcode_shlibpath_var_CXX=no
11799     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11800     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11801     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11802       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11803       export_dynamic_flag_spec_CXX='${wl}-E'
11804       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11805     fi
11806     output_verbose_link_cmd='echo'
11807     ;;
11808   osf3*)
11809     case $cc_basename in
11810       KCC*)
11811         # Kuck and Associates, Inc. (KAI) C++ Compiler
11812
11813         # KCC will only create a shared library if the output file
11814         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11815         # to its proper name (with version) after linking.
11816         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'
11817
11818         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11819         hardcode_libdir_separator_CXX=:
11820
11821         # Archives containing C++ object files must be created using
11822         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11823         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11824
11825         ;;
11826       RCC*)
11827         # Rational C++ 2.4.1
11828         # FIXME: insert proper C++ library support
11829         ld_shlibs_CXX=no
11830         ;;
11831       cxx*)
11832         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11833         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11834
11835         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11836         hardcode_libdir_separator_CXX=:
11837
11838         # Commands to make compiler produce verbose output that lists
11839         # what "hidden" libraries, object files and flags are used when
11840         # linking a shared library.
11841         #
11842         # There doesn't appear to be a way to prevent this compiler from
11843         # explicitly linking system object files so we need to strip them
11844         # from the output so that they don't get included in the library
11845         # dependencies.
11846         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'
11847         ;;
11848       *)
11849         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11850           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11851           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11852
11853           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11854           hardcode_libdir_separator_CXX=:
11855
11856           # Commands to make compiler produce verbose output that lists
11857           # what "hidden" libraries, object files and flags are used when
11858           # linking a shared library.
11859           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11860
11861         else
11862           # FIXME: insert proper C++ library support
11863           ld_shlibs_CXX=no
11864         fi
11865         ;;
11866     esac
11867     ;;
11868   osf4* | osf5*)
11869     case $cc_basename in
11870       KCC*)
11871         # Kuck and Associates, Inc. (KAI) C++ Compiler
11872
11873         # KCC will only create a shared library if the output file
11874         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11875         # to its proper name (with version) after linking.
11876         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'
11877
11878         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11879         hardcode_libdir_separator_CXX=:
11880
11881         # Archives containing C++ object files must be created using
11882         # the KAI C++ compiler.
11883         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11884         ;;
11885       RCC*)
11886         # Rational C++ 2.4.1
11887         # FIXME: insert proper C++ library support
11888         ld_shlibs_CXX=no
11889         ;;
11890       cxx*)
11891         allow_undefined_flag_CXX=' -expect_unresolved \*'
11892         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11893         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11894           echo "-hidden">> $lib.exp~
11895           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11896           $rm $lib.exp'
11897
11898         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11899         hardcode_libdir_separator_CXX=:
11900
11901         # Commands to make compiler produce verbose output that lists
11902         # what "hidden" libraries, object files and flags are used when
11903         # linking a shared library.
11904         #
11905         # There doesn't appear to be a way to prevent this compiler from
11906         # explicitly linking system object files so we need to strip them
11907         # from the output so that they don't get included in the library
11908         # dependencies.
11909         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'
11910         ;;
11911       *)
11912         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11913           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11914          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11915
11916           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11917           hardcode_libdir_separator_CXX=:
11918
11919           # Commands to make compiler produce verbose output that lists
11920           # what "hidden" libraries, object files and flags are used when
11921           # linking a shared library.
11922           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11923
11924         else
11925           # FIXME: insert proper C++ library support
11926           ld_shlibs_CXX=no
11927         fi
11928         ;;
11929     esac
11930     ;;
11931   psos*)
11932     # FIXME: insert proper C++ library support
11933     ld_shlibs_CXX=no
11934     ;;
11935   sco*)
11936     archive_cmds_need_lc_CXX=no
11937     case $cc_basename in
11938       CC*)
11939         # FIXME: insert proper C++ library support
11940         ld_shlibs_CXX=no
11941         ;;
11942       *)
11943         # FIXME: insert proper C++ library support
11944         ld_shlibs_CXX=no
11945         ;;
11946     esac
11947     ;;
11948   sunos4*)
11949     case $cc_basename in
11950       CC*)
11951         # Sun C++ 4.x
11952         # FIXME: insert proper C++ library support
11953         ld_shlibs_CXX=no
11954         ;;
11955       lcc*)
11956         # Lucid
11957         # FIXME: insert proper C++ library support
11958         ld_shlibs_CXX=no
11959         ;;
11960       *)
11961         # FIXME: insert proper C++ library support
11962         ld_shlibs_CXX=no
11963         ;;
11964     esac
11965     ;;
11966   solaris*)
11967     case $cc_basename in
11968       CC*)
11969         # Sun C++ 4.2, 5.x and Centerline C++
11970         archive_cmds_need_lc_CXX=yes
11971         no_undefined_flag_CXX=' -zdefs'
11972         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11973         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11974         $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11975
11976         hardcode_libdir_flag_spec_CXX='-R$libdir'
11977         hardcode_shlibpath_var_CXX=no
11978         case $host_os in
11979           solaris2.[0-5] | solaris2.[0-5].*) ;;
11980           *)
11981             # The C++ compiler is used as linker so we must use $wl
11982             # flag to pass the commands to the underlying system
11983             # linker. We must also pass each convience library through
11984             # to the system linker between allextract/defaultextract.
11985             # The C++ compiler will combine linker options so we
11986             # cannot just pass the convience library names through
11987             # without $wl.
11988             # Supported since Solaris 2.6 (maybe 2.5.1?)
11989             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11990             ;;
11991         esac
11992         link_all_deplibs_CXX=yes
11993
11994         output_verbose_link_cmd='echo'
11995
11996         # Archives containing C++ object files must be created using
11997         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11998         # necessary to make sure instantiated templates are included
11999         # in the archive.
12000         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12001         ;;
12002       gcx*)
12003         # Green Hills C++ Compiler
12004         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12005
12006         # The C++ compiler must be used to create the archive.
12007         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12008         ;;
12009       *)
12010         # GNU C++ compiler with Solaris linker
12011         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12012           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12013           if $CC --version | grep -v '^2\.7' > /dev/null; then
12014             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12015             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12016                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12017
12018             # Commands to make compiler produce verbose output that lists
12019             # what "hidden" libraries, object files and flags are used when
12020             # linking a shared library.
12021             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12022           else
12023             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12024             # platform.
12025             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12026             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12027                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12028
12029             # Commands to make compiler produce verbose output that lists
12030             # what "hidden" libraries, object files and flags are used when
12031             # linking a shared library.
12032             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12033           fi
12034
12035           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12036         fi
12037         ;;
12038     esac
12039     ;;
12040   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12041     archive_cmds_need_lc_CXX=no
12042     ;;
12043   tandem*)
12044     case $cc_basename in
12045       NCC*)
12046         # NonStop-UX NCC 3.20
12047         # FIXME: insert proper C++ library support
12048         ld_shlibs_CXX=no
12049         ;;
12050       *)
12051         # FIXME: insert proper C++ library support
12052         ld_shlibs_CXX=no
12053         ;;
12054     esac
12055     ;;
12056   vxworks*)
12057     # FIXME: insert proper C++ library support
12058     ld_shlibs_CXX=no
12059     ;;
12060   *)
12061     # FIXME: insert proper C++ library support
12062     ld_shlibs_CXX=no
12063     ;;
12064 esac
12065 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12066 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12067 test "$ld_shlibs_CXX" = no && can_build_shared=no
12068
12069 GCC_CXX="$GXX"
12070 LD_CXX="$LD"
12071
12072
12073 cat > conftest.$ac_ext <<EOF
12074 class Foo
12075 {
12076 public:
12077   Foo (void) { a = 0; }
12078 private:
12079   int a;
12080 };
12081 EOF
12082
12083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12084   (eval $ac_compile) 2>&5
12085   ac_status=$?
12086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087   (exit $ac_status); }; then
12088   # Parse the compiler output and extract the necessary
12089   # objects, libraries and library flags.
12090
12091   # Sentinel used to keep track of whether or not we are before
12092   # the conftest object file.
12093   pre_test_object_deps_done=no
12094
12095   # The `*' in the case matches for architectures that use `case' in
12096   # $output_verbose_cmd can trigger glob expansion during the loop
12097   # eval without this substitution.
12098   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12099
12100   for p in `eval $output_verbose_link_cmd`; do
12101     case $p in
12102
12103     -L* | -R* | -l*)
12104        # Some compilers place space between "-{L,R}" and the path.
12105        # Remove the space.
12106        if test $p = "-L" \
12107           || test $p = "-R"; then
12108          prev=$p
12109          continue
12110        else
12111          prev=
12112        fi
12113
12114        if test "$pre_test_object_deps_done" = no; then
12115          case $p in
12116          -L* | -R*)
12117            # Internal compiler library paths should come after those
12118            # provided the user.  The postdeps already come after the
12119            # user supplied libs so there is no need to process them.
12120            if test -z "$compiler_lib_search_path_CXX"; then
12121              compiler_lib_search_path_CXX="${prev}${p}"
12122            else
12123              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12124            fi
12125            ;;
12126          # The "-l" case would never come before the object being
12127          # linked, so don't bother handling this case.
12128          esac
12129        else
12130          if test -z "$postdeps_CXX"; then
12131            postdeps_CXX="${prev}${p}"
12132          else
12133            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12134          fi
12135        fi
12136        ;;
12137
12138     *.$objext)
12139        # This assumes that the test object file only shows up
12140        # once in the compiler output.
12141        if test "$p" = "conftest.$objext"; then
12142          pre_test_object_deps_done=yes
12143          continue
12144        fi
12145
12146        if test "$pre_test_object_deps_done" = no; then
12147          if test -z "$predep_objects_CXX"; then
12148            predep_objects_CXX="$p"
12149          else
12150            predep_objects_CXX="$predep_objects_CXX $p"
12151          fi
12152        else
12153          if test -z "$postdep_objects_CXX"; then
12154            postdep_objects_CXX="$p"
12155          else
12156            postdep_objects_CXX="$postdep_objects_CXX $p"
12157          fi
12158        fi
12159        ;;
12160
12161     *) ;; # Ignore the rest.
12162
12163     esac
12164   done
12165
12166   # Clean up.
12167   rm -f a.out a.exe
12168 else
12169   echo "libtool.m4: error: problem compiling CXX test program"
12170 fi
12171
12172 $rm -f confest.$objext
12173
12174 # PORTME: override above test on systems where it is broken
12175 case $host_os in
12176 solaris*)
12177   case $cc_basename in
12178   CC*)
12179     # Adding this requires a known-good setup of shared libraries for
12180     # Sun compiler versions before 5.6, else PIC objects from an old
12181     # archive will be linked into the output, leading to subtle bugs.
12182     postdeps_CXX='-lCstd -lCrun'
12183     ;;
12184   esac
12185 esac
12186
12187
12188 case " $postdeps_CXX " in
12189 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12190 esac
12191
12192 lt_prog_compiler_wl_CXX=
12193 lt_prog_compiler_pic_CXX=
12194 lt_prog_compiler_static_CXX=
12195
12196 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12197 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12198
12199   # C++ specific cases for pic, static, wl, etc.
12200   if test "$GXX" = yes; then
12201     lt_prog_compiler_wl_CXX='-Wl,'
12202     lt_prog_compiler_static_CXX='-static'
12203
12204     case $host_os in
12205     aix*)
12206       # All AIX code is PIC.
12207       if test "$host_cpu" = ia64; then
12208         # AIX 5 now supports IA64 processor
12209         lt_prog_compiler_static_CXX='-Bstatic'
12210       fi
12211       ;;
12212     amigaos*)
12213       # FIXME: we need at least 68020 code to build shared libraries, but
12214       # adding the `-m68020' flag to GCC prevents building anything better,
12215       # like `-m68040'.
12216       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12217       ;;
12218     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12219       # PIC is the default for these OSes.
12220       ;;
12221     mingw* | os2* | pw32*)
12222       # This hack is so that the source file can tell whether it is being
12223       # built for inclusion in a dll (and should export symbols for example).
12224       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12225       ;;
12226     darwin* | rhapsody*)
12227       # PIC is the default on this platform
12228       # Common symbols not allowed in MH_DYLIB files
12229       lt_prog_compiler_pic_CXX='-fno-common'
12230       ;;
12231     *djgpp*)
12232       # DJGPP does not support shared libraries at all
12233       lt_prog_compiler_pic_CXX=
12234       ;;
12235     sysv4*MP*)
12236       if test -d /usr/nec; then
12237         lt_prog_compiler_pic_CXX=-Kconform_pic
12238       fi
12239       ;;
12240     hpux*)
12241       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12242       # not for PA HP-UX.
12243       case $host_cpu in
12244       hppa*64*|ia64*)
12245         ;;
12246       *)
12247         lt_prog_compiler_pic_CXX='-fPIC'
12248         ;;
12249       esac
12250       ;;
12251     *)
12252       lt_prog_compiler_pic_CXX='-fPIC'
12253       ;;
12254     esac
12255   else
12256     case $host_os in
12257       aix4* | aix5*)
12258         # All AIX code is PIC.
12259         if test "$host_cpu" = ia64; then
12260           # AIX 5 now supports IA64 processor
12261           lt_prog_compiler_static_CXX='-Bstatic'
12262         else
12263           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12264         fi
12265         ;;
12266       chorus*)
12267         case $cc_basename in
12268         cxch68*)
12269           # Green Hills C++ Compiler
12270           # _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"
12271           ;;
12272         esac
12273         ;;
12274        darwin*)
12275          # PIC is the default on this platform
12276          # Common symbols not allowed in MH_DYLIB files
12277          case $cc_basename in
12278            xlc*)
12279            lt_prog_compiler_pic_CXX='-qnocommon'
12280            lt_prog_compiler_wl_CXX='-Wl,'
12281            ;;
12282          esac
12283        ;;
12284       dgux*)
12285         case $cc_basename in
12286           ec++*)
12287             lt_prog_compiler_pic_CXX='-KPIC'
12288             ;;
12289           ghcx*)
12290             # Green Hills C++ Compiler
12291             lt_prog_compiler_pic_CXX='-pic'
12292             ;;
12293           *)
12294             ;;
12295         esac
12296         ;;
12297       freebsd* | kfreebsd*-gnu | dragonfly*)
12298         # FreeBSD uses GNU C++
12299         ;;
12300       hpux9* | hpux10* | hpux11*)
12301         case $cc_basename in
12302           CC*)
12303             lt_prog_compiler_wl_CXX='-Wl,'
12304             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12305             if test "$host_cpu" != ia64; then
12306               lt_prog_compiler_pic_CXX='+Z'
12307             fi
12308             ;;
12309           aCC*)
12310             lt_prog_compiler_wl_CXX='-Wl,'
12311             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12312             case $host_cpu in
12313             hppa*64*|ia64*)
12314               # +Z the default
12315               ;;
12316             *)
12317               lt_prog_compiler_pic_CXX='+Z'
12318               ;;
12319             esac
12320             ;;
12321           *)
12322             ;;
12323         esac
12324         ;;
12325       irix5* | irix6* | nonstopux*)
12326         case $cc_basename in
12327           CC*)
12328             lt_prog_compiler_wl_CXX='-Wl,'
12329             lt_prog_compiler_static_CXX='-non_shared'
12330             # CC pic flag -KPIC is the default.
12331             ;;
12332           *)
12333             ;;
12334         esac
12335         ;;
12336       linux*)
12337         case $cc_basename in
12338           KCC*)
12339             # KAI C++ Compiler
12340             lt_prog_compiler_wl_CXX='--backend -Wl,'
12341             lt_prog_compiler_pic_CXX='-fPIC'
12342             ;;
12343           icpc* | ecpc*)
12344             # Intel C++
12345             lt_prog_compiler_wl_CXX='-Wl,'
12346             lt_prog_compiler_pic_CXX='-KPIC'
12347             lt_prog_compiler_static_CXX='-static'
12348             ;;
12349           pgCC*)
12350             # Portland Group C++ compiler.
12351             lt_prog_compiler_wl_CXX='-Wl,'
12352             lt_prog_compiler_pic_CXX='-fpic'
12353             lt_prog_compiler_static_CXX='-Bstatic'
12354             ;;
12355           cxx*)
12356             # Compaq C++
12357             # Make sure the PIC flag is empty.  It appears that all Alpha
12358             # Linux and Compaq Tru64 Unix objects are PIC.
12359             lt_prog_compiler_pic_CXX=
12360             lt_prog_compiler_static_CXX='-non_shared'
12361             ;;
12362           *)
12363             ;;
12364         esac
12365         ;;
12366       lynxos*)
12367         ;;
12368       m88k*)
12369         ;;
12370       mvs*)
12371         case $cc_basename in
12372           cxx*)
12373             lt_prog_compiler_pic_CXX='-W c,exportall'
12374             ;;
12375           *)
12376             ;;
12377         esac
12378         ;;
12379       netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
12380         ;;
12381       osf3* | osf4* | osf5*)
12382         case $cc_basename in
12383           KCC*)
12384             lt_prog_compiler_wl_CXX='--backend -Wl,'
12385             ;;
12386           RCC*)
12387             # Rational C++ 2.4.1
12388             lt_prog_compiler_pic_CXX='-pic'
12389             ;;
12390           cxx*)
12391             # Digital/Compaq C++
12392             lt_prog_compiler_wl_CXX='-Wl,'
12393             # Make sure the PIC flag is empty.  It appears that all Alpha
12394             # Linux and Compaq Tru64 Unix objects are PIC.
12395             lt_prog_compiler_pic_CXX=
12396             lt_prog_compiler_static_CXX='-non_shared'
12397             ;;
12398           *)
12399             ;;
12400         esac
12401         ;;
12402       psos*)
12403         ;;
12404       sco*)
12405         case $cc_basename in
12406           CC*)
12407             lt_prog_compiler_pic_CXX='-fPIC'
12408             ;;
12409           *)
12410             ;;
12411         esac
12412         ;;
12413       solaris*)
12414         case $cc_basename in
12415           CC*)
12416             # Sun C++ 4.2, 5.x and Centerline C++
12417             lt_prog_compiler_pic_CXX='-KPIC'
12418             lt_prog_compiler_static_CXX='-Bstatic'
12419             lt_prog_compiler_wl_CXX='-Qoption ld '
12420             ;;
12421           gcx*)
12422             # Green Hills C++ Compiler
12423             lt_prog_compiler_pic_CXX='-PIC'
12424             ;;
12425           *)
12426             ;;
12427         esac
12428         ;;
12429       sunos4*)
12430         case $cc_basename in
12431           CC*)
12432             # Sun C++ 4.x
12433             lt_prog_compiler_pic_CXX='-pic'
12434             lt_prog_compiler_static_CXX='-Bstatic'
12435             ;;
12436           lcc*)
12437             # Lucid
12438             lt_prog_compiler_pic_CXX='-pic'
12439             ;;
12440           *)
12441             ;;
12442         esac
12443         ;;
12444       tandem*)
12445         case $cc_basename in
12446           NCC*)
12447             # NonStop-UX NCC 3.20
12448             lt_prog_compiler_pic_CXX='-KPIC'
12449             ;;
12450           *)
12451             ;;
12452         esac
12453         ;;
12454       unixware*)
12455         ;;
12456       vxworks*)
12457         ;;
12458       *)
12459         lt_prog_compiler_can_build_shared_CXX=no
12460         ;;
12461     esac
12462   fi
12463
12464 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12465 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12466
12467 #
12468 # Check to make sure the PIC flag actually works.
12469 #
12470 if test -n "$lt_prog_compiler_pic_CXX"; then
12471
12472 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12473 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12474 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12475   echo $ECHO_N "(cached) $ECHO_C" >&6
12476 else
12477   lt_prog_compiler_pic_works_CXX=no
12478   ac_outfile=conftest.$ac_objext
12479    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12480    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12481    # Insert the option either (1) after the last *FLAGS variable, or
12482    # (2) before a word containing "conftest.", or (3) at the end.
12483    # Note that $ac_compile itself does not contain backslashes and begins
12484    # with a dollar sign (not a hyphen), so the echo should work correctly.
12485    # The option is referenced via a variable to avoid confusing sed.
12486    lt_compile=`echo "$ac_compile" | $SED \
12487    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12488    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12489    -e 's:$: $lt_compiler_flag:'`
12490    (eval echo "\"\$as_me:12490: $lt_compile\"" >&5)
12491    (eval "$lt_compile" 2>conftest.err)
12492    ac_status=$?
12493    cat conftest.err >&5
12494    echo "$as_me:12494: \$? = $ac_status" >&5
12495    if (exit $ac_status) && test -s "$ac_outfile"; then
12496      # The compiler can only warn and ignore the option if not recognized
12497      # So say no if there are warnings other than the usual output.
12498      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
12499      $SED '/^$/d' conftest.err >conftest.er2
12500      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
12501        lt_prog_compiler_pic_works_CXX=yes
12502      fi
12503    fi
12504    $rm conftest*
12505
12506 fi
12507 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12508 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
12509
12510 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12511     case $lt_prog_compiler_pic_CXX in
12512      "" | " "*) ;;
12513      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12514      esac
12515 else
12516     lt_prog_compiler_pic_CXX=
12517      lt_prog_compiler_can_build_shared_CXX=no
12518 fi
12519
12520 fi
12521 case $host_os in
12522   # For platforms which do not support PIC, -DPIC is meaningless:
12523   *djgpp*)
12524     lt_prog_compiler_pic_CXX=
12525     ;;
12526   *)
12527     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12528     ;;
12529 esac
12530
12531 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12532 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12533 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12534   echo $ECHO_N "(cached) $ECHO_C" >&6
12535 else
12536   lt_cv_prog_compiler_c_o_CXX=no
12537    $rm -r conftest 2>/dev/null
12538    mkdir conftest
12539    cd conftest
12540    mkdir out
12541    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12542
12543    lt_compiler_flag="-o out/conftest2.$ac_objext"
12544    # Insert the option either (1) after the last *FLAGS variable, or
12545    # (2) before a word containing "conftest.", or (3) at the end.
12546    # Note that $ac_compile itself does not contain backslashes and begins
12547    # with a dollar sign (not a hyphen), so the echo should work correctly.
12548    lt_compile=`echo "$ac_compile" | $SED \
12549    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12550    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12551    -e 's:$: $lt_compiler_flag:'`
12552    (eval echo "\"\$as_me:12552: $lt_compile\"" >&5)
12553    (eval "$lt_compile" 2>out/conftest.err)
12554    ac_status=$?
12555    cat out/conftest.err >&5
12556    echo "$as_me:12556: \$? = $ac_status" >&5
12557    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12558    then
12559      # The compiler can only warn and ignore the option if not recognized
12560      # So say no if there are warnings
12561      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
12562      $SED '/^$/d' out/conftest.err >out/conftest.er2
12563      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12564        lt_cv_prog_compiler_c_o_CXX=yes
12565      fi
12566    fi
12567    chmod u+w . 2>&5
12568    $rm conftest*
12569    # SGI C++ compiler will create directory out/ii_files/ for
12570    # template instantiation
12571    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12572    $rm out/* && rmdir out
12573    cd ..
12574    rmdir conftest
12575    $rm conftest*
12576
12577 fi
12578 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12579 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12580
12581
12582 hard_links="nottested"
12583 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12584   # do not overwrite the value of need_locks provided by the user
12585   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12586 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12587   hard_links=yes
12588   $rm conftest*
12589   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12590   touch conftest.a
12591   ln conftest.a conftest.b 2>&5 || hard_links=no
12592   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12593   echo "$as_me:$LINENO: result: $hard_links" >&5
12594 echo "${ECHO_T}$hard_links" >&6
12595   if test "$hard_links" = no; then
12596     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12597 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12598     need_locks=warn
12599   fi
12600 else
12601   need_locks=no
12602 fi
12603
12604 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12605 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12606
12607   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12608   case $host_os in
12609   aix4* | aix5*)
12610     # If we're using GNU nm, then we don't want the "-C" option.
12611     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12612     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12613       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'
12614     else
12615       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'
12616     fi
12617     ;;
12618   pw32*)
12619     export_symbols_cmds_CXX="$ltdll_cmds"
12620   ;;
12621   cygwin* | mingw*)
12622     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12623   ;;
12624   linux*)
12625     link_all_deplibs_CXX=no
12626   ;;
12627   *)
12628     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12629   ;;
12630   esac
12631
12632 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12633 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12634 test "$ld_shlibs_CXX" = no && can_build_shared=no
12635
12636 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12637 if test "$GCC" = yes; then
12638   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12639 fi
12640
12641 #
12642 # Do we need to explicitly link libc?
12643 #
12644 case "x$archive_cmds_need_lc_CXX" in
12645 x|xyes)
12646   # Assume -lc should be added
12647   archive_cmds_need_lc_CXX=yes
12648
12649   if test "$enable_shared" = yes && test "$GCC" = yes; then
12650     case $archive_cmds_CXX in
12651     *'~'*)
12652       # FIXME: we may have to deal with multi-command sequences.
12653       ;;
12654     '$CC '*)
12655       # Test whether the compiler implicitly links with -lc since on some
12656       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12657       # to ld, don't add -lc before -lgcc.
12658       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12659 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12660       $rm conftest*
12661       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12662
12663       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12664   (eval $ac_compile) 2>&5
12665   ac_status=$?
12666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667   (exit $ac_status); } 2>conftest.err; then
12668         soname=conftest
12669         lib=conftest
12670         libobjs=conftest.$ac_objext
12671         deplibs=
12672         wl=$lt_prog_compiler_wl_CXX
12673         compiler_flags=-v
12674         linker_flags=-v
12675         verstring=
12676         output_objdir=.
12677         libname=conftest
12678         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12679         allow_undefined_flag_CXX=
12680         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12681   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12682   ac_status=$?
12683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684   (exit $ac_status); }
12685         then
12686           archive_cmds_need_lc_CXX=no
12687         else
12688           archive_cmds_need_lc_CXX=yes
12689         fi
12690         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12691       else
12692         cat conftest.err 1>&5
12693       fi
12694       $rm conftest*
12695       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12696 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12697       ;;
12698     esac
12699   fi
12700   ;;
12701 esac
12702
12703 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12704 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12705 library_names_spec=
12706 libname_spec='lib$name'
12707 soname_spec=
12708 shrext_cmds=".so"
12709 postinstall_cmds=
12710 postuninstall_cmds=
12711 finish_cmds=
12712 finish_eval=
12713 shlibpath_var=
12714 shlibpath_overrides_runpath=unknown
12715 version_type=none
12716 dynamic_linker="$host_os ld.so"
12717 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12718 if test "$GCC" = yes; then
12719   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12720   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12721     # if the path contains ";" then we assume it to be the separator
12722     # otherwise default to the standard path separator (i.e. ":") - it is
12723     # assumed that no part of a normal pathname contains ";" but that should
12724     # okay in the real world where ";" in dirpaths is itself problematic.
12725     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12726   else
12727     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12728   fi
12729 else
12730   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12731 fi
12732 need_lib_prefix=unknown
12733 hardcode_into_libs=no
12734
12735 # when you set need_version to no, make sure it does not cause -set_version
12736 # flags to be left without arguments
12737 need_version=unknown
12738
12739 case $host_os in
12740 aix3*)
12741   version_type=linux
12742   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12743   shlibpath_var=LIBPATH
12744
12745   # AIX 3 has no versioning support, so we append a major version to the name.
12746   soname_spec='${libname}${release}${shared_ext}$major'
12747   ;;
12748
12749 aix4* | aix5*)
12750   version_type=linux
12751   need_lib_prefix=no
12752   need_version=no
12753   hardcode_into_libs=yes
12754   if test "$host_cpu" = ia64; then
12755     # AIX 5 supports IA64
12756     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12757     shlibpath_var=LD_LIBRARY_PATH
12758   else
12759     # With GCC up to 2.95.x, collect2 would create an import file
12760     # for dependence libraries.  The import file would start with
12761     # the line `#! .'.  This would cause the generated library to
12762     # depend on `.', always an invalid library.  This was fixed in
12763     # development snapshots of GCC prior to 3.0.
12764     case $host_os in
12765       aix4 | aix4.[01] | aix4.[01].*)
12766       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12767            echo ' yes '
12768            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12769         :
12770       else
12771         can_build_shared=no
12772       fi
12773       ;;
12774     esac
12775     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12776     # soname into executable. Probably we can add versioning support to
12777     # collect2, so additional links can be useful in future.
12778     if test "$aix_use_runtimelinking" = yes; then
12779       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12780       # instead of lib<name>.a to let people know that these are not
12781       # typical AIX shared libraries.
12782       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12783     else
12784       # We preserve .a as extension for shared libraries through AIX4.2
12785       # and later when we are not doing run time linking.
12786       library_names_spec='${libname}${release}.a $libname.a'
12787       soname_spec='${libname}${release}${shared_ext}$major'
12788     fi
12789     shlibpath_var=LIBPATH
12790   fi
12791   ;;
12792
12793 amigaos*)
12794   library_names_spec='$libname.ixlibrary $libname.a'
12795   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12796   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'
12797   ;;
12798
12799 beos*)
12800   library_names_spec='${libname}${shared_ext}'
12801   dynamic_linker="$host_os ld.so"
12802   shlibpath_var=LIBRARY_PATH
12803   ;;
12804
12805 bsdi[45]*)
12806   version_type=linux
12807   need_version=no
12808   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12809   soname_spec='${libname}${release}${shared_ext}$major'
12810   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12811   shlibpath_var=LD_LIBRARY_PATH
12812   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12813   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12814   # the default ld.so.conf also contains /usr/contrib/lib and
12815   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12816   # libtool to hard-code these into programs
12817   ;;
12818
12819 cygwin* | mingw* | pw32*)
12820   version_type=windows
12821   shrext_cmds=".dll"
12822   need_version=no
12823   need_lib_prefix=no
12824
12825   case $GCC,$host_os in
12826   yes,cygwin* | yes,mingw* | yes,pw32*)
12827     library_names_spec='$libname.dll.a'
12828     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12829     postinstall_cmds='base_file=`basename \${file}`~
12830       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12831       dldir=$destdir/`dirname \$dlpath`~
12832       test -d \$dldir || mkdir -p \$dldir~
12833       $install_prog $dir/$dlname \$dldir/$dlname~
12834       chmod a+x \$dldir/$dlname'
12835     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12836       dlpath=$dir/\$dldll~
12837        $rm \$dlpath'
12838     shlibpath_overrides_runpath=yes
12839
12840     case $host_os in
12841     cygwin*)
12842       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12843       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12844       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12845       ;;
12846     mingw*)
12847       # MinGW DLLs use traditional 'lib' prefix
12848       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12849       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12850       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12851         # It is most probably a Windows format PATH printed by
12852         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12853         # path with ; separators, and with drive letters. We can handle the
12854         # drive letters (cygwin fileutils understands them), so leave them,
12855         # especially as we might pass files found there to a mingw objdump,
12856         # which wouldn't understand a cygwinified path. Ahh.
12857         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12858       else
12859         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12860       fi
12861       ;;
12862     pw32*)
12863       # pw32 DLLs use 'pw' prefix rather than 'lib'
12864       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12865       ;;
12866     esac
12867     ;;
12868
12869   *)
12870     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12871     ;;
12872   esac
12873   dynamic_linker='Win32 ld.exe'
12874   # FIXME: first we should search . and the directory the executable is in
12875   shlibpath_var=PATH
12876   ;;
12877
12878 darwin* | rhapsody*)
12879   dynamic_linker="$host_os dyld"
12880   version_type=darwin
12881   need_lib_prefix=no
12882   need_version=no
12883   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12884   soname_spec='${libname}${release}${major}$shared_ext'
12885   shlibpath_overrides_runpath=yes
12886   shlibpath_var=DYLD_LIBRARY_PATH
12887   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12888   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12889   if test "$GCC" = yes; then
12890     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"`
12891   else
12892     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12893   fi
12894   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12895   ;;
12896
12897 dgux*)
12898   version_type=linux
12899   need_lib_prefix=no
12900   need_version=no
12901   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12902   soname_spec='${libname}${release}${shared_ext}$major'
12903   shlibpath_var=LD_LIBRARY_PATH
12904   ;;
12905
12906 freebsd1*)
12907   dynamic_linker=no
12908   ;;
12909
12910 kfreebsd*-gnu)
12911   version_type=linux
12912   need_lib_prefix=no
12913   need_version=no
12914   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12915   soname_spec='${libname}${release}${shared_ext}$major'
12916   shlibpath_var=LD_LIBRARY_PATH
12917   shlibpath_overrides_runpath=no
12918   hardcode_into_libs=yes
12919   dynamic_linker='GNU ld.so'
12920   ;;
12921
12922 freebsd* | dragonfly*)
12923   # DragonFly does not have aout.  When/if they implement a new
12924   # versioning mechanism, adjust this.
12925   if test -x /usr/bin/objformat; then
12926     objformat=`/usr/bin/objformat`
12927   else
12928     case $host_os in
12929     freebsd[123]*) objformat=aout ;;
12930     *) objformat=elf ;;
12931     esac
12932   fi
12933   version_type=freebsd-$objformat
12934   case $version_type in
12935     freebsd-elf*)
12936       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12937       need_version=no
12938       need_lib_prefix=no
12939       ;;
12940     freebsd-*)
12941       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12942       need_version=yes
12943       ;;
12944   esac
12945   shlibpath_var=LD_LIBRARY_PATH
12946   case $host_os in
12947   freebsd2*)
12948     shlibpath_overrides_runpath=yes
12949     ;;
12950   freebsd3.[01]* | freebsdelf3.[01]*)
12951     shlibpath_overrides_runpath=yes
12952     hardcode_into_libs=yes
12953     ;;
12954   *) # from 3.2 on
12955     shlibpath_overrides_runpath=no
12956     hardcode_into_libs=yes
12957     ;;
12958   esac
12959   ;;
12960
12961 gnu*)
12962   version_type=linux
12963   need_lib_prefix=no
12964   need_version=no
12965   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12966   soname_spec='${libname}${release}${shared_ext}$major'
12967   shlibpath_var=LD_LIBRARY_PATH
12968   hardcode_into_libs=yes
12969   ;;
12970
12971 hpux9* | hpux10* | hpux11*)
12972   # Give a soname corresponding to the major version so that dld.sl refuses to
12973   # link against other versions.
12974   version_type=sunos
12975   need_lib_prefix=no
12976   need_version=no
12977   case $host_cpu in
12978   ia64*)
12979     shrext_cmds='.so'
12980     hardcode_into_libs=yes
12981     dynamic_linker="$host_os dld.so"
12982     shlibpath_var=LD_LIBRARY_PATH
12983     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12984     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12985     soname_spec='${libname}${release}${shared_ext}$major'
12986     if test "X$HPUX_IA64_MODE" = X32; then
12987       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12988     else
12989       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12990     fi
12991     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12992     ;;
12993    hppa*64*)
12994      shrext_cmds='.sl'
12995      hardcode_into_libs=yes
12996      dynamic_linker="$host_os dld.sl"
12997      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12998      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12999      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13000      soname_spec='${libname}${release}${shared_ext}$major'
13001      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13002      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13003      ;;
13004    *)
13005     shrext_cmds='.sl'
13006     dynamic_linker="$host_os dld.sl"
13007     shlibpath_var=SHLIB_PATH
13008     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13009     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13010     soname_spec='${libname}${release}${shared_ext}$major'
13011     ;;
13012   esac
13013   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13014   postinstall_cmds='chmod 555 $lib'
13015   ;;
13016
13017 irix5* | irix6* | nonstopux*)
13018   case $host_os in
13019     nonstopux*) version_type=nonstopux ;;
13020     *)
13021         if test "$lt_cv_prog_gnu_ld" = yes; then
13022                 version_type=linux
13023         else
13024                 version_type=irix
13025         fi ;;
13026   esac
13027   need_lib_prefix=no
13028   need_version=no
13029   soname_spec='${libname}${release}${shared_ext}$major'
13030   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13031   case $host_os in
13032   irix5* | nonstopux*)
13033     libsuff= shlibsuff=
13034     ;;
13035   *)
13036     case $LD in # libtool.m4 will add one of these switches to LD
13037     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13038       libsuff= shlibsuff= libmagic=32-bit;;
13039     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13040       libsuff=32 shlibsuff=N32 libmagic=N32;;
13041     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13042       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13043     *) libsuff= shlibsuff= libmagic=never-match;;
13044     esac
13045     ;;
13046   esac
13047   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13048   shlibpath_overrides_runpath=no
13049   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13050   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13051   hardcode_into_libs=yes
13052   ;;
13053
13054 # No shared lib support for Linux oldld, aout, or coff.
13055 linux*oldld* | linux*aout* | linux*coff*)
13056   dynamic_linker=no
13057   ;;
13058
13059 # This must be Linux ELF.
13060 linux*)
13061   version_type=linux
13062   need_lib_prefix=no
13063   need_version=no
13064   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13065   soname_spec='${libname}${release}${shared_ext}$major'
13066   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13067   shlibpath_var=LD_LIBRARY_PATH
13068   shlibpath_overrides_runpath=no
13069   # This implies no fast_install, which is unacceptable.
13070   # Some rework will be needed to allow for fast_install
13071   # before this can be enabled.
13072   hardcode_into_libs=yes
13073
13074   # Append ld.so.conf contents to the search path
13075   if test -f /etc/ld.so.conf; then
13076     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13077     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13078   fi
13079
13080   # We used to test for /lib/ld.so.1 and disable shared libraries on
13081   # powerpc, because MkLinux only supported shared libraries with the
13082   # GNU dynamic linker.  Since this was broken with cross compilers,
13083   # most powerpc-linux boxes support dynamic linking these days and
13084   # people can always --disable-shared, the test was removed, and we
13085   # assume the GNU/Linux dynamic linker is in use.
13086   dynamic_linker='GNU/Linux ld.so'
13087   ;;
13088
13089 netbsdelf*-gnu)
13090   version_type=linux
13091   need_lib_prefix=no
13092   need_version=no
13093   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13094   soname_spec='${libname}${release}${shared_ext}$major'
13095   shlibpath_var=LD_LIBRARY_PATH
13096   shlibpath_overrides_runpath=no
13097   hardcode_into_libs=yes
13098   dynamic_linker='NetBSD ld.elf_so'
13099   ;;
13100
13101 knetbsd*-gnu)
13102   version_type=linux
13103   need_lib_prefix=no
13104   need_version=no
13105   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13106   soname_spec='${libname}${release}${shared_ext}$major'
13107   shlibpath_var=LD_LIBRARY_PATH
13108   shlibpath_overrides_runpath=no
13109   hardcode_into_libs=yes
13110   dynamic_linker='GNU ld.so'
13111   ;;
13112
13113 netbsd*)
13114   version_type=sunos
13115   need_lib_prefix=no
13116   need_version=no
13117   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13118     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13119     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13120     dynamic_linker='NetBSD (a.out) ld.so'
13121   else
13122     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13123     soname_spec='${libname}${release}${shared_ext}$major'
13124     dynamic_linker='NetBSD ld.elf_so'
13125   fi
13126   shlibpath_var=LD_LIBRARY_PATH
13127   shlibpath_overrides_runpath=yes
13128   hardcode_into_libs=yes
13129   ;;
13130
13131 newsos6)
13132   version_type=linux
13133   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13134   shlibpath_var=LD_LIBRARY_PATH
13135   shlibpath_overrides_runpath=yes
13136   ;;
13137
13138 nto-qnx*)
13139   version_type=linux
13140   need_lib_prefix=no
13141   need_version=no
13142   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13143   soname_spec='${libname}${release}${shared_ext}$major'
13144   shlibpath_var=LD_LIBRARY_PATH
13145   shlibpath_overrides_runpath=yes
13146   ;;
13147
13148 openbsd*)
13149   version_type=sunos
13150   need_lib_prefix=no
13151   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13152   case $host_os in
13153     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13154     *)                         need_version=no  ;;
13155   esac
13156   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13157   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13158   shlibpath_var=LD_LIBRARY_PATH
13159   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13160     case $host_os in
13161       openbsd2.[89] | openbsd2.[89].*)
13162         shlibpath_overrides_runpath=no
13163         ;;
13164       *)
13165         shlibpath_overrides_runpath=yes
13166         ;;
13167       esac
13168   else
13169     shlibpath_overrides_runpath=yes
13170   fi
13171   ;;
13172
13173 os2*)
13174   libname_spec='$name'
13175   shrext_cmds=".dll"
13176   need_lib_prefix=no
13177   library_names_spec='$libname${shared_ext} $libname.a'
13178   dynamic_linker='OS/2 ld.exe'
13179   shlibpath_var=LIBPATH
13180   ;;
13181
13182 osf3* | osf4* | osf5*)
13183   version_type=osf
13184   need_lib_prefix=no
13185   need_version=no
13186   soname_spec='${libname}${release}${shared_ext}$major'
13187   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13188   shlibpath_var=LD_LIBRARY_PATH
13189   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13190   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13191   ;;
13192
13193 sco3.2v5*)
13194   version_type=osf
13195   soname_spec='${libname}${release}${shared_ext}$major'
13196   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13197   shlibpath_var=LD_LIBRARY_PATH
13198   ;;
13199
13200 solaris*)
13201   version_type=linux
13202   need_lib_prefix=no
13203   need_version=no
13204   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13205   soname_spec='${libname}${release}${shared_ext}$major'
13206   shlibpath_var=LD_LIBRARY_PATH
13207   shlibpath_overrides_runpath=yes
13208   hardcode_into_libs=yes
13209   # ldd complains unless libraries are executable
13210   postinstall_cmds='chmod +x $lib'
13211   ;;
13212
13213 sunos4*)
13214   version_type=sunos
13215   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13216   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13217   shlibpath_var=LD_LIBRARY_PATH
13218   shlibpath_overrides_runpath=yes
13219   if test "$with_gnu_ld" = yes; then
13220     need_lib_prefix=no
13221   fi
13222   need_version=yes
13223   ;;
13224
13225 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13226   version_type=linux
13227   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13228   soname_spec='${libname}${release}${shared_ext}$major'
13229   shlibpath_var=LD_LIBRARY_PATH
13230   case $host_vendor in
13231     sni)
13232       shlibpath_overrides_runpath=no
13233       need_lib_prefix=no
13234       export_dynamic_flag_spec='${wl}-Blargedynsym'
13235       runpath_var=LD_RUN_PATH
13236       ;;
13237     siemens)
13238       need_lib_prefix=no
13239       ;;
13240     motorola)
13241       need_lib_prefix=no
13242       need_version=no
13243       shlibpath_overrides_runpath=no
13244       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13245       ;;
13246   esac
13247   ;;
13248
13249 sysv4*MP*)
13250   if test -d /usr/nec ;then
13251     version_type=linux
13252     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13253     soname_spec='$libname${shared_ext}.$major'
13254     shlibpath_var=LD_LIBRARY_PATH
13255   fi
13256   ;;
13257
13258 uts4*)
13259   version_type=linux
13260   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13261   soname_spec='${libname}${release}${shared_ext}$major'
13262   shlibpath_var=LD_LIBRARY_PATH
13263   ;;
13264
13265 *)
13266   dynamic_linker=no
13267   ;;
13268 esac
13269 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13270 echo "${ECHO_T}$dynamic_linker" >&6
13271 test "$dynamic_linker" = no && can_build_shared=no
13272
13273 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13274 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13275 hardcode_action_CXX=
13276 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13277    test -n "$runpath_var_CXX" || \
13278    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13279
13280   # We can hardcode non-existant directories.
13281   if test "$hardcode_direct_CXX" != no &&
13282      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13283      # have to relink, otherwise we might link with an installed library
13284      # when we should be linking with a yet-to-be-installed one
13285      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13286      test "$hardcode_minus_L_CXX" != no; then
13287     # Linking always hardcodes the temporary library directory.
13288     hardcode_action_CXX=relink
13289   else
13290     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13291     hardcode_action_CXX=immediate
13292   fi
13293 else
13294   # We cannot hardcode anything, or else we can only hardcode existing
13295   # directories.
13296   hardcode_action_CXX=unsupported
13297 fi
13298 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13299 echo "${ECHO_T}$hardcode_action_CXX" >&6
13300
13301 if test "$hardcode_action_CXX" = relink; then
13302   # Fast installation is not supported
13303   enable_fast_install=no
13304 elif test "$shlibpath_overrides_runpath" = yes ||
13305      test "$enable_shared" = no; then
13306   # Fast installation is not necessary
13307   enable_fast_install=needless
13308 fi
13309
13310 striplib=
13311 old_striplib=
13312 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13313 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13314 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13315   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13316   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13317   echo "$as_me:$LINENO: result: yes" >&5
13318 echo "${ECHO_T}yes" >&6
13319 else
13320 # FIXME - insert some real tests, host_os isn't really good enough
13321   case $host_os in
13322    darwin*)
13323        if test -n "$STRIP" ; then
13324          striplib="$STRIP -x"
13325          echo "$as_me:$LINENO: result: yes" >&5
13326 echo "${ECHO_T}yes" >&6
13327        else
13328   echo "$as_me:$LINENO: result: no" >&5
13329 echo "${ECHO_T}no" >&6
13330 fi
13331        ;;
13332    *)
13333   echo "$as_me:$LINENO: result: no" >&5
13334 echo "${ECHO_T}no" >&6
13335     ;;
13336   esac
13337 fi
13338
13339 if test "x$enable_dlopen" != xyes; then
13340   enable_dlopen=unknown
13341   enable_dlopen_self=unknown
13342   enable_dlopen_self_static=unknown
13343 else
13344   lt_cv_dlopen=no
13345   lt_cv_dlopen_libs=
13346
13347   case $host_os in
13348   beos*)
13349     lt_cv_dlopen="load_add_on"
13350     lt_cv_dlopen_libs=
13351     lt_cv_dlopen_self=yes
13352     ;;
13353
13354   mingw* | pw32*)
13355     lt_cv_dlopen="LoadLibrary"
13356     lt_cv_dlopen_libs=
13357    ;;
13358
13359   cygwin*)
13360     lt_cv_dlopen="dlopen"
13361     lt_cv_dlopen_libs=
13362    ;;
13363
13364   darwin*)
13365   # if libdl is installed we need to link against it
13366     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13367 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13368 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13369   echo $ECHO_N "(cached) $ECHO_C" >&6
13370 else
13371   ac_check_lib_save_LIBS=$LIBS
13372 LIBS="-ldl  $LIBS"
13373 cat >conftest.$ac_ext <<_ACEOF
13374 /* confdefs.h.  */
13375 _ACEOF
13376 cat confdefs.h >>conftest.$ac_ext
13377 cat >>conftest.$ac_ext <<_ACEOF
13378 /* end confdefs.h.  */
13379
13380 /* Override any gcc2 internal prototype to avoid an error.  */
13381 #ifdef __cplusplus
13382 extern "C"
13383 #endif
13384 /* We use char because int might match the return type of a gcc2
13385    builtin and then its argument prototype would still apply.  */
13386 char dlopen ();
13387 int
13388 main ()
13389 {
13390 dlopen ();
13391   ;
13392   return 0;
13393 }
13394 _ACEOF
13395 rm -f conftest.$ac_objext conftest$ac_exeext
13396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13397   (eval $ac_link) 2>conftest.er1
13398   ac_status=$?
13399   grep -v '^ *+' conftest.er1 >conftest.err
13400   rm -f conftest.er1
13401   cat conftest.err >&5
13402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13403   (exit $ac_status); } &&
13404          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
13405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13406   (eval $ac_try) 2>&5
13407   ac_status=$?
13408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409   (exit $ac_status); }; } &&
13410          { ac_try='test -s conftest$ac_exeext'
13411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13412   (eval $ac_try) 2>&5
13413   ac_status=$?
13414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415   (exit $ac_status); }; }; then
13416   ac_cv_lib_dl_dlopen=yes
13417 else
13418   echo "$as_me: failed program was:" >&5
13419 sed 's/^/| /' conftest.$ac_ext >&5
13420
13421 ac_cv_lib_dl_dlopen=no
13422 fi
13423 rm -f conftest.err conftest.$ac_objext \
13424       conftest$ac_exeext conftest.$ac_ext
13425 LIBS=$ac_check_lib_save_LIBS
13426 fi
13427 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13428 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13429 if test $ac_cv_lib_dl_dlopen = yes; then
13430   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13431 else
13432
13433     lt_cv_dlopen="dyld"
13434     lt_cv_dlopen_libs=
13435     lt_cv_dlopen_self=yes
13436
13437 fi
13438
13439    ;;
13440
13441   *)
13442     echo "$as_me:$LINENO: checking for shl_load" >&5
13443 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13444 if test "${ac_cv_func_shl_load+set}" = set; then
13445   echo $ECHO_N "(cached) $ECHO_C" >&6
13446 else
13447   cat >conftest.$ac_ext <<_ACEOF
13448 /* confdefs.h.  */
13449 _ACEOF
13450 cat confdefs.h >>conftest.$ac_ext
13451 cat >>conftest.$ac_ext <<_ACEOF
13452 /* end confdefs.h.  */
13453 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13454    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13455 #define shl_load innocuous_shl_load
13456
13457 /* System header to define __stub macros and hopefully few prototypes,
13458     which can conflict with char shl_load (); below.
13459     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13460     <limits.h> exists even on freestanding compilers.  */
13461
13462 #ifdef __STDC__
13463 # include <limits.h>
13464 #else
13465 # include <assert.h>
13466 #endif
13467
13468 #undef shl_load
13469
13470 /* Override any gcc2 internal prototype to avoid an error.  */
13471 #ifdef __cplusplus
13472 extern "C"
13473 {
13474 #endif
13475 /* We use char because int might match the return type of a gcc2
13476    builtin and then its argument prototype would still apply.  */
13477 char shl_load ();
13478 /* The GNU C library defines this for functions which it implements
13479     to always fail with ENOSYS.  Some functions are actually named
13480     something starting with __ and the normal name is an alias.  */
13481 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13482 choke me
13483 #else
13484 char (*f) () = shl_load;
13485 #endif
13486 #ifdef __cplusplus
13487 }
13488 #endif
13489
13490 int
13491 main ()
13492 {
13493 return f != shl_load;
13494   ;
13495   return 0;
13496 }
13497 _ACEOF
13498 rm -f conftest.$ac_objext conftest$ac_exeext
13499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13500   (eval $ac_link) 2>conftest.er1
13501   ac_status=$?
13502   grep -v '^ *+' conftest.er1 >conftest.err
13503   rm -f conftest.er1
13504   cat conftest.err >&5
13505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506   (exit $ac_status); } &&
13507          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
13508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13509   (eval $ac_try) 2>&5
13510   ac_status=$?
13511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512   (exit $ac_status); }; } &&
13513          { ac_try='test -s conftest$ac_exeext'
13514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13515   (eval $ac_try) 2>&5
13516   ac_status=$?
13517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13518   (exit $ac_status); }; }; then
13519   ac_cv_func_shl_load=yes
13520 else
13521   echo "$as_me: failed program was:" >&5
13522 sed 's/^/| /' conftest.$ac_ext >&5
13523
13524 ac_cv_func_shl_load=no
13525 fi
13526 rm -f conftest.err conftest.$ac_objext \
13527       conftest$ac_exeext conftest.$ac_ext
13528 fi
13529 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13530 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13531 if test $ac_cv_func_shl_load = yes; then
13532   lt_cv_dlopen="shl_load"
13533 else
13534   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13535 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13536 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13537   echo $ECHO_N "(cached) $ECHO_C" >&6
13538 else
13539   ac_check_lib_save_LIBS=$LIBS
13540 LIBS="-ldld  $LIBS"
13541 cat >conftest.$ac_ext <<_ACEOF
13542 /* confdefs.h.  */
13543 _ACEOF
13544 cat confdefs.h >>conftest.$ac_ext
13545 cat >>conftest.$ac_ext <<_ACEOF
13546 /* end confdefs.h.  */
13547
13548 /* Override any gcc2 internal prototype to avoid an error.  */
13549 #ifdef __cplusplus
13550 extern "C"
13551 #endif
13552 /* We use char because int might match the return type of a gcc2
13553    builtin and then its argument prototype would still apply.  */
13554 char shl_load ();
13555 int
13556 main ()
13557 {
13558 shl_load ();
13559   ;
13560   return 0;
13561 }
13562 _ACEOF
13563 rm -f conftest.$ac_objext conftest$ac_exeext
13564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13565   (eval $ac_link) 2>conftest.er1
13566   ac_status=$?
13567   grep -v '^ *+' conftest.er1 >conftest.err
13568   rm -f conftest.er1
13569   cat conftest.err >&5
13570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571   (exit $ac_status); } &&
13572          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
13573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13574   (eval $ac_try) 2>&5
13575   ac_status=$?
13576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577   (exit $ac_status); }; } &&
13578          { ac_try='test -s conftest$ac_exeext'
13579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13580   (eval $ac_try) 2>&5
13581   ac_status=$?
13582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583   (exit $ac_status); }; }; then
13584   ac_cv_lib_dld_shl_load=yes
13585 else
13586   echo "$as_me: failed program was:" >&5
13587 sed 's/^/| /' conftest.$ac_ext >&5
13588
13589 ac_cv_lib_dld_shl_load=no
13590 fi
13591 rm -f conftest.err conftest.$ac_objext \
13592       conftest$ac_exeext conftest.$ac_ext
13593 LIBS=$ac_check_lib_save_LIBS
13594 fi
13595 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13596 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13597 if test $ac_cv_lib_dld_shl_load = yes; then
13598   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13599 else
13600   echo "$as_me:$LINENO: checking for dlopen" >&5
13601 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13602 if test "${ac_cv_func_dlopen+set}" = set; then
13603   echo $ECHO_N "(cached) $ECHO_C" >&6
13604 else
13605   cat >conftest.$ac_ext <<_ACEOF
13606 /* confdefs.h.  */
13607 _ACEOF
13608 cat confdefs.h >>conftest.$ac_ext
13609 cat >>conftest.$ac_ext <<_ACEOF
13610 /* end confdefs.h.  */
13611 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13612    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13613 #define dlopen innocuous_dlopen
13614
13615 /* System header to define __stub macros and hopefully few prototypes,
13616     which can conflict with char dlopen (); below.
13617     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13618     <limits.h> exists even on freestanding compilers.  */
13619
13620 #ifdef __STDC__
13621 # include <limits.h>
13622 #else
13623 # include <assert.h>
13624 #endif
13625
13626 #undef dlopen
13627
13628 /* Override any gcc2 internal prototype to avoid an error.  */
13629 #ifdef __cplusplus
13630 extern "C"
13631 {
13632 #endif
13633 /* We use char because int might match the return type of a gcc2
13634    builtin and then its argument prototype would still apply.  */
13635 char dlopen ();
13636 /* The GNU C library defines this for functions which it implements
13637     to always fail with ENOSYS.  Some functions are actually named
13638     something starting with __ and the normal name is an alias.  */
13639 #if defined (__stub_dlopen) || defined (__stub___dlopen)
13640 choke me
13641 #else
13642 char (*f) () = dlopen;
13643 #endif
13644 #ifdef __cplusplus
13645 }
13646 #endif
13647
13648 int
13649 main ()
13650 {
13651 return f != dlopen;
13652   ;
13653   return 0;
13654 }
13655 _ACEOF
13656 rm -f conftest.$ac_objext conftest$ac_exeext
13657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13658   (eval $ac_link) 2>conftest.er1
13659   ac_status=$?
13660   grep -v '^ *+' conftest.er1 >conftest.err
13661   rm -f conftest.er1
13662   cat conftest.err >&5
13663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664   (exit $ac_status); } &&
13665          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
13666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13667   (eval $ac_try) 2>&5
13668   ac_status=$?
13669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670   (exit $ac_status); }; } &&
13671          { ac_try='test -s conftest$ac_exeext'
13672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13673   (eval $ac_try) 2>&5
13674   ac_status=$?
13675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676   (exit $ac_status); }; }; then
13677   ac_cv_func_dlopen=yes
13678 else
13679   echo "$as_me: failed program was:" >&5
13680 sed 's/^/| /' conftest.$ac_ext >&5
13681
13682 ac_cv_func_dlopen=no
13683 fi
13684 rm -f conftest.err conftest.$ac_objext \
13685       conftest$ac_exeext conftest.$ac_ext
13686 fi
13687 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13688 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13689 if test $ac_cv_func_dlopen = yes; then
13690   lt_cv_dlopen="dlopen"
13691 else
13692   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13693 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13694 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13695   echo $ECHO_N "(cached) $ECHO_C" >&6
13696 else
13697   ac_check_lib_save_LIBS=$LIBS
13698 LIBS="-ldl  $LIBS"
13699 cat >conftest.$ac_ext <<_ACEOF
13700 /* confdefs.h.  */
13701 _ACEOF
13702 cat confdefs.h >>conftest.$ac_ext
13703 cat >>conftest.$ac_ext <<_ACEOF
13704 /* end confdefs.h.  */
13705
13706 /* Override any gcc2 internal prototype to avoid an error.  */
13707 #ifdef __cplusplus
13708 extern "C"
13709 #endif
13710 /* We use char because int might match the return type of a gcc2
13711    builtin and then its argument prototype would still apply.  */
13712 char dlopen ();
13713 int
13714 main ()
13715 {
13716 dlopen ();
13717   ;
13718   return 0;
13719 }
13720 _ACEOF
13721 rm -f conftest.$ac_objext conftest$ac_exeext
13722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13723   (eval $ac_link) 2>conftest.er1
13724   ac_status=$?
13725   grep -v '^ *+' conftest.er1 >conftest.err
13726   rm -f conftest.er1
13727   cat conftest.err >&5
13728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729   (exit $ac_status); } &&
13730          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
13731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13732   (eval $ac_try) 2>&5
13733   ac_status=$?
13734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735   (exit $ac_status); }; } &&
13736          { ac_try='test -s conftest$ac_exeext'
13737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13738   (eval $ac_try) 2>&5
13739   ac_status=$?
13740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741   (exit $ac_status); }; }; then
13742   ac_cv_lib_dl_dlopen=yes
13743 else
13744   echo "$as_me: failed program was:" >&5
13745 sed 's/^/| /' conftest.$ac_ext >&5
13746
13747 ac_cv_lib_dl_dlopen=no
13748 fi
13749 rm -f conftest.err conftest.$ac_objext \
13750       conftest$ac_exeext conftest.$ac_ext
13751 LIBS=$ac_check_lib_save_LIBS
13752 fi
13753 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13754 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13755 if test $ac_cv_lib_dl_dlopen = yes; then
13756   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13757 else
13758   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13759 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13760 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13761   echo $ECHO_N "(cached) $ECHO_C" >&6
13762 else
13763   ac_check_lib_save_LIBS=$LIBS
13764 LIBS="-lsvld  $LIBS"
13765 cat >conftest.$ac_ext <<_ACEOF
13766 /* confdefs.h.  */
13767 _ACEOF
13768 cat confdefs.h >>conftest.$ac_ext
13769 cat >>conftest.$ac_ext <<_ACEOF
13770 /* end confdefs.h.  */
13771
13772 /* Override any gcc2 internal prototype to avoid an error.  */
13773 #ifdef __cplusplus
13774 extern "C"
13775 #endif
13776 /* We use char because int might match the return type of a gcc2
13777    builtin and then its argument prototype would still apply.  */
13778 char dlopen ();
13779 int
13780 main ()
13781 {
13782 dlopen ();
13783   ;
13784   return 0;
13785 }
13786 _ACEOF
13787 rm -f conftest.$ac_objext conftest$ac_exeext
13788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13789   (eval $ac_link) 2>conftest.er1
13790   ac_status=$?
13791   grep -v '^ *+' conftest.er1 >conftest.err
13792   rm -f conftest.er1
13793   cat conftest.err >&5
13794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795   (exit $ac_status); } &&
13796          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
13797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13798   (eval $ac_try) 2>&5
13799   ac_status=$?
13800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801   (exit $ac_status); }; } &&
13802          { ac_try='test -s conftest$ac_exeext'
13803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13804   (eval $ac_try) 2>&5
13805   ac_status=$?
13806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807   (exit $ac_status); }; }; then
13808   ac_cv_lib_svld_dlopen=yes
13809 else
13810   echo "$as_me: failed program was:" >&5
13811 sed 's/^/| /' conftest.$ac_ext >&5
13812
13813 ac_cv_lib_svld_dlopen=no
13814 fi
13815 rm -f conftest.err conftest.$ac_objext \
13816       conftest$ac_exeext conftest.$ac_ext
13817 LIBS=$ac_check_lib_save_LIBS
13818 fi
13819 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13820 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13821 if test $ac_cv_lib_svld_dlopen = yes; then
13822   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13823 else
13824   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13825 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13826 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13827   echo $ECHO_N "(cached) $ECHO_C" >&6
13828 else
13829   ac_check_lib_save_LIBS=$LIBS
13830 LIBS="-ldld  $LIBS"
13831 cat >conftest.$ac_ext <<_ACEOF
13832 /* confdefs.h.  */
13833 _ACEOF
13834 cat confdefs.h >>conftest.$ac_ext
13835 cat >>conftest.$ac_ext <<_ACEOF
13836 /* end confdefs.h.  */
13837
13838 /* Override any gcc2 internal prototype to avoid an error.  */
13839 #ifdef __cplusplus
13840 extern "C"
13841 #endif
13842 /* We use char because int might match the return type of a gcc2
13843    builtin and then its argument prototype would still apply.  */
13844 char dld_link ();
13845 int
13846 main ()
13847 {
13848 dld_link ();
13849   ;
13850   return 0;
13851 }
13852 _ACEOF
13853 rm -f conftest.$ac_objext conftest$ac_exeext
13854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13855   (eval $ac_link) 2>conftest.er1
13856   ac_status=$?
13857   grep -v '^ *+' conftest.er1 >conftest.err
13858   rm -f conftest.er1
13859   cat conftest.err >&5
13860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861   (exit $ac_status); } &&
13862          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
13863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13864   (eval $ac_try) 2>&5
13865   ac_status=$?
13866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13867   (exit $ac_status); }; } &&
13868          { ac_try='test -s conftest$ac_exeext'
13869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13870   (eval $ac_try) 2>&5
13871   ac_status=$?
13872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873   (exit $ac_status); }; }; then
13874   ac_cv_lib_dld_dld_link=yes
13875 else
13876   echo "$as_me: failed program was:" >&5
13877 sed 's/^/| /' conftest.$ac_ext >&5
13878
13879 ac_cv_lib_dld_dld_link=no
13880 fi
13881 rm -f conftest.err conftest.$ac_objext \
13882       conftest$ac_exeext conftest.$ac_ext
13883 LIBS=$ac_check_lib_save_LIBS
13884 fi
13885 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13886 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13887 if test $ac_cv_lib_dld_dld_link = yes; then
13888   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13889 fi
13890
13891
13892 fi
13893
13894
13895 fi
13896
13897
13898 fi
13899
13900
13901 fi
13902
13903
13904 fi
13905
13906     ;;
13907   esac
13908
13909   if test "x$lt_cv_dlopen" != xno; then
13910     enable_dlopen=yes
13911   else
13912     enable_dlopen=no
13913   fi
13914
13915   case $lt_cv_dlopen in
13916   dlopen)
13917     save_CPPFLAGS="$CPPFLAGS"
13918     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13919
13920     save_LDFLAGS="$LDFLAGS"
13921     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13922
13923     save_LIBS="$LIBS"
13924     LIBS="$lt_cv_dlopen_libs $LIBS"
13925
13926     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13927 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13928 if test "${lt_cv_dlopen_self+set}" = set; then
13929   echo $ECHO_N "(cached) $ECHO_C" >&6
13930 else
13931           if test "$cross_compiling" = yes; then :
13932   lt_cv_dlopen_self=cross
13933 else
13934   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13935   lt_status=$lt_dlunknown
13936   cat > conftest.$ac_ext <<EOF
13937 #line 13937 "configure"
13938 #include "confdefs.h"
13939
13940 #if HAVE_DLFCN_H
13941 #include <dlfcn.h>
13942 #endif
13943
13944 #include <stdio.h>
13945
13946 #ifdef RTLD_GLOBAL
13947 #  define LT_DLGLOBAL           RTLD_GLOBAL
13948 #else
13949 #  ifdef DL_GLOBAL
13950 #    define LT_DLGLOBAL         DL_GLOBAL
13951 #  else
13952 #    define LT_DLGLOBAL         0
13953 #  endif
13954 #endif
13955
13956 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13957    find out it does not work in some platform. */
13958 #ifndef LT_DLLAZY_OR_NOW
13959 #  ifdef RTLD_LAZY
13960 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13961 #  else
13962 #    ifdef DL_LAZY
13963 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13964 #    else
13965 #      ifdef RTLD_NOW
13966 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13967 #      else
13968 #        ifdef DL_NOW
13969 #          define LT_DLLAZY_OR_NOW      DL_NOW
13970 #        else
13971 #          define LT_DLLAZY_OR_NOW      0
13972 #        endif
13973 #      endif
13974 #    endif
13975 #  endif
13976 #endif
13977
13978 #ifdef __cplusplus
13979 extern "C" void exit (int);
13980 #endif
13981
13982 void fnord() { int i=42;}
13983 int main ()
13984 {
13985   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13986   int status = $lt_dlunknown;
13987
13988   if (self)
13989     {
13990       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13991       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13992       /* dlclose (self); */
13993     }
13994
13995     exit (status);
13996 }
13997 EOF
13998   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13999   (eval $ac_link) 2>&5
14000   ac_status=$?
14001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14003     (./conftest; exit; ) >&5 2>/dev/null
14004     lt_status=$?
14005     case x$lt_status in
14006       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14007       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14008       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14009     esac
14010   else :
14011     # compilation failed
14012     lt_cv_dlopen_self=no
14013   fi
14014 fi
14015 rm -fr conftest*
14016
14017
14018 fi
14019 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14020 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14021
14022     if test "x$lt_cv_dlopen_self" = xyes; then
14023       LDFLAGS="$LDFLAGS $link_static_flag"
14024       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14025 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14026 if test "${lt_cv_dlopen_self_static+set}" = set; then
14027   echo $ECHO_N "(cached) $ECHO_C" >&6
14028 else
14029           if test "$cross_compiling" = yes; then :
14030   lt_cv_dlopen_self_static=cross
14031 else
14032   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14033   lt_status=$lt_dlunknown
14034   cat > conftest.$ac_ext <<EOF
14035 #line 14035 "configure"
14036 #include "confdefs.h"
14037
14038 #if HAVE_DLFCN_H
14039 #include <dlfcn.h>
14040 #endif
14041
14042 #include <stdio.h>
14043
14044 #ifdef RTLD_GLOBAL
14045 #  define LT_DLGLOBAL           RTLD_GLOBAL
14046 #else
14047 #  ifdef DL_GLOBAL
14048 #    define LT_DLGLOBAL         DL_GLOBAL
14049 #  else
14050 #    define LT_DLGLOBAL         0
14051 #  endif
14052 #endif
14053
14054 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14055    find out it does not work in some platform. */
14056 #ifndef LT_DLLAZY_OR_NOW
14057 #  ifdef RTLD_LAZY
14058 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14059 #  else
14060 #    ifdef DL_LAZY
14061 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14062 #    else
14063 #      ifdef RTLD_NOW
14064 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14065 #      else
14066 #        ifdef DL_NOW
14067 #          define LT_DLLAZY_OR_NOW      DL_NOW
14068 #        else
14069 #          define LT_DLLAZY_OR_NOW      0
14070 #        endif
14071 #      endif
14072 #    endif
14073 #  endif
14074 #endif
14075
14076 #ifdef __cplusplus
14077 extern "C" void exit (int);
14078 #endif
14079
14080 void fnord() { int i=42;}
14081 int main ()
14082 {
14083   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14084   int status = $lt_dlunknown;
14085
14086   if (self)
14087     {
14088       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14089       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14090       /* dlclose (self); */
14091     }
14092
14093     exit (status);
14094 }
14095 EOF
14096   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14097   (eval $ac_link) 2>&5
14098   ac_status=$?
14099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14101     (./conftest; exit; ) >&5 2>/dev/null
14102     lt_status=$?
14103     case x$lt_status in
14104       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14105       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14106       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14107     esac
14108   else :
14109     # compilation failed
14110     lt_cv_dlopen_self_static=no
14111   fi
14112 fi
14113 rm -fr conftest*
14114
14115
14116 fi
14117 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14118 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14119     fi
14120
14121     CPPFLAGS="$save_CPPFLAGS"
14122     LDFLAGS="$save_LDFLAGS"
14123     LIBS="$save_LIBS"
14124     ;;
14125   esac
14126
14127   case $lt_cv_dlopen_self in
14128   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14129   *) enable_dlopen_self=unknown ;;
14130   esac
14131
14132   case $lt_cv_dlopen_self_static in
14133   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14134   *) enable_dlopen_self_static=unknown ;;
14135   esac
14136 fi
14137
14138
14139 # The else clause should only fire when bootstrapping the
14140 # libtool distribution, otherwise you forgot to ship ltmain.sh
14141 # with your package, and you will get complaints that there are
14142 # no rules to generate ltmain.sh.
14143 if test -f "$ltmain"; then
14144   # See if we are running on zsh, and set the options which allow our commands through
14145   # without removal of \ escapes.
14146   if test -n "${ZSH_VERSION+set}" ; then
14147     setopt NO_GLOB_SUBST
14148   fi
14149   # Now quote all the things that may contain metacharacters while being
14150   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14151   # variables and quote the copies for generation of the libtool script.
14152   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14153     SED SHELL STRIP \
14154     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14155     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14156     deplibs_check_method reload_flag reload_cmds need_locks \
14157     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14158     lt_cv_sys_global_symbol_to_c_name_address \
14159     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14160     old_postinstall_cmds old_postuninstall_cmds \
14161     compiler_CXX \
14162     CC_CXX \
14163     LD_CXX \
14164     lt_prog_compiler_wl_CXX \
14165     lt_prog_compiler_pic_CXX \
14166     lt_prog_compiler_static_CXX \
14167     lt_prog_compiler_no_builtin_flag_CXX \
14168     export_dynamic_flag_spec_CXX \
14169     thread_safe_flag_spec_CXX \
14170     whole_archive_flag_spec_CXX \
14171     enable_shared_with_static_runtimes_CXX \
14172     old_archive_cmds_CXX \
14173     old_archive_from_new_cmds_CXX \
14174     predep_objects_CXX \
14175     postdep_objects_CXX \
14176     predeps_CXX \
14177     postdeps_CXX \
14178     compiler_lib_search_path_CXX \
14179     archive_cmds_CXX \
14180     archive_expsym_cmds_CXX \
14181     postinstall_cmds_CXX \
14182     postuninstall_cmds_CXX \
14183     old_archive_from_expsyms_cmds_CXX \
14184     allow_undefined_flag_CXX \
14185     no_undefined_flag_CXX \
14186     export_symbols_cmds_CXX \
14187     hardcode_libdir_flag_spec_CXX \
14188     hardcode_libdir_flag_spec_ld_CXX \
14189     hardcode_libdir_separator_CXX \
14190     hardcode_automatic_CXX \
14191     module_cmds_CXX \
14192     module_expsym_cmds_CXX \
14193     lt_cv_prog_compiler_c_o_CXX \
14194     exclude_expsyms_CXX \
14195     include_expsyms_CXX; do
14196
14197     case $var in
14198     old_archive_cmds_CXX | \
14199     old_archive_from_new_cmds_CXX | \
14200     archive_cmds_CXX | \
14201     archive_expsym_cmds_CXX | \
14202     module_cmds_CXX | \
14203     module_expsym_cmds_CXX | \
14204     old_archive_from_expsyms_cmds_CXX | \
14205     export_symbols_cmds_CXX | \
14206     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14207     postinstall_cmds | postuninstall_cmds | \
14208     old_postinstall_cmds | old_postuninstall_cmds | \
14209     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14210       # Double-quote double-evaled strings.
14211       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14212       ;;
14213     *)
14214       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14215       ;;
14216     esac
14217   done
14218
14219   case $lt_echo in
14220   *'\$0 --fallback-echo"')
14221     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14222     ;;
14223   esac
14224
14225 cfgfile="$ofile"
14226
14227   cat <<__EOF__ >> "$cfgfile"
14228 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14229
14230 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14231
14232 # Shell to use when invoking shell scripts.
14233 SHELL=$lt_SHELL
14234
14235 # Whether or not to build shared libraries.
14236 build_libtool_libs=$enable_shared
14237
14238 # Whether or not to build static libraries.
14239 build_old_libs=$enable_static
14240
14241 # Whether or not to add -lc for building shared libraries.
14242 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14243
14244 # Whether or not to disallow shared libs when runtime libs are static
14245 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14246
14247 # Whether or not to optimize for fast installation.
14248 fast_install=$enable_fast_install
14249
14250 # The host system.
14251 host_alias=$host_alias
14252 host=$host
14253 host_os=$host_os
14254
14255 # The build system.
14256 build_alias=$build_alias
14257 build=$build
14258 build_os=$build_os
14259
14260 # An echo program that does not interpret backslashes.
14261 echo=$lt_echo
14262
14263 # The archiver.
14264 AR=$lt_AR
14265 AR_FLAGS=$lt_AR_FLAGS
14266
14267 # A C compiler.
14268 LTCC=$lt_LTCC
14269
14270 # A language-specific compiler.
14271 CC=$lt_compiler_CXX
14272
14273 # Is the compiler the GNU C compiler?
14274 with_gcc=$GCC_CXX
14275
14276 # An ERE matcher.
14277 EGREP=$lt_EGREP
14278
14279 # The linker used to build libraries.
14280 LD=$lt_LD_CXX
14281
14282 # Whether we need hard or soft links.
14283 LN_S=$lt_LN_S
14284
14285 # A BSD-compatible nm program.
14286 NM=$lt_NM
14287
14288 # A symbol stripping program
14289 STRIP=$lt_STRIP
14290
14291 # Used to examine libraries when file_magic_cmd begins "file"
14292 MAGIC_CMD=$MAGIC_CMD
14293
14294 # Used on cygwin: DLL creation program.
14295 DLLTOOL="$DLLTOOL"
14296
14297 # Used on cygwin: object dumper.
14298 OBJDUMP="$OBJDUMP"
14299
14300 # Used on cygwin: assembler.
14301 AS="$AS"
14302
14303 # The name of the directory that contains temporary libtool files.
14304 objdir=$objdir
14305
14306 # How to create reloadable object files.
14307 reload_flag=$lt_reload_flag
14308 reload_cmds=$lt_reload_cmds
14309
14310 # How to pass a linker flag through the compiler.
14311 wl=$lt_lt_prog_compiler_wl_CXX
14312
14313 # Object file suffix (normally "o").
14314 objext="$ac_objext"
14315
14316 # Old archive suffix (normally "a").
14317 libext="$libext"
14318
14319 # Shared library suffix (normally ".so").
14320 shrext_cmds='$shrext_cmds'
14321
14322 # Executable file suffix (normally "").
14323 exeext="$exeext"
14324
14325 # Additional compiler flags for building library objects.
14326 pic_flag=$lt_lt_prog_compiler_pic_CXX
14327 pic_mode=$pic_mode
14328
14329 # What is the maximum length of a command?
14330 max_cmd_len=$lt_cv_sys_max_cmd_len
14331
14332 # Does compiler simultaneously support -c and -o options?
14333 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14334
14335 # Must we lock files when doing compilation?
14336 need_locks=$lt_need_locks
14337
14338 # Do we need the lib prefix for modules?
14339 need_lib_prefix=$need_lib_prefix
14340
14341 # Do we need a version for libraries?
14342 need_version=$need_version
14343
14344 # Whether dlopen is supported.
14345 dlopen_support=$enable_dlopen
14346
14347 # Whether dlopen of programs is supported.
14348 dlopen_self=$enable_dlopen_self
14349
14350 # Whether dlopen of statically linked programs is supported.
14351 dlopen_self_static=$enable_dlopen_self_static
14352
14353 # Compiler flag to prevent dynamic linking.
14354 link_static_flag=$lt_lt_prog_compiler_static_CXX
14355
14356 # Compiler flag to turn off builtin functions.
14357 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14358
14359 # Compiler flag to allow reflexive dlopens.
14360 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14361
14362 # Compiler flag to generate shared objects directly from archives.
14363 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14364
14365 # Compiler flag to generate thread-safe objects.
14366 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14367
14368 # Library versioning type.
14369 version_type=$version_type
14370
14371 # Format of library name prefix.
14372 libname_spec=$lt_libname_spec
14373
14374 # List of archive names.  First name is the real one, the rest are links.
14375 # The last name is the one that the linker finds with -lNAME.
14376 library_names_spec=$lt_library_names_spec
14377
14378 # The coded name of the library, if different from the real name.
14379 soname_spec=$lt_soname_spec
14380
14381 # Commands used to build and install an old-style archive.
14382 RANLIB=$lt_RANLIB
14383 old_archive_cmds=$lt_old_archive_cmds_CXX
14384 old_postinstall_cmds=$lt_old_postinstall_cmds
14385 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14386
14387 # Create an old-style archive from a shared archive.
14388 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14389
14390 # Create a temporary old-style archive to link instead of a shared archive.
14391 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14392
14393 # Commands used to build and install a shared archive.
14394 archive_cmds=$lt_archive_cmds_CXX
14395 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14396 postinstall_cmds=$lt_postinstall_cmds
14397 postuninstall_cmds=$lt_postuninstall_cmds
14398
14399 # Commands used to build a loadable module (assumed same as above if empty)
14400 module_cmds=$lt_module_cmds_CXX
14401 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14402
14403 # Commands to strip libraries.
14404 old_striplib=$lt_old_striplib
14405 striplib=$lt_striplib
14406
14407 # Dependencies to place before the objects being linked to create a
14408 # shared library.
14409 predep_objects=$lt_predep_objects_CXX
14410
14411 # Dependencies to place after the objects being linked to create a
14412 # shared library.
14413 postdep_objects=$lt_postdep_objects_CXX
14414
14415 # Dependencies to place before the objects being linked to create a
14416 # shared library.
14417 predeps=$lt_predeps_CXX
14418
14419 # Dependencies to place after the objects being linked to create a
14420 # shared library.
14421 postdeps=$lt_postdeps_CXX
14422
14423 # The library search path used internally by the compiler when linking
14424 # a shared library.
14425 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14426
14427 # Method to check whether dependent libraries are shared objects.
14428 deplibs_check_method=$lt_deplibs_check_method
14429
14430 # Command to use when deplibs_check_method == file_magic.
14431 file_magic_cmd=$lt_file_magic_cmd
14432
14433 # Flag that allows shared libraries with undefined symbols to be built.
14434 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14435
14436 # Flag that forces no undefined symbols.
14437 no_undefined_flag=$lt_no_undefined_flag_CXX
14438
14439 # Commands used to finish a libtool library installation in a directory.
14440 finish_cmds=$lt_finish_cmds
14441
14442 # Same as above, but a single script fragment to be evaled but not shown.
14443 finish_eval=$lt_finish_eval
14444
14445 # Take the output of nm and produce a listing of raw symbols and C names.
14446 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14447
14448 # Transform the output of nm in a proper C declaration
14449 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14450
14451 # Transform the output of nm in a C name address pair
14452 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14453
14454 # This is the shared library runtime path variable.
14455 runpath_var=$runpath_var
14456
14457 # This is the shared library path variable.
14458 shlibpath_var=$shlibpath_var
14459
14460 # Is shlibpath searched before the hard-coded library search path?
14461 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14462
14463 # How to hardcode a shared library path into an executable.
14464 hardcode_action=$hardcode_action_CXX
14465
14466 # Whether we should hardcode library paths into libraries.
14467 hardcode_into_libs=$hardcode_into_libs
14468
14469 # Flag to hardcode \$libdir into a binary during linking.
14470 # This must work even if \$libdir does not exist.
14471 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14472
14473 # If ld is used when linking, flag to hardcode \$libdir into
14474 # a binary during linking. This must work even if \$libdir does
14475 # not exist.
14476 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14477
14478 # Whether we need a single -rpath flag with a separated argument.
14479 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14480
14481 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14482 # resulting binary.
14483 hardcode_direct=$hardcode_direct_CXX
14484
14485 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14486 # resulting binary.
14487 hardcode_minus_L=$hardcode_minus_L_CXX
14488
14489 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14490 # the resulting binary.
14491 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14492
14493 # Set to yes if building a shared library automatically hardcodes DIR into the library
14494 # and all subsequent libraries and executables linked against it.
14495 hardcode_automatic=$hardcode_automatic_CXX
14496
14497 # Variables whose values should be saved in libtool wrapper scripts and
14498 # restored at relink time.
14499 variables_saved_for_relink="$variables_saved_for_relink"
14500
14501 # Whether libtool must link a program against all its dependency libraries.
14502 link_all_deplibs=$link_all_deplibs_CXX
14503
14504 # Compile-time system search path for libraries
14505 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14506
14507 # Run-time system search path for libraries
14508 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14509
14510 # Fix the shell variable \$srcfile for the compiler.
14511 fix_srcfile_path="$fix_srcfile_path_CXX"
14512
14513 # Set to yes if exported symbols are required.
14514 always_export_symbols=$always_export_symbols_CXX
14515
14516 # The commands to list exported symbols.
14517 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14518
14519 # The commands to extract the exported symbol list from a shared archive.
14520 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14521
14522 # Symbols that should not be listed in the preloaded symbols.
14523 exclude_expsyms=$lt_exclude_expsyms_CXX
14524
14525 # Symbols that must always be exported.
14526 include_expsyms=$lt_include_expsyms_CXX
14527
14528 # ### END LIBTOOL TAG CONFIG: $tagname
14529
14530 __EOF__
14531
14532
14533 else
14534   # If there is no Makefile yet, we rely on a make rule to execute
14535   # `config.status --recheck' to rerun these tests and create the
14536   # libtool script then.
14537   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14538   if test -f "$ltmain_in"; then
14539     test -f Makefile && make "$ltmain"
14540   fi
14541 fi
14542
14543
14544 ac_ext=c
14545 ac_cpp='$CPP $CPPFLAGS'
14546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14549
14550 CC=$lt_save_CC
14551 LDCXX=$LD
14552 LD=$lt_save_LD
14553 GCC=$lt_save_GCC
14554 with_gnu_ldcxx=$with_gnu_ld
14555 with_gnu_ld=$lt_save_with_gnu_ld
14556 lt_cv_path_LDCXX=$lt_cv_path_LD
14557 lt_cv_path_LD=$lt_save_path_LD
14558 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14559 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14560
14561         else
14562           tagname=""
14563         fi
14564         ;;
14565
14566       F77)
14567         if test -n "$F77" && test "X$F77" != "Xno"; then
14568
14569 ac_ext=f
14570 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14571 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14572 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14573
14574
14575 archive_cmds_need_lc_F77=no
14576 allow_undefined_flag_F77=
14577 always_export_symbols_F77=no
14578 archive_expsym_cmds_F77=
14579 export_dynamic_flag_spec_F77=
14580 hardcode_direct_F77=no
14581 hardcode_libdir_flag_spec_F77=
14582 hardcode_libdir_flag_spec_ld_F77=
14583 hardcode_libdir_separator_F77=
14584 hardcode_minus_L_F77=no
14585 hardcode_automatic_F77=no
14586 module_cmds_F77=
14587 module_expsym_cmds_F77=
14588 link_all_deplibs_F77=unknown
14589 old_archive_cmds_F77=$old_archive_cmds
14590 no_undefined_flag_F77=
14591 whole_archive_flag_spec_F77=
14592 enable_shared_with_static_runtimes_F77=no
14593
14594 # Source file extension for f77 test sources.
14595 ac_ext=f
14596
14597 # Object file extension for compiled f77 test sources.
14598 objext=o
14599 objext_F77=$objext
14600
14601 # Code to be used in simple compile tests
14602 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14603
14604 # Code to be used in simple link tests
14605 lt_simple_link_test_code="      program t\n      end\n"
14606
14607 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14608
14609 # If no C compiler was specified, use CC.
14610 LTCC=${LTCC-"$CC"}
14611
14612 # Allow CC to be a program name with arguments.
14613 compiler=$CC
14614
14615
14616 # save warnings/boilerplate of simple test code
14617 ac_outfile=conftest.$ac_objext
14618 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14619 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
14620 _lt_compiler_boilerplate=`cat conftest.err`
14621 $rm conftest*
14622
14623 ac_outfile=conftest.$ac_objext
14624 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14625 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
14626 _lt_linker_boilerplate=`cat conftest.err`
14627 $rm conftest*
14628
14629
14630 # Allow CC to be a program name with arguments.
14631 lt_save_CC="$CC"
14632 CC=${F77-"f77"}
14633 compiler=$CC
14634 compiler_F77=$CC
14635 for cc_temp in $compiler""; do
14636   case $cc_temp in
14637     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14638     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14639     \-*) ;;
14640     *) break;;
14641   esac
14642 done
14643 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14644
14645
14646 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14647 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14648 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14649 echo "${ECHO_T}$can_build_shared" >&6
14650
14651 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14652 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14653 test "$can_build_shared" = "no" && enable_shared=no
14654
14655 # On AIX, shared libraries and static libraries use the same namespace, and
14656 # are all built from PIC.
14657 case $host_os in
14658 aix3*)
14659   test "$enable_shared" = yes && enable_static=no
14660   if test -n "$RANLIB"; then
14661     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14662     postinstall_cmds='$RANLIB $lib'
14663   fi
14664   ;;
14665 aix4* | aix5*)
14666   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14667     test "$enable_shared" = yes && enable_static=no
14668   fi
14669   ;;
14670 esac
14671 echo "$as_me:$LINENO: result: $enable_shared" >&5
14672 echo "${ECHO_T}$enable_shared" >&6
14673
14674 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14675 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14676 # Make sure either enable_shared or enable_static is yes.
14677 test "$enable_shared" = yes || enable_static=yes
14678 echo "$as_me:$LINENO: result: $enable_static" >&5
14679 echo "${ECHO_T}$enable_static" >&6
14680
14681 test "$ld_shlibs_F77" = no && can_build_shared=no
14682
14683 GCC_F77="$G77"
14684 LD_F77="$LD"
14685
14686 lt_prog_compiler_wl_F77=
14687 lt_prog_compiler_pic_F77=
14688 lt_prog_compiler_static_F77=
14689
14690 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14691 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14692
14693   if test "$GCC" = yes; then
14694     lt_prog_compiler_wl_F77='-Wl,'
14695     lt_prog_compiler_static_F77='-static'
14696
14697     case $host_os in
14698       aix*)
14699       # All AIX code is PIC.
14700       if test "$host_cpu" = ia64; then
14701         # AIX 5 now supports IA64 processor
14702         lt_prog_compiler_static_F77='-Bstatic'
14703       fi
14704       ;;
14705
14706     amigaos*)
14707       # FIXME: we need at least 68020 code to build shared libraries, but
14708       # adding the `-m68020' flag to GCC prevents building anything better,
14709       # like `-m68040'.
14710       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14711       ;;
14712
14713     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14714       # PIC is the default for these OSes.
14715       ;;
14716
14717     mingw* | pw32* | os2*)
14718       # This hack is so that the source file can tell whether it is being
14719       # built for inclusion in a dll (and should export symbols for example).
14720       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14721       ;;
14722
14723     darwin* | rhapsody*)
14724       # PIC is the default on this platform
14725       # Common symbols not allowed in MH_DYLIB files
14726       lt_prog_compiler_pic_F77='-fno-common'
14727       ;;
14728
14729     msdosdjgpp*)
14730       # Just because we use GCC doesn't mean we suddenly get shared libraries
14731       # on systems that don't support them.
14732       lt_prog_compiler_can_build_shared_F77=no
14733       enable_shared=no
14734       ;;
14735
14736     sysv4*MP*)
14737       if test -d /usr/nec; then
14738         lt_prog_compiler_pic_F77=-Kconform_pic
14739       fi
14740       ;;
14741
14742     hpux*)
14743       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14744       # not for PA HP-UX.
14745       case $host_cpu in
14746       hppa*64*|ia64*)
14747         # +Z the default
14748         ;;
14749       *)
14750         lt_prog_compiler_pic_F77='-fPIC'
14751         ;;
14752       esac
14753       ;;
14754
14755     *)
14756       lt_prog_compiler_pic_F77='-fPIC'
14757       ;;
14758     esac
14759   else
14760     # PORTME Check for flag to pass linker flags through the system compiler.
14761     case $host_os in
14762     aix*)
14763       lt_prog_compiler_wl_F77='-Wl,'
14764       if test "$host_cpu" = ia64; then
14765         # AIX 5 now supports IA64 processor
14766         lt_prog_compiler_static_F77='-Bstatic'
14767       else
14768         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14769       fi
14770       ;;
14771       darwin*)
14772         # PIC is the default on this platform
14773         # Common symbols not allowed in MH_DYLIB files
14774        case $cc_basename in
14775          xlc*)
14776          lt_prog_compiler_pic_F77='-qnocommon'
14777          lt_prog_compiler_wl_F77='-Wl,'
14778          ;;
14779        esac
14780        ;;
14781
14782     mingw* | pw32* | os2*)
14783       # This hack is so that the source file can tell whether it is being
14784       # built for inclusion in a dll (and should export symbols for example).
14785       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14786       ;;
14787
14788     hpux9* | hpux10* | hpux11*)
14789       lt_prog_compiler_wl_F77='-Wl,'
14790       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14791       # not for PA HP-UX.
14792       case $host_cpu in
14793       hppa*64*|ia64*)
14794         # +Z the default
14795         ;;
14796       *)
14797         lt_prog_compiler_pic_F77='+Z'
14798         ;;
14799       esac
14800       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14801       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14802       ;;
14803
14804     irix5* | irix6* | nonstopux*)
14805       lt_prog_compiler_wl_F77='-Wl,'
14806       # PIC (with -KPIC) is the default.
14807       lt_prog_compiler_static_F77='-non_shared'
14808       ;;
14809
14810     newsos6)
14811       lt_prog_compiler_pic_F77='-KPIC'
14812       lt_prog_compiler_static_F77='-Bstatic'
14813       ;;
14814
14815     linux*)
14816       case $cc_basename in
14817       icc* | ecc*)
14818         lt_prog_compiler_wl_F77='-Wl,'
14819         lt_prog_compiler_pic_F77='-KPIC'
14820         lt_prog_compiler_static_F77='-static'
14821         ;;
14822       pgcc* | pgf77* | pgf90* | pgf95*)
14823         # Portland Group compilers (*not* the Pentium gcc compiler,
14824         # which looks to be a dead project)
14825         lt_prog_compiler_wl_F77='-Wl,'
14826         lt_prog_compiler_pic_F77='-fpic'
14827         lt_prog_compiler_static_F77='-Bstatic'
14828         ;;
14829       ccc*)
14830         lt_prog_compiler_wl_F77='-Wl,'
14831         # All Alpha code is PIC.
14832         lt_prog_compiler_static_F77='-non_shared'
14833         ;;
14834       esac
14835       ;;
14836
14837     osf3* | osf4* | osf5*)
14838       lt_prog_compiler_wl_F77='-Wl,'
14839       # All OSF/1 code is PIC.
14840       lt_prog_compiler_static_F77='-non_shared'
14841       ;;
14842
14843     sco3.2v5*)
14844       lt_prog_compiler_pic_F77='-Kpic'
14845       lt_prog_compiler_static_F77='-dn'
14846       ;;
14847
14848     solaris*)
14849       lt_prog_compiler_pic_F77='-KPIC'
14850       lt_prog_compiler_static_F77='-Bstatic'
14851       case $cc_basename in
14852       f77* | f90* | f95*)
14853         lt_prog_compiler_wl_F77='-Qoption ld ';;
14854       *)
14855         lt_prog_compiler_wl_F77='-Wl,';;
14856       esac
14857       ;;
14858
14859     sunos4*)
14860       lt_prog_compiler_wl_F77='-Qoption ld '
14861       lt_prog_compiler_pic_F77='-PIC'
14862       lt_prog_compiler_static_F77='-Bstatic'
14863       ;;
14864
14865     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14866       lt_prog_compiler_wl_F77='-Wl,'
14867       lt_prog_compiler_pic_F77='-KPIC'
14868       lt_prog_compiler_static_F77='-Bstatic'
14869       ;;
14870
14871     sysv4*MP*)
14872       if test -d /usr/nec ;then
14873         lt_prog_compiler_pic_F77='-Kconform_pic'
14874         lt_prog_compiler_static_F77='-Bstatic'
14875       fi
14876       ;;
14877
14878     unicos*)
14879       lt_prog_compiler_wl_F77='-Wl,'
14880       lt_prog_compiler_can_build_shared_F77=no
14881       ;;
14882
14883     uts4*)
14884       lt_prog_compiler_pic_F77='-pic'
14885       lt_prog_compiler_static_F77='-Bstatic'
14886       ;;
14887
14888     *)
14889       lt_prog_compiler_can_build_shared_F77=no
14890       ;;
14891     esac
14892   fi
14893
14894 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14895 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14896
14897 #
14898 # Check to make sure the PIC flag actually works.
14899 #
14900 if test -n "$lt_prog_compiler_pic_F77"; then
14901
14902 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14903 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14904 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14905   echo $ECHO_N "(cached) $ECHO_C" >&6
14906 else
14907   lt_prog_compiler_pic_works_F77=no
14908   ac_outfile=conftest.$ac_objext
14909    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14910    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14911    # Insert the option either (1) after the last *FLAGS variable, or
14912    # (2) before a word containing "conftest.", or (3) at the end.
14913    # Note that $ac_compile itself does not contain backslashes and begins
14914    # with a dollar sign (not a hyphen), so the echo should work correctly.
14915    # The option is referenced via a variable to avoid confusing sed.
14916    lt_compile=`echo "$ac_compile" | $SED \
14917    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14918    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14919    -e 's:$: $lt_compiler_flag:'`
14920    (eval echo "\"\$as_me:14920: $lt_compile\"" >&5)
14921    (eval "$lt_compile" 2>conftest.err)
14922    ac_status=$?
14923    cat conftest.err >&5
14924    echo "$as_me:14924: \$? = $ac_status" >&5
14925    if (exit $ac_status) && test -s "$ac_outfile"; then
14926      # The compiler can only warn and ignore the option if not recognized
14927      # So say no if there are warnings other than the usual output.
14928      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
14929      $SED '/^$/d' conftest.err >conftest.er2
14930      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
14931        lt_prog_compiler_pic_works_F77=yes
14932      fi
14933    fi
14934    $rm conftest*
14935
14936 fi
14937 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14938 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14939
14940 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14941     case $lt_prog_compiler_pic_F77 in
14942      "" | " "*) ;;
14943      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14944      esac
14945 else
14946     lt_prog_compiler_pic_F77=
14947      lt_prog_compiler_can_build_shared_F77=no
14948 fi
14949
14950 fi
14951 case $host_os in
14952   # For platforms which do not support PIC, -DPIC is meaningless:
14953   *djgpp*)
14954     lt_prog_compiler_pic_F77=
14955     ;;
14956   *)
14957     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14958     ;;
14959 esac
14960
14961 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14962 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14963 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14964   echo $ECHO_N "(cached) $ECHO_C" >&6
14965 else
14966   lt_cv_prog_compiler_c_o_F77=no
14967    $rm -r conftest 2>/dev/null
14968    mkdir conftest
14969    cd conftest
14970    mkdir out
14971    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14972
14973    lt_compiler_flag="-o out/conftest2.$ac_objext"
14974    # Insert the option either (1) after the last *FLAGS variable, or
14975    # (2) before a word containing "conftest.", or (3) at the end.
14976    # Note that $ac_compile itself does not contain backslashes and begins
14977    # with a dollar sign (not a hyphen), so the echo should work correctly.
14978    lt_compile=`echo "$ac_compile" | $SED \
14979    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14980    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14981    -e 's:$: $lt_compiler_flag:'`
14982    (eval echo "\"\$as_me:14982: $lt_compile\"" >&5)
14983    (eval "$lt_compile" 2>out/conftest.err)
14984    ac_status=$?
14985    cat out/conftest.err >&5
14986    echo "$as_me:14986: \$? = $ac_status" >&5
14987    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14988    then
14989      # The compiler can only warn and ignore the option if not recognized
14990      # So say no if there are warnings
14991      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
14992      $SED '/^$/d' out/conftest.err >out/conftest.er2
14993      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14994        lt_cv_prog_compiler_c_o_F77=yes
14995      fi
14996    fi
14997    chmod u+w . 2>&5
14998    $rm conftest*
14999    # SGI C++ compiler will create directory out/ii_files/ for
15000    # template instantiation
15001    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15002    $rm out/* && rmdir out
15003    cd ..
15004    rmdir conftest
15005    $rm conftest*
15006
15007 fi
15008 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15009 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15010
15011
15012 hard_links="nottested"
15013 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15014   # do not overwrite the value of need_locks provided by the user
15015   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15016 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15017   hard_links=yes
15018   $rm conftest*
15019   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15020   touch conftest.a
15021   ln conftest.a conftest.b 2>&5 || hard_links=no
15022   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15023   echo "$as_me:$LINENO: result: $hard_links" >&5
15024 echo "${ECHO_T}$hard_links" >&6
15025   if test "$hard_links" = no; then
15026     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15027 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15028     need_locks=warn
15029   fi
15030 else
15031   need_locks=no
15032 fi
15033
15034 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15035 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15036
15037   runpath_var=
15038   allow_undefined_flag_F77=
15039   enable_shared_with_static_runtimes_F77=no
15040   archive_cmds_F77=
15041   archive_expsym_cmds_F77=
15042   old_archive_From_new_cmds_F77=
15043   old_archive_from_expsyms_cmds_F77=
15044   export_dynamic_flag_spec_F77=
15045   whole_archive_flag_spec_F77=
15046   thread_safe_flag_spec_F77=
15047   hardcode_libdir_flag_spec_F77=
15048   hardcode_libdir_flag_spec_ld_F77=
15049   hardcode_libdir_separator_F77=
15050   hardcode_direct_F77=no
15051   hardcode_minus_L_F77=no
15052   hardcode_shlibpath_var_F77=unsupported
15053   link_all_deplibs_F77=unknown
15054   hardcode_automatic_F77=no
15055   module_cmds_F77=
15056   module_expsym_cmds_F77=
15057   always_export_symbols_F77=no
15058   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15059   # include_expsyms should be a list of space-separated symbols to be *always*
15060   # included in the symbol list
15061   include_expsyms_F77=
15062   # exclude_expsyms can be an extended regexp of symbols to exclude
15063   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15064   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15065   # as well as any symbol that contains `d'.
15066   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15067   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15068   # platforms (ab)use it in PIC code, but their linkers get confused if
15069   # the symbol is explicitly referenced.  Since portable code cannot
15070   # rely on this symbol name, it's probably fine to never include it in
15071   # preloaded symbol tables.
15072   extract_expsyms_cmds=
15073   # Just being paranoid about ensuring that cc_basename is set.
15074   for cc_temp in $compiler""; do
15075   case $cc_temp in
15076     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15077     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15078     \-*) ;;
15079     *) break;;
15080   esac
15081 done
15082 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15083
15084   case $host_os in
15085   cygwin* | mingw* | pw32*)
15086     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15087     # When not using gcc, we currently assume that we are using
15088     # Microsoft Visual C++.
15089     if test "$GCC" != yes; then
15090       with_gnu_ld=no
15091     fi
15092     ;;
15093   openbsd*)
15094     with_gnu_ld=no
15095     ;;
15096   esac
15097
15098   ld_shlibs_F77=yes
15099   if test "$with_gnu_ld" = yes; then
15100     # If archive_cmds runs LD, not CC, wlarc should be empty
15101     wlarc='${wl}'
15102
15103     # Set some defaults for GNU ld with shared library support. These
15104     # are reset later if shared libraries are not supported. Putting them
15105     # here allows them to be overridden if necessary.
15106     runpath_var=LD_RUN_PATH
15107     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15108     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15109     # ancient GNU ld didn't support --whole-archive et. al.
15110     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15111         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15112       else
15113         whole_archive_flag_spec_F77=
15114     fi
15115     supports_anon_versioning=no
15116     case `$LD -v 2>/dev/null` in
15117       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15118       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15119       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15120       *\ 2.11.*) ;; # other 2.11 versions
15121       *) supports_anon_versioning=yes ;;
15122     esac
15123
15124     # See if GNU ld supports shared libraries.
15125     case $host_os in
15126     aix3* | aix4* | aix5*)
15127       # On AIX/PPC, the GNU linker is very broken
15128       if test "$host_cpu" != ia64; then
15129         ld_shlibs_F77=no
15130         cat <<EOF 1>&2
15131
15132 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15133 *** to be unable to reliably create shared libraries on AIX.
15134 *** Therefore, libtool is disabling shared libraries support.  If you
15135 *** really care for shared libraries, you may want to modify your PATH
15136 *** so that a non-GNU linker is found, and then restart.
15137
15138 EOF
15139       fi
15140       ;;
15141
15142     amigaos*)
15143       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)'
15144       hardcode_libdir_flag_spec_F77='-L$libdir'
15145       hardcode_minus_L_F77=yes
15146
15147       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15148       # that the semantics of dynamic libraries on AmigaOS, at least up
15149       # to version 4, is to share data among multiple programs linked
15150       # with the same dynamic library.  Since this doesn't match the
15151       # behavior of shared libraries on other platforms, we can't use
15152       # them.
15153       ld_shlibs_F77=no
15154       ;;
15155
15156     beos*)
15157       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15158         allow_undefined_flag_F77=unsupported
15159         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15160         # support --undefined.  This deserves some investigation.  FIXME
15161         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15162       else
15163         ld_shlibs_F77=no
15164       fi
15165       ;;
15166
15167     cygwin* | mingw* | pw32*)
15168       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15169       # as there is no search path for DLLs.
15170       hardcode_libdir_flag_spec_F77='-L$libdir'
15171       allow_undefined_flag_F77=unsupported
15172       always_export_symbols_F77=no
15173       enable_shared_with_static_runtimes_F77=yes
15174       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15175
15176       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15177         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15178         # If the export-symbols file already is a .def file (1st line
15179         # is EXPORTS), use it as is; otherwise, prepend...
15180         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15181           cp $export_symbols $output_objdir/$soname.def;
15182         else
15183           echo EXPORTS > $output_objdir/$soname.def;
15184           cat $export_symbols >> $output_objdir/$soname.def;
15185         fi~
15186         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15187       else
15188         ld_shlibs_F77=no
15189       fi
15190       ;;
15191
15192     linux*)
15193       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15194         tmp_addflag=
15195         case $cc_basename,$host_cpu in
15196         pgcc*)                          # Portland Group C compiler
15197           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15198           tmp_addflag=' $pic_flag'
15199           ;;
15200         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15201           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15202           tmp_addflag=' $pic_flag -Mnomain' ;;
15203         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15204           tmp_addflag=' -i_dynamic' ;;
15205         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15206           tmp_addflag=' -i_dynamic -nofor_main' ;;
15207         ifc* | ifort*)                  # Intel Fortran compiler
15208           tmp_addflag=' -nofor_main' ;;
15209         esac
15210         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15211
15212         if test $supports_anon_versioning = yes; then
15213           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15214   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15215   $echo "local: *; };" >> $output_objdir/$libname.ver~
15216           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15217         fi
15218         link_all_deplibs_F77=no
15219       else
15220         ld_shlibs_F77=no
15221       fi
15222       ;;
15223
15224     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
15225       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15226         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15227         wlarc=
15228       else
15229         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15230         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15231       fi
15232       ;;
15233
15234     solaris* | sysv5*)
15235       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15236         ld_shlibs_F77=no
15237         cat <<EOF 1>&2
15238
15239 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15240 *** create shared libraries on Solaris systems.  Therefore, libtool
15241 *** is disabling shared libraries support.  We urge you to upgrade GNU
15242 *** binutils to release 2.9.1 or newer.  Another option is to modify
15243 *** your PATH or compiler configuration so that the native linker is
15244 *** used, and then restart.
15245
15246 EOF
15247       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15248         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15249         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15250       else
15251         ld_shlibs_F77=no
15252       fi
15253       ;;
15254
15255     sunos4*)
15256       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15257       wlarc=
15258       hardcode_direct_F77=yes
15259       hardcode_shlibpath_var_F77=no
15260       ;;
15261
15262     *)
15263       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15264         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15265         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15266       else
15267         ld_shlibs_F77=no
15268       fi
15269       ;;
15270     esac
15271
15272     if test "$ld_shlibs_F77" = no; then
15273       runpath_var=
15274       hardcode_libdir_flag_spec_F77=
15275       export_dynamic_flag_spec_F77=
15276       whole_archive_flag_spec_F77=
15277     fi
15278   else
15279     # PORTME fill in a description of your system's linker (not GNU ld)
15280     case $host_os in
15281     aix3*)
15282       allow_undefined_flag_F77=unsupported
15283       always_export_symbols_F77=yes
15284       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'
15285       # Note: this linker hardcodes the directories in LIBPATH if there
15286       # are no directories specified by -L.
15287       hardcode_minus_L_F77=yes
15288       if test "$GCC" = yes && test -z "$link_static_flag"; then
15289         # Neither direct hardcoding nor static linking is supported with a
15290         # broken collect2.
15291         hardcode_direct_F77=unsupported
15292       fi
15293       ;;
15294
15295     aix4* | aix5*)
15296       if test "$host_cpu" = ia64; then
15297         # On IA64, the linker does run time linking by default, so we don't
15298         # have to do anything special.
15299         aix_use_runtimelinking=no
15300         exp_sym_flag='-Bexport'
15301         no_entry_flag=""
15302       else
15303         # If we're using GNU nm, then we don't want the "-C" option.
15304         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15305         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15306           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'
15307         else
15308           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'
15309         fi
15310         aix_use_runtimelinking=no
15311
15312         # Test if we are trying to use run time linking or normal
15313         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15314         # need to do runtime linking.
15315         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15316           for ld_flag in $LDFLAGS; do
15317           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15318             aix_use_runtimelinking=yes
15319             break
15320           fi
15321           done
15322         esac
15323
15324         exp_sym_flag='-bexport'
15325         no_entry_flag='-bnoentry'
15326       fi
15327
15328       # When large executables or shared objects are built, AIX ld can
15329       # have problems creating the table of contents.  If linking a library
15330       # or program results in "error TOC overflow" add -mminimal-toc to
15331       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15332       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15333
15334       archive_cmds_F77=''
15335       hardcode_direct_F77=yes
15336       hardcode_libdir_separator_F77=':'
15337       link_all_deplibs_F77=yes
15338
15339       if test "$GCC" = yes; then
15340         case $host_os in aix4.[012]|aix4.[012].*)
15341         # We only want to do this on AIX 4.2 and lower, the check
15342         # below for broken collect2 doesn't work under 4.3+
15343           collect2name=`${CC} -print-prog-name=collect2`
15344           if test -f "$collect2name" && \
15345            strings "$collect2name" | grep resolve_lib_name >/dev/null
15346           then
15347           # We have reworked collect2
15348           hardcode_direct_F77=yes
15349           else
15350           # We have old collect2
15351           hardcode_direct_F77=unsupported
15352           # It fails to find uninstalled libraries when the uninstalled
15353           # path is not listed in the libpath.  Setting hardcode_minus_L
15354           # to unsupported forces relinking
15355           hardcode_minus_L_F77=yes
15356           hardcode_libdir_flag_spec_F77='-L$libdir'
15357           hardcode_libdir_separator_F77=
15358           fi
15359         esac
15360         shared_flag='-shared'
15361         if test "$aix_use_runtimelinking" = yes; then
15362           shared_flag="$shared_flag "'${wl}-G'
15363         fi
15364       else
15365         # not using gcc
15366         if test "$host_cpu" = ia64; then
15367         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15368         # chokes on -Wl,-G. The following line is correct:
15369           shared_flag='-G'
15370         else
15371         if test "$aix_use_runtimelinking" = yes; then
15372             shared_flag='${wl}-G'
15373           else
15374             shared_flag='${wl}-bM:SRE'
15375         fi
15376         fi
15377       fi
15378
15379       # It seems that -bexpall does not export symbols beginning with
15380       # underscore (_), so it is better to generate a list of symbols to export.
15381       always_export_symbols_F77=yes
15382       if test "$aix_use_runtimelinking" = yes; then
15383         # Warning - without using the other runtime loading flags (-brtl),
15384         # -berok will link without error, but may produce a broken library.
15385         allow_undefined_flag_F77='-berok'
15386        # Determine the default libpath from the value encoded in an empty executable.
15387        cat >conftest.$ac_ext <<_ACEOF
15388       program main
15389
15390       end
15391 _ACEOF
15392 rm -f conftest.$ac_objext conftest$ac_exeext
15393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15394   (eval $ac_link) 2>conftest.er1
15395   ac_status=$?
15396   grep -v '^ *+' conftest.er1 >conftest.err
15397   rm -f conftest.er1
15398   cat conftest.err >&5
15399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400   (exit $ac_status); } &&
15401          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
15402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15403   (eval $ac_try) 2>&5
15404   ac_status=$?
15405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406   (exit $ac_status); }; } &&
15407          { ac_try='test -s conftest$ac_exeext'
15408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15409   (eval $ac_try) 2>&5
15410   ac_status=$?
15411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412   (exit $ac_status); }; }; then
15413
15414 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15415 }'`
15416 # Check for a 64-bit object if we didn't find anything.
15417 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; }
15418 }'`; fi
15419 else
15420   echo "$as_me: failed program was:" >&5
15421 sed 's/^/| /' conftest.$ac_ext >&5
15422
15423 fi
15424 rm -f conftest.err conftest.$ac_objext \
15425       conftest$ac_exeext conftest.$ac_ext
15426 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15427
15428        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15429         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"
15430        else
15431         if test "$host_cpu" = ia64; then
15432           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15433           allow_undefined_flag_F77="-z nodefs"
15434           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"
15435         else
15436          # Determine the default libpath from the value encoded in an empty executable.
15437          cat >conftest.$ac_ext <<_ACEOF
15438       program main
15439
15440       end
15441 _ACEOF
15442 rm -f conftest.$ac_objext conftest$ac_exeext
15443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15444   (eval $ac_link) 2>conftest.er1
15445   ac_status=$?
15446   grep -v '^ *+' conftest.er1 >conftest.err
15447   rm -f conftest.er1
15448   cat conftest.err >&5
15449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450   (exit $ac_status); } &&
15451          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
15452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15453   (eval $ac_try) 2>&5
15454   ac_status=$?
15455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456   (exit $ac_status); }; } &&
15457          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
15463
15464 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15465 }'`
15466 # Check for a 64-bit object if we didn't find anything.
15467 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; }
15468 }'`; fi
15469 else
15470   echo "$as_me: failed program was:" >&5
15471 sed 's/^/| /' conftest.$ac_ext >&5
15472
15473 fi
15474 rm -f conftest.err conftest.$ac_objext \
15475       conftest$ac_exeext conftest.$ac_ext
15476 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15477
15478          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15479           # Warning - without using the other run time loading flags,
15480           # -berok will link without error, but may produce a broken library.
15481           no_undefined_flag_F77=' ${wl}-bernotok'
15482           allow_undefined_flag_F77=' ${wl}-berok'
15483           # -bexpall does not export symbols beginning with underscore (_)
15484           always_export_symbols_F77=yes
15485           # Exported symbols can be pulled into shared objects from archives
15486           whole_archive_flag_spec_F77=' '
15487           archive_cmds_need_lc_F77=yes
15488           # This is similar to how AIX traditionally builds its shared libraries.
15489           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'
15490         fi
15491       fi
15492       ;;
15493
15494     amigaos*)
15495       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)'
15496       hardcode_libdir_flag_spec_F77='-L$libdir'
15497       hardcode_minus_L_F77=yes
15498       # see comment about different semantics on the GNU ld section
15499       ld_shlibs_F77=no
15500       ;;
15501
15502     bsdi[45]*)
15503       export_dynamic_flag_spec_F77=-rdynamic
15504       ;;
15505
15506     cygwin* | mingw* | pw32*)
15507       # When not using gcc, we currently assume that we are using
15508       # Microsoft Visual C++.
15509       # hardcode_libdir_flag_spec is actually meaningless, as there is
15510       # no search path for DLLs.
15511       hardcode_libdir_flag_spec_F77=' '
15512       allow_undefined_flag_F77=unsupported
15513       # Tell ltmain to make .lib files, not .a files.
15514       libext=lib
15515       # Tell ltmain to make .dll files, not .so files.
15516       shrext_cmds=".dll"
15517       # FIXME: Setting linknames here is a bad hack.
15518       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15519       # The linker will automatically build a .lib file if we build a DLL.
15520       old_archive_From_new_cmds_F77='true'
15521       # FIXME: Should let the user specify the lib program.
15522       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15523       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15524       enable_shared_with_static_runtimes_F77=yes
15525       ;;
15526
15527     darwin* | rhapsody*)
15528       case $host_os in
15529         rhapsody* | darwin1.[012])
15530          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15531          ;;
15532        *) # Darwin 1.3 on
15533          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15534            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15535          else
15536            case ${MACOSX_DEPLOYMENT_TARGET} in
15537              10.[012])
15538                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15539                ;;
15540              10.*)
15541                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15542                ;;
15543            esac
15544          fi
15545          ;;
15546       esac
15547       archive_cmds_need_lc_F77=no
15548       hardcode_direct_F77=no
15549       hardcode_automatic_F77=yes
15550       hardcode_shlibpath_var_F77=unsupported
15551       whole_archive_flag_spec_F77=''
15552       link_all_deplibs_F77=yes
15553     if test "$GCC" = yes ; then
15554         output_verbose_link_cmd='echo'
15555         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15556       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15557       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15558       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15559       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}'
15560     else
15561       case $cc_basename in
15562         xlc*)
15563          output_verbose_link_cmd='echo'
15564          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15565          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15566           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15567          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15568           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}'
15569           ;;
15570        *)
15571          ld_shlibs_F77=no
15572           ;;
15573       esac
15574     fi
15575       ;;
15576
15577     dgux*)
15578       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15579       hardcode_libdir_flag_spec_F77='-L$libdir'
15580       hardcode_shlibpath_var_F77=no
15581       ;;
15582
15583     freebsd1*)
15584       ld_shlibs_F77=no
15585       ;;
15586
15587     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15588     # support.  Future versions do this automatically, but an explicit c++rt0.o
15589     # does not break anything, and helps significantly (at the cost of a little
15590     # extra space).
15591     freebsd2.2*)
15592       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15593       hardcode_libdir_flag_spec_F77='-R$libdir'
15594       hardcode_direct_F77=yes
15595       hardcode_shlibpath_var_F77=no
15596       ;;
15597
15598     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15599     freebsd2*)
15600       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15601       hardcode_direct_F77=yes
15602       hardcode_minus_L_F77=yes
15603       hardcode_shlibpath_var_F77=no
15604       ;;
15605
15606     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15607     freebsd* | kfreebsd*-gnu | dragonfly*)
15608       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15609       hardcode_libdir_flag_spec_F77='-R$libdir'
15610       hardcode_direct_F77=yes
15611       hardcode_shlibpath_var_F77=no
15612       ;;
15613
15614     hpux9*)
15615       if test "$GCC" = yes; then
15616         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'
15617       else
15618         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'
15619       fi
15620       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15621       hardcode_libdir_separator_F77=:
15622       hardcode_direct_F77=yes
15623
15624       # hardcode_minus_L: Not really in the search PATH,
15625       # but as the default location of the library.
15626       hardcode_minus_L_F77=yes
15627       export_dynamic_flag_spec_F77='${wl}-E'
15628       ;;
15629
15630     hpux10* | hpux11*)
15631       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15632         case $host_cpu in
15633         hppa*64*|ia64*)
15634           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15635           ;;
15636         *)
15637           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15638           ;;
15639         esac
15640       else
15641         case $host_cpu in
15642         hppa*64*|ia64*)
15643           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15644           ;;
15645         *)
15646           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15647           ;;
15648         esac
15649       fi
15650       if test "$with_gnu_ld" = no; then
15651         case $host_cpu in
15652         hppa*64*)
15653           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15654           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15655           hardcode_libdir_separator_F77=:
15656           hardcode_direct_F77=no
15657           hardcode_shlibpath_var_F77=no
15658           ;;
15659         ia64*)
15660           hardcode_libdir_flag_spec_F77='-L$libdir'
15661           hardcode_direct_F77=no
15662           hardcode_shlibpath_var_F77=no
15663
15664           # hardcode_minus_L: Not really in the search PATH,
15665           # but as the default location of the library.
15666           hardcode_minus_L_F77=yes
15667           ;;
15668         *)
15669           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15670           hardcode_libdir_separator_F77=:
15671           hardcode_direct_F77=yes
15672           export_dynamic_flag_spec_F77='${wl}-E'
15673
15674           # hardcode_minus_L: Not really in the search PATH,
15675           # but as the default location of the library.
15676           hardcode_minus_L_F77=yes
15677           ;;
15678         esac
15679       fi
15680       ;;
15681
15682     irix5* | irix6* | nonstopux*)
15683       if test "$GCC" = yes; then
15684         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'
15685       else
15686         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'
15687         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15688       fi
15689       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15690       hardcode_libdir_separator_F77=:
15691       link_all_deplibs_F77=yes
15692       ;;
15693
15694     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
15695       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15696         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15697       else
15698         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15699       fi
15700       hardcode_libdir_flag_spec_F77='-R$libdir'
15701       hardcode_direct_F77=yes
15702       hardcode_shlibpath_var_F77=no
15703       ;;
15704
15705     newsos6)
15706       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15707       hardcode_direct_F77=yes
15708       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15709       hardcode_libdir_separator_F77=:
15710       hardcode_shlibpath_var_F77=no
15711       ;;
15712
15713     openbsd*)
15714       hardcode_direct_F77=yes
15715       hardcode_shlibpath_var_F77=no
15716       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15717         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15718         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15719         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15720         export_dynamic_flag_spec_F77='${wl}-E'
15721       else
15722        case $host_os in
15723          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15724            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15725            hardcode_libdir_flag_spec_F77='-R$libdir'
15726            ;;
15727          *)
15728            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15729            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15730            ;;
15731        esac
15732       fi
15733       ;;
15734
15735     os2*)
15736       hardcode_libdir_flag_spec_F77='-L$libdir'
15737       hardcode_minus_L_F77=yes
15738       allow_undefined_flag_F77=unsupported
15739       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'
15740       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15741       ;;
15742
15743     osf3*)
15744       if test "$GCC" = yes; then
15745         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15746         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'
15747       else
15748         allow_undefined_flag_F77=' -expect_unresolved \*'
15749         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'
15750       fi
15751       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15752       hardcode_libdir_separator_F77=:
15753       ;;
15754
15755     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15756       if test "$GCC" = yes; then
15757         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15758         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'
15759         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15760       else
15761         allow_undefined_flag_F77=' -expect_unresolved \*'
15762         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'
15763         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~
15764         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15765
15766         # Both c and cxx compiler support -rpath directly
15767         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15768       fi
15769       hardcode_libdir_separator_F77=:
15770       ;;
15771
15772     sco3.2v5*)
15773       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15774       hardcode_shlibpath_var_F77=no
15775       export_dynamic_flag_spec_F77='${wl}-Bexport'
15776       runpath_var=LD_RUN_PATH
15777       hardcode_runpath_var=yes
15778       ;;
15779
15780     solaris*)
15781       no_undefined_flag_F77=' -z text'
15782       if test "$GCC" = yes; then
15783         wlarc='${wl}'
15784         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15785         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15786           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15787       else
15788         wlarc=''
15789         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15790         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15791         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15792       fi
15793       hardcode_libdir_flag_spec_F77='-R$libdir'
15794       hardcode_shlibpath_var_F77=no
15795       case $host_os in
15796       solaris2.[0-5] | solaris2.[0-5].*) ;;
15797       *)
15798         # The compiler driver will combine linker options so we
15799         # cannot just pass the convience library names through
15800         # without $wl, iff we do not link with $LD.
15801         # Luckily, gcc supports the same syntax we need for Sun Studio.
15802         # Supported since Solaris 2.6 (maybe 2.5.1?)
15803         case $wlarc in
15804         '')
15805           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15806         *)
15807           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15808         esac ;;
15809       esac
15810       link_all_deplibs_F77=yes
15811       ;;
15812
15813     sunos4*)
15814       if test "x$host_vendor" = xsequent; then
15815         # Use $CC to link under sequent, because it throws in some extra .o
15816         # files that make .init and .fini sections work.
15817         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15818       else
15819         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15820       fi
15821       hardcode_libdir_flag_spec_F77='-L$libdir'
15822       hardcode_direct_F77=yes
15823       hardcode_minus_L_F77=yes
15824       hardcode_shlibpath_var_F77=no
15825       ;;
15826
15827     sysv4)
15828       case $host_vendor in
15829         sni)
15830           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15831           hardcode_direct_F77=yes # is this really true???
15832         ;;
15833         siemens)
15834           ## LD is ld it makes a PLAMLIB
15835           ## CC just makes a GrossModule.
15836           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15837           reload_cmds_F77='$CC -r -o $output$reload_objs'
15838           hardcode_direct_F77=no
15839         ;;
15840         motorola)
15841           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15842           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15843         ;;
15844       esac
15845       runpath_var='LD_RUN_PATH'
15846       hardcode_shlibpath_var_F77=no
15847       ;;
15848
15849     sysv4.3*)
15850       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15851       hardcode_shlibpath_var_F77=no
15852       export_dynamic_flag_spec_F77='-Bexport'
15853       ;;
15854
15855     sysv4*MP*)
15856       if test -d /usr/nec; then
15857         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15858         hardcode_shlibpath_var_F77=no
15859         runpath_var=LD_RUN_PATH
15860         hardcode_runpath_var=yes
15861         ld_shlibs_F77=yes
15862       fi
15863       ;;
15864
15865     sysv4.2uw2*)
15866       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15867       hardcode_direct_F77=yes
15868       hardcode_minus_L_F77=no
15869       hardcode_shlibpath_var_F77=no
15870       hardcode_runpath_var=yes
15871       runpath_var=LD_RUN_PATH
15872       ;;
15873
15874    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
15875       no_undefined_flag_F77='${wl}-z ${wl}text'
15876       if test "$GCC" = yes; then
15877         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15878       else
15879         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15880       fi
15881       runpath_var='LD_RUN_PATH'
15882       hardcode_shlibpath_var_F77=no
15883       ;;
15884
15885     sysv5*)
15886       no_undefined_flag_F77=' -z text'
15887       # $CC -shared without GNU ld will not create a library from C++
15888       # object files and a static libstdc++, better avoid it by now
15889       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15890       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15891                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15892       hardcode_libdir_flag_spec_F77=
15893       hardcode_shlibpath_var_F77=no
15894       runpath_var='LD_RUN_PATH'
15895       ;;
15896
15897     uts4*)
15898       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15899       hardcode_libdir_flag_spec_F77='-L$libdir'
15900       hardcode_shlibpath_var_F77=no
15901       ;;
15902
15903     *)
15904       ld_shlibs_F77=no
15905       ;;
15906     esac
15907   fi
15908
15909 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15910 echo "${ECHO_T}$ld_shlibs_F77" >&6
15911 test "$ld_shlibs_F77" = no && can_build_shared=no
15912
15913 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15914 if test "$GCC" = yes; then
15915   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15916 fi
15917
15918 #
15919 # Do we need to explicitly link libc?
15920 #
15921 case "x$archive_cmds_need_lc_F77" in
15922 x|xyes)
15923   # Assume -lc should be added
15924   archive_cmds_need_lc_F77=yes
15925
15926   if test "$enable_shared" = yes && test "$GCC" = yes; then
15927     case $archive_cmds_F77 in
15928     *'~'*)
15929       # FIXME: we may have to deal with multi-command sequences.
15930       ;;
15931     '$CC '*)
15932       # Test whether the compiler implicitly links with -lc since on some
15933       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15934       # to ld, don't add -lc before -lgcc.
15935       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15936 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15937       $rm conftest*
15938       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15939
15940       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15941   (eval $ac_compile) 2>&5
15942   ac_status=$?
15943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15944   (exit $ac_status); } 2>conftest.err; then
15945         soname=conftest
15946         lib=conftest
15947         libobjs=conftest.$ac_objext
15948         deplibs=
15949         wl=$lt_prog_compiler_wl_F77
15950         compiler_flags=-v
15951         linker_flags=-v
15952         verstring=
15953         output_objdir=.
15954         libname=conftest
15955         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15956         allow_undefined_flag_F77=
15957         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15958   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15959   ac_status=$?
15960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961   (exit $ac_status); }
15962         then
15963           archive_cmds_need_lc_F77=no
15964         else
15965           archive_cmds_need_lc_F77=yes
15966         fi
15967         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15968       else
15969         cat conftest.err 1>&5
15970       fi
15971       $rm conftest*
15972       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15973 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15974       ;;
15975     esac
15976   fi
15977   ;;
15978 esac
15979
15980 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15981 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15982 library_names_spec=
15983 libname_spec='lib$name'
15984 soname_spec=
15985 shrext_cmds=".so"
15986 postinstall_cmds=
15987 postuninstall_cmds=
15988 finish_cmds=
15989 finish_eval=
15990 shlibpath_var=
15991 shlibpath_overrides_runpath=unknown
15992 version_type=none
15993 dynamic_linker="$host_os ld.so"
15994 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15995 if test "$GCC" = yes; then
15996   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15997   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15998     # if the path contains ";" then we assume it to be the separator
15999     # otherwise default to the standard path separator (i.e. ":") - it is
16000     # assumed that no part of a normal pathname contains ";" but that should
16001     # okay in the real world where ";" in dirpaths is itself problematic.
16002     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16003   else
16004     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16005   fi
16006 else
16007   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16008 fi
16009 need_lib_prefix=unknown
16010 hardcode_into_libs=no
16011
16012 # when you set need_version to no, make sure it does not cause -set_version
16013 # flags to be left without arguments
16014 need_version=unknown
16015
16016 case $host_os in
16017 aix3*)
16018   version_type=linux
16019   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16020   shlibpath_var=LIBPATH
16021
16022   # AIX 3 has no versioning support, so we append a major version to the name.
16023   soname_spec='${libname}${release}${shared_ext}$major'
16024   ;;
16025
16026 aix4* | aix5*)
16027   version_type=linux
16028   need_lib_prefix=no
16029   need_version=no
16030   hardcode_into_libs=yes
16031   if test "$host_cpu" = ia64; then
16032     # AIX 5 supports IA64
16033     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16034     shlibpath_var=LD_LIBRARY_PATH
16035   else
16036     # With GCC up to 2.95.x, collect2 would create an import file
16037     # for dependence libraries.  The import file would start with
16038     # the line `#! .'.  This would cause the generated library to
16039     # depend on `.', always an invalid library.  This was fixed in
16040     # development snapshots of GCC prior to 3.0.
16041     case $host_os in
16042       aix4 | aix4.[01] | aix4.[01].*)
16043       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16044            echo ' yes '
16045            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16046         :
16047       else
16048         can_build_shared=no
16049       fi
16050       ;;
16051     esac
16052     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16053     # soname into executable. Probably we can add versioning support to
16054     # collect2, so additional links can be useful in future.
16055     if test "$aix_use_runtimelinking" = yes; then
16056       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16057       # instead of lib<name>.a to let people know that these are not
16058       # typical AIX shared libraries.
16059       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16060     else
16061       # We preserve .a as extension for shared libraries through AIX4.2
16062       # and later when we are not doing run time linking.
16063       library_names_spec='${libname}${release}.a $libname.a'
16064       soname_spec='${libname}${release}${shared_ext}$major'
16065     fi
16066     shlibpath_var=LIBPATH
16067   fi
16068   ;;
16069
16070 amigaos*)
16071   library_names_spec='$libname.ixlibrary $libname.a'
16072   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16073   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'
16074   ;;
16075
16076 beos*)
16077   library_names_spec='${libname}${shared_ext}'
16078   dynamic_linker="$host_os ld.so"
16079   shlibpath_var=LIBRARY_PATH
16080   ;;
16081
16082 bsdi[45]*)
16083   version_type=linux
16084   need_version=no
16085   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16086   soname_spec='${libname}${release}${shared_ext}$major'
16087   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16088   shlibpath_var=LD_LIBRARY_PATH
16089   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16090   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16091   # the default ld.so.conf also contains /usr/contrib/lib and
16092   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16093   # libtool to hard-code these into programs
16094   ;;
16095
16096 cygwin* | mingw* | pw32*)
16097   version_type=windows
16098   shrext_cmds=".dll"
16099   need_version=no
16100   need_lib_prefix=no
16101
16102   case $GCC,$host_os in
16103   yes,cygwin* | yes,mingw* | yes,pw32*)
16104     library_names_spec='$libname.dll.a'
16105     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16106     postinstall_cmds='base_file=`basename \${file}`~
16107       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16108       dldir=$destdir/`dirname \$dlpath`~
16109       test -d \$dldir || mkdir -p \$dldir~
16110       $install_prog $dir/$dlname \$dldir/$dlname~
16111       chmod a+x \$dldir/$dlname'
16112     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16113       dlpath=$dir/\$dldll~
16114        $rm \$dlpath'
16115     shlibpath_overrides_runpath=yes
16116
16117     case $host_os in
16118     cygwin*)
16119       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16120       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16121       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16122       ;;
16123     mingw*)
16124       # MinGW DLLs use traditional 'lib' prefix
16125       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16126       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16127       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16128         # It is most probably a Windows format PATH printed by
16129         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16130         # path with ; separators, and with drive letters. We can handle the
16131         # drive letters (cygwin fileutils understands them), so leave them,
16132         # especially as we might pass files found there to a mingw objdump,
16133         # which wouldn't understand a cygwinified path. Ahh.
16134         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16135       else
16136         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16137       fi
16138       ;;
16139     pw32*)
16140       # pw32 DLLs use 'pw' prefix rather than 'lib'
16141       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16142       ;;
16143     esac
16144     ;;
16145
16146   *)
16147     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16148     ;;
16149   esac
16150   dynamic_linker='Win32 ld.exe'
16151   # FIXME: first we should search . and the directory the executable is in
16152   shlibpath_var=PATH
16153   ;;
16154
16155 darwin* | rhapsody*)
16156   dynamic_linker="$host_os dyld"
16157   version_type=darwin
16158   need_lib_prefix=no
16159   need_version=no
16160   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16161   soname_spec='${libname}${release}${major}$shared_ext'
16162   shlibpath_overrides_runpath=yes
16163   shlibpath_var=DYLD_LIBRARY_PATH
16164   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16165   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16166   if test "$GCC" = yes; then
16167     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"`
16168   else
16169     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16170   fi
16171   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16172   ;;
16173
16174 dgux*)
16175   version_type=linux
16176   need_lib_prefix=no
16177   need_version=no
16178   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16179   soname_spec='${libname}${release}${shared_ext}$major'
16180   shlibpath_var=LD_LIBRARY_PATH
16181   ;;
16182
16183 freebsd1*)
16184   dynamic_linker=no
16185   ;;
16186
16187 kfreebsd*-gnu)
16188   version_type=linux
16189   need_lib_prefix=no
16190   need_version=no
16191   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16192   soname_spec='${libname}${release}${shared_ext}$major'
16193   shlibpath_var=LD_LIBRARY_PATH
16194   shlibpath_overrides_runpath=no
16195   hardcode_into_libs=yes
16196   dynamic_linker='GNU ld.so'
16197   ;;
16198
16199 freebsd* | dragonfly*)
16200   # DragonFly does not have aout.  When/if they implement a new
16201   # versioning mechanism, adjust this.
16202   if test -x /usr/bin/objformat; then
16203     objformat=`/usr/bin/objformat`
16204   else
16205     case $host_os in
16206     freebsd[123]*) objformat=aout ;;
16207     *) objformat=elf ;;
16208     esac
16209   fi
16210   version_type=freebsd-$objformat
16211   case $version_type in
16212     freebsd-elf*)
16213       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16214       need_version=no
16215       need_lib_prefix=no
16216       ;;
16217     freebsd-*)
16218       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16219       need_version=yes
16220       ;;
16221   esac
16222   shlibpath_var=LD_LIBRARY_PATH
16223   case $host_os in
16224   freebsd2*)
16225     shlibpath_overrides_runpath=yes
16226     ;;
16227   freebsd3.[01]* | freebsdelf3.[01]*)
16228     shlibpath_overrides_runpath=yes
16229     hardcode_into_libs=yes
16230     ;;
16231   *) # from 3.2 on
16232     shlibpath_overrides_runpath=no
16233     hardcode_into_libs=yes
16234     ;;
16235   esac
16236   ;;
16237
16238 gnu*)
16239   version_type=linux
16240   need_lib_prefix=no
16241   need_version=no
16242   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16243   soname_spec='${libname}${release}${shared_ext}$major'
16244   shlibpath_var=LD_LIBRARY_PATH
16245   hardcode_into_libs=yes
16246   ;;
16247
16248 hpux9* | hpux10* | hpux11*)
16249   # Give a soname corresponding to the major version so that dld.sl refuses to
16250   # link against other versions.
16251   version_type=sunos
16252   need_lib_prefix=no
16253   need_version=no
16254   case $host_cpu in
16255   ia64*)
16256     shrext_cmds='.so'
16257     hardcode_into_libs=yes
16258     dynamic_linker="$host_os dld.so"
16259     shlibpath_var=LD_LIBRARY_PATH
16260     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16261     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16262     soname_spec='${libname}${release}${shared_ext}$major'
16263     if test "X$HPUX_IA64_MODE" = X32; then
16264       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16265     else
16266       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16267     fi
16268     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16269     ;;
16270    hppa*64*)
16271      shrext_cmds='.sl'
16272      hardcode_into_libs=yes
16273      dynamic_linker="$host_os dld.sl"
16274      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16275      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16279      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16280      ;;
16281    *)
16282     shrext_cmds='.sl'
16283     dynamic_linker="$host_os dld.sl"
16284     shlibpath_var=SHLIB_PATH
16285     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16286     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16287     soname_spec='${libname}${release}${shared_ext}$major'
16288     ;;
16289   esac
16290   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16291   postinstall_cmds='chmod 555 $lib'
16292   ;;
16293
16294 irix5* | irix6* | nonstopux*)
16295   case $host_os in
16296     nonstopux*) version_type=nonstopux ;;
16297     *)
16298         if test "$lt_cv_prog_gnu_ld" = yes; then
16299                 version_type=linux
16300         else
16301                 version_type=irix
16302         fi ;;
16303   esac
16304   need_lib_prefix=no
16305   need_version=no
16306   soname_spec='${libname}${release}${shared_ext}$major'
16307   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16308   case $host_os in
16309   irix5* | nonstopux*)
16310     libsuff= shlibsuff=
16311     ;;
16312   *)
16313     case $LD in # libtool.m4 will add one of these switches to LD
16314     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16315       libsuff= shlibsuff= libmagic=32-bit;;
16316     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16317       libsuff=32 shlibsuff=N32 libmagic=N32;;
16318     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16319       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16320     *) libsuff= shlibsuff= libmagic=never-match;;
16321     esac
16322     ;;
16323   esac
16324   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16325   shlibpath_overrides_runpath=no
16326   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16327   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16328   hardcode_into_libs=yes
16329   ;;
16330
16331 # No shared lib support for Linux oldld, aout, or coff.
16332 linux*oldld* | linux*aout* | linux*coff*)
16333   dynamic_linker=no
16334   ;;
16335
16336 # This must be Linux ELF.
16337 linux*)
16338   version_type=linux
16339   need_lib_prefix=no
16340   need_version=no
16341   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16342   soname_spec='${libname}${release}${shared_ext}$major'
16343   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16344   shlibpath_var=LD_LIBRARY_PATH
16345   shlibpath_overrides_runpath=no
16346   # This implies no fast_install, which is unacceptable.
16347   # Some rework will be needed to allow for fast_install
16348   # before this can be enabled.
16349   hardcode_into_libs=yes
16350
16351   # Append ld.so.conf contents to the search path
16352   if test -f /etc/ld.so.conf; then
16353     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16354     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16355   fi
16356
16357   # We used to test for /lib/ld.so.1 and disable shared libraries on
16358   # powerpc, because MkLinux only supported shared libraries with the
16359   # GNU dynamic linker.  Since this was broken with cross compilers,
16360   # most powerpc-linux boxes support dynamic linking these days and
16361   # people can always --disable-shared, the test was removed, and we
16362   # assume the GNU/Linux dynamic linker is in use.
16363   dynamic_linker='GNU/Linux ld.so'
16364   ;;
16365
16366 netbsdelf*-gnu)
16367   version_type=linux
16368   need_lib_prefix=no
16369   need_version=no
16370   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16371   soname_spec='${libname}${release}${shared_ext}$major'
16372   shlibpath_var=LD_LIBRARY_PATH
16373   shlibpath_overrides_runpath=no
16374   hardcode_into_libs=yes
16375   dynamic_linker='NetBSD ld.elf_so'
16376   ;;
16377
16378 knetbsd*-gnu)
16379   version_type=linux
16380   need_lib_prefix=no
16381   need_version=no
16382   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16383   soname_spec='${libname}${release}${shared_ext}$major'
16384   shlibpath_var=LD_LIBRARY_PATH
16385   shlibpath_overrides_runpath=no
16386   hardcode_into_libs=yes
16387   dynamic_linker='GNU ld.so'
16388   ;;
16389
16390 netbsd*)
16391   version_type=sunos
16392   need_lib_prefix=no
16393   need_version=no
16394   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16395     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16396     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16397     dynamic_linker='NetBSD (a.out) ld.so'
16398   else
16399     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16400     soname_spec='${libname}${release}${shared_ext}$major'
16401     dynamic_linker='NetBSD ld.elf_so'
16402   fi
16403   shlibpath_var=LD_LIBRARY_PATH
16404   shlibpath_overrides_runpath=yes
16405   hardcode_into_libs=yes
16406   ;;
16407
16408 newsos6)
16409   version_type=linux
16410   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16411   shlibpath_var=LD_LIBRARY_PATH
16412   shlibpath_overrides_runpath=yes
16413   ;;
16414
16415 nto-qnx*)
16416   version_type=linux
16417   need_lib_prefix=no
16418   need_version=no
16419   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16420   soname_spec='${libname}${release}${shared_ext}$major'
16421   shlibpath_var=LD_LIBRARY_PATH
16422   shlibpath_overrides_runpath=yes
16423   ;;
16424
16425 openbsd*)
16426   version_type=sunos
16427   need_lib_prefix=no
16428   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16429   case $host_os in
16430     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16431     *)                         need_version=no  ;;
16432   esac
16433   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16434   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16435   shlibpath_var=LD_LIBRARY_PATH
16436   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16437     case $host_os in
16438       openbsd2.[89] | openbsd2.[89].*)
16439         shlibpath_overrides_runpath=no
16440         ;;
16441       *)
16442         shlibpath_overrides_runpath=yes
16443         ;;
16444       esac
16445   else
16446     shlibpath_overrides_runpath=yes
16447   fi
16448   ;;
16449
16450 os2*)
16451   libname_spec='$name'
16452   shrext_cmds=".dll"
16453   need_lib_prefix=no
16454   library_names_spec='$libname${shared_ext} $libname.a'
16455   dynamic_linker='OS/2 ld.exe'
16456   shlibpath_var=LIBPATH
16457   ;;
16458
16459 osf3* | osf4* | osf5*)
16460   version_type=osf
16461   need_lib_prefix=no
16462   need_version=no
16463   soname_spec='${libname}${release}${shared_ext}$major'
16464   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16465   shlibpath_var=LD_LIBRARY_PATH
16466   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16467   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16468   ;;
16469
16470 sco3.2v5*)
16471   version_type=osf
16472   soname_spec='${libname}${release}${shared_ext}$major'
16473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16474   shlibpath_var=LD_LIBRARY_PATH
16475   ;;
16476
16477 solaris*)
16478   version_type=linux
16479   need_lib_prefix=no
16480   need_version=no
16481   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16482   soname_spec='${libname}${release}${shared_ext}$major'
16483   shlibpath_var=LD_LIBRARY_PATH
16484   shlibpath_overrides_runpath=yes
16485   hardcode_into_libs=yes
16486   # ldd complains unless libraries are executable
16487   postinstall_cmds='chmod +x $lib'
16488   ;;
16489
16490 sunos4*)
16491   version_type=sunos
16492   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16493   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16494   shlibpath_var=LD_LIBRARY_PATH
16495   shlibpath_overrides_runpath=yes
16496   if test "$with_gnu_ld" = yes; then
16497     need_lib_prefix=no
16498   fi
16499   need_version=yes
16500   ;;
16501
16502 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16503   version_type=linux
16504   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16505   soname_spec='${libname}${release}${shared_ext}$major'
16506   shlibpath_var=LD_LIBRARY_PATH
16507   case $host_vendor in
16508     sni)
16509       shlibpath_overrides_runpath=no
16510       need_lib_prefix=no
16511       export_dynamic_flag_spec='${wl}-Blargedynsym'
16512       runpath_var=LD_RUN_PATH
16513       ;;
16514     siemens)
16515       need_lib_prefix=no
16516       ;;
16517     motorola)
16518       need_lib_prefix=no
16519       need_version=no
16520       shlibpath_overrides_runpath=no
16521       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16522       ;;
16523   esac
16524   ;;
16525
16526 sysv4*MP*)
16527   if test -d /usr/nec ;then
16528     version_type=linux
16529     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16530     soname_spec='$libname${shared_ext}.$major'
16531     shlibpath_var=LD_LIBRARY_PATH
16532   fi
16533   ;;
16534
16535 uts4*)
16536   version_type=linux
16537   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16538   soname_spec='${libname}${release}${shared_ext}$major'
16539   shlibpath_var=LD_LIBRARY_PATH
16540   ;;
16541
16542 *)
16543   dynamic_linker=no
16544   ;;
16545 esac
16546 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16547 echo "${ECHO_T}$dynamic_linker" >&6
16548 test "$dynamic_linker" = no && can_build_shared=no
16549
16550 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16551 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16552 hardcode_action_F77=
16553 if test -n "$hardcode_libdir_flag_spec_F77" || \
16554    test -n "$runpath_var_F77" || \
16555    test "X$hardcode_automatic_F77" = "Xyes" ; then
16556
16557   # We can hardcode non-existant directories.
16558   if test "$hardcode_direct_F77" != no &&
16559      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16560      # have to relink, otherwise we might link with an installed library
16561      # when we should be linking with a yet-to-be-installed one
16562      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16563      test "$hardcode_minus_L_F77" != no; then
16564     # Linking always hardcodes the temporary library directory.
16565     hardcode_action_F77=relink
16566   else
16567     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16568     hardcode_action_F77=immediate
16569   fi
16570 else
16571   # We cannot hardcode anything, or else we can only hardcode existing
16572   # directories.
16573   hardcode_action_F77=unsupported
16574 fi
16575 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16576 echo "${ECHO_T}$hardcode_action_F77" >&6
16577
16578 if test "$hardcode_action_F77" = relink; then
16579   # Fast installation is not supported
16580   enable_fast_install=no
16581 elif test "$shlibpath_overrides_runpath" = yes ||
16582      test "$enable_shared" = no; then
16583   # Fast installation is not necessary
16584   enable_fast_install=needless
16585 fi
16586
16587 striplib=
16588 old_striplib=
16589 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16590 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16591 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16592   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16593   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16594   echo "$as_me:$LINENO: result: yes" >&5
16595 echo "${ECHO_T}yes" >&6
16596 else
16597 # FIXME - insert some real tests, host_os isn't really good enough
16598   case $host_os in
16599    darwin*)
16600        if test -n "$STRIP" ; then
16601          striplib="$STRIP -x"
16602          echo "$as_me:$LINENO: result: yes" >&5
16603 echo "${ECHO_T}yes" >&6
16604        else
16605   echo "$as_me:$LINENO: result: no" >&5
16606 echo "${ECHO_T}no" >&6
16607 fi
16608        ;;
16609    *)
16610   echo "$as_me:$LINENO: result: no" >&5
16611 echo "${ECHO_T}no" >&6
16612     ;;
16613   esac
16614 fi
16615
16616
16617
16618 # The else clause should only fire when bootstrapping the
16619 # libtool distribution, otherwise you forgot to ship ltmain.sh
16620 # with your package, and you will get complaints that there are
16621 # no rules to generate ltmain.sh.
16622 if test -f "$ltmain"; then
16623   # See if we are running on zsh, and set the options which allow our commands through
16624   # without removal of \ escapes.
16625   if test -n "${ZSH_VERSION+set}" ; then
16626     setopt NO_GLOB_SUBST
16627   fi
16628   # Now quote all the things that may contain metacharacters while being
16629   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16630   # variables and quote the copies for generation of the libtool script.
16631   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16632     SED SHELL STRIP \
16633     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16634     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16635     deplibs_check_method reload_flag reload_cmds need_locks \
16636     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16637     lt_cv_sys_global_symbol_to_c_name_address \
16638     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16639     old_postinstall_cmds old_postuninstall_cmds \
16640     compiler_F77 \
16641     CC_F77 \
16642     LD_F77 \
16643     lt_prog_compiler_wl_F77 \
16644     lt_prog_compiler_pic_F77 \
16645     lt_prog_compiler_static_F77 \
16646     lt_prog_compiler_no_builtin_flag_F77 \
16647     export_dynamic_flag_spec_F77 \
16648     thread_safe_flag_spec_F77 \
16649     whole_archive_flag_spec_F77 \
16650     enable_shared_with_static_runtimes_F77 \
16651     old_archive_cmds_F77 \
16652     old_archive_from_new_cmds_F77 \
16653     predep_objects_F77 \
16654     postdep_objects_F77 \
16655     predeps_F77 \
16656     postdeps_F77 \
16657     compiler_lib_search_path_F77 \
16658     archive_cmds_F77 \
16659     archive_expsym_cmds_F77 \
16660     postinstall_cmds_F77 \
16661     postuninstall_cmds_F77 \
16662     old_archive_from_expsyms_cmds_F77 \
16663     allow_undefined_flag_F77 \
16664     no_undefined_flag_F77 \
16665     export_symbols_cmds_F77 \
16666     hardcode_libdir_flag_spec_F77 \
16667     hardcode_libdir_flag_spec_ld_F77 \
16668     hardcode_libdir_separator_F77 \
16669     hardcode_automatic_F77 \
16670     module_cmds_F77 \
16671     module_expsym_cmds_F77 \
16672     lt_cv_prog_compiler_c_o_F77 \
16673     exclude_expsyms_F77 \
16674     include_expsyms_F77; do
16675
16676     case $var in
16677     old_archive_cmds_F77 | \
16678     old_archive_from_new_cmds_F77 | \
16679     archive_cmds_F77 | \
16680     archive_expsym_cmds_F77 | \
16681     module_cmds_F77 | \
16682     module_expsym_cmds_F77 | \
16683     old_archive_from_expsyms_cmds_F77 | \
16684     export_symbols_cmds_F77 | \
16685     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16686     postinstall_cmds | postuninstall_cmds | \
16687     old_postinstall_cmds | old_postuninstall_cmds | \
16688     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16689       # Double-quote double-evaled strings.
16690       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16691       ;;
16692     *)
16693       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16694       ;;
16695     esac
16696   done
16697
16698   case $lt_echo in
16699   *'\$0 --fallback-echo"')
16700     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16701     ;;
16702   esac
16703
16704 cfgfile="$ofile"
16705
16706   cat <<__EOF__ >> "$cfgfile"
16707 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16708
16709 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16710
16711 # Shell to use when invoking shell scripts.
16712 SHELL=$lt_SHELL
16713
16714 # Whether or not to build shared libraries.
16715 build_libtool_libs=$enable_shared
16716
16717 # Whether or not to build static libraries.
16718 build_old_libs=$enable_static
16719
16720 # Whether or not to add -lc for building shared libraries.
16721 build_libtool_need_lc=$archive_cmds_need_lc_F77
16722
16723 # Whether or not to disallow shared libs when runtime libs are static
16724 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16725
16726 # Whether or not to optimize for fast installation.
16727 fast_install=$enable_fast_install
16728
16729 # The host system.
16730 host_alias=$host_alias
16731 host=$host
16732 host_os=$host_os
16733
16734 # The build system.
16735 build_alias=$build_alias
16736 build=$build
16737 build_os=$build_os
16738
16739 # An echo program that does not interpret backslashes.
16740 echo=$lt_echo
16741
16742 # The archiver.
16743 AR=$lt_AR
16744 AR_FLAGS=$lt_AR_FLAGS
16745
16746 # A C compiler.
16747 LTCC=$lt_LTCC
16748
16749 # A language-specific compiler.
16750 CC=$lt_compiler_F77
16751
16752 # Is the compiler the GNU C compiler?
16753 with_gcc=$GCC_F77
16754
16755 # An ERE matcher.
16756 EGREP=$lt_EGREP
16757
16758 # The linker used to build libraries.
16759 LD=$lt_LD_F77
16760
16761 # Whether we need hard or soft links.
16762 LN_S=$lt_LN_S
16763
16764 # A BSD-compatible nm program.
16765 NM=$lt_NM
16766
16767 # A symbol stripping program
16768 STRIP=$lt_STRIP
16769
16770 # Used to examine libraries when file_magic_cmd begins "file"
16771 MAGIC_CMD=$MAGIC_CMD
16772
16773 # Used on cygwin: DLL creation program.
16774 DLLTOOL="$DLLTOOL"
16775
16776 # Used on cygwin: object dumper.
16777 OBJDUMP="$OBJDUMP"
16778
16779 # Used on cygwin: assembler.
16780 AS="$AS"
16781
16782 # The name of the directory that contains temporary libtool files.
16783 objdir=$objdir
16784
16785 # How to create reloadable object files.
16786 reload_flag=$lt_reload_flag
16787 reload_cmds=$lt_reload_cmds
16788
16789 # How to pass a linker flag through the compiler.
16790 wl=$lt_lt_prog_compiler_wl_F77
16791
16792 # Object file suffix (normally "o").
16793 objext="$ac_objext"
16794
16795 # Old archive suffix (normally "a").
16796 libext="$libext"
16797
16798 # Shared library suffix (normally ".so").
16799 shrext_cmds='$shrext_cmds'
16800
16801 # Executable file suffix (normally "").
16802 exeext="$exeext"
16803
16804 # Additional compiler flags for building library objects.
16805 pic_flag=$lt_lt_prog_compiler_pic_F77
16806 pic_mode=$pic_mode
16807
16808 # What is the maximum length of a command?
16809 max_cmd_len=$lt_cv_sys_max_cmd_len
16810
16811 # Does compiler simultaneously support -c and -o options?
16812 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16813
16814 # Must we lock files when doing compilation?
16815 need_locks=$lt_need_locks
16816
16817 # Do we need the lib prefix for modules?
16818 need_lib_prefix=$need_lib_prefix
16819
16820 # Do we need a version for libraries?
16821 need_version=$need_version
16822
16823 # Whether dlopen is supported.
16824 dlopen_support=$enable_dlopen
16825
16826 # Whether dlopen of programs is supported.
16827 dlopen_self=$enable_dlopen_self
16828
16829 # Whether dlopen of statically linked programs is supported.
16830 dlopen_self_static=$enable_dlopen_self_static
16831
16832 # Compiler flag to prevent dynamic linking.
16833 link_static_flag=$lt_lt_prog_compiler_static_F77
16834
16835 # Compiler flag to turn off builtin functions.
16836 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16837
16838 # Compiler flag to allow reflexive dlopens.
16839 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16840
16841 # Compiler flag to generate shared objects directly from archives.
16842 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16843
16844 # Compiler flag to generate thread-safe objects.
16845 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16846
16847 # Library versioning type.
16848 version_type=$version_type
16849
16850 # Format of library name prefix.
16851 libname_spec=$lt_libname_spec
16852
16853 # List of archive names.  First name is the real one, the rest are links.
16854 # The last name is the one that the linker finds with -lNAME.
16855 library_names_spec=$lt_library_names_spec
16856
16857 # The coded name of the library, if different from the real name.
16858 soname_spec=$lt_soname_spec
16859
16860 # Commands used to build and install an old-style archive.
16861 RANLIB=$lt_RANLIB
16862 old_archive_cmds=$lt_old_archive_cmds_F77
16863 old_postinstall_cmds=$lt_old_postinstall_cmds
16864 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16865
16866 # Create an old-style archive from a shared archive.
16867 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16868
16869 # Create a temporary old-style archive to link instead of a shared archive.
16870 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16871
16872 # Commands used to build and install a shared archive.
16873 archive_cmds=$lt_archive_cmds_F77
16874 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16875 postinstall_cmds=$lt_postinstall_cmds
16876 postuninstall_cmds=$lt_postuninstall_cmds
16877
16878 # Commands used to build a loadable module (assumed same as above if empty)
16879 module_cmds=$lt_module_cmds_F77
16880 module_expsym_cmds=$lt_module_expsym_cmds_F77
16881
16882 # Commands to strip libraries.
16883 old_striplib=$lt_old_striplib
16884 striplib=$lt_striplib
16885
16886 # Dependencies to place before the objects being linked to create a
16887 # shared library.
16888 predep_objects=$lt_predep_objects_F77
16889
16890 # Dependencies to place after the objects being linked to create a
16891 # shared library.
16892 postdep_objects=$lt_postdep_objects_F77
16893
16894 # Dependencies to place before the objects being linked to create a
16895 # shared library.
16896 predeps=$lt_predeps_F77
16897
16898 # Dependencies to place after the objects being linked to create a
16899 # shared library.
16900 postdeps=$lt_postdeps_F77
16901
16902 # The library search path used internally by the compiler when linking
16903 # a shared library.
16904 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16905
16906 # Method to check whether dependent libraries are shared objects.
16907 deplibs_check_method=$lt_deplibs_check_method
16908
16909 # Command to use when deplibs_check_method == file_magic.
16910 file_magic_cmd=$lt_file_magic_cmd
16911
16912 # Flag that allows shared libraries with undefined symbols to be built.
16913 allow_undefined_flag=$lt_allow_undefined_flag_F77
16914
16915 # Flag that forces no undefined symbols.
16916 no_undefined_flag=$lt_no_undefined_flag_F77
16917
16918 # Commands used to finish a libtool library installation in a directory.
16919 finish_cmds=$lt_finish_cmds
16920
16921 # Same as above, but a single script fragment to be evaled but not shown.
16922 finish_eval=$lt_finish_eval
16923
16924 # Take the output of nm and produce a listing of raw symbols and C names.
16925 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16926
16927 # Transform the output of nm in a proper C declaration
16928 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16929
16930 # Transform the output of nm in a C name address pair
16931 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16932
16933 # This is the shared library runtime path variable.
16934 runpath_var=$runpath_var
16935
16936 # This is the shared library path variable.
16937 shlibpath_var=$shlibpath_var
16938
16939 # Is shlibpath searched before the hard-coded library search path?
16940 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16941
16942 # How to hardcode a shared library path into an executable.
16943 hardcode_action=$hardcode_action_F77
16944
16945 # Whether we should hardcode library paths into libraries.
16946 hardcode_into_libs=$hardcode_into_libs
16947
16948 # Flag to hardcode \$libdir into a binary during linking.
16949 # This must work even if \$libdir does not exist.
16950 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16951
16952 # If ld is used when linking, flag to hardcode \$libdir into
16953 # a binary during linking. This must work even if \$libdir does
16954 # not exist.
16955 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16956
16957 # Whether we need a single -rpath flag with a separated argument.
16958 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16959
16960 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16961 # resulting binary.
16962 hardcode_direct=$hardcode_direct_F77
16963
16964 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16965 # resulting binary.
16966 hardcode_minus_L=$hardcode_minus_L_F77
16967
16968 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16969 # the resulting binary.
16970 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16971
16972 # Set to yes if building a shared library automatically hardcodes DIR into the library
16973 # and all subsequent libraries and executables linked against it.
16974 hardcode_automatic=$hardcode_automatic_F77
16975
16976 # Variables whose values should be saved in libtool wrapper scripts and
16977 # restored at relink time.
16978 variables_saved_for_relink="$variables_saved_for_relink"
16979
16980 # Whether libtool must link a program against all its dependency libraries.
16981 link_all_deplibs=$link_all_deplibs_F77
16982
16983 # Compile-time system search path for libraries
16984 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16985
16986 # Run-time system search path for libraries
16987 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16988
16989 # Fix the shell variable \$srcfile for the compiler.
16990 fix_srcfile_path="$fix_srcfile_path_F77"
16991
16992 # Set to yes if exported symbols are required.
16993 always_export_symbols=$always_export_symbols_F77
16994
16995 # The commands to list exported symbols.
16996 export_symbols_cmds=$lt_export_symbols_cmds_F77
16997
16998 # The commands to extract the exported symbol list from a shared archive.
16999 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17000
17001 # Symbols that should not be listed in the preloaded symbols.
17002 exclude_expsyms=$lt_exclude_expsyms_F77
17003
17004 # Symbols that must always be exported.
17005 include_expsyms=$lt_include_expsyms_F77
17006
17007 # ### END LIBTOOL TAG CONFIG: $tagname
17008
17009 __EOF__
17010
17011
17012 else
17013   # If there is no Makefile yet, we rely on a make rule to execute
17014   # `config.status --recheck' to rerun these tests and create the
17015   # libtool script then.
17016   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17017   if test -f "$ltmain_in"; then
17018     test -f Makefile && make "$ltmain"
17019   fi
17020 fi
17021
17022
17023 ac_ext=c
17024 ac_cpp='$CPP $CPPFLAGS'
17025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17028
17029 CC="$lt_save_CC"
17030
17031         else
17032           tagname=""
17033         fi
17034         ;;
17035
17036       GCJ)
17037         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17038
17039
17040
17041 # Source file extension for Java test sources.
17042 ac_ext=java
17043
17044 # Object file extension for compiled Java test sources.
17045 objext=o
17046 objext_GCJ=$objext
17047
17048 # Code to be used in simple compile tests
17049 lt_simple_compile_test_code="class foo {}\n"
17050
17051 # Code to be used in simple link tests
17052 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17053
17054 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17055
17056 # If no C compiler was specified, use CC.
17057 LTCC=${LTCC-"$CC"}
17058
17059 # Allow CC to be a program name with arguments.
17060 compiler=$CC
17061
17062
17063 # save warnings/boilerplate of simple test code
17064 ac_outfile=conftest.$ac_objext
17065 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17066 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
17067 _lt_compiler_boilerplate=`cat conftest.err`
17068 $rm conftest*
17069
17070 ac_outfile=conftest.$ac_objext
17071 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17072 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
17073 _lt_linker_boilerplate=`cat conftest.err`
17074 $rm conftest*
17075
17076
17077 # Allow CC to be a program name with arguments.
17078 lt_save_CC="$CC"
17079 CC=${GCJ-"gcj"}
17080 compiler=$CC
17081 compiler_GCJ=$CC
17082 for cc_temp in $compiler""; do
17083   case $cc_temp in
17084     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17085     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17086     \-*) ;;
17087     *) break;;
17088   esac
17089 done
17090 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17091
17092
17093 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17094 archive_cmds_need_lc_GCJ=no
17095
17096 old_archive_cmds_GCJ=$old_archive_cmds
17097
17098
17099 lt_prog_compiler_no_builtin_flag_GCJ=
17100
17101 if test "$GCC" = yes; then
17102   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17103
17104
17105 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17106 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17107 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17108   echo $ECHO_N "(cached) $ECHO_C" >&6
17109 else
17110   lt_cv_prog_compiler_rtti_exceptions=no
17111   ac_outfile=conftest.$ac_objext
17112    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17113    lt_compiler_flag="-fno-rtti -fno-exceptions"
17114    # Insert the option either (1) after the last *FLAGS variable, or
17115    # (2) before a word containing "conftest.", or (3) at the end.
17116    # Note that $ac_compile itself does not contain backslashes and begins
17117    # with a dollar sign (not a hyphen), so the echo should work correctly.
17118    # The option is referenced via a variable to avoid confusing sed.
17119    lt_compile=`echo "$ac_compile" | $SED \
17120    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17121    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17122    -e 's:$: $lt_compiler_flag:'`
17123    (eval echo "\"\$as_me:17123: $lt_compile\"" >&5)
17124    (eval "$lt_compile" 2>conftest.err)
17125    ac_status=$?
17126    cat conftest.err >&5
17127    echo "$as_me:17127: \$? = $ac_status" >&5
17128    if (exit $ac_status) && test -s "$ac_outfile"; then
17129      # The compiler can only warn and ignore the option if not recognized
17130      # So say no if there are warnings other than the usual output.
17131      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
17132      $SED '/^$/d' conftest.err >conftest.er2
17133      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
17134        lt_cv_prog_compiler_rtti_exceptions=yes
17135      fi
17136    fi
17137    $rm conftest*
17138
17139 fi
17140 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17141 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17142
17143 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17144     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17145 else
17146     :
17147 fi
17148
17149 fi
17150
17151 lt_prog_compiler_wl_GCJ=
17152 lt_prog_compiler_pic_GCJ=
17153 lt_prog_compiler_static_GCJ=
17154
17155 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17156 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17157
17158   if test "$GCC" = yes; then
17159     lt_prog_compiler_wl_GCJ='-Wl,'
17160     lt_prog_compiler_static_GCJ='-static'
17161
17162     case $host_os in
17163       aix*)
17164       # All AIX code is PIC.
17165       if test "$host_cpu" = ia64; then
17166         # AIX 5 now supports IA64 processor
17167         lt_prog_compiler_static_GCJ='-Bstatic'
17168       fi
17169       ;;
17170
17171     amigaos*)
17172       # FIXME: we need at least 68020 code to build shared libraries, but
17173       # adding the `-m68020' flag to GCC prevents building anything better,
17174       # like `-m68040'.
17175       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17176       ;;
17177
17178     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17179       # PIC is the default for these OSes.
17180       ;;
17181
17182     mingw* | pw32* | os2*)
17183       # This hack is so that the source file can tell whether it is being
17184       # built for inclusion in a dll (and should export symbols for example).
17185       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17186       ;;
17187
17188     darwin* | rhapsody*)
17189       # PIC is the default on this platform
17190       # Common symbols not allowed in MH_DYLIB files
17191       lt_prog_compiler_pic_GCJ='-fno-common'
17192       ;;
17193
17194     msdosdjgpp*)
17195       # Just because we use GCC doesn't mean we suddenly get shared libraries
17196       # on systems that don't support them.
17197       lt_prog_compiler_can_build_shared_GCJ=no
17198       enable_shared=no
17199       ;;
17200
17201     sysv4*MP*)
17202       if test -d /usr/nec; then
17203         lt_prog_compiler_pic_GCJ=-Kconform_pic
17204       fi
17205       ;;
17206
17207     hpux*)
17208       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17209       # not for PA HP-UX.
17210       case $host_cpu in
17211       hppa*64*|ia64*)
17212         # +Z the default
17213         ;;
17214       *)
17215         lt_prog_compiler_pic_GCJ='-fPIC'
17216         ;;
17217       esac
17218       ;;
17219
17220     *)
17221       lt_prog_compiler_pic_GCJ='-fPIC'
17222       ;;
17223     esac
17224   else
17225     # PORTME Check for flag to pass linker flags through the system compiler.
17226     case $host_os in
17227     aix*)
17228       lt_prog_compiler_wl_GCJ='-Wl,'
17229       if test "$host_cpu" = ia64; then
17230         # AIX 5 now supports IA64 processor
17231         lt_prog_compiler_static_GCJ='-Bstatic'
17232       else
17233         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17234       fi
17235       ;;
17236       darwin*)
17237         # PIC is the default on this platform
17238         # Common symbols not allowed in MH_DYLIB files
17239        case $cc_basename in
17240          xlc*)
17241          lt_prog_compiler_pic_GCJ='-qnocommon'
17242          lt_prog_compiler_wl_GCJ='-Wl,'
17243          ;;
17244        esac
17245        ;;
17246
17247     mingw* | pw32* | os2*)
17248       # This hack is so that the source file can tell whether it is being
17249       # built for inclusion in a dll (and should export symbols for example).
17250       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17251       ;;
17252
17253     hpux9* | hpux10* | hpux11*)
17254       lt_prog_compiler_wl_GCJ='-Wl,'
17255       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17256       # not for PA HP-UX.
17257       case $host_cpu in
17258       hppa*64*|ia64*)
17259         # +Z the default
17260         ;;
17261       *)
17262         lt_prog_compiler_pic_GCJ='+Z'
17263         ;;
17264       esac
17265       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17266       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17267       ;;
17268
17269     irix5* | irix6* | nonstopux*)
17270       lt_prog_compiler_wl_GCJ='-Wl,'
17271       # PIC (with -KPIC) is the default.
17272       lt_prog_compiler_static_GCJ='-non_shared'
17273       ;;
17274
17275     newsos6)
17276       lt_prog_compiler_pic_GCJ='-KPIC'
17277       lt_prog_compiler_static_GCJ='-Bstatic'
17278       ;;
17279
17280     linux*)
17281       case $cc_basename in
17282       icc* | ecc*)
17283         lt_prog_compiler_wl_GCJ='-Wl,'
17284         lt_prog_compiler_pic_GCJ='-KPIC'
17285         lt_prog_compiler_static_GCJ='-static'
17286         ;;
17287       pgcc* | pgf77* | pgf90* | pgf95*)
17288         # Portland Group compilers (*not* the Pentium gcc compiler,
17289         # which looks to be a dead project)
17290         lt_prog_compiler_wl_GCJ='-Wl,'
17291         lt_prog_compiler_pic_GCJ='-fpic'
17292         lt_prog_compiler_static_GCJ='-Bstatic'
17293         ;;
17294       ccc*)
17295         lt_prog_compiler_wl_GCJ='-Wl,'
17296         # All Alpha code is PIC.
17297         lt_prog_compiler_static_GCJ='-non_shared'
17298         ;;
17299       esac
17300       ;;
17301
17302     osf3* | osf4* | osf5*)
17303       lt_prog_compiler_wl_GCJ='-Wl,'
17304       # All OSF/1 code is PIC.
17305       lt_prog_compiler_static_GCJ='-non_shared'
17306       ;;
17307
17308     sco3.2v5*)
17309       lt_prog_compiler_pic_GCJ='-Kpic'
17310       lt_prog_compiler_static_GCJ='-dn'
17311       ;;
17312
17313     solaris*)
17314       lt_prog_compiler_pic_GCJ='-KPIC'
17315       lt_prog_compiler_static_GCJ='-Bstatic'
17316       case $cc_basename in
17317       f77* | f90* | f95*)
17318         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17319       *)
17320         lt_prog_compiler_wl_GCJ='-Wl,';;
17321       esac
17322       ;;
17323
17324     sunos4*)
17325       lt_prog_compiler_wl_GCJ='-Qoption ld '
17326       lt_prog_compiler_pic_GCJ='-PIC'
17327       lt_prog_compiler_static_GCJ='-Bstatic'
17328       ;;
17329
17330     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17331       lt_prog_compiler_wl_GCJ='-Wl,'
17332       lt_prog_compiler_pic_GCJ='-KPIC'
17333       lt_prog_compiler_static_GCJ='-Bstatic'
17334       ;;
17335
17336     sysv4*MP*)
17337       if test -d /usr/nec ;then
17338         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17339         lt_prog_compiler_static_GCJ='-Bstatic'
17340       fi
17341       ;;
17342
17343     unicos*)
17344       lt_prog_compiler_wl_GCJ='-Wl,'
17345       lt_prog_compiler_can_build_shared_GCJ=no
17346       ;;
17347
17348     uts4*)
17349       lt_prog_compiler_pic_GCJ='-pic'
17350       lt_prog_compiler_static_GCJ='-Bstatic'
17351       ;;
17352
17353     *)
17354       lt_prog_compiler_can_build_shared_GCJ=no
17355       ;;
17356     esac
17357   fi
17358
17359 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17360 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
17361
17362 #
17363 # Check to make sure the PIC flag actually works.
17364 #
17365 if test -n "$lt_prog_compiler_pic_GCJ"; then
17366
17367 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17368 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17369 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17370   echo $ECHO_N "(cached) $ECHO_C" >&6
17371 else
17372   lt_prog_compiler_pic_works_GCJ=no
17373   ac_outfile=conftest.$ac_objext
17374    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17375    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17376    # Insert the option either (1) after the last *FLAGS variable, or
17377    # (2) before a word containing "conftest.", or (3) at the end.
17378    # Note that $ac_compile itself does not contain backslashes and begins
17379    # with a dollar sign (not a hyphen), so the echo should work correctly.
17380    # The option is referenced via a variable to avoid confusing sed.
17381    lt_compile=`echo "$ac_compile" | $SED \
17382    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17383    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17384    -e 's:$: $lt_compiler_flag:'`
17385    (eval echo "\"\$as_me:17385: $lt_compile\"" >&5)
17386    (eval "$lt_compile" 2>conftest.err)
17387    ac_status=$?
17388    cat conftest.err >&5
17389    echo "$as_me:17389: \$? = $ac_status" >&5
17390    if (exit $ac_status) && test -s "$ac_outfile"; then
17391      # The compiler can only warn and ignore the option if not recognized
17392      # So say no if there are warnings other than the usual output.
17393      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
17394      $SED '/^$/d' conftest.err >conftest.er2
17395      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
17396        lt_prog_compiler_pic_works_GCJ=yes
17397      fi
17398    fi
17399    $rm conftest*
17400
17401 fi
17402 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17403 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17404
17405 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17406     case $lt_prog_compiler_pic_GCJ in
17407      "" | " "*) ;;
17408      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17409      esac
17410 else
17411     lt_prog_compiler_pic_GCJ=
17412      lt_prog_compiler_can_build_shared_GCJ=no
17413 fi
17414
17415 fi
17416 case $host_os in
17417   # For platforms which do not support PIC, -DPIC is meaningless:
17418   *djgpp*)
17419     lt_prog_compiler_pic_GCJ=
17420     ;;
17421   *)
17422     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17423     ;;
17424 esac
17425
17426 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17427 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17428 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17429   echo $ECHO_N "(cached) $ECHO_C" >&6
17430 else
17431   lt_cv_prog_compiler_c_o_GCJ=no
17432    $rm -r conftest 2>/dev/null
17433    mkdir conftest
17434    cd conftest
17435    mkdir out
17436    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17437
17438    lt_compiler_flag="-o out/conftest2.$ac_objext"
17439    # Insert the option either (1) after the last *FLAGS variable, or
17440    # (2) before a word containing "conftest.", or (3) at the end.
17441    # Note that $ac_compile itself does not contain backslashes and begins
17442    # with a dollar sign (not a hyphen), so the echo should work correctly.
17443    lt_compile=`echo "$ac_compile" | $SED \
17444    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17445    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17446    -e 's:$: $lt_compiler_flag:'`
17447    (eval echo "\"\$as_me:17447: $lt_compile\"" >&5)
17448    (eval "$lt_compile" 2>out/conftest.err)
17449    ac_status=$?
17450    cat out/conftest.err >&5
17451    echo "$as_me:17451: \$? = $ac_status" >&5
17452    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17453    then
17454      # The compiler can only warn and ignore the option if not recognized
17455      # So say no if there are warnings
17456      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
17457      $SED '/^$/d' out/conftest.err >out/conftest.er2
17458      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17459        lt_cv_prog_compiler_c_o_GCJ=yes
17460      fi
17461    fi
17462    chmod u+w . 2>&5
17463    $rm conftest*
17464    # SGI C++ compiler will create directory out/ii_files/ for
17465    # template instantiation
17466    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17467    $rm out/* && rmdir out
17468    cd ..
17469    rmdir conftest
17470    $rm conftest*
17471
17472 fi
17473 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17474 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17475
17476
17477 hard_links="nottested"
17478 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17479   # do not overwrite the value of need_locks provided by the user
17480   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17481 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17482   hard_links=yes
17483   $rm conftest*
17484   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17485   touch conftest.a
17486   ln conftest.a conftest.b 2>&5 || hard_links=no
17487   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17488   echo "$as_me:$LINENO: result: $hard_links" >&5
17489 echo "${ECHO_T}$hard_links" >&6
17490   if test "$hard_links" = no; then
17491     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17492 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17493     need_locks=warn
17494   fi
17495 else
17496   need_locks=no
17497 fi
17498
17499 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17500 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17501
17502   runpath_var=
17503   allow_undefined_flag_GCJ=
17504   enable_shared_with_static_runtimes_GCJ=no
17505   archive_cmds_GCJ=
17506   archive_expsym_cmds_GCJ=
17507   old_archive_From_new_cmds_GCJ=
17508   old_archive_from_expsyms_cmds_GCJ=
17509   export_dynamic_flag_spec_GCJ=
17510   whole_archive_flag_spec_GCJ=
17511   thread_safe_flag_spec_GCJ=
17512   hardcode_libdir_flag_spec_GCJ=
17513   hardcode_libdir_flag_spec_ld_GCJ=
17514   hardcode_libdir_separator_GCJ=
17515   hardcode_direct_GCJ=no
17516   hardcode_minus_L_GCJ=no
17517   hardcode_shlibpath_var_GCJ=unsupported
17518   link_all_deplibs_GCJ=unknown
17519   hardcode_automatic_GCJ=no
17520   module_cmds_GCJ=
17521   module_expsym_cmds_GCJ=
17522   always_export_symbols_GCJ=no
17523   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17524   # include_expsyms should be a list of space-separated symbols to be *always*
17525   # included in the symbol list
17526   include_expsyms_GCJ=
17527   # exclude_expsyms can be an extended regexp of symbols to exclude
17528   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17529   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17530   # as well as any symbol that contains `d'.
17531   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17532   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17533   # platforms (ab)use it in PIC code, but their linkers get confused if
17534   # the symbol is explicitly referenced.  Since portable code cannot
17535   # rely on this symbol name, it's probably fine to never include it in
17536   # preloaded symbol tables.
17537   extract_expsyms_cmds=
17538   # Just being paranoid about ensuring that cc_basename is set.
17539   for cc_temp in $compiler""; do
17540   case $cc_temp in
17541     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17542     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17543     \-*) ;;
17544     *) break;;
17545   esac
17546 done
17547 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17548
17549   case $host_os in
17550   cygwin* | mingw* | pw32*)
17551     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17552     # When not using gcc, we currently assume that we are using
17553     # Microsoft Visual C++.
17554     if test "$GCC" != yes; then
17555       with_gnu_ld=no
17556     fi
17557     ;;
17558   openbsd*)
17559     with_gnu_ld=no
17560     ;;
17561   esac
17562
17563   ld_shlibs_GCJ=yes
17564   if test "$with_gnu_ld" = yes; then
17565     # If archive_cmds runs LD, not CC, wlarc should be empty
17566     wlarc='${wl}'
17567
17568     # Set some defaults for GNU ld with shared library support. These
17569     # are reset later if shared libraries are not supported. Putting them
17570     # here allows them to be overridden if necessary.
17571     runpath_var=LD_RUN_PATH
17572     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17573     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17574     # ancient GNU ld didn't support --whole-archive et. al.
17575     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17576         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17577       else
17578         whole_archive_flag_spec_GCJ=
17579     fi
17580     supports_anon_versioning=no
17581     case `$LD -v 2>/dev/null` in
17582       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17583       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17584       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17585       *\ 2.11.*) ;; # other 2.11 versions
17586       *) supports_anon_versioning=yes ;;
17587     esac
17588
17589     # See if GNU ld supports shared libraries.
17590     case $host_os in
17591     aix3* | aix4* | aix5*)
17592       # On AIX/PPC, the GNU linker is very broken
17593       if test "$host_cpu" != ia64; then
17594         ld_shlibs_GCJ=no
17595         cat <<EOF 1>&2
17596
17597 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17598 *** to be unable to reliably create shared libraries on AIX.
17599 *** Therefore, libtool is disabling shared libraries support.  If you
17600 *** really care for shared libraries, you may want to modify your PATH
17601 *** so that a non-GNU linker is found, and then restart.
17602
17603 EOF
17604       fi
17605       ;;
17606
17607     amigaos*)
17608       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)'
17609       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17610       hardcode_minus_L_GCJ=yes
17611
17612       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17613       # that the semantics of dynamic libraries on AmigaOS, at least up
17614       # to version 4, is to share data among multiple programs linked
17615       # with the same dynamic library.  Since this doesn't match the
17616       # behavior of shared libraries on other platforms, we can't use
17617       # them.
17618       ld_shlibs_GCJ=no
17619       ;;
17620
17621     beos*)
17622       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17623         allow_undefined_flag_GCJ=unsupported
17624         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17625         # support --undefined.  This deserves some investigation.  FIXME
17626         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17627       else
17628         ld_shlibs_GCJ=no
17629       fi
17630       ;;
17631
17632     cygwin* | mingw* | pw32*)
17633       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17634       # as there is no search path for DLLs.
17635       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17636       allow_undefined_flag_GCJ=unsupported
17637       always_export_symbols_GCJ=no
17638       enable_shared_with_static_runtimes_GCJ=yes
17639       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17640
17641       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17642         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17643         # If the export-symbols file already is a .def file (1st line
17644         # is EXPORTS), use it as is; otherwise, prepend...
17645         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17646           cp $export_symbols $output_objdir/$soname.def;
17647         else
17648           echo EXPORTS > $output_objdir/$soname.def;
17649           cat $export_symbols >> $output_objdir/$soname.def;
17650         fi~
17651         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
17652       else
17653         ld_shlibs_GCJ=no
17654       fi
17655       ;;
17656
17657     linux*)
17658       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17659         tmp_addflag=
17660         case $cc_basename,$host_cpu in
17661         pgcc*)                          # Portland Group C compiler
17662           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17663           tmp_addflag=' $pic_flag'
17664           ;;
17665         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17666           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17667           tmp_addflag=' $pic_flag -Mnomain' ;;
17668         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17669           tmp_addflag=' -i_dynamic' ;;
17670         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17671           tmp_addflag=' -i_dynamic -nofor_main' ;;
17672         ifc* | ifort*)                  # Intel Fortran compiler
17673           tmp_addflag=' -nofor_main' ;;
17674         esac
17675         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17676
17677         if test $supports_anon_versioning = yes; then
17678           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17679   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17680   $echo "local: *; };" >> $output_objdir/$libname.ver~
17681           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17682         fi
17683         link_all_deplibs_GCJ=no
17684       else
17685         ld_shlibs_GCJ=no
17686       fi
17687       ;;
17688
17689     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
17690       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17691         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17692         wlarc=
17693       else
17694         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17695         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17696       fi
17697       ;;
17698
17699     solaris* | sysv5*)
17700       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17701         ld_shlibs_GCJ=no
17702         cat <<EOF 1>&2
17703
17704 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17705 *** create shared libraries on Solaris systems.  Therefore, libtool
17706 *** is disabling shared libraries support.  We urge you to upgrade GNU
17707 *** binutils to release 2.9.1 or newer.  Another option is to modify
17708 *** your PATH or compiler configuration so that the native linker is
17709 *** used, and then restart.
17710
17711 EOF
17712       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17713         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17714         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17715       else
17716         ld_shlibs_GCJ=no
17717       fi
17718       ;;
17719
17720     sunos4*)
17721       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17722       wlarc=
17723       hardcode_direct_GCJ=yes
17724       hardcode_shlibpath_var_GCJ=no
17725       ;;
17726
17727     *)
17728       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17729         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17730         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17731       else
17732         ld_shlibs_GCJ=no
17733       fi
17734       ;;
17735     esac
17736
17737     if test "$ld_shlibs_GCJ" = no; then
17738       runpath_var=
17739       hardcode_libdir_flag_spec_GCJ=
17740       export_dynamic_flag_spec_GCJ=
17741       whole_archive_flag_spec_GCJ=
17742     fi
17743   else
17744     # PORTME fill in a description of your system's linker (not GNU ld)
17745     case $host_os in
17746     aix3*)
17747       allow_undefined_flag_GCJ=unsupported
17748       always_export_symbols_GCJ=yes
17749       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'
17750       # Note: this linker hardcodes the directories in LIBPATH if there
17751       # are no directories specified by -L.
17752       hardcode_minus_L_GCJ=yes
17753       if test "$GCC" = yes && test -z "$link_static_flag"; then
17754         # Neither direct hardcoding nor static linking is supported with a
17755         # broken collect2.
17756         hardcode_direct_GCJ=unsupported
17757       fi
17758       ;;
17759
17760     aix4* | aix5*)
17761       if test "$host_cpu" = ia64; then
17762         # On IA64, the linker does run time linking by default, so we don't
17763         # have to do anything special.
17764         aix_use_runtimelinking=no
17765         exp_sym_flag='-Bexport'
17766         no_entry_flag=""
17767       else
17768         # If we're using GNU nm, then we don't want the "-C" option.
17769         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17770         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17771           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'
17772         else
17773           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'
17774         fi
17775         aix_use_runtimelinking=no
17776
17777         # Test if we are trying to use run time linking or normal
17778         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17779         # need to do runtime linking.
17780         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17781           for ld_flag in $LDFLAGS; do
17782           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17783             aix_use_runtimelinking=yes
17784             break
17785           fi
17786           done
17787         esac
17788
17789         exp_sym_flag='-bexport'
17790         no_entry_flag='-bnoentry'
17791       fi
17792
17793       # When large executables or shared objects are built, AIX ld can
17794       # have problems creating the table of contents.  If linking a library
17795       # or program results in "error TOC overflow" add -mminimal-toc to
17796       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17797       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17798
17799       archive_cmds_GCJ=''
17800       hardcode_direct_GCJ=yes
17801       hardcode_libdir_separator_GCJ=':'
17802       link_all_deplibs_GCJ=yes
17803
17804       if test "$GCC" = yes; then
17805         case $host_os in aix4.[012]|aix4.[012].*)
17806         # We only want to do this on AIX 4.2 and lower, the check
17807         # below for broken collect2 doesn't work under 4.3+
17808           collect2name=`${CC} -print-prog-name=collect2`
17809           if test -f "$collect2name" && \
17810            strings "$collect2name" | grep resolve_lib_name >/dev/null
17811           then
17812           # We have reworked collect2
17813           hardcode_direct_GCJ=yes
17814           else
17815           # We have old collect2
17816           hardcode_direct_GCJ=unsupported
17817           # It fails to find uninstalled libraries when the uninstalled
17818           # path is not listed in the libpath.  Setting hardcode_minus_L
17819           # to unsupported forces relinking
17820           hardcode_minus_L_GCJ=yes
17821           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17822           hardcode_libdir_separator_GCJ=
17823           fi
17824         esac
17825         shared_flag='-shared'
17826         if test "$aix_use_runtimelinking" = yes; then
17827           shared_flag="$shared_flag "'${wl}-G'
17828         fi
17829       else
17830         # not using gcc
17831         if test "$host_cpu" = ia64; then
17832         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17833         # chokes on -Wl,-G. The following line is correct:
17834           shared_flag='-G'
17835         else
17836         if test "$aix_use_runtimelinking" = yes; then
17837             shared_flag='${wl}-G'
17838           else
17839             shared_flag='${wl}-bM:SRE'
17840         fi
17841         fi
17842       fi
17843
17844       # It seems that -bexpall does not export symbols beginning with
17845       # underscore (_), so it is better to generate a list of symbols to export.
17846       always_export_symbols_GCJ=yes
17847       if test "$aix_use_runtimelinking" = yes; then
17848         # Warning - without using the other runtime loading flags (-brtl),
17849         # -berok will link without error, but may produce a broken library.
17850         allow_undefined_flag_GCJ='-berok'
17851        # Determine the default libpath from the value encoded in an empty executable.
17852        cat >conftest.$ac_ext <<_ACEOF
17853 /* confdefs.h.  */
17854 _ACEOF
17855 cat confdefs.h >>conftest.$ac_ext
17856 cat >>conftest.$ac_ext <<_ACEOF
17857 /* end confdefs.h.  */
17858
17859 int
17860 main ()
17861 {
17862
17863   ;
17864   return 0;
17865 }
17866 _ACEOF
17867 rm -f conftest.$ac_objext conftest$ac_exeext
17868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17869   (eval $ac_link) 2>conftest.er1
17870   ac_status=$?
17871   grep -v '^ *+' conftest.er1 >conftest.err
17872   rm -f conftest.er1
17873   cat conftest.err >&5
17874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875   (exit $ac_status); } &&
17876          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17878   (eval $ac_try) 2>&5
17879   ac_status=$?
17880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881   (exit $ac_status); }; } &&
17882          { ac_try='test -s conftest$ac_exeext'
17883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17884   (eval $ac_try) 2>&5
17885   ac_status=$?
17886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17887   (exit $ac_status); }; }; then
17888
17889 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17890 }'`
17891 # Check for a 64-bit object if we didn't find anything.
17892 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; }
17893 }'`; fi
17894 else
17895   echo "$as_me: failed program was:" >&5
17896 sed 's/^/| /' conftest.$ac_ext >&5
17897
17898 fi
17899 rm -f conftest.err conftest.$ac_objext \
17900       conftest$ac_exeext conftest.$ac_ext
17901 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17902
17903        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17904         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"
17905        else
17906         if test "$host_cpu" = ia64; then
17907           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17908           allow_undefined_flag_GCJ="-z nodefs"
17909           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"
17910         else
17911          # Determine the default libpath from the value encoded in an empty executable.
17912          cat >conftest.$ac_ext <<_ACEOF
17913 /* confdefs.h.  */
17914 _ACEOF
17915 cat confdefs.h >>conftest.$ac_ext
17916 cat >>conftest.$ac_ext <<_ACEOF
17917 /* end confdefs.h.  */
17918
17919 int
17920 main ()
17921 {
17922
17923   ;
17924   return 0;
17925 }
17926 _ACEOF
17927 rm -f conftest.$ac_objext conftest$ac_exeext
17928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17929   (eval $ac_link) 2>conftest.er1
17930   ac_status=$?
17931   grep -v '^ *+' conftest.er1 >conftest.err
17932   rm -f conftest.er1
17933   cat conftest.err >&5
17934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935   (exit $ac_status); } &&
17936          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17938   (eval $ac_try) 2>&5
17939   ac_status=$?
17940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941   (exit $ac_status); }; } &&
17942          { ac_try='test -s conftest$ac_exeext'
17943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17944   (eval $ac_try) 2>&5
17945   ac_status=$?
17946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947   (exit $ac_status); }; }; then
17948
17949 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17950 }'`
17951 # Check for a 64-bit object if we didn't find anything.
17952 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; }
17953 }'`; fi
17954 else
17955   echo "$as_me: failed program was:" >&5
17956 sed 's/^/| /' conftest.$ac_ext >&5
17957
17958 fi
17959 rm -f conftest.err conftest.$ac_objext \
17960       conftest$ac_exeext conftest.$ac_ext
17961 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17962
17963          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17964           # Warning - without using the other run time loading flags,
17965           # -berok will link without error, but may produce a broken library.
17966           no_undefined_flag_GCJ=' ${wl}-bernotok'
17967           allow_undefined_flag_GCJ=' ${wl}-berok'
17968           # -bexpall does not export symbols beginning with underscore (_)
17969           always_export_symbols_GCJ=yes
17970           # Exported symbols can be pulled into shared objects from archives
17971           whole_archive_flag_spec_GCJ=' '
17972           archive_cmds_need_lc_GCJ=yes
17973           # This is similar to how AIX traditionally builds its shared libraries.
17974           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'
17975         fi
17976       fi
17977       ;;
17978
17979     amigaos*)
17980       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)'
17981       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17982       hardcode_minus_L_GCJ=yes
17983       # see comment about different semantics on the GNU ld section
17984       ld_shlibs_GCJ=no
17985       ;;
17986
17987     bsdi[45]*)
17988       export_dynamic_flag_spec_GCJ=-rdynamic
17989       ;;
17990
17991     cygwin* | mingw* | pw32*)
17992       # When not using gcc, we currently assume that we are using
17993       # Microsoft Visual C++.
17994       # hardcode_libdir_flag_spec is actually meaningless, as there is
17995       # no search path for DLLs.
17996       hardcode_libdir_flag_spec_GCJ=' '
17997       allow_undefined_flag_GCJ=unsupported
17998       # Tell ltmain to make .lib files, not .a files.
17999       libext=lib
18000       # Tell ltmain to make .dll files, not .so files.
18001       shrext_cmds=".dll"
18002       # FIXME: Setting linknames here is a bad hack.
18003       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18004       # The linker will automatically build a .lib file if we build a DLL.
18005       old_archive_From_new_cmds_GCJ='true'
18006       # FIXME: Should let the user specify the lib program.
18007       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18008       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18009       enable_shared_with_static_runtimes_GCJ=yes
18010       ;;
18011
18012     darwin* | rhapsody*)
18013       case $host_os in
18014         rhapsody* | darwin1.[012])
18015          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18016          ;;
18017        *) # Darwin 1.3 on
18018          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18019            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18020          else
18021            case ${MACOSX_DEPLOYMENT_TARGET} in
18022              10.[012])
18023                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18024                ;;
18025              10.*)
18026                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18027                ;;
18028            esac
18029          fi
18030          ;;
18031       esac
18032       archive_cmds_need_lc_GCJ=no
18033       hardcode_direct_GCJ=no
18034       hardcode_automatic_GCJ=yes
18035       hardcode_shlibpath_var_GCJ=unsupported
18036       whole_archive_flag_spec_GCJ=''
18037       link_all_deplibs_GCJ=yes
18038     if test "$GCC" = yes ; then
18039         output_verbose_link_cmd='echo'
18040         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18041       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18042       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18043       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18044       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}'
18045     else
18046       case $cc_basename in
18047         xlc*)
18048          output_verbose_link_cmd='echo'
18049          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18050          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18051           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18052          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18053           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}'
18054           ;;
18055        *)
18056          ld_shlibs_GCJ=no
18057           ;;
18058       esac
18059     fi
18060       ;;
18061
18062     dgux*)
18063       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18064       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18065       hardcode_shlibpath_var_GCJ=no
18066       ;;
18067
18068     freebsd1*)
18069       ld_shlibs_GCJ=no
18070       ;;
18071
18072     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18073     # support.  Future versions do this automatically, but an explicit c++rt0.o
18074     # does not break anything, and helps significantly (at the cost of a little
18075     # extra space).
18076     freebsd2.2*)
18077       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18078       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18079       hardcode_direct_GCJ=yes
18080       hardcode_shlibpath_var_GCJ=no
18081       ;;
18082
18083     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18084     freebsd2*)
18085       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18086       hardcode_direct_GCJ=yes
18087       hardcode_minus_L_GCJ=yes
18088       hardcode_shlibpath_var_GCJ=no
18089       ;;
18090
18091     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18092     freebsd* | kfreebsd*-gnu | dragonfly*)
18093       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18094       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18095       hardcode_direct_GCJ=yes
18096       hardcode_shlibpath_var_GCJ=no
18097       ;;
18098
18099     hpux9*)
18100       if test "$GCC" = yes; then
18101         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'
18102       else
18103         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'
18104       fi
18105       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18106       hardcode_libdir_separator_GCJ=:
18107       hardcode_direct_GCJ=yes
18108
18109       # hardcode_minus_L: Not really in the search PATH,
18110       # but as the default location of the library.
18111       hardcode_minus_L_GCJ=yes
18112       export_dynamic_flag_spec_GCJ='${wl}-E'
18113       ;;
18114
18115     hpux10* | hpux11*)
18116       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18117         case $host_cpu in
18118         hppa*64*|ia64*)
18119           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18120           ;;
18121         *)
18122           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18123           ;;
18124         esac
18125       else
18126         case $host_cpu in
18127         hppa*64*|ia64*)
18128           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
18129           ;;
18130         *)
18131           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18132           ;;
18133         esac
18134       fi
18135       if test "$with_gnu_ld" = no; then
18136         case $host_cpu in
18137         hppa*64*)
18138           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18139           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18140           hardcode_libdir_separator_GCJ=:
18141           hardcode_direct_GCJ=no
18142           hardcode_shlibpath_var_GCJ=no
18143           ;;
18144         ia64*)
18145           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18146           hardcode_direct_GCJ=no
18147           hardcode_shlibpath_var_GCJ=no
18148
18149           # hardcode_minus_L: Not really in the search PATH,
18150           # but as the default location of the library.
18151           hardcode_minus_L_GCJ=yes
18152           ;;
18153         *)
18154           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18155           hardcode_libdir_separator_GCJ=:
18156           hardcode_direct_GCJ=yes
18157           export_dynamic_flag_spec_GCJ='${wl}-E'
18158
18159           # hardcode_minus_L: Not really in the search PATH,
18160           # but as the default location of the library.
18161           hardcode_minus_L_GCJ=yes
18162           ;;
18163         esac
18164       fi
18165       ;;
18166
18167     irix5* | irix6* | nonstopux*)
18168       if test "$GCC" = yes; then
18169         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'
18170       else
18171         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'
18172         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18173       fi
18174       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18175       hardcode_libdir_separator_GCJ=:
18176       link_all_deplibs_GCJ=yes
18177       ;;
18178
18179     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
18180       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18181         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18182       else
18183         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18184       fi
18185       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18186       hardcode_direct_GCJ=yes
18187       hardcode_shlibpath_var_GCJ=no
18188       ;;
18189
18190     newsos6)
18191       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18192       hardcode_direct_GCJ=yes
18193       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18194       hardcode_libdir_separator_GCJ=:
18195       hardcode_shlibpath_var_GCJ=no
18196       ;;
18197
18198     openbsd*)
18199       hardcode_direct_GCJ=yes
18200       hardcode_shlibpath_var_GCJ=no
18201       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18202         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18203         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18204         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18205         export_dynamic_flag_spec_GCJ='${wl}-E'
18206       else
18207        case $host_os in
18208          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18209            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18210            hardcode_libdir_flag_spec_GCJ='-R$libdir'
18211            ;;
18212          *)
18213            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18214            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18215            ;;
18216        esac
18217       fi
18218       ;;
18219
18220     os2*)
18221       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18222       hardcode_minus_L_GCJ=yes
18223       allow_undefined_flag_GCJ=unsupported
18224       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'
18225       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18226       ;;
18227
18228     osf3*)
18229       if test "$GCC" = yes; then
18230         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18231         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'
18232       else
18233         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18234         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'
18235       fi
18236       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18237       hardcode_libdir_separator_GCJ=:
18238       ;;
18239
18240     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18241       if test "$GCC" = yes; then
18242         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18243         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'
18244         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18245       else
18246         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18247         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'
18248         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~
18249         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
18250
18251         # Both c and cxx compiler support -rpath directly
18252         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18253       fi
18254       hardcode_libdir_separator_GCJ=:
18255       ;;
18256
18257     sco3.2v5*)
18258       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18259       hardcode_shlibpath_var_GCJ=no
18260       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18261       runpath_var=LD_RUN_PATH
18262       hardcode_runpath_var=yes
18263       ;;
18264
18265     solaris*)
18266       no_undefined_flag_GCJ=' -z text'
18267       if test "$GCC" = yes; then
18268         wlarc='${wl}'
18269         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18270         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18271           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18272       else
18273         wlarc=''
18274         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18275         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18276         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18277       fi
18278       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18279       hardcode_shlibpath_var_GCJ=no
18280       case $host_os in
18281       solaris2.[0-5] | solaris2.[0-5].*) ;;
18282       *)
18283         # The compiler driver will combine linker options so we
18284         # cannot just pass the convience library names through
18285         # without $wl, iff we do not link with $LD.
18286         # Luckily, gcc supports the same syntax we need for Sun Studio.
18287         # Supported since Solaris 2.6 (maybe 2.5.1?)
18288         case $wlarc in
18289         '')
18290           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18291         *)
18292           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
18293         esac ;;
18294       esac
18295       link_all_deplibs_GCJ=yes
18296       ;;
18297
18298     sunos4*)
18299       if test "x$host_vendor" = xsequent; then
18300         # Use $CC to link under sequent, because it throws in some extra .o
18301         # files that make .init and .fini sections work.
18302         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18303       else
18304         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18305       fi
18306       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18307       hardcode_direct_GCJ=yes
18308       hardcode_minus_L_GCJ=yes
18309       hardcode_shlibpath_var_GCJ=no
18310       ;;
18311
18312     sysv4)
18313       case $host_vendor in
18314         sni)
18315           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18316           hardcode_direct_GCJ=yes # is this really true???
18317         ;;
18318         siemens)
18319           ## LD is ld it makes a PLAMLIB
18320           ## CC just makes a GrossModule.
18321           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18322           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18323           hardcode_direct_GCJ=no
18324         ;;
18325         motorola)
18326           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18327           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18328         ;;
18329       esac
18330       runpath_var='LD_RUN_PATH'
18331       hardcode_shlibpath_var_GCJ=no
18332       ;;
18333
18334     sysv4.3*)
18335       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18336       hardcode_shlibpath_var_GCJ=no
18337       export_dynamic_flag_spec_GCJ='-Bexport'
18338       ;;
18339
18340     sysv4*MP*)
18341       if test -d /usr/nec; then
18342         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18343         hardcode_shlibpath_var_GCJ=no
18344         runpath_var=LD_RUN_PATH
18345         hardcode_runpath_var=yes
18346         ld_shlibs_GCJ=yes
18347       fi
18348       ;;
18349
18350     sysv4.2uw2*)
18351       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18352       hardcode_direct_GCJ=yes
18353       hardcode_minus_L_GCJ=no
18354       hardcode_shlibpath_var_GCJ=no
18355       hardcode_runpath_var=yes
18356       runpath_var=LD_RUN_PATH
18357       ;;
18358
18359    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
18360       no_undefined_flag_GCJ='${wl}-z ${wl}text'
18361       if test "$GCC" = yes; then
18362         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18363       else
18364         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18365       fi
18366       runpath_var='LD_RUN_PATH'
18367       hardcode_shlibpath_var_GCJ=no
18368       ;;
18369
18370     sysv5*)
18371       no_undefined_flag_GCJ=' -z text'
18372       # $CC -shared without GNU ld will not create a library from C++
18373       # object files and a static libstdc++, better avoid it by now
18374       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18375       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18376                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18377       hardcode_libdir_flag_spec_GCJ=
18378       hardcode_shlibpath_var_GCJ=no
18379       runpath_var='LD_RUN_PATH'
18380       ;;
18381
18382     uts4*)
18383       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18384       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18385       hardcode_shlibpath_var_GCJ=no
18386       ;;
18387
18388     *)
18389       ld_shlibs_GCJ=no
18390       ;;
18391     esac
18392   fi
18393
18394 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18395 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18396 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18397
18398 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18399 if test "$GCC" = yes; then
18400   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18401 fi
18402
18403 #
18404 # Do we need to explicitly link libc?
18405 #
18406 case "x$archive_cmds_need_lc_GCJ" in
18407 x|xyes)
18408   # Assume -lc should be added
18409   archive_cmds_need_lc_GCJ=yes
18410
18411   if test "$enable_shared" = yes && test "$GCC" = yes; then
18412     case $archive_cmds_GCJ in
18413     *'~'*)
18414       # FIXME: we may have to deal with multi-command sequences.
18415       ;;
18416     '$CC '*)
18417       # Test whether the compiler implicitly links with -lc since on some
18418       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18419       # to ld, don't add -lc before -lgcc.
18420       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18421 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18422       $rm conftest*
18423       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18424
18425       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18426   (eval $ac_compile) 2>&5
18427   ac_status=$?
18428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429   (exit $ac_status); } 2>conftest.err; then
18430         soname=conftest
18431         lib=conftest
18432         libobjs=conftest.$ac_objext
18433         deplibs=
18434         wl=$lt_prog_compiler_wl_GCJ
18435         compiler_flags=-v
18436         linker_flags=-v
18437         verstring=
18438         output_objdir=.
18439         libname=conftest
18440         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18441         allow_undefined_flag_GCJ=
18442         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18443   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18444   ac_status=$?
18445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446   (exit $ac_status); }
18447         then
18448           archive_cmds_need_lc_GCJ=no
18449         else
18450           archive_cmds_need_lc_GCJ=yes
18451         fi
18452         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18453       else
18454         cat conftest.err 1>&5
18455       fi
18456       $rm conftest*
18457       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18458 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18459       ;;
18460     esac
18461   fi
18462   ;;
18463 esac
18464
18465 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18466 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18467 library_names_spec=
18468 libname_spec='lib$name'
18469 soname_spec=
18470 shrext_cmds=".so"
18471 postinstall_cmds=
18472 postuninstall_cmds=
18473 finish_cmds=
18474 finish_eval=
18475 shlibpath_var=
18476 shlibpath_overrides_runpath=unknown
18477 version_type=none
18478 dynamic_linker="$host_os ld.so"
18479 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18480 if test "$GCC" = yes; then
18481   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18482   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18483     # if the path contains ";" then we assume it to be the separator
18484     # otherwise default to the standard path separator (i.e. ":") - it is
18485     # assumed that no part of a normal pathname contains ";" but that should
18486     # okay in the real world where ";" in dirpaths is itself problematic.
18487     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18488   else
18489     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18490   fi
18491 else
18492   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18493 fi
18494 need_lib_prefix=unknown
18495 hardcode_into_libs=no
18496
18497 # when you set need_version to no, make sure it does not cause -set_version
18498 # flags to be left without arguments
18499 need_version=unknown
18500
18501 case $host_os in
18502 aix3*)
18503   version_type=linux
18504   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18505   shlibpath_var=LIBPATH
18506
18507   # AIX 3 has no versioning support, so we append a major version to the name.
18508   soname_spec='${libname}${release}${shared_ext}$major'
18509   ;;
18510
18511 aix4* | aix5*)
18512   version_type=linux
18513   need_lib_prefix=no
18514   need_version=no
18515   hardcode_into_libs=yes
18516   if test "$host_cpu" = ia64; then
18517     # AIX 5 supports IA64
18518     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18519     shlibpath_var=LD_LIBRARY_PATH
18520   else
18521     # With GCC up to 2.95.x, collect2 would create an import file
18522     # for dependence libraries.  The import file would start with
18523     # the line `#! .'.  This would cause the generated library to
18524     # depend on `.', always an invalid library.  This was fixed in
18525     # development snapshots of GCC prior to 3.0.
18526     case $host_os in
18527       aix4 | aix4.[01] | aix4.[01].*)
18528       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18529            echo ' yes '
18530            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18531         :
18532       else
18533         can_build_shared=no
18534       fi
18535       ;;
18536     esac
18537     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18538     # soname into executable. Probably we can add versioning support to
18539     # collect2, so additional links can be useful in future.
18540     if test "$aix_use_runtimelinking" = yes; then
18541       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18542       # instead of lib<name>.a to let people know that these are not
18543       # typical AIX shared libraries.
18544       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18545     else
18546       # We preserve .a as extension for shared libraries through AIX4.2
18547       # and later when we are not doing run time linking.
18548       library_names_spec='${libname}${release}.a $libname.a'
18549       soname_spec='${libname}${release}${shared_ext}$major'
18550     fi
18551     shlibpath_var=LIBPATH
18552   fi
18553   ;;
18554
18555 amigaos*)
18556   library_names_spec='$libname.ixlibrary $libname.a'
18557   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18558   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'
18559   ;;
18560
18561 beos*)
18562   library_names_spec='${libname}${shared_ext}'
18563   dynamic_linker="$host_os ld.so"
18564   shlibpath_var=LIBRARY_PATH
18565   ;;
18566
18567 bsdi[45]*)
18568   version_type=linux
18569   need_version=no
18570   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18571   soname_spec='${libname}${release}${shared_ext}$major'
18572   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18573   shlibpath_var=LD_LIBRARY_PATH
18574   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18575   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18576   # the default ld.so.conf also contains /usr/contrib/lib and
18577   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18578   # libtool to hard-code these into programs
18579   ;;
18580
18581 cygwin* | mingw* | pw32*)
18582   version_type=windows
18583   shrext_cmds=".dll"
18584   need_version=no
18585   need_lib_prefix=no
18586
18587   case $GCC,$host_os in
18588   yes,cygwin* | yes,mingw* | yes,pw32*)
18589     library_names_spec='$libname.dll.a'
18590     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18591     postinstall_cmds='base_file=`basename \${file}`~
18592       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18593       dldir=$destdir/`dirname \$dlpath`~
18594       test -d \$dldir || mkdir -p \$dldir~
18595       $install_prog $dir/$dlname \$dldir/$dlname~
18596       chmod a+x \$dldir/$dlname'
18597     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18598       dlpath=$dir/\$dldll~
18599        $rm \$dlpath'
18600     shlibpath_overrides_runpath=yes
18601
18602     case $host_os in
18603     cygwin*)
18604       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18605       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18606       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18607       ;;
18608     mingw*)
18609       # MinGW DLLs use traditional 'lib' prefix
18610       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18611       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18612       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18613         # It is most probably a Windows format PATH printed by
18614         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18615         # path with ; separators, and with drive letters. We can handle the
18616         # drive letters (cygwin fileutils understands them), so leave them,
18617         # especially as we might pass files found there to a mingw objdump,
18618         # which wouldn't understand a cygwinified path. Ahh.
18619         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18620       else
18621         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18622       fi
18623       ;;
18624     pw32*)
18625       # pw32 DLLs use 'pw' prefix rather than 'lib'
18626       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18627       ;;
18628     esac
18629     ;;
18630
18631   *)
18632     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18633     ;;
18634   esac
18635   dynamic_linker='Win32 ld.exe'
18636   # FIXME: first we should search . and the directory the executable is in
18637   shlibpath_var=PATH
18638   ;;
18639
18640 darwin* | rhapsody*)
18641   dynamic_linker="$host_os dyld"
18642   version_type=darwin
18643   need_lib_prefix=no
18644   need_version=no
18645   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18646   soname_spec='${libname}${release}${major}$shared_ext'
18647   shlibpath_overrides_runpath=yes
18648   shlibpath_var=DYLD_LIBRARY_PATH
18649   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18650   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18651   if test "$GCC" = yes; then
18652     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"`
18653   else
18654     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18655   fi
18656   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18657   ;;
18658
18659 dgux*)
18660   version_type=linux
18661   need_lib_prefix=no
18662   need_version=no
18663   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18664   soname_spec='${libname}${release}${shared_ext}$major'
18665   shlibpath_var=LD_LIBRARY_PATH
18666   ;;
18667
18668 freebsd1*)
18669   dynamic_linker=no
18670   ;;
18671
18672 kfreebsd*-gnu)
18673   version_type=linux
18674   need_lib_prefix=no
18675   need_version=no
18676   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18677   soname_spec='${libname}${release}${shared_ext}$major'
18678   shlibpath_var=LD_LIBRARY_PATH
18679   shlibpath_overrides_runpath=no
18680   hardcode_into_libs=yes
18681   dynamic_linker='GNU ld.so'
18682   ;;
18683
18684 freebsd* | dragonfly*)
18685   # DragonFly does not have aout.  When/if they implement a new
18686   # versioning mechanism, adjust this.
18687   if test -x /usr/bin/objformat; then
18688     objformat=`/usr/bin/objformat`
18689   else
18690     case $host_os in
18691     freebsd[123]*) objformat=aout ;;
18692     *) objformat=elf ;;
18693     esac
18694   fi
18695   version_type=freebsd-$objformat
18696   case $version_type in
18697     freebsd-elf*)
18698       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18699       need_version=no
18700       need_lib_prefix=no
18701       ;;
18702     freebsd-*)
18703       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18704       need_version=yes
18705       ;;
18706   esac
18707   shlibpath_var=LD_LIBRARY_PATH
18708   case $host_os in
18709   freebsd2*)
18710     shlibpath_overrides_runpath=yes
18711     ;;
18712   freebsd3.[01]* | freebsdelf3.[01]*)
18713     shlibpath_overrides_runpath=yes
18714     hardcode_into_libs=yes
18715     ;;
18716   *) # from 3.2 on
18717     shlibpath_overrides_runpath=no
18718     hardcode_into_libs=yes
18719     ;;
18720   esac
18721   ;;
18722
18723 gnu*)
18724   version_type=linux
18725   need_lib_prefix=no
18726   need_version=no
18727   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18728   soname_spec='${libname}${release}${shared_ext}$major'
18729   shlibpath_var=LD_LIBRARY_PATH
18730   hardcode_into_libs=yes
18731   ;;
18732
18733 hpux9* | hpux10* | hpux11*)
18734   # Give a soname corresponding to the major version so that dld.sl refuses to
18735   # link against other versions.
18736   version_type=sunos
18737   need_lib_prefix=no
18738   need_version=no
18739   case $host_cpu in
18740   ia64*)
18741     shrext_cmds='.so'
18742     hardcode_into_libs=yes
18743     dynamic_linker="$host_os dld.so"
18744     shlibpath_var=LD_LIBRARY_PATH
18745     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18746     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18747     soname_spec='${libname}${release}${shared_ext}$major'
18748     if test "X$HPUX_IA64_MODE" = X32; then
18749       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18750     else
18751       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18752     fi
18753     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18754     ;;
18755    hppa*64*)
18756      shrext_cmds='.sl'
18757      hardcode_into_libs=yes
18758      dynamic_linker="$host_os dld.sl"
18759      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18760      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18761      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18762      soname_spec='${libname}${release}${shared_ext}$major'
18763      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18764      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18765      ;;
18766    *)
18767     shrext_cmds='.sl'
18768     dynamic_linker="$host_os dld.sl"
18769     shlibpath_var=SHLIB_PATH
18770     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18771     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18772     soname_spec='${libname}${release}${shared_ext}$major'
18773     ;;
18774   esac
18775   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18776   postinstall_cmds='chmod 555 $lib'
18777   ;;
18778
18779 irix5* | irix6* | nonstopux*)
18780   case $host_os in
18781     nonstopux*) version_type=nonstopux ;;
18782     *)
18783         if test "$lt_cv_prog_gnu_ld" = yes; then
18784                 version_type=linux
18785         else
18786                 version_type=irix
18787         fi ;;
18788   esac
18789   need_lib_prefix=no
18790   need_version=no
18791   soname_spec='${libname}${release}${shared_ext}$major'
18792   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18793   case $host_os in
18794   irix5* | nonstopux*)
18795     libsuff= shlibsuff=
18796     ;;
18797   *)
18798     case $LD in # libtool.m4 will add one of these switches to LD
18799     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18800       libsuff= shlibsuff= libmagic=32-bit;;
18801     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18802       libsuff=32 shlibsuff=N32 libmagic=N32;;
18803     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18804       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18805     *) libsuff= shlibsuff= libmagic=never-match;;
18806     esac
18807     ;;
18808   esac
18809   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18810   shlibpath_overrides_runpath=no
18811   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18812   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18813   hardcode_into_libs=yes
18814   ;;
18815
18816 # No shared lib support for Linux oldld, aout, or coff.
18817 linux*oldld* | linux*aout* | linux*coff*)
18818   dynamic_linker=no
18819   ;;
18820
18821 # This must be Linux ELF.
18822 linux*)
18823   version_type=linux
18824   need_lib_prefix=no
18825   need_version=no
18826   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18827   soname_spec='${libname}${release}${shared_ext}$major'
18828   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18829   shlibpath_var=LD_LIBRARY_PATH
18830   shlibpath_overrides_runpath=no
18831   # This implies no fast_install, which is unacceptable.
18832   # Some rework will be needed to allow for fast_install
18833   # before this can be enabled.
18834   hardcode_into_libs=yes
18835
18836   # Append ld.so.conf contents to the search path
18837   if test -f /etc/ld.so.conf; then
18838     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18839     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18840   fi
18841
18842   # We used to test for /lib/ld.so.1 and disable shared libraries on
18843   # powerpc, because MkLinux only supported shared libraries with the
18844   # GNU dynamic linker.  Since this was broken with cross compilers,
18845   # most powerpc-linux boxes support dynamic linking these days and
18846   # people can always --disable-shared, the test was removed, and we
18847   # assume the GNU/Linux dynamic linker is in use.
18848   dynamic_linker='GNU/Linux ld.so'
18849   ;;
18850
18851 netbsdelf*-gnu)
18852   version_type=linux
18853   need_lib_prefix=no
18854   need_version=no
18855   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18856   soname_spec='${libname}${release}${shared_ext}$major'
18857   shlibpath_var=LD_LIBRARY_PATH
18858   shlibpath_overrides_runpath=no
18859   hardcode_into_libs=yes
18860   dynamic_linker='NetBSD ld.elf_so'
18861   ;;
18862
18863 knetbsd*-gnu)
18864   version_type=linux
18865   need_lib_prefix=no
18866   need_version=no
18867   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18868   soname_spec='${libname}${release}${shared_ext}$major'
18869   shlibpath_var=LD_LIBRARY_PATH
18870   shlibpath_overrides_runpath=no
18871   hardcode_into_libs=yes
18872   dynamic_linker='GNU ld.so'
18873   ;;
18874
18875 netbsd*)
18876   version_type=sunos
18877   need_lib_prefix=no
18878   need_version=no
18879   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18880     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18881     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18882     dynamic_linker='NetBSD (a.out) ld.so'
18883   else
18884     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18885     soname_spec='${libname}${release}${shared_ext}$major'
18886     dynamic_linker='NetBSD ld.elf_so'
18887   fi
18888   shlibpath_var=LD_LIBRARY_PATH
18889   shlibpath_overrides_runpath=yes
18890   hardcode_into_libs=yes
18891   ;;
18892
18893 newsos6)
18894   version_type=linux
18895   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18896   shlibpath_var=LD_LIBRARY_PATH
18897   shlibpath_overrides_runpath=yes
18898   ;;
18899
18900 nto-qnx*)
18901   version_type=linux
18902   need_lib_prefix=no
18903   need_version=no
18904   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18905   soname_spec='${libname}${release}${shared_ext}$major'
18906   shlibpath_var=LD_LIBRARY_PATH
18907   shlibpath_overrides_runpath=yes
18908   ;;
18909
18910 openbsd*)
18911   version_type=sunos
18912   need_lib_prefix=no
18913   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18914   case $host_os in
18915     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18916     *)                         need_version=no  ;;
18917   esac
18918   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18919   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18920   shlibpath_var=LD_LIBRARY_PATH
18921   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18922     case $host_os in
18923       openbsd2.[89] | openbsd2.[89].*)
18924         shlibpath_overrides_runpath=no
18925         ;;
18926       *)
18927         shlibpath_overrides_runpath=yes
18928         ;;
18929       esac
18930   else
18931     shlibpath_overrides_runpath=yes
18932   fi
18933   ;;
18934
18935 os2*)
18936   libname_spec='$name'
18937   shrext_cmds=".dll"
18938   need_lib_prefix=no
18939   library_names_spec='$libname${shared_ext} $libname.a'
18940   dynamic_linker='OS/2 ld.exe'
18941   shlibpath_var=LIBPATH
18942   ;;
18943
18944 osf3* | osf4* | osf5*)
18945   version_type=osf
18946   need_lib_prefix=no
18947   need_version=no
18948   soname_spec='${libname}${release}${shared_ext}$major'
18949   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18950   shlibpath_var=LD_LIBRARY_PATH
18951   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18952   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18953   ;;
18954
18955 sco3.2v5*)
18956   version_type=osf
18957   soname_spec='${libname}${release}${shared_ext}$major'
18958   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18959   shlibpath_var=LD_LIBRARY_PATH
18960   ;;
18961
18962 solaris*)
18963   version_type=linux
18964   need_lib_prefix=no
18965   need_version=no
18966   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18967   soname_spec='${libname}${release}${shared_ext}$major'
18968   shlibpath_var=LD_LIBRARY_PATH
18969   shlibpath_overrides_runpath=yes
18970   hardcode_into_libs=yes
18971   # ldd complains unless libraries are executable
18972   postinstall_cmds='chmod +x $lib'
18973   ;;
18974
18975 sunos4*)
18976   version_type=sunos
18977   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18978   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18979   shlibpath_var=LD_LIBRARY_PATH
18980   shlibpath_overrides_runpath=yes
18981   if test "$with_gnu_ld" = yes; then
18982     need_lib_prefix=no
18983   fi
18984   need_version=yes
18985   ;;
18986
18987 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18988   version_type=linux
18989   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18990   soname_spec='${libname}${release}${shared_ext}$major'
18991   shlibpath_var=LD_LIBRARY_PATH
18992   case $host_vendor in
18993     sni)
18994       shlibpath_overrides_runpath=no
18995       need_lib_prefix=no
18996       export_dynamic_flag_spec='${wl}-Blargedynsym'
18997       runpath_var=LD_RUN_PATH
18998       ;;
18999     siemens)
19000       need_lib_prefix=no
19001       ;;
19002     motorola)
19003       need_lib_prefix=no
19004       need_version=no
19005       shlibpath_overrides_runpath=no
19006       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19007       ;;
19008   esac
19009   ;;
19010
19011 sysv4*MP*)
19012   if test -d /usr/nec ;then
19013     version_type=linux
19014     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19015     soname_spec='$libname${shared_ext}.$major'
19016     shlibpath_var=LD_LIBRARY_PATH
19017   fi
19018   ;;
19019
19020 uts4*)
19021   version_type=linux
19022   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19023   soname_spec='${libname}${release}${shared_ext}$major'
19024   shlibpath_var=LD_LIBRARY_PATH
19025   ;;
19026
19027 *)
19028   dynamic_linker=no
19029   ;;
19030 esac
19031 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19032 echo "${ECHO_T}$dynamic_linker" >&6
19033 test "$dynamic_linker" = no && can_build_shared=no
19034
19035 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19036 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19037 hardcode_action_GCJ=
19038 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19039    test -n "$runpath_var_GCJ" || \
19040    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19041
19042   # We can hardcode non-existant directories.
19043   if test "$hardcode_direct_GCJ" != no &&
19044      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19045      # have to relink, otherwise we might link with an installed library
19046      # when we should be linking with a yet-to-be-installed one
19047      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19048      test "$hardcode_minus_L_GCJ" != no; then
19049     # Linking always hardcodes the temporary library directory.
19050     hardcode_action_GCJ=relink
19051   else
19052     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19053     hardcode_action_GCJ=immediate
19054   fi
19055 else
19056   # We cannot hardcode anything, or else we can only hardcode existing
19057   # directories.
19058   hardcode_action_GCJ=unsupported
19059 fi
19060 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19061 echo "${ECHO_T}$hardcode_action_GCJ" >&6
19062
19063 if test "$hardcode_action_GCJ" = relink; then
19064   # Fast installation is not supported
19065   enable_fast_install=no
19066 elif test "$shlibpath_overrides_runpath" = yes ||
19067      test "$enable_shared" = no; then
19068   # Fast installation is not necessary
19069   enable_fast_install=needless
19070 fi
19071
19072 striplib=
19073 old_striplib=
19074 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19075 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19076 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
19077   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19078   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19079   echo "$as_me:$LINENO: result: yes" >&5
19080 echo "${ECHO_T}yes" >&6
19081 else
19082 # FIXME - insert some real tests, host_os isn't really good enough
19083   case $host_os in
19084    darwin*)
19085        if test -n "$STRIP" ; then
19086          striplib="$STRIP -x"
19087          echo "$as_me:$LINENO: result: yes" >&5
19088 echo "${ECHO_T}yes" >&6
19089        else
19090   echo "$as_me:$LINENO: result: no" >&5
19091 echo "${ECHO_T}no" >&6
19092 fi
19093        ;;
19094    *)
19095   echo "$as_me:$LINENO: result: no" >&5
19096 echo "${ECHO_T}no" >&6
19097     ;;
19098   esac
19099 fi
19100
19101 if test "x$enable_dlopen" != xyes; then
19102   enable_dlopen=unknown
19103   enable_dlopen_self=unknown
19104   enable_dlopen_self_static=unknown
19105 else
19106   lt_cv_dlopen=no
19107   lt_cv_dlopen_libs=
19108
19109   case $host_os in
19110   beos*)
19111     lt_cv_dlopen="load_add_on"
19112     lt_cv_dlopen_libs=
19113     lt_cv_dlopen_self=yes
19114     ;;
19115
19116   mingw* | pw32*)
19117     lt_cv_dlopen="LoadLibrary"
19118     lt_cv_dlopen_libs=
19119    ;;
19120
19121   cygwin*)
19122     lt_cv_dlopen="dlopen"
19123     lt_cv_dlopen_libs=
19124    ;;
19125
19126   darwin*)
19127   # if libdl is installed we need to link against it
19128     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19129 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19130 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19131   echo $ECHO_N "(cached) $ECHO_C" >&6
19132 else
19133   ac_check_lib_save_LIBS=$LIBS
19134 LIBS="-ldl  $LIBS"
19135 cat >conftest.$ac_ext <<_ACEOF
19136 /* confdefs.h.  */
19137 _ACEOF
19138 cat confdefs.h >>conftest.$ac_ext
19139 cat >>conftest.$ac_ext <<_ACEOF
19140 /* end confdefs.h.  */
19141
19142 /* Override any gcc2 internal prototype to avoid an error.  */
19143 #ifdef __cplusplus
19144 extern "C"
19145 #endif
19146 /* We use char because int might match the return type of a gcc2
19147    builtin and then its argument prototype would still apply.  */
19148 char dlopen ();
19149 int
19150 main ()
19151 {
19152 dlopen ();
19153   ;
19154   return 0;
19155 }
19156 _ACEOF
19157 rm -f conftest.$ac_objext conftest$ac_exeext
19158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19159   (eval $ac_link) 2>conftest.er1
19160   ac_status=$?
19161   grep -v '^ *+' conftest.er1 >conftest.err
19162   rm -f conftest.er1
19163   cat conftest.err >&5
19164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165   (exit $ac_status); } &&
19166          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19168   (eval $ac_try) 2>&5
19169   ac_status=$?
19170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171   (exit $ac_status); }; } &&
19172          { ac_try='test -s conftest$ac_exeext'
19173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19174   (eval $ac_try) 2>&5
19175   ac_status=$?
19176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19177   (exit $ac_status); }; }; then
19178   ac_cv_lib_dl_dlopen=yes
19179 else
19180   echo "$as_me: failed program was:" >&5
19181 sed 's/^/| /' conftest.$ac_ext >&5
19182
19183 ac_cv_lib_dl_dlopen=no
19184 fi
19185 rm -f conftest.err conftest.$ac_objext \
19186       conftest$ac_exeext conftest.$ac_ext
19187 LIBS=$ac_check_lib_save_LIBS
19188 fi
19189 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19190 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19191 if test $ac_cv_lib_dl_dlopen = yes; then
19192   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19193 else
19194
19195     lt_cv_dlopen="dyld"
19196     lt_cv_dlopen_libs=
19197     lt_cv_dlopen_self=yes
19198
19199 fi
19200
19201    ;;
19202
19203   *)
19204     echo "$as_me:$LINENO: checking for shl_load" >&5
19205 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19206 if test "${ac_cv_func_shl_load+set}" = set; then
19207   echo $ECHO_N "(cached) $ECHO_C" >&6
19208 else
19209   cat >conftest.$ac_ext <<_ACEOF
19210 /* confdefs.h.  */
19211 _ACEOF
19212 cat confdefs.h >>conftest.$ac_ext
19213 cat >>conftest.$ac_ext <<_ACEOF
19214 /* end confdefs.h.  */
19215 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19216    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19217 #define shl_load innocuous_shl_load
19218
19219 /* System header to define __stub macros and hopefully few prototypes,
19220     which can conflict with char shl_load (); below.
19221     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19222     <limits.h> exists even on freestanding compilers.  */
19223
19224 #ifdef __STDC__
19225 # include <limits.h>
19226 #else
19227 # include <assert.h>
19228 #endif
19229
19230 #undef shl_load
19231
19232 /* Override any gcc2 internal prototype to avoid an error.  */
19233 #ifdef __cplusplus
19234 extern "C"
19235 {
19236 #endif
19237 /* We use char because int might match the return type of a gcc2
19238    builtin and then its argument prototype would still apply.  */
19239 char shl_load ();
19240 /* The GNU C library defines this for functions which it implements
19241     to always fail with ENOSYS.  Some functions are actually named
19242     something starting with __ and the normal name is an alias.  */
19243 #if defined (__stub_shl_load) || defined (__stub___shl_load)
19244 choke me
19245 #else
19246 char (*f) () = shl_load;
19247 #endif
19248 #ifdef __cplusplus
19249 }
19250 #endif
19251
19252 int
19253 main ()
19254 {
19255 return f != shl_load;
19256   ;
19257   return 0;
19258 }
19259 _ACEOF
19260 rm -f conftest.$ac_objext conftest$ac_exeext
19261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19262   (eval $ac_link) 2>conftest.er1
19263   ac_status=$?
19264   grep -v '^ *+' conftest.er1 >conftest.err
19265   rm -f conftest.er1
19266   cat conftest.err >&5
19267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268   (exit $ac_status); } &&
19269          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19271   (eval $ac_try) 2>&5
19272   ac_status=$?
19273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19274   (exit $ac_status); }; } &&
19275          { ac_try='test -s conftest$ac_exeext'
19276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19277   (eval $ac_try) 2>&5
19278   ac_status=$?
19279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19280   (exit $ac_status); }; }; then
19281   ac_cv_func_shl_load=yes
19282 else
19283   echo "$as_me: failed program was:" >&5
19284 sed 's/^/| /' conftest.$ac_ext >&5
19285
19286 ac_cv_func_shl_load=no
19287 fi
19288 rm -f conftest.err conftest.$ac_objext \
19289       conftest$ac_exeext conftest.$ac_ext
19290 fi
19291 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19292 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19293 if test $ac_cv_func_shl_load = yes; then
19294   lt_cv_dlopen="shl_load"
19295 else
19296   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19297 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19298 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19299   echo $ECHO_N "(cached) $ECHO_C" >&6
19300 else
19301   ac_check_lib_save_LIBS=$LIBS
19302 LIBS="-ldld  $LIBS"
19303 cat >conftest.$ac_ext <<_ACEOF
19304 /* confdefs.h.  */
19305 _ACEOF
19306 cat confdefs.h >>conftest.$ac_ext
19307 cat >>conftest.$ac_ext <<_ACEOF
19308 /* end confdefs.h.  */
19309
19310 /* Override any gcc2 internal prototype to avoid an error.  */
19311 #ifdef __cplusplus
19312 extern "C"
19313 #endif
19314 /* We use char because int might match the return type of a gcc2
19315    builtin and then its argument prototype would still apply.  */
19316 char shl_load ();
19317 int
19318 main ()
19319 {
19320 shl_load ();
19321   ;
19322   return 0;
19323 }
19324 _ACEOF
19325 rm -f conftest.$ac_objext conftest$ac_exeext
19326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19327   (eval $ac_link) 2>conftest.er1
19328   ac_status=$?
19329   grep -v '^ *+' conftest.er1 >conftest.err
19330   rm -f conftest.er1
19331   cat conftest.err >&5
19332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333   (exit $ac_status); } &&
19334          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19336   (eval $ac_try) 2>&5
19337   ac_status=$?
19338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339   (exit $ac_status); }; } &&
19340          { ac_try='test -s conftest$ac_exeext'
19341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19342   (eval $ac_try) 2>&5
19343   ac_status=$?
19344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345   (exit $ac_status); }; }; then
19346   ac_cv_lib_dld_shl_load=yes
19347 else
19348   echo "$as_me: failed program was:" >&5
19349 sed 's/^/| /' conftest.$ac_ext >&5
19350
19351 ac_cv_lib_dld_shl_load=no
19352 fi
19353 rm -f conftest.err conftest.$ac_objext \
19354       conftest$ac_exeext conftest.$ac_ext
19355 LIBS=$ac_check_lib_save_LIBS
19356 fi
19357 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19358 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19359 if test $ac_cv_lib_dld_shl_load = yes; then
19360   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19361 else
19362   echo "$as_me:$LINENO: checking for dlopen" >&5
19363 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19364 if test "${ac_cv_func_dlopen+set}" = set; then
19365   echo $ECHO_N "(cached) $ECHO_C" >&6
19366 else
19367   cat >conftest.$ac_ext <<_ACEOF
19368 /* confdefs.h.  */
19369 _ACEOF
19370 cat confdefs.h >>conftest.$ac_ext
19371 cat >>conftest.$ac_ext <<_ACEOF
19372 /* end confdefs.h.  */
19373 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19374    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19375 #define dlopen innocuous_dlopen
19376
19377 /* System header to define __stub macros and hopefully few prototypes,
19378     which can conflict with char dlopen (); below.
19379     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19380     <limits.h> exists even on freestanding compilers.  */
19381
19382 #ifdef __STDC__
19383 # include <limits.h>
19384 #else
19385 # include <assert.h>
19386 #endif
19387
19388 #undef dlopen
19389
19390 /* Override any gcc2 internal prototype to avoid an error.  */
19391 #ifdef __cplusplus
19392 extern "C"
19393 {
19394 #endif
19395 /* We use char because int might match the return type of a gcc2
19396    builtin and then its argument prototype would still apply.  */
19397 char dlopen ();
19398 /* The GNU C library defines this for functions which it implements
19399     to always fail with ENOSYS.  Some functions are actually named
19400     something starting with __ and the normal name is an alias.  */
19401 #if defined (__stub_dlopen) || defined (__stub___dlopen)
19402 choke me
19403 #else
19404 char (*f) () = dlopen;
19405 #endif
19406 #ifdef __cplusplus
19407 }
19408 #endif
19409
19410 int
19411 main ()
19412 {
19413 return f != dlopen;
19414   ;
19415   return 0;
19416 }
19417 _ACEOF
19418 rm -f conftest.$ac_objext conftest$ac_exeext
19419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19420   (eval $ac_link) 2>conftest.er1
19421   ac_status=$?
19422   grep -v '^ *+' conftest.er1 >conftest.err
19423   rm -f conftest.er1
19424   cat conftest.err >&5
19425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426   (exit $ac_status); } &&
19427          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19429   (eval $ac_try) 2>&5
19430   ac_status=$?
19431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432   (exit $ac_status); }; } &&
19433          { ac_try='test -s conftest$ac_exeext'
19434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19435   (eval $ac_try) 2>&5
19436   ac_status=$?
19437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19438   (exit $ac_status); }; }; then
19439   ac_cv_func_dlopen=yes
19440 else
19441   echo "$as_me: failed program was:" >&5
19442 sed 's/^/| /' conftest.$ac_ext >&5
19443
19444 ac_cv_func_dlopen=no
19445 fi
19446 rm -f conftest.err conftest.$ac_objext \
19447       conftest$ac_exeext conftest.$ac_ext
19448 fi
19449 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19450 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19451 if test $ac_cv_func_dlopen = yes; then
19452   lt_cv_dlopen="dlopen"
19453 else
19454   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19455 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19456 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19457   echo $ECHO_N "(cached) $ECHO_C" >&6
19458 else
19459   ac_check_lib_save_LIBS=$LIBS
19460 LIBS="-ldl  $LIBS"
19461 cat >conftest.$ac_ext <<_ACEOF
19462 /* confdefs.h.  */
19463 _ACEOF
19464 cat confdefs.h >>conftest.$ac_ext
19465 cat >>conftest.$ac_ext <<_ACEOF
19466 /* end confdefs.h.  */
19467
19468 /* Override any gcc2 internal prototype to avoid an error.  */
19469 #ifdef __cplusplus
19470 extern "C"
19471 #endif
19472 /* We use char because int might match the return type of a gcc2
19473    builtin and then its argument prototype would still apply.  */
19474 char dlopen ();
19475 int
19476 main ()
19477 {
19478 dlopen ();
19479   ;
19480   return 0;
19481 }
19482 _ACEOF
19483 rm -f conftest.$ac_objext conftest$ac_exeext
19484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19485   (eval $ac_link) 2>conftest.er1
19486   ac_status=$?
19487   grep -v '^ *+' conftest.er1 >conftest.err
19488   rm -f conftest.er1
19489   cat conftest.err >&5
19490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491   (exit $ac_status); } &&
19492          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19494   (eval $ac_try) 2>&5
19495   ac_status=$?
19496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19497   (exit $ac_status); }; } &&
19498          { ac_try='test -s conftest$ac_exeext'
19499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19500   (eval $ac_try) 2>&5
19501   ac_status=$?
19502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503   (exit $ac_status); }; }; then
19504   ac_cv_lib_dl_dlopen=yes
19505 else
19506   echo "$as_me: failed program was:" >&5
19507 sed 's/^/| /' conftest.$ac_ext >&5
19508
19509 ac_cv_lib_dl_dlopen=no
19510 fi
19511 rm -f conftest.err conftest.$ac_objext \
19512       conftest$ac_exeext conftest.$ac_ext
19513 LIBS=$ac_check_lib_save_LIBS
19514 fi
19515 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19516 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19517 if test $ac_cv_lib_dl_dlopen = yes; then
19518   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19519 else
19520   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19521 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19522 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19523   echo $ECHO_N "(cached) $ECHO_C" >&6
19524 else
19525   ac_check_lib_save_LIBS=$LIBS
19526 LIBS="-lsvld  $LIBS"
19527 cat >conftest.$ac_ext <<_ACEOF
19528 /* confdefs.h.  */
19529 _ACEOF
19530 cat confdefs.h >>conftest.$ac_ext
19531 cat >>conftest.$ac_ext <<_ACEOF
19532 /* end confdefs.h.  */
19533
19534 /* Override any gcc2 internal prototype to avoid an error.  */
19535 #ifdef __cplusplus
19536 extern "C"
19537 #endif
19538 /* We use char because int might match the return type of a gcc2
19539    builtin and then its argument prototype would still apply.  */
19540 char dlopen ();
19541 int
19542 main ()
19543 {
19544 dlopen ();
19545   ;
19546   return 0;
19547 }
19548 _ACEOF
19549 rm -f conftest.$ac_objext conftest$ac_exeext
19550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19551   (eval $ac_link) 2>conftest.er1
19552   ac_status=$?
19553   grep -v '^ *+' conftest.er1 >conftest.err
19554   rm -f conftest.er1
19555   cat conftest.err >&5
19556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557   (exit $ac_status); } &&
19558          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19560   (eval $ac_try) 2>&5
19561   ac_status=$?
19562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563   (exit $ac_status); }; } &&
19564          { ac_try='test -s conftest$ac_exeext'
19565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19566   (eval $ac_try) 2>&5
19567   ac_status=$?
19568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569   (exit $ac_status); }; }; then
19570   ac_cv_lib_svld_dlopen=yes
19571 else
19572   echo "$as_me: failed program was:" >&5
19573 sed 's/^/| /' conftest.$ac_ext >&5
19574
19575 ac_cv_lib_svld_dlopen=no
19576 fi
19577 rm -f conftest.err conftest.$ac_objext \
19578       conftest$ac_exeext conftest.$ac_ext
19579 LIBS=$ac_check_lib_save_LIBS
19580 fi
19581 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19582 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19583 if test $ac_cv_lib_svld_dlopen = yes; then
19584   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19585 else
19586   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19587 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19588 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19589   echo $ECHO_N "(cached) $ECHO_C" >&6
19590 else
19591   ac_check_lib_save_LIBS=$LIBS
19592 LIBS="-ldld  $LIBS"
19593 cat >conftest.$ac_ext <<_ACEOF
19594 /* confdefs.h.  */
19595 _ACEOF
19596 cat confdefs.h >>conftest.$ac_ext
19597 cat >>conftest.$ac_ext <<_ACEOF
19598 /* end confdefs.h.  */
19599
19600 /* Override any gcc2 internal prototype to avoid an error.  */
19601 #ifdef __cplusplus
19602 extern "C"
19603 #endif
19604 /* We use char because int might match the return type of a gcc2
19605    builtin and then its argument prototype would still apply.  */
19606 char dld_link ();
19607 int
19608 main ()
19609 {
19610 dld_link ();
19611   ;
19612   return 0;
19613 }
19614 _ACEOF
19615 rm -f conftest.$ac_objext conftest$ac_exeext
19616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19617   (eval $ac_link) 2>conftest.er1
19618   ac_status=$?
19619   grep -v '^ *+' conftest.er1 >conftest.err
19620   rm -f conftest.er1
19621   cat conftest.err >&5
19622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19623   (exit $ac_status); } &&
19624          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19626   (eval $ac_try) 2>&5
19627   ac_status=$?
19628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629   (exit $ac_status); }; } &&
19630          { ac_try='test -s conftest$ac_exeext'
19631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19632   (eval $ac_try) 2>&5
19633   ac_status=$?
19634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635   (exit $ac_status); }; }; then
19636   ac_cv_lib_dld_dld_link=yes
19637 else
19638   echo "$as_me: failed program was:" >&5
19639 sed 's/^/| /' conftest.$ac_ext >&5
19640
19641 ac_cv_lib_dld_dld_link=no
19642 fi
19643 rm -f conftest.err conftest.$ac_objext \
19644       conftest$ac_exeext conftest.$ac_ext
19645 LIBS=$ac_check_lib_save_LIBS
19646 fi
19647 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19648 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19649 if test $ac_cv_lib_dld_dld_link = yes; then
19650   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19651 fi
19652
19653
19654 fi
19655
19656
19657 fi
19658
19659
19660 fi
19661
19662
19663 fi
19664
19665
19666 fi
19667
19668     ;;
19669   esac
19670
19671   if test "x$lt_cv_dlopen" != xno; then
19672     enable_dlopen=yes
19673   else
19674     enable_dlopen=no
19675   fi
19676
19677   case $lt_cv_dlopen in
19678   dlopen)
19679     save_CPPFLAGS="$CPPFLAGS"
19680     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19681
19682     save_LDFLAGS="$LDFLAGS"
19683     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19684
19685     save_LIBS="$LIBS"
19686     LIBS="$lt_cv_dlopen_libs $LIBS"
19687
19688     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19689 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19690 if test "${lt_cv_dlopen_self+set}" = set; then
19691   echo $ECHO_N "(cached) $ECHO_C" >&6
19692 else
19693           if test "$cross_compiling" = yes; then :
19694   lt_cv_dlopen_self=cross
19695 else
19696   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19697   lt_status=$lt_dlunknown
19698   cat > conftest.$ac_ext <<EOF
19699 #line 19699 "configure"
19700 #include "confdefs.h"
19701
19702 #if HAVE_DLFCN_H
19703 #include <dlfcn.h>
19704 #endif
19705
19706 #include <stdio.h>
19707
19708 #ifdef RTLD_GLOBAL
19709 #  define LT_DLGLOBAL           RTLD_GLOBAL
19710 #else
19711 #  ifdef DL_GLOBAL
19712 #    define LT_DLGLOBAL         DL_GLOBAL
19713 #  else
19714 #    define LT_DLGLOBAL         0
19715 #  endif
19716 #endif
19717
19718 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19719    find out it does not work in some platform. */
19720 #ifndef LT_DLLAZY_OR_NOW
19721 #  ifdef RTLD_LAZY
19722 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19723 #  else
19724 #    ifdef DL_LAZY
19725 #      define LT_DLLAZY_OR_NOW          DL_LAZY
19726 #    else
19727 #      ifdef RTLD_NOW
19728 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
19729 #      else
19730 #        ifdef DL_NOW
19731 #          define LT_DLLAZY_OR_NOW      DL_NOW
19732 #        else
19733 #          define LT_DLLAZY_OR_NOW      0
19734 #        endif
19735 #      endif
19736 #    endif
19737 #  endif
19738 #endif
19739
19740 #ifdef __cplusplus
19741 extern "C" void exit (int);
19742 #endif
19743
19744 void fnord() { int i=42;}
19745 int main ()
19746 {
19747   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19748   int status = $lt_dlunknown;
19749
19750   if (self)
19751     {
19752       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19753       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19754       /* dlclose (self); */
19755     }
19756
19757     exit (status);
19758 }
19759 EOF
19760   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19761   (eval $ac_link) 2>&5
19762   ac_status=$?
19763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19765     (./conftest; exit; ) >&5 2>/dev/null
19766     lt_status=$?
19767     case x$lt_status in
19768       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19769       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19770       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19771     esac
19772   else :
19773     # compilation failed
19774     lt_cv_dlopen_self=no
19775   fi
19776 fi
19777 rm -fr conftest*
19778
19779
19780 fi
19781 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19782 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19783
19784     if test "x$lt_cv_dlopen_self" = xyes; then
19785       LDFLAGS="$LDFLAGS $link_static_flag"
19786       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19787 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19788 if test "${lt_cv_dlopen_self_static+set}" = set; then
19789   echo $ECHO_N "(cached) $ECHO_C" >&6
19790 else
19791           if test "$cross_compiling" = yes; then :
19792   lt_cv_dlopen_self_static=cross
19793 else
19794   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19795   lt_status=$lt_dlunknown
19796   cat > conftest.$ac_ext <<EOF
19797 #line 19797 "configure"
19798 #include "confdefs.h"
19799
19800 #if HAVE_DLFCN_H
19801 #include <dlfcn.h>
19802 #endif
19803
19804 #include <stdio.h>
19805
19806 #ifdef RTLD_GLOBAL
19807 #  define LT_DLGLOBAL           RTLD_GLOBAL
19808 #else
19809 #  ifdef DL_GLOBAL
19810 #    define LT_DLGLOBAL         DL_GLOBAL
19811 #  else
19812 #    define LT_DLGLOBAL         0
19813 #  endif
19814 #endif
19815
19816 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19817    find out it does not work in some platform. */
19818 #ifndef LT_DLLAZY_OR_NOW
19819 #  ifdef RTLD_LAZY
19820 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19821 #  else
19822 #    ifdef DL_LAZY
19823 #      define LT_DLLAZY_OR_NOW          DL_LAZY
19824 #    else
19825 #      ifdef RTLD_NOW
19826 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
19827 #      else
19828 #        ifdef DL_NOW
19829 #          define LT_DLLAZY_OR_NOW      DL_NOW
19830 #        else
19831 #          define LT_DLLAZY_OR_NOW      0
19832 #        endif
19833 #      endif
19834 #    endif
19835 #  endif
19836 #endif
19837
19838 #ifdef __cplusplus
19839 extern "C" void exit (int);
19840 #endif
19841
19842 void fnord() { int i=42;}
19843 int main ()
19844 {
19845   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19846   int status = $lt_dlunknown;
19847
19848   if (self)
19849     {
19850       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19851       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19852       /* dlclose (self); */
19853     }
19854
19855     exit (status);
19856 }
19857 EOF
19858   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19859   (eval $ac_link) 2>&5
19860   ac_status=$?
19861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19863     (./conftest; exit; ) >&5 2>/dev/null
19864     lt_status=$?
19865     case x$lt_status in
19866       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19867       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19868       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19869     esac
19870   else :
19871     # compilation failed
19872     lt_cv_dlopen_self_static=no
19873   fi
19874 fi
19875 rm -fr conftest*
19876
19877
19878 fi
19879 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19880 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19881     fi
19882
19883     CPPFLAGS="$save_CPPFLAGS"
19884     LDFLAGS="$save_LDFLAGS"
19885     LIBS="$save_LIBS"
19886     ;;
19887   esac
19888
19889   case $lt_cv_dlopen_self in
19890   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19891   *) enable_dlopen_self=unknown ;;
19892   esac
19893
19894   case $lt_cv_dlopen_self_static in
19895   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19896   *) enable_dlopen_self_static=unknown ;;
19897   esac
19898 fi
19899
19900
19901 # The else clause should only fire when bootstrapping the
19902 # libtool distribution, otherwise you forgot to ship ltmain.sh
19903 # with your package, and you will get complaints that there are
19904 # no rules to generate ltmain.sh.
19905 if test -f "$ltmain"; then
19906   # See if we are running on zsh, and set the options which allow our commands through
19907   # without removal of \ escapes.
19908   if test -n "${ZSH_VERSION+set}" ; then
19909     setopt NO_GLOB_SUBST
19910   fi
19911   # Now quote all the things that may contain metacharacters while being
19912   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19913   # variables and quote the copies for generation of the libtool script.
19914   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19915     SED SHELL STRIP \
19916     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19917     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19918     deplibs_check_method reload_flag reload_cmds need_locks \
19919     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19920     lt_cv_sys_global_symbol_to_c_name_address \
19921     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19922     old_postinstall_cmds old_postuninstall_cmds \
19923     compiler_GCJ \
19924     CC_GCJ \
19925     LD_GCJ \
19926     lt_prog_compiler_wl_GCJ \
19927     lt_prog_compiler_pic_GCJ \
19928     lt_prog_compiler_static_GCJ \
19929     lt_prog_compiler_no_builtin_flag_GCJ \
19930     export_dynamic_flag_spec_GCJ \
19931     thread_safe_flag_spec_GCJ \
19932     whole_archive_flag_spec_GCJ \
19933     enable_shared_with_static_runtimes_GCJ \
19934     old_archive_cmds_GCJ \
19935     old_archive_from_new_cmds_GCJ \
19936     predep_objects_GCJ \
19937     postdep_objects_GCJ \
19938     predeps_GCJ \
19939     postdeps_GCJ \
19940     compiler_lib_search_path_GCJ \
19941     archive_cmds_GCJ \
19942     archive_expsym_cmds_GCJ \
19943     postinstall_cmds_GCJ \
19944     postuninstall_cmds_GCJ \
19945     old_archive_from_expsyms_cmds_GCJ \
19946     allow_undefined_flag_GCJ \
19947     no_undefined_flag_GCJ \
19948     export_symbols_cmds_GCJ \
19949     hardcode_libdir_flag_spec_GCJ \
19950     hardcode_libdir_flag_spec_ld_GCJ \
19951     hardcode_libdir_separator_GCJ \
19952     hardcode_automatic_GCJ \
19953     module_cmds_GCJ \
19954     module_expsym_cmds_GCJ \
19955     lt_cv_prog_compiler_c_o_GCJ \
19956     exclude_expsyms_GCJ \
19957     include_expsyms_GCJ; do
19958
19959     case $var in
19960     old_archive_cmds_GCJ | \
19961     old_archive_from_new_cmds_GCJ | \
19962     archive_cmds_GCJ | \
19963     archive_expsym_cmds_GCJ | \
19964     module_cmds_GCJ | \
19965     module_expsym_cmds_GCJ | \
19966     old_archive_from_expsyms_cmds_GCJ | \
19967     export_symbols_cmds_GCJ | \
19968     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19969     postinstall_cmds | postuninstall_cmds | \
19970     old_postinstall_cmds | old_postuninstall_cmds | \
19971     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19972       # Double-quote double-evaled strings.
19973       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19974       ;;
19975     *)
19976       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19977       ;;
19978     esac
19979   done
19980
19981   case $lt_echo in
19982   *'\$0 --fallback-echo"')
19983     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19984     ;;
19985   esac
19986
19987 cfgfile="$ofile"
19988
19989   cat <<__EOF__ >> "$cfgfile"
19990 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19991
19992 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19993
19994 # Shell to use when invoking shell scripts.
19995 SHELL=$lt_SHELL
19996
19997 # Whether or not to build shared libraries.
19998 build_libtool_libs=$enable_shared
19999
20000 # Whether or not to build static libraries.
20001 build_old_libs=$enable_static
20002
20003 # Whether or not to add -lc for building shared libraries.
20004 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20005
20006 # Whether or not to disallow shared libs when runtime libs are static
20007 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20008
20009 # Whether or not to optimize for fast installation.
20010 fast_install=$enable_fast_install
20011
20012 # The host system.
20013 host_alias=$host_alias
20014 host=$host
20015 host_os=$host_os
20016
20017 # The build system.
20018 build_alias=$build_alias
20019 build=$build
20020 build_os=$build_os
20021
20022 # An echo program that does not interpret backslashes.
20023 echo=$lt_echo
20024
20025 # The archiver.
20026 AR=$lt_AR
20027 AR_FLAGS=$lt_AR_FLAGS
20028
20029 # A C compiler.
20030 LTCC=$lt_LTCC
20031
20032 # A language-specific compiler.
20033 CC=$lt_compiler_GCJ
20034
20035 # Is the compiler the GNU C compiler?
20036 with_gcc=$GCC_GCJ
20037
20038 # An ERE matcher.
20039 EGREP=$lt_EGREP
20040
20041 # The linker used to build libraries.
20042 LD=$lt_LD_GCJ
20043
20044 # Whether we need hard or soft links.
20045 LN_S=$lt_LN_S
20046
20047 # A BSD-compatible nm program.
20048 NM=$lt_NM
20049
20050 # A symbol stripping program
20051 STRIP=$lt_STRIP
20052
20053 # Used to examine libraries when file_magic_cmd begins "file"
20054 MAGIC_CMD=$MAGIC_CMD
20055
20056 # Used on cygwin: DLL creation program.
20057 DLLTOOL="$DLLTOOL"
20058
20059 # Used on cygwin: object dumper.
20060 OBJDUMP="$OBJDUMP"
20061
20062 # Used on cygwin: assembler.
20063 AS="$AS"
20064
20065 # The name of the directory that contains temporary libtool files.
20066 objdir=$objdir
20067
20068 # How to create reloadable object files.
20069 reload_flag=$lt_reload_flag
20070 reload_cmds=$lt_reload_cmds
20071
20072 # How to pass a linker flag through the compiler.
20073 wl=$lt_lt_prog_compiler_wl_GCJ
20074
20075 # Object file suffix (normally "o").
20076 objext="$ac_objext"
20077
20078 # Old archive suffix (normally "a").
20079 libext="$libext"
20080
20081 # Shared library suffix (normally ".so").
20082 shrext_cmds='$shrext_cmds'
20083
20084 # Executable file suffix (normally "").
20085 exeext="$exeext"
20086
20087 # Additional compiler flags for building library objects.
20088 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20089 pic_mode=$pic_mode
20090
20091 # What is the maximum length of a command?
20092 max_cmd_len=$lt_cv_sys_max_cmd_len
20093
20094 # Does compiler simultaneously support -c and -o options?
20095 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20096
20097 # Must we lock files when doing compilation?
20098 need_locks=$lt_need_locks
20099
20100 # Do we need the lib prefix for modules?
20101 need_lib_prefix=$need_lib_prefix
20102
20103 # Do we need a version for libraries?
20104 need_version=$need_version
20105
20106 # Whether dlopen is supported.
20107 dlopen_support=$enable_dlopen
20108
20109 # Whether dlopen of programs is supported.
20110 dlopen_self=$enable_dlopen_self
20111
20112 # Whether dlopen of statically linked programs is supported.
20113 dlopen_self_static=$enable_dlopen_self_static
20114
20115 # Compiler flag to prevent dynamic linking.
20116 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20117
20118 # Compiler flag to turn off builtin functions.
20119 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20120
20121 # Compiler flag to allow reflexive dlopens.
20122 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20123
20124 # Compiler flag to generate shared objects directly from archives.
20125 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20126
20127 # Compiler flag to generate thread-safe objects.
20128 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20129
20130 # Library versioning type.
20131 version_type=$version_type
20132
20133 # Format of library name prefix.
20134 libname_spec=$lt_libname_spec
20135
20136 # List of archive names.  First name is the real one, the rest are links.
20137 # The last name is the one that the linker finds with -lNAME.
20138 library_names_spec=$lt_library_names_spec
20139
20140 # The coded name of the library, if different from the real name.
20141 soname_spec=$lt_soname_spec
20142
20143 # Commands used to build and install an old-style archive.
20144 RANLIB=$lt_RANLIB
20145 old_archive_cmds=$lt_old_archive_cmds_GCJ
20146 old_postinstall_cmds=$lt_old_postinstall_cmds
20147 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20148
20149 # Create an old-style archive from a shared archive.
20150 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20151
20152 # Create a temporary old-style archive to link instead of a shared archive.
20153 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20154
20155 # Commands used to build and install a shared archive.
20156 archive_cmds=$lt_archive_cmds_GCJ
20157 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20158 postinstall_cmds=$lt_postinstall_cmds
20159 postuninstall_cmds=$lt_postuninstall_cmds
20160
20161 # Commands used to build a loadable module (assumed same as above if empty)
20162 module_cmds=$lt_module_cmds_GCJ
20163 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20164
20165 # Commands to strip libraries.
20166 old_striplib=$lt_old_striplib
20167 striplib=$lt_striplib
20168
20169 # Dependencies to place before the objects being linked to create a
20170 # shared library.
20171 predep_objects=$lt_predep_objects_GCJ
20172
20173 # Dependencies to place after the objects being linked to create a
20174 # shared library.
20175 postdep_objects=$lt_postdep_objects_GCJ
20176
20177 # Dependencies to place before the objects being linked to create a
20178 # shared library.
20179 predeps=$lt_predeps_GCJ
20180
20181 # Dependencies to place after the objects being linked to create a
20182 # shared library.
20183 postdeps=$lt_postdeps_GCJ
20184
20185 # The library search path used internally by the compiler when linking
20186 # a shared library.
20187 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20188
20189 # Method to check whether dependent libraries are shared objects.
20190 deplibs_check_method=$lt_deplibs_check_method
20191
20192 # Command to use when deplibs_check_method == file_magic.
20193 file_magic_cmd=$lt_file_magic_cmd
20194
20195 # Flag that allows shared libraries with undefined symbols to be built.
20196 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20197
20198 # Flag that forces no undefined symbols.
20199 no_undefined_flag=$lt_no_undefined_flag_GCJ
20200
20201 # Commands used to finish a libtool library installation in a directory.
20202 finish_cmds=$lt_finish_cmds
20203
20204 # Same as above, but a single script fragment to be evaled but not shown.
20205 finish_eval=$lt_finish_eval
20206
20207 # Take the output of nm and produce a listing of raw symbols and C names.
20208 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20209
20210 # Transform the output of nm in a proper C declaration
20211 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20212
20213 # Transform the output of nm in a C name address pair
20214 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20215
20216 # This is the shared library runtime path variable.
20217 runpath_var=$runpath_var
20218
20219 # This is the shared library path variable.
20220 shlibpath_var=$shlibpath_var
20221
20222 # Is shlibpath searched before the hard-coded library search path?
20223 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20224
20225 # How to hardcode a shared library path into an executable.
20226 hardcode_action=$hardcode_action_GCJ
20227
20228 # Whether we should hardcode library paths into libraries.
20229 hardcode_into_libs=$hardcode_into_libs
20230
20231 # Flag to hardcode \$libdir into a binary during linking.
20232 # This must work even if \$libdir does not exist.
20233 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20234
20235 # If ld is used when linking, flag to hardcode \$libdir into
20236 # a binary during linking. This must work even if \$libdir does
20237 # not exist.
20238 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20239
20240 # Whether we need a single -rpath flag with a separated argument.
20241 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20242
20243 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20244 # resulting binary.
20245 hardcode_direct=$hardcode_direct_GCJ
20246
20247 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20248 # resulting binary.
20249 hardcode_minus_L=$hardcode_minus_L_GCJ
20250
20251 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20252 # the resulting binary.
20253 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20254
20255 # Set to yes if building a shared library automatically hardcodes DIR into the library
20256 # and all subsequent libraries and executables linked against it.
20257 hardcode_automatic=$hardcode_automatic_GCJ
20258
20259 # Variables whose values should be saved in libtool wrapper scripts and
20260 # restored at relink time.
20261 variables_saved_for_relink="$variables_saved_for_relink"
20262
20263 # Whether libtool must link a program against all its dependency libraries.
20264 link_all_deplibs=$link_all_deplibs_GCJ
20265
20266 # Compile-time system search path for libraries
20267 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20268
20269 # Run-time system search path for libraries
20270 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20271
20272 # Fix the shell variable \$srcfile for the compiler.
20273 fix_srcfile_path="$fix_srcfile_path_GCJ"
20274
20275 # Set to yes if exported symbols are required.
20276 always_export_symbols=$always_export_symbols_GCJ
20277
20278 # The commands to list exported symbols.
20279 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20280
20281 # The commands to extract the exported symbol list from a shared archive.
20282 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20283
20284 # Symbols that should not be listed in the preloaded symbols.
20285 exclude_expsyms=$lt_exclude_expsyms_GCJ
20286
20287 # Symbols that must always be exported.
20288 include_expsyms=$lt_include_expsyms_GCJ
20289
20290 # ### END LIBTOOL TAG CONFIG: $tagname
20291
20292 __EOF__
20293
20294
20295 else
20296   # If there is no Makefile yet, we rely on a make rule to execute
20297   # `config.status --recheck' to rerun these tests and create the
20298   # libtool script then.
20299   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20300   if test -f "$ltmain_in"; then
20301     test -f Makefile && make "$ltmain"
20302   fi
20303 fi
20304
20305
20306 ac_ext=c
20307 ac_cpp='$CPP $CPPFLAGS'
20308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20311
20312 CC="$lt_save_CC"
20313
20314         else
20315           tagname=""
20316         fi
20317         ;;
20318
20319       RC)
20320
20321
20322
20323 # Source file extension for RC test sources.
20324 ac_ext=rc
20325
20326 # Object file extension for compiled RC test sources.
20327 objext=o
20328 objext_RC=$objext
20329
20330 # Code to be used in simple compile tests
20331 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20332
20333 # Code to be used in simple link tests
20334 lt_simple_link_test_code="$lt_simple_compile_test_code"
20335
20336 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20337
20338 # If no C compiler was specified, use CC.
20339 LTCC=${LTCC-"$CC"}
20340
20341 # Allow CC to be a program name with arguments.
20342 compiler=$CC
20343
20344
20345 # save warnings/boilerplate of simple test code
20346 ac_outfile=conftest.$ac_objext
20347 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20348 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
20349 _lt_compiler_boilerplate=`cat conftest.err`
20350 $rm conftest*
20351
20352 ac_outfile=conftest.$ac_objext
20353 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20354 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
20355 _lt_linker_boilerplate=`cat conftest.err`
20356 $rm conftest*
20357
20358
20359 # Allow CC to be a program name with arguments.
20360 lt_save_CC="$CC"
20361 CC=${RC-"windres"}
20362 compiler=$CC
20363 compiler_RC=$CC
20364 for cc_temp in $compiler""; do
20365   case $cc_temp in
20366     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20367     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20368     \-*) ;;
20369     *) break;;
20370   esac
20371 done
20372 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20373
20374 lt_cv_prog_compiler_c_o_RC=yes
20375
20376 # The else clause should only fire when bootstrapping the
20377 # libtool distribution, otherwise you forgot to ship ltmain.sh
20378 # with your package, and you will get complaints that there are
20379 # no rules to generate ltmain.sh.
20380 if test -f "$ltmain"; then
20381   # See if we are running on zsh, and set the options which allow our commands through
20382   # without removal of \ escapes.
20383   if test -n "${ZSH_VERSION+set}" ; then
20384     setopt NO_GLOB_SUBST
20385   fi
20386   # Now quote all the things that may contain metacharacters while being
20387   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20388   # variables and quote the copies for generation of the libtool script.
20389   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20390     SED SHELL STRIP \
20391     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20392     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20393     deplibs_check_method reload_flag reload_cmds need_locks \
20394     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20395     lt_cv_sys_global_symbol_to_c_name_address \
20396     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20397     old_postinstall_cmds old_postuninstall_cmds \
20398     compiler_RC \
20399     CC_RC \
20400     LD_RC \
20401     lt_prog_compiler_wl_RC \
20402     lt_prog_compiler_pic_RC \
20403     lt_prog_compiler_static_RC \
20404     lt_prog_compiler_no_builtin_flag_RC \
20405     export_dynamic_flag_spec_RC \
20406     thread_safe_flag_spec_RC \
20407     whole_archive_flag_spec_RC \
20408     enable_shared_with_static_runtimes_RC \
20409     old_archive_cmds_RC \
20410     old_archive_from_new_cmds_RC \
20411     predep_objects_RC \
20412     postdep_objects_RC \
20413     predeps_RC \
20414     postdeps_RC \
20415     compiler_lib_search_path_RC \
20416     archive_cmds_RC \
20417     archive_expsym_cmds_RC \
20418     postinstall_cmds_RC \
20419     postuninstall_cmds_RC \
20420     old_archive_from_expsyms_cmds_RC \
20421     allow_undefined_flag_RC \
20422     no_undefined_flag_RC \
20423     export_symbols_cmds_RC \
20424     hardcode_libdir_flag_spec_RC \
20425     hardcode_libdir_flag_spec_ld_RC \
20426     hardcode_libdir_separator_RC \
20427     hardcode_automatic_RC \
20428     module_cmds_RC \
20429     module_expsym_cmds_RC \
20430     lt_cv_prog_compiler_c_o_RC \
20431     exclude_expsyms_RC \
20432     include_expsyms_RC; do
20433
20434     case $var in
20435     old_archive_cmds_RC | \
20436     old_archive_from_new_cmds_RC | \
20437     archive_cmds_RC | \
20438     archive_expsym_cmds_RC | \
20439     module_cmds_RC | \
20440     module_expsym_cmds_RC | \
20441     old_archive_from_expsyms_cmds_RC | \
20442     export_symbols_cmds_RC | \
20443     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20444     postinstall_cmds | postuninstall_cmds | \
20445     old_postinstall_cmds | old_postuninstall_cmds | \
20446     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20447       # Double-quote double-evaled strings.
20448       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20449       ;;
20450     *)
20451       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20452       ;;
20453     esac
20454   done
20455
20456   case $lt_echo in
20457   *'\$0 --fallback-echo"')
20458     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20459     ;;
20460   esac
20461
20462 cfgfile="$ofile"
20463
20464   cat <<__EOF__ >> "$cfgfile"
20465 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20466
20467 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20468
20469 # Shell to use when invoking shell scripts.
20470 SHELL=$lt_SHELL
20471
20472 # Whether or not to build shared libraries.
20473 build_libtool_libs=$enable_shared
20474
20475 # Whether or not to build static libraries.
20476 build_old_libs=$enable_static
20477
20478 # Whether or not to add -lc for building shared libraries.
20479 build_libtool_need_lc=$archive_cmds_need_lc_RC
20480
20481 # Whether or not to disallow shared libs when runtime libs are static
20482 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20483
20484 # Whether or not to optimize for fast installation.
20485 fast_install=$enable_fast_install
20486
20487 # The host system.
20488 host_alias=$host_alias
20489 host=$host
20490 host_os=$host_os
20491
20492 # The build system.
20493 build_alias=$build_alias
20494 build=$build
20495 build_os=$build_os
20496
20497 # An echo program that does not interpret backslashes.
20498 echo=$lt_echo
20499
20500 # The archiver.
20501 AR=$lt_AR
20502 AR_FLAGS=$lt_AR_FLAGS
20503
20504 # A C compiler.
20505 LTCC=$lt_LTCC
20506
20507 # A language-specific compiler.
20508 CC=$lt_compiler_RC
20509
20510 # Is the compiler the GNU C compiler?
20511 with_gcc=$GCC_RC
20512
20513 # An ERE matcher.
20514 EGREP=$lt_EGREP
20515
20516 # The linker used to build libraries.
20517 LD=$lt_LD_RC
20518
20519 # Whether we need hard or soft links.
20520 LN_S=$lt_LN_S
20521
20522 # A BSD-compatible nm program.
20523 NM=$lt_NM
20524
20525 # A symbol stripping program
20526 STRIP=$lt_STRIP
20527
20528 # Used to examine libraries when file_magic_cmd begins "file"
20529 MAGIC_CMD=$MAGIC_CMD
20530
20531 # Used on cygwin: DLL creation program.
20532 DLLTOOL="$DLLTOOL"
20533
20534 # Used on cygwin: object dumper.
20535 OBJDUMP="$OBJDUMP"
20536
20537 # Used on cygwin: assembler.
20538 AS="$AS"
20539
20540 # The name of the directory that contains temporary libtool files.
20541 objdir=$objdir
20542
20543 # How to create reloadable object files.
20544 reload_flag=$lt_reload_flag
20545 reload_cmds=$lt_reload_cmds
20546
20547 # How to pass a linker flag through the compiler.
20548 wl=$lt_lt_prog_compiler_wl_RC
20549
20550 # Object file suffix (normally "o").
20551 objext="$ac_objext"
20552
20553 # Old archive suffix (normally "a").
20554 libext="$libext"
20555
20556 # Shared library suffix (normally ".so").
20557 shrext_cmds='$shrext_cmds'
20558
20559 # Executable file suffix (normally "").
20560 exeext="$exeext"
20561
20562 # Additional compiler flags for building library objects.
20563 pic_flag=$lt_lt_prog_compiler_pic_RC
20564 pic_mode=$pic_mode
20565
20566 # What is the maximum length of a command?
20567 max_cmd_len=$lt_cv_sys_max_cmd_len
20568
20569 # Does compiler simultaneously support -c and -o options?
20570 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20571
20572 # Must we lock files when doing compilation?
20573 need_locks=$lt_need_locks
20574
20575 # Do we need the lib prefix for modules?
20576 need_lib_prefix=$need_lib_prefix
20577
20578 # Do we need a version for libraries?
20579 need_version=$need_version
20580
20581 # Whether dlopen is supported.
20582 dlopen_support=$enable_dlopen
20583
20584 # Whether dlopen of programs is supported.
20585 dlopen_self=$enable_dlopen_self
20586
20587 # Whether dlopen of statically linked programs is supported.
20588 dlopen_self_static=$enable_dlopen_self_static
20589
20590 # Compiler flag to prevent dynamic linking.
20591 link_static_flag=$lt_lt_prog_compiler_static_RC
20592
20593 # Compiler flag to turn off builtin functions.
20594 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20595
20596 # Compiler flag to allow reflexive dlopens.
20597 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20598
20599 # Compiler flag to generate shared objects directly from archives.
20600 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20601
20602 # Compiler flag to generate thread-safe objects.
20603 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20604
20605 # Library versioning type.
20606 version_type=$version_type
20607
20608 # Format of library name prefix.
20609 libname_spec=$lt_libname_spec
20610
20611 # List of archive names.  First name is the real one, the rest are links.
20612 # The last name is the one that the linker finds with -lNAME.
20613 library_names_spec=$lt_library_names_spec
20614
20615 # The coded name of the library, if different from the real name.
20616 soname_spec=$lt_soname_spec
20617
20618 # Commands used to build and install an old-style archive.
20619 RANLIB=$lt_RANLIB
20620 old_archive_cmds=$lt_old_archive_cmds_RC
20621 old_postinstall_cmds=$lt_old_postinstall_cmds
20622 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20623
20624 # Create an old-style archive from a shared archive.
20625 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20626
20627 # Create a temporary old-style archive to link instead of a shared archive.
20628 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20629
20630 # Commands used to build and install a shared archive.
20631 archive_cmds=$lt_archive_cmds_RC
20632 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20633 postinstall_cmds=$lt_postinstall_cmds
20634 postuninstall_cmds=$lt_postuninstall_cmds
20635
20636 # Commands used to build a loadable module (assumed same as above if empty)
20637 module_cmds=$lt_module_cmds_RC
20638 module_expsym_cmds=$lt_module_expsym_cmds_RC
20639
20640 # Commands to strip libraries.
20641 old_striplib=$lt_old_striplib
20642 striplib=$lt_striplib
20643
20644 # Dependencies to place before the objects being linked to create a
20645 # shared library.
20646 predep_objects=$lt_predep_objects_RC
20647
20648 # Dependencies to place after the objects being linked to create a
20649 # shared library.
20650 postdep_objects=$lt_postdep_objects_RC
20651
20652 # Dependencies to place before the objects being linked to create a
20653 # shared library.
20654 predeps=$lt_predeps_RC
20655
20656 # Dependencies to place after the objects being linked to create a
20657 # shared library.
20658 postdeps=$lt_postdeps_RC
20659
20660 # The library search path used internally by the compiler when linking
20661 # a shared library.
20662 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20663
20664 # Method to check whether dependent libraries are shared objects.
20665 deplibs_check_method=$lt_deplibs_check_method
20666
20667 # Command to use when deplibs_check_method == file_magic.
20668 file_magic_cmd=$lt_file_magic_cmd
20669
20670 # Flag that allows shared libraries with undefined symbols to be built.
20671 allow_undefined_flag=$lt_allow_undefined_flag_RC
20672
20673 # Flag that forces no undefined symbols.
20674 no_undefined_flag=$lt_no_undefined_flag_RC
20675
20676 # Commands used to finish a libtool library installation in a directory.
20677 finish_cmds=$lt_finish_cmds
20678
20679 # Same as above, but a single script fragment to be evaled but not shown.
20680 finish_eval=$lt_finish_eval
20681
20682 # Take the output of nm and produce a listing of raw symbols and C names.
20683 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20684
20685 # Transform the output of nm in a proper C declaration
20686 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20687
20688 # Transform the output of nm in a C name address pair
20689 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20690
20691 # This is the shared library runtime path variable.
20692 runpath_var=$runpath_var
20693
20694 # This is the shared library path variable.
20695 shlibpath_var=$shlibpath_var
20696
20697 # Is shlibpath searched before the hard-coded library search path?
20698 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20699
20700 # How to hardcode a shared library path into an executable.
20701 hardcode_action=$hardcode_action_RC
20702
20703 # Whether we should hardcode library paths into libraries.
20704 hardcode_into_libs=$hardcode_into_libs
20705
20706 # Flag to hardcode \$libdir into a binary during linking.
20707 # This must work even if \$libdir does not exist.
20708 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20709
20710 # If ld is used when linking, flag to hardcode \$libdir into
20711 # a binary during linking. This must work even if \$libdir does
20712 # not exist.
20713 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20714
20715 # Whether we need a single -rpath flag with a separated argument.
20716 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20717
20718 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20719 # resulting binary.
20720 hardcode_direct=$hardcode_direct_RC
20721
20722 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20723 # resulting binary.
20724 hardcode_minus_L=$hardcode_minus_L_RC
20725
20726 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20727 # the resulting binary.
20728 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20729
20730 # Set to yes if building a shared library automatically hardcodes DIR into the library
20731 # and all subsequent libraries and executables linked against it.
20732 hardcode_automatic=$hardcode_automatic_RC
20733
20734 # Variables whose values should be saved in libtool wrapper scripts and
20735 # restored at relink time.
20736 variables_saved_for_relink="$variables_saved_for_relink"
20737
20738 # Whether libtool must link a program against all its dependency libraries.
20739 link_all_deplibs=$link_all_deplibs_RC
20740
20741 # Compile-time system search path for libraries
20742 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20743
20744 # Run-time system search path for libraries
20745 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20746
20747 # Fix the shell variable \$srcfile for the compiler.
20748 fix_srcfile_path="$fix_srcfile_path_RC"
20749
20750 # Set to yes if exported symbols are required.
20751 always_export_symbols=$always_export_symbols_RC
20752
20753 # The commands to list exported symbols.
20754 export_symbols_cmds=$lt_export_symbols_cmds_RC
20755
20756 # The commands to extract the exported symbol list from a shared archive.
20757 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20758
20759 # Symbols that should not be listed in the preloaded symbols.
20760 exclude_expsyms=$lt_exclude_expsyms_RC
20761
20762 # Symbols that must always be exported.
20763 include_expsyms=$lt_include_expsyms_RC
20764
20765 # ### END LIBTOOL TAG CONFIG: $tagname
20766
20767 __EOF__
20768
20769
20770 else
20771   # If there is no Makefile yet, we rely on a make rule to execute
20772   # `config.status --recheck' to rerun these tests and create the
20773   # libtool script then.
20774   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20775   if test -f "$ltmain_in"; then
20776     test -f Makefile && make "$ltmain"
20777   fi
20778 fi
20779
20780
20781 ac_ext=c
20782 ac_cpp='$CPP $CPPFLAGS'
20783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20786
20787 CC="$lt_save_CC"
20788
20789         ;;
20790
20791       *)
20792         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20793 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20794    { (exit 1); exit 1; }; }
20795         ;;
20796       esac
20797
20798       # Append the new tag name to the list of available tags.
20799       if test -n "$tagname" ; then
20800       available_tags="$available_tags $tagname"
20801     fi
20802     fi
20803   done
20804   IFS="$lt_save_ifs"
20805
20806   # Now substitute the updated list of available tags.
20807   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20808     mv "${ofile}T" "$ofile"
20809     chmod +x "$ofile"
20810   else
20811     rm -f "${ofile}T"
20812     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20813 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20814    { (exit 1); exit 1; }; }
20815   fi
20816 fi
20817
20818
20819
20820 # This can be used to rebuild libtool when needed
20821 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20822
20823 # Always use our own libtool.
20824 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20825
20826 # Prevent multiple expansion
20827
20828
20829
20830
20831
20832
20833
20834
20835
20836
20837
20838
20839
20840
20841
20842
20843
20844
20845
20846
20847
20848 if test "x$cross_compiling" = "xno"; then
20849         CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
20850 else
20851         CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
20852 fi
20853
20854
20855
20856 if test -n "$ac_tool_prefix"; then
20857   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
20858 set dummy ${ac_tool_prefix}ar; ac_word=$2
20859 echo "$as_me:$LINENO: checking for $ac_word" >&5
20860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20861 if test "${ac_cv_prog_AR+set}" = set; then
20862   echo $ECHO_N "(cached) $ECHO_C" >&6
20863 else
20864   if test -n "$AR"; then
20865   ac_cv_prog_AR="$AR" # Let the user override the test.
20866 else
20867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20868 for as_dir in $PATH
20869 do
20870   IFS=$as_save_IFS
20871   test -z "$as_dir" && as_dir=.
20872   for ac_exec_ext in '' $ac_executable_extensions; do
20873   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20874     ac_cv_prog_AR="${ac_tool_prefix}ar"
20875     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20876     break 2
20877   fi
20878 done
20879 done
20880
20881 fi
20882 fi
20883 AR=$ac_cv_prog_AR
20884 if test -n "$AR"; then
20885   echo "$as_me:$LINENO: result: $AR" >&5
20886 echo "${ECHO_T}$AR" >&6
20887 else
20888   echo "$as_me:$LINENO: result: no" >&5
20889 echo "${ECHO_T}no" >&6
20890 fi
20891
20892 fi
20893 if test -z "$ac_cv_prog_AR"; then
20894   ac_ct_AR=$AR
20895   # Extract the first word of "ar", so it can be a program name with args.
20896 set dummy ar; ac_word=$2
20897 echo "$as_me:$LINENO: checking for $ac_word" >&5
20898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20899 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
20900   echo $ECHO_N "(cached) $ECHO_C" >&6
20901 else
20902   if test -n "$ac_ct_AR"; then
20903   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
20904 else
20905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20906 for as_dir in $PATH
20907 do
20908   IFS=$as_save_IFS
20909   test -z "$as_dir" && as_dir=.
20910   for ac_exec_ext in '' $ac_executable_extensions; do
20911   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20912     ac_cv_prog_ac_ct_AR="ar"
20913     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20914     break 2
20915   fi
20916 done
20917 done
20918
20919 fi
20920 fi
20921 ac_ct_AR=$ac_cv_prog_ac_ct_AR
20922 if test -n "$ac_ct_AR"; then
20923   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
20924 echo "${ECHO_T}$ac_ct_AR" >&6
20925 else
20926   echo "$as_me:$LINENO: result: no" >&5
20927 echo "${ECHO_T}no" >&6
20928 fi
20929
20930   AR=$ac_ct_AR
20931 else
20932   AR="$ac_cv_prog_AR"
20933 fi
20934
20935 if test -n "$ac_tool_prefix"; then
20936   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
20937 set dummy ${ac_tool_prefix}ld; ac_word=$2
20938 echo "$as_me:$LINENO: checking for $ac_word" >&5
20939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20940 if test "${ac_cv_prog_LD+set}" = set; then
20941   echo $ECHO_N "(cached) $ECHO_C" >&6
20942 else
20943   if test -n "$LD"; then
20944   ac_cv_prog_LD="$LD" # Let the user override the test.
20945 else
20946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20947 for as_dir in $PATH
20948 do
20949   IFS=$as_save_IFS
20950   test -z "$as_dir" && as_dir=.
20951   for ac_exec_ext in '' $ac_executable_extensions; do
20952   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20953     ac_cv_prog_LD="${ac_tool_prefix}ld"
20954     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20955     break 2
20956   fi
20957 done
20958 done
20959
20960 fi
20961 fi
20962 LD=$ac_cv_prog_LD
20963 if test -n "$LD"; then
20964   echo "$as_me:$LINENO: result: $LD" >&5
20965 echo "${ECHO_T}$LD" >&6
20966 else
20967   echo "$as_me:$LINENO: result: no" >&5
20968 echo "${ECHO_T}no" >&6
20969 fi
20970
20971 fi
20972 if test -z "$ac_cv_prog_LD"; then
20973   ac_ct_LD=$LD
20974   # Extract the first word of "ld", so it can be a program name with args.
20975 set dummy ld; ac_word=$2
20976 echo "$as_me:$LINENO: checking for $ac_word" >&5
20977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20978 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
20979   echo $ECHO_N "(cached) $ECHO_C" >&6
20980 else
20981   if test -n "$ac_ct_LD"; then
20982   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
20983 else
20984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20985 for as_dir in $PATH
20986 do
20987   IFS=$as_save_IFS
20988   test -z "$as_dir" && as_dir=.
20989   for ac_exec_ext in '' $ac_executable_extensions; do
20990   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20991     ac_cv_prog_ac_ct_LD="ld"
20992     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20993     break 2
20994   fi
20995 done
20996 done
20997
20998 fi
20999 fi
21000 ac_ct_LD=$ac_cv_prog_ac_ct_LD
21001 if test -n "$ac_ct_LD"; then
21002   echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
21003 echo "${ECHO_T}$ac_ct_LD" >&6
21004 else
21005   echo "$as_me:$LINENO: result: no" >&5
21006 echo "${ECHO_T}no" >&6
21007 fi
21008
21009   LD=$ac_ct_LD
21010 else
21011   LD="$ac_cv_prog_LD"
21012 fi
21013
21014
21015 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21016 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
21017 if test "${ac_cv_header_stdc+set}" = set; then
21018   echo $ECHO_N "(cached) $ECHO_C" >&6
21019 else
21020   cat >conftest.$ac_ext <<_ACEOF
21021 /* confdefs.h.  */
21022 _ACEOF
21023 cat confdefs.h >>conftest.$ac_ext
21024 cat >>conftest.$ac_ext <<_ACEOF
21025 /* end confdefs.h.  */
21026 #include <stdlib.h>
21027 #include <stdarg.h>
21028 #include <string.h>
21029 #include <float.h>
21030
21031 int
21032 main ()
21033 {
21034
21035   ;
21036   return 0;
21037 }
21038 _ACEOF
21039 rm -f conftest.$ac_objext
21040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21041   (eval $ac_compile) 2>conftest.er1
21042   ac_status=$?
21043   grep -v '^ *+' conftest.er1 >conftest.err
21044   rm -f conftest.er1
21045   cat conftest.err >&5
21046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21047   (exit $ac_status); } &&
21048          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21050   (eval $ac_try) 2>&5
21051   ac_status=$?
21052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21053   (exit $ac_status); }; } &&
21054          { ac_try='test -s conftest.$ac_objext'
21055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21056   (eval $ac_try) 2>&5
21057   ac_status=$?
21058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059   (exit $ac_status); }; }; then
21060   ac_cv_header_stdc=yes
21061 else
21062   echo "$as_me: failed program was:" >&5
21063 sed 's/^/| /' conftest.$ac_ext >&5
21064
21065 ac_cv_header_stdc=no
21066 fi
21067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21068
21069 if test $ac_cv_header_stdc = yes; then
21070   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21071   cat >conftest.$ac_ext <<_ACEOF
21072 /* confdefs.h.  */
21073 _ACEOF
21074 cat confdefs.h >>conftest.$ac_ext
21075 cat >>conftest.$ac_ext <<_ACEOF
21076 /* end confdefs.h.  */
21077 #include <string.h>
21078
21079 _ACEOF
21080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21081   $EGREP "memchr" >/dev/null 2>&1; then
21082   :
21083 else
21084   ac_cv_header_stdc=no
21085 fi
21086 rm -f conftest*
21087
21088 fi
21089
21090 if test $ac_cv_header_stdc = yes; then
21091   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21092   cat >conftest.$ac_ext <<_ACEOF
21093 /* confdefs.h.  */
21094 _ACEOF
21095 cat confdefs.h >>conftest.$ac_ext
21096 cat >>conftest.$ac_ext <<_ACEOF
21097 /* end confdefs.h.  */
21098 #include <stdlib.h>
21099
21100 _ACEOF
21101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21102   $EGREP "free" >/dev/null 2>&1; then
21103   :
21104 else
21105   ac_cv_header_stdc=no
21106 fi
21107 rm -f conftest*
21108
21109 fi
21110
21111 if test $ac_cv_header_stdc = yes; then
21112   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21113   if test "$cross_compiling" = yes; then
21114   :
21115 else
21116   cat >conftest.$ac_ext <<_ACEOF
21117 /* confdefs.h.  */
21118 _ACEOF
21119 cat confdefs.h >>conftest.$ac_ext
21120 cat >>conftest.$ac_ext <<_ACEOF
21121 /* end confdefs.h.  */
21122 #include <ctype.h>
21123 #if ((' ' & 0x0FF) == 0x020)
21124 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21125 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21126 #else
21127 # define ISLOWER(c) \
21128                    (('a' <= (c) && (c) <= 'i') \
21129                      || ('j' <= (c) && (c) <= 'r') \
21130                      || ('s' <= (c) && (c) <= 'z'))
21131 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21132 #endif
21133
21134 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21135 int
21136 main ()
21137 {
21138   int i;
21139   for (i = 0; i < 256; i++)
21140     if (XOR (islower (i), ISLOWER (i))
21141         || toupper (i) != TOUPPER (i))
21142       exit(2);
21143   exit (0);
21144 }
21145 _ACEOF
21146 rm -f conftest$ac_exeext
21147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21148   (eval $ac_link) 2>&5
21149   ac_status=$?
21150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21151   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21153   (eval $ac_try) 2>&5
21154   ac_status=$?
21155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21156   (exit $ac_status); }; }; then
21157   :
21158 else
21159   echo "$as_me: program exited with status $ac_status" >&5
21160 echo "$as_me: failed program was:" >&5
21161 sed 's/^/| /' conftest.$ac_ext >&5
21162
21163 ( exit $ac_status )
21164 ac_cv_header_stdc=no
21165 fi
21166 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21167 fi
21168 fi
21169 fi
21170 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21171 echo "${ECHO_T}$ac_cv_header_stdc" >&6
21172 if test $ac_cv_header_stdc = yes; then
21173
21174 cat >>confdefs.h <<\_ACEOF
21175 #define STDC_HEADERS 1
21176 _ACEOF
21177
21178 fi
21179
21180
21181   echo "$as_me:$LINENO: checking for GNU libc2" >&5
21182 echo $ECHO_N "checking for GNU libc2... $ECHO_C" >&6
21183   if test "${knfsd_cv_glibc2+set}" = set; then
21184   echo $ECHO_N "(cached) $ECHO_C" >&6
21185 else
21186   cat >conftest.$ac_ext <<_ACEOF
21187 /* confdefs.h.  */
21188 _ACEOF
21189 cat confdefs.h >>conftest.$ac_ext
21190 cat >>conftest.$ac_ext <<_ACEOF
21191 /* end confdefs.h.  */
21192
21193       #include <features.h>
21194       #if !defined(__GLIBC__)
21195       # error Nope
21196       #endif
21197
21198 _ACEOF
21199 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21200   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21201   ac_status=$?
21202   grep -v '^ *+' conftest.er1 >conftest.err
21203   rm -f conftest.er1
21204   cat conftest.err >&5
21205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206   (exit $ac_status); } >/dev/null; then
21207   if test -s conftest.err; then
21208     ac_cpp_err=$ac_c_preproc_warn_flag
21209     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21210   else
21211     ac_cpp_err=
21212   fi
21213 else
21214   ac_cpp_err=yes
21215 fi
21216 if test -z "$ac_cpp_err"; then
21217   knfsd_cv_glibc2=yes
21218 else
21219   echo "$as_me: failed program was:" >&5
21220 sed 's/^/| /' conftest.$ac_ext >&5
21221
21222   knfsd_cv_glibc2=no
21223 fi
21224 rm -f conftest.err conftest.$ac_ext
21225 fi
21226
21227   echo "$as_me:$LINENO: result: $knfsd_cv_glibc2" >&5
21228 echo "${ECHO_T}$knfsd_cv_glibc2" >&6
21229   if test $knfsd_cv_glibc2 = yes; then
21230     CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
21231     CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
21232   fi
21233
21234
21235   echo "$as_me:$LINENO: checking for BSD signal semantics" >&5
21236 echo $ECHO_N "checking for BSD signal semantics... $ECHO_C" >&6
21237   if test "${knfsd_cv_bsd_signals+set}" = set; then
21238   echo $ECHO_N "(cached) $ECHO_C" >&6
21239 else
21240   if test "$cross_compiling" = yes; then
21241   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21242 See \`config.log' for more details." >&5
21243 echo "$as_me: error: cannot run test program while cross compiling
21244 See \`config.log' for more details." >&2;}
21245    { (exit 1); exit 1; }; }
21246 else
21247   cat >conftest.$ac_ext <<_ACEOF
21248 /* confdefs.h.  */
21249 _ACEOF
21250 cat confdefs.h >>conftest.$ac_ext
21251 cat >>conftest.$ac_ext <<_ACEOF
21252 /* end confdefs.h.  */
21253
21254         #include <signal.h>
21255         #include <unistd.h>
21256         #include <sys/wait.h>
21257
21258         static int counter = 0;
21259         static RETSIGTYPE handler(int num) { counter++; }
21260
21261         int main()
21262         {
21263                 int     s;
21264                 if ((s = fork()) < 0) return 1;
21265                 if (s != 0) {
21266                         if (wait(&s) < 0) return 1;
21267                         return WIFSIGNALED(s)? 1 : 0;
21268                 }
21269
21270                 signal(SIGHUP, handler);
21271                 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
21272                 return (counter == 2)? 0 : 1;
21273         }
21274
21275 _ACEOF
21276 rm -f conftest$ac_exeext
21277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21278   (eval $ac_link) 2>&5
21279   ac_status=$?
21280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21281   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21283   (eval $ac_try) 2>&5
21284   ac_status=$?
21285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21286   (exit $ac_status); }; }; then
21287   knfsd_cv_bsd_signals=yes
21288 else
21289   echo "$as_me: program exited with status $ac_status" >&5
21290 echo "$as_me: failed program was:" >&5
21291 sed 's/^/| /' conftest.$ac_ext >&5
21292
21293 ( exit $ac_status )
21294 knfsd_cv_bsd_signals=no
21295 fi
21296 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21297 fi
21298 fi
21299      echo "$as_me:$LINENO: result: $knfsd_cv_bsd_signals" >&5
21300 echo "${ECHO_T}$knfsd_cv_bsd_signals" >&6
21301     test $knfsd_cv_bsd_signals = yes &&
21302 cat >>confdefs.h <<\_ACEOF
21303 #define HAVE_BSD_SIGNALS 1
21304 _ACEOF
21305
21306
21307
21308 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
21309 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
21310 if test "${ac_cv_lib_socket_main+set}" = set; then
21311   echo $ECHO_N "(cached) $ECHO_C" >&6
21312 else
21313   ac_check_lib_save_LIBS=$LIBS
21314 LIBS="-lsocket  $LIBS"
21315 cat >conftest.$ac_ext <<_ACEOF
21316 /* confdefs.h.  */
21317 _ACEOF
21318 cat confdefs.h >>conftest.$ac_ext
21319 cat >>conftest.$ac_ext <<_ACEOF
21320 /* end confdefs.h.  */
21321
21322
21323 int
21324 main ()
21325 {
21326 main ();
21327   ;
21328   return 0;
21329 }
21330 _ACEOF
21331 rm -f conftest.$ac_objext conftest$ac_exeext
21332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21333   (eval $ac_link) 2>conftest.er1
21334   ac_status=$?
21335   grep -v '^ *+' conftest.er1 >conftest.err
21336   rm -f conftest.er1
21337   cat conftest.err >&5
21338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21339   (exit $ac_status); } &&
21340          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21342   (eval $ac_try) 2>&5
21343   ac_status=$?
21344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345   (exit $ac_status); }; } &&
21346          { ac_try='test -s conftest$ac_exeext'
21347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21348   (eval $ac_try) 2>&5
21349   ac_status=$?
21350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21351   (exit $ac_status); }; }; then
21352   ac_cv_lib_socket_main=yes
21353 else
21354   echo "$as_me: failed program was:" >&5
21355 sed 's/^/| /' conftest.$ac_ext >&5
21356
21357 ac_cv_lib_socket_main=no
21358 fi
21359 rm -f conftest.err conftest.$ac_objext \
21360       conftest$ac_exeext conftest.$ac_ext
21361 LIBS=$ac_check_lib_save_LIBS
21362 fi
21363 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
21364 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
21365 if test $ac_cv_lib_socket_main = yes; then
21366   LIBSOCKET="-lnsl"
21367 fi
21368
21369 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
21370 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
21371 if test "${ac_cv_lib_nsl_main+set}" = set; then
21372   echo $ECHO_N "(cached) $ECHO_C" >&6
21373 else
21374   ac_check_lib_save_LIBS=$LIBS
21375 LIBS="-lnsl  $LIBS"
21376 cat >conftest.$ac_ext <<_ACEOF
21377 /* confdefs.h.  */
21378 _ACEOF
21379 cat confdefs.h >>conftest.$ac_ext
21380 cat >>conftest.$ac_ext <<_ACEOF
21381 /* end confdefs.h.  */
21382
21383
21384 int
21385 main ()
21386 {
21387 main ();
21388   ;
21389   return 0;
21390 }
21391 _ACEOF
21392 rm -f conftest.$ac_objext conftest$ac_exeext
21393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21394   (eval $ac_link) 2>conftest.er1
21395   ac_status=$?
21396   grep -v '^ *+' conftest.er1 >conftest.err
21397   rm -f conftest.er1
21398   cat conftest.err >&5
21399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21400   (exit $ac_status); } &&
21401          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21403   (eval $ac_try) 2>&5
21404   ac_status=$?
21405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21406   (exit $ac_status); }; } &&
21407          { ac_try='test -s conftest$ac_exeext'
21408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21409   (eval $ac_try) 2>&5
21410   ac_status=$?
21411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21412   (exit $ac_status); }; }; then
21413   ac_cv_lib_nsl_main=yes
21414 else
21415   echo "$as_me: failed program was:" >&5
21416 sed 's/^/| /' conftest.$ac_ext >&5
21417
21418 ac_cv_lib_nsl_main=no
21419 fi
21420 rm -f conftest.err conftest.$ac_objext \
21421       conftest$ac_exeext conftest.$ac_ext
21422 LIBS=$ac_check_lib_save_LIBS
21423 fi
21424 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
21425 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
21426 if test $ac_cv_lib_nsl_main = yes; then
21427   LIBNSL="-lnsl"
21428 fi
21429
21430 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
21431 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
21432 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
21433   echo $ECHO_N "(cached) $ECHO_C" >&6
21434 else
21435   ac_check_lib_save_LIBS=$LIBS
21436 LIBS="-lcrypt  $LIBS"
21437 cat >conftest.$ac_ext <<_ACEOF
21438 /* confdefs.h.  */
21439 _ACEOF
21440 cat confdefs.h >>conftest.$ac_ext
21441 cat >>conftest.$ac_ext <<_ACEOF
21442 /* end confdefs.h.  */
21443
21444 /* Override any gcc2 internal prototype to avoid an error.  */
21445 #ifdef __cplusplus
21446 extern "C"
21447 #endif
21448 /* We use char because int might match the return type of a gcc2
21449    builtin and then its argument prototype would still apply.  */
21450 char crypt ();
21451 int
21452 main ()
21453 {
21454 crypt ();
21455   ;
21456   return 0;
21457 }
21458 _ACEOF
21459 rm -f conftest.$ac_objext conftest$ac_exeext
21460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21461   (eval $ac_link) 2>conftest.er1
21462   ac_status=$?
21463   grep -v '^ *+' conftest.er1 >conftest.err
21464   rm -f conftest.er1
21465   cat conftest.err >&5
21466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21467   (exit $ac_status); } &&
21468          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21470   (eval $ac_try) 2>&5
21471   ac_status=$?
21472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21473   (exit $ac_status); }; } &&
21474          { ac_try='test -s conftest$ac_exeext'
21475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21476   (eval $ac_try) 2>&5
21477   ac_status=$?
21478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21479   (exit $ac_status); }; }; then
21480   ac_cv_lib_crypt_crypt=yes
21481 else
21482   echo "$as_me: failed program was:" >&5
21483 sed 's/^/| /' conftest.$ac_ext >&5
21484
21485 ac_cv_lib_crypt_crypt=no
21486 fi
21487 rm -f conftest.err conftest.$ac_objext \
21488       conftest$ac_exeext conftest.$ac_ext
21489 LIBS=$ac_check_lib_save_LIBS
21490 fi
21491 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
21492 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
21493 if test $ac_cv_lib_crypt_crypt = yes; then
21494   LIBCRYPT="-lcrypt"
21495 fi
21496
21497 if test "$enable_nfsv4" = yes; then
21498     echo "$as_me:$LINENO: checking for event_dispatch in -levent" >&5
21499 echo $ECHO_N "checking for event_dispatch in -levent... $ECHO_C" >&6
21500 if test "${ac_cv_lib_event_event_dispatch+set}" = set; then
21501   echo $ECHO_N "(cached) $ECHO_C" >&6
21502 else
21503   ac_check_lib_save_LIBS=$LIBS
21504 LIBS="-levent  $LIBS"
21505 cat >conftest.$ac_ext <<_ACEOF
21506 /* confdefs.h.  */
21507 _ACEOF
21508 cat confdefs.h >>conftest.$ac_ext
21509 cat >>conftest.$ac_ext <<_ACEOF
21510 /* end confdefs.h.  */
21511
21512 /* Override any gcc2 internal prototype to avoid an error.  */
21513 #ifdef __cplusplus
21514 extern "C"
21515 #endif
21516 /* We use char because int might match the return type of a gcc2
21517    builtin and then its argument prototype would still apply.  */
21518 char event_dispatch ();
21519 int
21520 main ()
21521 {
21522 event_dispatch ();
21523   ;
21524   return 0;
21525 }
21526 _ACEOF
21527 rm -f conftest.$ac_objext conftest$ac_exeext
21528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21529   (eval $ac_link) 2>conftest.er1
21530   ac_status=$?
21531   grep -v '^ *+' conftest.er1 >conftest.err
21532   rm -f conftest.er1
21533   cat conftest.err >&5
21534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21535   (exit $ac_status); } &&
21536          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21538   (eval $ac_try) 2>&5
21539   ac_status=$?
21540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21541   (exit $ac_status); }; } &&
21542          { ac_try='test -s conftest$ac_exeext'
21543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21544   (eval $ac_try) 2>&5
21545   ac_status=$?
21546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21547   (exit $ac_status); }; }; then
21548   ac_cv_lib_event_event_dispatch=yes
21549 else
21550   echo "$as_me: failed program was:" >&5
21551 sed 's/^/| /' conftest.$ac_ext >&5
21552
21553 ac_cv_lib_event_event_dispatch=no
21554 fi
21555 rm -f conftest.err conftest.$ac_objext \
21556       conftest$ac_exeext conftest.$ac_ext
21557 LIBS=$ac_check_lib_save_LIBS
21558 fi
21559 echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_dispatch" >&5
21560 echo "${ECHO_T}$ac_cv_lib_event_event_dispatch" >&6
21561 if test $ac_cv_lib_event_event_dispatch = yes; then
21562   libevent=1
21563 else
21564   { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
21565 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
21566    { (exit 1); exit 1; }; }
21567 fi
21568
21569     echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
21570 echo $ECHO_N "checking for nfs4_init_name_mapping in -lnfsidmap... $ECHO_C" >&6
21571 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
21572   echo $ECHO_N "(cached) $ECHO_C" >&6
21573 else
21574   ac_check_lib_save_LIBS=$LIBS
21575 LIBS="-lnfsidmap  $LIBS"
21576 cat >conftest.$ac_ext <<_ACEOF
21577 /* confdefs.h.  */
21578 _ACEOF
21579 cat confdefs.h >>conftest.$ac_ext
21580 cat >>conftest.$ac_ext <<_ACEOF
21581 /* end confdefs.h.  */
21582
21583 /* Override any gcc2 internal prototype to avoid an error.  */
21584 #ifdef __cplusplus
21585 extern "C"
21586 #endif
21587 /* We use char because int might match the return type of a gcc2
21588    builtin and then its argument prototype would still apply.  */
21589 char nfs4_init_name_mapping ();
21590 int
21591 main ()
21592 {
21593 nfs4_init_name_mapping ();
21594   ;
21595   return 0;
21596 }
21597 _ACEOF
21598 rm -f conftest.$ac_objext conftest$ac_exeext
21599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21600   (eval $ac_link) 2>conftest.er1
21601   ac_status=$?
21602   grep -v '^ *+' conftest.er1 >conftest.err
21603   rm -f conftest.er1
21604   cat conftest.err >&5
21605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21606   (exit $ac_status); } &&
21607          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21609   (eval $ac_try) 2>&5
21610   ac_status=$?
21611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21612   (exit $ac_status); }; } &&
21613          { ac_try='test -s conftest$ac_exeext'
21614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21615   (eval $ac_try) 2>&5
21616   ac_status=$?
21617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21618   (exit $ac_status); }; }; then
21619   ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
21620 else
21621   echo "$as_me: failed program was:" >&5
21622 sed 's/^/| /' conftest.$ac_ext >&5
21623
21624 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
21625 fi
21626 rm -f conftest.err conftest.$ac_objext \
21627       conftest$ac_exeext conftest.$ac_ext
21628 LIBS=$ac_check_lib_save_LIBS
21629 fi
21630 echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
21631 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6
21632 if test $ac_cv_lib_nfsidmap_nfs4_init_name_mapping = yes; then
21633   libnfsidmap=1
21634 else
21635   { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
21636 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
21637    { (exit 1); exit 1; }; }
21638 fi
21639
21640
21641 for ac_header in event.h
21642 do
21643 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21645   echo "$as_me:$LINENO: checking for $ac_header" >&5
21646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21648   echo $ECHO_N "(cached) $ECHO_C" >&6
21649 fi
21650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21651 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21652 else
21653   # Is the header compilable?
21654 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21655 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21656 cat >conftest.$ac_ext <<_ACEOF
21657 /* confdefs.h.  */
21658 _ACEOF
21659 cat confdefs.h >>conftest.$ac_ext
21660 cat >>conftest.$ac_ext <<_ACEOF
21661 /* end confdefs.h.  */
21662 $ac_includes_default
21663 #include <$ac_header>
21664 _ACEOF
21665 rm -f conftest.$ac_objext
21666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21667   (eval $ac_compile) 2>conftest.er1
21668   ac_status=$?
21669   grep -v '^ *+' conftest.er1 >conftest.err
21670   rm -f conftest.er1
21671   cat conftest.err >&5
21672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673   (exit $ac_status); } &&
21674          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21676   (eval $ac_try) 2>&5
21677   ac_status=$?
21678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679   (exit $ac_status); }; } &&
21680          { ac_try='test -s conftest.$ac_objext'
21681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21682   (eval $ac_try) 2>&5
21683   ac_status=$?
21684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685   (exit $ac_status); }; }; then
21686   ac_header_compiler=yes
21687 else
21688   echo "$as_me: failed program was:" >&5
21689 sed 's/^/| /' conftest.$ac_ext >&5
21690
21691 ac_header_compiler=no
21692 fi
21693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21694 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21695 echo "${ECHO_T}$ac_header_compiler" >&6
21696
21697 # Is the header present?
21698 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21699 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
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 #include <$ac_header>
21707 _ACEOF
21708 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21709   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21710   ac_status=$?
21711   grep -v '^ *+' conftest.er1 >conftest.err
21712   rm -f conftest.er1
21713   cat conftest.err >&5
21714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21715   (exit $ac_status); } >/dev/null; then
21716   if test -s conftest.err; then
21717     ac_cpp_err=$ac_c_preproc_warn_flag
21718     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21719   else
21720     ac_cpp_err=
21721   fi
21722 else
21723   ac_cpp_err=yes
21724 fi
21725 if test -z "$ac_cpp_err"; then
21726   ac_header_preproc=yes
21727 else
21728   echo "$as_me: failed program was:" >&5
21729 sed 's/^/| /' conftest.$ac_ext >&5
21730
21731   ac_header_preproc=no
21732 fi
21733 rm -f conftest.err conftest.$ac_ext
21734 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21735 echo "${ECHO_T}$ac_header_preproc" >&6
21736
21737 # So?  What about this header?
21738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21739   yes:no: )
21740     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21741 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21742     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21743 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21744     ac_header_preproc=yes
21745     ;;
21746   no:yes:* )
21747     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21748 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21749     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21750 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21751     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21752 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21753     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21754 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21755     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21756 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21757     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21758 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21759     (
21760       cat <<\_ASBOX
21761 ## ------------------------------- ##
21762 ## Report this to nfs@lists.sf.net ##
21763 ## ------------------------------- ##
21764 _ASBOX
21765     ) |
21766       sed "s/^/$as_me: WARNING:     /" >&2
21767     ;;
21768 esac
21769 echo "$as_me:$LINENO: checking for $ac_header" >&5
21770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21771 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21772   echo $ECHO_N "(cached) $ECHO_C" >&6
21773 else
21774   eval "$as_ac_Header=\$ac_header_preproc"
21775 fi
21776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21777 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21778
21779 fi
21780 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21781   cat >>confdefs.h <<_ACEOF
21782 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21783 _ACEOF
21784
21785 else
21786   { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
21787 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
21788    { (exit 1); exit 1; }; }
21789 fi
21790
21791 done
21792
21793
21794 for ac_header in nfsidmap.h
21795 do
21796 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21797 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21798   echo "$as_me:$LINENO: checking for $ac_header" >&5
21799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21801   echo $ECHO_N "(cached) $ECHO_C" >&6
21802 fi
21803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21804 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21805 else
21806   # Is the header compilable?
21807 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21808 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21809 cat >conftest.$ac_ext <<_ACEOF
21810 /* confdefs.h.  */
21811 _ACEOF
21812 cat confdefs.h >>conftest.$ac_ext
21813 cat >>conftest.$ac_ext <<_ACEOF
21814 /* end confdefs.h.  */
21815 $ac_includes_default
21816 #include <$ac_header>
21817 _ACEOF
21818 rm -f conftest.$ac_objext
21819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21820   (eval $ac_compile) 2>conftest.er1
21821   ac_status=$?
21822   grep -v '^ *+' conftest.er1 >conftest.err
21823   rm -f conftest.er1
21824   cat conftest.err >&5
21825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21826   (exit $ac_status); } &&
21827          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21829   (eval $ac_try) 2>&5
21830   ac_status=$?
21831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21832   (exit $ac_status); }; } &&
21833          { ac_try='test -s conftest.$ac_objext'
21834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21835   (eval $ac_try) 2>&5
21836   ac_status=$?
21837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21838   (exit $ac_status); }; }; then
21839   ac_header_compiler=yes
21840 else
21841   echo "$as_me: failed program was:" >&5
21842 sed 's/^/| /' conftest.$ac_ext >&5
21843
21844 ac_header_compiler=no
21845 fi
21846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21847 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21848 echo "${ECHO_T}$ac_header_compiler" >&6
21849
21850 # Is the header present?
21851 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21852 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21853 cat >conftest.$ac_ext <<_ACEOF
21854 /* confdefs.h.  */
21855 _ACEOF
21856 cat confdefs.h >>conftest.$ac_ext
21857 cat >>conftest.$ac_ext <<_ACEOF
21858 /* end confdefs.h.  */
21859 #include <$ac_header>
21860 _ACEOF
21861 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21862   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21863   ac_status=$?
21864   grep -v '^ *+' conftest.er1 >conftest.err
21865   rm -f conftest.er1
21866   cat conftest.err >&5
21867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21868   (exit $ac_status); } >/dev/null; then
21869   if test -s conftest.err; then
21870     ac_cpp_err=$ac_c_preproc_warn_flag
21871     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21872   else
21873     ac_cpp_err=
21874   fi
21875 else
21876   ac_cpp_err=yes
21877 fi
21878 if test -z "$ac_cpp_err"; then
21879   ac_header_preproc=yes
21880 else
21881   echo "$as_me: failed program was:" >&5
21882 sed 's/^/| /' conftest.$ac_ext >&5
21883
21884   ac_header_preproc=no
21885 fi
21886 rm -f conftest.err conftest.$ac_ext
21887 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21888 echo "${ECHO_T}$ac_header_preproc" >&6
21889
21890 # So?  What about this header?
21891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21892   yes:no: )
21893     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21894 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21895     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21896 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21897     ac_header_preproc=yes
21898     ;;
21899   no:yes:* )
21900     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21901 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21902     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21903 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21904     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21905 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21906     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21907 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21908     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21909 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21910     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21911 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21912     (
21913       cat <<\_ASBOX
21914 ## ------------------------------- ##
21915 ## Report this to nfs@lists.sf.net ##
21916 ## ------------------------------- ##
21917 _ASBOX
21918     ) |
21919       sed "s/^/$as_me: WARNING:     /" >&2
21920     ;;
21921 esac
21922 echo "$as_me:$LINENO: checking for $ac_header" >&5
21923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21925   echo $ECHO_N "(cached) $ECHO_C" >&6
21926 else
21927   eval "$as_ac_Header=\$ac_header_preproc"
21928 fi
21929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21930 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21931
21932 fi
21933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21934   cat >>confdefs.h <<_ACEOF
21935 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21936 _ACEOF
21937
21938 else
21939   { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
21940 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
21941    { (exit 1); exit 1; }; }
21942 fi
21943
21944 done
21945
21946 fi
21947 if test "$knfsd_cv_glibc2" = no; then
21948     echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
21949 echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6
21950 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
21951   echo $ECHO_N "(cached) $ECHO_C" >&6
21952 else
21953   ac_check_lib_save_LIBS=$LIBS
21954 LIBS="-lbsd  $LIBS"
21955 cat >conftest.$ac_ext <<_ACEOF
21956 /* confdefs.h.  */
21957 _ACEOF
21958 cat confdefs.h >>conftest.$ac_ext
21959 cat >>conftest.$ac_ext <<_ACEOF
21960 /* end confdefs.h.  */
21961
21962 /* Override any gcc2 internal prototype to avoid an error.  */
21963 #ifdef __cplusplus
21964 extern "C"
21965 #endif
21966 /* We use char because int might match the return type of a gcc2
21967    builtin and then its argument prototype would still apply.  */
21968 char daemon ();
21969 int
21970 main ()
21971 {
21972 daemon ();
21973   ;
21974   return 0;
21975 }
21976 _ACEOF
21977 rm -f conftest.$ac_objext conftest$ac_exeext
21978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21979   (eval $ac_link) 2>conftest.er1
21980   ac_status=$?
21981   grep -v '^ *+' conftest.er1 >conftest.err
21982   rm -f conftest.er1
21983   cat conftest.err >&5
21984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21985   (exit $ac_status); } &&
21986          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21988   (eval $ac_try) 2>&5
21989   ac_status=$?
21990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21991   (exit $ac_status); }; } &&
21992          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
21998   ac_cv_lib_bsd_daemon=yes
21999 else
22000   echo "$as_me: failed program was:" >&5
22001 sed 's/^/| /' conftest.$ac_ext >&5
22002
22003 ac_cv_lib_bsd_daemon=no
22004 fi
22005 rm -f conftest.err conftest.$ac_objext \
22006       conftest$ac_exeext conftest.$ac_ext
22007 LIBS=$ac_check_lib_save_LIBS
22008 fi
22009 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
22010 echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6
22011 if test $ac_cv_lib_bsd_daemon = yes; then
22012   LIBBSD="-lbsd"
22013 fi
22014
22015 fi
22016
22017
22018
22019
22020
22021 if test "$enable_gss" = yes; then
22022
22023 for ac_header in nfsidmap.h
22024 do
22025 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22027   echo "$as_me:$LINENO: checking for $ac_header" >&5
22028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22030   echo $ECHO_N "(cached) $ECHO_C" >&6
22031 fi
22032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22033 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22034 else
22035   # Is the header compilable?
22036 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22037 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22038 cat >conftest.$ac_ext <<_ACEOF
22039 /* confdefs.h.  */
22040 _ACEOF
22041 cat confdefs.h >>conftest.$ac_ext
22042 cat >>conftest.$ac_ext <<_ACEOF
22043 /* end confdefs.h.  */
22044 $ac_includes_default
22045 #include <$ac_header>
22046 _ACEOF
22047 rm -f conftest.$ac_objext
22048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22049   (eval $ac_compile) 2>conftest.er1
22050   ac_status=$?
22051   grep -v '^ *+' conftest.er1 >conftest.err
22052   rm -f conftest.er1
22053   cat conftest.err >&5
22054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22055   (exit $ac_status); } &&
22056          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22058   (eval $ac_try) 2>&5
22059   ac_status=$?
22060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22061   (exit $ac_status); }; } &&
22062          { ac_try='test -s conftest.$ac_objext'
22063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22064   (eval $ac_try) 2>&5
22065   ac_status=$?
22066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067   (exit $ac_status); }; }; then
22068   ac_header_compiler=yes
22069 else
22070   echo "$as_me: failed program was:" >&5
22071 sed 's/^/| /' conftest.$ac_ext >&5
22072
22073 ac_header_compiler=no
22074 fi
22075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22076 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22077 echo "${ECHO_T}$ac_header_compiler" >&6
22078
22079 # Is the header present?
22080 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22081 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22082 cat >conftest.$ac_ext <<_ACEOF
22083 /* confdefs.h.  */
22084 _ACEOF
22085 cat confdefs.h >>conftest.$ac_ext
22086 cat >>conftest.$ac_ext <<_ACEOF
22087 /* end confdefs.h.  */
22088 #include <$ac_header>
22089 _ACEOF
22090 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22091   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22092   ac_status=$?
22093   grep -v '^ *+' conftest.er1 >conftest.err
22094   rm -f conftest.er1
22095   cat conftest.err >&5
22096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22097   (exit $ac_status); } >/dev/null; then
22098   if test -s conftest.err; then
22099     ac_cpp_err=$ac_c_preproc_warn_flag
22100     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22101   else
22102     ac_cpp_err=
22103   fi
22104 else
22105   ac_cpp_err=yes
22106 fi
22107 if test -z "$ac_cpp_err"; then
22108   ac_header_preproc=yes
22109 else
22110   echo "$as_me: failed program was:" >&5
22111 sed 's/^/| /' conftest.$ac_ext >&5
22112
22113   ac_header_preproc=no
22114 fi
22115 rm -f conftest.err conftest.$ac_ext
22116 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22117 echo "${ECHO_T}$ac_header_preproc" >&6
22118
22119 # So?  What about this header?
22120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22121   yes:no: )
22122     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22123 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22124     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22125 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22126     ac_header_preproc=yes
22127     ;;
22128   no:yes:* )
22129     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22130 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22131     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22132 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22133     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22134 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22135     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22136 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22137     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22138 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22139     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22140 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22141     (
22142       cat <<\_ASBOX
22143 ## ------------------------------- ##
22144 ## Report this to nfs@lists.sf.net ##
22145 ## ------------------------------- ##
22146 _ASBOX
22147     ) |
22148       sed "s/^/$as_me: WARNING:     /" >&2
22149     ;;
22150 esac
22151 echo "$as_me:$LINENO: checking for $ac_header" >&5
22152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22154   echo $ECHO_N "(cached) $ECHO_C" >&6
22155 else
22156   eval "$as_ac_Header=\$ac_header_preproc"
22157 fi
22158 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22159 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22160
22161 fi
22162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22163   cat >>confdefs.h <<_ACEOF
22164 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22165 _ACEOF
22166
22167 else
22168   { { echo "$as_me:$LINENO: error: libnfsidmap needed for gss support" >&5
22169 echo "$as_me: error: libnfsidmap needed for gss support" >&2;}
22170    { (exit 1); exit 1; }; }
22171 fi
22172
22173 done
22174
22175
22176 for ac_header in spkm3.h
22177 do
22178 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22180   echo "$as_me:$LINENO: checking for $ac_header" >&5
22181 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22182 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22183   echo $ECHO_N "(cached) $ECHO_C" >&6
22184 fi
22185 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22186 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22187 else
22188   # Is the header compilable?
22189 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22190 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22191 cat >conftest.$ac_ext <<_ACEOF
22192 /* confdefs.h.  */
22193 _ACEOF
22194 cat confdefs.h >>conftest.$ac_ext
22195 cat >>conftest.$ac_ext <<_ACEOF
22196 /* end confdefs.h.  */
22197 $ac_includes_default
22198 #include <$ac_header>
22199 _ACEOF
22200 rm -f conftest.$ac_objext
22201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22202   (eval $ac_compile) 2>conftest.er1
22203   ac_status=$?
22204   grep -v '^ *+' conftest.er1 >conftest.err
22205   rm -f conftest.er1
22206   cat conftest.err >&5
22207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22208   (exit $ac_status); } &&
22209          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22211   (eval $ac_try) 2>&5
22212   ac_status=$?
22213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22214   (exit $ac_status); }; } &&
22215          { ac_try='test -s conftest.$ac_objext'
22216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22217   (eval $ac_try) 2>&5
22218   ac_status=$?
22219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22220   (exit $ac_status); }; }; then
22221   ac_header_compiler=yes
22222 else
22223   echo "$as_me: failed program was:" >&5
22224 sed 's/^/| /' conftest.$ac_ext >&5
22225
22226 ac_header_compiler=no
22227 fi
22228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22229 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22230 echo "${ECHO_T}$ac_header_compiler" >&6
22231
22232 # Is the header present?
22233 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22234 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22235 cat >conftest.$ac_ext <<_ACEOF
22236 /* confdefs.h.  */
22237 _ACEOF
22238 cat confdefs.h >>conftest.$ac_ext
22239 cat >>conftest.$ac_ext <<_ACEOF
22240 /* end confdefs.h.  */
22241 #include <$ac_header>
22242 _ACEOF
22243 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22244   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22245   ac_status=$?
22246   grep -v '^ *+' conftest.er1 >conftest.err
22247   rm -f conftest.er1
22248   cat conftest.err >&5
22249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22250   (exit $ac_status); } >/dev/null; then
22251   if test -s conftest.err; then
22252     ac_cpp_err=$ac_c_preproc_warn_flag
22253     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22254   else
22255     ac_cpp_err=
22256   fi
22257 else
22258   ac_cpp_err=yes
22259 fi
22260 if test -z "$ac_cpp_err"; then
22261   ac_header_preproc=yes
22262 else
22263   echo "$as_me: failed program was:" >&5
22264 sed 's/^/| /' conftest.$ac_ext >&5
22265
22266   ac_header_preproc=no
22267 fi
22268 rm -f conftest.err conftest.$ac_ext
22269 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22270 echo "${ECHO_T}$ac_header_preproc" >&6
22271
22272 # So?  What about this header?
22273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22274   yes:no: )
22275     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22276 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22277     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22278 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22279     ac_header_preproc=yes
22280     ;;
22281   no:yes:* )
22282     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22283 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22284     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22285 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22286     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22287 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22288     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22289 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22290     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22291 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22292     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22293 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22294     (
22295       cat <<\_ASBOX
22296 ## ------------------------------- ##
22297 ## Report this to nfs@lists.sf.net ##
22298 ## ------------------------------- ##
22299 _ASBOX
22300     ) |
22301       sed "s/^/$as_me: WARNING:     /" >&2
22302     ;;
22303 esac
22304 echo "$as_me:$LINENO: checking for $ac_header" >&5
22305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22307   echo $ECHO_N "(cached) $ECHO_C" >&6
22308 else
22309   eval "$as_ac_Header=\$ac_header_preproc"
22310 fi
22311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22313
22314 fi
22315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22316   cat >>confdefs.h <<_ACEOF
22317 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22318 _ACEOF
22319
22320 else
22321   { echo "$as_me:$LINENO: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&5
22322 echo "$as_me: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&2;}
22323 fi
22324
22325 done
22326
22327
22328
22329   echo "$as_me:$LINENO: checking for Kerberos v5" >&5
22330 echo $ECHO_N "checking for Kerberos v5... $ECHO_C" >&6
22331
22332 # Check whether --with-krb5 or --without-krb5 was given.
22333 if test "${with_krb5+set}" = set; then
22334   withval="$with_krb5"
22335    case "$withval" in
22336     yes|no)
22337        krb5_with=""
22338        ;;
22339     *)
22340        krb5_with="$withval"
22341        ;;
22342     esac
22343
22344 fi;
22345
22346   for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
22347              /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
22348             K5CONFIG=""
22349     if test -f $dir/bin/krb5-config; then
22350       K5CONFIG=$dir/bin/krb5-config
22351     elif test -f "/usr/kerberos/bin/krb5-config"; then
22352       K5CONFIG="/usr/kerberos/bin/krb5-config"
22353     fi
22354     if test "$K5CONFIG" != ""; then
22355       KRBCFLAGS=`$K5CONFIG --cflags`
22356       KRBLIBS=`$K5CONFIG --libs gssapi`
22357       K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v["3"] == "") v["3"] = "0"; print v["1"]v["2"]v["3"] }'`
22358
22359 cat >>confdefs.h <<_ACEOF
22360 #define KRB5_VERSION $K5VERS
22361 _ACEOF
22362
22363       if test -f $dir/include/gssapi/gssapi_krb5.h -a \
22364                 \( -f $dir/lib/libgssapi_krb5.a -o \
22365                    -f $dir/lib/libgssapi_krb5.so \) ; then
22366
22367 cat >>confdefs.h <<\_ACEOF
22368 #define HAVE_KRB5 1
22369 _ACEOF
22370
22371          KRBDIR="$dir"
22372                      if test $K5VERS -le 131; then
22373
22374 cat >>confdefs.h <<\_ACEOF
22375 #define USE_GSS_KRB5_CCACHE_NAME 1
22376 _ACEOF
22377
22378          fi
22379          gssapi_lib=gssapi_krb5
22380          break
22381                   elif test \( -f $dir/include/heim_err.h -o\
22382                  -f $dir/include/heimdal/heim_err.h \) -a \
22383                 -f $dir/lib/libroken.a; then
22384
22385 cat >>confdefs.h <<\_ACEOF
22386 #define HAVE_HEIMDAL 1
22387 _ACEOF
22388
22389          KRBDIR="$dir"
22390          gssapi_lib=gssapi
22391         break
22392       fi
22393     fi
22394   done
22395     if test "x$KRBDIR" = "x"; then
22396     if test "x$krb5_with" = "x"; then
22397       { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&5
22398 echo "$as_me: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&2;}
22399    { (exit 1); exit 1; }; }
22400     else
22401       { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found at $krb5_with" >&5
22402 echo "$as_me: error: Kerberos v5 with GSS support not found at $krb5_with" >&2;}
22403    { (exit 1); exit 1; }; }
22404     fi
22405   fi
22406   echo "$as_me:$LINENO: result: $KRBDIR" >&5
22407 echo "${ECHO_T}$KRBDIR" >&6
22408
22409     as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
22410 echo "$as_me:$LINENO: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
22411 echo $ECHO_N "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... $ECHO_C" >&6
22412 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
22413   echo $ECHO_N "(cached) $ECHO_C" >&6
22414 else
22415   ac_check_lib_save_LIBS=$LIBS
22416 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
22417 cat >conftest.$ac_ext <<_ACEOF
22418 /* confdefs.h.  */
22419 _ACEOF
22420 cat confdefs.h >>conftest.$ac_ext
22421 cat >>conftest.$ac_ext <<_ACEOF
22422 /* end confdefs.h.  */
22423
22424 /* Override any gcc2 internal prototype to avoid an error.  */
22425 #ifdef __cplusplus
22426 extern "C"
22427 #endif
22428 /* We use char because int might match the return type of a gcc2
22429    builtin and then its argument prototype would still apply.  */
22430 char gss_krb5_export_lucid_sec_context ();
22431 int
22432 main ()
22433 {
22434 gss_krb5_export_lucid_sec_context ();
22435   ;
22436   return 0;
22437 }
22438 _ACEOF
22439 rm -f conftest.$ac_objext conftest$ac_exeext
22440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22441   (eval $ac_link) 2>conftest.er1
22442   ac_status=$?
22443   grep -v '^ *+' conftest.er1 >conftest.err
22444   rm -f conftest.er1
22445   cat conftest.err >&5
22446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22447   (exit $ac_status); } &&
22448          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22450   (eval $ac_try) 2>&5
22451   ac_status=$?
22452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22453   (exit $ac_status); }; } &&
22454          { ac_try='test -s conftest$ac_exeext'
22455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22456   (eval $ac_try) 2>&5
22457   ac_status=$?
22458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22459   (exit $ac_status); }; }; then
22460   eval "$as_ac_Lib=yes"
22461 else
22462   echo "$as_me: failed program was:" >&5
22463 sed 's/^/| /' conftest.$ac_ext >&5
22464
22465 eval "$as_ac_Lib=no"
22466 fi
22467 rm -f conftest.err conftest.$ac_objext \
22468       conftest$ac_exeext conftest.$ac_ext
22469 LIBS=$ac_check_lib_save_LIBS
22470 fi
22471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
22472 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
22473 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22474
22475 cat >>confdefs.h <<\_ACEOF
22476 #define HAVE_LUCID_CONTEXT_SUPPORT 1
22477 _ACEOF
22478
22479 fi
22480
22481   as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
22482 echo "$as_me:$LINENO: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
22483 echo $ECHO_N "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... $ECHO_C" >&6
22484 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
22485   echo $ECHO_N "(cached) $ECHO_C" >&6
22486 else
22487   ac_check_lib_save_LIBS=$LIBS
22488 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
22489 cat >conftest.$ac_ext <<_ACEOF
22490 /* confdefs.h.  */
22491 _ACEOF
22492 cat confdefs.h >>conftest.$ac_ext
22493 cat >>conftest.$ac_ext <<_ACEOF
22494 /* end confdefs.h.  */
22495
22496 /* Override any gcc2 internal prototype to avoid an error.  */
22497 #ifdef __cplusplus
22498 extern "C"
22499 #endif
22500 /* We use char because int might match the return type of a gcc2
22501    builtin and then its argument prototype would still apply.  */
22502 char gss_krb5_set_allowable_enctypes ();
22503 int
22504 main ()
22505 {
22506 gss_krb5_set_allowable_enctypes ();
22507   ;
22508   return 0;
22509 }
22510 _ACEOF
22511 rm -f conftest.$ac_objext conftest$ac_exeext
22512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22513   (eval $ac_link) 2>conftest.er1
22514   ac_status=$?
22515   grep -v '^ *+' conftest.er1 >conftest.err
22516   rm -f conftest.er1
22517   cat conftest.err >&5
22518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22519   (exit $ac_status); } &&
22520          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22522   (eval $ac_try) 2>&5
22523   ac_status=$?
22524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22525   (exit $ac_status); }; } &&
22526          { ac_try='test -s conftest$ac_exeext'
22527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22528   (eval $ac_try) 2>&5
22529   ac_status=$?
22530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22531   (exit $ac_status); }; }; then
22532   eval "$as_ac_Lib=yes"
22533 else
22534   echo "$as_me: failed program was:" >&5
22535 sed 's/^/| /' conftest.$ac_ext >&5
22536
22537 eval "$as_ac_Lib=no"
22538 fi
22539 rm -f conftest.err conftest.$ac_objext \
22540       conftest$ac_exeext conftest.$ac_ext
22541 LIBS=$ac_check_lib_save_LIBS
22542 fi
22543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
22544 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
22545 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22546
22547 cat >>confdefs.h <<\_ACEOF
22548 #define HAVE_SET_ALLOWABLE_ENCTYPES 1
22549 _ACEOF
22550
22551 fi
22552
22553   as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
22554 echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
22555 echo $ECHO_N "checking for gss_krb5_ccache_name in -l$gssapi_lib... $ECHO_C" >&6
22556 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
22557   echo $ECHO_N "(cached) $ECHO_C" >&6
22558 else
22559   ac_check_lib_save_LIBS=$LIBS
22560 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
22561 cat >conftest.$ac_ext <<_ACEOF
22562 /* confdefs.h.  */
22563 _ACEOF
22564 cat confdefs.h >>conftest.$ac_ext
22565 cat >>conftest.$ac_ext <<_ACEOF
22566 /* end confdefs.h.  */
22567
22568 /* Override any gcc2 internal prototype to avoid an error.  */
22569 #ifdef __cplusplus
22570 extern "C"
22571 #endif
22572 /* We use char because int might match the return type of a gcc2
22573    builtin and then its argument prototype would still apply.  */
22574 char gss_krb5_ccache_name ();
22575 int
22576 main ()
22577 {
22578 gss_krb5_ccache_name ();
22579   ;
22580   return 0;
22581 }
22582 _ACEOF
22583 rm -f conftest.$ac_objext conftest$ac_exeext
22584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22585   (eval $ac_link) 2>conftest.er1
22586   ac_status=$?
22587   grep -v '^ *+' conftest.er1 >conftest.err
22588   rm -f conftest.er1
22589   cat conftest.err >&5
22590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22591   (exit $ac_status); } &&
22592          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22594   (eval $ac_try) 2>&5
22595   ac_status=$?
22596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22597   (exit $ac_status); }; } &&
22598          { ac_try='test -s conftest$ac_exeext'
22599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22600   (eval $ac_try) 2>&5
22601   ac_status=$?
22602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22603   (exit $ac_status); }; }; then
22604   eval "$as_ac_Lib=yes"
22605 else
22606   echo "$as_me: failed program was:" >&5
22607 sed 's/^/| /' conftest.$ac_ext >&5
22608
22609 eval "$as_ac_Lib=no"
22610 fi
22611 rm -f conftest.err conftest.$ac_objext \
22612       conftest$ac_exeext conftest.$ac_ext
22613 LIBS=$ac_check_lib_save_LIBS
22614 fi
22615 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
22616 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
22617 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22618
22619 cat >>confdefs.h <<\_ACEOF
22620 #define HAVE_GSS_KRB5_CCACHE_NAME 1
22621 _ACEOF
22622
22623 fi
22624
22625
22626     if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
22627     { echo "$as_me:$LINENO: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
22628 echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
22629   fi
22630
22631
22632
22633
22634
22635
22636
22637
22638       echo "$as_me:$LINENO: checking for authgss_create_default in -lrpcsecgss" >&5
22639 echo $ECHO_N "checking for authgss_create_default in -lrpcsecgss... $ECHO_C" >&6
22640 if test "${ac_cv_lib_rpcsecgss_authgss_create_default+set}" = set; then
22641   echo $ECHO_N "(cached) $ECHO_C" >&6
22642 else
22643   ac_check_lib_save_LIBS=$LIBS
22644 LIBS="-lrpcsecgss $KRBLIBS $LIBS"
22645 cat >conftest.$ac_ext <<_ACEOF
22646 /* confdefs.h.  */
22647 _ACEOF
22648 cat confdefs.h >>conftest.$ac_ext
22649 cat >>conftest.$ac_ext <<_ACEOF
22650 /* end confdefs.h.  */
22651
22652 /* Override any gcc2 internal prototype to avoid an error.  */
22653 #ifdef __cplusplus
22654 extern "C"
22655 #endif
22656 /* We use char because int might match the return type of a gcc2
22657    builtin and then its argument prototype would still apply.  */
22658 char authgss_create_default ();
22659 int
22660 main ()
22661 {
22662 authgss_create_default ();
22663   ;
22664   return 0;
22665 }
22666 _ACEOF
22667 rm -f conftest.$ac_objext conftest$ac_exeext
22668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22669   (eval $ac_link) 2>conftest.er1
22670   ac_status=$?
22671   grep -v '^ *+' conftest.er1 >conftest.err
22672   rm -f conftest.er1
22673   cat conftest.err >&5
22674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22675   (exit $ac_status); } &&
22676          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22678   (eval $ac_try) 2>&5
22679   ac_status=$?
22680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22681   (exit $ac_status); }; } &&
22682          { ac_try='test -s conftest$ac_exeext'
22683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22684   (eval $ac_try) 2>&5
22685   ac_status=$?
22686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22687   (exit $ac_status); }; }; then
22688   ac_cv_lib_rpcsecgss_authgss_create_default=yes
22689 else
22690   echo "$as_me: failed program was:" >&5
22691 sed 's/^/| /' conftest.$ac_ext >&5
22692
22693 ac_cv_lib_rpcsecgss_authgss_create_default=no
22694 fi
22695 rm -f conftest.err conftest.$ac_objext \
22696       conftest$ac_exeext conftest.$ac_ext
22697 LIBS=$ac_check_lib_save_LIBS
22698 fi
22699 echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
22700 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_create_default" >&6
22701 if test $ac_cv_lib_rpcsecgss_authgss_create_default = yes; then
22702   librpcsecgss=1
22703 else
22704   { { echo "$as_me:$LINENO: error: librpcsecgss needed for nfsv4 support" >&5
22705 echo "$as_me: error: librpcsecgss needed for nfsv4 support" >&2;}
22706    { (exit 1); exit 1; }; }
22707 fi
22708
22709   echo "$as_me:$LINENO: checking for authgss_set_debug_level in -lrpcsecgss" >&5
22710 echo $ECHO_N "checking for authgss_set_debug_level in -lrpcsecgss... $ECHO_C" >&6
22711 if test "${ac_cv_lib_rpcsecgss_authgss_set_debug_level+set}" = set; then
22712   echo $ECHO_N "(cached) $ECHO_C" >&6
22713 else
22714   ac_check_lib_save_LIBS=$LIBS
22715 LIBS="-lrpcsecgss $KRBLIBS $LIBS"
22716 cat >conftest.$ac_ext <<_ACEOF
22717 /* confdefs.h.  */
22718 _ACEOF
22719 cat confdefs.h >>conftest.$ac_ext
22720 cat >>conftest.$ac_ext <<_ACEOF
22721 /* end confdefs.h.  */
22722
22723 /* Override any gcc2 internal prototype to avoid an error.  */
22724 #ifdef __cplusplus
22725 extern "C"
22726 #endif
22727 /* We use char because int might match the return type of a gcc2
22728    builtin and then its argument prototype would still apply.  */
22729 char authgss_set_debug_level ();
22730 int
22731 main ()
22732 {
22733 authgss_set_debug_level ();
22734   ;
22735   return 0;
22736 }
22737 _ACEOF
22738 rm -f conftest.$ac_objext conftest$ac_exeext
22739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22740   (eval $ac_link) 2>conftest.er1
22741   ac_status=$?
22742   grep -v '^ *+' conftest.er1 >conftest.err
22743   rm -f conftest.er1
22744   cat conftest.err >&5
22745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22746   (exit $ac_status); } &&
22747          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22749   (eval $ac_try) 2>&5
22750   ac_status=$?
22751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22752   (exit $ac_status); }; } &&
22753          { ac_try='test -s conftest$ac_exeext'
22754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22755   (eval $ac_try) 2>&5
22756   ac_status=$?
22757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22758   (exit $ac_status); }; }; then
22759   ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
22760 else
22761   echo "$as_me: failed program was:" >&5
22762 sed 's/^/| /' conftest.$ac_ext >&5
22763
22764 ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
22765 fi
22766 rm -f conftest.err conftest.$ac_objext \
22767       conftest$ac_exeext conftest.$ac_ext
22768 LIBS=$ac_check_lib_save_LIBS
22769 fi
22770 echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
22771 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6
22772 if test $ac_cv_lib_rpcsecgss_authgss_set_debug_level = yes; then
22773
22774 cat >>confdefs.h <<\_ACEOF
22775 #define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1
22776 _ACEOF
22777
22778 fi
22779
22780
22781 fi
22782
22783
22784
22785
22786
22787
22788
22789
22790
22791
22792
22793
22794
22795
22796
22797
22798
22799
22800
22801
22802
22803
22804
22805 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
22806                  malloc.h memory.h netdb.h netinet/in.h paths.h \
22807                  stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
22808                  sys/param.h sys/socket.h sys/time.h sys/vfs.h \
22809                  syslog.h unistd.h com_err.h et/com_err.h
22810 do
22811 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22813   echo "$as_me:$LINENO: checking for $ac_header" >&5
22814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22816   echo $ECHO_N "(cached) $ECHO_C" >&6
22817 fi
22818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22819 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22820 else
22821   # Is the header compilable?
22822 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22823 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22824 cat >conftest.$ac_ext <<_ACEOF
22825 /* confdefs.h.  */
22826 _ACEOF
22827 cat confdefs.h >>conftest.$ac_ext
22828 cat >>conftest.$ac_ext <<_ACEOF
22829 /* end confdefs.h.  */
22830 $ac_includes_default
22831 #include <$ac_header>
22832 _ACEOF
22833 rm -f conftest.$ac_objext
22834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22835   (eval $ac_compile) 2>conftest.er1
22836   ac_status=$?
22837   grep -v '^ *+' conftest.er1 >conftest.err
22838   rm -f conftest.er1
22839   cat conftest.err >&5
22840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22841   (exit $ac_status); } &&
22842          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22844   (eval $ac_try) 2>&5
22845   ac_status=$?
22846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22847   (exit $ac_status); }; } &&
22848          { ac_try='test -s conftest.$ac_objext'
22849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22850   (eval $ac_try) 2>&5
22851   ac_status=$?
22852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22853   (exit $ac_status); }; }; then
22854   ac_header_compiler=yes
22855 else
22856   echo "$as_me: failed program was:" >&5
22857 sed 's/^/| /' conftest.$ac_ext >&5
22858
22859 ac_header_compiler=no
22860 fi
22861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22862 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22863 echo "${ECHO_T}$ac_header_compiler" >&6
22864
22865 # Is the header present?
22866 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22867 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22868 cat >conftest.$ac_ext <<_ACEOF
22869 /* confdefs.h.  */
22870 _ACEOF
22871 cat confdefs.h >>conftest.$ac_ext
22872 cat >>conftest.$ac_ext <<_ACEOF
22873 /* end confdefs.h.  */
22874 #include <$ac_header>
22875 _ACEOF
22876 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22877   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22878   ac_status=$?
22879   grep -v '^ *+' conftest.er1 >conftest.err
22880   rm -f conftest.er1
22881   cat conftest.err >&5
22882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22883   (exit $ac_status); } >/dev/null; then
22884   if test -s conftest.err; then
22885     ac_cpp_err=$ac_c_preproc_warn_flag
22886     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22887   else
22888     ac_cpp_err=
22889   fi
22890 else
22891   ac_cpp_err=yes
22892 fi
22893 if test -z "$ac_cpp_err"; then
22894   ac_header_preproc=yes
22895 else
22896   echo "$as_me: failed program was:" >&5
22897 sed 's/^/| /' conftest.$ac_ext >&5
22898
22899   ac_header_preproc=no
22900 fi
22901 rm -f conftest.err conftest.$ac_ext
22902 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22903 echo "${ECHO_T}$ac_header_preproc" >&6
22904
22905 # So?  What about this header?
22906 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22907   yes:no: )
22908     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22909 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22910     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22911 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22912     ac_header_preproc=yes
22913     ;;
22914   no:yes:* )
22915     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22916 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22917     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22918 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22919     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22920 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22921     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22922 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22923     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22924 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22925     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22926 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22927     (
22928       cat <<\_ASBOX
22929 ## ------------------------------- ##
22930 ## Report this to nfs@lists.sf.net ##
22931 ## ------------------------------- ##
22932 _ASBOX
22933     ) |
22934       sed "s/^/$as_me: WARNING:     /" >&2
22935     ;;
22936 esac
22937 echo "$as_me:$LINENO: checking for $ac_header" >&5
22938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22940   echo $ECHO_N "(cached) $ECHO_C" >&6
22941 else
22942   eval "$as_ac_Header=\$ac_header_preproc"
22943 fi
22944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22945 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22946
22947 fi
22948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22949   cat >>confdefs.h <<_ACEOF
22950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22951 _ACEOF
22952
22953 fi
22954
22955 done
22956
22957
22958 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22959 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
22960 if test "${ac_cv_c_const+set}" = set; then
22961   echo $ECHO_N "(cached) $ECHO_C" >&6
22962 else
22963   cat >conftest.$ac_ext <<_ACEOF
22964 /* confdefs.h.  */
22965 _ACEOF
22966 cat confdefs.h >>conftest.$ac_ext
22967 cat >>conftest.$ac_ext <<_ACEOF
22968 /* end confdefs.h.  */
22969
22970 int
22971 main ()
22972 {
22973 /* FIXME: Include the comments suggested by Paul. */
22974 #ifndef __cplusplus
22975   /* Ultrix mips cc rejects this.  */
22976   typedef int charset[2];
22977   const charset x;
22978   /* SunOS 4.1.1 cc rejects this.  */
22979   char const *const *ccp;
22980   char **p;
22981   /* NEC SVR4.0.2 mips cc rejects this.  */
22982   struct point {int x, y;};
22983   static struct point const zero = {0,0};
22984   /* AIX XL C 1.02.0.0 rejects this.
22985      It does not let you subtract one const X* pointer from another in
22986      an arm of an if-expression whose if-part is not a constant
22987      expression */
22988   const char *g = "string";
22989   ccp = &g + (g ? g-g : 0);
22990   /* HPUX 7.0 cc rejects these. */
22991   ++ccp;
22992   p = (char**) ccp;
22993   ccp = (char const *const *) p;
22994   { /* SCO 3.2v4 cc rejects this.  */
22995     char *t;
22996     char const *s = 0 ? (char *) 0 : (char const *) 0;
22997
22998     *t++ = 0;
22999   }
23000   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23001     int x[] = {25, 17};
23002     const int *foo = &x[0];
23003     ++foo;
23004   }
23005   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23006     typedef const int *iptr;
23007     iptr p = 0;
23008     ++p;
23009   }
23010   { /* AIX XL C 1.02.0.0 rejects this saying
23011        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23012     struct s { int j; const int *ap[3]; };
23013     struct s *b; b->j = 5;
23014   }
23015   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23016     const int foo = 10;
23017   }
23018 #endif
23019
23020   ;
23021   return 0;
23022 }
23023 _ACEOF
23024 rm -f conftest.$ac_objext
23025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23026   (eval $ac_compile) 2>conftest.er1
23027   ac_status=$?
23028   grep -v '^ *+' conftest.er1 >conftest.err
23029   rm -f conftest.er1
23030   cat conftest.err >&5
23031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23032   (exit $ac_status); } &&
23033          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23035   (eval $ac_try) 2>&5
23036   ac_status=$?
23037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23038   (exit $ac_status); }; } &&
23039          { ac_try='test -s conftest.$ac_objext'
23040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23041   (eval $ac_try) 2>&5
23042   ac_status=$?
23043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23044   (exit $ac_status); }; }; then
23045   ac_cv_c_const=yes
23046 else
23047   echo "$as_me: failed program was:" >&5
23048 sed 's/^/| /' conftest.$ac_ext >&5
23049
23050 ac_cv_c_const=no
23051 fi
23052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23053 fi
23054 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23055 echo "${ECHO_T}$ac_cv_c_const" >&6
23056 if test $ac_cv_c_const = no; then
23057
23058 cat >>confdefs.h <<\_ACEOF
23059 #define const
23060 _ACEOF
23061
23062 fi
23063
23064 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
23065 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
23066 if test "${ac_cv_type_uid_t+set}" = set; then
23067   echo $ECHO_N "(cached) $ECHO_C" >&6
23068 else
23069   cat >conftest.$ac_ext <<_ACEOF
23070 /* confdefs.h.  */
23071 _ACEOF
23072 cat confdefs.h >>conftest.$ac_ext
23073 cat >>conftest.$ac_ext <<_ACEOF
23074 /* end confdefs.h.  */
23075 #include <sys/types.h>
23076
23077 _ACEOF
23078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23079   $EGREP "uid_t" >/dev/null 2>&1; then
23080   ac_cv_type_uid_t=yes
23081 else
23082   ac_cv_type_uid_t=no
23083 fi
23084 rm -f conftest*
23085
23086 fi
23087 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
23088 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
23089 if test $ac_cv_type_uid_t = no; then
23090
23091 cat >>confdefs.h <<\_ACEOF
23092 #define uid_t int
23093 _ACEOF
23094
23095
23096 cat >>confdefs.h <<\_ACEOF
23097 #define gid_t int
23098 _ACEOF
23099
23100 fi
23101
23102 echo "$as_me:$LINENO: checking for inline" >&5
23103 echo $ECHO_N "checking for inline... $ECHO_C" >&6
23104 if test "${ac_cv_c_inline+set}" = set; then
23105   echo $ECHO_N "(cached) $ECHO_C" >&6
23106 else
23107   ac_cv_c_inline=no
23108 for ac_kw in inline __inline__ __inline; do
23109   cat >conftest.$ac_ext <<_ACEOF
23110 /* confdefs.h.  */
23111 _ACEOF
23112 cat confdefs.h >>conftest.$ac_ext
23113 cat >>conftest.$ac_ext <<_ACEOF
23114 /* end confdefs.h.  */
23115 #ifndef __cplusplus
23116 typedef int foo_t;
23117 static $ac_kw foo_t static_foo () {return 0; }
23118 $ac_kw foo_t foo () {return 0; }
23119 #endif
23120
23121 _ACEOF
23122 rm -f conftest.$ac_objext
23123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23124   (eval $ac_compile) 2>conftest.er1
23125   ac_status=$?
23126   grep -v '^ *+' conftest.er1 >conftest.err
23127   rm -f conftest.er1
23128   cat conftest.err >&5
23129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23130   (exit $ac_status); } &&
23131          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23133   (eval $ac_try) 2>&5
23134   ac_status=$?
23135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23136   (exit $ac_status); }; } &&
23137          { ac_try='test -s conftest.$ac_objext'
23138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23139   (eval $ac_try) 2>&5
23140   ac_status=$?
23141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23142   (exit $ac_status); }; }; then
23143   ac_cv_c_inline=$ac_kw; break
23144 else
23145   echo "$as_me: failed program was:" >&5
23146 sed 's/^/| /' conftest.$ac_ext >&5
23147
23148 fi
23149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23150 done
23151
23152 fi
23153 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
23154 echo "${ECHO_T}$ac_cv_c_inline" >&6
23155
23156
23157 case $ac_cv_c_inline in
23158   inline | yes) ;;
23159   *)
23160     case $ac_cv_c_inline in
23161       no) ac_val=;;
23162       *) ac_val=$ac_cv_c_inline;;
23163     esac
23164     cat >>confdefs.h <<_ACEOF
23165 #ifndef __cplusplus
23166 #define inline $ac_val
23167 #endif
23168 _ACEOF
23169     ;;
23170 esac
23171
23172 echo "$as_me:$LINENO: checking for off_t" >&5
23173 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
23174 if test "${ac_cv_type_off_t+set}" = set; then
23175   echo $ECHO_N "(cached) $ECHO_C" >&6
23176 else
23177   cat >conftest.$ac_ext <<_ACEOF
23178 /* confdefs.h.  */
23179 _ACEOF
23180 cat confdefs.h >>conftest.$ac_ext
23181 cat >>conftest.$ac_ext <<_ACEOF
23182 /* end confdefs.h.  */
23183 $ac_includes_default
23184 int
23185 main ()
23186 {
23187 if ((off_t *) 0)
23188   return 0;
23189 if (sizeof (off_t))
23190   return 0;
23191   ;
23192   return 0;
23193 }
23194 _ACEOF
23195 rm -f conftest.$ac_objext
23196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23197   (eval $ac_compile) 2>conftest.er1
23198   ac_status=$?
23199   grep -v '^ *+' conftest.er1 >conftest.err
23200   rm -f conftest.er1
23201   cat conftest.err >&5
23202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23203   (exit $ac_status); } &&
23204          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23206   (eval $ac_try) 2>&5
23207   ac_status=$?
23208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23209   (exit $ac_status); }; } &&
23210          { ac_try='test -s conftest.$ac_objext'
23211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23212   (eval $ac_try) 2>&5
23213   ac_status=$?
23214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23215   (exit $ac_status); }; }; then
23216   ac_cv_type_off_t=yes
23217 else
23218   echo "$as_me: failed program was:" >&5
23219 sed 's/^/| /' conftest.$ac_ext >&5
23220
23221 ac_cv_type_off_t=no
23222 fi
23223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23224 fi
23225 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
23226 echo "${ECHO_T}$ac_cv_type_off_t" >&6
23227 if test $ac_cv_type_off_t = yes; then
23228   :
23229 else
23230
23231 cat >>confdefs.h <<_ACEOF
23232 #define off_t long
23233 _ACEOF
23234
23235 fi
23236
23237 echo "$as_me:$LINENO: checking for pid_t" >&5
23238 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
23239 if test "${ac_cv_type_pid_t+set}" = set; then
23240   echo $ECHO_N "(cached) $ECHO_C" >&6
23241 else
23242   cat >conftest.$ac_ext <<_ACEOF
23243 /* confdefs.h.  */
23244 _ACEOF
23245 cat confdefs.h >>conftest.$ac_ext
23246 cat >>conftest.$ac_ext <<_ACEOF
23247 /* end confdefs.h.  */
23248 $ac_includes_default
23249 int
23250 main ()
23251 {
23252 if ((pid_t *) 0)
23253   return 0;
23254 if (sizeof (pid_t))
23255   return 0;
23256   ;
23257   return 0;
23258 }
23259 _ACEOF
23260 rm -f conftest.$ac_objext
23261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23262   (eval $ac_compile) 2>conftest.er1
23263   ac_status=$?
23264   grep -v '^ *+' conftest.er1 >conftest.err
23265   rm -f conftest.er1
23266   cat conftest.err >&5
23267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23268   (exit $ac_status); } &&
23269          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23271   (eval $ac_try) 2>&5
23272   ac_status=$?
23273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23274   (exit $ac_status); }; } &&
23275          { ac_try='test -s conftest.$ac_objext'
23276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23277   (eval $ac_try) 2>&5
23278   ac_status=$?
23279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23280   (exit $ac_status); }; }; then
23281   ac_cv_type_pid_t=yes
23282 else
23283   echo "$as_me: failed program was:" >&5
23284 sed 's/^/| /' conftest.$ac_ext >&5
23285
23286 ac_cv_type_pid_t=no
23287 fi
23288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23289 fi
23290 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23291 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
23292 if test $ac_cv_type_pid_t = yes; then
23293   :
23294 else
23295
23296 cat >>confdefs.h <<_ACEOF
23297 #define pid_t int
23298 _ACEOF
23299
23300 fi
23301
23302 echo "$as_me:$LINENO: checking for size_t" >&5
23303 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
23304 if test "${ac_cv_type_size_t+set}" = set; then
23305   echo $ECHO_N "(cached) $ECHO_C" >&6
23306 else
23307   cat >conftest.$ac_ext <<_ACEOF
23308 /* confdefs.h.  */
23309 _ACEOF
23310 cat confdefs.h >>conftest.$ac_ext
23311 cat >>conftest.$ac_ext <<_ACEOF
23312 /* end confdefs.h.  */
23313 $ac_includes_default
23314 int
23315 main ()
23316 {
23317 if ((size_t *) 0)
23318   return 0;
23319 if (sizeof (size_t))
23320   return 0;
23321   ;
23322   return 0;
23323 }
23324 _ACEOF
23325 rm -f conftest.$ac_objext
23326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23327   (eval $ac_compile) 2>conftest.er1
23328   ac_status=$?
23329   grep -v '^ *+' conftest.er1 >conftest.err
23330   rm -f conftest.er1
23331   cat conftest.err >&5
23332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23333   (exit $ac_status); } &&
23334          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23336   (eval $ac_try) 2>&5
23337   ac_status=$?
23338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23339   (exit $ac_status); }; } &&
23340          { ac_try='test -s conftest.$ac_objext'
23341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23342   (eval $ac_try) 2>&5
23343   ac_status=$?
23344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23345   (exit $ac_status); }; }; then
23346   ac_cv_type_size_t=yes
23347 else
23348   echo "$as_me: failed program was:" >&5
23349 sed 's/^/| /' conftest.$ac_ext >&5
23350
23351 ac_cv_type_size_t=no
23352 fi
23353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23354 fi
23355 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23356 echo "${ECHO_T}$ac_cv_type_size_t" >&6
23357 if test $ac_cv_type_size_t = yes; then
23358   :
23359 else
23360
23361 cat >>confdefs.h <<_ACEOF
23362 #define size_t unsigned
23363 _ACEOF
23364
23365 fi
23366
23367 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
23368 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
23369 if test "${ac_cv_header_time+set}" = set; then
23370   echo $ECHO_N "(cached) $ECHO_C" >&6
23371 else
23372   cat >conftest.$ac_ext <<_ACEOF
23373 /* confdefs.h.  */
23374 _ACEOF
23375 cat confdefs.h >>conftest.$ac_ext
23376 cat >>conftest.$ac_ext <<_ACEOF
23377 /* end confdefs.h.  */
23378 #include <sys/types.h>
23379 #include <sys/time.h>
23380 #include <time.h>
23381
23382 int
23383 main ()
23384 {
23385 if ((struct tm *) 0)
23386 return 0;
23387   ;
23388   return 0;
23389 }
23390 _ACEOF
23391 rm -f conftest.$ac_objext
23392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23393   (eval $ac_compile) 2>conftest.er1
23394   ac_status=$?
23395   grep -v '^ *+' conftest.er1 >conftest.err
23396   rm -f conftest.er1
23397   cat conftest.err >&5
23398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23399   (exit $ac_status); } &&
23400          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23402   (eval $ac_try) 2>&5
23403   ac_status=$?
23404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23405   (exit $ac_status); }; } &&
23406          { ac_try='test -s conftest.$ac_objext'
23407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23408   (eval $ac_try) 2>&5
23409   ac_status=$?
23410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23411   (exit $ac_status); }; }; then
23412   ac_cv_header_time=yes
23413 else
23414   echo "$as_me: failed program was:" >&5
23415 sed 's/^/| /' conftest.$ac_ext >&5
23416
23417 ac_cv_header_time=no
23418 fi
23419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23420 fi
23421 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
23422 echo "${ECHO_T}$ac_cv_header_time" >&6
23423 if test $ac_cv_header_time = yes; then
23424
23425 cat >>confdefs.h <<\_ACEOF
23426 #define TIME_WITH_SYS_TIME 1
23427 _ACEOF
23428
23429 fi
23430
23431 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23432 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
23433 if test "${ac_cv_struct_tm+set}" = set; then
23434   echo $ECHO_N "(cached) $ECHO_C" >&6
23435 else
23436   cat >conftest.$ac_ext <<_ACEOF
23437 /* confdefs.h.  */
23438 _ACEOF
23439 cat confdefs.h >>conftest.$ac_ext
23440 cat >>conftest.$ac_ext <<_ACEOF
23441 /* end confdefs.h.  */
23442 #include <sys/types.h>
23443 #include <time.h>
23444
23445 int
23446 main ()
23447 {
23448 struct tm *tp; tp->tm_sec;
23449   ;
23450   return 0;
23451 }
23452 _ACEOF
23453 rm -f conftest.$ac_objext
23454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23455   (eval $ac_compile) 2>conftest.er1
23456   ac_status=$?
23457   grep -v '^ *+' conftest.er1 >conftest.err
23458   rm -f conftest.er1
23459   cat conftest.err >&5
23460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23461   (exit $ac_status); } &&
23462          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23464   (eval $ac_try) 2>&5
23465   ac_status=$?
23466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23467   (exit $ac_status); }; } &&
23468          { ac_try='test -s conftest.$ac_objext'
23469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23470   (eval $ac_try) 2>&5
23471   ac_status=$?
23472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23473   (exit $ac_status); }; }; then
23474   ac_cv_struct_tm=time.h
23475 else
23476   echo "$as_me: failed program was:" >&5
23477 sed 's/^/| /' conftest.$ac_ext >&5
23478
23479 ac_cv_struct_tm=sys/time.h
23480 fi
23481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23482 fi
23483 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23484 echo "${ECHO_T}$ac_cv_struct_tm" >&6
23485 if test $ac_cv_struct_tm = sys/time.h; then
23486
23487 cat >>confdefs.h <<\_ACEOF
23488 #define TM_IN_SYS_TIME 1
23489 _ACEOF
23490
23491 fi
23492
23493
23494 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
23495 # for constant arguments.  Useless!
23496 echo "$as_me:$LINENO: checking for working alloca.h" >&5
23497 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
23498 if test "${ac_cv_working_alloca_h+set}" = set; then
23499   echo $ECHO_N "(cached) $ECHO_C" >&6
23500 else
23501   cat >conftest.$ac_ext <<_ACEOF
23502 /* confdefs.h.  */
23503 _ACEOF
23504 cat confdefs.h >>conftest.$ac_ext
23505 cat >>conftest.$ac_ext <<_ACEOF
23506 /* end confdefs.h.  */
23507 #include <alloca.h>
23508 int
23509 main ()
23510 {
23511 char *p = (char *) alloca (2 * sizeof (int));
23512   ;
23513   return 0;
23514 }
23515 _ACEOF
23516 rm -f conftest.$ac_objext conftest$ac_exeext
23517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23518   (eval $ac_link) 2>conftest.er1
23519   ac_status=$?
23520   grep -v '^ *+' conftest.er1 >conftest.err
23521   rm -f conftest.er1
23522   cat conftest.err >&5
23523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23524   (exit $ac_status); } &&
23525          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23527   (eval $ac_try) 2>&5
23528   ac_status=$?
23529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23530   (exit $ac_status); }; } &&
23531          { ac_try='test -s conftest$ac_exeext'
23532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23533   (eval $ac_try) 2>&5
23534   ac_status=$?
23535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23536   (exit $ac_status); }; }; then
23537   ac_cv_working_alloca_h=yes
23538 else
23539   echo "$as_me: failed program was:" >&5
23540 sed 's/^/| /' conftest.$ac_ext >&5
23541
23542 ac_cv_working_alloca_h=no
23543 fi
23544 rm -f conftest.err conftest.$ac_objext \
23545       conftest$ac_exeext conftest.$ac_ext
23546 fi
23547 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
23548 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
23549 if test $ac_cv_working_alloca_h = yes; then
23550
23551 cat >>confdefs.h <<\_ACEOF
23552 #define HAVE_ALLOCA_H 1
23553 _ACEOF
23554
23555 fi
23556
23557 echo "$as_me:$LINENO: checking for alloca" >&5
23558 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
23559 if test "${ac_cv_func_alloca_works+set}" = set; then
23560   echo $ECHO_N "(cached) $ECHO_C" >&6
23561 else
23562   cat >conftest.$ac_ext <<_ACEOF
23563 /* confdefs.h.  */
23564 _ACEOF
23565 cat confdefs.h >>conftest.$ac_ext
23566 cat >>conftest.$ac_ext <<_ACEOF
23567 /* end confdefs.h.  */
23568 #ifdef __GNUC__
23569 # define alloca __builtin_alloca
23570 #else
23571 # ifdef _MSC_VER
23572 #  include <malloc.h>
23573 #  define alloca _alloca
23574 # else
23575 #  if HAVE_ALLOCA_H
23576 #   include <alloca.h>
23577 #  else
23578 #   ifdef _AIX
23579  #pragma alloca
23580 #   else
23581 #    ifndef alloca /* predefined by HP cc +Olibcalls */
23582 char *alloca ();
23583 #    endif
23584 #   endif
23585 #  endif
23586 # endif
23587 #endif
23588
23589 int
23590 main ()
23591 {
23592 char *p = (char *) alloca (1);
23593   ;
23594   return 0;
23595 }
23596 _ACEOF
23597 rm -f conftest.$ac_objext conftest$ac_exeext
23598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23599   (eval $ac_link) 2>conftest.er1
23600   ac_status=$?
23601   grep -v '^ *+' conftest.er1 >conftest.err
23602   rm -f conftest.er1
23603   cat conftest.err >&5
23604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23605   (exit $ac_status); } &&
23606          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23608   (eval $ac_try) 2>&5
23609   ac_status=$?
23610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23611   (exit $ac_status); }; } &&
23612          { ac_try='test -s conftest$ac_exeext'
23613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23614   (eval $ac_try) 2>&5
23615   ac_status=$?
23616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23617   (exit $ac_status); }; }; then
23618   ac_cv_func_alloca_works=yes
23619 else
23620   echo "$as_me: failed program was:" >&5
23621 sed 's/^/| /' conftest.$ac_ext >&5
23622
23623 ac_cv_func_alloca_works=no
23624 fi
23625 rm -f conftest.err conftest.$ac_objext \
23626       conftest$ac_exeext conftest.$ac_ext
23627 fi
23628 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
23629 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
23630
23631 if test $ac_cv_func_alloca_works = yes; then
23632
23633 cat >>confdefs.h <<\_ACEOF
23634 #define HAVE_ALLOCA 1
23635 _ACEOF
23636
23637 else
23638   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
23639 # that cause trouble.  Some versions do not even contain alloca or
23640 # contain a buggy version.  If you still want to use their alloca,
23641 # use ar to extract alloca.o from them instead of compiling alloca.c.
23642
23643 ALLOCA=alloca.$ac_objext
23644
23645 cat >>confdefs.h <<\_ACEOF
23646 #define C_ALLOCA 1
23647 _ACEOF
23648
23649
23650 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
23651 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
23652 if test "${ac_cv_os_cray+set}" = set; then
23653   echo $ECHO_N "(cached) $ECHO_C" >&6
23654 else
23655   cat >conftest.$ac_ext <<_ACEOF
23656 /* confdefs.h.  */
23657 _ACEOF
23658 cat confdefs.h >>conftest.$ac_ext
23659 cat >>conftest.$ac_ext <<_ACEOF
23660 /* end confdefs.h.  */
23661 #if defined(CRAY) && ! defined(CRAY2)
23662 webecray
23663 #else
23664 wenotbecray
23665 #endif
23666
23667 _ACEOF
23668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23669   $EGREP "webecray" >/dev/null 2>&1; then
23670   ac_cv_os_cray=yes
23671 else
23672   ac_cv_os_cray=no
23673 fi
23674 rm -f conftest*
23675
23676 fi
23677 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
23678 echo "${ECHO_T}$ac_cv_os_cray" >&6
23679 if test $ac_cv_os_cray = yes; then
23680   for ac_func in _getb67 GETB67 getb67; do
23681     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23682 echo "$as_me:$LINENO: checking for $ac_func" >&5
23683 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23684 if eval "test \"\${$as_ac_var+set}\" = set"; then
23685   echo $ECHO_N "(cached) $ECHO_C" >&6
23686 else
23687   cat >conftest.$ac_ext <<_ACEOF
23688 /* confdefs.h.  */
23689 _ACEOF
23690 cat confdefs.h >>conftest.$ac_ext
23691 cat >>conftest.$ac_ext <<_ACEOF
23692 /* end confdefs.h.  */
23693 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23694    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23695 #define $ac_func innocuous_$ac_func
23696
23697 /* System header to define __stub macros and hopefully few prototypes,
23698     which can conflict with char $ac_func (); below.
23699     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23700     <limits.h> exists even on freestanding compilers.  */
23701
23702 #ifdef __STDC__
23703 # include <limits.h>
23704 #else
23705 # include <assert.h>
23706 #endif
23707
23708 #undef $ac_func
23709
23710 /* Override any gcc2 internal prototype to avoid an error.  */
23711 #ifdef __cplusplus
23712 extern "C"
23713 {
23714 #endif
23715 /* We use char because int might match the return type of a gcc2
23716    builtin and then its argument prototype would still apply.  */
23717 char $ac_func ();
23718 /* The GNU C library defines this for functions which it implements
23719     to always fail with ENOSYS.  Some functions are actually named
23720     something starting with __ and the normal name is an alias.  */
23721 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23722 choke me
23723 #else
23724 char (*f) () = $ac_func;
23725 #endif
23726 #ifdef __cplusplus
23727 }
23728 #endif
23729
23730 int
23731 main ()
23732 {
23733 return f != $ac_func;
23734   ;
23735   return 0;
23736 }
23737 _ACEOF
23738 rm -f conftest.$ac_objext conftest$ac_exeext
23739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23740   (eval $ac_link) 2>conftest.er1
23741   ac_status=$?
23742   grep -v '^ *+' conftest.er1 >conftest.err
23743   rm -f conftest.er1
23744   cat conftest.err >&5
23745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23746   (exit $ac_status); } &&
23747          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23749   (eval $ac_try) 2>&5
23750   ac_status=$?
23751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23752   (exit $ac_status); }; } &&
23753          { ac_try='test -s conftest$ac_exeext'
23754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23755   (eval $ac_try) 2>&5
23756   ac_status=$?
23757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23758   (exit $ac_status); }; }; then
23759   eval "$as_ac_var=yes"
23760 else
23761   echo "$as_me: failed program was:" >&5
23762 sed 's/^/| /' conftest.$ac_ext >&5
23763
23764 eval "$as_ac_var=no"
23765 fi
23766 rm -f conftest.err conftest.$ac_objext \
23767       conftest$ac_exeext conftest.$ac_ext
23768 fi
23769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23770 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23771 if test `eval echo '${'$as_ac_var'}'` = yes; then
23772
23773 cat >>confdefs.h <<_ACEOF
23774 #define CRAY_STACKSEG_END $ac_func
23775 _ACEOF
23776
23777     break
23778 fi
23779
23780   done
23781 fi
23782
23783 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
23784 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
23785 if test "${ac_cv_c_stack_direction+set}" = set; then
23786   echo $ECHO_N "(cached) $ECHO_C" >&6
23787 else
23788   if test "$cross_compiling" = yes; then
23789   ac_cv_c_stack_direction=0
23790 else
23791   cat >conftest.$ac_ext <<_ACEOF
23792 /* confdefs.h.  */
23793 _ACEOF
23794 cat confdefs.h >>conftest.$ac_ext
23795 cat >>conftest.$ac_ext <<_ACEOF
23796 /* end confdefs.h.  */
23797 int
23798 find_stack_direction ()
23799 {
23800   static char *addr = 0;
23801   auto char dummy;
23802   if (addr == 0)
23803     {
23804       addr = &dummy;
23805       return find_stack_direction ();
23806     }
23807   else
23808     return (&dummy > addr) ? 1 : -1;
23809 }
23810
23811 int
23812 main ()
23813 {
23814   exit (find_stack_direction () < 0);
23815 }
23816 _ACEOF
23817 rm -f conftest$ac_exeext
23818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23819   (eval $ac_link) 2>&5
23820   ac_status=$?
23821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23822   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23824   (eval $ac_try) 2>&5
23825   ac_status=$?
23826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23827   (exit $ac_status); }; }; then
23828   ac_cv_c_stack_direction=1
23829 else
23830   echo "$as_me: program exited with status $ac_status" >&5
23831 echo "$as_me: failed program was:" >&5
23832 sed 's/^/| /' conftest.$ac_ext >&5
23833
23834 ( exit $ac_status )
23835 ac_cv_c_stack_direction=-1
23836 fi
23837 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23838 fi
23839 fi
23840 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
23841 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
23842
23843 cat >>confdefs.h <<_ACEOF
23844 #define STACK_DIRECTION $ac_cv_c_stack_direction
23845 _ACEOF
23846
23847
23848 fi
23849
23850
23851
23852
23853
23854
23855 ac_header_dirent=no
23856 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
23857   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
23858 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
23859 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
23860 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23861   echo $ECHO_N "(cached) $ECHO_C" >&6
23862 else
23863   cat >conftest.$ac_ext <<_ACEOF
23864 /* confdefs.h.  */
23865 _ACEOF
23866 cat confdefs.h >>conftest.$ac_ext
23867 cat >>conftest.$ac_ext <<_ACEOF
23868 /* end confdefs.h.  */
23869 #include <sys/types.h>
23870 #include <$ac_hdr>
23871
23872 int
23873 main ()
23874 {
23875 if ((DIR *) 0)
23876 return 0;
23877   ;
23878   return 0;
23879 }
23880 _ACEOF
23881 rm -f conftest.$ac_objext
23882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23883   (eval $ac_compile) 2>conftest.er1
23884   ac_status=$?
23885   grep -v '^ *+' conftest.er1 >conftest.err
23886   rm -f conftest.er1
23887   cat conftest.err >&5
23888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23889   (exit $ac_status); } &&
23890          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23892   (eval $ac_try) 2>&5
23893   ac_status=$?
23894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23895   (exit $ac_status); }; } &&
23896          { ac_try='test -s conftest.$ac_objext'
23897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23898   (eval $ac_try) 2>&5
23899   ac_status=$?
23900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23901   (exit $ac_status); }; }; then
23902   eval "$as_ac_Header=yes"
23903 else
23904   echo "$as_me: failed program was:" >&5
23905 sed 's/^/| /' conftest.$ac_ext >&5
23906
23907 eval "$as_ac_Header=no"
23908 fi
23909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23910 fi
23911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23912 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23913 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23914   cat >>confdefs.h <<_ACEOF
23915 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
23916 _ACEOF
23917
23918 ac_header_dirent=$ac_hdr; break
23919 fi
23920
23921 done
23922 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
23923 if test $ac_header_dirent = dirent.h; then
23924   echo "$as_me:$LINENO: checking for library containing opendir" >&5
23925 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23926 if test "${ac_cv_search_opendir+set}" = set; then
23927   echo $ECHO_N "(cached) $ECHO_C" >&6
23928 else
23929   ac_func_search_save_LIBS=$LIBS
23930 ac_cv_search_opendir=no
23931 cat >conftest.$ac_ext <<_ACEOF
23932 /* confdefs.h.  */
23933 _ACEOF
23934 cat confdefs.h >>conftest.$ac_ext
23935 cat >>conftest.$ac_ext <<_ACEOF
23936 /* end confdefs.h.  */
23937
23938 /* Override any gcc2 internal prototype to avoid an error.  */
23939 #ifdef __cplusplus
23940 extern "C"
23941 #endif
23942 /* We use char because int might match the return type of a gcc2
23943    builtin and then its argument prototype would still apply.  */
23944 char opendir ();
23945 int
23946 main ()
23947 {
23948 opendir ();
23949   ;
23950   return 0;
23951 }
23952 _ACEOF
23953 rm -f conftest.$ac_objext conftest$ac_exeext
23954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23955   (eval $ac_link) 2>conftest.er1
23956   ac_status=$?
23957   grep -v '^ *+' conftest.er1 >conftest.err
23958   rm -f conftest.er1
23959   cat conftest.err >&5
23960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23961   (exit $ac_status); } &&
23962          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23964   (eval $ac_try) 2>&5
23965   ac_status=$?
23966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23967   (exit $ac_status); }; } &&
23968          { ac_try='test -s conftest$ac_exeext'
23969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23970   (eval $ac_try) 2>&5
23971   ac_status=$?
23972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23973   (exit $ac_status); }; }; then
23974   ac_cv_search_opendir="none required"
23975 else
23976   echo "$as_me: failed program was:" >&5
23977 sed 's/^/| /' conftest.$ac_ext >&5
23978
23979 fi
23980 rm -f conftest.err conftest.$ac_objext \
23981       conftest$ac_exeext conftest.$ac_ext
23982 if test "$ac_cv_search_opendir" = no; then
23983   for ac_lib in dir; do
23984     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23985     cat >conftest.$ac_ext <<_ACEOF
23986 /* confdefs.h.  */
23987 _ACEOF
23988 cat confdefs.h >>conftest.$ac_ext
23989 cat >>conftest.$ac_ext <<_ACEOF
23990 /* end confdefs.h.  */
23991
23992 /* Override any gcc2 internal prototype to avoid an error.  */
23993 #ifdef __cplusplus
23994 extern "C"
23995 #endif
23996 /* We use char because int might match the return type of a gcc2
23997    builtin and then its argument prototype would still apply.  */
23998 char opendir ();
23999 int
24000 main ()
24001 {
24002 opendir ();
24003   ;
24004   return 0;
24005 }
24006 _ACEOF
24007 rm -f conftest.$ac_objext conftest$ac_exeext
24008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24009   (eval $ac_link) 2>conftest.er1
24010   ac_status=$?
24011   grep -v '^ *+' conftest.er1 >conftest.err
24012   rm -f conftest.er1
24013   cat conftest.err >&5
24014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24015   (exit $ac_status); } &&
24016          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24018   (eval $ac_try) 2>&5
24019   ac_status=$?
24020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24021   (exit $ac_status); }; } &&
24022          { ac_try='test -s conftest$ac_exeext'
24023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24024   (eval $ac_try) 2>&5
24025   ac_status=$?
24026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24027   (exit $ac_status); }; }; then
24028   ac_cv_search_opendir="-l$ac_lib"
24029 break
24030 else
24031   echo "$as_me: failed program was:" >&5
24032 sed 's/^/| /' conftest.$ac_ext >&5
24033
24034 fi
24035 rm -f conftest.err conftest.$ac_objext \
24036       conftest$ac_exeext conftest.$ac_ext
24037   done
24038 fi
24039 LIBS=$ac_func_search_save_LIBS
24040 fi
24041 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
24042 echo "${ECHO_T}$ac_cv_search_opendir" >&6
24043 if test "$ac_cv_search_opendir" != no; then
24044   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
24045
24046 fi
24047
24048 else
24049   echo "$as_me:$LINENO: checking for library containing opendir" >&5
24050 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
24051 if test "${ac_cv_search_opendir+set}" = set; then
24052   echo $ECHO_N "(cached) $ECHO_C" >&6
24053 else
24054   ac_func_search_save_LIBS=$LIBS
24055 ac_cv_search_opendir=no
24056 cat >conftest.$ac_ext <<_ACEOF
24057 /* confdefs.h.  */
24058 _ACEOF
24059 cat confdefs.h >>conftest.$ac_ext
24060 cat >>conftest.$ac_ext <<_ACEOF
24061 /* end confdefs.h.  */
24062
24063 /* Override any gcc2 internal prototype to avoid an error.  */
24064 #ifdef __cplusplus
24065 extern "C"
24066 #endif
24067 /* We use char because int might match the return type of a gcc2
24068    builtin and then its argument prototype would still apply.  */
24069 char opendir ();
24070 int
24071 main ()
24072 {
24073 opendir ();
24074   ;
24075   return 0;
24076 }
24077 _ACEOF
24078 rm -f conftest.$ac_objext conftest$ac_exeext
24079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24080   (eval $ac_link) 2>conftest.er1
24081   ac_status=$?
24082   grep -v '^ *+' conftest.er1 >conftest.err
24083   rm -f conftest.er1
24084   cat conftest.err >&5
24085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24086   (exit $ac_status); } &&
24087          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24089   (eval $ac_try) 2>&5
24090   ac_status=$?
24091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24092   (exit $ac_status); }; } &&
24093          { ac_try='test -s conftest$ac_exeext'
24094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24095   (eval $ac_try) 2>&5
24096   ac_status=$?
24097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24098   (exit $ac_status); }; }; then
24099   ac_cv_search_opendir="none required"
24100 else
24101   echo "$as_me: failed program was:" >&5
24102 sed 's/^/| /' conftest.$ac_ext >&5
24103
24104 fi
24105 rm -f conftest.err conftest.$ac_objext \
24106       conftest$ac_exeext conftest.$ac_ext
24107 if test "$ac_cv_search_opendir" = no; then
24108   for ac_lib in x; do
24109     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24110     cat >conftest.$ac_ext <<_ACEOF
24111 /* confdefs.h.  */
24112 _ACEOF
24113 cat confdefs.h >>conftest.$ac_ext
24114 cat >>conftest.$ac_ext <<_ACEOF
24115 /* end confdefs.h.  */
24116
24117 /* Override any gcc2 internal prototype to avoid an error.  */
24118 #ifdef __cplusplus
24119 extern "C"
24120 #endif
24121 /* We use char because int might match the return type of a gcc2
24122    builtin and then its argument prototype would still apply.  */
24123 char opendir ();
24124 int
24125 main ()
24126 {
24127 opendir ();
24128   ;
24129   return 0;
24130 }
24131 _ACEOF
24132 rm -f conftest.$ac_objext conftest$ac_exeext
24133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24134   (eval $ac_link) 2>conftest.er1
24135   ac_status=$?
24136   grep -v '^ *+' conftest.er1 >conftest.err
24137   rm -f conftest.er1
24138   cat conftest.err >&5
24139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24140   (exit $ac_status); } &&
24141          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24143   (eval $ac_try) 2>&5
24144   ac_status=$?
24145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24146   (exit $ac_status); }; } &&
24147          { ac_try='test -s conftest$ac_exeext'
24148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24149   (eval $ac_try) 2>&5
24150   ac_status=$?
24151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24152   (exit $ac_status); }; }; then
24153   ac_cv_search_opendir="-l$ac_lib"
24154 break
24155 else
24156   echo "$as_me: failed program was:" >&5
24157 sed 's/^/| /' conftest.$ac_ext >&5
24158
24159 fi
24160 rm -f conftest.err conftest.$ac_objext \
24161       conftest$ac_exeext conftest.$ac_ext
24162   done
24163 fi
24164 LIBS=$ac_func_search_save_LIBS
24165 fi
24166 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
24167 echo "${ECHO_T}$ac_cv_search_opendir" >&6
24168 if test "$ac_cv_search_opendir" != no; then
24169   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
24170
24171 fi
24172
24173 fi
24174
24175 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
24176 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
24177 if test "${ac_cv_func_closedir_void+set}" = set; then
24178   echo $ECHO_N "(cached) $ECHO_C" >&6
24179 else
24180   if test "$cross_compiling" = yes; then
24181   ac_cv_func_closedir_void=yes
24182 else
24183   cat >conftest.$ac_ext <<_ACEOF
24184 /* confdefs.h.  */
24185 _ACEOF
24186 cat confdefs.h >>conftest.$ac_ext
24187 cat >>conftest.$ac_ext <<_ACEOF
24188 /* end confdefs.h.  */
24189 $ac_includes_default
24190 #include <$ac_header_dirent>
24191 #ifndef __cplusplus
24192 int closedir ();
24193 #endif
24194
24195 int
24196 main ()
24197 {
24198 exit (closedir (opendir (".")) != 0);
24199   ;
24200   return 0;
24201 }
24202 _ACEOF
24203 rm -f conftest$ac_exeext
24204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24205   (eval $ac_link) 2>&5
24206   ac_status=$?
24207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24208   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24210   (eval $ac_try) 2>&5
24211   ac_status=$?
24212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24213   (exit $ac_status); }; }; then
24214   ac_cv_func_closedir_void=no
24215 else
24216   echo "$as_me: program exited with status $ac_status" >&5
24217 echo "$as_me: failed program was:" >&5
24218 sed 's/^/| /' conftest.$ac_ext >&5
24219
24220 ( exit $ac_status )
24221 ac_cv_func_closedir_void=yes
24222 fi
24223 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24224 fi
24225 fi
24226 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
24227 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
24228 if test $ac_cv_func_closedir_void = yes; then
24229
24230 cat >>confdefs.h <<\_ACEOF
24231 #define CLOSEDIR_VOID 1
24232 _ACEOF
24233
24234 fi
24235
24236 echo "$as_me:$LINENO: checking for error_at_line" >&5
24237 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
24238 if test "${ac_cv_lib_error_at_line+set}" = set; then
24239   echo $ECHO_N "(cached) $ECHO_C" >&6
24240 else
24241   cat >conftest.$ac_ext <<_ACEOF
24242 /* confdefs.h.  */
24243 _ACEOF
24244 cat confdefs.h >>conftest.$ac_ext
24245 cat >>conftest.$ac_ext <<_ACEOF
24246 /* end confdefs.h.  */
24247 $ac_includes_default
24248 int
24249 main ()
24250 {
24251 error_at_line (0, 0, "", 0, "");
24252   ;
24253   return 0;
24254 }
24255 _ACEOF
24256 rm -f conftest.$ac_objext conftest$ac_exeext
24257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24258   (eval $ac_link) 2>conftest.er1
24259   ac_status=$?
24260   grep -v '^ *+' conftest.er1 >conftest.err
24261   rm -f conftest.er1
24262   cat conftest.err >&5
24263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24264   (exit $ac_status); } &&
24265          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24267   (eval $ac_try) 2>&5
24268   ac_status=$?
24269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24270   (exit $ac_status); }; } &&
24271          { ac_try='test -s conftest$ac_exeext'
24272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24273   (eval $ac_try) 2>&5
24274   ac_status=$?
24275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24276   (exit $ac_status); }; }; then
24277   ac_cv_lib_error_at_line=yes
24278 else
24279   echo "$as_me: failed program was:" >&5
24280 sed 's/^/| /' conftest.$ac_ext >&5
24281
24282 ac_cv_lib_error_at_line=no
24283 fi
24284 rm -f conftest.err conftest.$ac_objext \
24285       conftest$ac_exeext conftest.$ac_ext
24286 fi
24287 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
24288 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
24289 if test $ac_cv_lib_error_at_line = no; then
24290   case $LIBOBJS in
24291     "error.$ac_objext"   | \
24292   *" error.$ac_objext"   | \
24293     "error.$ac_objext "* | \
24294   *" error.$ac_objext "* ) ;;
24295   *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
24296 esac
24297
24298 fi
24299
24300
24301
24302 for ac_header in unistd.h vfork.h
24303 do
24304 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24306   echo "$as_me:$LINENO: checking for $ac_header" >&5
24307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24309   echo $ECHO_N "(cached) $ECHO_C" >&6
24310 fi
24311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24313 else
24314   # Is the header compilable?
24315 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24316 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24317 cat >conftest.$ac_ext <<_ACEOF
24318 /* confdefs.h.  */
24319 _ACEOF
24320 cat confdefs.h >>conftest.$ac_ext
24321 cat >>conftest.$ac_ext <<_ACEOF
24322 /* end confdefs.h.  */
24323 $ac_includes_default
24324 #include <$ac_header>
24325 _ACEOF
24326 rm -f conftest.$ac_objext
24327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24328   (eval $ac_compile) 2>conftest.er1
24329   ac_status=$?
24330   grep -v '^ *+' conftest.er1 >conftest.err
24331   rm -f conftest.er1
24332   cat conftest.err >&5
24333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24334   (exit $ac_status); } &&
24335          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24337   (eval $ac_try) 2>&5
24338   ac_status=$?
24339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24340   (exit $ac_status); }; } &&
24341          { ac_try='test -s conftest.$ac_objext'
24342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24343   (eval $ac_try) 2>&5
24344   ac_status=$?
24345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24346   (exit $ac_status); }; }; then
24347   ac_header_compiler=yes
24348 else
24349   echo "$as_me: failed program was:" >&5
24350 sed 's/^/| /' conftest.$ac_ext >&5
24351
24352 ac_header_compiler=no
24353 fi
24354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24355 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24356 echo "${ECHO_T}$ac_header_compiler" >&6
24357
24358 # Is the header present?
24359 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24360 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24361 cat >conftest.$ac_ext <<_ACEOF
24362 /* confdefs.h.  */
24363 _ACEOF
24364 cat confdefs.h >>conftest.$ac_ext
24365 cat >>conftest.$ac_ext <<_ACEOF
24366 /* end confdefs.h.  */
24367 #include <$ac_header>
24368 _ACEOF
24369 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24370   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24371   ac_status=$?
24372   grep -v '^ *+' conftest.er1 >conftest.err
24373   rm -f conftest.er1
24374   cat conftest.err >&5
24375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24376   (exit $ac_status); } >/dev/null; then
24377   if test -s conftest.err; then
24378     ac_cpp_err=$ac_c_preproc_warn_flag
24379     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24380   else
24381     ac_cpp_err=
24382   fi
24383 else
24384   ac_cpp_err=yes
24385 fi
24386 if test -z "$ac_cpp_err"; then
24387   ac_header_preproc=yes
24388 else
24389   echo "$as_me: failed program was:" >&5
24390 sed 's/^/| /' conftest.$ac_ext >&5
24391
24392   ac_header_preproc=no
24393 fi
24394 rm -f conftest.err conftest.$ac_ext
24395 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24396 echo "${ECHO_T}$ac_header_preproc" >&6
24397
24398 # So?  What about this header?
24399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24400   yes:no: )
24401     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24402 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24403     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24404 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24405     ac_header_preproc=yes
24406     ;;
24407   no:yes:* )
24408     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24409 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24410     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24411 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24412     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24413 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24414     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24415 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24416     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24417 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24418     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24419 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24420     (
24421       cat <<\_ASBOX
24422 ## ------------------------------- ##
24423 ## Report this to nfs@lists.sf.net ##
24424 ## ------------------------------- ##
24425 _ASBOX
24426     ) |
24427       sed "s/^/$as_me: WARNING:     /" >&2
24428     ;;
24429 esac
24430 echo "$as_me:$LINENO: checking for $ac_header" >&5
24431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24433   echo $ECHO_N "(cached) $ECHO_C" >&6
24434 else
24435   eval "$as_ac_Header=\$ac_header_preproc"
24436 fi
24437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24439
24440 fi
24441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24442   cat >>confdefs.h <<_ACEOF
24443 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24444 _ACEOF
24445
24446 fi
24447
24448 done
24449
24450
24451
24452 for ac_func in fork vfork
24453 do
24454 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24455 echo "$as_me:$LINENO: checking for $ac_func" >&5
24456 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24457 if eval "test \"\${$as_ac_var+set}\" = set"; then
24458   echo $ECHO_N "(cached) $ECHO_C" >&6
24459 else
24460   cat >conftest.$ac_ext <<_ACEOF
24461 /* confdefs.h.  */
24462 _ACEOF
24463 cat confdefs.h >>conftest.$ac_ext
24464 cat >>conftest.$ac_ext <<_ACEOF
24465 /* end confdefs.h.  */
24466 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24467    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24468 #define $ac_func innocuous_$ac_func
24469
24470 /* System header to define __stub macros and hopefully few prototypes,
24471     which can conflict with char $ac_func (); below.
24472     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24473     <limits.h> exists even on freestanding compilers.  */
24474
24475 #ifdef __STDC__
24476 # include <limits.h>
24477 #else
24478 # include <assert.h>
24479 #endif
24480
24481 #undef $ac_func
24482
24483 /* Override any gcc2 internal prototype to avoid an error.  */
24484 #ifdef __cplusplus
24485 extern "C"
24486 {
24487 #endif
24488 /* We use char because int might match the return type of a gcc2
24489    builtin and then its argument prototype would still apply.  */
24490 char $ac_func ();
24491 /* The GNU C library defines this for functions which it implements
24492     to always fail with ENOSYS.  Some functions are actually named
24493     something starting with __ and the normal name is an alias.  */
24494 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24495 choke me
24496 #else
24497 char (*f) () = $ac_func;
24498 #endif
24499 #ifdef __cplusplus
24500 }
24501 #endif
24502
24503 int
24504 main ()
24505 {
24506 return f != $ac_func;
24507   ;
24508   return 0;
24509 }
24510 _ACEOF
24511 rm -f conftest.$ac_objext conftest$ac_exeext
24512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24513   (eval $ac_link) 2>conftest.er1
24514   ac_status=$?
24515   grep -v '^ *+' conftest.er1 >conftest.err
24516   rm -f conftest.er1
24517   cat conftest.err >&5
24518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24519   (exit $ac_status); } &&
24520          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24522   (eval $ac_try) 2>&5
24523   ac_status=$?
24524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24525   (exit $ac_status); }; } &&
24526          { ac_try='test -s conftest$ac_exeext'
24527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24528   (eval $ac_try) 2>&5
24529   ac_status=$?
24530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24531   (exit $ac_status); }; }; then
24532   eval "$as_ac_var=yes"
24533 else
24534   echo "$as_me: failed program was:" >&5
24535 sed 's/^/| /' conftest.$ac_ext >&5
24536
24537 eval "$as_ac_var=no"
24538 fi
24539 rm -f conftest.err conftest.$ac_objext \
24540       conftest$ac_exeext conftest.$ac_ext
24541 fi
24542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24543 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24544 if test `eval echo '${'$as_ac_var'}'` = yes; then
24545   cat >>confdefs.h <<_ACEOF
24546 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24547 _ACEOF
24548
24549 fi
24550 done
24551
24552 if test "x$ac_cv_func_fork" = xyes; then
24553   echo "$as_me:$LINENO: checking for working fork" >&5
24554 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
24555 if test "${ac_cv_func_fork_works+set}" = set; then
24556   echo $ECHO_N "(cached) $ECHO_C" >&6
24557 else
24558   if test "$cross_compiling" = yes; then
24559   ac_cv_func_fork_works=cross
24560 else
24561   cat >conftest.$ac_ext <<_ACEOF
24562 /* confdefs.h.  */
24563 _ACEOF
24564 cat confdefs.h >>conftest.$ac_ext
24565 cat >>conftest.$ac_ext <<_ACEOF
24566 /* end confdefs.h.  */
24567 $ac_includes_default
24568 int
24569 main ()
24570 {
24571
24572           /* By Ruediger Kuhlmann. */
24573           if (fork() < 0)
24574             exit (1);
24575           exit (0);
24576
24577   ;
24578   return 0;
24579 }
24580 _ACEOF
24581 rm -f conftest$ac_exeext
24582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24583   (eval $ac_link) 2>&5
24584   ac_status=$?
24585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24586   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24588   (eval $ac_try) 2>&5
24589   ac_status=$?
24590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24591   (exit $ac_status); }; }; then
24592   ac_cv_func_fork_works=yes
24593 else
24594   echo "$as_me: program exited with status $ac_status" >&5
24595 echo "$as_me: failed program was:" >&5
24596 sed 's/^/| /' conftest.$ac_ext >&5
24597
24598 ( exit $ac_status )
24599 ac_cv_func_fork_works=no
24600 fi
24601 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24602 fi
24603 fi
24604 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
24605 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
24606
24607 else
24608   ac_cv_func_fork_works=$ac_cv_func_fork
24609 fi
24610 if test "x$ac_cv_func_fork_works" = xcross; then
24611   case $host in
24612     *-*-amigaos* | *-*-msdosdjgpp*)
24613       # Override, as these systems have only a dummy fork() stub
24614       ac_cv_func_fork_works=no
24615       ;;
24616     *)
24617       ac_cv_func_fork_works=yes
24618       ;;
24619   esac
24620   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24621 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24622 fi
24623 ac_cv_func_vfork_works=$ac_cv_func_vfork
24624 if test "x$ac_cv_func_vfork" = xyes; then
24625   echo "$as_me:$LINENO: checking for working vfork" >&5
24626 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
24627 if test "${ac_cv_func_vfork_works+set}" = set; then
24628   echo $ECHO_N "(cached) $ECHO_C" >&6
24629 else
24630   if test "$cross_compiling" = yes; then
24631   ac_cv_func_vfork_works=cross
24632 else
24633   cat >conftest.$ac_ext <<_ACEOF
24634 /* confdefs.h.  */
24635 _ACEOF
24636 cat confdefs.h >>conftest.$ac_ext
24637 cat >>conftest.$ac_ext <<_ACEOF
24638 /* end confdefs.h.  */
24639 /* Thanks to Paul Eggert for this test.  */
24640 #include <stdio.h>
24641 #include <stdlib.h>
24642 #include <sys/types.h>
24643 #include <sys/stat.h>
24644 #include <sys/wait.h>
24645 #if HAVE_UNISTD_H
24646 # include <unistd.h>
24647 #endif
24648 #if HAVE_VFORK_H
24649 # include <vfork.h>
24650 #endif
24651 /* On some sparc systems, changes by the child to local and incoming
24652    argument registers are propagated back to the parent.  The compiler
24653    is told about this with #include <vfork.h>, but some compilers
24654    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
24655    static variable whose address is put into a register that is
24656    clobbered by the vfork.  */
24657 static void
24658 #ifdef __cplusplus
24659 sparc_address_test (int arg)
24660 # else
24661 sparc_address_test (arg) int arg;
24662 #endif
24663 {
24664   static pid_t child;
24665   if (!child) {
24666     child = vfork ();
24667     if (child < 0) {
24668       perror ("vfork");
24669       _exit(2);
24670     }
24671     if (!child) {
24672       arg = getpid();
24673       write(-1, "", 0);
24674       _exit (arg);
24675     }
24676   }
24677 }
24678
24679 int
24680 main ()
24681 {
24682   pid_t parent = getpid ();
24683   pid_t child;
24684
24685   sparc_address_test (0);
24686
24687   child = vfork ();
24688
24689   if (child == 0) {
24690     /* Here is another test for sparc vfork register problems.  This
24691        test uses lots of local variables, at least as many local
24692        variables as main has allocated so far including compiler
24693        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
24694        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
24695        reuse the register of parent for one of the local variables,
24696        since it will think that parent can't possibly be used any more
24697        in this routine.  Assigning to the local variable will thus
24698        munge parent in the parent process.  */
24699     pid_t
24700       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24701       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24702     /* Convince the compiler that p..p7 are live; otherwise, it might
24703        use the same hardware register for all 8 local variables.  */
24704     if (p != p1 || p != p2 || p != p3 || p != p4
24705         || p != p5 || p != p6 || p != p7)
24706       _exit(1);
24707
24708     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24709        from child file descriptors.  If the child closes a descriptor
24710        before it execs or exits, this munges the parent's descriptor
24711        as well.  Test for this by closing stdout in the child.  */
24712     _exit(close(fileno(stdout)) != 0);
24713   } else {
24714     int status;
24715     struct stat st;
24716
24717     while (wait(&status) != child)
24718       ;
24719     exit(
24720          /* Was there some problem with vforking?  */
24721          child < 0
24722
24723          /* Did the child fail?  (This shouldn't happen.)  */
24724          || status
24725
24726          /* Did the vfork/compiler bug occur?  */
24727          || parent != getpid()
24728
24729          /* Did the file descriptor bug occur?  */
24730          || fstat(fileno(stdout), &st) != 0
24731          );
24732   }
24733 }
24734 _ACEOF
24735 rm -f conftest$ac_exeext
24736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24737   (eval $ac_link) 2>&5
24738   ac_status=$?
24739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24740   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24742   (eval $ac_try) 2>&5
24743   ac_status=$?
24744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24745   (exit $ac_status); }; }; then
24746   ac_cv_func_vfork_works=yes
24747 else
24748   echo "$as_me: program exited with status $ac_status" >&5
24749 echo "$as_me: failed program was:" >&5
24750 sed 's/^/| /' conftest.$ac_ext >&5
24751
24752 ( exit $ac_status )
24753 ac_cv_func_vfork_works=no
24754 fi
24755 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24756 fi
24757 fi
24758 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
24759 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
24760
24761 fi;
24762 if test "x$ac_cv_func_fork_works" = xcross; then
24763   ac_cv_func_vfork_works=$ac_cv_func_vfork
24764   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
24765 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24766 fi
24767
24768 if test "x$ac_cv_func_vfork_works" = xyes; then
24769
24770 cat >>confdefs.h <<\_ACEOF
24771 #define HAVE_WORKING_VFORK 1
24772 _ACEOF
24773
24774 else
24775
24776 cat >>confdefs.h <<\_ACEOF
24777 #define vfork fork
24778 _ACEOF
24779
24780 fi
24781 if test "x$ac_cv_func_fork_works" = xyes; then
24782
24783 cat >>confdefs.h <<\_ACEOF
24784 #define HAVE_WORKING_FORK 1
24785 _ACEOF
24786
24787 fi
24788
24789 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
24790 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
24791 if test "${ac_cv_type_getgroups+set}" = set; then
24792   echo $ECHO_N "(cached) $ECHO_C" >&6
24793 else
24794   if test "$cross_compiling" = yes; then
24795   ac_cv_type_getgroups=cross
24796 else
24797   cat >conftest.$ac_ext <<_ACEOF
24798 /* confdefs.h.  */
24799 _ACEOF
24800 cat confdefs.h >>conftest.$ac_ext
24801 cat >>conftest.$ac_ext <<_ACEOF
24802 /* end confdefs.h.  */
24803 /* Thanks to Mike Rendell for this test.  */
24804 #include <sys/types.h>
24805 #define NGID 256
24806 #undef MAX
24807 #define MAX(x, y) ((x) > (y) ? (x) : (y))
24808
24809 int
24810 main ()
24811 {
24812   gid_t gidset[NGID];
24813   int i, n;
24814   union { gid_t gval; long lval; }  val;
24815
24816   val.lval = -1;
24817   for (i = 0; i < NGID; i++)
24818     gidset[i] = val.gval;
24819   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
24820                  gidset);
24821   /* Exit non-zero if getgroups seems to require an array of ints.  This
24822      happens when gid_t is short but getgroups modifies an array of ints.  */
24823   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
24824 }
24825 _ACEOF
24826 rm -f conftest$ac_exeext
24827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24828   (eval $ac_link) 2>&5
24829   ac_status=$?
24830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24831   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24833   (eval $ac_try) 2>&5
24834   ac_status=$?
24835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24836   (exit $ac_status); }; }; then
24837   ac_cv_type_getgroups=gid_t
24838 else
24839   echo "$as_me: program exited with status $ac_status" >&5
24840 echo "$as_me: failed program was:" >&5
24841 sed 's/^/| /' conftest.$ac_ext >&5
24842
24843 ( exit $ac_status )
24844 ac_cv_type_getgroups=int
24845 fi
24846 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24847 fi
24848 if test $ac_cv_type_getgroups = cross; then
24849         cat >conftest.$ac_ext <<_ACEOF
24850 /* confdefs.h.  */
24851 _ACEOF
24852 cat confdefs.h >>conftest.$ac_ext
24853 cat >>conftest.$ac_ext <<_ACEOF
24854 /* end confdefs.h.  */
24855 #include <unistd.h>
24856
24857 _ACEOF
24858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24859   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
24860   ac_cv_type_getgroups=gid_t
24861 else
24862   ac_cv_type_getgroups=int
24863 fi
24864 rm -f conftest*
24865
24866 fi
24867 fi
24868 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
24869 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
24870
24871 cat >>confdefs.h <<_ACEOF
24872 #define GETGROUPS_T $ac_cv_type_getgroups
24873 _ACEOF
24874
24875
24876 echo "$as_me:$LINENO: checking for getgroups" >&5
24877 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6
24878 if test "${ac_cv_func_getgroups+set}" = set; then
24879   echo $ECHO_N "(cached) $ECHO_C" >&6
24880 else
24881   cat >conftest.$ac_ext <<_ACEOF
24882 /* confdefs.h.  */
24883 _ACEOF
24884 cat confdefs.h >>conftest.$ac_ext
24885 cat >>conftest.$ac_ext <<_ACEOF
24886 /* end confdefs.h.  */
24887 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
24888    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24889 #define getgroups innocuous_getgroups
24890
24891 /* System header to define __stub macros and hopefully few prototypes,
24892     which can conflict with char getgroups (); below.
24893     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24894     <limits.h> exists even on freestanding compilers.  */
24895
24896 #ifdef __STDC__
24897 # include <limits.h>
24898 #else
24899 # include <assert.h>
24900 #endif
24901
24902 #undef getgroups
24903
24904 /* Override any gcc2 internal prototype to avoid an error.  */
24905 #ifdef __cplusplus
24906 extern "C"
24907 {
24908 #endif
24909 /* We use char because int might match the return type of a gcc2
24910    builtin and then its argument prototype would still apply.  */
24911 char getgroups ();
24912 /* The GNU C library defines this for functions which it implements
24913     to always fail with ENOSYS.  Some functions are actually named
24914     something starting with __ and the normal name is an alias.  */
24915 #if defined (__stub_getgroups) || defined (__stub___getgroups)
24916 choke me
24917 #else
24918 char (*f) () = getgroups;
24919 #endif
24920 #ifdef __cplusplus
24921 }
24922 #endif
24923
24924 int
24925 main ()
24926 {
24927 return f != getgroups;
24928   ;
24929   return 0;
24930 }
24931 _ACEOF
24932 rm -f conftest.$ac_objext conftest$ac_exeext
24933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24934   (eval $ac_link) 2>conftest.er1
24935   ac_status=$?
24936   grep -v '^ *+' conftest.er1 >conftest.err
24937   rm -f conftest.er1
24938   cat conftest.err >&5
24939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24940   (exit $ac_status); } &&
24941          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24943   (eval $ac_try) 2>&5
24944   ac_status=$?
24945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24946   (exit $ac_status); }; } &&
24947          { ac_try='test -s conftest$ac_exeext'
24948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24949   (eval $ac_try) 2>&5
24950   ac_status=$?
24951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24952   (exit $ac_status); }; }; then
24953   ac_cv_func_getgroups=yes
24954 else
24955   echo "$as_me: failed program was:" >&5
24956 sed 's/^/| /' conftest.$ac_ext >&5
24957
24958 ac_cv_func_getgroups=no
24959 fi
24960 rm -f conftest.err conftest.$ac_objext \
24961       conftest$ac_exeext conftest.$ac_ext
24962 fi
24963 echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
24964 echo "${ECHO_T}$ac_cv_func_getgroups" >&6
24965
24966
24967 # If we don't yet have getgroups, see if it's in -lbsd.
24968 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
24969 ac_save_LIBS=$LIBS
24970 if test $ac_cv_func_getgroups = no; then
24971   echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
24972 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6
24973 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
24974   echo $ECHO_N "(cached) $ECHO_C" >&6
24975 else
24976   ac_check_lib_save_LIBS=$LIBS
24977 LIBS="-lbsd  $LIBS"
24978 cat >conftest.$ac_ext <<_ACEOF
24979 /* confdefs.h.  */
24980 _ACEOF
24981 cat confdefs.h >>conftest.$ac_ext
24982 cat >>conftest.$ac_ext <<_ACEOF
24983 /* end confdefs.h.  */
24984
24985 /* Override any gcc2 internal prototype to avoid an error.  */
24986 #ifdef __cplusplus
24987 extern "C"
24988 #endif
24989 /* We use char because int might match the return type of a gcc2
24990    builtin and then its argument prototype would still apply.  */
24991 char getgroups ();
24992 int
24993 main ()
24994 {
24995 getgroups ();
24996   ;
24997   return 0;
24998 }
24999 _ACEOF
25000 rm -f conftest.$ac_objext conftest$ac_exeext
25001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25002   (eval $ac_link) 2>conftest.er1
25003   ac_status=$?
25004   grep -v '^ *+' conftest.er1 >conftest.err
25005   rm -f conftest.er1
25006   cat conftest.err >&5
25007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25008   (exit $ac_status); } &&
25009          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25011   (eval $ac_try) 2>&5
25012   ac_status=$?
25013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25014   (exit $ac_status); }; } &&
25015          { ac_try='test -s conftest$ac_exeext'
25016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25017   (eval $ac_try) 2>&5
25018   ac_status=$?
25019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25020   (exit $ac_status); }; }; then
25021   ac_cv_lib_bsd_getgroups=yes
25022 else
25023   echo "$as_me: failed program was:" >&5
25024 sed 's/^/| /' conftest.$ac_ext >&5
25025
25026 ac_cv_lib_bsd_getgroups=no
25027 fi
25028 rm -f conftest.err conftest.$ac_objext \
25029       conftest$ac_exeext conftest.$ac_ext
25030 LIBS=$ac_check_lib_save_LIBS
25031 fi
25032 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
25033 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6
25034 if test $ac_cv_lib_bsd_getgroups = yes; then
25035   GETGROUPS_LIB=-lbsd
25036 fi
25037
25038 fi
25039
25040 # Run the program to test the functionality of the system-supplied
25041 # getgroups function only if there is such a function.
25042 if test $ac_cv_func_getgroups = yes; then
25043   echo "$as_me:$LINENO: checking for working getgroups" >&5
25044 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6
25045 if test "${ac_cv_func_getgroups_works+set}" = set; then
25046   echo $ECHO_N "(cached) $ECHO_C" >&6
25047 else
25048   if test "$cross_compiling" = yes; then
25049   ac_cv_func_getgroups_works=no
25050 else
25051   cat >conftest.$ac_ext <<_ACEOF
25052 /* confdefs.h.  */
25053 _ACEOF
25054 cat confdefs.h >>conftest.$ac_ext
25055 cat >>conftest.$ac_ext <<_ACEOF
25056 /* end confdefs.h.  */
25057 $ac_includes_default
25058 int
25059 main ()
25060 {
25061 /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
25062        exit (getgroups (0, 0) == -1 ? 1 : 0);
25063   ;
25064   return 0;
25065 }
25066 _ACEOF
25067 rm -f conftest$ac_exeext
25068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25069   (eval $ac_link) 2>&5
25070   ac_status=$?
25071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25072   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25074   (eval $ac_try) 2>&5
25075   ac_status=$?
25076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25077   (exit $ac_status); }; }; then
25078   ac_cv_func_getgroups_works=yes
25079 else
25080   echo "$as_me: program exited with status $ac_status" >&5
25081 echo "$as_me: failed program was:" >&5
25082 sed 's/^/| /' conftest.$ac_ext >&5
25083
25084 ( exit $ac_status )
25085 ac_cv_func_getgroups_works=no
25086 fi
25087 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25088 fi
25089
25090 fi
25091 echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
25092 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6
25093   if test $ac_cv_func_getgroups_works = yes; then
25094
25095 cat >>confdefs.h <<\_ACEOF
25096 #define HAVE_GETGROUPS 1
25097 _ACEOF
25098
25099   fi
25100 fi
25101 LIBS=$ac_save_LIBS
25102
25103 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
25104 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
25105 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
25106 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
25107   echo $ECHO_N "(cached) $ECHO_C" >&6
25108 else
25109   ac_check_lib_save_LIBS=$LIBS
25110 LIBS="-lsun  $LIBS"
25111 cat >conftest.$ac_ext <<_ACEOF
25112 /* confdefs.h.  */
25113 _ACEOF
25114 cat confdefs.h >>conftest.$ac_ext
25115 cat >>conftest.$ac_ext <<_ACEOF
25116 /* end confdefs.h.  */
25117
25118 /* Override any gcc2 internal prototype to avoid an error.  */
25119 #ifdef __cplusplus
25120 extern "C"
25121 #endif
25122 /* We use char because int might match the return type of a gcc2
25123    builtin and then its argument prototype would still apply.  */
25124 char getmntent ();
25125 int
25126 main ()
25127 {
25128 getmntent ();
25129   ;
25130   return 0;
25131 }
25132 _ACEOF
25133 rm -f conftest.$ac_objext conftest$ac_exeext
25134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25135   (eval $ac_link) 2>conftest.er1
25136   ac_status=$?
25137   grep -v '^ *+' conftest.er1 >conftest.err
25138   rm -f conftest.er1
25139   cat conftest.err >&5
25140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25141   (exit $ac_status); } &&
25142          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25144   (eval $ac_try) 2>&5
25145   ac_status=$?
25146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25147   (exit $ac_status); }; } &&
25148          { ac_try='test -s conftest$ac_exeext'
25149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25150   (eval $ac_try) 2>&5
25151   ac_status=$?
25152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25153   (exit $ac_status); }; }; then
25154   ac_cv_lib_sun_getmntent=yes
25155 else
25156   echo "$as_me: failed program was:" >&5
25157 sed 's/^/| /' conftest.$ac_ext >&5
25158
25159 ac_cv_lib_sun_getmntent=no
25160 fi
25161 rm -f conftest.err conftest.$ac_objext \
25162       conftest$ac_exeext conftest.$ac_ext
25163 LIBS=$ac_check_lib_save_LIBS
25164 fi
25165 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
25166 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
25167 if test $ac_cv_lib_sun_getmntent = yes; then
25168   LIBS="-lsun $LIBS"
25169 else
25170   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
25171 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
25172 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
25173   echo $ECHO_N "(cached) $ECHO_C" >&6
25174 else
25175   ac_check_lib_save_LIBS=$LIBS
25176 LIBS="-lseq  $LIBS"
25177 cat >conftest.$ac_ext <<_ACEOF
25178 /* confdefs.h.  */
25179 _ACEOF
25180 cat confdefs.h >>conftest.$ac_ext
25181 cat >>conftest.$ac_ext <<_ACEOF
25182 /* end confdefs.h.  */
25183
25184 /* Override any gcc2 internal prototype to avoid an error.  */
25185 #ifdef __cplusplus
25186 extern "C"
25187 #endif
25188 /* We use char because int might match the return type of a gcc2
25189    builtin and then its argument prototype would still apply.  */
25190 char getmntent ();
25191 int
25192 main ()
25193 {
25194 getmntent ();
25195   ;
25196   return 0;
25197 }
25198 _ACEOF
25199 rm -f conftest.$ac_objext conftest$ac_exeext
25200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25201   (eval $ac_link) 2>conftest.er1
25202   ac_status=$?
25203   grep -v '^ *+' conftest.er1 >conftest.err
25204   rm -f conftest.er1
25205   cat conftest.err >&5
25206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25207   (exit $ac_status); } &&
25208          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25210   (eval $ac_try) 2>&5
25211   ac_status=$?
25212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25213   (exit $ac_status); }; } &&
25214          { ac_try='test -s conftest$ac_exeext'
25215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25216   (eval $ac_try) 2>&5
25217   ac_status=$?
25218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25219   (exit $ac_status); }; }; then
25220   ac_cv_lib_seq_getmntent=yes
25221 else
25222   echo "$as_me: failed program was:" >&5
25223 sed 's/^/| /' conftest.$ac_ext >&5
25224
25225 ac_cv_lib_seq_getmntent=no
25226 fi
25227 rm -f conftest.err conftest.$ac_objext \
25228       conftest$ac_exeext conftest.$ac_ext
25229 LIBS=$ac_check_lib_save_LIBS
25230 fi
25231 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
25232 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
25233 if test $ac_cv_lib_seq_getmntent = yes; then
25234   LIBS="-lseq $LIBS"
25235 else
25236   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
25237 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
25238 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
25239   echo $ECHO_N "(cached) $ECHO_C" >&6
25240 else
25241   ac_check_lib_save_LIBS=$LIBS
25242 LIBS="-lgen  $LIBS"
25243 cat >conftest.$ac_ext <<_ACEOF
25244 /* confdefs.h.  */
25245 _ACEOF
25246 cat confdefs.h >>conftest.$ac_ext
25247 cat >>conftest.$ac_ext <<_ACEOF
25248 /* end confdefs.h.  */
25249
25250 /* Override any gcc2 internal prototype to avoid an error.  */
25251 #ifdef __cplusplus
25252 extern "C"
25253 #endif
25254 /* We use char because int might match the return type of a gcc2
25255    builtin and then its argument prototype would still apply.  */
25256 char getmntent ();
25257 int
25258 main ()
25259 {
25260 getmntent ();
25261   ;
25262   return 0;
25263 }
25264 _ACEOF
25265 rm -f conftest.$ac_objext conftest$ac_exeext
25266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25267   (eval $ac_link) 2>conftest.er1
25268   ac_status=$?
25269   grep -v '^ *+' conftest.er1 >conftest.err
25270   rm -f conftest.er1
25271   cat conftest.err >&5
25272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25273   (exit $ac_status); } &&
25274          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25276   (eval $ac_try) 2>&5
25277   ac_status=$?
25278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25279   (exit $ac_status); }; } &&
25280          { ac_try='test -s conftest$ac_exeext'
25281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25282   (eval $ac_try) 2>&5
25283   ac_status=$?
25284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25285   (exit $ac_status); }; }; then
25286   ac_cv_lib_gen_getmntent=yes
25287 else
25288   echo "$as_me: failed program was:" >&5
25289 sed 's/^/| /' conftest.$ac_ext >&5
25290
25291 ac_cv_lib_gen_getmntent=no
25292 fi
25293 rm -f conftest.err conftest.$ac_objext \
25294       conftest$ac_exeext conftest.$ac_ext
25295 LIBS=$ac_check_lib_save_LIBS
25296 fi
25297 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
25298 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
25299 if test $ac_cv_lib_gen_getmntent = yes; then
25300   LIBS="-lgen $LIBS"
25301 fi
25302
25303 fi
25304
25305 fi
25306
25307
25308 for ac_func in getmntent
25309 do
25310 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25311 echo "$as_me:$LINENO: checking for $ac_func" >&5
25312 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25313 if eval "test \"\${$as_ac_var+set}\" = set"; then
25314   echo $ECHO_N "(cached) $ECHO_C" >&6
25315 else
25316   cat >conftest.$ac_ext <<_ACEOF
25317 /* confdefs.h.  */
25318 _ACEOF
25319 cat confdefs.h >>conftest.$ac_ext
25320 cat >>conftest.$ac_ext <<_ACEOF
25321 /* end confdefs.h.  */
25322 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25323    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25324 #define $ac_func innocuous_$ac_func
25325
25326 /* System header to define __stub macros and hopefully few prototypes,
25327     which can conflict with char $ac_func (); below.
25328     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25329     <limits.h> exists even on freestanding compilers.  */
25330
25331 #ifdef __STDC__
25332 # include <limits.h>
25333 #else
25334 # include <assert.h>
25335 #endif
25336
25337 #undef $ac_func
25338
25339 /* Override any gcc2 internal prototype to avoid an error.  */
25340 #ifdef __cplusplus
25341 extern "C"
25342 {
25343 #endif
25344 /* We use char because int might match the return type of a gcc2
25345    builtin and then its argument prototype would still apply.  */
25346 char $ac_func ();
25347 /* The GNU C library defines this for functions which it implements
25348     to always fail with ENOSYS.  Some functions are actually named
25349     something starting with __ and the normal name is an alias.  */
25350 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25351 choke me
25352 #else
25353 char (*f) () = $ac_func;
25354 #endif
25355 #ifdef __cplusplus
25356 }
25357 #endif
25358
25359 int
25360 main ()
25361 {
25362 return f != $ac_func;
25363   ;
25364   return 0;
25365 }
25366 _ACEOF
25367 rm -f conftest.$ac_objext conftest$ac_exeext
25368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25369   (eval $ac_link) 2>conftest.er1
25370   ac_status=$?
25371   grep -v '^ *+' conftest.er1 >conftest.err
25372   rm -f conftest.er1
25373   cat conftest.err >&5
25374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25375   (exit $ac_status); } &&
25376          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25378   (eval $ac_try) 2>&5
25379   ac_status=$?
25380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25381   (exit $ac_status); }; } &&
25382          { ac_try='test -s conftest$ac_exeext'
25383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25384   (eval $ac_try) 2>&5
25385   ac_status=$?
25386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25387   (exit $ac_status); }; }; then
25388   eval "$as_ac_var=yes"
25389 else
25390   echo "$as_me: failed program was:" >&5
25391 sed 's/^/| /' conftest.$ac_ext >&5
25392
25393 eval "$as_ac_var=no"
25394 fi
25395 rm -f conftest.err conftest.$ac_objext \
25396       conftest$ac_exeext conftest.$ac_ext
25397 fi
25398 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25399 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25400 if test `eval echo '${'$as_ac_var'}'` = yes; then
25401   cat >>confdefs.h <<_ACEOF
25402 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25403 _ACEOF
25404
25405 fi
25406 done
25407
25408
25409 if test $ac_cv_c_compiler_gnu = yes; then
25410     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
25411 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
25412 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
25413   echo $ECHO_N "(cached) $ECHO_C" >&6
25414 else
25415     ac_pattern="Autoconf.*'x'"
25416   cat >conftest.$ac_ext <<_ACEOF
25417 /* confdefs.h.  */
25418 _ACEOF
25419 cat confdefs.h >>conftest.$ac_ext
25420 cat >>conftest.$ac_ext <<_ACEOF
25421 /* end confdefs.h.  */
25422 #include <sgtty.h>
25423 Autoconf TIOCGETP
25424 _ACEOF
25425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25426   $EGREP "$ac_pattern" >/dev/null 2>&1; then
25427   ac_cv_prog_gcc_traditional=yes
25428 else
25429   ac_cv_prog_gcc_traditional=no
25430 fi
25431 rm -f conftest*
25432
25433
25434   if test $ac_cv_prog_gcc_traditional = no; then
25435     cat >conftest.$ac_ext <<_ACEOF
25436 /* confdefs.h.  */
25437 _ACEOF
25438 cat confdefs.h >>conftest.$ac_ext
25439 cat >>conftest.$ac_ext <<_ACEOF
25440 /* end confdefs.h.  */
25441 #include <termio.h>
25442 Autoconf TCGETA
25443 _ACEOF
25444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25445   $EGREP "$ac_pattern" >/dev/null 2>&1; then
25446   ac_cv_prog_gcc_traditional=yes
25447 fi
25448 rm -f conftest*
25449
25450   fi
25451 fi
25452 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
25453 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
25454   if test $ac_cv_prog_gcc_traditional = yes; then
25455     CC="$CC -traditional"
25456   fi
25457 fi
25458
25459 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
25460 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
25461 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
25462   echo $ECHO_N "(cached) $ECHO_C" >&6
25463 else
25464   rm -f conftest.sym conftest.file
25465 echo >conftest.file
25466 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
25467   if test "$cross_compiling" = yes; then
25468   ac_cv_func_lstat_dereferences_slashed_symlink=no
25469 else
25470   cat >conftest.$ac_ext <<_ACEOF
25471 /* confdefs.h.  */
25472 _ACEOF
25473 cat confdefs.h >>conftest.$ac_ext
25474 cat >>conftest.$ac_ext <<_ACEOF
25475 /* end confdefs.h.  */
25476 $ac_includes_default
25477 int
25478 main ()
25479 {
25480 struct stat sbuf;
25481      /* Linux will dereference the symlink and fail.
25482         That is better in the sense that it means we will not
25483         have to compile and use the lstat wrapper.  */
25484      exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
25485   ;
25486   return 0;
25487 }
25488 _ACEOF
25489 rm -f conftest$ac_exeext
25490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25491   (eval $ac_link) 2>&5
25492   ac_status=$?
25493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25494   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25496   (eval $ac_try) 2>&5
25497   ac_status=$?
25498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25499   (exit $ac_status); }; }; then
25500   ac_cv_func_lstat_dereferences_slashed_symlink=yes
25501 else
25502   echo "$as_me: program exited with status $ac_status" >&5
25503 echo "$as_me: failed program was:" >&5
25504 sed 's/^/| /' conftest.$ac_ext >&5
25505
25506 ( exit $ac_status )
25507 ac_cv_func_lstat_dereferences_slashed_symlink=no
25508 fi
25509 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25510 fi
25511 else
25512   # If the `ln -s' command failed, then we probably don't even
25513   # have an lstat function.
25514   ac_cv_func_lstat_dereferences_slashed_symlink=no
25515 fi
25516 rm -f conftest.sym conftest.file
25517
25518 fi
25519 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
25520 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
25521
25522 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
25523
25524 cat >>confdefs.h <<_ACEOF
25525 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
25526 _ACEOF
25527
25528
25529 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
25530   case $LIBOBJS in
25531     "lstat.$ac_objext"   | \
25532   *" lstat.$ac_objext"   | \
25533     "lstat.$ac_objext "* | \
25534   *" lstat.$ac_objext "* ) ;;
25535   *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
25536 esac
25537
25538 fi
25539
25540 echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
25541 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
25542 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
25543   echo $ECHO_N "(cached) $ECHO_C" >&6
25544 else
25545   if test "$cross_compiling" = yes; then
25546   ac_cv_func_lstat_empty_string_bug=yes
25547 else
25548   cat >conftest.$ac_ext <<_ACEOF
25549 /* confdefs.h.  */
25550 _ACEOF
25551 cat confdefs.h >>conftest.$ac_ext
25552 cat >>conftest.$ac_ext <<_ACEOF
25553 /* end confdefs.h.  */
25554 $ac_includes_default
25555 int
25556 main ()
25557 {
25558 struct stat sbuf;
25559   exit (lstat ("", &sbuf) ? 1 : 0);
25560   ;
25561   return 0;
25562 }
25563 _ACEOF
25564 rm -f conftest$ac_exeext
25565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25566   (eval $ac_link) 2>&5
25567   ac_status=$?
25568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25569   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25571   (eval $ac_try) 2>&5
25572   ac_status=$?
25573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25574   (exit $ac_status); }; }; then
25575   ac_cv_func_lstat_empty_string_bug=yes
25576 else
25577   echo "$as_me: program exited with status $ac_status" >&5
25578 echo "$as_me: failed program was:" >&5
25579 sed 's/^/| /' conftest.$ac_ext >&5
25580
25581 ( exit $ac_status )
25582 ac_cv_func_lstat_empty_string_bug=no
25583 fi
25584 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25585 fi
25586 fi
25587 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
25588 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
25589 if test $ac_cv_func_lstat_empty_string_bug = yes; then
25590   case $LIBOBJS in
25591     "lstat.$ac_objext"   | \
25592   *" lstat.$ac_objext"   | \
25593     "lstat.$ac_objext "* | \
25594   *" lstat.$ac_objext "* ) ;;
25595   *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
25596 esac
25597
25598
25599 cat >>confdefs.h <<_ACEOF
25600 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
25601 _ACEOF
25602
25603 fi
25604
25605 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
25606 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
25607 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
25608   echo $ECHO_N "(cached) $ECHO_C" >&6
25609 else
25610   rm -f conftest.sym conftest.file
25611 echo >conftest.file
25612 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
25613   if test "$cross_compiling" = yes; then
25614   ac_cv_func_lstat_dereferences_slashed_symlink=no
25615 else
25616   cat >conftest.$ac_ext <<_ACEOF
25617 /* confdefs.h.  */
25618 _ACEOF
25619 cat confdefs.h >>conftest.$ac_ext
25620 cat >>conftest.$ac_ext <<_ACEOF
25621 /* end confdefs.h.  */
25622 $ac_includes_default
25623 int
25624 main ()
25625 {
25626 struct stat sbuf;
25627      /* Linux will dereference the symlink and fail.
25628         That is better in the sense that it means we will not
25629         have to compile and use the lstat wrapper.  */
25630      exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
25631   ;
25632   return 0;
25633 }
25634 _ACEOF
25635 rm -f conftest$ac_exeext
25636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25637   (eval $ac_link) 2>&5
25638   ac_status=$?
25639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25640   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25642   (eval $ac_try) 2>&5
25643   ac_status=$?
25644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25645   (exit $ac_status); }; }; then
25646   ac_cv_func_lstat_dereferences_slashed_symlink=yes
25647 else
25648   echo "$as_me: program exited with status $ac_status" >&5
25649 echo "$as_me: failed program was:" >&5
25650 sed 's/^/| /' conftest.$ac_ext >&5
25651
25652 ( exit $ac_status )
25653 ac_cv_func_lstat_dereferences_slashed_symlink=no
25654 fi
25655 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25656 fi
25657 else
25658   # If the `ln -s' command failed, then we probably don't even
25659   # have an lstat function.
25660   ac_cv_func_lstat_dereferences_slashed_symlink=no
25661 fi
25662 rm -f conftest.sym conftest.file
25663
25664 fi
25665 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
25666 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
25667
25668 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
25669
25670 cat >>confdefs.h <<_ACEOF
25671 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
25672 _ACEOF
25673
25674
25675 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
25676   case $LIBOBJS in
25677     "lstat.$ac_objext"   | \
25678   *" lstat.$ac_objext"   | \
25679     "lstat.$ac_objext "* | \
25680   *" lstat.$ac_objext "* ) ;;
25681   *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
25682 esac
25683
25684 fi
25685
25686 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
25687 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
25688 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
25689   echo $ECHO_N "(cached) $ECHO_C" >&6
25690 else
25691   cat >conftest.$ac_ext <<_ACEOF
25692 /* confdefs.h.  */
25693 _ACEOF
25694 cat confdefs.h >>conftest.$ac_ext
25695 cat >>conftest.$ac_ext <<_ACEOF
25696 /* end confdefs.h.  */
25697 #include <sys/types.h>
25698 int
25699 main ()
25700 {
25701 return makedev(0, 0);
25702   ;
25703   return 0;
25704 }
25705 _ACEOF
25706 rm -f conftest.$ac_objext conftest$ac_exeext
25707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25708   (eval $ac_link) 2>conftest.er1
25709   ac_status=$?
25710   grep -v '^ *+' conftest.er1 >conftest.err
25711   rm -f conftest.er1
25712   cat conftest.err >&5
25713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25714   (exit $ac_status); } &&
25715          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25717   (eval $ac_try) 2>&5
25718   ac_status=$?
25719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25720   (exit $ac_status); }; } &&
25721          { ac_try='test -s conftest$ac_exeext'
25722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25723   (eval $ac_try) 2>&5
25724   ac_status=$?
25725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25726   (exit $ac_status); }; }; then
25727   ac_cv_header_sys_types_h_makedev=yes
25728 else
25729   echo "$as_me: failed program was:" >&5
25730 sed 's/^/| /' conftest.$ac_ext >&5
25731
25732 ac_cv_header_sys_types_h_makedev=no
25733 fi
25734 rm -f conftest.err conftest.$ac_objext \
25735       conftest$ac_exeext conftest.$ac_ext
25736
25737 fi
25738 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
25739 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
25740
25741 if test $ac_cv_header_sys_types_h_makedev = no; then
25742 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
25743   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
25744 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
25745 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
25746   echo $ECHO_N "(cached) $ECHO_C" >&6
25747 fi
25748 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
25749 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
25750 else
25751   # Is the header compilable?
25752 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
25753 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
25754 cat >conftest.$ac_ext <<_ACEOF
25755 /* confdefs.h.  */
25756 _ACEOF
25757 cat confdefs.h >>conftest.$ac_ext
25758 cat >>conftest.$ac_ext <<_ACEOF
25759 /* end confdefs.h.  */
25760 $ac_includes_default
25761 #include <sys/mkdev.h>
25762 _ACEOF
25763 rm -f conftest.$ac_objext
25764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25765   (eval $ac_compile) 2>conftest.er1
25766   ac_status=$?
25767   grep -v '^ *+' conftest.er1 >conftest.err
25768   rm -f conftest.er1
25769   cat conftest.err >&5
25770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25771   (exit $ac_status); } &&
25772          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25774   (eval $ac_try) 2>&5
25775   ac_status=$?
25776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25777   (exit $ac_status); }; } &&
25778          { ac_try='test -s conftest.$ac_objext'
25779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25780   (eval $ac_try) 2>&5
25781   ac_status=$?
25782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25783   (exit $ac_status); }; }; then
25784   ac_header_compiler=yes
25785 else
25786   echo "$as_me: failed program was:" >&5
25787 sed 's/^/| /' conftest.$ac_ext >&5
25788
25789 ac_header_compiler=no
25790 fi
25791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25792 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25793 echo "${ECHO_T}$ac_header_compiler" >&6
25794
25795 # Is the header present?
25796 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
25797 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
25798 cat >conftest.$ac_ext <<_ACEOF
25799 /* confdefs.h.  */
25800 _ACEOF
25801 cat confdefs.h >>conftest.$ac_ext
25802 cat >>conftest.$ac_ext <<_ACEOF
25803 /* end confdefs.h.  */
25804 #include <sys/mkdev.h>
25805 _ACEOF
25806 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25807   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25808   ac_status=$?
25809   grep -v '^ *+' conftest.er1 >conftest.err
25810   rm -f conftest.er1
25811   cat conftest.err >&5
25812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25813   (exit $ac_status); } >/dev/null; then
25814   if test -s conftest.err; then
25815     ac_cpp_err=$ac_c_preproc_warn_flag
25816     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25817   else
25818     ac_cpp_err=
25819   fi
25820 else
25821   ac_cpp_err=yes
25822 fi
25823 if test -z "$ac_cpp_err"; then
25824   ac_header_preproc=yes
25825 else
25826   echo "$as_me: failed program was:" >&5
25827 sed 's/^/| /' conftest.$ac_ext >&5
25828
25829   ac_header_preproc=no
25830 fi
25831 rm -f conftest.err conftest.$ac_ext
25832 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25833 echo "${ECHO_T}$ac_header_preproc" >&6
25834
25835 # So?  What about this header?
25836 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25837   yes:no: )
25838     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
25839 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25840     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
25841 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
25842     ac_header_preproc=yes
25843     ;;
25844   no:yes:* )
25845     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
25846 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
25847     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
25848 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
25849     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
25850 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
25851     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
25852 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25853     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
25854 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
25855     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
25856 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
25857     (
25858       cat <<\_ASBOX
25859 ## ------------------------------- ##
25860 ## Report this to nfs@lists.sf.net ##
25861 ## ------------------------------- ##
25862 _ASBOX
25863     ) |
25864       sed "s/^/$as_me: WARNING:     /" >&2
25865     ;;
25866 esac
25867 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
25868 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
25869 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
25870   echo $ECHO_N "(cached) $ECHO_C" >&6
25871 else
25872   ac_cv_header_sys_mkdev_h=$ac_header_preproc
25873 fi
25874 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
25875 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
25876
25877 fi
25878 if test $ac_cv_header_sys_mkdev_h = yes; then
25879
25880 cat >>confdefs.h <<\_ACEOF
25881 #define MAJOR_IN_MKDEV 1
25882 _ACEOF
25883
25884 fi
25885
25886
25887
25888   if test $ac_cv_header_sys_mkdev_h = no; then
25889     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
25890   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
25891 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
25892 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
25893   echo $ECHO_N "(cached) $ECHO_C" >&6
25894 fi
25895 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
25896 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
25897 else
25898   # Is the header compilable?
25899 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
25900 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
25901 cat >conftest.$ac_ext <<_ACEOF
25902 /* confdefs.h.  */
25903 _ACEOF
25904 cat confdefs.h >>conftest.$ac_ext
25905 cat >>conftest.$ac_ext <<_ACEOF
25906 /* end confdefs.h.  */
25907 $ac_includes_default
25908 #include <sys/sysmacros.h>
25909 _ACEOF
25910 rm -f conftest.$ac_objext
25911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25912   (eval $ac_compile) 2>conftest.er1
25913   ac_status=$?
25914   grep -v '^ *+' conftest.er1 >conftest.err
25915   rm -f conftest.er1
25916   cat conftest.err >&5
25917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25918   (exit $ac_status); } &&
25919          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25921   (eval $ac_try) 2>&5
25922   ac_status=$?
25923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25924   (exit $ac_status); }; } &&
25925          { ac_try='test -s conftest.$ac_objext'
25926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25927   (eval $ac_try) 2>&5
25928   ac_status=$?
25929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25930   (exit $ac_status); }; }; then
25931   ac_header_compiler=yes
25932 else
25933   echo "$as_me: failed program was:" >&5
25934 sed 's/^/| /' conftest.$ac_ext >&5
25935
25936 ac_header_compiler=no
25937 fi
25938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25939 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25940 echo "${ECHO_T}$ac_header_compiler" >&6
25941
25942 # Is the header present?
25943 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
25944 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
25945 cat >conftest.$ac_ext <<_ACEOF
25946 /* confdefs.h.  */
25947 _ACEOF
25948 cat confdefs.h >>conftest.$ac_ext
25949 cat >>conftest.$ac_ext <<_ACEOF
25950 /* end confdefs.h.  */
25951 #include <sys/sysmacros.h>
25952 _ACEOF
25953 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25954   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25955   ac_status=$?
25956   grep -v '^ *+' conftest.er1 >conftest.err
25957   rm -f conftest.er1
25958   cat conftest.err >&5
25959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25960   (exit $ac_status); } >/dev/null; then
25961   if test -s conftest.err; then
25962     ac_cpp_err=$ac_c_preproc_warn_flag
25963     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25964   else
25965     ac_cpp_err=
25966   fi
25967 else
25968   ac_cpp_err=yes
25969 fi
25970 if test -z "$ac_cpp_err"; then
25971   ac_header_preproc=yes
25972 else
25973   echo "$as_me: failed program was:" >&5
25974 sed 's/^/| /' conftest.$ac_ext >&5
25975
25976   ac_header_preproc=no
25977 fi
25978 rm -f conftest.err conftest.$ac_ext
25979 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25980 echo "${ECHO_T}$ac_header_preproc" >&6
25981
25982 # So?  What about this header?
25983 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25984   yes:no: )
25985     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
25986 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25987     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
25988 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
25989     ac_header_preproc=yes
25990     ;;
25991   no:yes:* )
25992     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
25993 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
25994     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
25995 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
25996     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
25997 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
25998     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
25999 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26000     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
26001 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
26002     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
26003 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
26004     (
26005       cat <<\_ASBOX
26006 ## ------------------------------- ##
26007 ## Report this to nfs@lists.sf.net ##
26008 ## ------------------------------- ##
26009 _ASBOX
26010     ) |
26011       sed "s/^/$as_me: WARNING:     /" >&2
26012     ;;
26013 esac
26014 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
26015 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
26016 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
26017   echo $ECHO_N "(cached) $ECHO_C" >&6
26018 else
26019   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
26020 fi
26021 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
26022 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
26023
26024 fi
26025 if test $ac_cv_header_sys_sysmacros_h = yes; then
26026
26027 cat >>confdefs.h <<\_ACEOF
26028 #define MAJOR_IN_SYSMACROS 1
26029 _ACEOF
26030
26031 fi
26032
26033
26034   fi
26035 fi
26036
26037 #AC_FUNC_MALLOC
26038 echo "$as_me:$LINENO: checking for working memcmp" >&5
26039 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
26040 if test "${ac_cv_func_memcmp_working+set}" = set; then
26041   echo $ECHO_N "(cached) $ECHO_C" >&6
26042 else
26043   if test "$cross_compiling" = yes; then
26044   ac_cv_func_memcmp_working=no
26045 else
26046   cat >conftest.$ac_ext <<_ACEOF
26047 /* confdefs.h.  */
26048 _ACEOF
26049 cat confdefs.h >>conftest.$ac_ext
26050 cat >>conftest.$ac_ext <<_ACEOF
26051 /* end confdefs.h.  */
26052 $ac_includes_default
26053 int
26054 main ()
26055 {
26056
26057   /* Some versions of memcmp are not 8-bit clean.  */
26058   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
26059   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
26060     exit (1);
26061
26062   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
26063      or more and with at least one buffer not starting on a 4-byte boundary.
26064      William Lewis provided this test program.   */
26065   {
26066     char foo[21];
26067     char bar[21];
26068     int i;
26069     for (i = 0; i < 4; i++)
26070       {
26071         char *a = foo + i;
26072         char *b = bar + i;
26073         strcpy (a, "--------01111111");
26074         strcpy (b, "--------10000000");
26075         if (memcmp (a, b, 16) >= 0)
26076           exit (1);
26077       }
26078     exit (0);
26079   }
26080
26081   ;
26082   return 0;
26083 }
26084 _ACEOF
26085 rm -f conftest$ac_exeext
26086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26087   (eval $ac_link) 2>&5
26088   ac_status=$?
26089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26090   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26092   (eval $ac_try) 2>&5
26093   ac_status=$?
26094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26095   (exit $ac_status); }; }; then
26096   ac_cv_func_memcmp_working=yes
26097 else
26098   echo "$as_me: program exited with status $ac_status" >&5
26099 echo "$as_me: failed program was:" >&5
26100 sed 's/^/| /' conftest.$ac_ext >&5
26101
26102 ( exit $ac_status )
26103 ac_cv_func_memcmp_working=no
26104 fi
26105 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26106 fi
26107 fi
26108 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
26109 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
26110 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
26111     "memcmp.$ac_objext"   | \
26112   *" memcmp.$ac_objext"   | \
26113     "memcmp.$ac_objext "* | \
26114   *" memcmp.$ac_objext "* ) ;;
26115   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
26116 esac
26117
26118
26119 #AC_FUNC_REALLOC
26120
26121
26122 for ac_header in sys/select.h sys/socket.h
26123 do
26124 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26125 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26126   echo "$as_me:$LINENO: checking for $ac_header" >&5
26127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26128 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26129   echo $ECHO_N "(cached) $ECHO_C" >&6
26130 fi
26131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26132 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26133 else
26134   # Is the header compilable?
26135 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26136 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26137 cat >conftest.$ac_ext <<_ACEOF
26138 /* confdefs.h.  */
26139 _ACEOF
26140 cat confdefs.h >>conftest.$ac_ext
26141 cat >>conftest.$ac_ext <<_ACEOF
26142 /* end confdefs.h.  */
26143 $ac_includes_default
26144 #include <$ac_header>
26145 _ACEOF
26146 rm -f conftest.$ac_objext
26147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26148   (eval $ac_compile) 2>conftest.er1
26149   ac_status=$?
26150   grep -v '^ *+' conftest.er1 >conftest.err
26151   rm -f conftest.er1
26152   cat conftest.err >&5
26153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26154   (exit $ac_status); } &&
26155          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26157   (eval $ac_try) 2>&5
26158   ac_status=$?
26159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26160   (exit $ac_status); }; } &&
26161          { ac_try='test -s conftest.$ac_objext'
26162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26163   (eval $ac_try) 2>&5
26164   ac_status=$?
26165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26166   (exit $ac_status); }; }; then
26167   ac_header_compiler=yes
26168 else
26169   echo "$as_me: failed program was:" >&5
26170 sed 's/^/| /' conftest.$ac_ext >&5
26171
26172 ac_header_compiler=no
26173 fi
26174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26175 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26176 echo "${ECHO_T}$ac_header_compiler" >&6
26177
26178 # Is the header present?
26179 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26180 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26181 cat >conftest.$ac_ext <<_ACEOF
26182 /* confdefs.h.  */
26183 _ACEOF
26184 cat confdefs.h >>conftest.$ac_ext
26185 cat >>conftest.$ac_ext <<_ACEOF
26186 /* end confdefs.h.  */
26187 #include <$ac_header>
26188 _ACEOF
26189 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26190   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26191   ac_status=$?
26192   grep -v '^ *+' conftest.er1 >conftest.err
26193   rm -f conftest.er1
26194   cat conftest.err >&5
26195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26196   (exit $ac_status); } >/dev/null; then
26197   if test -s conftest.err; then
26198     ac_cpp_err=$ac_c_preproc_warn_flag
26199     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26200   else
26201     ac_cpp_err=
26202   fi
26203 else
26204   ac_cpp_err=yes
26205 fi
26206 if test -z "$ac_cpp_err"; then
26207   ac_header_preproc=yes
26208 else
26209   echo "$as_me: failed program was:" >&5
26210 sed 's/^/| /' conftest.$ac_ext >&5
26211
26212   ac_header_preproc=no
26213 fi
26214 rm -f conftest.err conftest.$ac_ext
26215 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26216 echo "${ECHO_T}$ac_header_preproc" >&6
26217
26218 # So?  What about this header?
26219 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26220   yes:no: )
26221     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26222 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26223     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26224 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26225     ac_header_preproc=yes
26226     ;;
26227   no:yes:* )
26228     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26229 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26230     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26231 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26232     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26233 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26234     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26235 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26236     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26237 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26238     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26239 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26240     (
26241       cat <<\_ASBOX
26242 ## ------------------------------- ##
26243 ## Report this to nfs@lists.sf.net ##
26244 ## ------------------------------- ##
26245 _ASBOX
26246     ) |
26247       sed "s/^/$as_me: WARNING:     /" >&2
26248     ;;
26249 esac
26250 echo "$as_me:$LINENO: checking for $ac_header" >&5
26251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26253   echo $ECHO_N "(cached) $ECHO_C" >&6
26254 else
26255   eval "$as_ac_Header=\$ac_header_preproc"
26256 fi
26257 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26258 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26259
26260 fi
26261 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26262   cat >>confdefs.h <<_ACEOF
26263 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26264 _ACEOF
26265
26266 fi
26267
26268 done
26269
26270 echo "$as_me:$LINENO: checking types of arguments for select" >&5
26271 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
26272 if test "${ac_cv_func_select_args+set}" = set; then
26273   echo $ECHO_N "(cached) $ECHO_C" >&6
26274 else
26275   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
26276  for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
26277   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
26278    cat >conftest.$ac_ext <<_ACEOF
26279 /* confdefs.h.  */
26280 _ACEOF
26281 cat confdefs.h >>conftest.$ac_ext
26282 cat >>conftest.$ac_ext <<_ACEOF
26283 /* end confdefs.h.  */
26284 $ac_includes_default
26285 #if HAVE_SYS_SELECT_H
26286 # include <sys/select.h>
26287 #endif
26288 #if HAVE_SYS_SOCKET_H
26289 # include <sys/socket.h>
26290 #endif
26291
26292 int
26293 main ()
26294 {
26295 extern int select ($ac_arg1,
26296                                             $ac_arg234, $ac_arg234, $ac_arg234,
26297                                             $ac_arg5);
26298   ;
26299   return 0;
26300 }
26301 _ACEOF
26302 rm -f conftest.$ac_objext
26303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26304   (eval $ac_compile) 2>conftest.er1
26305   ac_status=$?
26306   grep -v '^ *+' conftest.er1 >conftest.err
26307   rm -f conftest.er1
26308   cat conftest.err >&5
26309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26310   (exit $ac_status); } &&
26311          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26313   (eval $ac_try) 2>&5
26314   ac_status=$?
26315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26316   (exit $ac_status); }; } &&
26317          { ac_try='test -s conftest.$ac_objext'
26318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26319   (eval $ac_try) 2>&5
26320   ac_status=$?
26321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26322   (exit $ac_status); }; }; then
26323   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
26324 else
26325   echo "$as_me: failed program was:" >&5
26326 sed 's/^/| /' conftest.$ac_ext >&5
26327
26328 fi
26329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26330   done
26331  done
26332 done
26333 # Provide a safe default value.
26334 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
26335
26336 fi
26337 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
26338 echo "${ECHO_T}$ac_cv_func_select_args" >&6
26339 ac_save_IFS=$IFS; IFS=','
26340 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
26341 IFS=$ac_save_IFS
26342 shift
26343
26344 cat >>confdefs.h <<_ACEOF
26345 #define SELECT_TYPE_ARG1 $1
26346 _ACEOF
26347
26348
26349 cat >>confdefs.h <<_ACEOF
26350 #define SELECT_TYPE_ARG234 ($2)
26351 _ACEOF
26352
26353
26354 cat >>confdefs.h <<_ACEOF
26355 #define SELECT_TYPE_ARG5 ($3)
26356 _ACEOF
26357
26358 rm -f conftest*
26359
26360 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26361 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
26362 if test "${ac_cv_type_signal+set}" = set; then
26363   echo $ECHO_N "(cached) $ECHO_C" >&6
26364 else
26365   cat >conftest.$ac_ext <<_ACEOF
26366 /* confdefs.h.  */
26367 _ACEOF
26368 cat confdefs.h >>conftest.$ac_ext
26369 cat >>conftest.$ac_ext <<_ACEOF
26370 /* end confdefs.h.  */
26371 #include <sys/types.h>
26372 #include <signal.h>
26373 #ifdef signal
26374 # undef signal
26375 #endif
26376 #ifdef __cplusplus
26377 extern "C" void (*signal (int, void (*)(int)))(int);
26378 #else
26379 void (*signal ()) ();
26380 #endif
26381
26382 int
26383 main ()
26384 {
26385 int i;
26386   ;
26387   return 0;
26388 }
26389 _ACEOF
26390 rm -f conftest.$ac_objext
26391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26392   (eval $ac_compile) 2>conftest.er1
26393   ac_status=$?
26394   grep -v '^ *+' conftest.er1 >conftest.err
26395   rm -f conftest.er1
26396   cat conftest.err >&5
26397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26398   (exit $ac_status); } &&
26399          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26401   (eval $ac_try) 2>&5
26402   ac_status=$?
26403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26404   (exit $ac_status); }; } &&
26405          { ac_try='test -s conftest.$ac_objext'
26406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26407   (eval $ac_try) 2>&5
26408   ac_status=$?
26409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26410   (exit $ac_status); }; }; then
26411   ac_cv_type_signal=void
26412 else
26413   echo "$as_me: failed program was:" >&5
26414 sed 's/^/| /' conftest.$ac_ext >&5
26415
26416 ac_cv_type_signal=int
26417 fi
26418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26419 fi
26420 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26421 echo "${ECHO_T}$ac_cv_type_signal" >&6
26422
26423 cat >>confdefs.h <<_ACEOF
26424 #define RETSIGTYPE $ac_cv_type_signal
26425 _ACEOF
26426
26427
26428 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
26429 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
26430 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
26431   echo $ECHO_N "(cached) $ECHO_C" >&6
26432 else
26433   if test "$cross_compiling" = yes; then
26434   ac_cv_func_stat_empty_string_bug=yes
26435 else
26436   cat >conftest.$ac_ext <<_ACEOF
26437 /* confdefs.h.  */
26438 _ACEOF
26439 cat confdefs.h >>conftest.$ac_ext
26440 cat >>conftest.$ac_ext <<_ACEOF
26441 /* end confdefs.h.  */
26442 $ac_includes_default
26443 int
26444 main ()
26445 {
26446 struct stat sbuf;
26447   exit (stat ("", &sbuf) ? 1 : 0);
26448   ;
26449   return 0;
26450 }
26451 _ACEOF
26452 rm -f conftest$ac_exeext
26453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26454   (eval $ac_link) 2>&5
26455   ac_status=$?
26456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26457   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26459   (eval $ac_try) 2>&5
26460   ac_status=$?
26461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26462   (exit $ac_status); }; }; then
26463   ac_cv_func_stat_empty_string_bug=yes
26464 else
26465   echo "$as_me: program exited with status $ac_status" >&5
26466 echo "$as_me: failed program was:" >&5
26467 sed 's/^/| /' conftest.$ac_ext >&5
26468
26469 ( exit $ac_status )
26470 ac_cv_func_stat_empty_string_bug=no
26471 fi
26472 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26473 fi
26474 fi
26475 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
26476 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
26477 if test $ac_cv_func_stat_empty_string_bug = yes; then
26478   case $LIBOBJS in
26479     "stat.$ac_objext"   | \
26480   *" stat.$ac_objext"   | \
26481     "stat.$ac_objext "* | \
26482   *" stat.$ac_objext "* ) ;;
26483   *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
26484 esac
26485
26486
26487 cat >>confdefs.h <<_ACEOF
26488 #define HAVE_STAT_EMPTY_STRING_BUG 1
26489 _ACEOF
26490
26491 fi
26492
26493
26494 for ac_func in vprintf
26495 do
26496 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26497 echo "$as_me:$LINENO: checking for $ac_func" >&5
26498 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26499 if eval "test \"\${$as_ac_var+set}\" = set"; then
26500   echo $ECHO_N "(cached) $ECHO_C" >&6
26501 else
26502   cat >conftest.$ac_ext <<_ACEOF
26503 /* confdefs.h.  */
26504 _ACEOF
26505 cat confdefs.h >>conftest.$ac_ext
26506 cat >>conftest.$ac_ext <<_ACEOF
26507 /* end confdefs.h.  */
26508 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26509    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26510 #define $ac_func innocuous_$ac_func
26511
26512 /* System header to define __stub macros and hopefully few prototypes,
26513     which can conflict with char $ac_func (); below.
26514     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26515     <limits.h> exists even on freestanding compilers.  */
26516
26517 #ifdef __STDC__
26518 # include <limits.h>
26519 #else
26520 # include <assert.h>
26521 #endif
26522
26523 #undef $ac_func
26524
26525 /* Override any gcc2 internal prototype to avoid an error.  */
26526 #ifdef __cplusplus
26527 extern "C"
26528 {
26529 #endif
26530 /* We use char because int might match the return type of a gcc2
26531    builtin and then its argument prototype would still apply.  */
26532 char $ac_func ();
26533 /* The GNU C library defines this for functions which it implements
26534     to always fail with ENOSYS.  Some functions are actually named
26535     something starting with __ and the normal name is an alias.  */
26536 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26537 choke me
26538 #else
26539 char (*f) () = $ac_func;
26540 #endif
26541 #ifdef __cplusplus
26542 }
26543 #endif
26544
26545 int
26546 main ()
26547 {
26548 return f != $ac_func;
26549   ;
26550   return 0;
26551 }
26552 _ACEOF
26553 rm -f conftest.$ac_objext conftest$ac_exeext
26554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26555   (eval $ac_link) 2>conftest.er1
26556   ac_status=$?
26557   grep -v '^ *+' conftest.er1 >conftest.err
26558   rm -f conftest.er1
26559   cat conftest.err >&5
26560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26561   (exit $ac_status); } &&
26562          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26564   (eval $ac_try) 2>&5
26565   ac_status=$?
26566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26567   (exit $ac_status); }; } &&
26568          { ac_try='test -s conftest$ac_exeext'
26569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26570   (eval $ac_try) 2>&5
26571   ac_status=$?
26572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26573   (exit $ac_status); }; }; then
26574   eval "$as_ac_var=yes"
26575 else
26576   echo "$as_me: failed program was:" >&5
26577 sed 's/^/| /' conftest.$ac_ext >&5
26578
26579 eval "$as_ac_var=no"
26580 fi
26581 rm -f conftest.err conftest.$ac_objext \
26582       conftest$ac_exeext conftest.$ac_ext
26583 fi
26584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26585 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26586 if test `eval echo '${'$as_ac_var'}'` = yes; then
26587   cat >>confdefs.h <<_ACEOF
26588 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26589 _ACEOF
26590
26591 echo "$as_me:$LINENO: checking for _doprnt" >&5
26592 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
26593 if test "${ac_cv_func__doprnt+set}" = set; then
26594   echo $ECHO_N "(cached) $ECHO_C" >&6
26595 else
26596   cat >conftest.$ac_ext <<_ACEOF
26597 /* confdefs.h.  */
26598 _ACEOF
26599 cat confdefs.h >>conftest.$ac_ext
26600 cat >>conftest.$ac_ext <<_ACEOF
26601 /* end confdefs.h.  */
26602 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
26603    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26604 #define _doprnt innocuous__doprnt
26605
26606 /* System header to define __stub macros and hopefully few prototypes,
26607     which can conflict with char _doprnt (); below.
26608     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26609     <limits.h> exists even on freestanding compilers.  */
26610
26611 #ifdef __STDC__
26612 # include <limits.h>
26613 #else
26614 # include <assert.h>
26615 #endif
26616
26617 #undef _doprnt
26618
26619 /* Override any gcc2 internal prototype to avoid an error.  */
26620 #ifdef __cplusplus
26621 extern "C"
26622 {
26623 #endif
26624 /* We use char because int might match the return type of a gcc2
26625    builtin and then its argument prototype would still apply.  */
26626 char _doprnt ();
26627 /* The GNU C library defines this for functions which it implements
26628     to always fail with ENOSYS.  Some functions are actually named
26629     something starting with __ and the normal name is an alias.  */
26630 #if defined (__stub__doprnt) || defined (__stub____doprnt)
26631 choke me
26632 #else
26633 char (*f) () = _doprnt;
26634 #endif
26635 #ifdef __cplusplus
26636 }
26637 #endif
26638
26639 int
26640 main ()
26641 {
26642 return f != _doprnt;
26643   ;
26644   return 0;
26645 }
26646 _ACEOF
26647 rm -f conftest.$ac_objext conftest$ac_exeext
26648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26649   (eval $ac_link) 2>conftest.er1
26650   ac_status=$?
26651   grep -v '^ *+' conftest.er1 >conftest.err
26652   rm -f conftest.er1
26653   cat conftest.err >&5
26654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26655   (exit $ac_status); } &&
26656          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26658   (eval $ac_try) 2>&5
26659   ac_status=$?
26660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26661   (exit $ac_status); }; } &&
26662          { ac_try='test -s conftest$ac_exeext'
26663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26664   (eval $ac_try) 2>&5
26665   ac_status=$?
26666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26667   (exit $ac_status); }; }; then
26668   ac_cv_func__doprnt=yes
26669 else
26670   echo "$as_me: failed program was:" >&5
26671 sed 's/^/| /' conftest.$ac_ext >&5
26672
26673 ac_cv_func__doprnt=no
26674 fi
26675 rm -f conftest.err conftest.$ac_objext \
26676       conftest$ac_exeext conftest.$ac_ext
26677 fi
26678 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
26679 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
26680 if test $ac_cv_func__doprnt = yes; then
26681
26682 cat >>confdefs.h <<\_ACEOF
26683 #define HAVE_DOPRNT 1
26684 _ACEOF
26685
26686 fi
26687
26688 fi
26689 done
26690
26691
26692
26693
26694
26695
26696
26697
26698
26699
26700
26701
26702
26703
26704
26705
26706
26707
26708
26709
26710
26711
26712
26713
26714
26715
26716
26717
26718
26719 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
26720                gethostbyaddr gethostbyname gethostname getmntent \
26721                gettimeofday hasmntopt inet_ntoa memset mkdir pathconf \
26722                realpath rmdir select socket strcasecmp strchr strdup \
26723                strerror strrchr strtol strtoul
26724 do
26725 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26726 echo "$as_me:$LINENO: checking for $ac_func" >&5
26727 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26728 if eval "test \"\${$as_ac_var+set}\" = set"; then
26729   echo $ECHO_N "(cached) $ECHO_C" >&6
26730 else
26731   cat >conftest.$ac_ext <<_ACEOF
26732 /* confdefs.h.  */
26733 _ACEOF
26734 cat confdefs.h >>conftest.$ac_ext
26735 cat >>conftest.$ac_ext <<_ACEOF
26736 /* end confdefs.h.  */
26737 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26738    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26739 #define $ac_func innocuous_$ac_func
26740
26741 /* System header to define __stub macros and hopefully few prototypes,
26742     which can conflict with char $ac_func (); below.
26743     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26744     <limits.h> exists even on freestanding compilers.  */
26745
26746 #ifdef __STDC__
26747 # include <limits.h>
26748 #else
26749 # include <assert.h>
26750 #endif
26751
26752 #undef $ac_func
26753
26754 /* Override any gcc2 internal prototype to avoid an error.  */
26755 #ifdef __cplusplus
26756 extern "C"
26757 {
26758 #endif
26759 /* We use char because int might match the return type of a gcc2
26760    builtin and then its argument prototype would still apply.  */
26761 char $ac_func ();
26762 /* The GNU C library defines this for functions which it implements
26763     to always fail with ENOSYS.  Some functions are actually named
26764     something starting with __ and the normal name is an alias.  */
26765 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26766 choke me
26767 #else
26768 char (*f) () = $ac_func;
26769 #endif
26770 #ifdef __cplusplus
26771 }
26772 #endif
26773
26774 int
26775 main ()
26776 {
26777 return f != $ac_func;
26778   ;
26779   return 0;
26780 }
26781 _ACEOF
26782 rm -f conftest.$ac_objext conftest$ac_exeext
26783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26784   (eval $ac_link) 2>conftest.er1
26785   ac_status=$?
26786   grep -v '^ *+' conftest.er1 >conftest.err
26787   rm -f conftest.er1
26788   cat conftest.err >&5
26789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26790   (exit $ac_status); } &&
26791          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26793   (eval $ac_try) 2>&5
26794   ac_status=$?
26795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26796   (exit $ac_status); }; } &&
26797          { ac_try='test -s conftest$ac_exeext'
26798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26799   (eval $ac_try) 2>&5
26800   ac_status=$?
26801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26802   (exit $ac_status); }; }; then
26803   eval "$as_ac_var=yes"
26804 else
26805   echo "$as_me: failed program was:" >&5
26806 sed 's/^/| /' conftest.$ac_ext >&5
26807
26808 eval "$as_ac_var=no"
26809 fi
26810 rm -f conftest.err conftest.$ac_objext \
26811       conftest$ac_exeext conftest.$ac_ext
26812 fi
26813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26814 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26815 if test `eval echo '${'$as_ac_var'}'` = yes; then
26816   cat >>confdefs.h <<_ACEOF
26817 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26818 _ACEOF
26819
26820 fi
26821 done
26822
26823
26824
26825 echo "$as_me:$LINENO: checking for short" >&5
26826 echo $ECHO_N "checking for short... $ECHO_C" >&6
26827 if test "${ac_cv_type_short+set}" = set; then
26828   echo $ECHO_N "(cached) $ECHO_C" >&6
26829 else
26830   cat >conftest.$ac_ext <<_ACEOF
26831 /* confdefs.h.  */
26832 _ACEOF
26833 cat confdefs.h >>conftest.$ac_ext
26834 cat >>conftest.$ac_ext <<_ACEOF
26835 /* end confdefs.h.  */
26836 $ac_includes_default
26837 int
26838 main ()
26839 {
26840 if ((short *) 0)
26841   return 0;
26842 if (sizeof (short))
26843   return 0;
26844   ;
26845   return 0;
26846 }
26847 _ACEOF
26848 rm -f conftest.$ac_objext
26849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26850   (eval $ac_compile) 2>conftest.er1
26851   ac_status=$?
26852   grep -v '^ *+' conftest.er1 >conftest.err
26853   rm -f conftest.er1
26854   cat conftest.err >&5
26855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26856   (exit $ac_status); } &&
26857          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26859   (eval $ac_try) 2>&5
26860   ac_status=$?
26861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26862   (exit $ac_status); }; } &&
26863          { ac_try='test -s conftest.$ac_objext'
26864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26865   (eval $ac_try) 2>&5
26866   ac_status=$?
26867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26868   (exit $ac_status); }; }; then
26869   ac_cv_type_short=yes
26870 else
26871   echo "$as_me: failed program was:" >&5
26872 sed 's/^/| /' conftest.$ac_ext >&5
26873
26874 ac_cv_type_short=no
26875 fi
26876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26877 fi
26878 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
26879 echo "${ECHO_T}$ac_cv_type_short" >&6
26880
26881 echo "$as_me:$LINENO: checking size of short" >&5
26882 echo $ECHO_N "checking size of short... $ECHO_C" >&6
26883 if test "${ac_cv_sizeof_short+set}" = set; then
26884   echo $ECHO_N "(cached) $ECHO_C" >&6
26885 else
26886   if test "$ac_cv_type_short" = yes; then
26887   # The cast to unsigned long works around a bug in the HP C Compiler
26888   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26889   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26890   # This bug is HP SR number 8606223364.
26891   if test "$cross_compiling" = yes; then
26892   # Depending upon the size, compute the lo and hi bounds.
26893 cat >conftest.$ac_ext <<_ACEOF
26894 /* confdefs.h.  */
26895 _ACEOF
26896 cat confdefs.h >>conftest.$ac_ext
26897 cat >>conftest.$ac_ext <<_ACEOF
26898 /* end confdefs.h.  */
26899 $ac_includes_default
26900 int
26901 main ()
26902 {
26903 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
26904 test_array [0] = 0
26905
26906   ;
26907   return 0;
26908 }
26909 _ACEOF
26910 rm -f conftest.$ac_objext
26911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26912   (eval $ac_compile) 2>conftest.er1
26913   ac_status=$?
26914   grep -v '^ *+' conftest.er1 >conftest.err
26915   rm -f conftest.er1
26916   cat conftest.err >&5
26917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26918   (exit $ac_status); } &&
26919          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26921   (eval $ac_try) 2>&5
26922   ac_status=$?
26923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26924   (exit $ac_status); }; } &&
26925          { ac_try='test -s conftest.$ac_objext'
26926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26927   (eval $ac_try) 2>&5
26928   ac_status=$?
26929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26930   (exit $ac_status); }; }; then
26931   ac_lo=0 ac_mid=0
26932   while :; do
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 $ac_includes_default
26940 int
26941 main ()
26942 {
26943 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
26944 test_array [0] = 0
26945
26946   ;
26947   return 0;
26948 }
26949 _ACEOF
26950 rm -f conftest.$ac_objext
26951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26952   (eval $ac_compile) 2>conftest.er1
26953   ac_status=$?
26954   grep -v '^ *+' conftest.er1 >conftest.err
26955   rm -f conftest.er1
26956   cat conftest.err >&5
26957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26958   (exit $ac_status); } &&
26959          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26961   (eval $ac_try) 2>&5
26962   ac_status=$?
26963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26964   (exit $ac_status); }; } &&
26965          { ac_try='test -s conftest.$ac_objext'
26966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26967   (eval $ac_try) 2>&5
26968   ac_status=$?
26969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26970   (exit $ac_status); }; }; then
26971   ac_hi=$ac_mid; break
26972 else
26973   echo "$as_me: failed program was:" >&5
26974 sed 's/^/| /' conftest.$ac_ext >&5
26975
26976 ac_lo=`expr $ac_mid + 1`
26977                     if test $ac_lo -le $ac_mid; then
26978                       ac_lo= ac_hi=
26979                       break
26980                     fi
26981                     ac_mid=`expr 2 '*' $ac_mid + 1`
26982 fi
26983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26984   done
26985 else
26986   echo "$as_me: failed program was:" >&5
26987 sed 's/^/| /' conftest.$ac_ext >&5
26988
26989 cat >conftest.$ac_ext <<_ACEOF
26990 /* confdefs.h.  */
26991 _ACEOF
26992 cat confdefs.h >>conftest.$ac_ext
26993 cat >>conftest.$ac_ext <<_ACEOF
26994 /* end confdefs.h.  */
26995 $ac_includes_default
26996 int
26997 main ()
26998 {
26999 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
27000 test_array [0] = 0
27001
27002   ;
27003   return 0;
27004 }
27005 _ACEOF
27006 rm -f conftest.$ac_objext
27007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27008   (eval $ac_compile) 2>conftest.er1
27009   ac_status=$?
27010   grep -v '^ *+' conftest.er1 >conftest.err
27011   rm -f conftest.er1
27012   cat conftest.err >&5
27013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27014   (exit $ac_status); } &&
27015          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27017   (eval $ac_try) 2>&5
27018   ac_status=$?
27019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27020   (exit $ac_status); }; } &&
27021          { ac_try='test -s conftest.$ac_objext'
27022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27023   (eval $ac_try) 2>&5
27024   ac_status=$?
27025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27026   (exit $ac_status); }; }; then
27027   ac_hi=-1 ac_mid=-1
27028   while :; do
27029     cat >conftest.$ac_ext <<_ACEOF
27030 /* confdefs.h.  */
27031 _ACEOF
27032 cat confdefs.h >>conftest.$ac_ext
27033 cat >>conftest.$ac_ext <<_ACEOF
27034 /* end confdefs.h.  */
27035 $ac_includes_default
27036 int
27037 main ()
27038 {
27039 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
27040 test_array [0] = 0
27041
27042   ;
27043   return 0;
27044 }
27045 _ACEOF
27046 rm -f conftest.$ac_objext
27047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27048   (eval $ac_compile) 2>conftest.er1
27049   ac_status=$?
27050   grep -v '^ *+' conftest.er1 >conftest.err
27051   rm -f conftest.er1
27052   cat conftest.err >&5
27053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27054   (exit $ac_status); } &&
27055          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27057   (eval $ac_try) 2>&5
27058   ac_status=$?
27059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27060   (exit $ac_status); }; } &&
27061          { ac_try='test -s conftest.$ac_objext'
27062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27063   (eval $ac_try) 2>&5
27064   ac_status=$?
27065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27066   (exit $ac_status); }; }; then
27067   ac_lo=$ac_mid; break
27068 else
27069   echo "$as_me: failed program was:" >&5
27070 sed 's/^/| /' conftest.$ac_ext >&5
27071
27072 ac_hi=`expr '(' $ac_mid ')' - 1`
27073                        if test $ac_mid -le $ac_hi; then
27074                          ac_lo= ac_hi=
27075                          break
27076                        fi
27077                        ac_mid=`expr 2 '*' $ac_mid`
27078 fi
27079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27080   done
27081 else
27082   echo "$as_me: failed program was:" >&5
27083 sed 's/^/| /' conftest.$ac_ext >&5
27084
27085 ac_lo= ac_hi=
27086 fi
27087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27088 fi
27089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27090 # Binary search between lo and hi bounds.
27091 while test "x$ac_lo" != "x$ac_hi"; do
27092   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27093   cat >conftest.$ac_ext <<_ACEOF
27094 /* confdefs.h.  */
27095 _ACEOF
27096 cat confdefs.h >>conftest.$ac_ext
27097 cat >>conftest.$ac_ext <<_ACEOF
27098 /* end confdefs.h.  */
27099 $ac_includes_default
27100 int
27101 main ()
27102 {
27103 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
27104 test_array [0] = 0
27105
27106   ;
27107   return 0;
27108 }
27109 _ACEOF
27110 rm -f conftest.$ac_objext
27111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27112   (eval $ac_compile) 2>conftest.er1
27113   ac_status=$?
27114   grep -v '^ *+' conftest.er1 >conftest.err
27115   rm -f conftest.er1
27116   cat conftest.err >&5
27117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27118   (exit $ac_status); } &&
27119          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27121   (eval $ac_try) 2>&5
27122   ac_status=$?
27123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27124   (exit $ac_status); }; } &&
27125          { ac_try='test -s conftest.$ac_objext'
27126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27127   (eval $ac_try) 2>&5
27128   ac_status=$?
27129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27130   (exit $ac_status); }; }; then
27131   ac_hi=$ac_mid
27132 else
27133   echo "$as_me: failed program was:" >&5
27134 sed 's/^/| /' conftest.$ac_ext >&5
27135
27136 ac_lo=`expr '(' $ac_mid ')' + 1`
27137 fi
27138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27139 done
27140 case $ac_lo in
27141 ?*) ac_cv_sizeof_short=$ac_lo;;
27142 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
27143 See \`config.log' for more details." >&5
27144 echo "$as_me: error: cannot compute sizeof (short), 77
27145 See \`config.log' for more details." >&2;}
27146    { (exit 1); exit 1; }; } ;;
27147 esac
27148 else
27149   if test "$cross_compiling" = yes; then
27150   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
27151 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
27152    { (exit 1); exit 1; }; }
27153 else
27154   cat >conftest.$ac_ext <<_ACEOF
27155 /* confdefs.h.  */
27156 _ACEOF
27157 cat confdefs.h >>conftest.$ac_ext
27158 cat >>conftest.$ac_ext <<_ACEOF
27159 /* end confdefs.h.  */
27160 $ac_includes_default
27161 long longval () { return (long) (sizeof (short)); }
27162 unsigned long ulongval () { return (long) (sizeof (short)); }
27163 #include <stdio.h>
27164 #include <stdlib.h>
27165 int
27166 main ()
27167 {
27168
27169   FILE *f = fopen ("conftest.val", "w");
27170   if (! f)
27171     exit (1);
27172   if (((long) (sizeof (short))) < 0)
27173     {
27174       long i = longval ();
27175       if (i != ((long) (sizeof (short))))
27176         exit (1);
27177       fprintf (f, "%ld\n", i);
27178     }
27179   else
27180     {
27181       unsigned long i = ulongval ();
27182       if (i != ((long) (sizeof (short))))
27183         exit (1);
27184       fprintf (f, "%lu\n", i);
27185     }
27186   exit (ferror (f) || fclose (f) != 0);
27187
27188   ;
27189   return 0;
27190 }
27191 _ACEOF
27192 rm -f conftest$ac_exeext
27193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27194   (eval $ac_link) 2>&5
27195   ac_status=$?
27196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27197   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27199   (eval $ac_try) 2>&5
27200   ac_status=$?
27201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27202   (exit $ac_status); }; }; then
27203   ac_cv_sizeof_short=`cat conftest.val`
27204 else
27205   echo "$as_me: program exited with status $ac_status" >&5
27206 echo "$as_me: failed program was:" >&5
27207 sed 's/^/| /' conftest.$ac_ext >&5
27208
27209 ( exit $ac_status )
27210 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
27211 See \`config.log' for more details." >&5
27212 echo "$as_me: error: cannot compute sizeof (short), 77
27213 See \`config.log' for more details." >&2;}
27214    { (exit 1); exit 1; }; }
27215 fi
27216 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27217 fi
27218 fi
27219 rm -f conftest.val
27220 else
27221   ac_cv_sizeof_short=0
27222 fi
27223 fi
27224 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
27225 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
27226 cat >>confdefs.h <<_ACEOF
27227 #define SIZEOF_SHORT $ac_cv_sizeof_short
27228 _ACEOF
27229
27230
27231 echo "$as_me:$LINENO: checking for int" >&5
27232 echo $ECHO_N "checking for int... $ECHO_C" >&6
27233 if test "${ac_cv_type_int+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 $ac_includes_default
27243 int
27244 main ()
27245 {
27246 if ((int *) 0)
27247   return 0;
27248 if (sizeof (int))
27249   return 0;
27250   ;
27251   return 0;
27252 }
27253 _ACEOF
27254 rm -f conftest.$ac_objext
27255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27256   (eval $ac_compile) 2>conftest.er1
27257   ac_status=$?
27258   grep -v '^ *+' conftest.er1 >conftest.err
27259   rm -f conftest.er1
27260   cat conftest.err >&5
27261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27262   (exit $ac_status); } &&
27263          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27265   (eval $ac_try) 2>&5
27266   ac_status=$?
27267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27268   (exit $ac_status); }; } &&
27269          { ac_try='test -s conftest.$ac_objext'
27270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27271   (eval $ac_try) 2>&5
27272   ac_status=$?
27273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27274   (exit $ac_status); }; }; then
27275   ac_cv_type_int=yes
27276 else
27277   echo "$as_me: failed program was:" >&5
27278 sed 's/^/| /' conftest.$ac_ext >&5
27279
27280 ac_cv_type_int=no
27281 fi
27282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27283 fi
27284 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
27285 echo "${ECHO_T}$ac_cv_type_int" >&6
27286
27287 echo "$as_me:$LINENO: checking size of int" >&5
27288 echo $ECHO_N "checking size of int... $ECHO_C" >&6
27289 if test "${ac_cv_sizeof_int+set}" = set; then
27290   echo $ECHO_N "(cached) $ECHO_C" >&6
27291 else
27292   if test "$ac_cv_type_int" = yes; then
27293   # The cast to unsigned long works around a bug in the HP C Compiler
27294   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27295   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27296   # This bug is HP SR number 8606223364.
27297   if test "$cross_compiling" = yes; then
27298   # Depending upon the size, compute the lo and hi bounds.
27299 cat >conftest.$ac_ext <<_ACEOF
27300 /* confdefs.h.  */
27301 _ACEOF
27302 cat confdefs.h >>conftest.$ac_ext
27303 cat >>conftest.$ac_ext <<_ACEOF
27304 /* end confdefs.h.  */
27305 $ac_includes_default
27306 int
27307 main ()
27308 {
27309 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
27310 test_array [0] = 0
27311
27312   ;
27313   return 0;
27314 }
27315 _ACEOF
27316 rm -f conftest.$ac_objext
27317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27318   (eval $ac_compile) 2>conftest.er1
27319   ac_status=$?
27320   grep -v '^ *+' conftest.er1 >conftest.err
27321   rm -f conftest.er1
27322   cat conftest.err >&5
27323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27324   (exit $ac_status); } &&
27325          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27327   (eval $ac_try) 2>&5
27328   ac_status=$?
27329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27330   (exit $ac_status); }; } &&
27331          { ac_try='test -s conftest.$ac_objext'
27332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27333   (eval $ac_try) 2>&5
27334   ac_status=$?
27335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27336   (exit $ac_status); }; }; then
27337   ac_lo=0 ac_mid=0
27338   while :; do
27339     cat >conftest.$ac_ext <<_ACEOF
27340 /* confdefs.h.  */
27341 _ACEOF
27342 cat confdefs.h >>conftest.$ac_ext
27343 cat >>conftest.$ac_ext <<_ACEOF
27344 /* end confdefs.h.  */
27345 $ac_includes_default
27346 int
27347 main ()
27348 {
27349 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
27350 test_array [0] = 0
27351
27352   ;
27353   return 0;
27354 }
27355 _ACEOF
27356 rm -f conftest.$ac_objext
27357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27358   (eval $ac_compile) 2>conftest.er1
27359   ac_status=$?
27360   grep -v '^ *+' conftest.er1 >conftest.err
27361   rm -f conftest.er1
27362   cat conftest.err >&5
27363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27364   (exit $ac_status); } &&
27365          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27367   (eval $ac_try) 2>&5
27368   ac_status=$?
27369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27370   (exit $ac_status); }; } &&
27371          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
27377   ac_hi=$ac_mid; break
27378 else
27379   echo "$as_me: failed program was:" >&5
27380 sed 's/^/| /' conftest.$ac_ext >&5
27381
27382 ac_lo=`expr $ac_mid + 1`
27383                     if test $ac_lo -le $ac_mid; then
27384                       ac_lo= ac_hi=
27385                       break
27386                     fi
27387                     ac_mid=`expr 2 '*' $ac_mid + 1`
27388 fi
27389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27390   done
27391 else
27392   echo "$as_me: failed program was:" >&5
27393 sed 's/^/| /' conftest.$ac_ext >&5
27394
27395 cat >conftest.$ac_ext <<_ACEOF
27396 /* confdefs.h.  */
27397 _ACEOF
27398 cat confdefs.h >>conftest.$ac_ext
27399 cat >>conftest.$ac_ext <<_ACEOF
27400 /* end confdefs.h.  */
27401 $ac_includes_default
27402 int
27403 main ()
27404 {
27405 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
27406 test_array [0] = 0
27407
27408   ;
27409   return 0;
27410 }
27411 _ACEOF
27412 rm -f conftest.$ac_objext
27413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27414   (eval $ac_compile) 2>conftest.er1
27415   ac_status=$?
27416   grep -v '^ *+' conftest.er1 >conftest.err
27417   rm -f conftest.er1
27418   cat conftest.err >&5
27419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27420   (exit $ac_status); } &&
27421          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27423   (eval $ac_try) 2>&5
27424   ac_status=$?
27425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27426   (exit $ac_status); }; } &&
27427          { ac_try='test -s conftest.$ac_objext'
27428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27429   (eval $ac_try) 2>&5
27430   ac_status=$?
27431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27432   (exit $ac_status); }; }; then
27433   ac_hi=-1 ac_mid=-1
27434   while :; do
27435     cat >conftest.$ac_ext <<_ACEOF
27436 /* confdefs.h.  */
27437 _ACEOF
27438 cat confdefs.h >>conftest.$ac_ext
27439 cat >>conftest.$ac_ext <<_ACEOF
27440 /* end confdefs.h.  */
27441 $ac_includes_default
27442 int
27443 main ()
27444 {
27445 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
27446 test_array [0] = 0
27447
27448   ;
27449   return 0;
27450 }
27451 _ACEOF
27452 rm -f conftest.$ac_objext
27453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27454   (eval $ac_compile) 2>conftest.er1
27455   ac_status=$?
27456   grep -v '^ *+' conftest.er1 >conftest.err
27457   rm -f conftest.er1
27458   cat conftest.err >&5
27459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27460   (exit $ac_status); } &&
27461          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27463   (eval $ac_try) 2>&5
27464   ac_status=$?
27465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27466   (exit $ac_status); }; } &&
27467          { ac_try='test -s conftest.$ac_objext'
27468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27469   (eval $ac_try) 2>&5
27470   ac_status=$?
27471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27472   (exit $ac_status); }; }; then
27473   ac_lo=$ac_mid; break
27474 else
27475   echo "$as_me: failed program was:" >&5
27476 sed 's/^/| /' conftest.$ac_ext >&5
27477
27478 ac_hi=`expr '(' $ac_mid ')' - 1`
27479                        if test $ac_mid -le $ac_hi; then
27480                          ac_lo= ac_hi=
27481                          break
27482                        fi
27483                        ac_mid=`expr 2 '*' $ac_mid`
27484 fi
27485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27486   done
27487 else
27488   echo "$as_me: failed program was:" >&5
27489 sed 's/^/| /' conftest.$ac_ext >&5
27490
27491 ac_lo= ac_hi=
27492 fi
27493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27494 fi
27495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27496 # Binary search between lo and hi bounds.
27497 while test "x$ac_lo" != "x$ac_hi"; do
27498   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27499   cat >conftest.$ac_ext <<_ACEOF
27500 /* confdefs.h.  */
27501 _ACEOF
27502 cat confdefs.h >>conftest.$ac_ext
27503 cat >>conftest.$ac_ext <<_ACEOF
27504 /* end confdefs.h.  */
27505 $ac_includes_default
27506 int
27507 main ()
27508 {
27509 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
27510 test_array [0] = 0
27511
27512   ;
27513   return 0;
27514 }
27515 _ACEOF
27516 rm -f conftest.$ac_objext
27517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27518   (eval $ac_compile) 2>conftest.er1
27519   ac_status=$?
27520   grep -v '^ *+' conftest.er1 >conftest.err
27521   rm -f conftest.er1
27522   cat conftest.err >&5
27523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27524   (exit $ac_status); } &&
27525          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27527   (eval $ac_try) 2>&5
27528   ac_status=$?
27529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27530   (exit $ac_status); }; } &&
27531          { ac_try='test -s conftest.$ac_objext'
27532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27533   (eval $ac_try) 2>&5
27534   ac_status=$?
27535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27536   (exit $ac_status); }; }; then
27537   ac_hi=$ac_mid
27538 else
27539   echo "$as_me: failed program was:" >&5
27540 sed 's/^/| /' conftest.$ac_ext >&5
27541
27542 ac_lo=`expr '(' $ac_mid ')' + 1`
27543 fi
27544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27545 done
27546 case $ac_lo in
27547 ?*) ac_cv_sizeof_int=$ac_lo;;
27548 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
27549 See \`config.log' for more details." >&5
27550 echo "$as_me: error: cannot compute sizeof (int), 77
27551 See \`config.log' for more details." >&2;}
27552    { (exit 1); exit 1; }; } ;;
27553 esac
27554 else
27555   if test "$cross_compiling" = yes; then
27556   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
27557 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
27558    { (exit 1); exit 1; }; }
27559 else
27560   cat >conftest.$ac_ext <<_ACEOF
27561 /* confdefs.h.  */
27562 _ACEOF
27563 cat confdefs.h >>conftest.$ac_ext
27564 cat >>conftest.$ac_ext <<_ACEOF
27565 /* end confdefs.h.  */
27566 $ac_includes_default
27567 long longval () { return (long) (sizeof (int)); }
27568 unsigned long ulongval () { return (long) (sizeof (int)); }
27569 #include <stdio.h>
27570 #include <stdlib.h>
27571 int
27572 main ()
27573 {
27574
27575   FILE *f = fopen ("conftest.val", "w");
27576   if (! f)
27577     exit (1);
27578   if (((long) (sizeof (int))) < 0)
27579     {
27580       long i = longval ();
27581       if (i != ((long) (sizeof (int))))
27582         exit (1);
27583       fprintf (f, "%ld\n", i);
27584     }
27585   else
27586     {
27587       unsigned long i = ulongval ();
27588       if (i != ((long) (sizeof (int))))
27589         exit (1);
27590       fprintf (f, "%lu\n", i);
27591     }
27592   exit (ferror (f) || fclose (f) != 0);
27593
27594   ;
27595   return 0;
27596 }
27597 _ACEOF
27598 rm -f conftest$ac_exeext
27599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27600   (eval $ac_link) 2>&5
27601   ac_status=$?
27602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27603   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27605   (eval $ac_try) 2>&5
27606   ac_status=$?
27607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27608   (exit $ac_status); }; }; then
27609   ac_cv_sizeof_int=`cat conftest.val`
27610 else
27611   echo "$as_me: program exited with status $ac_status" >&5
27612 echo "$as_me: failed program was:" >&5
27613 sed 's/^/| /' conftest.$ac_ext >&5
27614
27615 ( exit $ac_status )
27616 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
27617 See \`config.log' for more details." >&5
27618 echo "$as_me: error: cannot compute sizeof (int), 77
27619 See \`config.log' for more details." >&2;}
27620    { (exit 1); exit 1; }; }
27621 fi
27622 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27623 fi
27624 fi
27625 rm -f conftest.val
27626 else
27627   ac_cv_sizeof_int=0
27628 fi
27629 fi
27630 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
27631 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
27632 cat >>confdefs.h <<_ACEOF
27633 #define SIZEOF_INT $ac_cv_sizeof_int
27634 _ACEOF
27635
27636
27637 echo "$as_me:$LINENO: checking for long" >&5
27638 echo $ECHO_N "checking for long... $ECHO_C" >&6
27639 if test "${ac_cv_type_long+set}" = set; then
27640   echo $ECHO_N "(cached) $ECHO_C" >&6
27641 else
27642   cat >conftest.$ac_ext <<_ACEOF
27643 /* confdefs.h.  */
27644 _ACEOF
27645 cat confdefs.h >>conftest.$ac_ext
27646 cat >>conftest.$ac_ext <<_ACEOF
27647 /* end confdefs.h.  */
27648 $ac_includes_default
27649 int
27650 main ()
27651 {
27652 if ((long *) 0)
27653   return 0;
27654 if (sizeof (long))
27655   return 0;
27656   ;
27657   return 0;
27658 }
27659 _ACEOF
27660 rm -f conftest.$ac_objext
27661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27662   (eval $ac_compile) 2>conftest.er1
27663   ac_status=$?
27664   grep -v '^ *+' conftest.er1 >conftest.err
27665   rm -f conftest.er1
27666   cat conftest.err >&5
27667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27668   (exit $ac_status); } &&
27669          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27671   (eval $ac_try) 2>&5
27672   ac_status=$?
27673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27674   (exit $ac_status); }; } &&
27675          { ac_try='test -s conftest.$ac_objext'
27676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27677   (eval $ac_try) 2>&5
27678   ac_status=$?
27679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27680   (exit $ac_status); }; }; then
27681   ac_cv_type_long=yes
27682 else
27683   echo "$as_me: failed program was:" >&5
27684 sed 's/^/| /' conftest.$ac_ext >&5
27685
27686 ac_cv_type_long=no
27687 fi
27688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27689 fi
27690 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
27691 echo "${ECHO_T}$ac_cv_type_long" >&6
27692
27693 echo "$as_me:$LINENO: checking size of long" >&5
27694 echo $ECHO_N "checking size of long... $ECHO_C" >&6
27695 if test "${ac_cv_sizeof_long+set}" = set; then
27696   echo $ECHO_N "(cached) $ECHO_C" >&6
27697 else
27698   if test "$ac_cv_type_long" = yes; then
27699   # The cast to unsigned long works around a bug in the HP C Compiler
27700   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27701   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27702   # This bug is HP SR number 8606223364.
27703   if test "$cross_compiling" = yes; then
27704   # Depending upon the size, compute the lo and hi bounds.
27705 cat >conftest.$ac_ext <<_ACEOF
27706 /* confdefs.h.  */
27707 _ACEOF
27708 cat confdefs.h >>conftest.$ac_ext
27709 cat >>conftest.$ac_ext <<_ACEOF
27710 /* end confdefs.h.  */
27711 $ac_includes_default
27712 int
27713 main ()
27714 {
27715 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
27716 test_array [0] = 0
27717
27718   ;
27719   return 0;
27720 }
27721 _ACEOF
27722 rm -f conftest.$ac_objext
27723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27724   (eval $ac_compile) 2>conftest.er1
27725   ac_status=$?
27726   grep -v '^ *+' conftest.er1 >conftest.err
27727   rm -f conftest.er1
27728   cat conftest.err >&5
27729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27730   (exit $ac_status); } &&
27731          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
27737          { ac_try='test -s conftest.$ac_objext'
27738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27739   (eval $ac_try) 2>&5
27740   ac_status=$?
27741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27742   (exit $ac_status); }; }; then
27743   ac_lo=0 ac_mid=0
27744   while :; do
27745     cat >conftest.$ac_ext <<_ACEOF
27746 /* confdefs.h.  */
27747 _ACEOF
27748 cat confdefs.h >>conftest.$ac_ext
27749 cat >>conftest.$ac_ext <<_ACEOF
27750 /* end confdefs.h.  */
27751 $ac_includes_default
27752 int
27753 main ()
27754 {
27755 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
27756 test_array [0] = 0
27757
27758   ;
27759   return 0;
27760 }
27761 _ACEOF
27762 rm -f conftest.$ac_objext
27763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27764   (eval $ac_compile) 2>conftest.er1
27765   ac_status=$?
27766   grep -v '^ *+' conftest.er1 >conftest.err
27767   rm -f conftest.er1
27768   cat conftest.err >&5
27769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27770   (exit $ac_status); } &&
27771          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27773   (eval $ac_try) 2>&5
27774   ac_status=$?
27775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27776   (exit $ac_status); }; } &&
27777          { ac_try='test -s conftest.$ac_objext'
27778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27779   (eval $ac_try) 2>&5
27780   ac_status=$?
27781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27782   (exit $ac_status); }; }; then
27783   ac_hi=$ac_mid; break
27784 else
27785   echo "$as_me: failed program was:" >&5
27786 sed 's/^/| /' conftest.$ac_ext >&5
27787
27788 ac_lo=`expr $ac_mid + 1`
27789                     if test $ac_lo -le $ac_mid; then
27790                       ac_lo= ac_hi=
27791                       break
27792                     fi
27793                     ac_mid=`expr 2 '*' $ac_mid + 1`
27794 fi
27795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27796   done
27797 else
27798   echo "$as_me: failed program was:" >&5
27799 sed 's/^/| /' conftest.$ac_ext >&5
27800
27801 cat >conftest.$ac_ext <<_ACEOF
27802 /* confdefs.h.  */
27803 _ACEOF
27804 cat confdefs.h >>conftest.$ac_ext
27805 cat >>conftest.$ac_ext <<_ACEOF
27806 /* end confdefs.h.  */
27807 $ac_includes_default
27808 int
27809 main ()
27810 {
27811 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
27812 test_array [0] = 0
27813
27814   ;
27815   return 0;
27816 }
27817 _ACEOF
27818 rm -f conftest.$ac_objext
27819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27820   (eval $ac_compile) 2>conftest.er1
27821   ac_status=$?
27822   grep -v '^ *+' conftest.er1 >conftest.err
27823   rm -f conftest.er1
27824   cat conftest.err >&5
27825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27826   (exit $ac_status); } &&
27827          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27829   (eval $ac_try) 2>&5
27830   ac_status=$?
27831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27832   (exit $ac_status); }; } &&
27833          { ac_try='test -s conftest.$ac_objext'
27834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27835   (eval $ac_try) 2>&5
27836   ac_status=$?
27837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27838   (exit $ac_status); }; }; then
27839   ac_hi=-1 ac_mid=-1
27840   while :; do
27841     cat >conftest.$ac_ext <<_ACEOF
27842 /* confdefs.h.  */
27843 _ACEOF
27844 cat confdefs.h >>conftest.$ac_ext
27845 cat >>conftest.$ac_ext <<_ACEOF
27846 /* end confdefs.h.  */
27847 $ac_includes_default
27848 int
27849 main ()
27850 {
27851 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
27852 test_array [0] = 0
27853
27854   ;
27855   return 0;
27856 }
27857 _ACEOF
27858 rm -f conftest.$ac_objext
27859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27860   (eval $ac_compile) 2>conftest.er1
27861   ac_status=$?
27862   grep -v '^ *+' conftest.er1 >conftest.err
27863   rm -f conftest.er1
27864   cat conftest.err >&5
27865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27866   (exit $ac_status); } &&
27867          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27869   (eval $ac_try) 2>&5
27870   ac_status=$?
27871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27872   (exit $ac_status); }; } &&
27873          { ac_try='test -s conftest.$ac_objext'
27874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27875   (eval $ac_try) 2>&5
27876   ac_status=$?
27877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27878   (exit $ac_status); }; }; then
27879   ac_lo=$ac_mid; break
27880 else
27881   echo "$as_me: failed program was:" >&5
27882 sed 's/^/| /' conftest.$ac_ext >&5
27883
27884 ac_hi=`expr '(' $ac_mid ')' - 1`
27885                        if test $ac_mid -le $ac_hi; then
27886                          ac_lo= ac_hi=
27887                          break
27888                        fi
27889                        ac_mid=`expr 2 '*' $ac_mid`
27890 fi
27891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27892   done
27893 else
27894   echo "$as_me: failed program was:" >&5
27895 sed 's/^/| /' conftest.$ac_ext >&5
27896
27897 ac_lo= ac_hi=
27898 fi
27899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27900 fi
27901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27902 # Binary search between lo and hi bounds.
27903 while test "x$ac_lo" != "x$ac_hi"; do
27904   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27905   cat >conftest.$ac_ext <<_ACEOF
27906 /* confdefs.h.  */
27907 _ACEOF
27908 cat confdefs.h >>conftest.$ac_ext
27909 cat >>conftest.$ac_ext <<_ACEOF
27910 /* end confdefs.h.  */
27911 $ac_includes_default
27912 int
27913 main ()
27914 {
27915 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
27916 test_array [0] = 0
27917
27918   ;
27919   return 0;
27920 }
27921 _ACEOF
27922 rm -f conftest.$ac_objext
27923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27924   (eval $ac_compile) 2>conftest.er1
27925   ac_status=$?
27926   grep -v '^ *+' conftest.er1 >conftest.err
27927   rm -f conftest.er1
27928   cat conftest.err >&5
27929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27930   (exit $ac_status); } &&
27931          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27933   (eval $ac_try) 2>&5
27934   ac_status=$?
27935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27936   (exit $ac_status); }; } &&
27937          { ac_try='test -s conftest.$ac_objext'
27938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27939   (eval $ac_try) 2>&5
27940   ac_status=$?
27941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27942   (exit $ac_status); }; }; then
27943   ac_hi=$ac_mid
27944 else
27945   echo "$as_me: failed program was:" >&5
27946 sed 's/^/| /' conftest.$ac_ext >&5
27947
27948 ac_lo=`expr '(' $ac_mid ')' + 1`
27949 fi
27950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27951 done
27952 case $ac_lo in
27953 ?*) ac_cv_sizeof_long=$ac_lo;;
27954 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
27955 See \`config.log' for more details." >&5
27956 echo "$as_me: error: cannot compute sizeof (long), 77
27957 See \`config.log' for more details." >&2;}
27958    { (exit 1); exit 1; }; } ;;
27959 esac
27960 else
27961   if test "$cross_compiling" = yes; then
27962   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
27963 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
27964    { (exit 1); exit 1; }; }
27965 else
27966   cat >conftest.$ac_ext <<_ACEOF
27967 /* confdefs.h.  */
27968 _ACEOF
27969 cat confdefs.h >>conftest.$ac_ext
27970 cat >>conftest.$ac_ext <<_ACEOF
27971 /* end confdefs.h.  */
27972 $ac_includes_default
27973 long longval () { return (long) (sizeof (long)); }
27974 unsigned long ulongval () { return (long) (sizeof (long)); }
27975 #include <stdio.h>
27976 #include <stdlib.h>
27977 int
27978 main ()
27979 {
27980
27981   FILE *f = fopen ("conftest.val", "w");
27982   if (! f)
27983     exit (1);
27984   if (((long) (sizeof (long))) < 0)
27985     {
27986       long i = longval ();
27987       if (i != ((long) (sizeof (long))))
27988         exit (1);
27989       fprintf (f, "%ld\n", i);
27990     }
27991   else
27992     {
27993       unsigned long i = ulongval ();
27994       if (i != ((long) (sizeof (long))))
27995         exit (1);
27996       fprintf (f, "%lu\n", i);
27997     }
27998   exit (ferror (f) || fclose (f) != 0);
27999
28000   ;
28001   return 0;
28002 }
28003 _ACEOF
28004 rm -f conftest$ac_exeext
28005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28006   (eval $ac_link) 2>&5
28007   ac_status=$?
28008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28009   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28011   (eval $ac_try) 2>&5
28012   ac_status=$?
28013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28014   (exit $ac_status); }; }; then
28015   ac_cv_sizeof_long=`cat conftest.val`
28016 else
28017   echo "$as_me: program exited with status $ac_status" >&5
28018 echo "$as_me: failed program was:" >&5
28019 sed 's/^/| /' conftest.$ac_ext >&5
28020
28021 ( exit $ac_status )
28022 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
28023 See \`config.log' for more details." >&5
28024 echo "$as_me: error: cannot compute sizeof (long), 77
28025 See \`config.log' for more details." >&2;}
28026    { (exit 1); exit 1; }; }
28027 fi
28028 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28029 fi
28030 fi
28031 rm -f conftest.val
28032 else
28033   ac_cv_sizeof_long=0
28034 fi
28035 fi
28036 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
28037 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
28038 cat >>confdefs.h <<_ACEOF
28039 #define SIZEOF_LONG $ac_cv_sizeof_long
28040 _ACEOF
28041
28042
28043 echo "$as_me:$LINENO: checking for size_t" >&5
28044 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
28045 if test "${ac_cv_type_size_t+set}" = set; then
28046   echo $ECHO_N "(cached) $ECHO_C" >&6
28047 else
28048   cat >conftest.$ac_ext <<_ACEOF
28049 /* confdefs.h.  */
28050 _ACEOF
28051 cat confdefs.h >>conftest.$ac_ext
28052 cat >>conftest.$ac_ext <<_ACEOF
28053 /* end confdefs.h.  */
28054 $ac_includes_default
28055 int
28056 main ()
28057 {
28058 if ((size_t *) 0)
28059   return 0;
28060 if (sizeof (size_t))
28061   return 0;
28062   ;
28063   return 0;
28064 }
28065 _ACEOF
28066 rm -f conftest.$ac_objext
28067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28068   (eval $ac_compile) 2>conftest.er1
28069   ac_status=$?
28070   grep -v '^ *+' conftest.er1 >conftest.err
28071   rm -f conftest.er1
28072   cat conftest.err >&5
28073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28074   (exit $ac_status); } &&
28075          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28077   (eval $ac_try) 2>&5
28078   ac_status=$?
28079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28080   (exit $ac_status); }; } &&
28081          { ac_try='test -s conftest.$ac_objext'
28082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28083   (eval $ac_try) 2>&5
28084   ac_status=$?
28085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28086   (exit $ac_status); }; }; then
28087   ac_cv_type_size_t=yes
28088 else
28089   echo "$as_me: failed program was:" >&5
28090 sed 's/^/| /' conftest.$ac_ext >&5
28091
28092 ac_cv_type_size_t=no
28093 fi
28094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28095 fi
28096 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28097 echo "${ECHO_T}$ac_cv_type_size_t" >&6
28098
28099 echo "$as_me:$LINENO: checking size of size_t" >&5
28100 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
28101 if test "${ac_cv_sizeof_size_t+set}" = set; then
28102   echo $ECHO_N "(cached) $ECHO_C" >&6
28103 else
28104   if test "$ac_cv_type_size_t" = yes; then
28105   # The cast to unsigned long works around a bug in the HP C Compiler
28106   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28107   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28108   # This bug is HP SR number 8606223364.
28109   if test "$cross_compiling" = yes; then
28110   # Depending upon the size, compute the lo and hi bounds.
28111 cat >conftest.$ac_ext <<_ACEOF
28112 /* confdefs.h.  */
28113 _ACEOF
28114 cat confdefs.h >>conftest.$ac_ext
28115 cat >>conftest.$ac_ext <<_ACEOF
28116 /* end confdefs.h.  */
28117 $ac_includes_default
28118 int
28119 main ()
28120 {
28121 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
28122 test_array [0] = 0
28123
28124   ;
28125   return 0;
28126 }
28127 _ACEOF
28128 rm -f conftest.$ac_objext
28129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28130   (eval $ac_compile) 2>conftest.er1
28131   ac_status=$?
28132   grep -v '^ *+' conftest.er1 >conftest.err
28133   rm -f conftest.er1
28134   cat conftest.err >&5
28135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28136   (exit $ac_status); } &&
28137          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28139   (eval $ac_try) 2>&5
28140   ac_status=$?
28141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28142   (exit $ac_status); }; } &&
28143          { ac_try='test -s conftest.$ac_objext'
28144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28145   (eval $ac_try) 2>&5
28146   ac_status=$?
28147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28148   (exit $ac_status); }; }; then
28149   ac_lo=0 ac_mid=0
28150   while :; do
28151     cat >conftest.$ac_ext <<_ACEOF
28152 /* confdefs.h.  */
28153 _ACEOF
28154 cat confdefs.h >>conftest.$ac_ext
28155 cat >>conftest.$ac_ext <<_ACEOF
28156 /* end confdefs.h.  */
28157 $ac_includes_default
28158 int
28159 main ()
28160 {
28161 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
28162 test_array [0] = 0
28163
28164   ;
28165   return 0;
28166 }
28167 _ACEOF
28168 rm -f conftest.$ac_objext
28169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28170   (eval $ac_compile) 2>conftest.er1
28171   ac_status=$?
28172   grep -v '^ *+' conftest.er1 >conftest.err
28173   rm -f conftest.er1
28174   cat conftest.err >&5
28175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28176   (exit $ac_status); } &&
28177          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28179   (eval $ac_try) 2>&5
28180   ac_status=$?
28181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28182   (exit $ac_status); }; } &&
28183          { ac_try='test -s conftest.$ac_objext'
28184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28185   (eval $ac_try) 2>&5
28186   ac_status=$?
28187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28188   (exit $ac_status); }; }; then
28189   ac_hi=$ac_mid; break
28190 else
28191   echo "$as_me: failed program was:" >&5
28192 sed 's/^/| /' conftest.$ac_ext >&5
28193
28194 ac_lo=`expr $ac_mid + 1`
28195                     if test $ac_lo -le $ac_mid; then
28196                       ac_lo= ac_hi=
28197                       break
28198                     fi
28199                     ac_mid=`expr 2 '*' $ac_mid + 1`
28200 fi
28201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28202   done
28203 else
28204   echo "$as_me: failed program was:" >&5
28205 sed 's/^/| /' conftest.$ac_ext >&5
28206
28207 cat >conftest.$ac_ext <<_ACEOF
28208 /* confdefs.h.  */
28209 _ACEOF
28210 cat confdefs.h >>conftest.$ac_ext
28211 cat >>conftest.$ac_ext <<_ACEOF
28212 /* end confdefs.h.  */
28213 $ac_includes_default
28214 int
28215 main ()
28216 {
28217 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
28218 test_array [0] = 0
28219
28220   ;
28221   return 0;
28222 }
28223 _ACEOF
28224 rm -f conftest.$ac_objext
28225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28226   (eval $ac_compile) 2>conftest.er1
28227   ac_status=$?
28228   grep -v '^ *+' conftest.er1 >conftest.err
28229   rm -f conftest.er1
28230   cat conftest.err >&5
28231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28232   (exit $ac_status); } &&
28233          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28235   (eval $ac_try) 2>&5
28236   ac_status=$?
28237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28238   (exit $ac_status); }; } &&
28239          { ac_try='test -s conftest.$ac_objext'
28240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28241   (eval $ac_try) 2>&5
28242   ac_status=$?
28243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28244   (exit $ac_status); }; }; then
28245   ac_hi=-1 ac_mid=-1
28246   while :; do
28247     cat >conftest.$ac_ext <<_ACEOF
28248 /* confdefs.h.  */
28249 _ACEOF
28250 cat confdefs.h >>conftest.$ac_ext
28251 cat >>conftest.$ac_ext <<_ACEOF
28252 /* end confdefs.h.  */
28253 $ac_includes_default
28254 int
28255 main ()
28256 {
28257 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
28258 test_array [0] = 0
28259
28260   ;
28261   return 0;
28262 }
28263 _ACEOF
28264 rm -f conftest.$ac_objext
28265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28266   (eval $ac_compile) 2>conftest.er1
28267   ac_status=$?
28268   grep -v '^ *+' conftest.er1 >conftest.err
28269   rm -f conftest.er1
28270   cat conftest.err >&5
28271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28272   (exit $ac_status); } &&
28273          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28275   (eval $ac_try) 2>&5
28276   ac_status=$?
28277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28278   (exit $ac_status); }; } &&
28279          { ac_try='test -s conftest.$ac_objext'
28280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28281   (eval $ac_try) 2>&5
28282   ac_status=$?
28283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28284   (exit $ac_status); }; }; then
28285   ac_lo=$ac_mid; break
28286 else
28287   echo "$as_me: failed program was:" >&5
28288 sed 's/^/| /' conftest.$ac_ext >&5
28289
28290 ac_hi=`expr '(' $ac_mid ')' - 1`
28291                        if test $ac_mid -le $ac_hi; then
28292                          ac_lo= ac_hi=
28293                          break
28294                        fi
28295                        ac_mid=`expr 2 '*' $ac_mid`
28296 fi
28297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28298   done
28299 else
28300   echo "$as_me: failed program was:" >&5
28301 sed 's/^/| /' conftest.$ac_ext >&5
28302
28303 ac_lo= ac_hi=
28304 fi
28305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28306 fi
28307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28308 # Binary search between lo and hi bounds.
28309 while test "x$ac_lo" != "x$ac_hi"; do
28310   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28311   cat >conftest.$ac_ext <<_ACEOF
28312 /* confdefs.h.  */
28313 _ACEOF
28314 cat confdefs.h >>conftest.$ac_ext
28315 cat >>conftest.$ac_ext <<_ACEOF
28316 /* end confdefs.h.  */
28317 $ac_includes_default
28318 int
28319 main ()
28320 {
28321 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
28322 test_array [0] = 0
28323
28324   ;
28325   return 0;
28326 }
28327 _ACEOF
28328 rm -f conftest.$ac_objext
28329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28330   (eval $ac_compile) 2>conftest.er1
28331   ac_status=$?
28332   grep -v '^ *+' conftest.er1 >conftest.err
28333   rm -f conftest.er1
28334   cat conftest.err >&5
28335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28336   (exit $ac_status); } &&
28337          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28339   (eval $ac_try) 2>&5
28340   ac_status=$?
28341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28342   (exit $ac_status); }; } &&
28343          { ac_try='test -s conftest.$ac_objext'
28344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28345   (eval $ac_try) 2>&5
28346   ac_status=$?
28347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28348   (exit $ac_status); }; }; then
28349   ac_hi=$ac_mid
28350 else
28351   echo "$as_me: failed program was:" >&5
28352 sed 's/^/| /' conftest.$ac_ext >&5
28353
28354 ac_lo=`expr '(' $ac_mid ')' + 1`
28355 fi
28356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28357 done
28358 case $ac_lo in
28359 ?*) ac_cv_sizeof_size_t=$ac_lo;;
28360 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
28361 See \`config.log' for more details." >&5
28362 echo "$as_me: error: cannot compute sizeof (size_t), 77
28363 See \`config.log' for more details." >&2;}
28364    { (exit 1); exit 1; }; } ;;
28365 esac
28366 else
28367   if test "$cross_compiling" = yes; then
28368   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
28369 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
28370    { (exit 1); exit 1; }; }
28371 else
28372   cat >conftest.$ac_ext <<_ACEOF
28373 /* confdefs.h.  */
28374 _ACEOF
28375 cat confdefs.h >>conftest.$ac_ext
28376 cat >>conftest.$ac_ext <<_ACEOF
28377 /* end confdefs.h.  */
28378 $ac_includes_default
28379 long longval () { return (long) (sizeof (size_t)); }
28380 unsigned long ulongval () { return (long) (sizeof (size_t)); }
28381 #include <stdio.h>
28382 #include <stdlib.h>
28383 int
28384 main ()
28385 {
28386
28387   FILE *f = fopen ("conftest.val", "w");
28388   if (! f)
28389     exit (1);
28390   if (((long) (sizeof (size_t))) < 0)
28391     {
28392       long i = longval ();
28393       if (i != ((long) (sizeof (size_t))))
28394         exit (1);
28395       fprintf (f, "%ld\n", i);
28396     }
28397   else
28398     {
28399       unsigned long i = ulongval ();
28400       if (i != ((long) (sizeof (size_t))))
28401         exit (1);
28402       fprintf (f, "%lu\n", i);
28403     }
28404   exit (ferror (f) || fclose (f) != 0);
28405
28406   ;
28407   return 0;
28408 }
28409 _ACEOF
28410 rm -f conftest$ac_exeext
28411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28412   (eval $ac_link) 2>&5
28413   ac_status=$?
28414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28415   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28417   (eval $ac_try) 2>&5
28418   ac_status=$?
28419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28420   (exit $ac_status); }; }; then
28421   ac_cv_sizeof_size_t=`cat conftest.val`
28422 else
28423   echo "$as_me: program exited with status $ac_status" >&5
28424 echo "$as_me: failed program was:" >&5
28425 sed 's/^/| /' conftest.$ac_ext >&5
28426
28427 ( exit $ac_status )
28428 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
28429 See \`config.log' for more details." >&5
28430 echo "$as_me: error: cannot compute sizeof (size_t), 77
28431 See \`config.log' for more details." >&2;}
28432    { (exit 1); exit 1; }; }
28433 fi
28434 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28435 fi
28436 fi
28437 rm -f conftest.val
28438 else
28439   ac_cv_sizeof_size_t=0
28440 fi
28441 fi
28442 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
28443 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
28444 cat >>confdefs.h <<_ACEOF
28445 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
28446 _ACEOF
28447
28448
28449
28450
28451 cat >>confdefs.h <<_ACEOF
28452 #define NFS_STATEDIR "$statedir"
28453 _ACEOF
28454
28455
28456 if test "x$cross_compiling" = "xno"; then
28457         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
28458         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
28459         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
28460         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
28461 else
28462         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
28463         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
28464         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
28465         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
28466 fi
28467
28468
28469
28470
28471
28472
28473
28474
28475
28476
28477
28478 case $host in
28479   alpha*)
28480     ARCHFLAGS="-mno-fp-regs -ffixed-8" ;;
28481   *)
28482     ARCHFLAGS="" ;;
28483 esac
28484
28485 my_am_cflags="-Wall $ARCHFLAGS -pipe"
28486
28487 AM_CPPFLAGS="-I\${top_srcdir}/support/include -D_FILE_OFFSET_BITS=64"
28488
28489 AM_CFLAGS="$my_am_cflags"
28490
28491
28492 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
28493 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
28494
28495
28496                                                                                                                                                                                                                                                                                                                       ac_config_files="$ac_config_files Makefile linux-nfs/Makefile support/Makefile support/export/Makefile support/include/nfs/Makefile support/include/rpcsvc/Makefile support/include/sys/fs/Makefile support/include/sys/Makefile support/include/Makefile support/misc/Makefile support/nfs/Makefile tools/Makefile tools/getiversion/Makefile tools/getkversion/Makefile tools/locktest/Makefile tools/nlmtest/Makefile tools/rpcdebug/Makefile tools/rpcgen/Makefile utils/Makefile utils/exportfs/Makefile utils/gssd/Makefile utils/idmapd/Makefile utils/lockd/Makefile utils/mountd/Makefile utils/nfsd/Makefile utils/nfsstat/Makefile utils/nhfsstone/Makefile utils/rquotad/Makefile utils/showmount/Makefile utils/statd/Makefile utils/svcgssd/Makefile"
28497
28498 cat >confcache <<\_ACEOF
28499 # This file is a shell script that caches the results of configure
28500 # tests run on this system so they can be shared between configure
28501 # scripts and configure runs, see configure's option --config-cache.
28502 # It is not useful on other systems.  If it contains results you don't
28503 # want to keep, you may remove or edit it.
28504 #
28505 # config.status only pays attention to the cache file if you give it
28506 # the --recheck option to rerun configure.
28507 #
28508 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28509 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28510 # following values.
28511
28512 _ACEOF
28513
28514 # The following way of writing the cache mishandles newlines in values,
28515 # but we know of no workaround that is simple, portable, and efficient.
28516 # So, don't put newlines in cache variables' values.
28517 # Ultrix sh set writes to stderr and can't be redirected directly,
28518 # and sets the high bit in the cache file unless we assign to the vars.
28519 {
28520   (set) 2>&1 |
28521     case `(ac_space=' '; set | grep ac_space) 2>&1` in
28522     *ac_space=\ *)
28523       # `set' does not quote correctly, so add quotes (double-quote
28524       # substitution turns \\\\ into \\, and sed turns \\ into \).
28525       sed -n \
28526         "s/'/'\\\\''/g;
28527           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28528       ;;
28529     *)
28530       # `set' quotes correctly as required by POSIX, so do not add quotes.
28531       sed -n \
28532         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
28533       ;;
28534     esac;
28535 } |
28536   sed '
28537      t clear
28538      : clear
28539      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28540      t end
28541      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28542      : end' >>confcache
28543 if diff $cache_file confcache >/dev/null 2>&1; then :; else
28544   if test -w $cache_file; then
28545     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
28546     cat confcache >$cache_file
28547   else
28548     echo "not updating unwritable cache $cache_file"
28549   fi
28550 fi
28551 rm -f confcache
28552
28553 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28554 # Let make expand exec_prefix.
28555 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28556
28557 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28558 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28559 # trailing colons and then remove the whole line if VPATH becomes empty
28560 # (actually we leave an empty line to preserve line numbers).
28561 if test "x$srcdir" = x.; then
28562   ac_vpsub='/^[  ]*VPATH[        ]*=/{
28563 s/:*\$(srcdir):*/:/;
28564 s/:*\${srcdir}:*/:/;
28565 s/:*@srcdir@:*/:/;
28566 s/^\([^=]*=[     ]*\):*/\1/;
28567 s/:*$//;
28568 s/^[^=]*=[       ]*$//;
28569 }'
28570 fi
28571
28572 DEFS=-DHAVE_CONFIG_H
28573
28574 ac_libobjs=
28575 ac_ltlibobjs=
28576 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28577   # 1. Remove the extension, and $U if already installed.
28578   ac_i=`echo "$ac_i" |
28579          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
28580   # 2. Add them.
28581   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
28582   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
28583 done
28584 LIBOBJS=$ac_libobjs
28585
28586 LTLIBOBJS=$ac_ltlibobjs
28587
28588
28589 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
28590   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_NFSV4\" was never defined.
28591 Usually this means the macro was only invoked conditionally." >&5
28592 echo "$as_me: error: conditional \"CONFIG_NFSV4\" was never defined.
28593 Usually this means the macro was only invoked conditionally." >&2;}
28594    { (exit 1); exit 1; }; }
28595 fi
28596 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
28597   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_GSS\" was never defined.
28598 Usually this means the macro was only invoked conditionally." >&5
28599 echo "$as_me: error: conditional \"CONFIG_GSS\" was never defined.
28600 Usually this means the macro was only invoked conditionally." >&2;}
28601    { (exit 1); exit 1; }; }
28602 fi
28603 if test -z "${CONFIG_RQUOTAD_TRUE}" && test -z "${CONFIG_RQUOTAD_FALSE}"; then
28604   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_RQUOTAD\" was never defined.
28605 Usually this means the macro was only invoked conditionally." >&5
28606 echo "$as_me: error: conditional \"CONFIG_RQUOTAD\" was never defined.
28607 Usually this means the macro was only invoked conditionally." >&2;}
28608    { (exit 1); exit 1; }; }
28609 fi
28610 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28611   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
28612 Usually this means the macro was only invoked conditionally." >&5
28613 echo "$as_me: error: conditional \"AMDEP\" was never defined.
28614 Usually this means the macro was only invoked conditionally." >&2;}
28615    { (exit 1); exit 1; }; }
28616 fi
28617 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28618   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28619 Usually this means the macro was only invoked conditionally." >&5
28620 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28621 Usually this means the macro was only invoked conditionally." >&2;}
28622    { (exit 1); exit 1; }; }
28623 fi
28624 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
28625   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
28626 Usually this means the macro was only invoked conditionally." >&5
28627 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
28628 Usually this means the macro was only invoked conditionally." >&2;}
28629    { (exit 1); exit 1; }; }
28630 fi
28631 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28632   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28633 Usually this means the macro was only invoked conditionally." >&5
28634 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28635 Usually this means the macro was only invoked conditionally." >&2;}
28636    { (exit 1); exit 1; }; }
28637 fi
28638
28639 : ${CONFIG_STATUS=./config.status}
28640 ac_clean_files_save=$ac_clean_files
28641 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28642 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28643 echo "$as_me: creating $CONFIG_STATUS" >&6;}
28644 cat >$CONFIG_STATUS <<_ACEOF
28645 #! $SHELL
28646 # Generated by $as_me.
28647 # Run this file to recreate the current configuration.
28648 # Compiler output produced by configure, useful for debugging
28649 # configure, is in config.log if it exists.
28650
28651 debug=false
28652 ac_cs_recheck=false
28653 ac_cs_silent=false
28654 SHELL=\${CONFIG_SHELL-$SHELL}
28655 _ACEOF
28656
28657 cat >>$CONFIG_STATUS <<\_ACEOF
28658 ## --------------------- ##
28659 ## M4sh Initialization.  ##
28660 ## --------------------- ##
28661
28662 # Be Bourne compatible
28663 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28664   emulate sh
28665   NULLCMD=:
28666   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28667   # is contrary to our usage.  Disable this feature.
28668   alias -g '${1+"$@"}'='"$@"'
28669 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28670   set -o posix
28671 fi
28672 DUALCASE=1; export DUALCASE # for MKS sh
28673
28674 # Support unset when possible.
28675 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28676   as_unset=unset
28677 else
28678   as_unset=false
28679 fi
28680
28681
28682 # Work around bugs in pre-3.0 UWIN ksh.
28683 $as_unset ENV MAIL MAILPATH
28684 PS1='$ '
28685 PS2='> '
28686 PS4='+ '
28687
28688 # NLS nuisances.
28689 for as_var in \
28690   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
28691   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
28692   LC_TELEPHONE LC_TIME
28693 do
28694   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
28695     eval $as_var=C; export $as_var
28696   else
28697     $as_unset $as_var
28698   fi
28699 done
28700
28701 # Required to use basename.
28702 if expr a : '\(a\)' >/dev/null 2>&1; then
28703   as_expr=expr
28704 else
28705   as_expr=false
28706 fi
28707
28708 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
28709   as_basename=basename
28710 else
28711   as_basename=false
28712 fi
28713
28714
28715 # Name of the executable.
28716 as_me=`$as_basename "$0" ||
28717 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28718          X"$0" : 'X\(//\)$' \| \
28719          X"$0" : 'X\(/\)$' \| \
28720          .     : '\(.\)' 2>/dev/null ||
28721 echo X/"$0" |
28722     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
28723           /^X\/\(\/\/\)$/{ s//\1/; q; }
28724           /^X\/\(\/\).*/{ s//\1/; q; }
28725           s/.*/./; q'`
28726
28727
28728 # PATH needs CR, and LINENO needs CR and PATH.
28729 # Avoid depending upon Character Ranges.
28730 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28731 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28732 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28733 as_cr_digits='0123456789'
28734 as_cr_alnum=$as_cr_Letters$as_cr_digits
28735
28736 # The user is always right.
28737 if test "${PATH_SEPARATOR+set}" != set; then
28738   echo "#! /bin/sh" >conf$$.sh
28739   echo  "exit 0"   >>conf$$.sh
28740   chmod +x conf$$.sh
28741   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
28742     PATH_SEPARATOR=';'
28743   else
28744     PATH_SEPARATOR=:
28745   fi
28746   rm -f conf$$.sh
28747 fi
28748
28749
28750   as_lineno_1=$LINENO
28751   as_lineno_2=$LINENO
28752   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28753   test "x$as_lineno_1" != "x$as_lineno_2" &&
28754   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
28755   # Find who we are.  Look in the path if we contain no path at all
28756   # relative or not.
28757   case $0 in
28758     *[\\/]* ) as_myself=$0 ;;
28759     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28760 for as_dir in $PATH
28761 do
28762   IFS=$as_save_IFS
28763   test -z "$as_dir" && as_dir=.
28764   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28765 done
28766
28767        ;;
28768   esac
28769   # We did not find ourselves, most probably we were run as `sh COMMAND'
28770   # in which case we are not to be found in the path.
28771   if test "x$as_myself" = x; then
28772     as_myself=$0
28773   fi
28774   if test ! -f "$as_myself"; then
28775     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
28776 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
28777    { (exit 1); exit 1; }; }
28778   fi
28779   case $CONFIG_SHELL in
28780   '')
28781     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28782 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
28783 do
28784   IFS=$as_save_IFS
28785   test -z "$as_dir" && as_dir=.
28786   for as_base in sh bash ksh sh5; do
28787          case $as_dir in
28788          /*)
28789            if ("$as_dir/$as_base" -c '
28790   as_lineno_1=$LINENO
28791   as_lineno_2=$LINENO
28792   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28793   test "x$as_lineno_1" != "x$as_lineno_2" &&
28794   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
28795              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
28796              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
28797              CONFIG_SHELL=$as_dir/$as_base
28798              export CONFIG_SHELL
28799              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
28800            fi;;
28801          esac
28802        done
28803 done
28804 ;;
28805   esac
28806
28807   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28808   # uniformly replaced by the line number.  The first 'sed' inserts a
28809   # line-number line before each line; the second 'sed' does the real
28810   # work.  The second script uses 'N' to pair each line-number line
28811   # with the numbered line, and appends trailing '-' during
28812   # substitution so that $LINENO is not a special case at line end.
28813   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28814   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
28815   sed '=' <$as_myself |
28816     sed '
28817       N
28818       s,$,-,
28819       : loop
28820       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
28821       t loop
28822       s,-$,,
28823       s,^['$as_cr_digits']*\n,,
28824     ' >$as_me.lineno &&
28825   chmod +x $as_me.lineno ||
28826     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
28827 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
28828    { (exit 1); exit 1; }; }
28829
28830   # Don't try to exec as it changes $[0], causing all sort of problems
28831   # (the dirname of $[0] is not the place where we might find the
28832   # original and so on.  Autoconf is especially sensible to this).
28833   . ./$as_me.lineno
28834   # Exit status is that of the last command.
28835   exit
28836 }
28837
28838
28839 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
28840   *c*,-n*) ECHO_N= ECHO_C='
28841 ' ECHO_T='      ' ;;
28842   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
28843   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
28844 esac
28845
28846 if expr a : '\(a\)' >/dev/null 2>&1; then
28847   as_expr=expr
28848 else
28849   as_expr=false
28850 fi
28851
28852 rm -f conf$$ conf$$.exe conf$$.file
28853 echo >conf$$.file
28854 if ln -s conf$$.file conf$$ 2>/dev/null; then
28855   # We could just check for DJGPP; but this test a) works b) is more generic
28856   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
28857   if test -f conf$$.exe; then
28858     # Don't use ln at all; we don't have any links
28859     as_ln_s='cp -p'
28860   else
28861     as_ln_s='ln -s'
28862   fi
28863 elif ln conf$$.file conf$$ 2>/dev/null; then
28864   as_ln_s=ln
28865 else
28866   as_ln_s='cp -p'
28867 fi
28868 rm -f conf$$ conf$$.exe conf$$.file
28869
28870 if mkdir -p . 2>/dev/null; then
28871   as_mkdir_p=:
28872 else
28873   test -d ./-p && rmdir ./-p
28874   as_mkdir_p=false
28875 fi
28876
28877 as_executable_p="test -f"
28878
28879 # Sed expression to map a string onto a valid CPP name.
28880 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28881
28882 # Sed expression to map a string onto a valid variable name.
28883 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28884
28885
28886 # IFS
28887 # We need space, tab and new line, in precisely that order.
28888 as_nl='
28889 '
28890 IFS="   $as_nl"
28891
28892 # CDPATH.
28893 $as_unset CDPATH
28894
28895 exec 6>&1
28896
28897 # Open the log real soon, to keep \$[0] and so on meaningful, and to
28898 # report actual input values of CONFIG_FILES etc. instead of their
28899 # values after options handling.  Logging --version etc. is OK.
28900 exec 5>>config.log
28901 {
28902   echo
28903   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28904 ## Running $as_me. ##
28905 _ASBOX
28906 } >&5
28907 cat >&5 <<_CSEOF
28908
28909 This file was extended by linux nfs-utils $as_me 1.0.8-rc2, which was
28910 generated by GNU Autoconf 2.59.  Invocation command line was
28911
28912   CONFIG_FILES    = $CONFIG_FILES
28913   CONFIG_HEADERS  = $CONFIG_HEADERS
28914   CONFIG_LINKS    = $CONFIG_LINKS
28915   CONFIG_COMMANDS = $CONFIG_COMMANDS
28916   $ $0 $@
28917
28918 _CSEOF
28919 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
28920 echo >&5
28921 _ACEOF
28922
28923 # Files that config.status was made for.
28924 if test -n "$ac_config_files"; then
28925   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
28926 fi
28927
28928 if test -n "$ac_config_headers"; then
28929   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
28930 fi
28931
28932 if test -n "$ac_config_links"; then
28933   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
28934 fi
28935
28936 if test -n "$ac_config_commands"; then
28937   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
28938 fi
28939
28940 cat >>$CONFIG_STATUS <<\_ACEOF
28941
28942 ac_cs_usage="\
28943 \`$as_me' instantiates files from templates according to the
28944 current configuration.
28945
28946 Usage: $0 [OPTIONS] [FILE]...
28947
28948   -h, --help       print this help, then exit
28949   -V, --version    print version number, then exit
28950   -q, --quiet      do not print progress messages
28951   -d, --debug      don't remove temporary files
28952       --recheck    update $as_me by reconfiguring in the same conditions
28953   --file=FILE[:TEMPLATE]
28954                    instantiate the configuration file FILE
28955   --header=FILE[:TEMPLATE]
28956                    instantiate the configuration header FILE
28957
28958 Configuration files:
28959 $config_files
28960
28961 Configuration headers:
28962 $config_headers
28963
28964 Configuration commands:
28965 $config_commands
28966
28967 Report bugs to <bug-autoconf@gnu.org>."
28968 _ACEOF
28969
28970 cat >>$CONFIG_STATUS <<_ACEOF
28971 ac_cs_version="\\
28972 linux nfs-utils config.status 1.0.8-rc2
28973 configured by $0, generated by GNU Autoconf 2.59,
28974   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
28975
28976 Copyright (C) 2003 Free Software Foundation, Inc.
28977 This config.status script is free software; the Free Software Foundation
28978 gives unlimited permission to copy, distribute and modify it."
28979 srcdir=$srcdir
28980 INSTALL="$INSTALL"
28981 _ACEOF
28982
28983 cat >>$CONFIG_STATUS <<\_ACEOF
28984 # If no file are specified by the user, then we need to provide default
28985 # value.  By we need to know if files were specified by the user.
28986 ac_need_defaults=:
28987 while test $# != 0
28988 do
28989   case $1 in
28990   --*=*)
28991     ac_option=`expr "x$1" : 'x\([^=]*\)='`
28992     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
28993     ac_shift=:
28994     ;;
28995   -*)
28996     ac_option=$1
28997     ac_optarg=$2
28998     ac_shift=shift
28999     ;;
29000   *) # This is not an option, so the user has probably given explicit
29001      # arguments.
29002      ac_option=$1
29003      ac_need_defaults=false;;
29004   esac
29005
29006   case $ac_option in
29007   # Handling of the options.
29008 _ACEOF
29009 cat >>$CONFIG_STATUS <<\_ACEOF
29010   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29011     ac_cs_recheck=: ;;
29012   --version | --vers* | -V )
29013     echo "$ac_cs_version"; exit 0 ;;
29014   --he | --h)
29015     # Conflict between --help and --header
29016     { { echo "$as_me:$LINENO: error: ambiguous option: $1
29017 Try \`$0 --help' for more information." >&5
29018 echo "$as_me: error: ambiguous option: $1
29019 Try \`$0 --help' for more information." >&2;}
29020    { (exit 1); exit 1; }; };;
29021   --help | --hel | -h )
29022     echo "$ac_cs_usage"; exit 0 ;;
29023   --debug | --d* | -d )
29024     debug=: ;;
29025   --file | --fil | --fi | --f )
29026     $ac_shift
29027     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
29028     ac_need_defaults=false;;
29029   --header | --heade | --head | --hea )
29030     $ac_shift
29031     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
29032     ac_need_defaults=false;;
29033   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29034   | -silent | --silent | --silen | --sile | --sil | --si | --s)
29035     ac_cs_silent=: ;;
29036
29037   # This is an error.
29038   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
29039 Try \`$0 --help' for more information." >&5
29040 echo "$as_me: error: unrecognized option: $1
29041 Try \`$0 --help' for more information." >&2;}
29042    { (exit 1); exit 1; }; } ;;
29043
29044   *) ac_config_targets="$ac_config_targets $1" ;;
29045
29046   esac
29047   shift
29048 done
29049
29050 ac_configure_extra_args=
29051
29052 if $ac_cs_silent; then
29053   exec 6>/dev/null
29054   ac_configure_extra_args="$ac_configure_extra_args --silent"
29055 fi
29056
29057 _ACEOF
29058 cat >>$CONFIG_STATUS <<_ACEOF
29059 if \$ac_cs_recheck; then
29060   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
29061   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29062 fi
29063
29064 _ACEOF
29065
29066 cat >>$CONFIG_STATUS <<_ACEOF
29067 #
29068 # INIT-COMMANDS section.
29069 #
29070
29071 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29072
29073 _ACEOF
29074
29075
29076
29077 cat >>$CONFIG_STATUS <<\_ACEOF
29078 for ac_config_target in $ac_config_targets
29079 do
29080   case "$ac_config_target" in
29081   # Handling of arguments.
29082   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29083   "linux-nfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
29084   "support/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
29085   "support/export/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
29086   "support/include/nfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
29087   "support/include/rpcsvc/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
29088   "support/include/sys/fs/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
29089   "support/include/sys/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
29090   "support/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
29091   "support/misc/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
29092   "support/nfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
29093   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
29094   "tools/getiversion/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/getiversion/Makefile" ;;
29095   "tools/getkversion/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/getkversion/Makefile" ;;
29096   "tools/locktest/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
29097   "tools/nlmtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
29098   "tools/rpcdebug/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
29099   "tools/rpcgen/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
29100   "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
29101   "utils/exportfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
29102   "utils/gssd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
29103   "utils/idmapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
29104   "utils/lockd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/lockd/Makefile" ;;
29105   "utils/mountd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
29106   "utils/nfsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
29107   "utils/nfsstat/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
29108   "utils/nhfsstone/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/nhfsstone/Makefile" ;;
29109   "utils/rquotad/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/rquotad/Makefile" ;;
29110   "utils/showmount/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
29111   "utils/statd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
29112   "utils/svcgssd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/svcgssd/Makefile" ;;
29113   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29114   "support/include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
29115   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29116 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29117    { (exit 1); exit 1; }; };;
29118   esac
29119 done
29120
29121 # If the user did not use the arguments to specify the items to instantiate,
29122 # then the envvar interface is used.  Set only those that are not.
29123 # We use the long form for the default assignment because of an extremely
29124 # bizarre bug on SunOS 4.1.3.
29125 if $ac_need_defaults; then
29126   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29127   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29128   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29129 fi
29130
29131 # Have a temporary directory for convenience.  Make it in the build tree
29132 # simply because there is no reason to put it here, and in addition,
29133 # creating and moving files from /tmp can sometimes cause problems.
29134 # Create a temporary directory, and hook for its removal unless debugging.
29135 $debug ||
29136 {
29137   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
29138   trap '{ (exit 1); exit 1; }' 1 2 13 15
29139 }
29140
29141 # Create a (secure) tmp directory for tmp files.
29142
29143 {
29144   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
29145   test -n "$tmp" && test -d "$tmp"
29146 }  ||
29147 {
29148   tmp=./confstat$$-$RANDOM
29149   (umask 077 && mkdir $tmp)
29150 } ||
29151 {
29152    echo "$me: cannot create a temporary directory in ." >&2
29153    { (exit 1); exit 1; }
29154 }
29155
29156 _ACEOF
29157
29158 cat >>$CONFIG_STATUS <<_ACEOF
29159
29160 #
29161 # CONFIG_FILES section.
29162 #
29163
29164 # No need to generate the scripts if there are no CONFIG_FILES.
29165 # This happens for instance when ./config.status config.h
29166 if test -n "\$CONFIG_FILES"; then
29167   # Protect against being on the right side of a sed subst in config.status.
29168   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
29169    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
29170 s,@SHELL@,$SHELL,;t t
29171 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
29172 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
29173 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
29174 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
29175 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
29176 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
29177 s,@exec_prefix@,$exec_prefix,;t t
29178 s,@prefix@,$prefix,;t t
29179 s,@program_transform_name@,$program_transform_name,;t t
29180 s,@bindir@,$bindir,;t t
29181 s,@sbindir@,$sbindir,;t t
29182 s,@libexecdir@,$libexecdir,;t t
29183 s,@datadir@,$datadir,;t t
29184 s,@sysconfdir@,$sysconfdir,;t t
29185 s,@sharedstatedir@,$sharedstatedir,;t t
29186 s,@localstatedir@,$localstatedir,;t t
29187 s,@libdir@,$libdir,;t t
29188 s,@includedir@,$includedir,;t t
29189 s,@oldincludedir@,$oldincludedir,;t t
29190 s,@infodir@,$infodir,;t t
29191 s,@mandir@,$mandir,;t t
29192 s,@build_alias@,$build_alias,;t t
29193 s,@host_alias@,$host_alias,;t t
29194 s,@target_alias@,$target_alias,;t t
29195 s,@DEFS@,$DEFS,;t t
29196 s,@ECHO_C@,$ECHO_C,;t t
29197 s,@ECHO_N@,$ECHO_N,;t t
29198 s,@ECHO_T@,$ECHO_T,;t t
29199 s,@LIBS@,$LIBS,;t t
29200 s,@build@,$build,;t t
29201 s,@build_cpu@,$build_cpu,;t t
29202 s,@build_vendor@,$build_vendor,;t t
29203 s,@build_os@,$build_os,;t t
29204 s,@host@,$host,;t t
29205 s,@host_cpu@,$host_cpu,;t t
29206 s,@host_vendor@,$host_vendor,;t t
29207 s,@host_os@,$host_os,;t t
29208 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
29209 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
29210 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
29211 s,@CYGPATH_W@,$CYGPATH_W,;t t
29212 s,@PACKAGE@,$PACKAGE,;t t
29213 s,@VERSION@,$VERSION,;t t
29214 s,@ACLOCAL@,$ACLOCAL,;t t
29215 s,@AUTOCONF@,$AUTOCONF,;t t
29216 s,@AUTOMAKE@,$AUTOMAKE,;t t
29217 s,@AUTOHEADER@,$AUTOHEADER,;t t
29218 s,@MAKEINFO@,$MAKEINFO,;t t
29219 s,@install_sh@,$install_sh,;t t
29220 s,@STRIP@,$STRIP,;t t
29221 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
29222 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
29223 s,@mkdir_p@,$mkdir_p,;t t
29224 s,@AWK@,$AWK,;t t
29225 s,@SET_MAKE@,$SET_MAKE,;t t
29226 s,@am__leading_dot@,$am__leading_dot,;t t
29227 s,@AMTAR@,$AMTAR,;t t
29228 s,@am__tar@,$am__tar,;t t
29229 s,@am__untar@,$am__untar,;t t
29230 s,@RELEASE@,$RELEASE,;t t
29231 s,@statedir@,$statedir,;t t
29232 s,@statduser@,$statduser,;t t
29233 s,@enable_nfsv3@,$enable_nfsv3,;t t
29234 s,@IDMAPD@,$IDMAPD,;t t
29235 s,@enable_nfsv4@,$enable_nfsv4,;t t
29236 s,@CONFIG_NFSV4_TRUE@,$CONFIG_NFSV4_TRUE,;t t
29237 s,@CONFIG_NFSV4_FALSE@,$CONFIG_NFSV4_FALSE,;t t
29238 s,@GSSD@,$GSSD,;t t
29239 s,@SVCGSSD@,$SVCGSSD,;t t
29240 s,@enable_gss@,$enable_gss,;t t
29241 s,@CONFIG_GSS_TRUE@,$CONFIG_GSS_TRUE,;t t
29242 s,@CONFIG_GSS_FALSE@,$CONFIG_GSS_FALSE,;t t
29243 s,@kprefix@,$kprefix,;t t
29244 s,@secure_statd@,$secure_statd,;t t
29245 s,@CONFIG_RQUOTAD_TRUE@,$CONFIG_RQUOTAD_TRUE,;t t
29246 s,@CONFIG_RQUOTAD_FALSE@,$CONFIG_RQUOTAD_FALSE,;t t
29247 s,@CC@,$CC,;t t
29248 s,@CFLAGS@,$CFLAGS,;t t
29249 s,@LDFLAGS@,$LDFLAGS,;t t
29250 s,@CPPFLAGS@,$CPPFLAGS,;t t
29251 s,@ac_ct_CC@,$ac_ct_CC,;t t
29252 s,@EXEEXT@,$EXEEXT,;t t
29253 s,@OBJEXT@,$OBJEXT,;t t
29254 s,@DEPDIR@,$DEPDIR,;t t
29255 s,@am__include@,$am__include,;t t
29256 s,@am__quote@,$am__quote,;t t
29257 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
29258 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
29259 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
29260 s,@CCDEPMODE@,$CCDEPMODE,;t t
29261 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
29262 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
29263 s,@LIBWRAP@,$LIBWRAP,;t t
29264 s,@CXX@,$CXX,;t t
29265 s,@CXXFLAGS@,$CXXFLAGS,;t t
29266 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
29267 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
29268 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
29269 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
29270 s,@CPP@,$CPP,;t t
29271 s,@LN_S@,$LN_S,;t t
29272 s,@EGREP@,$EGREP,;t t
29273 s,@ECHO@,$ECHO,;t t
29274 s,@AR@,$AR,;t t
29275 s,@ac_ct_AR@,$ac_ct_AR,;t t
29276 s,@RANLIB@,$RANLIB,;t t
29277 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
29278 s,@CXXCPP@,$CXXCPP,;t t
29279 s,@F77@,$F77,;t t
29280 s,@FFLAGS@,$FFLAGS,;t t
29281 s,@ac_ct_F77@,$ac_ct_F77,;t t
29282 s,@LIBTOOL@,$LIBTOOL,;t t
29283 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
29284 s,@LD@,$LD,;t t
29285 s,@ac_ct_LD@,$ac_ct_LD,;t t
29286 s,@LIBSOCKET@,$LIBSOCKET,;t t
29287 s,@LIBNSL@,$LIBNSL,;t t
29288 s,@LIBCRYPT@,$LIBCRYPT,;t t
29289 s,@LIBBSD@,$LIBBSD,;t t
29290 s,@KRBDIR@,$KRBDIR,;t t
29291 s,@KRBLIBS@,$KRBLIBS,;t t
29292 s,@KRBCFLAGS@,$KRBCFLAGS,;t t
29293 s,@K5VERS@,$K5VERS,;t t
29294 s,@ALLOCA@,$ALLOCA,;t t
29295 s,@LIBOBJS@,$LIBOBJS,;t t
29296 s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
29297 s,@CXXFLAGS_FOR_BUILD@,$CXXFLAGS_FOR_BUILD,;t t
29298 s,@CPPFLAGS_FOR_BUILD@,$CPPFLAGS_FOR_BUILD,;t t
29299 s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
29300 s,@AM_CPPFLAGS@,$AM_CPPFLAGS,;t t
29301 s,@AM_CFLAGS@,$AM_CFLAGS,;t t
29302 s,@ACLOCAL_AMFLAGS@,$ACLOCAL_AMFLAGS,;t t
29303 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
29304 CEOF
29305
29306 _ACEOF
29307
29308   cat >>$CONFIG_STATUS <<\_ACEOF
29309   # Split the substitutions into bite-sized pieces for seds with
29310   # small command number limits, like on Digital OSF/1 and HP-UX.
29311   ac_max_sed_lines=48
29312   ac_sed_frag=1 # Number of current file.
29313   ac_beg=1 # First line for current file.
29314   ac_end=$ac_max_sed_lines # Line after last line for current file.
29315   ac_more_lines=:
29316   ac_sed_cmds=
29317   while $ac_more_lines; do
29318     if test $ac_beg -gt 1; then
29319       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29320     else
29321       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29322     fi
29323     if test ! -s $tmp/subs.frag; then
29324       ac_more_lines=false
29325     else
29326       # The purpose of the label and of the branching condition is to
29327       # speed up the sed processing (if there are no `@' at all, there
29328       # is no need to browse any of the substitutions).
29329       # These are the two extra sed commands mentioned above.
29330       (echo ':t
29331   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
29332       if test -z "$ac_sed_cmds"; then
29333         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
29334       else
29335         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
29336       fi
29337       ac_sed_frag=`expr $ac_sed_frag + 1`
29338       ac_beg=$ac_end
29339       ac_end=`expr $ac_end + $ac_max_sed_lines`
29340     fi
29341   done
29342   if test -z "$ac_sed_cmds"; then
29343     ac_sed_cmds=cat
29344   fi
29345 fi # test -n "$CONFIG_FILES"
29346
29347 _ACEOF
29348 cat >>$CONFIG_STATUS <<\_ACEOF
29349 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
29350   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29351   case $ac_file in
29352   - | *:- | *:-:* ) # input from stdin
29353         cat >$tmp/stdin
29354         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29355         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29356   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29357         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29358   * )   ac_file_in=$ac_file.in ;;
29359   esac
29360
29361   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
29362   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
29363 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29364          X"$ac_file" : 'X\(//\)[^/]' \| \
29365          X"$ac_file" : 'X\(//\)$' \| \
29366          X"$ac_file" : 'X\(/\)' \| \
29367          .     : '\(.\)' 2>/dev/null ||
29368 echo X"$ac_file" |
29369     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29370           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29371           /^X\(\/\/\)$/{ s//\1/; q; }
29372           /^X\(\/\).*/{ s//\1/; q; }
29373           s/.*/./; q'`
29374   { if $as_mkdir_p; then
29375     mkdir -p "$ac_dir"
29376   else
29377     as_dir="$ac_dir"
29378     as_dirs=
29379     while test ! -d "$as_dir"; do
29380       as_dirs="$as_dir $as_dirs"
29381       as_dir=`(dirname "$as_dir") 2>/dev/null ||
29382 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29383          X"$as_dir" : 'X\(//\)[^/]' \| \
29384          X"$as_dir" : 'X\(//\)$' \| \
29385          X"$as_dir" : 'X\(/\)' \| \
29386          .     : '\(.\)' 2>/dev/null ||
29387 echo X"$as_dir" |
29388     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29389           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29390           /^X\(\/\/\)$/{ s//\1/; q; }
29391           /^X\(\/\).*/{ s//\1/; q; }
29392           s/.*/./; q'`
29393     done
29394     test ! -n "$as_dirs" || mkdir $as_dirs
29395   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29396 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29397    { (exit 1); exit 1; }; }; }
29398
29399   ac_builddir=.
29400
29401 if test "$ac_dir" != .; then
29402   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29403   # A "../" for each directory in $ac_dir_suffix.
29404   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
29405 else
29406   ac_dir_suffix= ac_top_builddir=
29407 fi
29408
29409 case $srcdir in
29410   .)  # No --srcdir option.  We are building in place.
29411     ac_srcdir=.
29412     if test -z "$ac_top_builddir"; then
29413        ac_top_srcdir=.
29414     else
29415        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
29416     fi ;;
29417   [\\/]* | ?:[\\/]* )  # Absolute path.
29418     ac_srcdir=$srcdir$ac_dir_suffix;
29419     ac_top_srcdir=$srcdir ;;
29420   *) # Relative path.
29421     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
29422     ac_top_srcdir=$ac_top_builddir$srcdir ;;
29423 esac
29424
29425 # Do not use `cd foo && pwd` to compute absolute paths, because
29426 # the directories may not exist.
29427 case `pwd` in
29428 .) ac_abs_builddir="$ac_dir";;
29429 *)
29430   case "$ac_dir" in
29431   .) ac_abs_builddir=`pwd`;;
29432   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
29433   *) ac_abs_builddir=`pwd`/"$ac_dir";;
29434   esac;;
29435 esac
29436 case $ac_abs_builddir in
29437 .) ac_abs_top_builddir=${ac_top_builddir}.;;
29438 *)
29439   case ${ac_top_builddir}. in
29440   .) ac_abs_top_builddir=$ac_abs_builddir;;
29441   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
29442   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
29443   esac;;
29444 esac
29445 case $ac_abs_builddir in
29446 .) ac_abs_srcdir=$ac_srcdir;;
29447 *)
29448   case $ac_srcdir in
29449   .) ac_abs_srcdir=$ac_abs_builddir;;
29450   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
29451   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
29452   esac;;
29453 esac
29454 case $ac_abs_builddir in
29455 .) ac_abs_top_srcdir=$ac_top_srcdir;;
29456 *)
29457   case $ac_top_srcdir in
29458   .) ac_abs_top_srcdir=$ac_abs_builddir;;
29459   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
29460   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
29461   esac;;
29462 esac
29463
29464
29465   case $INSTALL in
29466   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29467   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
29468   esac
29469
29470   # Let's still pretend it is `configure' which instantiates (i.e., don't
29471   # use $as_me), people would be surprised to read:
29472   #    /* config.h.  Generated by config.status.  */
29473   if test x"$ac_file" = x-; then
29474     configure_input=
29475   else
29476     configure_input="$ac_file.  "
29477   fi
29478   configure_input=$configure_input"Generated from `echo $ac_file_in |
29479                                      sed 's,.*/,,'` by configure."
29480
29481   # First look for the input files in the build tree, otherwise in the
29482   # src tree.
29483   ac_file_inputs=`IFS=:
29484     for f in $ac_file_in; do
29485       case $f in
29486       -) echo $tmp/stdin ;;
29487       [\\/$]*)
29488          # Absolute (can't be DOS-style, as IFS=:)
29489          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29490 echo "$as_me: error: cannot find input file: $f" >&2;}
29491    { (exit 1); exit 1; }; }
29492          echo "$f";;
29493       *) # Relative
29494          if test -f "$f"; then
29495            # Build tree
29496            echo "$f"
29497          elif test -f "$srcdir/$f"; then
29498            # Source tree
29499            echo "$srcdir/$f"
29500          else
29501            # /dev/null tree
29502            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29503 echo "$as_me: error: cannot find input file: $f" >&2;}
29504    { (exit 1); exit 1; }; }
29505          fi;;
29506       esac
29507     done` || { (exit 1); exit 1; }
29508
29509   if test x"$ac_file" != x-; then
29510     { echo "$as_me:$LINENO: creating $ac_file" >&5
29511 echo "$as_me: creating $ac_file" >&6;}
29512     rm -f "$ac_file"
29513   fi
29514 _ACEOF
29515 cat >>$CONFIG_STATUS <<_ACEOF
29516   sed "$ac_vpsub
29517 $extrasub
29518 _ACEOF
29519 cat >>$CONFIG_STATUS <<\_ACEOF
29520 :t
29521 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29522 s,@configure_input@,$configure_input,;t t
29523 s,@srcdir@,$ac_srcdir,;t t
29524 s,@abs_srcdir@,$ac_abs_srcdir,;t t
29525 s,@top_srcdir@,$ac_top_srcdir,;t t
29526 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
29527 s,@builddir@,$ac_builddir,;t t
29528 s,@abs_builddir@,$ac_abs_builddir,;t t
29529 s,@top_builddir@,$ac_top_builddir,;t t
29530 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
29531 s,@INSTALL@,$ac_INSTALL,;t t
29532 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
29533   rm -f $tmp/stdin
29534   if test x"$ac_file" != x-; then
29535     mv $tmp/out $ac_file
29536   else
29537     cat $tmp/out
29538     rm -f $tmp/out
29539   fi
29540
29541 done
29542 _ACEOF
29543 cat >>$CONFIG_STATUS <<\_ACEOF
29544
29545 #
29546 # CONFIG_HEADER section.
29547 #
29548
29549 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
29550 # NAME is the cpp macro being defined and VALUE is the value it is being given.
29551 #
29552 # ac_d sets the value in "#define NAME VALUE" lines.
29553 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
29554 ac_dB='[         ].*$,\1#\2'
29555 ac_dC=' '
29556 ac_dD=',;t'
29557 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
29558 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
29559 ac_uB='$,\1#\2define\3'
29560 ac_uC=' '
29561 ac_uD=',;t'
29562
29563 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
29564   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29565   case $ac_file in
29566   - | *:- | *:-:* ) # input from stdin
29567         cat >$tmp/stdin
29568         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29569         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29570   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29571         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29572   * )   ac_file_in=$ac_file.in ;;
29573   esac
29574
29575   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
29576 echo "$as_me: creating $ac_file" >&6;}
29577
29578   # First look for the input files in the build tree, otherwise in the
29579   # src tree.
29580   ac_file_inputs=`IFS=:
29581     for f in $ac_file_in; do
29582       case $f in
29583       -) echo $tmp/stdin ;;
29584       [\\/$]*)
29585          # Absolute (can't be DOS-style, as IFS=:)
29586          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29587 echo "$as_me: error: cannot find input file: $f" >&2;}
29588    { (exit 1); exit 1; }; }
29589          # Do quote $f, to prevent DOS paths from being IFS'd.
29590          echo "$f";;
29591       *) # Relative
29592          if test -f "$f"; then
29593            # Build tree
29594            echo "$f"
29595          elif test -f "$srcdir/$f"; then
29596            # Source tree
29597            echo "$srcdir/$f"
29598          else
29599            # /dev/null tree
29600            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29601 echo "$as_me: error: cannot find input file: $f" >&2;}
29602    { (exit 1); exit 1; }; }
29603          fi;;
29604       esac
29605     done` || { (exit 1); exit 1; }
29606   # Remove the trailing spaces.
29607   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
29608
29609 _ACEOF
29610
29611 # Transform confdefs.h into two sed scripts, `conftest.defines' and
29612 # `conftest.undefs', that substitutes the proper values into
29613 # config.h.in to produce config.h.  The first handles `#define'
29614 # templates, and the second `#undef' templates.
29615 # And first: Protect against being on the right side of a sed subst in
29616 # config.status.  Protect against being in an unquoted here document
29617 # in config.status.
29618 rm -f conftest.defines conftest.undefs
29619 # Using a here document instead of a string reduces the quoting nightmare.
29620 # Putting comments in sed scripts is not portable.
29621 #
29622 # `end' is used to avoid that the second main sed command (meant for
29623 # 0-ary CPP macros) applies to n-ary macro definitions.
29624 # See the Autoconf documentation for `clear'.
29625 cat >confdef2sed.sed <<\_ACEOF
29626 s/[\\&,]/\\&/g
29627 s,[\\$`],\\&,g
29628 t clear
29629 : clear
29630 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
29631 t end
29632 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
29633 : end
29634 _ACEOF
29635 # If some macros were called several times there might be several times
29636 # the same #defines, which is useless.  Nevertheless, we may not want to
29637 # sort them, since we want the *last* AC-DEFINE to be honored.
29638 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
29639 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
29640 rm -f confdef2sed.sed
29641
29642 # This sed command replaces #undef with comments.  This is necessary, for
29643 # example, in the case of _POSIX_SOURCE, which is predefined and required
29644 # on some systems where configure will not decide to define it.
29645 cat >>conftest.undefs <<\_ACEOF
29646 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
29647 _ACEOF
29648
29649 # Break up conftest.defines because some shells have a limit on the size
29650 # of here documents, and old seds have small limits too (100 cmds).
29651 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
29652 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
29653 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
29654 echo '  :' >>$CONFIG_STATUS
29655 rm -f conftest.tail
29656 while grep . conftest.defines >/dev/null
29657 do
29658   # Write a limited-size here document to $tmp/defines.sed.
29659   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
29660   # Speed up: don't consider the non `#define' lines.
29661   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
29662   # Work around the forget-to-reset-the-flag bug.
29663   echo 't clr' >>$CONFIG_STATUS
29664   echo ': clr' >>$CONFIG_STATUS
29665   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
29666   echo 'CEOF
29667   sed -f $tmp/defines.sed $tmp/in >$tmp/out
29668   rm -f $tmp/in
29669   mv $tmp/out $tmp/in
29670 ' >>$CONFIG_STATUS
29671   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
29672   rm -f conftest.defines
29673   mv conftest.tail conftest.defines
29674 done
29675 rm -f conftest.defines
29676 echo '  fi # grep' >>$CONFIG_STATUS
29677 echo >>$CONFIG_STATUS
29678
29679 # Break up conftest.undefs because some shells have a limit on the size
29680 # of here documents, and old seds have small limits too (100 cmds).
29681 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
29682 rm -f conftest.tail
29683 while grep . conftest.undefs >/dev/null
29684 do
29685   # Write a limited-size here document to $tmp/undefs.sed.
29686   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
29687   # Speed up: don't consider the non `#undef'
29688   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
29689   # Work around the forget-to-reset-the-flag bug.
29690   echo 't clr' >>$CONFIG_STATUS
29691   echo ': clr' >>$CONFIG_STATUS
29692   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
29693   echo 'CEOF
29694   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
29695   rm -f $tmp/in
29696   mv $tmp/out $tmp/in
29697 ' >>$CONFIG_STATUS
29698   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
29699   rm -f conftest.undefs
29700   mv conftest.tail conftest.undefs
29701 done
29702 rm -f conftest.undefs
29703
29704 cat >>$CONFIG_STATUS <<\_ACEOF
29705   # Let's still pretend it is `configure' which instantiates (i.e., don't
29706   # use $as_me), people would be surprised to read:
29707   #    /* config.h.  Generated by config.status.  */
29708   if test x"$ac_file" = x-; then
29709     echo "/* Generated by configure.  */" >$tmp/config.h
29710   else
29711     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
29712   fi
29713   cat $tmp/in >>$tmp/config.h
29714   rm -f $tmp/in
29715   if test x"$ac_file" != x-; then
29716     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
29717       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
29718 echo "$as_me: $ac_file is unchanged" >&6;}
29719     else
29720       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
29721 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29722          X"$ac_file" : 'X\(//\)[^/]' \| \
29723          X"$ac_file" : 'X\(//\)$' \| \
29724          X"$ac_file" : 'X\(/\)' \| \
29725          .     : '\(.\)' 2>/dev/null ||
29726 echo X"$ac_file" |
29727     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29728           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29729           /^X\(\/\/\)$/{ s//\1/; q; }
29730           /^X\(\/\).*/{ s//\1/; q; }
29731           s/.*/./; q'`
29732       { if $as_mkdir_p; then
29733     mkdir -p "$ac_dir"
29734   else
29735     as_dir="$ac_dir"
29736     as_dirs=
29737     while test ! -d "$as_dir"; do
29738       as_dirs="$as_dir $as_dirs"
29739       as_dir=`(dirname "$as_dir") 2>/dev/null ||
29740 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29741          X"$as_dir" : 'X\(//\)[^/]' \| \
29742          X"$as_dir" : 'X\(//\)$' \| \
29743          X"$as_dir" : 'X\(/\)' \| \
29744          .     : '\(.\)' 2>/dev/null ||
29745 echo X"$as_dir" |
29746     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29747           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29748           /^X\(\/\/\)$/{ s//\1/; q; }
29749           /^X\(\/\).*/{ s//\1/; q; }
29750           s/.*/./; q'`
29751     done
29752     test ! -n "$as_dirs" || mkdir $as_dirs
29753   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29754 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29755    { (exit 1); exit 1; }; }; }
29756
29757       rm -f $ac_file
29758       mv $tmp/config.h $ac_file
29759     fi
29760   else
29761     cat $tmp/config.h
29762     rm -f $tmp/config.h
29763   fi
29764 # Compute $ac_file's index in $config_headers.
29765 _am_stamp_count=1
29766 for _am_header in $config_headers :; do
29767   case $_am_header in
29768     $ac_file | $ac_file:* )
29769       break ;;
29770     * )
29771       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
29772   esac
29773 done
29774 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
29775 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29776          X$ac_file : 'X\(//\)[^/]' \| \
29777          X$ac_file : 'X\(//\)$' \| \
29778          X$ac_file : 'X\(/\)' \| \
29779          .     : '\(.\)' 2>/dev/null ||
29780 echo X$ac_file |
29781     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29782           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29783           /^X\(\/\/\)$/{ s//\1/; q; }
29784           /^X\(\/\).*/{ s//\1/; q; }
29785           s/.*/./; q'`/stamp-h$_am_stamp_count
29786 done
29787 _ACEOF
29788 cat >>$CONFIG_STATUS <<\_ACEOF
29789
29790 #
29791 # CONFIG_COMMANDS section.
29792 #
29793 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
29794   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
29795   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
29796   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
29797 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29798          X"$ac_dest" : 'X\(//\)[^/]' \| \
29799          X"$ac_dest" : 'X\(//\)$' \| \
29800          X"$ac_dest" : 'X\(/\)' \| \
29801          .     : '\(.\)' 2>/dev/null ||
29802 echo X"$ac_dest" |
29803     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29804           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29805           /^X\(\/\/\)$/{ s//\1/; q; }
29806           /^X\(\/\).*/{ s//\1/; q; }
29807           s/.*/./; q'`
29808   { if $as_mkdir_p; then
29809     mkdir -p "$ac_dir"
29810   else
29811     as_dir="$ac_dir"
29812     as_dirs=
29813     while test ! -d "$as_dir"; do
29814       as_dirs="$as_dir $as_dirs"
29815       as_dir=`(dirname "$as_dir") 2>/dev/null ||
29816 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29817          X"$as_dir" : 'X\(//\)[^/]' \| \
29818          X"$as_dir" : 'X\(//\)$' \| \
29819          X"$as_dir" : 'X\(/\)' \| \
29820          .     : '\(.\)' 2>/dev/null ||
29821 echo X"$as_dir" |
29822     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29823           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29824           /^X\(\/\/\)$/{ s//\1/; q; }
29825           /^X\(\/\).*/{ s//\1/; q; }
29826           s/.*/./; q'`
29827     done
29828     test ! -n "$as_dirs" || mkdir $as_dirs
29829   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29830 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29831    { (exit 1); exit 1; }; }; }
29832
29833   ac_builddir=.
29834
29835 if test "$ac_dir" != .; then
29836   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29837   # A "../" for each directory in $ac_dir_suffix.
29838   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
29839 else
29840   ac_dir_suffix= ac_top_builddir=
29841 fi
29842
29843 case $srcdir in
29844   .)  # No --srcdir option.  We are building in place.
29845     ac_srcdir=.
29846     if test -z "$ac_top_builddir"; then
29847        ac_top_srcdir=.
29848     else
29849        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
29850     fi ;;
29851   [\\/]* | ?:[\\/]* )  # Absolute path.
29852     ac_srcdir=$srcdir$ac_dir_suffix;
29853     ac_top_srcdir=$srcdir ;;
29854   *) # Relative path.
29855     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
29856     ac_top_srcdir=$ac_top_builddir$srcdir ;;
29857 esac
29858
29859 # Do not use `cd foo && pwd` to compute absolute paths, because
29860 # the directories may not exist.
29861 case `pwd` in
29862 .) ac_abs_builddir="$ac_dir";;
29863 *)
29864   case "$ac_dir" in
29865   .) ac_abs_builddir=`pwd`;;
29866   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
29867   *) ac_abs_builddir=`pwd`/"$ac_dir";;
29868   esac;;
29869 esac
29870 case $ac_abs_builddir in
29871 .) ac_abs_top_builddir=${ac_top_builddir}.;;
29872 *)
29873   case ${ac_top_builddir}. in
29874   .) ac_abs_top_builddir=$ac_abs_builddir;;
29875   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
29876   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
29877   esac;;
29878 esac
29879 case $ac_abs_builddir in
29880 .) ac_abs_srcdir=$ac_srcdir;;
29881 *)
29882   case $ac_srcdir in
29883   .) ac_abs_srcdir=$ac_abs_builddir;;
29884   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
29885   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
29886   esac;;
29887 esac
29888 case $ac_abs_builddir in
29889 .) ac_abs_top_srcdir=$ac_top_srcdir;;
29890 *)
29891   case $ac_top_srcdir in
29892   .) ac_abs_top_srcdir=$ac_abs_builddir;;
29893   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
29894   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
29895   esac;;
29896 esac
29897
29898
29899   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
29900 echo "$as_me: executing $ac_dest commands" >&6;}
29901   case $ac_dest in
29902     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
29903   # Strip MF so we end up with the name of the file.
29904   mf=`echo "$mf" | sed -e 's/:.*$//'`
29905   # Check whether this is an Automake generated Makefile or not.
29906   # We used to match only the files named `Makefile.in', but
29907   # some people rename them; so instead we look at the file content.
29908   # Grep'ing the first line is not enough: some people post-process
29909   # each Makefile.in and add a new line on top of each file to say so.
29910   # So let's grep whole file.
29911   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
29912     dirpart=`(dirname "$mf") 2>/dev/null ||
29913 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29914          X"$mf" : 'X\(//\)[^/]' \| \
29915          X"$mf" : 'X\(//\)$' \| \
29916          X"$mf" : 'X\(/\)' \| \
29917          .     : '\(.\)' 2>/dev/null ||
29918 echo X"$mf" |
29919     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29920           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29921           /^X\(\/\/\)$/{ s//\1/; q; }
29922           /^X\(\/\).*/{ s//\1/; q; }
29923           s/.*/./; q'`
29924   else
29925     continue
29926   fi
29927   # Extract the definition of DEPDIR, am__include, and am__quote
29928   # from the Makefile without running `make'.
29929   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
29930   test -z "$DEPDIR" && continue
29931   am__include=`sed -n 's/^am__include = //p' < "$mf"`
29932   test -z "am__include" && continue
29933   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
29934   # When using ansi2knr, U may be empty or an underscore; expand it
29935   U=`sed -n 's/^U = //p' < "$mf"`
29936   # Find all dependency output files, they are included files with
29937   # $(DEPDIR) in their names.  We invoke sed twice because it is the
29938   # simplest approach to changing $(DEPDIR) to its actual value in the
29939   # expansion.
29940   for file in `sed -n "
29941     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
29942        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
29943     # Make sure the directory exists.
29944     test -f "$dirpart/$file" && continue
29945     fdir=`(dirname "$file") 2>/dev/null ||
29946 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29947          X"$file" : 'X\(//\)[^/]' \| \
29948          X"$file" : 'X\(//\)$' \| \
29949          X"$file" : 'X\(/\)' \| \
29950          .     : '\(.\)' 2>/dev/null ||
29951 echo X"$file" |
29952     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29953           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29954           /^X\(\/\/\)$/{ s//\1/; q; }
29955           /^X\(\/\).*/{ s//\1/; q; }
29956           s/.*/./; q'`
29957     { if $as_mkdir_p; then
29958     mkdir -p $dirpart/$fdir
29959   else
29960     as_dir=$dirpart/$fdir
29961     as_dirs=
29962     while test ! -d "$as_dir"; do
29963       as_dirs="$as_dir $as_dirs"
29964       as_dir=`(dirname "$as_dir") 2>/dev/null ||
29965 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29966          X"$as_dir" : 'X\(//\)[^/]' \| \
29967          X"$as_dir" : 'X\(//\)$' \| \
29968          X"$as_dir" : 'X\(/\)' \| \
29969          .     : '\(.\)' 2>/dev/null ||
29970 echo X"$as_dir" |
29971     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29972           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29973           /^X\(\/\/\)$/{ s//\1/; q; }
29974           /^X\(\/\).*/{ s//\1/; q; }
29975           s/.*/./; q'`
29976     done
29977     test ! -n "$as_dirs" || mkdir $as_dirs
29978   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
29979 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
29980    { (exit 1); exit 1; }; }; }
29981
29982     # echo "creating $dirpart/$file"
29983     echo '# dummy' > "$dirpart/$file"
29984   done
29985 done
29986  ;;
29987   esac
29988 done
29989 _ACEOF
29990
29991 cat >>$CONFIG_STATUS <<\_ACEOF
29992
29993 { (exit 0); exit 0; }
29994 _ACEOF
29995 chmod +x $CONFIG_STATUS
29996 ac_clean_files=$ac_clean_files_save
29997
29998
29999 # configure is writing to config.log, and then calls config.status.
30000 # config.status does its own redirection, appending to config.log.
30001 # Unfortunately, on DOS this fails, as config.log is still kept open
30002 # by configure, so config.status won't be able to write to it; its
30003 # output is simply discarded.  So we exec the FD to /dev/null,
30004 # effectively closing config.log, so it can be properly (re)opened and
30005 # appended to by config.status.  When coming back to configure, we
30006 # need to make the FD available again.
30007 if test "$no_create" != yes; then
30008   ac_cs_success=:
30009   ac_config_status_args=
30010   test "$silent" = yes &&
30011     ac_config_status_args="$ac_config_status_args --quiet"
30012   exec 5>/dev/null
30013   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30014   exec 5>>config.log
30015   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30016   # would make configure fail if this is the last instruction.
30017   $ac_cs_success || { (exit 1); exit 1; }
30018 fi
30019
30020