]> git.decadent.org.uk Git - nfs-utils.git/blob - configure
9a5bbc0083356240c4be3671df122f2c3a77187c
[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-rc4.
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-rc4'
427 PACKAGE_STRING='linux nfs-utils 1.0.8-rc4'
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 PKG_CONFIG ac_pt_PKG_CONFIG RPCSECGSS_CFLAGS RPCSECGSS_LIBS 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 ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
952 ac_env_PKG_CONFIG_value=$PKG_CONFIG
953 ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
954 ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
955 ac_env_RPCSECGSS_CFLAGS_set=${RPCSECGSS_CFLAGS+set}
956 ac_env_RPCSECGSS_CFLAGS_value=$RPCSECGSS_CFLAGS
957 ac_cv_env_RPCSECGSS_CFLAGS_set=${RPCSECGSS_CFLAGS+set}
958 ac_cv_env_RPCSECGSS_CFLAGS_value=$RPCSECGSS_CFLAGS
959 ac_env_RPCSECGSS_LIBS_set=${RPCSECGSS_LIBS+set}
960 ac_env_RPCSECGSS_LIBS_value=$RPCSECGSS_LIBS
961 ac_cv_env_RPCSECGSS_LIBS_set=${RPCSECGSS_LIBS+set}
962 ac_cv_env_RPCSECGSS_LIBS_value=$RPCSECGSS_LIBS
963
964 #
965 # Report the --help message.
966 #
967 if test "$ac_init_help" = "long"; then
968   # Omit some internal or obsolete options to make the list less imposing.
969   # This message is too long to be a string in the A/UX 3.1 sh.
970   cat <<_ACEOF
971 \`configure' configures linux nfs-utils 1.0.8-rc4 to adapt to many kinds of systems.
972
973 Usage: $0 [OPTION]... [VAR=VALUE]...
974
975 To assign environment variables (e.g., CC, CFLAGS...), specify them as
976 VAR=VALUE.  See below for descriptions of some of the useful variables.
977
978 Defaults for the options are specified in brackets.
979
980 Configuration:
981   -h, --help              display this help and exit
982       --help=short        display options specific to this package
983       --help=recursive    display the short help of all the included packages
984   -V, --version           display version information and exit
985   -q, --quiet, --silent   do not print \`checking...' messages
986       --cache-file=FILE   cache test results in FILE [disabled]
987   -C, --config-cache      alias for \`--cache-file=config.cache'
988   -n, --no-create         do not create output files
989       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
990
991 _ACEOF
992
993   cat <<_ACEOF
994 Installation directories:
995   --prefix=PREFIX         install architecture-independent files in PREFIX
996                           [$ac_default_prefix]
997   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
998                           [PREFIX]
999
1000 By default, \`make install' will install all the files in
1001 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1002 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1003 for instance \`--prefix=\$HOME'.
1004
1005 For better control, use the options below.
1006
1007 Fine tuning of the installation directories:
1008   --bindir=DIR           user executables [EPREFIX/bin]
1009   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1010   --libexecdir=DIR       program executables [EPREFIX/libexec]
1011   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1012   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1013   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1014   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1015   --libdir=DIR           object code libraries [EPREFIX/lib]
1016   --includedir=DIR       C header files [PREFIX/include]
1017   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1018   --infodir=DIR          info documentation [PREFIX/info]
1019   --mandir=DIR           man documentation [PREFIX/man]
1020 _ACEOF
1021
1022   cat <<\_ACEOF
1023
1024 Program names:
1025   --program-prefix=PREFIX            prepend PREFIX to installed program names
1026   --program-suffix=SUFFIX            append SUFFIX to installed program names
1027   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1028
1029 System types:
1030   --build=BUILD     configure for building on BUILD [guessed]
1031   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1032 _ACEOF
1033 fi
1034
1035 if test -n "$ac_init_help"; then
1036   case $ac_init_help in
1037      short | recursive ) echo "Configuration of linux nfs-utils 1.0.8-rc4:";;
1038    esac
1039   cat <<\_ACEOF
1040
1041 Optional Features:
1042   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1043   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1044   --enable-nfsv3          enable support for NFSv3 [default=yes]
1045   --enable-nfsv4          enable support for NFSv4 [default=yes]
1046   --enable-gss            enable support for rpcsec_gss [default=yes]
1047   --enable-kprefix        install progs as rpc.knfsd etc
1048   --enable-secure-statd   Only lockd can use statd (security)
1049   --enable-rquotad        enable rquotad [default=yes]
1050   --disable-dependency-tracking  speeds up one-time build
1051   --enable-dependency-tracking   do not reject slow dependency extractors
1052   --enable-shared[=PKGS]
1053                           build shared libraries [default=yes]
1054   --enable-static[=PKGS]
1055                           build static libraries [default=yes]
1056   --enable-fast-install[=PKGS]
1057                           optimize for fast installation [default=yes]
1058   --disable-libtool-lock  avoid locking (might break parallel builds)
1059
1060 Optional Packages:
1061   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1062   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1063   --with-release=XXX      set release to XXX [1]
1064   --with-statedir=/foo    use state dir /foo /var/lib/nfs
1065   --with-statduser=rpcuser
1066                           statd to run under [rpcuser or nobody]
1067   --with-tcp-wrappers[=PATH]      Enable tcpwrappers support
1068                  (optionally in PATH)
1069   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1070   --with-pic              try to use only PIC/non-PIC objects [default=use
1071                           both]
1072   --with-tags[=TAGS]
1073                           include additional configurations [automatic]
1074   --with-krb5=DIR         use Kerberos v5 installation in DIR
1075
1076 Some influential environment variables:
1077   CC          C compiler command
1078   CFLAGS      C compiler flags
1079   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1080               nonstandard directory <lib dir>
1081   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1082               headers in a nonstandard directory <include dir>
1083   CXX         C++ compiler command
1084   CXXFLAGS    C++ compiler flags
1085   CPP         C preprocessor
1086   CXXCPP      C++ preprocessor
1087   F77         Fortran 77 compiler command
1088   FFLAGS      Fortran 77 compiler flags
1089   PKG_CONFIG  path to pkg-config utility
1090   RPCSECGSS_CFLAGS
1091               C compiler flags for RPCSECGSS, overriding pkg-config
1092   RPCSECGSS_LIBS
1093               linker flags for RPCSECGSS, overriding pkg-config
1094
1095 Use these variables to override the choices made by `configure' or to help
1096 it to find libraries and programs with nonstandard names/locations.
1097
1098 Report bugs to <nfs@lists.sf.net>.
1099 _ACEOF
1100 fi
1101
1102 if test "$ac_init_help" = "recursive"; then
1103   # If there are subdirs, report their specific --help.
1104   ac_popdir=`pwd`
1105   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1106     test -d $ac_dir || continue
1107     ac_builddir=.
1108
1109 if test "$ac_dir" != .; then
1110   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1111   # A "../" for each directory in $ac_dir_suffix.
1112   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1113 else
1114   ac_dir_suffix= ac_top_builddir=
1115 fi
1116
1117 case $srcdir in
1118   .)  # No --srcdir option.  We are building in place.
1119     ac_srcdir=.
1120     if test -z "$ac_top_builddir"; then
1121        ac_top_srcdir=.
1122     else
1123        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1124     fi ;;
1125   [\\/]* | ?:[\\/]* )  # Absolute path.
1126     ac_srcdir=$srcdir$ac_dir_suffix;
1127     ac_top_srcdir=$srcdir ;;
1128   *) # Relative path.
1129     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1130     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1131 esac
1132
1133 # Do not use `cd foo && pwd` to compute absolute paths, because
1134 # the directories may not exist.
1135 case `pwd` in
1136 .) ac_abs_builddir="$ac_dir";;
1137 *)
1138   case "$ac_dir" in
1139   .) ac_abs_builddir=`pwd`;;
1140   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1141   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1142   esac;;
1143 esac
1144 case $ac_abs_builddir in
1145 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1146 *)
1147   case ${ac_top_builddir}. in
1148   .) ac_abs_top_builddir=$ac_abs_builddir;;
1149   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1150   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1151   esac;;
1152 esac
1153 case $ac_abs_builddir in
1154 .) ac_abs_srcdir=$ac_srcdir;;
1155 *)
1156   case $ac_srcdir in
1157   .) ac_abs_srcdir=$ac_abs_builddir;;
1158   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1159   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1160   esac;;
1161 esac
1162 case $ac_abs_builddir in
1163 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1164 *)
1165   case $ac_top_srcdir in
1166   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1167   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1168   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1169   esac;;
1170 esac
1171
1172     cd $ac_dir
1173     # Check for guested configure; otherwise get Cygnus style configure.
1174     if test -f $ac_srcdir/configure.gnu; then
1175       echo
1176       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1177     elif test -f $ac_srcdir/configure; then
1178       echo
1179       $SHELL $ac_srcdir/configure  --help=recursive
1180     elif test -f $ac_srcdir/configure.ac ||
1181            test -f $ac_srcdir/configure.in; then
1182       echo
1183       $ac_configure --help
1184     else
1185       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1186     fi
1187     cd "$ac_popdir"
1188   done
1189 fi
1190
1191 test -n "$ac_init_help" && exit 0
1192 if $ac_init_version; then
1193   cat <<\_ACEOF
1194 linux nfs-utils configure 1.0.8-rc4
1195 generated by GNU Autoconf 2.59
1196
1197 Copyright (C) 2003 Free Software Foundation, Inc.
1198 This configure script is free software; the Free Software Foundation
1199 gives unlimited permission to copy, distribute and modify it.
1200 _ACEOF
1201   exit 0
1202 fi
1203 exec 5>config.log
1204 cat >&5 <<_ACEOF
1205 This file contains any messages produced by compilers while
1206 running configure, to aid debugging if configure makes a mistake.
1207
1208 It was created by linux nfs-utils $as_me 1.0.8-rc4, which was
1209 generated by GNU Autoconf 2.59.  Invocation command line was
1210
1211   $ $0 $@
1212
1213 _ACEOF
1214 {
1215 cat <<_ASUNAME
1216 ## --------- ##
1217 ## Platform. ##
1218 ## --------- ##
1219
1220 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1221 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1222 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1223 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1224 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1225
1226 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1227 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1228
1229 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1230 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1231 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1232 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1233 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1234 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1235 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1236
1237 _ASUNAME
1238
1239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1240 for as_dir in $PATH
1241 do
1242   IFS=$as_save_IFS
1243   test -z "$as_dir" && as_dir=.
1244   echo "PATH: $as_dir"
1245 done
1246
1247 } >&5
1248
1249 cat >&5 <<_ACEOF
1250
1251
1252 ## ----------- ##
1253 ## Core tests. ##
1254 ## ----------- ##
1255
1256 _ACEOF
1257
1258
1259 # Keep a trace of the command line.
1260 # Strip out --no-create and --no-recursion so they do not pile up.
1261 # Strip out --silent because we don't want to record it for future runs.
1262 # Also quote any args containing shell meta-characters.
1263 # Make two passes to allow for proper duplicate-argument suppression.
1264 ac_configure_args=
1265 ac_configure_args0=
1266 ac_configure_args1=
1267 ac_sep=
1268 ac_must_keep_next=false
1269 for ac_pass in 1 2
1270 do
1271   for ac_arg
1272   do
1273     case $ac_arg in
1274     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1275     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1276     | -silent | --silent | --silen | --sile | --sil)
1277       continue ;;
1278     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1279       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1280     esac
1281     case $ac_pass in
1282     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1283     2)
1284       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1285       if test $ac_must_keep_next = true; then
1286         ac_must_keep_next=false # Got value, back to normal.
1287       else
1288         case $ac_arg in
1289           *=* | --config-cache | -C | -disable-* | --disable-* \
1290           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1291           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1292           | -with-* | --with-* | -without-* | --without-* | --x)
1293             case "$ac_configure_args0 " in
1294               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1295             esac
1296             ;;
1297           -* ) ac_must_keep_next=true ;;
1298         esac
1299       fi
1300       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1301       # Get rid of the leading space.
1302       ac_sep=" "
1303       ;;
1304     esac
1305   done
1306 done
1307 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1308 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1309
1310 # When interrupted or exit'd, cleanup temporary files, and complete
1311 # config.log.  We remove comments because anyway the quotes in there
1312 # would cause problems or look ugly.
1313 # WARNING: Be sure not to use single quotes in there, as some shells,
1314 # such as our DU 5.0 friend, will then `close' the trap.
1315 trap 'exit_status=$?
1316   # Save into config.log some information that might help in debugging.
1317   {
1318     echo
1319
1320     cat <<\_ASBOX
1321 ## ---------------- ##
1322 ## Cache variables. ##
1323 ## ---------------- ##
1324 _ASBOX
1325     echo
1326     # The following way of writing the cache mishandles newlines in values,
1327 {
1328   (set) 2>&1 |
1329     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1330     *ac_space=\ *)
1331       sed -n \
1332         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1333           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1334       ;;
1335     *)
1336       sed -n \
1337         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1338       ;;
1339     esac;
1340 }
1341     echo
1342
1343     cat <<\_ASBOX
1344 ## ----------------- ##
1345 ## Output variables. ##
1346 ## ----------------- ##
1347 _ASBOX
1348     echo
1349     for ac_var in $ac_subst_vars
1350     do
1351       eval ac_val=$`echo $ac_var`
1352       echo "$ac_var='"'"'$ac_val'"'"'"
1353     done | sort
1354     echo
1355
1356     if test -n "$ac_subst_files"; then
1357       cat <<\_ASBOX
1358 ## ------------- ##
1359 ## Output files. ##
1360 ## ------------- ##
1361 _ASBOX
1362       echo
1363       for ac_var in $ac_subst_files
1364       do
1365         eval ac_val=$`echo $ac_var`
1366         echo "$ac_var='"'"'$ac_val'"'"'"
1367       done | sort
1368       echo
1369     fi
1370
1371     if test -s confdefs.h; then
1372       cat <<\_ASBOX
1373 ## ----------- ##
1374 ## confdefs.h. ##
1375 ## ----------- ##
1376 _ASBOX
1377       echo
1378       sed "/^$/d" confdefs.h | sort
1379       echo
1380     fi
1381     test "$ac_signal" != 0 &&
1382       echo "$as_me: caught signal $ac_signal"
1383     echo "$as_me: exit $exit_status"
1384   } >&5
1385   rm -f core *.core &&
1386   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1387     exit $exit_status
1388      ' 0
1389 for ac_signal in 1 2 13 15; do
1390   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1391 done
1392 ac_signal=0
1393
1394 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1395 rm -rf conftest* confdefs.h
1396 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1397 echo >confdefs.h
1398
1399 # Predefined preprocessor variables.
1400
1401 cat >>confdefs.h <<_ACEOF
1402 #define PACKAGE_NAME "$PACKAGE_NAME"
1403 _ACEOF
1404
1405
1406 cat >>confdefs.h <<_ACEOF
1407 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1408 _ACEOF
1409
1410
1411 cat >>confdefs.h <<_ACEOF
1412 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1413 _ACEOF
1414
1415
1416 cat >>confdefs.h <<_ACEOF
1417 #define PACKAGE_STRING "$PACKAGE_STRING"
1418 _ACEOF
1419
1420
1421 cat >>confdefs.h <<_ACEOF
1422 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1423 _ACEOF
1424
1425
1426 # Let the site file select an alternate cache file if it wants to.
1427 # Prefer explicitly selected file to automatically selected ones.
1428 if test -z "$CONFIG_SITE"; then
1429   if test "x$prefix" != xNONE; then
1430     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1431   else
1432     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1433   fi
1434 fi
1435 for ac_site_file in $CONFIG_SITE; do
1436   if test -r "$ac_site_file"; then
1437     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1438 echo "$as_me: loading site script $ac_site_file" >&6;}
1439     sed 's/^/| /' "$ac_site_file" >&5
1440     . "$ac_site_file"
1441   fi
1442 done
1443
1444 if test -r "$cache_file"; then
1445   # Some versions of bash will fail to source /dev/null (special
1446   # files actually), so we avoid doing that.
1447   if test -f "$cache_file"; then
1448     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1449 echo "$as_me: loading cache $cache_file" >&6;}
1450     case $cache_file in
1451       [\\/]* | ?:[\\/]* ) . $cache_file;;
1452       *)                      . ./$cache_file;;
1453     esac
1454   fi
1455 else
1456   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1457 echo "$as_me: creating cache $cache_file" >&6;}
1458   >$cache_file
1459 fi
1460
1461 # Check that the precious variables saved in the cache have kept the same
1462 # value.
1463 ac_cache_corrupted=false
1464 for ac_var in `(set) 2>&1 |
1465                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1466   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1467   eval ac_new_set=\$ac_env_${ac_var}_set
1468   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1469   eval ac_new_val="\$ac_env_${ac_var}_value"
1470   case $ac_old_set,$ac_new_set in
1471     set,)
1472       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1473 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1474       ac_cache_corrupted=: ;;
1475     ,set)
1476       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1477 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1478       ac_cache_corrupted=: ;;
1479     ,);;
1480     *)
1481       if test "x$ac_old_val" != "x$ac_new_val"; then
1482         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1483 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1484         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1485 echo "$as_me:   former value:  $ac_old_val" >&2;}
1486         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1487 echo "$as_me:   current value: $ac_new_val" >&2;}
1488         ac_cache_corrupted=:
1489       fi;;
1490   esac
1491   # Pass precious variables to config.status.
1492   if test "$ac_new_set" = set; then
1493     case $ac_new_val in
1494     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1495       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1496     *) ac_arg=$ac_var=$ac_new_val ;;
1497     esac
1498     case " $ac_configure_args " in
1499       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1500       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1501     esac
1502   fi
1503 done
1504 if $ac_cache_corrupted; then
1505   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1506 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1507   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1508 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1509    { (exit 1); exit 1; }; }
1510 fi
1511
1512 ac_ext=c
1513 ac_cpp='$CPP $CPPFLAGS'
1514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544 ac_aux_dir=
1545 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1546   if test -f $ac_dir/install-sh; then
1547     ac_aux_dir=$ac_dir
1548     ac_install_sh="$ac_aux_dir/install-sh -c"
1549     break
1550   elif test -f $ac_dir/install.sh; then
1551     ac_aux_dir=$ac_dir
1552     ac_install_sh="$ac_aux_dir/install.sh -c"
1553     break
1554   elif test -f $ac_dir/shtool; then
1555     ac_aux_dir=$ac_dir
1556     ac_install_sh="$ac_aux_dir/shtool install -c"
1557     break
1558   fi
1559 done
1560 if test -z "$ac_aux_dir"; then
1561   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1562 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1563    { (exit 1); exit 1; }; }
1564 fi
1565 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1566 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1567 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1568
1569 # Make sure we can run config.sub.
1570 $ac_config_sub sun4 >/dev/null 2>&1 ||
1571   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1572 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1573    { (exit 1); exit 1; }; }
1574
1575 echo "$as_me:$LINENO: checking build system type" >&5
1576 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1577 if test "${ac_cv_build+set}" = set; then
1578   echo $ECHO_N "(cached) $ECHO_C" >&6
1579 else
1580   ac_cv_build_alias=$build_alias
1581 test -z "$ac_cv_build_alias" &&
1582   ac_cv_build_alias=`$ac_config_guess`
1583 test -z "$ac_cv_build_alias" &&
1584   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1585 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1586    { (exit 1); exit 1; }; }
1587 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1588   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1589 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1590    { (exit 1); exit 1; }; }
1591
1592 fi
1593 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1594 echo "${ECHO_T}$ac_cv_build" >&6
1595 build=$ac_cv_build
1596 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1597 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1598 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1599
1600
1601 echo "$as_me:$LINENO: checking host system type" >&5
1602 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1603 if test "${ac_cv_host+set}" = set; then
1604   echo $ECHO_N "(cached) $ECHO_C" >&6
1605 else
1606   ac_cv_host_alias=$host_alias
1607 test -z "$ac_cv_host_alias" &&
1608   ac_cv_host_alias=$ac_cv_build_alias
1609 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1610   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1611 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1612    { (exit 1); exit 1; }; }
1613
1614 fi
1615 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1616 echo "${ECHO_T}$ac_cv_host" >&6
1617 host=$ac_cv_host
1618 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1619 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1620 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1621
1622
1623
1624 case aclocal in
1625   [\\/]* | ?:[\\/]* ) ac_macro_dir=aclocal         ;;
1626   *)                      ac_macro_dir=$srcdir/aclocal ;;
1627 esac
1628 if test -d "$ac_macro_dir"; then :
1629 else
1630   { { echo "$as_me:$LINENO: error: cannot find macro directory \`aclocal'" >&5
1631 echo "$as_me: error: cannot find macro directory \`aclocal'" >&2;}
1632    { (exit 1); exit 1; }; }
1633 fi
1634
1635 am__api_version="1.9"
1636 # Find a good install program.  We prefer a C program (faster),
1637 # so one script is as good as another.  But avoid the broken or
1638 # incompatible versions:
1639 # SysV /etc/install, /usr/sbin/install
1640 # SunOS /usr/etc/install
1641 # IRIX /sbin/install
1642 # AIX /bin/install
1643 # AmigaOS /C/install, which installs bootblocks on floppy discs
1644 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1645 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1646 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1647 # OS/2's system install, which has a completely different semantic
1648 # ./install, which can be erroneously created by make from ./install.sh.
1649 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1650 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1651 if test -z "$INSTALL"; then
1652 if test "${ac_cv_path_install+set}" = set; then
1653   echo $ECHO_N "(cached) $ECHO_C" >&6
1654 else
1655   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1656 for as_dir in $PATH
1657 do
1658   IFS=$as_save_IFS
1659   test -z "$as_dir" && as_dir=.
1660   # Account for people who put trailing slashes in PATH elements.
1661 case $as_dir/ in
1662   ./ | .// | /cC/* | \
1663   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1664   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1665   /usr/ucb/* ) ;;
1666   *)
1667     # OSF1 and SCO ODT 3.0 have their own names for install.
1668     # Don't use installbsd from OSF since it installs stuff as root
1669     # by default.
1670     for ac_prog in ginstall scoinst install; do
1671       for ac_exec_ext in '' $ac_executable_extensions; do
1672         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1673           if test $ac_prog = install &&
1674             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1675             # AIX install.  It has an incompatible calling convention.
1676             :
1677           elif test $ac_prog = install &&
1678             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1679             # program-specific install script used by HP pwplus--don't use.
1680             :
1681           else
1682             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1683             break 3
1684           fi
1685         fi
1686       done
1687     done
1688     ;;
1689 esac
1690 done
1691
1692
1693 fi
1694   if test "${ac_cv_path_install+set}" = set; then
1695     INSTALL=$ac_cv_path_install
1696   else
1697     # As a last resort, use the slow shell script.  We don't cache a
1698     # path for INSTALL within a source directory, because that will
1699     # break other packages using the cache if that directory is
1700     # removed, or if the path is relative.
1701     INSTALL=$ac_install_sh
1702   fi
1703 fi
1704 echo "$as_me:$LINENO: result: $INSTALL" >&5
1705 echo "${ECHO_T}$INSTALL" >&6
1706
1707 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1708 # It thinks the first close brace ends the variable substitution.
1709 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1710
1711 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1712
1713 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1714
1715 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1716 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1717 # Just in case
1718 sleep 1
1719 echo timestamp > conftest.file
1720 # Do `set' in a subshell so we don't clobber the current shell's
1721 # arguments.  Must try -L first in case configure is actually a
1722 # symlink; some systems play weird games with the mod time of symlinks
1723 # (eg FreeBSD returns the mod time of the symlink's containing
1724 # directory).
1725 if (
1726    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1727    if test "$*" = "X"; then
1728       # -L didn't work.
1729       set X `ls -t $srcdir/configure conftest.file`
1730    fi
1731    rm -f conftest.file
1732    if test "$*" != "X $srcdir/configure conftest.file" \
1733       && test "$*" != "X conftest.file $srcdir/configure"; then
1734
1735       # If neither matched, then we have a broken ls.  This can happen
1736       # if, for instance, CONFIG_SHELL is bash and it inherits a
1737       # broken ls alias from the environment.  This has actually
1738       # happened.  Such a system could not be considered "sane".
1739       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1740 alias in your environment" >&5
1741 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1742 alias in your environment" >&2;}
1743    { (exit 1); exit 1; }; }
1744    fi
1745
1746    test "$2" = conftest.file
1747    )
1748 then
1749    # Ok.
1750    :
1751 else
1752    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1753 Check your system clock" >&5
1754 echo "$as_me: error: newly created file is older than distributed files!
1755 Check your system clock" >&2;}
1756    { (exit 1); exit 1; }; }
1757 fi
1758 echo "$as_me:$LINENO: result: yes" >&5
1759 echo "${ECHO_T}yes" >&6
1760 test "$program_prefix" != NONE &&
1761   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1762 # Use a double $ so make ignores it.
1763 test "$program_suffix" != NONE &&
1764   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1765 # Double any \ or $.  echo might interpret backslashes.
1766 # By default was `s,x,x', remove it if useless.
1767 cat <<\_ACEOF >conftest.sed
1768 s/[\\$]/&&/g;s/;s,x,x,$//
1769 _ACEOF
1770 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1771 rm conftest.sed
1772
1773 # expand $ac_aux_dir to an absolute path
1774 am_aux_dir=`cd $ac_aux_dir && pwd`
1775
1776 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1777 # Use eval to expand $SHELL
1778 if eval "$MISSING --run true"; then
1779   am_missing_run="$MISSING --run "
1780 else
1781   am_missing_run=
1782   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1783 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1784 fi
1785
1786 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1787   # We used to keeping the `.' as first argument, in order to
1788   # allow $(mkdir_p) to be used without argument.  As in
1789   #   $(mkdir_p) $(somedir)
1790   # where $(somedir) is conditionally defined.  However this is wrong
1791   # for two reasons:
1792   #  1. if the package is installed by a user who cannot write `.'
1793   #     make install will fail,
1794   #  2. the above comment should most certainly read
1795   #     $(mkdir_p) $(DESTDIR)$(somedir)
1796   #     so it does not work when $(somedir) is undefined and
1797   #     $(DESTDIR) is not.
1798   #  To support the latter case, we have to write
1799   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1800   #  so the `.' trick is pointless.
1801   mkdir_p='mkdir -p --'
1802 else
1803   # On NextStep and OpenStep, the `mkdir' command does not
1804   # recognize any option.  It will interpret all options as
1805   # directories to create, and then abort because `.' already
1806   # exists.
1807   for d in ./-p ./--version;
1808   do
1809     test -d $d && rmdir $d
1810   done
1811   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1812   if test -f "$ac_aux_dir/mkinstalldirs"; then
1813     mkdir_p='$(mkinstalldirs)'
1814   else
1815     mkdir_p='$(install_sh) -d'
1816   fi
1817 fi
1818
1819 for ac_prog in gawk mawk nawk awk
1820 do
1821   # Extract the first word of "$ac_prog", so it can be a program name with args.
1822 set dummy $ac_prog; ac_word=$2
1823 echo "$as_me:$LINENO: checking for $ac_word" >&5
1824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1825 if test "${ac_cv_prog_AWK+set}" = set; then
1826   echo $ECHO_N "(cached) $ECHO_C" >&6
1827 else
1828   if test -n "$AWK"; then
1829   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1830 else
1831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1832 for as_dir in $PATH
1833 do
1834   IFS=$as_save_IFS
1835   test -z "$as_dir" && as_dir=.
1836   for ac_exec_ext in '' $ac_executable_extensions; do
1837   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1838     ac_cv_prog_AWK="$ac_prog"
1839     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1840     break 2
1841   fi
1842 done
1843 done
1844
1845 fi
1846 fi
1847 AWK=$ac_cv_prog_AWK
1848 if test -n "$AWK"; then
1849   echo "$as_me:$LINENO: result: $AWK" >&5
1850 echo "${ECHO_T}$AWK" >&6
1851 else
1852   echo "$as_me:$LINENO: result: no" >&5
1853 echo "${ECHO_T}no" >&6
1854 fi
1855
1856   test -n "$AWK" && break
1857 done
1858
1859 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1860 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1861 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1862 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1863   echo $ECHO_N "(cached) $ECHO_C" >&6
1864 else
1865   cat >conftest.make <<\_ACEOF
1866 all:
1867         @echo 'ac_maketemp="$(MAKE)"'
1868 _ACEOF
1869 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1870 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1871 if test -n "$ac_maketemp"; then
1872   eval ac_cv_prog_make_${ac_make}_set=yes
1873 else
1874   eval ac_cv_prog_make_${ac_make}_set=no
1875 fi
1876 rm -f conftest.make
1877 fi
1878 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1879   echo "$as_me:$LINENO: result: yes" >&5
1880 echo "${ECHO_T}yes" >&6
1881   SET_MAKE=
1882 else
1883   echo "$as_me:$LINENO: result: no" >&5
1884 echo "${ECHO_T}no" >&6
1885   SET_MAKE="MAKE=${MAKE-make}"
1886 fi
1887
1888 rm -rf .tst 2>/dev/null
1889 mkdir .tst 2>/dev/null
1890 if test -d .tst; then
1891   am__leading_dot=.
1892 else
1893   am__leading_dot=_
1894 fi
1895 rmdir .tst 2>/dev/null
1896
1897 # test to see if srcdir already configured
1898 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1899    test -f $srcdir/config.status; then
1900   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1901 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1902    { (exit 1); exit 1; }; }
1903 fi
1904
1905 # test whether we have cygpath
1906 if test -z "$CYGPATH_W"; then
1907   if (cygpath --version) >/dev/null 2>/dev/null; then
1908     CYGPATH_W='cygpath -w'
1909   else
1910     CYGPATH_W=echo
1911   fi
1912 fi
1913
1914
1915 # Define the identity of the package.
1916  PACKAGE='nfs-utils'
1917  VERSION='1.0.8-rc4'
1918
1919
1920 cat >>confdefs.h <<_ACEOF
1921 #define PACKAGE "$PACKAGE"
1922 _ACEOF
1923
1924
1925 cat >>confdefs.h <<_ACEOF
1926 #define VERSION "$VERSION"
1927 _ACEOF
1928
1929 # Some tools Automake needs.
1930
1931 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1932
1933
1934 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1935
1936
1937 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1938
1939
1940 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1941
1942
1943 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1944
1945 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1946
1947 # Installed binaries are usually stripped using `strip' when the user
1948 # run `make install-strip'.  However `strip' might not be the right
1949 # tool to use in cross-compilation environments, therefore Automake
1950 # will honor the `STRIP' environment variable to overrule this program.
1951 if test "$cross_compiling" != no; then
1952   if test -n "$ac_tool_prefix"; then
1953   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1954 set dummy ${ac_tool_prefix}strip; ac_word=$2
1955 echo "$as_me:$LINENO: checking for $ac_word" >&5
1956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1957 if test "${ac_cv_prog_STRIP+set}" = set; then
1958   echo $ECHO_N "(cached) $ECHO_C" >&6
1959 else
1960   if test -n "$STRIP"; then
1961   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1962 else
1963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1964 for as_dir in $PATH
1965 do
1966   IFS=$as_save_IFS
1967   test -z "$as_dir" && as_dir=.
1968   for ac_exec_ext in '' $ac_executable_extensions; do
1969   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1970     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1971     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1972     break 2
1973   fi
1974 done
1975 done
1976
1977 fi
1978 fi
1979 STRIP=$ac_cv_prog_STRIP
1980 if test -n "$STRIP"; then
1981   echo "$as_me:$LINENO: result: $STRIP" >&5
1982 echo "${ECHO_T}$STRIP" >&6
1983 else
1984   echo "$as_me:$LINENO: result: no" >&5
1985 echo "${ECHO_T}no" >&6
1986 fi
1987
1988 fi
1989 if test -z "$ac_cv_prog_STRIP"; then
1990   ac_ct_STRIP=$STRIP
1991   # Extract the first word of "strip", so it can be a program name with args.
1992 set dummy strip; ac_word=$2
1993 echo "$as_me:$LINENO: checking for $ac_word" >&5
1994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1995 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1996   echo $ECHO_N "(cached) $ECHO_C" >&6
1997 else
1998   if test -n "$ac_ct_STRIP"; then
1999   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2000 else
2001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2002 for as_dir in $PATH
2003 do
2004   IFS=$as_save_IFS
2005   test -z "$as_dir" && as_dir=.
2006   for ac_exec_ext in '' $ac_executable_extensions; do
2007   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2008     ac_cv_prog_ac_ct_STRIP="strip"
2009     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2010     break 2
2011   fi
2012 done
2013 done
2014
2015   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2016 fi
2017 fi
2018 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2019 if test -n "$ac_ct_STRIP"; then
2020   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2021 echo "${ECHO_T}$ac_ct_STRIP" >&6
2022 else
2023   echo "$as_me:$LINENO: result: no" >&5
2024 echo "${ECHO_T}no" >&6
2025 fi
2026
2027   STRIP=$ac_ct_STRIP
2028 else
2029   STRIP="$ac_cv_prog_STRIP"
2030 fi
2031
2032 fi
2033 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2034
2035 # We need awk for the "check" target.  The system "awk" is bad on
2036 # some platforms.
2037 # Always define AMTAR for backward compatibility.
2038
2039 AMTAR=${AMTAR-"${am_missing_run}tar"}
2040
2041 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051 # Check whether --with-release or --without-release was given.
2052 if test "${with_release+set}" = set; then
2053   withval="$with_release"
2054   RELEASE=$withval
2055 else
2056   RELEASE=1
2057 fi;
2058
2059
2060 # Check whether --with-statedir or --without-statedir was given.
2061 if test "${with_statedir+set}" = set; then
2062   withval="$with_statedir"
2063   statedir=$withval
2064 else
2065   statedir=/var/lib/nfs
2066 fi;
2067
2068
2069 # Check whether --with-statduser or --without-statduser was given.
2070 if test "${with_statduser+set}" = set; then
2071   withval="$with_statduser"
2072   statduser=$withval
2073 else
2074   if test "x$cross_compiling" = "xno"; then
2075                 if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
2076                         statduser=rpcuser
2077                 else
2078                         statduser=nobody
2079                 fi
2080         else
2081                 statduser=nobody
2082         fi
2083 fi;
2084
2085 # Check whether --enable-nfsv3 or --disable-nfsv3 was given.
2086 if test "${enable_nfsv3+set}" = set; then
2087   enableval="$enable_nfsv3"
2088   enable_nfsv3=$enableval
2089 else
2090   enable_nfsv3=yes
2091 fi;
2092         if test "$enable_nfsv3" = yes; then
2093
2094 cat >>confdefs.h <<\_ACEOF
2095 #define NFS3_SUPPORTED 1
2096 _ACEOF
2097
2098         else
2099                 enable_nfsv3=
2100         fi
2101
2102 # Check whether --enable-nfsv4 or --disable-nfsv4 was given.
2103 if test "${enable_nfsv4+set}" = set; then
2104   enableval="$enable_nfsv4"
2105   enable_nfsv4=$enableval
2106 else
2107   enable_nfsv4=yes
2108 fi;
2109         if test "$enable_nfsv4" = yes; then
2110
2111 cat >>confdefs.h <<\_ACEOF
2112 #define NFS4_SUPPORTED 1
2113 _ACEOF
2114
2115                 IDMAPD=idmapd
2116         else
2117                 enable_nfsv4=
2118                 IDMAPD=
2119         fi
2120
2121
2122
2123
2124 if test "$enable_nfsv4" = "yes"; then
2125   CONFIG_NFSV4_TRUE=
2126   CONFIG_NFSV4_FALSE='#'
2127 else
2128   CONFIG_NFSV4_TRUE='#'
2129   CONFIG_NFSV4_FALSE=
2130 fi
2131
2132 # Check whether --enable-gss or --disable-gss was given.
2133 if test "${enable_gss+set}" = set; then
2134   enableval="$enable_gss"
2135   enable_gss=$enableval
2136 else
2137   enable_gss=yes
2138 fi;
2139         if test "$enable_gss" = yes; then
2140
2141 cat >>confdefs.h <<\_ACEOF
2142 #define GSS_SUPPORTED 1
2143 _ACEOF
2144
2145                 GSSD=gssd
2146                 SVCGSSD=svcgssd
2147         else
2148                 enable_gss=
2149                 GSSD=
2150                 SVCGSSD=
2151         fi
2152
2153
2154
2155
2156
2157 if test "$enable_gss" = "yes"; then
2158   CONFIG_GSS_TRUE=
2159   CONFIG_GSS_FALSE='#'
2160 else
2161   CONFIG_GSS_TRUE='#'
2162   CONFIG_GSS_FALSE=
2163 fi
2164
2165 # Check whether --enable-kprefix or --disable-kprefix was given.
2166 if test "${enable_kprefix+set}" = set; then
2167   enableval="$enable_kprefix"
2168   test "$enableval" = "yes" && kprefix=k
2169 else
2170   kprefix=
2171 fi;
2172
2173 # Check whether --enable-secure-statd or --disable-secure-statd was given.
2174 if test "${enable_secure_statd+set}" = set; then
2175   enableval="$enable_secure_statd"
2176   test "$enableval" = "yes" && secure_statd=yes
2177 else
2178   secure_statd=no
2179 fi;
2180         if test "$secure_statd" = yes; then
2181
2182 cat >>confdefs.h <<\_ACEOF
2183 #define RESTRICTED_STATD 1
2184 _ACEOF
2185
2186         fi
2187
2188 # Check whether --enable-rquotad or --disable-rquotad was given.
2189 if test "${enable_rquotad+set}" = set; then
2190   enableval="$enable_rquotad"
2191   enable_rquotad=$enableval
2192 else
2193   enable_rquotad=yes
2194 fi;
2195         if test "$enable_rquotad" = yes; then
2196                 RQUOTAD=rquotad
2197         else
2198                 RQUOTAD=
2199         fi
2200
2201
2202 if test "$enable_rquotad" = "yes"; then
2203   CONFIG_RQUOTAD_TRUE=
2204   CONFIG_RQUOTAD_FALSE='#'
2205 else
2206   CONFIG_RQUOTAD_TRUE='#'
2207   CONFIG_RQUOTAD_FALSE=
2208 fi
2209
2210
2211 # Check whether user wants TCP wrappers support
2212 DEPDIR="${am__leading_dot}deps"
2213
2214           ac_config_commands="$ac_config_commands depfiles"
2215
2216
2217 am_make=${MAKE-make}
2218 cat > confinc << 'END'
2219 am__doit:
2220         @echo done
2221 .PHONY: am__doit
2222 END
2223 # If we don't find an include directive, just comment out the code.
2224 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2225 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2226 am__include="#"
2227 am__quote=
2228 _am_result=none
2229 # First try GNU make style include.
2230 echo "include confinc" > confmf
2231 # We grep out `Entering directory' and `Leaving directory'
2232 # messages which can occur if `w' ends up in MAKEFLAGS.
2233 # In particular we don't look at `^make:' because GNU make might
2234 # be invoked under some other name (usually "gmake"), in which
2235 # case it prints its new name instead of `make'.
2236 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2237    am__include=include
2238    am__quote=
2239    _am_result=GNU
2240 fi
2241 # Now try BSD make style include.
2242 if test "$am__include" = "#"; then
2243    echo '.include "confinc"' > confmf
2244    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2245       am__include=.include
2246       am__quote="\""
2247       _am_result=BSD
2248    fi
2249 fi
2250
2251
2252 echo "$as_me:$LINENO: result: $_am_result" >&5
2253 echo "${ECHO_T}$_am_result" >&6
2254 rm -f confinc confmf
2255
2256 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2257 if test "${enable_dependency_tracking+set}" = set; then
2258   enableval="$enable_dependency_tracking"
2259
2260 fi;
2261 if test "x$enable_dependency_tracking" != xno; then
2262   am_depcomp="$ac_aux_dir/depcomp"
2263   AMDEPBACKSLASH='\'
2264 fi
2265
2266
2267 if test "x$enable_dependency_tracking" != xno; then
2268   AMDEP_TRUE=
2269   AMDEP_FALSE='#'
2270 else
2271   AMDEP_TRUE='#'
2272   AMDEP_FALSE=
2273 fi
2274
2275
2276
2277 ac_ext=c
2278 ac_cpp='$CPP $CPPFLAGS'
2279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2282 if test -n "$ac_tool_prefix"; then
2283   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2284 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2285 echo "$as_me:$LINENO: checking for $ac_word" >&5
2286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2287 if test "${ac_cv_prog_CC+set}" = set; then
2288   echo $ECHO_N "(cached) $ECHO_C" >&6
2289 else
2290   if test -n "$CC"; then
2291   ac_cv_prog_CC="$CC" # Let the user override the test.
2292 else
2293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294 for as_dir in $PATH
2295 do
2296   IFS=$as_save_IFS
2297   test -z "$as_dir" && as_dir=.
2298   for ac_exec_ext in '' $ac_executable_extensions; do
2299   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2300     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2301     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2302     break 2
2303   fi
2304 done
2305 done
2306
2307 fi
2308 fi
2309 CC=$ac_cv_prog_CC
2310 if test -n "$CC"; then
2311   echo "$as_me:$LINENO: result: $CC" >&5
2312 echo "${ECHO_T}$CC" >&6
2313 else
2314   echo "$as_me:$LINENO: result: no" >&5
2315 echo "${ECHO_T}no" >&6
2316 fi
2317
2318 fi
2319 if test -z "$ac_cv_prog_CC"; then
2320   ac_ct_CC=$CC
2321   # Extract the first word of "gcc", so it can be a program name with args.
2322 set dummy gcc; ac_word=$2
2323 echo "$as_me:$LINENO: checking for $ac_word" >&5
2324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2325 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2326   echo $ECHO_N "(cached) $ECHO_C" >&6
2327 else
2328   if test -n "$ac_ct_CC"; then
2329   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2330 else
2331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2332 for as_dir in $PATH
2333 do
2334   IFS=$as_save_IFS
2335   test -z "$as_dir" && as_dir=.
2336   for ac_exec_ext in '' $ac_executable_extensions; do
2337   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2338     ac_cv_prog_ac_ct_CC="gcc"
2339     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2340     break 2
2341   fi
2342 done
2343 done
2344
2345 fi
2346 fi
2347 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2348 if test -n "$ac_ct_CC"; then
2349   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2350 echo "${ECHO_T}$ac_ct_CC" >&6
2351 else
2352   echo "$as_me:$LINENO: result: no" >&5
2353 echo "${ECHO_T}no" >&6
2354 fi
2355
2356   CC=$ac_ct_CC
2357 else
2358   CC="$ac_cv_prog_CC"
2359 fi
2360
2361 if test -z "$CC"; then
2362   if test -n "$ac_tool_prefix"; then
2363   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2364 set dummy ${ac_tool_prefix}cc; ac_word=$2
2365 echo "$as_me:$LINENO: checking for $ac_word" >&5
2366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2367 if test "${ac_cv_prog_CC+set}" = set; then
2368   echo $ECHO_N "(cached) $ECHO_C" >&6
2369 else
2370   if test -n "$CC"; then
2371   ac_cv_prog_CC="$CC" # Let the user override the test.
2372 else
2373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2374 for as_dir in $PATH
2375 do
2376   IFS=$as_save_IFS
2377   test -z "$as_dir" && as_dir=.
2378   for ac_exec_ext in '' $ac_executable_extensions; do
2379   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2380     ac_cv_prog_CC="${ac_tool_prefix}cc"
2381     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2382     break 2
2383   fi
2384 done
2385 done
2386
2387 fi
2388 fi
2389 CC=$ac_cv_prog_CC
2390 if test -n "$CC"; then
2391   echo "$as_me:$LINENO: result: $CC" >&5
2392 echo "${ECHO_T}$CC" >&6
2393 else
2394   echo "$as_me:$LINENO: result: no" >&5
2395 echo "${ECHO_T}no" >&6
2396 fi
2397
2398 fi
2399 if test -z "$ac_cv_prog_CC"; then
2400   ac_ct_CC=$CC
2401   # Extract the first word of "cc", so it can be a program name with args.
2402 set dummy cc; ac_word=$2
2403 echo "$as_me:$LINENO: checking for $ac_word" >&5
2404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2405 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2406   echo $ECHO_N "(cached) $ECHO_C" >&6
2407 else
2408   if test -n "$ac_ct_CC"; then
2409   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2410 else
2411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2412 for as_dir in $PATH
2413 do
2414   IFS=$as_save_IFS
2415   test -z "$as_dir" && as_dir=.
2416   for ac_exec_ext in '' $ac_executable_extensions; do
2417   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2418     ac_cv_prog_ac_ct_CC="cc"
2419     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2420     break 2
2421   fi
2422 done
2423 done
2424
2425 fi
2426 fi
2427 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2428 if test -n "$ac_ct_CC"; then
2429   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2430 echo "${ECHO_T}$ac_ct_CC" >&6
2431 else
2432   echo "$as_me:$LINENO: result: no" >&5
2433 echo "${ECHO_T}no" >&6
2434 fi
2435
2436   CC=$ac_ct_CC
2437 else
2438   CC="$ac_cv_prog_CC"
2439 fi
2440
2441 fi
2442 if test -z "$CC"; then
2443   # Extract the first word of "cc", so it can be a program name with args.
2444 set dummy cc; ac_word=$2
2445 echo "$as_me:$LINENO: checking for $ac_word" >&5
2446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2447 if test "${ac_cv_prog_CC+set}" = set; then
2448   echo $ECHO_N "(cached) $ECHO_C" >&6
2449 else
2450   if test -n "$CC"; then
2451   ac_cv_prog_CC="$CC" # Let the user override the test.
2452 else
2453   ac_prog_rejected=no
2454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2455 for as_dir in $PATH
2456 do
2457   IFS=$as_save_IFS
2458   test -z "$as_dir" && as_dir=.
2459   for ac_exec_ext in '' $ac_executable_extensions; do
2460   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2461     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2462        ac_prog_rejected=yes
2463        continue
2464      fi
2465     ac_cv_prog_CC="cc"
2466     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2467     break 2
2468   fi
2469 done
2470 done
2471
2472 if test $ac_prog_rejected = yes; then
2473   # We found a bogon in the path, so make sure we never use it.
2474   set dummy $ac_cv_prog_CC
2475   shift
2476   if test $# != 0; then
2477     # We chose a different compiler from the bogus one.
2478     # However, it has the same basename, so the bogon will be chosen
2479     # first if we set CC to just the basename; use the full file name.
2480     shift
2481     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2482   fi
2483 fi
2484 fi
2485 fi
2486 CC=$ac_cv_prog_CC
2487 if test -n "$CC"; then
2488   echo "$as_me:$LINENO: result: $CC" >&5
2489 echo "${ECHO_T}$CC" >&6
2490 else
2491   echo "$as_me:$LINENO: result: no" >&5
2492 echo "${ECHO_T}no" >&6
2493 fi
2494
2495 fi
2496 if test -z "$CC"; then
2497   if test -n "$ac_tool_prefix"; then
2498   for ac_prog in cl
2499   do
2500     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2501 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2502 echo "$as_me:$LINENO: checking for $ac_word" >&5
2503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2504 if test "${ac_cv_prog_CC+set}" = set; then
2505   echo $ECHO_N "(cached) $ECHO_C" >&6
2506 else
2507   if test -n "$CC"; then
2508   ac_cv_prog_CC="$CC" # Let the user override the test.
2509 else
2510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511 for as_dir in $PATH
2512 do
2513   IFS=$as_save_IFS
2514   test -z "$as_dir" && as_dir=.
2515   for ac_exec_ext in '' $ac_executable_extensions; do
2516   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2517     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2518     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2519     break 2
2520   fi
2521 done
2522 done
2523
2524 fi
2525 fi
2526 CC=$ac_cv_prog_CC
2527 if test -n "$CC"; then
2528   echo "$as_me:$LINENO: result: $CC" >&5
2529 echo "${ECHO_T}$CC" >&6
2530 else
2531   echo "$as_me:$LINENO: result: no" >&5
2532 echo "${ECHO_T}no" >&6
2533 fi
2534
2535     test -n "$CC" && break
2536   done
2537 fi
2538 if test -z "$CC"; then
2539   ac_ct_CC=$CC
2540   for ac_prog in cl
2541 do
2542   # Extract the first word of "$ac_prog", so it can be a program name with args.
2543 set dummy $ac_prog; ac_word=$2
2544 echo "$as_me:$LINENO: checking for $ac_word" >&5
2545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2546 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2547   echo $ECHO_N "(cached) $ECHO_C" >&6
2548 else
2549   if test -n "$ac_ct_CC"; then
2550   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2551 else
2552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2553 for as_dir in $PATH
2554 do
2555   IFS=$as_save_IFS
2556   test -z "$as_dir" && as_dir=.
2557   for ac_exec_ext in '' $ac_executable_extensions; do
2558   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2559     ac_cv_prog_ac_ct_CC="$ac_prog"
2560     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2561     break 2
2562   fi
2563 done
2564 done
2565
2566 fi
2567 fi
2568 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2569 if test -n "$ac_ct_CC"; then
2570   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2571 echo "${ECHO_T}$ac_ct_CC" >&6
2572 else
2573   echo "$as_me:$LINENO: result: no" >&5
2574 echo "${ECHO_T}no" >&6
2575 fi
2576
2577   test -n "$ac_ct_CC" && break
2578 done
2579
2580   CC=$ac_ct_CC
2581 fi
2582
2583 fi
2584
2585
2586 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2587 See \`config.log' for more details." >&5
2588 echo "$as_me: error: no acceptable C compiler found in \$PATH
2589 See \`config.log' for more details." >&2;}
2590    { (exit 1); exit 1; }; }
2591
2592 # Provide some information about the compiler.
2593 echo "$as_me:$LINENO:" \
2594      "checking for C compiler version" >&5
2595 ac_compiler=`set X $ac_compile; echo $2`
2596 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2597   (eval $ac_compiler --version </dev/null >&5) 2>&5
2598   ac_status=$?
2599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600   (exit $ac_status); }
2601 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2602   (eval $ac_compiler -v </dev/null >&5) 2>&5
2603   ac_status=$?
2604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605   (exit $ac_status); }
2606 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2607   (eval $ac_compiler -V </dev/null >&5) 2>&5
2608   ac_status=$?
2609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610   (exit $ac_status); }
2611
2612 cat >conftest.$ac_ext <<_ACEOF
2613 /* confdefs.h.  */
2614 _ACEOF
2615 cat confdefs.h >>conftest.$ac_ext
2616 cat >>conftest.$ac_ext <<_ACEOF
2617 /* end confdefs.h.  */
2618
2619 int
2620 main ()
2621 {
2622
2623   ;
2624   return 0;
2625 }
2626 _ACEOF
2627 ac_clean_files_save=$ac_clean_files
2628 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2629 # Try to create an executable without -o first, disregard a.out.
2630 # It will help us diagnose broken compilers, and finding out an intuition
2631 # of exeext.
2632 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2633 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2634 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2635 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2636   (eval $ac_link_default) 2>&5
2637   ac_status=$?
2638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639   (exit $ac_status); }; then
2640   # Find the output, starting from the most likely.  This scheme is
2641 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2642 # resort.
2643
2644 # Be careful to initialize this variable, since it used to be cached.
2645 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2646 ac_cv_exeext=
2647 # b.out is created by i960 compilers.
2648 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2649 do
2650   test -f "$ac_file" || continue
2651   case $ac_file in
2652     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2653         ;;
2654     conftest.$ac_ext )
2655         # This is the source file.
2656         ;;
2657     [ab].out )
2658         # We found the default executable, but exeext='' is most
2659         # certainly right.
2660         break;;
2661     *.* )
2662         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2663         # FIXME: I believe we export ac_cv_exeext for Libtool,
2664         # but it would be cool to find out if it's true.  Does anybody
2665         # maintain Libtool? --akim.
2666         export ac_cv_exeext
2667         break;;
2668     * )
2669         break;;
2670   esac
2671 done
2672 else
2673   echo "$as_me: failed program was:" >&5
2674 sed 's/^/| /' conftest.$ac_ext >&5
2675
2676 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2677 See \`config.log' for more details." >&5
2678 echo "$as_me: error: C compiler cannot create executables
2679 See \`config.log' for more details." >&2;}
2680    { (exit 77); exit 77; }; }
2681 fi
2682
2683 ac_exeext=$ac_cv_exeext
2684 echo "$as_me:$LINENO: result: $ac_file" >&5
2685 echo "${ECHO_T}$ac_file" >&6
2686
2687 # Check the compiler produces executables we can run.  If not, either
2688 # the compiler is broken, or we cross compile.
2689 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2690 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2691 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2692 # If not cross compiling, check that we can run a simple program.
2693 if test "$cross_compiling" != yes; then
2694   if { ac_try='./$ac_file'
2695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2696   (eval $ac_try) 2>&5
2697   ac_status=$?
2698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699   (exit $ac_status); }; }; then
2700     cross_compiling=no
2701   else
2702     if test "$cross_compiling" = maybe; then
2703         cross_compiling=yes
2704     else
2705         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2706 If you meant to cross compile, use \`--host'.
2707 See \`config.log' for more details." >&5
2708 echo "$as_me: error: cannot run C compiled programs.
2709 If you meant to cross compile, use \`--host'.
2710 See \`config.log' for more details." >&2;}
2711    { (exit 1); exit 1; }; }
2712     fi
2713   fi
2714 fi
2715 echo "$as_me:$LINENO: result: yes" >&5
2716 echo "${ECHO_T}yes" >&6
2717
2718 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2719 ac_clean_files=$ac_clean_files_save
2720 # Check the compiler produces executables we can run.  If not, either
2721 # the compiler is broken, or we cross compile.
2722 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2723 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2724 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2725 echo "${ECHO_T}$cross_compiling" >&6
2726
2727 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2728 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2730   (eval $ac_link) 2>&5
2731   ac_status=$?
2732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733   (exit $ac_status); }; then
2734   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2735 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2736 # work properly (i.e., refer to `conftest.exe'), while it won't with
2737 # `rm'.
2738 for ac_file in conftest.exe conftest conftest.*; do
2739   test -f "$ac_file" || continue
2740   case $ac_file in
2741     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2742     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2743           export ac_cv_exeext
2744           break;;
2745     * ) break;;
2746   esac
2747 done
2748 else
2749   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2750 See \`config.log' for more details." >&5
2751 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2752 See \`config.log' for more details." >&2;}
2753    { (exit 1); exit 1; }; }
2754 fi
2755
2756 rm -f conftest$ac_cv_exeext
2757 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2758 echo "${ECHO_T}$ac_cv_exeext" >&6
2759
2760 rm -f conftest.$ac_ext
2761 EXEEXT=$ac_cv_exeext
2762 ac_exeext=$EXEEXT
2763 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2764 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2765 if test "${ac_cv_objext+set}" = set; then
2766   echo $ECHO_N "(cached) $ECHO_C" >&6
2767 else
2768   cat >conftest.$ac_ext <<_ACEOF
2769 /* confdefs.h.  */
2770 _ACEOF
2771 cat confdefs.h >>conftest.$ac_ext
2772 cat >>conftest.$ac_ext <<_ACEOF
2773 /* end confdefs.h.  */
2774
2775 int
2776 main ()
2777 {
2778
2779   ;
2780   return 0;
2781 }
2782 _ACEOF
2783 rm -f conftest.o conftest.obj
2784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2785   (eval $ac_compile) 2>&5
2786   ac_status=$?
2787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788   (exit $ac_status); }; then
2789   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2790   case $ac_file in
2791     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2792     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2793        break;;
2794   esac
2795 done
2796 else
2797   echo "$as_me: failed program was:" >&5
2798 sed 's/^/| /' conftest.$ac_ext >&5
2799
2800 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2801 See \`config.log' for more details." >&5
2802 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2803 See \`config.log' for more details." >&2;}
2804    { (exit 1); exit 1; }; }
2805 fi
2806
2807 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2808 fi
2809 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2810 echo "${ECHO_T}$ac_cv_objext" >&6
2811 OBJEXT=$ac_cv_objext
2812 ac_objext=$OBJEXT
2813 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2814 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2815 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2816   echo $ECHO_N "(cached) $ECHO_C" >&6
2817 else
2818   cat >conftest.$ac_ext <<_ACEOF
2819 /* confdefs.h.  */
2820 _ACEOF
2821 cat confdefs.h >>conftest.$ac_ext
2822 cat >>conftest.$ac_ext <<_ACEOF
2823 /* end confdefs.h.  */
2824
2825 int
2826 main ()
2827 {
2828 #ifndef __GNUC__
2829        choke me
2830 #endif
2831
2832   ;
2833   return 0;
2834 }
2835 _ACEOF
2836 rm -f conftest.$ac_objext
2837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2838   (eval $ac_compile) 2>conftest.er1
2839   ac_status=$?
2840   grep -v '^ *+' conftest.er1 >conftest.err
2841   rm -f conftest.er1
2842   cat conftest.err >&5
2843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844   (exit $ac_status); } &&
2845          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847   (eval $ac_try) 2>&5
2848   ac_status=$?
2849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850   (exit $ac_status); }; } &&
2851          { ac_try='test -s conftest.$ac_objext'
2852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853   (eval $ac_try) 2>&5
2854   ac_status=$?
2855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856   (exit $ac_status); }; }; then
2857   ac_compiler_gnu=yes
2858 else
2859   echo "$as_me: failed program was:" >&5
2860 sed 's/^/| /' conftest.$ac_ext >&5
2861
2862 ac_compiler_gnu=no
2863 fi
2864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2865 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2866
2867 fi
2868 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2869 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2870 GCC=`test $ac_compiler_gnu = yes && echo yes`
2871 ac_test_CFLAGS=${CFLAGS+set}
2872 ac_save_CFLAGS=$CFLAGS
2873 CFLAGS="-g"
2874 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2875 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2876 if test "${ac_cv_prog_cc_g+set}" = set; then
2877   echo $ECHO_N "(cached) $ECHO_C" >&6
2878 else
2879   cat >conftest.$ac_ext <<_ACEOF
2880 /* confdefs.h.  */
2881 _ACEOF
2882 cat confdefs.h >>conftest.$ac_ext
2883 cat >>conftest.$ac_ext <<_ACEOF
2884 /* end confdefs.h.  */
2885
2886 int
2887 main ()
2888 {
2889
2890   ;
2891   return 0;
2892 }
2893 _ACEOF
2894 rm -f conftest.$ac_objext
2895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2896   (eval $ac_compile) 2>conftest.er1
2897   ac_status=$?
2898   grep -v '^ *+' conftest.er1 >conftest.err
2899   rm -f conftest.er1
2900   cat conftest.err >&5
2901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902   (exit $ac_status); } &&
2903          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2905   (eval $ac_try) 2>&5
2906   ac_status=$?
2907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908   (exit $ac_status); }; } &&
2909          { ac_try='test -s conftest.$ac_objext'
2910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2911   (eval $ac_try) 2>&5
2912   ac_status=$?
2913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914   (exit $ac_status); }; }; then
2915   ac_cv_prog_cc_g=yes
2916 else
2917   echo "$as_me: failed program was:" >&5
2918 sed 's/^/| /' conftest.$ac_ext >&5
2919
2920 ac_cv_prog_cc_g=no
2921 fi
2922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2923 fi
2924 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2925 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2926 if test "$ac_test_CFLAGS" = set; then
2927   CFLAGS=$ac_save_CFLAGS
2928 elif test $ac_cv_prog_cc_g = yes; then
2929   if test "$GCC" = yes; then
2930     CFLAGS="-g -O2"
2931   else
2932     CFLAGS="-g"
2933   fi
2934 else
2935   if test "$GCC" = yes; then
2936     CFLAGS="-O2"
2937   else
2938     CFLAGS=
2939   fi
2940 fi
2941 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2942 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2943 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2944   echo $ECHO_N "(cached) $ECHO_C" >&6
2945 else
2946   ac_cv_prog_cc_stdc=no
2947 ac_save_CC=$CC
2948 cat >conftest.$ac_ext <<_ACEOF
2949 /* confdefs.h.  */
2950 _ACEOF
2951 cat confdefs.h >>conftest.$ac_ext
2952 cat >>conftest.$ac_ext <<_ACEOF
2953 /* end confdefs.h.  */
2954 #include <stdarg.h>
2955 #include <stdio.h>
2956 #include <sys/types.h>
2957 #include <sys/stat.h>
2958 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2959 struct buf { int x; };
2960 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2961 static char *e (p, i)
2962      char **p;
2963      int i;
2964 {
2965   return p[i];
2966 }
2967 static char *f (char * (*g) (char **, int), char **p, ...)
2968 {
2969   char *s;
2970   va_list v;
2971   va_start (v,p);
2972   s = g (p, va_arg (v,int));
2973   va_end (v);
2974   return s;
2975 }
2976
2977 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2978    function prototypes and stuff, but not '\xHH' hex character constants.
2979    These don't provoke an error unfortunately, instead are silently treated
2980    as 'x'.  The following induces an error, until -std1 is added to get
2981    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2982    array size at least.  It's necessary to write '\x00'==0 to get something
2983    that's true only with -std1.  */
2984 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2985
2986 int test (int i, double x);
2987 struct s1 {int (*f) (int a);};
2988 struct s2 {int (*f) (double a);};
2989 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2990 int argc;
2991 char **argv;
2992 int
2993 main ()
2994 {
2995 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2996   ;
2997   return 0;
2998 }
2999 _ACEOF
3000 # Don't try gcc -ansi; that turns off useful extensions and
3001 # breaks some systems' header files.
3002 # AIX                   -qlanglvl=ansi
3003 # Ultrix and OSF/1      -std1
3004 # HP-UX 10.20 and later -Ae
3005 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3006 # SVR4                  -Xc -D__EXTENSIONS__
3007 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3008 do
3009   CC="$ac_save_CC $ac_arg"
3010   rm -f conftest.$ac_objext
3011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3012   (eval $ac_compile) 2>conftest.er1
3013   ac_status=$?
3014   grep -v '^ *+' conftest.er1 >conftest.err
3015   rm -f conftest.er1
3016   cat conftest.err >&5
3017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018   (exit $ac_status); } &&
3019          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3021   (eval $ac_try) 2>&5
3022   ac_status=$?
3023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024   (exit $ac_status); }; } &&
3025          { ac_try='test -s conftest.$ac_objext'
3026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3027   (eval $ac_try) 2>&5
3028   ac_status=$?
3029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030   (exit $ac_status); }; }; then
3031   ac_cv_prog_cc_stdc=$ac_arg
3032 break
3033 else
3034   echo "$as_me: failed program was:" >&5
3035 sed 's/^/| /' conftest.$ac_ext >&5
3036
3037 fi
3038 rm -f conftest.err conftest.$ac_objext
3039 done
3040 rm -f conftest.$ac_ext conftest.$ac_objext
3041 CC=$ac_save_CC
3042
3043 fi
3044
3045 case "x$ac_cv_prog_cc_stdc" in
3046   x|xno)
3047     echo "$as_me:$LINENO: result: none needed" >&5
3048 echo "${ECHO_T}none needed" >&6 ;;
3049   *)
3050     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3051 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3052     CC="$CC $ac_cv_prog_cc_stdc" ;;
3053 esac
3054
3055 # Some people use a C++ compiler to compile C.  Since we use `exit',
3056 # in C++ we need to declare it.  In case someone uses the same compiler
3057 # for both compiling C and C++ we need to have the C++ compiler decide
3058 # the declaration of exit, since it's the most demanding environment.
3059 cat >conftest.$ac_ext <<_ACEOF
3060 #ifndef __cplusplus
3061   choke me
3062 #endif
3063 _ACEOF
3064 rm -f conftest.$ac_objext
3065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3066   (eval $ac_compile) 2>conftest.er1
3067   ac_status=$?
3068   grep -v '^ *+' conftest.er1 >conftest.err
3069   rm -f conftest.er1
3070   cat conftest.err >&5
3071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072   (exit $ac_status); } &&
3073          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3075   (eval $ac_try) 2>&5
3076   ac_status=$?
3077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078   (exit $ac_status); }; } &&
3079          { ac_try='test -s conftest.$ac_objext'
3080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3081   (eval $ac_try) 2>&5
3082   ac_status=$?
3083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084   (exit $ac_status); }; }; then
3085   for ac_declaration in \
3086    '' \
3087    'extern "C" void std::exit (int) throw (); using std::exit;' \
3088    'extern "C" void std::exit (int); using std::exit;' \
3089    'extern "C" void exit (int) throw ();' \
3090    'extern "C" void exit (int);' \
3091    'void exit (int);'
3092 do
3093   cat >conftest.$ac_ext <<_ACEOF
3094 /* confdefs.h.  */
3095 _ACEOF
3096 cat confdefs.h >>conftest.$ac_ext
3097 cat >>conftest.$ac_ext <<_ACEOF
3098 /* end confdefs.h.  */
3099 $ac_declaration
3100 #include <stdlib.h>
3101 int
3102 main ()
3103 {
3104 exit (42);
3105   ;
3106   return 0;
3107 }
3108 _ACEOF
3109 rm -f conftest.$ac_objext
3110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3111   (eval $ac_compile) 2>conftest.er1
3112   ac_status=$?
3113   grep -v '^ *+' conftest.er1 >conftest.err
3114   rm -f conftest.er1
3115   cat conftest.err >&5
3116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117   (exit $ac_status); } &&
3118          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3120   (eval $ac_try) 2>&5
3121   ac_status=$?
3122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123   (exit $ac_status); }; } &&
3124          { ac_try='test -s conftest.$ac_objext'
3125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3126   (eval $ac_try) 2>&5
3127   ac_status=$?
3128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129   (exit $ac_status); }; }; then
3130   :
3131 else
3132   echo "$as_me: failed program was:" >&5
3133 sed 's/^/| /' conftest.$ac_ext >&5
3134
3135 continue
3136 fi
3137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3138   cat >conftest.$ac_ext <<_ACEOF
3139 /* confdefs.h.  */
3140 _ACEOF
3141 cat confdefs.h >>conftest.$ac_ext
3142 cat >>conftest.$ac_ext <<_ACEOF
3143 /* end confdefs.h.  */
3144 $ac_declaration
3145 int
3146 main ()
3147 {
3148 exit (42);
3149   ;
3150   return 0;
3151 }
3152 _ACEOF
3153 rm -f conftest.$ac_objext
3154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3155   (eval $ac_compile) 2>conftest.er1
3156   ac_status=$?
3157   grep -v '^ *+' conftest.er1 >conftest.err
3158   rm -f conftest.er1
3159   cat conftest.err >&5
3160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161   (exit $ac_status); } &&
3162          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3164   (eval $ac_try) 2>&5
3165   ac_status=$?
3166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167   (exit $ac_status); }; } &&
3168          { ac_try='test -s conftest.$ac_objext'
3169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3170   (eval $ac_try) 2>&5
3171   ac_status=$?
3172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173   (exit $ac_status); }; }; then
3174   break
3175 else
3176   echo "$as_me: failed program was:" >&5
3177 sed 's/^/| /' conftest.$ac_ext >&5
3178
3179 fi
3180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3181 done
3182 rm -f conftest*
3183 if test -n "$ac_declaration"; then
3184   echo '#ifdef __cplusplus' >>confdefs.h
3185   echo $ac_declaration      >>confdefs.h
3186   echo '#endif'             >>confdefs.h
3187 fi
3188
3189 else
3190   echo "$as_me: failed program was:" >&5
3191 sed 's/^/| /' conftest.$ac_ext >&5
3192
3193 fi
3194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3195 ac_ext=c
3196 ac_cpp='$CPP $CPPFLAGS'
3197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3200
3201 depcc="$CC"   am_compiler_list=
3202
3203 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3204 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3205 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3206   echo $ECHO_N "(cached) $ECHO_C" >&6
3207 else
3208   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3209   # We make a subdir and do the tests there.  Otherwise we can end up
3210   # making bogus files that we don't know about and never remove.  For
3211   # instance it was reported that on HP-UX the gcc test will end up
3212   # making a dummy file named `D' -- because `-MD' means `put the output
3213   # in D'.
3214   mkdir conftest.dir
3215   # Copy depcomp to subdir because otherwise we won't find it if we're
3216   # using a relative directory.
3217   cp "$am_depcomp" conftest.dir
3218   cd conftest.dir
3219   # We will build objects and dependencies in a subdirectory because
3220   # it helps to detect inapplicable dependency modes.  For instance
3221   # both Tru64's cc and ICC support -MD to output dependencies as a
3222   # side effect of compilation, but ICC will put the dependencies in
3223   # the current directory while Tru64 will put them in the object
3224   # directory.
3225   mkdir sub
3226
3227   am_cv_CC_dependencies_compiler_type=none
3228   if test "$am_compiler_list" = ""; then
3229      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3230   fi
3231   for depmode in $am_compiler_list; do
3232     # Setup a source with many dependencies, because some compilers
3233     # like to wrap large dependency lists on column 80 (with \), and
3234     # we should not choose a depcomp mode which is confused by this.
3235     #
3236     # We need to recreate these files for each test, as the compiler may
3237     # overwrite some of them when testing with obscure command lines.
3238     # This happens at least with the AIX C compiler.
3239     : > sub/conftest.c
3240     for i in 1 2 3 4 5 6; do
3241       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3242       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3243       # Solaris 8's {/usr,}/bin/sh.
3244       touch sub/conftst$i.h
3245     done
3246     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3247
3248     case $depmode in
3249     nosideeffect)
3250       # after this tag, mechanisms are not by side-effect, so they'll
3251       # only be used when explicitly requested
3252       if test "x$enable_dependency_tracking" = xyes; then
3253         continue
3254       else
3255         break
3256       fi
3257       ;;
3258     none) break ;;
3259     esac
3260     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3261     # mode.  It turns out that the SunPro C++ compiler does not properly
3262     # handle `-M -o', and we need to detect this.
3263     if depmode=$depmode \
3264        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3265        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3266        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3267          >/dev/null 2>conftest.err &&
3268        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3269        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3270        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3271       # icc doesn't choke on unknown options, it will just issue warnings
3272       # or remarks (even with -Werror).  So we grep stderr for any message
3273       # that says an option was ignored or not supported.
3274       # When given -MP, icc 7.0 and 7.1 complain thusly:
3275       #   icc: Command line warning: ignoring option '-M'; no argument required
3276       # The diagnosis changed in icc 8.0:
3277       #   icc: Command line remark: option '-MP' not supported
3278       if (grep 'ignoring option' conftest.err ||
3279           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3280         am_cv_CC_dependencies_compiler_type=$depmode
3281         break
3282       fi
3283     fi
3284   done
3285
3286   cd ..
3287   rm -rf conftest.dir
3288 else
3289   am_cv_CC_dependencies_compiler_type=none
3290 fi
3291
3292 fi
3293 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3294 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3295 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3296
3297
3298
3299 if
3300   test "x$enable_dependency_tracking" != xno \
3301   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3302   am__fastdepCC_TRUE=
3303   am__fastdepCC_FALSE='#'
3304 else
3305   am__fastdepCC_TRUE='#'
3306   am__fastdepCC_FALSE=
3307 fi
3308
3309
3310
3311
3312   TCPW_MSG="no"
3313
3314 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
3315 if test "${with_tcp_wrappers+set}" = set; then
3316   withval="$with_tcp_wrappers"
3317
3318         if test "x$withval" != "xno" ; then
3319             saved_LIBS="$LIBS"
3320             saved_LDFLAGS="$LDFLAGS"
3321             saved_CPPFLAGS="$CPPFLAGS"
3322             if test -n "${withval}" -a "${withval}" != "yes"; then
3323                 if test -d "${withval}/lib"; then
3324                     if test -n "${need_dash_r}"; then
3325                         LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
3326                     else
3327                         LDFLAGS="-L${withval}/lib ${LDFLAGS}"
3328                     fi
3329                 else
3330                     if test -n "${need_dash_r}"; then
3331                         LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
3332                     else
3333                         LDFLAGS="-L${withval} ${LDFLAGS}"
3334                     fi
3335                 fi
3336                 if test -d "${withval}/include"; then
3337                     CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
3338                 else
3339                     CPPFLAGS="-I${withval} ${CPPFLAGS}"
3340                 fi
3341             fi
3342             LIBWRAP="-lwrap"
3343             LIBS="$LIBWRAP $LIBS"
3344             echo "$as_me:$LINENO: checking for libwrap" >&5
3345 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
3346             cat >conftest.$ac_ext <<_ACEOF
3347 /* confdefs.h.  */
3348 _ACEOF
3349 cat confdefs.h >>conftest.$ac_ext
3350 cat >>conftest.$ac_ext <<_ACEOF
3351 /* end confdefs.h.  */
3352
3353                 #include <tcpd.h>
3354                 int deny_severity = 0, allow_severity = 0;
3355
3356 int
3357 main ()
3358 {
3359 hosts_access(0);
3360   ;
3361   return 0;
3362 }
3363 _ACEOF
3364 rm -f conftest.$ac_objext conftest$ac_exeext
3365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3366   (eval $ac_link) 2>conftest.er1
3367   ac_status=$?
3368   grep -v '^ *+' conftest.er1 >conftest.err
3369   rm -f conftest.er1
3370   cat conftest.err >&5
3371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372   (exit $ac_status); } &&
3373          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3375   (eval $ac_try) 2>&5
3376   ac_status=$?
3377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378   (exit $ac_status); }; } &&
3379          { ac_try='test -s conftest$ac_exeext'
3380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3381   (eval $ac_try) 2>&5
3382   ac_status=$?
3383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384   (exit $ac_status); }; }; then
3385
3386                 echo "$as_me:$LINENO: result: yes" >&5
3387 echo "${ECHO_T}yes" >&6
3388
3389
3390 cat >>confdefs.h <<\_ACEOF
3391 #define LIBWRAP 1
3392 _ACEOF
3393
3394                 TCPW_MSG="yes"
3395
3396 else
3397   echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.$ac_ext >&5
3399
3400
3401                 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
3402 echo "$as_me: error: *** libwrap missing" >&2;}
3403    { (exit 1); exit 1; }; }
3404
3405
3406 fi
3407 rm -f conftest.err conftest.$ac_objext \
3408       conftest$ac_exeext conftest.$ac_ext
3409             LIBS="$saved_LIBS"
3410         fi
3411
3412
3413 fi;
3414
3415
3416
3417
3418           ac_config_headers="$ac_config_headers support/include/config.h"
3419
3420
3421 # Checks for programs.
3422 ac_ext=cc
3423 ac_cpp='$CXXCPP $CPPFLAGS'
3424 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3425 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3426 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3427 if test -n "$ac_tool_prefix"; then
3428   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3429   do
3430     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3431 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3432 echo "$as_me:$LINENO: checking for $ac_word" >&5
3433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3434 if test "${ac_cv_prog_CXX+set}" = set; then
3435   echo $ECHO_N "(cached) $ECHO_C" >&6
3436 else
3437   if test -n "$CXX"; then
3438   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3439 else
3440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3441 for as_dir in $PATH
3442 do
3443   IFS=$as_save_IFS
3444   test -z "$as_dir" && as_dir=.
3445   for ac_exec_ext in '' $ac_executable_extensions; do
3446   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3447     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3448     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3449     break 2
3450   fi
3451 done
3452 done
3453
3454 fi
3455 fi
3456 CXX=$ac_cv_prog_CXX
3457 if test -n "$CXX"; then
3458   echo "$as_me:$LINENO: result: $CXX" >&5
3459 echo "${ECHO_T}$CXX" >&6
3460 else
3461   echo "$as_me:$LINENO: result: no" >&5
3462 echo "${ECHO_T}no" >&6
3463 fi
3464
3465     test -n "$CXX" && break
3466   done
3467 fi
3468 if test -z "$CXX"; then
3469   ac_ct_CXX=$CXX
3470   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3471 do
3472   # Extract the first word of "$ac_prog", so it can be a program name with args.
3473 set dummy $ac_prog; ac_word=$2
3474 echo "$as_me:$LINENO: checking for $ac_word" >&5
3475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3476 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3477   echo $ECHO_N "(cached) $ECHO_C" >&6
3478 else
3479   if test -n "$ac_ct_CXX"; then
3480   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3481 else
3482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3483 for as_dir in $PATH
3484 do
3485   IFS=$as_save_IFS
3486   test -z "$as_dir" && as_dir=.
3487   for ac_exec_ext in '' $ac_executable_extensions; do
3488   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3489     ac_cv_prog_ac_ct_CXX="$ac_prog"
3490     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3491     break 2
3492   fi
3493 done
3494 done
3495
3496 fi
3497 fi
3498 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3499 if test -n "$ac_ct_CXX"; then
3500   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3501 echo "${ECHO_T}$ac_ct_CXX" >&6
3502 else
3503   echo "$as_me:$LINENO: result: no" >&5
3504 echo "${ECHO_T}no" >&6
3505 fi
3506
3507   test -n "$ac_ct_CXX" && break
3508 done
3509 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3510
3511   CXX=$ac_ct_CXX
3512 fi
3513
3514
3515 # Provide some information about the compiler.
3516 echo "$as_me:$LINENO:" \
3517      "checking for C++ compiler version" >&5
3518 ac_compiler=`set X $ac_compile; echo $2`
3519 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3520   (eval $ac_compiler --version </dev/null >&5) 2>&5
3521   ac_status=$?
3522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523   (exit $ac_status); }
3524 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3525   (eval $ac_compiler -v </dev/null >&5) 2>&5
3526   ac_status=$?
3527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528   (exit $ac_status); }
3529 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3530   (eval $ac_compiler -V </dev/null >&5) 2>&5
3531   ac_status=$?
3532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533   (exit $ac_status); }
3534
3535 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3536 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3537 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3538   echo $ECHO_N "(cached) $ECHO_C" >&6
3539 else
3540   cat >conftest.$ac_ext <<_ACEOF
3541 /* confdefs.h.  */
3542 _ACEOF
3543 cat confdefs.h >>conftest.$ac_ext
3544 cat >>conftest.$ac_ext <<_ACEOF
3545 /* end confdefs.h.  */
3546
3547 int
3548 main ()
3549 {
3550 #ifndef __GNUC__
3551        choke me
3552 #endif
3553
3554   ;
3555   return 0;
3556 }
3557 _ACEOF
3558 rm -f conftest.$ac_objext
3559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3560   (eval $ac_compile) 2>conftest.er1
3561   ac_status=$?
3562   grep -v '^ *+' conftest.er1 >conftest.err
3563   rm -f conftest.er1
3564   cat conftest.err >&5
3565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566   (exit $ac_status); } &&
3567          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3569   (eval $ac_try) 2>&5
3570   ac_status=$?
3571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572   (exit $ac_status); }; } &&
3573          { ac_try='test -s conftest.$ac_objext'
3574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3575   (eval $ac_try) 2>&5
3576   ac_status=$?
3577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578   (exit $ac_status); }; }; then
3579   ac_compiler_gnu=yes
3580 else
3581   echo "$as_me: failed program was:" >&5
3582 sed 's/^/| /' conftest.$ac_ext >&5
3583
3584 ac_compiler_gnu=no
3585 fi
3586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3587 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3588
3589 fi
3590 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3591 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3592 GXX=`test $ac_compiler_gnu = yes && echo yes`
3593 ac_test_CXXFLAGS=${CXXFLAGS+set}
3594 ac_save_CXXFLAGS=$CXXFLAGS
3595 CXXFLAGS="-g"
3596 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3597 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3598 if test "${ac_cv_prog_cxx_g+set}" = set; then
3599   echo $ECHO_N "(cached) $ECHO_C" >&6
3600 else
3601   cat >conftest.$ac_ext <<_ACEOF
3602 /* confdefs.h.  */
3603 _ACEOF
3604 cat confdefs.h >>conftest.$ac_ext
3605 cat >>conftest.$ac_ext <<_ACEOF
3606 /* end confdefs.h.  */
3607
3608 int
3609 main ()
3610 {
3611
3612   ;
3613   return 0;
3614 }
3615 _ACEOF
3616 rm -f conftest.$ac_objext
3617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3618   (eval $ac_compile) 2>conftest.er1
3619   ac_status=$?
3620   grep -v '^ *+' conftest.er1 >conftest.err
3621   rm -f conftest.er1
3622   cat conftest.err >&5
3623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624   (exit $ac_status); } &&
3625          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3627   (eval $ac_try) 2>&5
3628   ac_status=$?
3629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630   (exit $ac_status); }; } &&
3631          { ac_try='test -s conftest.$ac_objext'
3632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3633   (eval $ac_try) 2>&5
3634   ac_status=$?
3635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636   (exit $ac_status); }; }; then
3637   ac_cv_prog_cxx_g=yes
3638 else
3639   echo "$as_me: failed program was:" >&5
3640 sed 's/^/| /' conftest.$ac_ext >&5
3641
3642 ac_cv_prog_cxx_g=no
3643 fi
3644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3645 fi
3646 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3647 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3648 if test "$ac_test_CXXFLAGS" = set; then
3649   CXXFLAGS=$ac_save_CXXFLAGS
3650 elif test $ac_cv_prog_cxx_g = yes; then
3651   if test "$GXX" = yes; then
3652     CXXFLAGS="-g -O2"
3653   else
3654     CXXFLAGS="-g"
3655   fi
3656 else
3657   if test "$GXX" = yes; then
3658     CXXFLAGS="-O2"
3659   else
3660     CXXFLAGS=
3661   fi
3662 fi
3663 for ac_declaration in \
3664    '' \
3665    'extern "C" void std::exit (int) throw (); using std::exit;' \
3666    'extern "C" void std::exit (int); using std::exit;' \
3667    'extern "C" void exit (int) throw ();' \
3668    'extern "C" void exit (int);' \
3669    'void exit (int);'
3670 do
3671   cat >conftest.$ac_ext <<_ACEOF
3672 /* confdefs.h.  */
3673 _ACEOF
3674 cat confdefs.h >>conftest.$ac_ext
3675 cat >>conftest.$ac_ext <<_ACEOF
3676 /* end confdefs.h.  */
3677 $ac_declaration
3678 #include <stdlib.h>
3679 int
3680 main ()
3681 {
3682 exit (42);
3683   ;
3684   return 0;
3685 }
3686 _ACEOF
3687 rm -f conftest.$ac_objext
3688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3689   (eval $ac_compile) 2>conftest.er1
3690   ac_status=$?
3691   grep -v '^ *+' conftest.er1 >conftest.err
3692   rm -f conftest.er1
3693   cat conftest.err >&5
3694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695   (exit $ac_status); } &&
3696          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3698   (eval $ac_try) 2>&5
3699   ac_status=$?
3700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701   (exit $ac_status); }; } &&
3702          { ac_try='test -s conftest.$ac_objext'
3703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3704   (eval $ac_try) 2>&5
3705   ac_status=$?
3706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707   (exit $ac_status); }; }; then
3708   :
3709 else
3710   echo "$as_me: failed program was:" >&5
3711 sed 's/^/| /' conftest.$ac_ext >&5
3712
3713 continue
3714 fi
3715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3716   cat >conftest.$ac_ext <<_ACEOF
3717 /* confdefs.h.  */
3718 _ACEOF
3719 cat confdefs.h >>conftest.$ac_ext
3720 cat >>conftest.$ac_ext <<_ACEOF
3721 /* end confdefs.h.  */
3722 $ac_declaration
3723 int
3724 main ()
3725 {
3726 exit (42);
3727   ;
3728   return 0;
3729 }
3730 _ACEOF
3731 rm -f conftest.$ac_objext
3732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3733   (eval $ac_compile) 2>conftest.er1
3734   ac_status=$?
3735   grep -v '^ *+' conftest.er1 >conftest.err
3736   rm -f conftest.er1
3737   cat conftest.err >&5
3738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739   (exit $ac_status); } &&
3740          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3742   (eval $ac_try) 2>&5
3743   ac_status=$?
3744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745   (exit $ac_status); }; } &&
3746          { ac_try='test -s conftest.$ac_objext'
3747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3748   (eval $ac_try) 2>&5
3749   ac_status=$?
3750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751   (exit $ac_status); }; }; then
3752   break
3753 else
3754   echo "$as_me: failed program was:" >&5
3755 sed 's/^/| /' conftest.$ac_ext >&5
3756
3757 fi
3758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3759 done
3760 rm -f conftest*
3761 if test -n "$ac_declaration"; then
3762   echo '#ifdef __cplusplus' >>confdefs.h
3763   echo $ac_declaration      >>confdefs.h
3764   echo '#endif'             >>confdefs.h
3765 fi
3766
3767 ac_ext=c
3768 ac_cpp='$CPP $CPPFLAGS'
3769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3772
3773 depcc="$CXX"  am_compiler_list=
3774
3775 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3776 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3777 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3778   echo $ECHO_N "(cached) $ECHO_C" >&6
3779 else
3780   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3781   # We make a subdir and do the tests there.  Otherwise we can end up
3782   # making bogus files that we don't know about and never remove.  For
3783   # instance it was reported that on HP-UX the gcc test will end up
3784   # making a dummy file named `D' -- because `-MD' means `put the output
3785   # in D'.
3786   mkdir conftest.dir
3787   # Copy depcomp to subdir because otherwise we won't find it if we're
3788   # using a relative directory.
3789   cp "$am_depcomp" conftest.dir
3790   cd conftest.dir
3791   # We will build objects and dependencies in a subdirectory because
3792   # it helps to detect inapplicable dependency modes.  For instance
3793   # both Tru64's cc and ICC support -MD to output dependencies as a
3794   # side effect of compilation, but ICC will put the dependencies in
3795   # the current directory while Tru64 will put them in the object
3796   # directory.
3797   mkdir sub
3798
3799   am_cv_CXX_dependencies_compiler_type=none
3800   if test "$am_compiler_list" = ""; then
3801      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3802   fi
3803   for depmode in $am_compiler_list; do
3804     # Setup a source with many dependencies, because some compilers
3805     # like to wrap large dependency lists on column 80 (with \), and
3806     # we should not choose a depcomp mode which is confused by this.
3807     #
3808     # We need to recreate these files for each test, as the compiler may
3809     # overwrite some of them when testing with obscure command lines.
3810     # This happens at least with the AIX C compiler.
3811     : > sub/conftest.c
3812     for i in 1 2 3 4 5 6; do
3813       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3814       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3815       # Solaris 8's {/usr,}/bin/sh.
3816       touch sub/conftst$i.h
3817     done
3818     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3819
3820     case $depmode in
3821     nosideeffect)
3822       # after this tag, mechanisms are not by side-effect, so they'll
3823       # only be used when explicitly requested
3824       if test "x$enable_dependency_tracking" = xyes; then
3825         continue
3826       else
3827         break
3828       fi
3829       ;;
3830     none) break ;;
3831     esac
3832     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3833     # mode.  It turns out that the SunPro C++ compiler does not properly
3834     # handle `-M -o', and we need to detect this.
3835     if depmode=$depmode \
3836        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3837        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3838        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3839          >/dev/null 2>conftest.err &&
3840        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3841        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3842        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3843       # icc doesn't choke on unknown options, it will just issue warnings
3844       # or remarks (even with -Werror).  So we grep stderr for any message
3845       # that says an option was ignored or not supported.
3846       # When given -MP, icc 7.0 and 7.1 complain thusly:
3847       #   icc: Command line warning: ignoring option '-M'; no argument required
3848       # The diagnosis changed in icc 8.0:
3849       #   icc: Command line remark: option '-MP' not supported
3850       if (grep 'ignoring option' conftest.err ||
3851           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3852         am_cv_CXX_dependencies_compiler_type=$depmode
3853         break
3854       fi
3855     fi
3856   done
3857
3858   cd ..
3859   rm -rf conftest.dir
3860 else
3861   am_cv_CXX_dependencies_compiler_type=none
3862 fi
3863
3864 fi
3865 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3866 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3867 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3868
3869
3870
3871 if
3872   test "x$enable_dependency_tracking" != xno \
3873   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3874   am__fastdepCXX_TRUE=
3875   am__fastdepCXX_FALSE='#'
3876 else
3877   am__fastdepCXX_TRUE='#'
3878   am__fastdepCXX_FALSE=
3879 fi
3880
3881
3882 ac_ext=c
3883 ac_cpp='$CPP $CPPFLAGS'
3884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3887 if test -n "$ac_tool_prefix"; then
3888   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3889 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3890 echo "$as_me:$LINENO: checking for $ac_word" >&5
3891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3892 if test "${ac_cv_prog_CC+set}" = set; then
3893   echo $ECHO_N "(cached) $ECHO_C" >&6
3894 else
3895   if test -n "$CC"; then
3896   ac_cv_prog_CC="$CC" # Let the user override the test.
3897 else
3898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3899 for as_dir in $PATH
3900 do
3901   IFS=$as_save_IFS
3902   test -z "$as_dir" && as_dir=.
3903   for ac_exec_ext in '' $ac_executable_extensions; do
3904   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3905     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3906     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3907     break 2
3908   fi
3909 done
3910 done
3911
3912 fi
3913 fi
3914 CC=$ac_cv_prog_CC
3915 if test -n "$CC"; then
3916   echo "$as_me:$LINENO: result: $CC" >&5
3917 echo "${ECHO_T}$CC" >&6
3918 else
3919   echo "$as_me:$LINENO: result: no" >&5
3920 echo "${ECHO_T}no" >&6
3921 fi
3922
3923 fi
3924 if test -z "$ac_cv_prog_CC"; then
3925   ac_ct_CC=$CC
3926   # Extract the first word of "gcc", so it can be a program name with args.
3927 set dummy gcc; ac_word=$2
3928 echo "$as_me:$LINENO: checking for $ac_word" >&5
3929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3930 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3931   echo $ECHO_N "(cached) $ECHO_C" >&6
3932 else
3933   if test -n "$ac_ct_CC"; then
3934   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3935 else
3936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3937 for as_dir in $PATH
3938 do
3939   IFS=$as_save_IFS
3940   test -z "$as_dir" && as_dir=.
3941   for ac_exec_ext in '' $ac_executable_extensions; do
3942   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3943     ac_cv_prog_ac_ct_CC="gcc"
3944     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3945     break 2
3946   fi
3947 done
3948 done
3949
3950 fi
3951 fi
3952 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3953 if test -n "$ac_ct_CC"; then
3954   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3955 echo "${ECHO_T}$ac_ct_CC" >&6
3956 else
3957   echo "$as_me:$LINENO: result: no" >&5
3958 echo "${ECHO_T}no" >&6
3959 fi
3960
3961   CC=$ac_ct_CC
3962 else
3963   CC="$ac_cv_prog_CC"
3964 fi
3965
3966 if test -z "$CC"; then
3967   if test -n "$ac_tool_prefix"; then
3968   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3969 set dummy ${ac_tool_prefix}cc; ac_word=$2
3970 echo "$as_me:$LINENO: checking for $ac_word" >&5
3971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3972 if test "${ac_cv_prog_CC+set}" = set; then
3973   echo $ECHO_N "(cached) $ECHO_C" >&6
3974 else
3975   if test -n "$CC"; then
3976   ac_cv_prog_CC="$CC" # Let the user override the test.
3977 else
3978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3979 for as_dir in $PATH
3980 do
3981   IFS=$as_save_IFS
3982   test -z "$as_dir" && as_dir=.
3983   for ac_exec_ext in '' $ac_executable_extensions; do
3984   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3985     ac_cv_prog_CC="${ac_tool_prefix}cc"
3986     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3987     break 2
3988   fi
3989 done
3990 done
3991
3992 fi
3993 fi
3994 CC=$ac_cv_prog_CC
3995 if test -n "$CC"; then
3996   echo "$as_me:$LINENO: result: $CC" >&5
3997 echo "${ECHO_T}$CC" >&6
3998 else
3999   echo "$as_me:$LINENO: result: no" >&5
4000 echo "${ECHO_T}no" >&6
4001 fi
4002
4003 fi
4004 if test -z "$ac_cv_prog_CC"; then
4005   ac_ct_CC=$CC
4006   # Extract the first word of "cc", so it can be a program name with args.
4007 set dummy cc; ac_word=$2
4008 echo "$as_me:$LINENO: checking for $ac_word" >&5
4009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4010 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4011   echo $ECHO_N "(cached) $ECHO_C" >&6
4012 else
4013   if test -n "$ac_ct_CC"; then
4014   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4015 else
4016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4017 for as_dir in $PATH
4018 do
4019   IFS=$as_save_IFS
4020   test -z "$as_dir" && as_dir=.
4021   for ac_exec_ext in '' $ac_executable_extensions; do
4022   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4023     ac_cv_prog_ac_ct_CC="cc"
4024     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4025     break 2
4026   fi
4027 done
4028 done
4029
4030 fi
4031 fi
4032 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4033 if test -n "$ac_ct_CC"; then
4034   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4035 echo "${ECHO_T}$ac_ct_CC" >&6
4036 else
4037   echo "$as_me:$LINENO: result: no" >&5
4038 echo "${ECHO_T}no" >&6
4039 fi
4040
4041   CC=$ac_ct_CC
4042 else
4043   CC="$ac_cv_prog_CC"
4044 fi
4045
4046 fi
4047 if test -z "$CC"; then
4048   # Extract the first word of "cc", so it can be a program name with args.
4049 set dummy cc; ac_word=$2
4050 echo "$as_me:$LINENO: checking for $ac_word" >&5
4051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4052 if test "${ac_cv_prog_CC+set}" = set; then
4053   echo $ECHO_N "(cached) $ECHO_C" >&6
4054 else
4055   if test -n "$CC"; then
4056   ac_cv_prog_CC="$CC" # Let the user override the test.
4057 else
4058   ac_prog_rejected=no
4059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4060 for as_dir in $PATH
4061 do
4062   IFS=$as_save_IFS
4063   test -z "$as_dir" && as_dir=.
4064   for ac_exec_ext in '' $ac_executable_extensions; do
4065   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4066     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4067        ac_prog_rejected=yes
4068        continue
4069      fi
4070     ac_cv_prog_CC="cc"
4071     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4072     break 2
4073   fi
4074 done
4075 done
4076
4077 if test $ac_prog_rejected = yes; then
4078   # We found a bogon in the path, so make sure we never use it.
4079   set dummy $ac_cv_prog_CC
4080   shift
4081   if test $# != 0; then
4082     # We chose a different compiler from the bogus one.
4083     # However, it has the same basename, so the bogon will be chosen
4084     # first if we set CC to just the basename; use the full file name.
4085     shift
4086     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4087   fi
4088 fi
4089 fi
4090 fi
4091 CC=$ac_cv_prog_CC
4092 if test -n "$CC"; then
4093   echo "$as_me:$LINENO: result: $CC" >&5
4094 echo "${ECHO_T}$CC" >&6
4095 else
4096   echo "$as_me:$LINENO: result: no" >&5
4097 echo "${ECHO_T}no" >&6
4098 fi
4099
4100 fi
4101 if test -z "$CC"; then
4102   if test -n "$ac_tool_prefix"; then
4103   for ac_prog in cl
4104   do
4105     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4106 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4107 echo "$as_me:$LINENO: checking for $ac_word" >&5
4108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4109 if test "${ac_cv_prog_CC+set}" = set; then
4110   echo $ECHO_N "(cached) $ECHO_C" >&6
4111 else
4112   if test -n "$CC"; then
4113   ac_cv_prog_CC="$CC" # Let the user override the test.
4114 else
4115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4116 for as_dir in $PATH
4117 do
4118   IFS=$as_save_IFS
4119   test -z "$as_dir" && as_dir=.
4120   for ac_exec_ext in '' $ac_executable_extensions; do
4121   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4122     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4123     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4124     break 2
4125   fi
4126 done
4127 done
4128
4129 fi
4130 fi
4131 CC=$ac_cv_prog_CC
4132 if test -n "$CC"; then
4133   echo "$as_me:$LINENO: result: $CC" >&5
4134 echo "${ECHO_T}$CC" >&6
4135 else
4136   echo "$as_me:$LINENO: result: no" >&5
4137 echo "${ECHO_T}no" >&6
4138 fi
4139
4140     test -n "$CC" && break
4141   done
4142 fi
4143 if test -z "$CC"; then
4144   ac_ct_CC=$CC
4145   for ac_prog in cl
4146 do
4147   # Extract the first word of "$ac_prog", so it can be a program name with args.
4148 set dummy $ac_prog; ac_word=$2
4149 echo "$as_me:$LINENO: checking for $ac_word" >&5
4150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4151 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4152   echo $ECHO_N "(cached) $ECHO_C" >&6
4153 else
4154   if test -n "$ac_ct_CC"; then
4155   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4156 else
4157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4158 for as_dir in $PATH
4159 do
4160   IFS=$as_save_IFS
4161   test -z "$as_dir" && as_dir=.
4162   for ac_exec_ext in '' $ac_executable_extensions; do
4163   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4164     ac_cv_prog_ac_ct_CC="$ac_prog"
4165     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4166     break 2
4167   fi
4168 done
4169 done
4170
4171 fi
4172 fi
4173 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4174 if test -n "$ac_ct_CC"; then
4175   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4176 echo "${ECHO_T}$ac_ct_CC" >&6
4177 else
4178   echo "$as_me:$LINENO: result: no" >&5
4179 echo "${ECHO_T}no" >&6
4180 fi
4181
4182   test -n "$ac_ct_CC" && break
4183 done
4184
4185   CC=$ac_ct_CC
4186 fi
4187
4188 fi
4189
4190
4191 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4192 See \`config.log' for more details." >&5
4193 echo "$as_me: error: no acceptable C compiler found in \$PATH
4194 See \`config.log' for more details." >&2;}
4195    { (exit 1); exit 1; }; }
4196
4197 # Provide some information about the compiler.
4198 echo "$as_me:$LINENO:" \
4199      "checking for C compiler version" >&5
4200 ac_compiler=`set X $ac_compile; echo $2`
4201 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4202   (eval $ac_compiler --version </dev/null >&5) 2>&5
4203   ac_status=$?
4204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205   (exit $ac_status); }
4206 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4207   (eval $ac_compiler -v </dev/null >&5) 2>&5
4208   ac_status=$?
4209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210   (exit $ac_status); }
4211 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4212   (eval $ac_compiler -V </dev/null >&5) 2>&5
4213   ac_status=$?
4214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215   (exit $ac_status); }
4216
4217 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4218 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4219 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4220   echo $ECHO_N "(cached) $ECHO_C" >&6
4221 else
4222   cat >conftest.$ac_ext <<_ACEOF
4223 /* confdefs.h.  */
4224 _ACEOF
4225 cat confdefs.h >>conftest.$ac_ext
4226 cat >>conftest.$ac_ext <<_ACEOF
4227 /* end confdefs.h.  */
4228
4229 int
4230 main ()
4231 {
4232 #ifndef __GNUC__
4233        choke me
4234 #endif
4235
4236   ;
4237   return 0;
4238 }
4239 _ACEOF
4240 rm -f conftest.$ac_objext
4241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4242   (eval $ac_compile) 2>conftest.er1
4243   ac_status=$?
4244   grep -v '^ *+' conftest.er1 >conftest.err
4245   rm -f conftest.er1
4246   cat conftest.err >&5
4247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248   (exit $ac_status); } &&
4249          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4251   (eval $ac_try) 2>&5
4252   ac_status=$?
4253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254   (exit $ac_status); }; } &&
4255          { ac_try='test -s conftest.$ac_objext'
4256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4257   (eval $ac_try) 2>&5
4258   ac_status=$?
4259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260   (exit $ac_status); }; }; then
4261   ac_compiler_gnu=yes
4262 else
4263   echo "$as_me: failed program was:" >&5
4264 sed 's/^/| /' conftest.$ac_ext >&5
4265
4266 ac_compiler_gnu=no
4267 fi
4268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4269 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4270
4271 fi
4272 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4273 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4274 GCC=`test $ac_compiler_gnu = yes && echo yes`
4275 ac_test_CFLAGS=${CFLAGS+set}
4276 ac_save_CFLAGS=$CFLAGS
4277 CFLAGS="-g"
4278 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4279 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4280 if test "${ac_cv_prog_cc_g+set}" = set; then
4281   echo $ECHO_N "(cached) $ECHO_C" >&6
4282 else
4283   cat >conftest.$ac_ext <<_ACEOF
4284 /* confdefs.h.  */
4285 _ACEOF
4286 cat confdefs.h >>conftest.$ac_ext
4287 cat >>conftest.$ac_ext <<_ACEOF
4288 /* end confdefs.h.  */
4289
4290 int
4291 main ()
4292 {
4293
4294   ;
4295   return 0;
4296 }
4297 _ACEOF
4298 rm -f conftest.$ac_objext
4299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4300   (eval $ac_compile) 2>conftest.er1
4301   ac_status=$?
4302   grep -v '^ *+' conftest.er1 >conftest.err
4303   rm -f conftest.er1
4304   cat conftest.err >&5
4305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306   (exit $ac_status); } &&
4307          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4309   (eval $ac_try) 2>&5
4310   ac_status=$?
4311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312   (exit $ac_status); }; } &&
4313          { ac_try='test -s conftest.$ac_objext'
4314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4315   (eval $ac_try) 2>&5
4316   ac_status=$?
4317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318   (exit $ac_status); }; }; then
4319   ac_cv_prog_cc_g=yes
4320 else
4321   echo "$as_me: failed program was:" >&5
4322 sed 's/^/| /' conftest.$ac_ext >&5
4323
4324 ac_cv_prog_cc_g=no
4325 fi
4326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4327 fi
4328 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4329 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4330 if test "$ac_test_CFLAGS" = set; then
4331   CFLAGS=$ac_save_CFLAGS
4332 elif test $ac_cv_prog_cc_g = yes; then
4333   if test "$GCC" = yes; then
4334     CFLAGS="-g -O2"
4335   else
4336     CFLAGS="-g"
4337   fi
4338 else
4339   if test "$GCC" = yes; then
4340     CFLAGS="-O2"
4341   else
4342     CFLAGS=
4343   fi
4344 fi
4345 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4346 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4347 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4348   echo $ECHO_N "(cached) $ECHO_C" >&6
4349 else
4350   ac_cv_prog_cc_stdc=no
4351 ac_save_CC=$CC
4352 cat >conftest.$ac_ext <<_ACEOF
4353 /* confdefs.h.  */
4354 _ACEOF
4355 cat confdefs.h >>conftest.$ac_ext
4356 cat >>conftest.$ac_ext <<_ACEOF
4357 /* end confdefs.h.  */
4358 #include <stdarg.h>
4359 #include <stdio.h>
4360 #include <sys/types.h>
4361 #include <sys/stat.h>
4362 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4363 struct buf { int x; };
4364 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4365 static char *e (p, i)
4366      char **p;
4367      int i;
4368 {
4369   return p[i];
4370 }
4371 static char *f (char * (*g) (char **, int), char **p, ...)
4372 {
4373   char *s;
4374   va_list v;
4375   va_start (v,p);
4376   s = g (p, va_arg (v,int));
4377   va_end (v);
4378   return s;
4379 }
4380
4381 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4382    function prototypes and stuff, but not '\xHH' hex character constants.
4383    These don't provoke an error unfortunately, instead are silently treated
4384    as 'x'.  The following induces an error, until -std1 is added to get
4385    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4386    array size at least.  It's necessary to write '\x00'==0 to get something
4387    that's true only with -std1.  */
4388 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4389
4390 int test (int i, double x);
4391 struct s1 {int (*f) (int a);};
4392 struct s2 {int (*f) (double a);};
4393 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4394 int argc;
4395 char **argv;
4396 int
4397 main ()
4398 {
4399 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4400   ;
4401   return 0;
4402 }
4403 _ACEOF
4404 # Don't try gcc -ansi; that turns off useful extensions and
4405 # breaks some systems' header files.
4406 # AIX                   -qlanglvl=ansi
4407 # Ultrix and OSF/1      -std1
4408 # HP-UX 10.20 and later -Ae
4409 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4410 # SVR4                  -Xc -D__EXTENSIONS__
4411 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4412 do
4413   CC="$ac_save_CC $ac_arg"
4414   rm -f conftest.$ac_objext
4415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4416   (eval $ac_compile) 2>conftest.er1
4417   ac_status=$?
4418   grep -v '^ *+' conftest.er1 >conftest.err
4419   rm -f conftest.er1
4420   cat conftest.err >&5
4421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422   (exit $ac_status); } &&
4423          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4425   (eval $ac_try) 2>&5
4426   ac_status=$?
4427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428   (exit $ac_status); }; } &&
4429          { ac_try='test -s conftest.$ac_objext'
4430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4431   (eval $ac_try) 2>&5
4432   ac_status=$?
4433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434   (exit $ac_status); }; }; then
4435   ac_cv_prog_cc_stdc=$ac_arg
4436 break
4437 else
4438   echo "$as_me: failed program was:" >&5
4439 sed 's/^/| /' conftest.$ac_ext >&5
4440
4441 fi
4442 rm -f conftest.err conftest.$ac_objext
4443 done
4444 rm -f conftest.$ac_ext conftest.$ac_objext
4445 CC=$ac_save_CC
4446
4447 fi
4448
4449 case "x$ac_cv_prog_cc_stdc" in
4450   x|xno)
4451     echo "$as_me:$LINENO: result: none needed" >&5
4452 echo "${ECHO_T}none needed" >&6 ;;
4453   *)
4454     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4455 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4456     CC="$CC $ac_cv_prog_cc_stdc" ;;
4457 esac
4458
4459 # Some people use a C++ compiler to compile C.  Since we use `exit',
4460 # in C++ we need to declare it.  In case someone uses the same compiler
4461 # for both compiling C and C++ we need to have the C++ compiler decide
4462 # the declaration of exit, since it's the most demanding environment.
4463 cat >conftest.$ac_ext <<_ACEOF
4464 #ifndef __cplusplus
4465   choke me
4466 #endif
4467 _ACEOF
4468 rm -f conftest.$ac_objext
4469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4470   (eval $ac_compile) 2>conftest.er1
4471   ac_status=$?
4472   grep -v '^ *+' conftest.er1 >conftest.err
4473   rm -f conftest.er1
4474   cat conftest.err >&5
4475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476   (exit $ac_status); } &&
4477          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4479   (eval $ac_try) 2>&5
4480   ac_status=$?
4481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482   (exit $ac_status); }; } &&
4483          { ac_try='test -s conftest.$ac_objext'
4484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4485   (eval $ac_try) 2>&5
4486   ac_status=$?
4487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488   (exit $ac_status); }; }; then
4489   for ac_declaration in \
4490    '' \
4491    'extern "C" void std::exit (int) throw (); using std::exit;' \
4492    'extern "C" void std::exit (int); using std::exit;' \
4493    'extern "C" void exit (int) throw ();' \
4494    'extern "C" void exit (int);' \
4495    'void exit (int);'
4496 do
4497   cat >conftest.$ac_ext <<_ACEOF
4498 /* confdefs.h.  */
4499 _ACEOF
4500 cat confdefs.h >>conftest.$ac_ext
4501 cat >>conftest.$ac_ext <<_ACEOF
4502 /* end confdefs.h.  */
4503 $ac_declaration
4504 #include <stdlib.h>
4505 int
4506 main ()
4507 {
4508 exit (42);
4509   ;
4510   return 0;
4511 }
4512 _ACEOF
4513 rm -f conftest.$ac_objext
4514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4515   (eval $ac_compile) 2>conftest.er1
4516   ac_status=$?
4517   grep -v '^ *+' conftest.er1 >conftest.err
4518   rm -f conftest.er1
4519   cat conftest.err >&5
4520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521   (exit $ac_status); } &&
4522          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4524   (eval $ac_try) 2>&5
4525   ac_status=$?
4526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527   (exit $ac_status); }; } &&
4528          { ac_try='test -s conftest.$ac_objext'
4529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4530   (eval $ac_try) 2>&5
4531   ac_status=$?
4532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533   (exit $ac_status); }; }; then
4534   :
4535 else
4536   echo "$as_me: failed program was:" >&5
4537 sed 's/^/| /' conftest.$ac_ext >&5
4538
4539 continue
4540 fi
4541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4542   cat >conftest.$ac_ext <<_ACEOF
4543 /* confdefs.h.  */
4544 _ACEOF
4545 cat confdefs.h >>conftest.$ac_ext
4546 cat >>conftest.$ac_ext <<_ACEOF
4547 /* end confdefs.h.  */
4548 $ac_declaration
4549 int
4550 main ()
4551 {
4552 exit (42);
4553   ;
4554   return 0;
4555 }
4556 _ACEOF
4557 rm -f conftest.$ac_objext
4558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4559   (eval $ac_compile) 2>conftest.er1
4560   ac_status=$?
4561   grep -v '^ *+' conftest.er1 >conftest.err
4562   rm -f conftest.er1
4563   cat conftest.err >&5
4564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565   (exit $ac_status); } &&
4566          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4568   (eval $ac_try) 2>&5
4569   ac_status=$?
4570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571   (exit $ac_status); }; } &&
4572          { ac_try='test -s conftest.$ac_objext'
4573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4574   (eval $ac_try) 2>&5
4575   ac_status=$?
4576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577   (exit $ac_status); }; }; then
4578   break
4579 else
4580   echo "$as_me: failed program was:" >&5
4581 sed 's/^/| /' conftest.$ac_ext >&5
4582
4583 fi
4584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4585 done
4586 rm -f conftest*
4587 if test -n "$ac_declaration"; then
4588   echo '#ifdef __cplusplus' >>confdefs.h
4589   echo $ac_declaration      >>confdefs.h
4590   echo '#endif'             >>confdefs.h
4591 fi
4592
4593 else
4594   echo "$as_me: failed program was:" >&5
4595 sed 's/^/| /' conftest.$ac_ext >&5
4596
4597 fi
4598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4599 ac_ext=c
4600 ac_cpp='$CPP $CPPFLAGS'
4601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4604
4605 depcc="$CC"   am_compiler_list=
4606
4607 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4608 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4609 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4610   echo $ECHO_N "(cached) $ECHO_C" >&6
4611 else
4612   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4613   # We make a subdir and do the tests there.  Otherwise we can end up
4614   # making bogus files that we don't know about and never remove.  For
4615   # instance it was reported that on HP-UX the gcc test will end up
4616   # making a dummy file named `D' -- because `-MD' means `put the output
4617   # in D'.
4618   mkdir conftest.dir
4619   # Copy depcomp to subdir because otherwise we won't find it if we're
4620   # using a relative directory.
4621   cp "$am_depcomp" conftest.dir
4622   cd conftest.dir
4623   # We will build objects and dependencies in a subdirectory because
4624   # it helps to detect inapplicable dependency modes.  For instance
4625   # both Tru64's cc and ICC support -MD to output dependencies as a
4626   # side effect of compilation, but ICC will put the dependencies in
4627   # the current directory while Tru64 will put them in the object
4628   # directory.
4629   mkdir sub
4630
4631   am_cv_CC_dependencies_compiler_type=none
4632   if test "$am_compiler_list" = ""; then
4633      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4634   fi
4635   for depmode in $am_compiler_list; do
4636     # Setup a source with many dependencies, because some compilers
4637     # like to wrap large dependency lists on column 80 (with \), and
4638     # we should not choose a depcomp mode which is confused by this.
4639     #
4640     # We need to recreate these files for each test, as the compiler may
4641     # overwrite some of them when testing with obscure command lines.
4642     # This happens at least with the AIX C compiler.
4643     : > sub/conftest.c
4644     for i in 1 2 3 4 5 6; do
4645       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4646       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4647       # Solaris 8's {/usr,}/bin/sh.
4648       touch sub/conftst$i.h
4649     done
4650     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4651
4652     case $depmode in
4653     nosideeffect)
4654       # after this tag, mechanisms are not by side-effect, so they'll
4655       # only be used when explicitly requested
4656       if test "x$enable_dependency_tracking" = xyes; then
4657         continue
4658       else
4659         break
4660       fi
4661       ;;
4662     none) break ;;
4663     esac
4664     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4665     # mode.  It turns out that the SunPro C++ compiler does not properly
4666     # handle `-M -o', and we need to detect this.
4667     if depmode=$depmode \
4668        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4669        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4670        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4671          >/dev/null 2>conftest.err &&
4672        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4673        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4674        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4675       # icc doesn't choke on unknown options, it will just issue warnings
4676       # or remarks (even with -Werror).  So we grep stderr for any message
4677       # that says an option was ignored or not supported.
4678       # When given -MP, icc 7.0 and 7.1 complain thusly:
4679       #   icc: Command line warning: ignoring option '-M'; no argument required
4680       # The diagnosis changed in icc 8.0:
4681       #   icc: Command line remark: option '-MP' not supported
4682       if (grep 'ignoring option' conftest.err ||
4683           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4684         am_cv_CC_dependencies_compiler_type=$depmode
4685         break
4686       fi
4687     fi
4688   done
4689
4690   cd ..
4691   rm -rf conftest.dir
4692 else
4693   am_cv_CC_dependencies_compiler_type=none
4694 fi
4695
4696 fi
4697 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4698 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4699 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4700
4701
4702
4703 if
4704   test "x$enable_dependency_tracking" != xno \
4705   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4706   am__fastdepCC_TRUE=
4707   am__fastdepCC_FALSE='#'
4708 else
4709   am__fastdepCC_TRUE='#'
4710   am__fastdepCC_FALSE=
4711 fi
4712
4713
4714 ac_ext=c
4715 ac_cpp='$CPP $CPPFLAGS'
4716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4719 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4720 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4721 # On Suns, sometimes $CPP names a directory.
4722 if test -n "$CPP" && test -d "$CPP"; then
4723   CPP=
4724 fi
4725 if test -z "$CPP"; then
4726   if test "${ac_cv_prog_CPP+set}" = set; then
4727   echo $ECHO_N "(cached) $ECHO_C" >&6
4728 else
4729       # Double quotes because CPP needs to be expanded
4730     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4731     do
4732       ac_preproc_ok=false
4733 for ac_c_preproc_warn_flag in '' yes
4734 do
4735   # Use a header file that comes with gcc, so configuring glibc
4736   # with a fresh cross-compiler works.
4737   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4738   # <limits.h> exists even on freestanding compilers.
4739   # On the NeXT, cc -E runs the code through the compiler's parser,
4740   # not just through cpp. "Syntax error" is here to catch this case.
4741   cat >conftest.$ac_ext <<_ACEOF
4742 /* confdefs.h.  */
4743 _ACEOF
4744 cat confdefs.h >>conftest.$ac_ext
4745 cat >>conftest.$ac_ext <<_ACEOF
4746 /* end confdefs.h.  */
4747 #ifdef __STDC__
4748 # include <limits.h>
4749 #else
4750 # include <assert.h>
4751 #endif
4752                      Syntax error
4753 _ACEOF
4754 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4755   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4756   ac_status=$?
4757   grep -v '^ *+' conftest.er1 >conftest.err
4758   rm -f conftest.er1
4759   cat conftest.err >&5
4760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761   (exit $ac_status); } >/dev/null; then
4762   if test -s conftest.err; then
4763     ac_cpp_err=$ac_c_preproc_warn_flag
4764     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4765   else
4766     ac_cpp_err=
4767   fi
4768 else
4769   ac_cpp_err=yes
4770 fi
4771 if test -z "$ac_cpp_err"; then
4772   :
4773 else
4774   echo "$as_me: failed program was:" >&5
4775 sed 's/^/| /' conftest.$ac_ext >&5
4776
4777   # Broken: fails on valid input.
4778 continue
4779 fi
4780 rm -f conftest.err conftest.$ac_ext
4781
4782   # OK, works on sane cases.  Now check whether non-existent headers
4783   # can be detected and how.
4784   cat >conftest.$ac_ext <<_ACEOF
4785 /* confdefs.h.  */
4786 _ACEOF
4787 cat confdefs.h >>conftest.$ac_ext
4788 cat >>conftest.$ac_ext <<_ACEOF
4789 /* end confdefs.h.  */
4790 #include <ac_nonexistent.h>
4791 _ACEOF
4792 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4793   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4794   ac_status=$?
4795   grep -v '^ *+' conftest.er1 >conftest.err
4796   rm -f conftest.er1
4797   cat conftest.err >&5
4798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799   (exit $ac_status); } >/dev/null; then
4800   if test -s conftest.err; then
4801     ac_cpp_err=$ac_c_preproc_warn_flag
4802     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4803   else
4804     ac_cpp_err=
4805   fi
4806 else
4807   ac_cpp_err=yes
4808 fi
4809 if test -z "$ac_cpp_err"; then
4810   # Broken: success on invalid input.
4811 continue
4812 else
4813   echo "$as_me: failed program was:" >&5
4814 sed 's/^/| /' conftest.$ac_ext >&5
4815
4816   # Passes both tests.
4817 ac_preproc_ok=:
4818 break
4819 fi
4820 rm -f conftest.err conftest.$ac_ext
4821
4822 done
4823 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4824 rm -f conftest.err conftest.$ac_ext
4825 if $ac_preproc_ok; then
4826   break
4827 fi
4828
4829     done
4830     ac_cv_prog_CPP=$CPP
4831
4832 fi
4833   CPP=$ac_cv_prog_CPP
4834 else
4835   ac_cv_prog_CPP=$CPP
4836 fi
4837 echo "$as_me:$LINENO: result: $CPP" >&5
4838 echo "${ECHO_T}$CPP" >&6
4839 ac_preproc_ok=false
4840 for ac_c_preproc_warn_flag in '' yes
4841 do
4842   # Use a header file that comes with gcc, so configuring glibc
4843   # with a fresh cross-compiler works.
4844   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4845   # <limits.h> exists even on freestanding compilers.
4846   # On the NeXT, cc -E runs the code through the compiler's parser,
4847   # not just through cpp. "Syntax error" is here to catch this case.
4848   cat >conftest.$ac_ext <<_ACEOF
4849 /* confdefs.h.  */
4850 _ACEOF
4851 cat confdefs.h >>conftest.$ac_ext
4852 cat >>conftest.$ac_ext <<_ACEOF
4853 /* end confdefs.h.  */
4854 #ifdef __STDC__
4855 # include <limits.h>
4856 #else
4857 # include <assert.h>
4858 #endif
4859                      Syntax error
4860 _ACEOF
4861 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4862   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4863   ac_status=$?
4864   grep -v '^ *+' conftest.er1 >conftest.err
4865   rm -f conftest.er1
4866   cat conftest.err >&5
4867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868   (exit $ac_status); } >/dev/null; then
4869   if test -s conftest.err; then
4870     ac_cpp_err=$ac_c_preproc_warn_flag
4871     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4872   else
4873     ac_cpp_err=
4874   fi
4875 else
4876   ac_cpp_err=yes
4877 fi
4878 if test -z "$ac_cpp_err"; then
4879   :
4880 else
4881   echo "$as_me: failed program was:" >&5
4882 sed 's/^/| /' conftest.$ac_ext >&5
4883
4884   # Broken: fails on valid input.
4885 continue
4886 fi
4887 rm -f conftest.err conftest.$ac_ext
4888
4889   # OK, works on sane cases.  Now check whether non-existent headers
4890   # can be detected and how.
4891   cat >conftest.$ac_ext <<_ACEOF
4892 /* confdefs.h.  */
4893 _ACEOF
4894 cat confdefs.h >>conftest.$ac_ext
4895 cat >>conftest.$ac_ext <<_ACEOF
4896 /* end confdefs.h.  */
4897 #include <ac_nonexistent.h>
4898 _ACEOF
4899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4900   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4901   ac_status=$?
4902   grep -v '^ *+' conftest.er1 >conftest.err
4903   rm -f conftest.er1
4904   cat conftest.err >&5
4905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906   (exit $ac_status); } >/dev/null; then
4907   if test -s conftest.err; then
4908     ac_cpp_err=$ac_c_preproc_warn_flag
4909     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4910   else
4911     ac_cpp_err=
4912   fi
4913 else
4914   ac_cpp_err=yes
4915 fi
4916 if test -z "$ac_cpp_err"; then
4917   # Broken: success on invalid input.
4918 continue
4919 else
4920   echo "$as_me: failed program was:" >&5
4921 sed 's/^/| /' conftest.$ac_ext >&5
4922
4923   # Passes both tests.
4924 ac_preproc_ok=:
4925 break
4926 fi
4927 rm -f conftest.err conftest.$ac_ext
4928
4929 done
4930 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4931 rm -f conftest.err conftest.$ac_ext
4932 if $ac_preproc_ok; then
4933   :
4934 else
4935   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4936 See \`config.log' for more details." >&5
4937 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4938 See \`config.log' for more details." >&2;}
4939    { (exit 1); exit 1; }; }
4940 fi
4941
4942 ac_ext=c
4943 ac_cpp='$CPP $CPPFLAGS'
4944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4947
4948 # Find a good install program.  We prefer a C program (faster),
4949 # so one script is as good as another.  But avoid the broken or
4950 # incompatible versions:
4951 # SysV /etc/install, /usr/sbin/install
4952 # SunOS /usr/etc/install
4953 # IRIX /sbin/install
4954 # AIX /bin/install
4955 # AmigaOS /C/install, which installs bootblocks on floppy discs
4956 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4957 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4958 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4959 # OS/2's system install, which has a completely different semantic
4960 # ./install, which can be erroneously created by make from ./install.sh.
4961 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4962 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4963 if test -z "$INSTALL"; then
4964 if test "${ac_cv_path_install+set}" = set; then
4965   echo $ECHO_N "(cached) $ECHO_C" >&6
4966 else
4967   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4968 for as_dir in $PATH
4969 do
4970   IFS=$as_save_IFS
4971   test -z "$as_dir" && as_dir=.
4972   # Account for people who put trailing slashes in PATH elements.
4973 case $as_dir/ in
4974   ./ | .// | /cC/* | \
4975   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4976   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4977   /usr/ucb/* ) ;;
4978   *)
4979     # OSF1 and SCO ODT 3.0 have their own names for install.
4980     # Don't use installbsd from OSF since it installs stuff as root
4981     # by default.
4982     for ac_prog in ginstall scoinst install; do
4983       for ac_exec_ext in '' $ac_executable_extensions; do
4984         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4985           if test $ac_prog = install &&
4986             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4987             # AIX install.  It has an incompatible calling convention.
4988             :
4989           elif test $ac_prog = install &&
4990             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4991             # program-specific install script used by HP pwplus--don't use.
4992             :
4993           else
4994             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4995             break 3
4996           fi
4997         fi
4998       done
4999     done
5000     ;;
5001 esac
5002 done
5003
5004
5005 fi
5006   if test "${ac_cv_path_install+set}" = set; then
5007     INSTALL=$ac_cv_path_install
5008   else
5009     # As a last resort, use the slow shell script.  We don't cache a
5010     # path for INSTALL within a source directory, because that will
5011     # break other packages using the cache if that directory is
5012     # removed, or if the path is relative.
5013     INSTALL=$ac_install_sh
5014   fi
5015 fi
5016 echo "$as_me:$LINENO: result: $INSTALL" >&5
5017 echo "${ECHO_T}$INSTALL" >&6
5018
5019 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5020 # It thinks the first close brace ends the variable substitution.
5021 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5022
5023 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5024
5025 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5026
5027 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5028 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5029 LN_S=$as_ln_s
5030 if test "$LN_S" = "ln -s"; then
5031   echo "$as_me:$LINENO: result: yes" >&5
5032 echo "${ECHO_T}yes" >&6
5033 else
5034   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5035 echo "${ECHO_T}no, using $LN_S" >&6
5036 fi
5037
5038 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5039 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5040 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5041 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5042   echo $ECHO_N "(cached) $ECHO_C" >&6
5043 else
5044   cat >conftest.make <<\_ACEOF
5045 all:
5046         @echo 'ac_maketemp="$(MAKE)"'
5047 _ACEOF
5048 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5049 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5050 if test -n "$ac_maketemp"; then
5051   eval ac_cv_prog_make_${ac_make}_set=yes
5052 else
5053   eval ac_cv_prog_make_${ac_make}_set=no
5054 fi
5055 rm -f conftest.make
5056 fi
5057 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5058   echo "$as_me:$LINENO: result: yes" >&5
5059 echo "${ECHO_T}yes" >&6
5060   SET_MAKE=
5061 else
5062   echo "$as_me:$LINENO: result: no" >&5
5063 echo "${ECHO_T}no" >&6
5064   SET_MAKE="MAKE=${MAKE-make}"
5065 fi
5066
5067 # Check whether --enable-shared or --disable-shared was given.
5068 if test "${enable_shared+set}" = set; then
5069   enableval="$enable_shared"
5070   p=${PACKAGE-default}
5071     case $enableval in
5072     yes) enable_shared=yes ;;
5073     no) enable_shared=no ;;
5074     *)
5075       enable_shared=no
5076       # Look at the argument we got.  We use all the common list separators.
5077       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5078       for pkg in $enableval; do
5079         IFS="$lt_save_ifs"
5080         if test "X$pkg" = "X$p"; then
5081           enable_shared=yes
5082         fi
5083       done
5084       IFS="$lt_save_ifs"
5085       ;;
5086     esac
5087 else
5088   enable_shared=yes
5089 fi;
5090
5091 # Check whether --enable-static or --disable-static was given.
5092 if test "${enable_static+set}" = set; then
5093   enableval="$enable_static"
5094   p=${PACKAGE-default}
5095     case $enableval in
5096     yes) enable_static=yes ;;
5097     no) enable_static=no ;;
5098     *)
5099      enable_static=no
5100       # Look at the argument we got.  We use all the common list separators.
5101       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5102       for pkg in $enableval; do
5103         IFS="$lt_save_ifs"
5104         if test "X$pkg" = "X$p"; then
5105           enable_static=yes
5106         fi
5107       done
5108       IFS="$lt_save_ifs"
5109       ;;
5110     esac
5111 else
5112   enable_static=yes
5113 fi;
5114
5115 # Check whether --enable-fast-install or --disable-fast-install was given.
5116 if test "${enable_fast_install+set}" = set; then
5117   enableval="$enable_fast_install"
5118   p=${PACKAGE-default}
5119     case $enableval in
5120     yes) enable_fast_install=yes ;;
5121     no) enable_fast_install=no ;;
5122     *)
5123       enable_fast_install=no
5124       # Look at the argument we got.  We use all the common list separators.
5125       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5126       for pkg in $enableval; do
5127         IFS="$lt_save_ifs"
5128         if test "X$pkg" = "X$p"; then
5129           enable_fast_install=yes
5130         fi
5131       done
5132       IFS="$lt_save_ifs"
5133       ;;
5134     esac
5135 else
5136   enable_fast_install=yes
5137 fi;
5138
5139 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5140 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5141 if test "${lt_cv_path_SED+set}" = set; then
5142   echo $ECHO_N "(cached) $ECHO_C" >&6
5143 else
5144   # Loop through the user's path and test for sed and gsed.
5145 # Then use that list of sed's as ones to test for truncation.
5146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5147 for as_dir in $PATH
5148 do
5149   IFS=$as_save_IFS
5150   test -z "$as_dir" && as_dir=.
5151   for lt_ac_prog in sed gsed; do
5152     for ac_exec_ext in '' $ac_executable_extensions; do
5153       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5154         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5155       fi
5156     done
5157   done
5158 done
5159 lt_ac_max=0
5160 lt_ac_count=0
5161 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5162 # along with /bin/sed that truncates output.
5163 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5164   test ! -f $lt_ac_sed && continue
5165   cat /dev/null > conftest.in
5166   lt_ac_count=0
5167   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5168   # Check for GNU sed and select it if it is found.
5169   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5170     lt_cv_path_SED=$lt_ac_sed
5171     break
5172   fi
5173   while true; do
5174     cat conftest.in conftest.in >conftest.tmp
5175     mv conftest.tmp conftest.in
5176     cp conftest.in conftest.nl
5177     echo >>conftest.nl
5178     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5179     cmp -s conftest.out conftest.nl || break
5180     # 10000 chars as input seems more than enough
5181     test $lt_ac_count -gt 10 && break
5182     lt_ac_count=`expr $lt_ac_count + 1`
5183     if test $lt_ac_count -gt $lt_ac_max; then
5184       lt_ac_max=$lt_ac_count
5185       lt_cv_path_SED=$lt_ac_sed
5186     fi
5187   done
5188 done
5189
5190 fi
5191
5192 SED=$lt_cv_path_SED
5193 echo "$as_me:$LINENO: result: $SED" >&5
5194 echo "${ECHO_T}$SED" >&6
5195
5196 echo "$as_me:$LINENO: checking for egrep" >&5
5197 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5198 if test "${ac_cv_prog_egrep+set}" = set; then
5199   echo $ECHO_N "(cached) $ECHO_C" >&6
5200 else
5201   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5202     then ac_cv_prog_egrep='grep -E'
5203     else ac_cv_prog_egrep='egrep'
5204     fi
5205 fi
5206 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5207 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5208  EGREP=$ac_cv_prog_egrep
5209
5210
5211
5212 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5213 if test "${with_gnu_ld+set}" = set; then
5214   withval="$with_gnu_ld"
5215   test "$withval" = no || with_gnu_ld=yes
5216 else
5217   with_gnu_ld=no
5218 fi;
5219 ac_prog=ld
5220 if test "$GCC" = yes; then
5221   # Check if gcc -print-prog-name=ld gives a path.
5222   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5223 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5224   case $host in
5225   *-*-mingw*)
5226     # gcc leaves a trailing carriage return which upsets mingw
5227     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5228   *)
5229     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5230   esac
5231   case $ac_prog in
5232     # Accept absolute paths.
5233     [\\/]* | ?:[\\/]*)
5234       re_direlt='/[^/][^/]*/\.\./'
5235       # Canonicalize the pathname of ld
5236       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5237       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5238         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5239       done
5240       test -z "$LD" && LD="$ac_prog"
5241       ;;
5242   "")
5243     # If it fails, then pretend we aren't using GCC.
5244     ac_prog=ld
5245     ;;
5246   *)
5247     # If it is relative, then search for the first ld in PATH.
5248     with_gnu_ld=unknown
5249     ;;
5250   esac
5251 elif test "$with_gnu_ld" = yes; then
5252   echo "$as_me:$LINENO: checking for GNU ld" >&5
5253 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5254 else
5255   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5256 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5257 fi
5258 if test "${lt_cv_path_LD+set}" = set; then
5259   echo $ECHO_N "(cached) $ECHO_C" >&6
5260 else
5261   if test -z "$LD"; then
5262   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5263   for ac_dir in $PATH; do
5264     IFS="$lt_save_ifs"
5265     test -z "$ac_dir" && ac_dir=.
5266     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5267       lt_cv_path_LD="$ac_dir/$ac_prog"
5268       # Check to see if the program is GNU ld.  I'd rather use --version,
5269       # but apparently some variants of GNU ld only accept -v.
5270       # Break only if it was the GNU/non-GNU ld that we prefer.
5271       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5272       *GNU* | *'with BFD'*)
5273         test "$with_gnu_ld" != no && break
5274         ;;
5275       *)
5276         test "$with_gnu_ld" != yes && break
5277         ;;
5278       esac
5279     fi
5280   done
5281   IFS="$lt_save_ifs"
5282 else
5283   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5284 fi
5285 fi
5286
5287 LD="$lt_cv_path_LD"
5288 if test -n "$LD"; then
5289   echo "$as_me:$LINENO: result: $LD" >&5
5290 echo "${ECHO_T}$LD" >&6
5291 else
5292   echo "$as_me:$LINENO: result: no" >&5
5293 echo "${ECHO_T}no" >&6
5294 fi
5295 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5296 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5297    { (exit 1); exit 1; }; }
5298 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5299 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5300 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5301   echo $ECHO_N "(cached) $ECHO_C" >&6
5302 else
5303   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5304 case `$LD -v 2>&1 </dev/null` in
5305 *GNU* | *'with BFD'*)
5306   lt_cv_prog_gnu_ld=yes
5307   ;;
5308 *)
5309   lt_cv_prog_gnu_ld=no
5310   ;;
5311 esac
5312 fi
5313 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5314 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5315 with_gnu_ld=$lt_cv_prog_gnu_ld
5316
5317
5318 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5319 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5320 if test "${lt_cv_ld_reload_flag+set}" = set; then
5321   echo $ECHO_N "(cached) $ECHO_C" >&6
5322 else
5323   lt_cv_ld_reload_flag='-r'
5324 fi
5325 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5326 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5327 reload_flag=$lt_cv_ld_reload_flag
5328 case $reload_flag in
5329 "" | " "*) ;;
5330 *) reload_flag=" $reload_flag" ;;
5331 esac
5332 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5333 case $host_os in
5334   darwin*)
5335     if test "$GCC" = yes; then
5336       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5337     else
5338       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5339     fi
5340     ;;
5341 esac
5342
5343 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5344 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5345 if test "${lt_cv_path_NM+set}" = set; then
5346   echo $ECHO_N "(cached) $ECHO_C" >&6
5347 else
5348   if test -n "$NM"; then
5349   # Let the user override the test.
5350   lt_cv_path_NM="$NM"
5351 else
5352   lt_nm_to_check="${ac_tool_prefix}nm"
5353   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5354     lt_nm_to_check="$lt_nm_to_check nm"
5355   fi
5356   for lt_tmp_nm in $lt_nm_to_check; do
5357     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5358     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5359       IFS="$lt_save_ifs"
5360       test -z "$ac_dir" && ac_dir=.
5361       tmp_nm="$ac_dir/$lt_tmp_nm"
5362       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5363         # Check to see if the nm accepts a BSD-compat flag.
5364         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5365         #   nm: unknown option "B" ignored
5366         # Tru64's nm complains that /dev/null is an invalid object file
5367         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5368         */dev/null* | *'Invalid file or object type'*)
5369           lt_cv_path_NM="$tmp_nm -B"
5370           break
5371           ;;
5372         *)
5373           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5374           */dev/null*)
5375             lt_cv_path_NM="$tmp_nm -p"
5376             break
5377             ;;
5378           *)
5379             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5380             continue # so that we can try to find one that supports BSD flags
5381             ;;
5382           esac
5383           ;;
5384         esac
5385       fi
5386     done
5387     IFS="$lt_save_ifs"
5388   done
5389   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5390 fi
5391 fi
5392 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5393 echo "${ECHO_T}$lt_cv_path_NM" >&6
5394 NM="$lt_cv_path_NM"
5395
5396 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5397 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5398 if test "${lt_cv_deplibs_check_method+set}" = set; then
5399   echo $ECHO_N "(cached) $ECHO_C" >&6
5400 else
5401   lt_cv_file_magic_cmd='$MAGIC_CMD'
5402 lt_cv_file_magic_test_file=
5403 lt_cv_deplibs_check_method='unknown'
5404 # Need to set the preceding variable on all platforms that support
5405 # interlibrary dependencies.
5406 # 'none' -- dependencies not supported.
5407 # `unknown' -- same as none, but documents that we really don't know.
5408 # 'pass_all' -- all dependencies passed with no checks.
5409 # 'test_compile' -- check by making test program.
5410 # 'file_magic [[regex]]' -- check by looking for files in library path
5411 # which responds to the $file_magic_cmd with a given extended regex.
5412 # If you have `file' or equivalent on your system and you're not sure
5413 # whether `pass_all' will *always* work, you probably want this one.
5414
5415 case $host_os in
5416 aix4* | aix5*)
5417   lt_cv_deplibs_check_method=pass_all
5418   ;;
5419
5420 beos*)
5421   lt_cv_deplibs_check_method=pass_all
5422   ;;
5423
5424 bsdi[45]*)
5425   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5426   lt_cv_file_magic_cmd='/usr/bin/file -L'
5427   lt_cv_file_magic_test_file=/shlib/libc.so
5428   ;;
5429
5430 cygwin*)
5431   # func_win32_libid is a shell function defined in ltmain.sh
5432   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5433   lt_cv_file_magic_cmd='func_win32_libid'
5434   ;;
5435
5436 mingw* | pw32*)
5437   # Base MSYS/MinGW do not provide the 'file' command needed by
5438   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5439   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5440   lt_cv_file_magic_cmd='$OBJDUMP -f'
5441   ;;
5442
5443 darwin* | rhapsody*)
5444   lt_cv_deplibs_check_method=pass_all
5445   ;;
5446
5447 freebsd* | dragonfly*)
5448   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5449     case $host_cpu in
5450     i*86 )
5451       # Not sure whether the presence of OpenBSD here was a mistake.
5452       # Let's accept both of them until this is cleared up.
5453       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5454       lt_cv_file_magic_cmd=/usr/bin/file
5455       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5456       ;;
5457     esac
5458   else
5459     lt_cv_deplibs_check_method=pass_all
5460   fi
5461   ;;
5462
5463 gnu*)
5464   lt_cv_deplibs_check_method=pass_all
5465   ;;
5466
5467 hpux10.20* | hpux11*)
5468   lt_cv_file_magic_cmd=/usr/bin/file
5469   case $host_cpu in
5470   ia64*)
5471     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5472     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5473     ;;
5474   hppa*64*)
5475     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]'
5476     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5477     ;;
5478   *)
5479     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5480     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5481     ;;
5482   esac
5483   ;;
5484
5485 interix3*)
5486   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5487   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5488   ;;
5489
5490 irix5* | irix6* | nonstopux*)
5491   case $LD in
5492   *-32|*"-32 ") libmagic=32-bit;;
5493   *-n32|*"-n32 ") libmagic=N32;;
5494   *-64|*"-64 ") libmagic=64-bit;;
5495   *) libmagic=never-match;;
5496   esac
5497   lt_cv_deplibs_check_method=pass_all
5498   ;;
5499
5500 # This must be Linux ELF.
5501 linux* | k*bsd*-gnu)
5502   lt_cv_deplibs_check_method=pass_all
5503   ;;
5504
5505 netbsd* | netbsdelf*-gnu)
5506   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5507     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5508   else
5509     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5510   fi
5511   ;;
5512
5513 newos6*)
5514   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5515   lt_cv_file_magic_cmd=/usr/bin/file
5516   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5517   ;;
5518
5519 nto-qnx*)
5520   lt_cv_deplibs_check_method=unknown
5521   ;;
5522
5523 openbsd*)
5524   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5525     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5526   else
5527     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5528   fi
5529   ;;
5530
5531 osf3* | osf4* | osf5*)
5532   lt_cv_deplibs_check_method=pass_all
5533   ;;
5534
5535 solaris*)
5536   lt_cv_deplibs_check_method=pass_all
5537   ;;
5538
5539 sysv4 | sysv4.3*)
5540   case $host_vendor in
5541   motorola)
5542     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]'
5543     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5544     ;;
5545   ncr)
5546     lt_cv_deplibs_check_method=pass_all
5547     ;;
5548   sequent)
5549     lt_cv_file_magic_cmd='/bin/file'
5550     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5551     ;;
5552   sni)
5553     lt_cv_file_magic_cmd='/bin/file'
5554     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5555     lt_cv_file_magic_test_file=/lib/libc.so
5556     ;;
5557   siemens)
5558     lt_cv_deplibs_check_method=pass_all
5559     ;;
5560   pc)
5561     lt_cv_deplibs_check_method=pass_all
5562     ;;
5563   esac
5564   ;;
5565
5566 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5567   lt_cv_deplibs_check_method=pass_all
5568   ;;
5569 esac
5570
5571 fi
5572 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5573 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5574 file_magic_cmd=$lt_cv_file_magic_cmd
5575 deplibs_check_method=$lt_cv_deplibs_check_method
5576 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5577
5578
5579
5580
5581 # If no C compiler was specified, use CC.
5582 LTCC=${LTCC-"$CC"}
5583
5584 # If no C compiler flags were specified, use CFLAGS.
5585 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5586
5587 # Allow CC to be a program name with arguments.
5588 compiler=$CC
5589
5590 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5591 if test "${enable_libtool_lock+set}" = set; then
5592   enableval="$enable_libtool_lock"
5593
5594 fi;
5595 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5596
5597 # Some flags need to be propagated to the compiler or linker for good
5598 # libtool support.
5599 case $host in
5600 ia64-*-hpux*)
5601   # Find out which ABI we are using.
5602   echo 'int i;' > conftest.$ac_ext
5603   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5604   (eval $ac_compile) 2>&5
5605   ac_status=$?
5606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607   (exit $ac_status); }; then
5608     case `/usr/bin/file conftest.$ac_objext` in
5609     *ELF-32*)
5610       HPUX_IA64_MODE="32"
5611       ;;
5612     *ELF-64*)
5613       HPUX_IA64_MODE="64"
5614       ;;
5615     esac
5616   fi
5617   rm -rf conftest*
5618   ;;
5619 *-*-irix6*)
5620   # Find out which ABI we are using.
5621   echo '#line 5621 "configure"' > conftest.$ac_ext
5622   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5623   (eval $ac_compile) 2>&5
5624   ac_status=$?
5625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626   (exit $ac_status); }; then
5627    if test "$lt_cv_prog_gnu_ld" = yes; then
5628     case `/usr/bin/file conftest.$ac_objext` in
5629     *32-bit*)
5630       LD="${LD-ld} -melf32bsmip"
5631       ;;
5632     *N32*)
5633       LD="${LD-ld} -melf32bmipn32"
5634       ;;
5635     *64-bit*)
5636       LD="${LD-ld} -melf64bmip"
5637       ;;
5638     esac
5639    else
5640     case `/usr/bin/file conftest.$ac_objext` in
5641     *32-bit*)
5642       LD="${LD-ld} -32"
5643       ;;
5644     *N32*)
5645       LD="${LD-ld} -n32"
5646       ;;
5647     *64-bit*)
5648       LD="${LD-ld} -64"
5649       ;;
5650     esac
5651    fi
5652   fi
5653   rm -rf conftest*
5654   ;;
5655
5656 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5657   # Find out which ABI we are using.
5658   echo 'int i;' > conftest.$ac_ext
5659   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5660   (eval $ac_compile) 2>&5
5661   ac_status=$?
5662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663   (exit $ac_status); }; then
5664     case `/usr/bin/file conftest.o` in
5665     *32-bit*)
5666       case $host in
5667         x86_64-*linux*)
5668           LD="${LD-ld} -m elf_i386"
5669           ;;
5670         ppc64-*linux*|powerpc64-*linux*)
5671           LD="${LD-ld} -m elf32ppclinux"
5672           ;;
5673         s390x-*linux*)
5674           LD="${LD-ld} -m elf_s390"
5675           ;;
5676         sparc64-*linux*)
5677           LD="${LD-ld} -m elf32_sparc"
5678           ;;
5679       esac
5680       ;;
5681     *64-bit*)
5682       case $host in
5683         x86_64-*linux*)
5684           LD="${LD-ld} -m elf_x86_64"
5685           ;;
5686         ppc*-*linux*|powerpc*-*linux*)
5687           LD="${LD-ld} -m elf64ppc"
5688           ;;
5689         s390*-*linux*)
5690           LD="${LD-ld} -m elf64_s390"
5691           ;;
5692         sparc*-*linux*)
5693           LD="${LD-ld} -m elf64_sparc"
5694           ;;
5695       esac
5696       ;;
5697     esac
5698   fi
5699   rm -rf conftest*
5700   ;;
5701
5702 *-*-sco3.2v5*)
5703   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5704   SAVE_CFLAGS="$CFLAGS"
5705   CFLAGS="$CFLAGS -belf"
5706   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5707 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5708 if test "${lt_cv_cc_needs_belf+set}" = set; then
5709   echo $ECHO_N "(cached) $ECHO_C" >&6
5710 else
5711   ac_ext=c
5712 ac_cpp='$CPP $CPPFLAGS'
5713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5716
5717      cat >conftest.$ac_ext <<_ACEOF
5718 /* confdefs.h.  */
5719 _ACEOF
5720 cat confdefs.h >>conftest.$ac_ext
5721 cat >>conftest.$ac_ext <<_ACEOF
5722 /* end confdefs.h.  */
5723
5724 int
5725 main ()
5726 {
5727
5728   ;
5729   return 0;
5730 }
5731 _ACEOF
5732 rm -f conftest.$ac_objext conftest$ac_exeext
5733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5734   (eval $ac_link) 2>conftest.er1
5735   ac_status=$?
5736   grep -v '^ *+' conftest.er1 >conftest.err
5737   rm -f conftest.er1
5738   cat conftest.err >&5
5739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740   (exit $ac_status); } &&
5741          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5743   (eval $ac_try) 2>&5
5744   ac_status=$?
5745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746   (exit $ac_status); }; } &&
5747          { ac_try='test -s conftest$ac_exeext'
5748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5749   (eval $ac_try) 2>&5
5750   ac_status=$?
5751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752   (exit $ac_status); }; }; then
5753   lt_cv_cc_needs_belf=yes
5754 else
5755   echo "$as_me: failed program was:" >&5
5756 sed 's/^/| /' conftest.$ac_ext >&5
5757
5758 lt_cv_cc_needs_belf=no
5759 fi
5760 rm -f conftest.err conftest.$ac_objext \
5761       conftest$ac_exeext conftest.$ac_ext
5762      ac_ext=c
5763 ac_cpp='$CPP $CPPFLAGS'
5764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5767
5768 fi
5769 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5770 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5771   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5772     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5773     CFLAGS="$SAVE_CFLAGS"
5774   fi
5775   ;;
5776 sparc*-*solaris*)
5777   # Find out which ABI we are using.
5778   echo 'int i;' > conftest.$ac_ext
5779   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5780   (eval $ac_compile) 2>&5
5781   ac_status=$?
5782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783   (exit $ac_status); }; then
5784     case `/usr/bin/file conftest.o` in
5785     *64-bit*)
5786       case $lt_cv_prog_gnu_ld in
5787       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5788       *)    LD="${LD-ld} -64" ;;
5789       esac
5790       ;;
5791     esac
5792   fi
5793   rm -rf conftest*
5794   ;;
5795
5796
5797 esac
5798
5799 need_locks="$enable_libtool_lock"
5800
5801
5802
5803 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5804 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5805 if test "${ac_cv_header_stdc+set}" = set; then
5806   echo $ECHO_N "(cached) $ECHO_C" >&6
5807 else
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 <stdlib.h>
5815 #include <stdarg.h>
5816 #include <string.h>
5817 #include <float.h>
5818
5819 int
5820 main ()
5821 {
5822
5823   ;
5824   return 0;
5825 }
5826 _ACEOF
5827 rm -f conftest.$ac_objext
5828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5829   (eval $ac_compile) 2>conftest.er1
5830   ac_status=$?
5831   grep -v '^ *+' conftest.er1 >conftest.err
5832   rm -f conftest.er1
5833   cat conftest.err >&5
5834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835   (exit $ac_status); } &&
5836          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5838   (eval $ac_try) 2>&5
5839   ac_status=$?
5840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841   (exit $ac_status); }; } &&
5842          { ac_try='test -s conftest.$ac_objext'
5843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5844   (eval $ac_try) 2>&5
5845   ac_status=$?
5846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847   (exit $ac_status); }; }; then
5848   ac_cv_header_stdc=yes
5849 else
5850   echo "$as_me: failed program was:" >&5
5851 sed 's/^/| /' conftest.$ac_ext >&5
5852
5853 ac_cv_header_stdc=no
5854 fi
5855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5856
5857 if test $ac_cv_header_stdc = yes; then
5858   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5859   cat >conftest.$ac_ext <<_ACEOF
5860 /* confdefs.h.  */
5861 _ACEOF
5862 cat confdefs.h >>conftest.$ac_ext
5863 cat >>conftest.$ac_ext <<_ACEOF
5864 /* end confdefs.h.  */
5865 #include <string.h>
5866
5867 _ACEOF
5868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5869   $EGREP "memchr" >/dev/null 2>&1; then
5870   :
5871 else
5872   ac_cv_header_stdc=no
5873 fi
5874 rm -f conftest*
5875
5876 fi
5877
5878 if test $ac_cv_header_stdc = yes; then
5879   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5880   cat >conftest.$ac_ext <<_ACEOF
5881 /* confdefs.h.  */
5882 _ACEOF
5883 cat confdefs.h >>conftest.$ac_ext
5884 cat >>conftest.$ac_ext <<_ACEOF
5885 /* end confdefs.h.  */
5886 #include <stdlib.h>
5887
5888 _ACEOF
5889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5890   $EGREP "free" >/dev/null 2>&1; then
5891   :
5892 else
5893   ac_cv_header_stdc=no
5894 fi
5895 rm -f conftest*
5896
5897 fi
5898
5899 if test $ac_cv_header_stdc = yes; then
5900   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5901   if test "$cross_compiling" = yes; then
5902   :
5903 else
5904   cat >conftest.$ac_ext <<_ACEOF
5905 /* confdefs.h.  */
5906 _ACEOF
5907 cat confdefs.h >>conftest.$ac_ext
5908 cat >>conftest.$ac_ext <<_ACEOF
5909 /* end confdefs.h.  */
5910 #include <ctype.h>
5911 #if ((' ' & 0x0FF) == 0x020)
5912 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5913 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5914 #else
5915 # define ISLOWER(c) \
5916                    (('a' <= (c) && (c) <= 'i') \
5917                      || ('j' <= (c) && (c) <= 'r') \
5918                      || ('s' <= (c) && (c) <= 'z'))
5919 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5920 #endif
5921
5922 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5923 int
5924 main ()
5925 {
5926   int i;
5927   for (i = 0; i < 256; i++)
5928     if (XOR (islower (i), ISLOWER (i))
5929         || toupper (i) != TOUPPER (i))
5930       exit(2);
5931   exit (0);
5932 }
5933 _ACEOF
5934 rm -f conftest$ac_exeext
5935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5936   (eval $ac_link) 2>&5
5937   ac_status=$?
5938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5941   (eval $ac_try) 2>&5
5942   ac_status=$?
5943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944   (exit $ac_status); }; }; then
5945   :
5946 else
5947   echo "$as_me: program exited with status $ac_status" >&5
5948 echo "$as_me: failed program was:" >&5
5949 sed 's/^/| /' conftest.$ac_ext >&5
5950
5951 ( exit $ac_status )
5952 ac_cv_header_stdc=no
5953 fi
5954 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5955 fi
5956 fi
5957 fi
5958 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5959 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5960 if test $ac_cv_header_stdc = yes; then
5961
5962 cat >>confdefs.h <<\_ACEOF
5963 #define STDC_HEADERS 1
5964 _ACEOF
5965
5966 fi
5967
5968 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5979                   inttypes.h stdint.h unistd.h
5980 do
5981 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5982 echo "$as_me:$LINENO: checking for $ac_header" >&5
5983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5984 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5985   echo $ECHO_N "(cached) $ECHO_C" >&6
5986 else
5987   cat >conftest.$ac_ext <<_ACEOF
5988 /* confdefs.h.  */
5989 _ACEOF
5990 cat confdefs.h >>conftest.$ac_ext
5991 cat >>conftest.$ac_ext <<_ACEOF
5992 /* end confdefs.h.  */
5993 $ac_includes_default
5994
5995 #include <$ac_header>
5996 _ACEOF
5997 rm -f conftest.$ac_objext
5998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5999   (eval $ac_compile) 2>conftest.er1
6000   ac_status=$?
6001   grep -v '^ *+' conftest.er1 >conftest.err
6002   rm -f conftest.er1
6003   cat conftest.err >&5
6004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005   (exit $ac_status); } &&
6006          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6008   (eval $ac_try) 2>&5
6009   ac_status=$?
6010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011   (exit $ac_status); }; } &&
6012          { ac_try='test -s conftest.$ac_objext'
6013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6014   (eval $ac_try) 2>&5
6015   ac_status=$?
6016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017   (exit $ac_status); }; }; then
6018   eval "$as_ac_Header=yes"
6019 else
6020   echo "$as_me: failed program was:" >&5
6021 sed 's/^/| /' conftest.$ac_ext >&5
6022
6023 eval "$as_ac_Header=no"
6024 fi
6025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6026 fi
6027 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6028 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6029 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6030   cat >>confdefs.h <<_ACEOF
6031 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6032 _ACEOF
6033
6034 fi
6035
6036 done
6037
6038
6039
6040 for ac_header in dlfcn.h
6041 do
6042 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6043 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6044   echo "$as_me:$LINENO: checking for $ac_header" >&5
6045 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6046 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6047   echo $ECHO_N "(cached) $ECHO_C" >&6
6048 fi
6049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6050 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6051 else
6052   # Is the header compilable?
6053 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6054 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6055 cat >conftest.$ac_ext <<_ACEOF
6056 /* confdefs.h.  */
6057 _ACEOF
6058 cat confdefs.h >>conftest.$ac_ext
6059 cat >>conftest.$ac_ext <<_ACEOF
6060 /* end confdefs.h.  */
6061 $ac_includes_default
6062 #include <$ac_header>
6063 _ACEOF
6064 rm -f conftest.$ac_objext
6065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6066   (eval $ac_compile) 2>conftest.er1
6067   ac_status=$?
6068   grep -v '^ *+' conftest.er1 >conftest.err
6069   rm -f conftest.er1
6070   cat conftest.err >&5
6071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072   (exit $ac_status); } &&
6073          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6075   (eval $ac_try) 2>&5
6076   ac_status=$?
6077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078   (exit $ac_status); }; } &&
6079          { ac_try='test -s conftest.$ac_objext'
6080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6081   (eval $ac_try) 2>&5
6082   ac_status=$?
6083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084   (exit $ac_status); }; }; then
6085   ac_header_compiler=yes
6086 else
6087   echo "$as_me: failed program was:" >&5
6088 sed 's/^/| /' conftest.$ac_ext >&5
6089
6090 ac_header_compiler=no
6091 fi
6092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6093 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6094 echo "${ECHO_T}$ac_header_compiler" >&6
6095
6096 # Is the header present?
6097 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6098 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6099 cat >conftest.$ac_ext <<_ACEOF
6100 /* confdefs.h.  */
6101 _ACEOF
6102 cat confdefs.h >>conftest.$ac_ext
6103 cat >>conftest.$ac_ext <<_ACEOF
6104 /* end confdefs.h.  */
6105 #include <$ac_header>
6106 _ACEOF
6107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6108   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6109   ac_status=$?
6110   grep -v '^ *+' conftest.er1 >conftest.err
6111   rm -f conftest.er1
6112   cat conftest.err >&5
6113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114   (exit $ac_status); } >/dev/null; then
6115   if test -s conftest.err; then
6116     ac_cpp_err=$ac_c_preproc_warn_flag
6117     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6118   else
6119     ac_cpp_err=
6120   fi
6121 else
6122   ac_cpp_err=yes
6123 fi
6124 if test -z "$ac_cpp_err"; then
6125   ac_header_preproc=yes
6126 else
6127   echo "$as_me: failed program was:" >&5
6128 sed 's/^/| /' conftest.$ac_ext >&5
6129
6130   ac_header_preproc=no
6131 fi
6132 rm -f conftest.err conftest.$ac_ext
6133 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6134 echo "${ECHO_T}$ac_header_preproc" >&6
6135
6136 # So?  What about this header?
6137 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6138   yes:no: )
6139     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6140 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6141     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6142 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6143     ac_header_preproc=yes
6144     ;;
6145   no:yes:* )
6146     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6147 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6148     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6149 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6150     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6151 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6152     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6153 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6154     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6155 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6156     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6157 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6158     (
6159       cat <<\_ASBOX
6160 ## ------------------------------- ##
6161 ## Report this to nfs@lists.sf.net ##
6162 ## ------------------------------- ##
6163 _ASBOX
6164     ) |
6165       sed "s/^/$as_me: WARNING:     /" >&2
6166     ;;
6167 esac
6168 echo "$as_me:$LINENO: checking for $ac_header" >&5
6169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6171   echo $ECHO_N "(cached) $ECHO_C" >&6
6172 else
6173   eval "$as_ac_Header=\$ac_header_preproc"
6174 fi
6175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6176 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6177
6178 fi
6179 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6180   cat >>confdefs.h <<_ACEOF
6181 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6182 _ACEOF
6183
6184 fi
6185
6186 done
6187
6188
6189
6190 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6191     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6192     (test "X$CXX" != "Xg++"))) ; then
6193   ac_ext=cc
6194 ac_cpp='$CXXCPP $CPPFLAGS'
6195 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6196 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6197 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6198 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6199 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6200 if test -z "$CXXCPP"; then
6201   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6202   echo $ECHO_N "(cached) $ECHO_C" >&6
6203 else
6204       # Double quotes because CXXCPP needs to be expanded
6205     for CXXCPP in "$CXX -E" "/lib/cpp"
6206     do
6207       ac_preproc_ok=false
6208 for ac_cxx_preproc_warn_flag in '' yes
6209 do
6210   # Use a header file that comes with gcc, so configuring glibc
6211   # with a fresh cross-compiler works.
6212   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6213   # <limits.h> exists even on freestanding compilers.
6214   # On the NeXT, cc -E runs the code through the compiler's parser,
6215   # not just through cpp. "Syntax error" is here to catch this case.
6216   cat >conftest.$ac_ext <<_ACEOF
6217 /* confdefs.h.  */
6218 _ACEOF
6219 cat confdefs.h >>conftest.$ac_ext
6220 cat >>conftest.$ac_ext <<_ACEOF
6221 /* end confdefs.h.  */
6222 #ifdef __STDC__
6223 # include <limits.h>
6224 #else
6225 # include <assert.h>
6226 #endif
6227                      Syntax error
6228 _ACEOF
6229 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6230   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6231   ac_status=$?
6232   grep -v '^ *+' conftest.er1 >conftest.err
6233   rm -f conftest.er1
6234   cat conftest.err >&5
6235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236   (exit $ac_status); } >/dev/null; then
6237   if test -s conftest.err; then
6238     ac_cpp_err=$ac_cxx_preproc_warn_flag
6239     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6240   else
6241     ac_cpp_err=
6242   fi
6243 else
6244   ac_cpp_err=yes
6245 fi
6246 if test -z "$ac_cpp_err"; then
6247   :
6248 else
6249   echo "$as_me: failed program was:" >&5
6250 sed 's/^/| /' conftest.$ac_ext >&5
6251
6252   # Broken: fails on valid input.
6253 continue
6254 fi
6255 rm -f conftest.err conftest.$ac_ext
6256
6257   # OK, works on sane cases.  Now check whether non-existent headers
6258   # can be detected and how.
6259   cat >conftest.$ac_ext <<_ACEOF
6260 /* confdefs.h.  */
6261 _ACEOF
6262 cat confdefs.h >>conftest.$ac_ext
6263 cat >>conftest.$ac_ext <<_ACEOF
6264 /* end confdefs.h.  */
6265 #include <ac_nonexistent.h>
6266 _ACEOF
6267 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6268   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6269   ac_status=$?
6270   grep -v '^ *+' conftest.er1 >conftest.err
6271   rm -f conftest.er1
6272   cat conftest.err >&5
6273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274   (exit $ac_status); } >/dev/null; then
6275   if test -s conftest.err; then
6276     ac_cpp_err=$ac_cxx_preproc_warn_flag
6277     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6278   else
6279     ac_cpp_err=
6280   fi
6281 else
6282   ac_cpp_err=yes
6283 fi
6284 if test -z "$ac_cpp_err"; then
6285   # Broken: success on invalid input.
6286 continue
6287 else
6288   echo "$as_me: failed program was:" >&5
6289 sed 's/^/| /' conftest.$ac_ext >&5
6290
6291   # Passes both tests.
6292 ac_preproc_ok=:
6293 break
6294 fi
6295 rm -f conftest.err conftest.$ac_ext
6296
6297 done
6298 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6299 rm -f conftest.err conftest.$ac_ext
6300 if $ac_preproc_ok; then
6301   break
6302 fi
6303
6304     done
6305     ac_cv_prog_CXXCPP=$CXXCPP
6306
6307 fi
6308   CXXCPP=$ac_cv_prog_CXXCPP
6309 else
6310   ac_cv_prog_CXXCPP=$CXXCPP
6311 fi
6312 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6313 echo "${ECHO_T}$CXXCPP" >&6
6314 ac_preproc_ok=false
6315 for ac_cxx_preproc_warn_flag in '' yes
6316 do
6317   # Use a header file that comes with gcc, so configuring glibc
6318   # with a fresh cross-compiler works.
6319   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6320   # <limits.h> exists even on freestanding compilers.
6321   # On the NeXT, cc -E runs the code through the compiler's parser,
6322   # not just through cpp. "Syntax error" is here to catch this case.
6323   cat >conftest.$ac_ext <<_ACEOF
6324 /* confdefs.h.  */
6325 _ACEOF
6326 cat confdefs.h >>conftest.$ac_ext
6327 cat >>conftest.$ac_ext <<_ACEOF
6328 /* end confdefs.h.  */
6329 #ifdef __STDC__
6330 # include <limits.h>
6331 #else
6332 # include <assert.h>
6333 #endif
6334                      Syntax error
6335 _ACEOF
6336 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6337   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6338   ac_status=$?
6339   grep -v '^ *+' conftest.er1 >conftest.err
6340   rm -f conftest.er1
6341   cat conftest.err >&5
6342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343   (exit $ac_status); } >/dev/null; then
6344   if test -s conftest.err; then
6345     ac_cpp_err=$ac_cxx_preproc_warn_flag
6346     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6347   else
6348     ac_cpp_err=
6349   fi
6350 else
6351   ac_cpp_err=yes
6352 fi
6353 if test -z "$ac_cpp_err"; then
6354   :
6355 else
6356   echo "$as_me: failed program was:" >&5
6357 sed 's/^/| /' conftest.$ac_ext >&5
6358
6359   # Broken: fails on valid input.
6360 continue
6361 fi
6362 rm -f conftest.err conftest.$ac_ext
6363
6364   # OK, works on sane cases.  Now check whether non-existent headers
6365   # can be detected and how.
6366   cat >conftest.$ac_ext <<_ACEOF
6367 /* confdefs.h.  */
6368 _ACEOF
6369 cat confdefs.h >>conftest.$ac_ext
6370 cat >>conftest.$ac_ext <<_ACEOF
6371 /* end confdefs.h.  */
6372 #include <ac_nonexistent.h>
6373 _ACEOF
6374 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6375   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6376   ac_status=$?
6377   grep -v '^ *+' conftest.er1 >conftest.err
6378   rm -f conftest.er1
6379   cat conftest.err >&5
6380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381   (exit $ac_status); } >/dev/null; then
6382   if test -s conftest.err; then
6383     ac_cpp_err=$ac_cxx_preproc_warn_flag
6384     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6385   else
6386     ac_cpp_err=
6387   fi
6388 else
6389   ac_cpp_err=yes
6390 fi
6391 if test -z "$ac_cpp_err"; then
6392   # Broken: success on invalid input.
6393 continue
6394 else
6395   echo "$as_me: failed program was:" >&5
6396 sed 's/^/| /' conftest.$ac_ext >&5
6397
6398   # Passes both tests.
6399 ac_preproc_ok=:
6400 break
6401 fi
6402 rm -f conftest.err conftest.$ac_ext
6403
6404 done
6405 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6406 rm -f conftest.err conftest.$ac_ext
6407 if $ac_preproc_ok; then
6408   :
6409 else
6410   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6411 See \`config.log' for more details." >&5
6412 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6413 See \`config.log' for more details." >&2;}
6414    { (exit 1); exit 1; }; }
6415 fi
6416
6417 ac_ext=cc
6418 ac_cpp='$CXXCPP $CPPFLAGS'
6419 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6420 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6421 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6422
6423 fi
6424
6425
6426 ac_ext=f
6427 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6428 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6429 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6430 if test -n "$ac_tool_prefix"; then
6431   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6432   do
6433     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6434 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6435 echo "$as_me:$LINENO: checking for $ac_word" >&5
6436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6437 if test "${ac_cv_prog_F77+set}" = set; then
6438   echo $ECHO_N "(cached) $ECHO_C" >&6
6439 else
6440   if test -n "$F77"; then
6441   ac_cv_prog_F77="$F77" # Let the user override the test.
6442 else
6443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6444 for as_dir in $PATH
6445 do
6446   IFS=$as_save_IFS
6447   test -z "$as_dir" && as_dir=.
6448   for ac_exec_ext in '' $ac_executable_extensions; do
6449   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6450     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6451     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6452     break 2
6453   fi
6454 done
6455 done
6456
6457 fi
6458 fi
6459 F77=$ac_cv_prog_F77
6460 if test -n "$F77"; then
6461   echo "$as_me:$LINENO: result: $F77" >&5
6462 echo "${ECHO_T}$F77" >&6
6463 else
6464   echo "$as_me:$LINENO: result: no" >&5
6465 echo "${ECHO_T}no" >&6
6466 fi
6467
6468     test -n "$F77" && break
6469   done
6470 fi
6471 if test -z "$F77"; then
6472   ac_ct_F77=$F77
6473   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6474 do
6475   # Extract the first word of "$ac_prog", so it can be a program name with args.
6476 set dummy $ac_prog; ac_word=$2
6477 echo "$as_me:$LINENO: checking for $ac_word" >&5
6478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6479 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6480   echo $ECHO_N "(cached) $ECHO_C" >&6
6481 else
6482   if test -n "$ac_ct_F77"; then
6483   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6484 else
6485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6486 for as_dir in $PATH
6487 do
6488   IFS=$as_save_IFS
6489   test -z "$as_dir" && as_dir=.
6490   for ac_exec_ext in '' $ac_executable_extensions; do
6491   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6492     ac_cv_prog_ac_ct_F77="$ac_prog"
6493     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6494     break 2
6495   fi
6496 done
6497 done
6498
6499 fi
6500 fi
6501 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6502 if test -n "$ac_ct_F77"; then
6503   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6504 echo "${ECHO_T}$ac_ct_F77" >&6
6505 else
6506   echo "$as_me:$LINENO: result: no" >&5
6507 echo "${ECHO_T}no" >&6
6508 fi
6509
6510   test -n "$ac_ct_F77" && break
6511 done
6512
6513   F77=$ac_ct_F77
6514 fi
6515
6516
6517 # Provide some information about the compiler.
6518 echo "$as_me:6518:" \
6519      "checking for Fortran 77 compiler version" >&5
6520 ac_compiler=`set X $ac_compile; echo $2`
6521 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6522   (eval $ac_compiler --version </dev/null >&5) 2>&5
6523   ac_status=$?
6524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525   (exit $ac_status); }
6526 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6527   (eval $ac_compiler -v </dev/null >&5) 2>&5
6528   ac_status=$?
6529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530   (exit $ac_status); }
6531 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6532   (eval $ac_compiler -V </dev/null >&5) 2>&5
6533   ac_status=$?
6534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535   (exit $ac_status); }
6536 rm -f a.out
6537
6538 # If we don't use `.F' as extension, the preprocessor is not run on the
6539 # input file.  (Note that this only needs to work for GNU compilers.)
6540 ac_save_ext=$ac_ext
6541 ac_ext=F
6542 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6543 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6544 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6545   echo $ECHO_N "(cached) $ECHO_C" >&6
6546 else
6547   cat >conftest.$ac_ext <<_ACEOF
6548       program main
6549 #ifndef __GNUC__
6550        choke me
6551 #endif
6552
6553       end
6554 _ACEOF
6555 rm -f conftest.$ac_objext
6556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6557   (eval $ac_compile) 2>conftest.er1
6558   ac_status=$?
6559   grep -v '^ *+' conftest.er1 >conftest.err
6560   rm -f conftest.er1
6561   cat conftest.err >&5
6562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563   (exit $ac_status); } &&
6564          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
6565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6566   (eval $ac_try) 2>&5
6567   ac_status=$?
6568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569   (exit $ac_status); }; } &&
6570          { ac_try='test -s conftest.$ac_objext'
6571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6572   (eval $ac_try) 2>&5
6573   ac_status=$?
6574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575   (exit $ac_status); }; }; then
6576   ac_compiler_gnu=yes
6577 else
6578   echo "$as_me: failed program was:" >&5
6579 sed 's/^/| /' conftest.$ac_ext >&5
6580
6581 ac_compiler_gnu=no
6582 fi
6583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6584 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6585
6586 fi
6587 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6588 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6589 ac_ext=$ac_save_ext
6590 ac_test_FFLAGS=${FFLAGS+set}
6591 ac_save_FFLAGS=$FFLAGS
6592 FFLAGS=
6593 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6594 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6595 if test "${ac_cv_prog_f77_g+set}" = set; then
6596   echo $ECHO_N "(cached) $ECHO_C" >&6
6597 else
6598   FFLAGS=-g
6599 cat >conftest.$ac_ext <<_ACEOF
6600       program main
6601
6602       end
6603 _ACEOF
6604 rm -f conftest.$ac_objext
6605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6606   (eval $ac_compile) 2>conftest.er1
6607   ac_status=$?
6608   grep -v '^ *+' conftest.er1 >conftest.err
6609   rm -f conftest.er1
6610   cat conftest.err >&5
6611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612   (exit $ac_status); } &&
6613          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
6614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6615   (eval $ac_try) 2>&5
6616   ac_status=$?
6617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618   (exit $ac_status); }; } &&
6619          { ac_try='test -s conftest.$ac_objext'
6620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6621   (eval $ac_try) 2>&5
6622   ac_status=$?
6623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624   (exit $ac_status); }; }; then
6625   ac_cv_prog_f77_g=yes
6626 else
6627   echo "$as_me: failed program was:" >&5
6628 sed 's/^/| /' conftest.$ac_ext >&5
6629
6630 ac_cv_prog_f77_g=no
6631 fi
6632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6633
6634 fi
6635 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6636 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6637 if test "$ac_test_FFLAGS" = set; then
6638   FFLAGS=$ac_save_FFLAGS
6639 elif test $ac_cv_prog_f77_g = yes; then
6640   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6641     FFLAGS="-g -O2"
6642   else
6643     FFLAGS="-g"
6644   fi
6645 else
6646   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6647     FFLAGS="-O2"
6648   else
6649     FFLAGS=
6650   fi
6651 fi
6652
6653 G77=`test $ac_compiler_gnu = yes && echo yes`
6654 ac_ext=c
6655 ac_cpp='$CPP $CPPFLAGS'
6656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6659
6660
6661
6662 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6663
6664 # find the maximum length of command line arguments
6665 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6666 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6667 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6668   echo $ECHO_N "(cached) $ECHO_C" >&6
6669 else
6670     i=0
6671   teststring="ABCD"
6672
6673   case $build_os in
6674   msdosdjgpp*)
6675     # On DJGPP, this test can blow up pretty badly due to problems in libc
6676     # (any single argument exceeding 2000 bytes causes a buffer overrun
6677     # during glob expansion).  Even if it were fixed, the result of this
6678     # check would be larger than it should be.
6679     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6680     ;;
6681
6682   gnu*)
6683     # Under GNU Hurd, this test is not required because there is
6684     # no limit to the length of command line arguments.
6685     # Libtool will interpret -1 as no limit whatsoever
6686     lt_cv_sys_max_cmd_len=-1;
6687     ;;
6688
6689   cygwin* | mingw*)
6690     # On Win9x/ME, this test blows up -- it succeeds, but takes
6691     # about 5 minutes as the teststring grows exponentially.
6692     # Worse, since 9x/ME are not pre-emptively multitasking,
6693     # you end up with a "frozen" computer, even though with patience
6694     # the test eventually succeeds (with a max line length of 256k).
6695     # Instead, let's just punt: use the minimum linelength reported by
6696     # all of the supported platforms: 8192 (on NT/2K/XP).
6697     lt_cv_sys_max_cmd_len=8192;
6698     ;;
6699
6700   amigaos*)
6701     # On AmigaOS with pdksh, this test takes hours, literally.
6702     # So we just punt and use a minimum line length of 8192.
6703     lt_cv_sys_max_cmd_len=8192;
6704     ;;
6705
6706   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6707     # This has been around since 386BSD, at least.  Likely further.
6708     if test -x /sbin/sysctl; then
6709       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6710     elif test -x /usr/sbin/sysctl; then
6711       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6712     else
6713       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6714     fi
6715     # And add a safety zone
6716     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6717     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6718     ;;
6719
6720   interix*)
6721     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6722     lt_cv_sys_max_cmd_len=196608
6723     ;;
6724
6725   osf*)
6726     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6727     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6728     # nice to cause kernel panics so lets avoid the loop below.
6729     # First set a reasonable default.
6730     lt_cv_sys_max_cmd_len=16384
6731     #
6732     if test -x /sbin/sysconfig; then
6733       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6734         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6735       esac
6736     fi
6737     ;;
6738   sco3.2v5*)
6739     lt_cv_sys_max_cmd_len=102400
6740     ;;
6741   sysv5* | sco5v6* | sysv4.2uw2*)
6742     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6743     if test -n "$kargmax"; then
6744       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6745     else
6746       lt_cv_sys_max_cmd_len=32768
6747     fi
6748     ;;
6749   *)
6750     # If test is not a shell built-in, we'll probably end up computing a
6751     # maximum length that is only half of the actual maximum length, but
6752     # we can't tell.
6753     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6754     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6755                = "XX$teststring") >/dev/null 2>&1 &&
6756             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6757             lt_cv_sys_max_cmd_len=$new_result &&
6758             test $i != 17 # 1/2 MB should be enough
6759     do
6760       i=`expr $i + 1`
6761       teststring=$teststring$teststring
6762     done
6763     teststring=
6764     # Add a significant safety factor because C++ compilers can tack on massive
6765     # amounts of additional arguments before passing them to the linker.
6766     # It appears as though 1/2 is a usable value.
6767     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6768     ;;
6769   esac
6770
6771 fi
6772
6773 if test -n $lt_cv_sys_max_cmd_len ; then
6774   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6775 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6776 else
6777   echo "$as_me:$LINENO: result: none" >&5
6778 echo "${ECHO_T}none" >&6
6779 fi
6780
6781
6782
6783
6784 # Check for command to grab the raw symbol name followed by C symbol from nm.
6785 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6786 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6787 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6788   echo $ECHO_N "(cached) $ECHO_C" >&6
6789 else
6790
6791 # These are sane defaults that work on at least a few old systems.
6792 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6793
6794 # Character class describing NM global symbol codes.
6795 symcode='[BCDEGRST]'
6796
6797 # Regexp to match symbols that can be accessed directly from C.
6798 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6799
6800 # Transform an extracted symbol line into a proper C declaration
6801 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6802
6803 # Transform an extracted symbol line into symbol name and symbol address
6804 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'"
6805
6806 # Define system-specific variables.
6807 case $host_os in
6808 aix*)
6809   symcode='[BCDT]'
6810   ;;
6811 cygwin* | mingw* | pw32*)
6812   symcode='[ABCDGISTW]'
6813   ;;
6814 hpux*) # Its linker distinguishes data from code symbols
6815   if test "$host_cpu" = ia64; then
6816     symcode='[ABCDEGRST]'
6817   fi
6818   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6819   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'"
6820   ;;
6821 linux* | k*bsd*-gnu)
6822   if test "$host_cpu" = ia64; then
6823     symcode='[ABCDGIRSTW]'
6824     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6825     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'"
6826   fi
6827   ;;
6828 irix* | nonstopux*)
6829   symcode='[BCDEGRST]'
6830   ;;
6831 osf*)
6832   symcode='[BCDEGQRST]'
6833   ;;
6834 solaris*)
6835   symcode='[BDRT]'
6836   ;;
6837 sco3.2v5*)
6838   symcode='[DT]'
6839   ;;
6840 sysv4.2uw2*)
6841   symcode='[DT]'
6842   ;;
6843 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6844   symcode='[ABDT]'
6845   ;;
6846 sysv4)
6847   symcode='[DFNSTU]'
6848   ;;
6849 esac
6850
6851 # Handle CRLF in mingw tool chain
6852 opt_cr=
6853 case $build_os in
6854 mingw*)
6855   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6856   ;;
6857 esac
6858
6859 # If we're using GNU nm, then use its standard symbol codes.
6860 case `$NM -V 2>&1` in
6861 *GNU* | *'with BFD'*)
6862   symcode='[ABCDGIRSTW]' ;;
6863 esac
6864
6865 # Try without a prefix undercore, then with it.
6866 for ac_symprfx in "" "_"; do
6867
6868   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6869   symxfrm="\\1 $ac_symprfx\\2 \\2"
6870
6871   # Write the raw and C identifiers.
6872   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6873
6874   # Check to see that the pipe works correctly.
6875   pipe_works=no
6876
6877   rm -f conftest*
6878   cat > conftest.$ac_ext <<EOF
6879 #ifdef __cplusplus
6880 extern "C" {
6881 #endif
6882 char nm_test_var;
6883 void nm_test_func(){}
6884 #ifdef __cplusplus
6885 }
6886 #endif
6887 int main(){nm_test_var='a';nm_test_func();return(0);}
6888 EOF
6889
6890   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6891   (eval $ac_compile) 2>&5
6892   ac_status=$?
6893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894   (exit $ac_status); }; then
6895     # Now try to grab the symbols.
6896     nlist=conftest.nm
6897     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6898   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6899   ac_status=$?
6900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901   (exit $ac_status); } && test -s "$nlist"; then
6902       # Try sorting and uniquifying the output.
6903       if sort "$nlist" | uniq > "$nlist"T; then
6904         mv -f "$nlist"T "$nlist"
6905       else
6906         rm -f "$nlist"T
6907       fi
6908
6909       # Make sure that we snagged all the symbols we need.
6910       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6911         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6912           cat <<EOF > conftest.$ac_ext
6913 #ifdef __cplusplus
6914 extern "C" {
6915 #endif
6916
6917 EOF
6918           # Now generate the symbol file.
6919           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6920
6921           cat <<EOF >> conftest.$ac_ext
6922 #if defined (__STDC__) && __STDC__
6923 # define lt_ptr_t void *
6924 #else
6925 # define lt_ptr_t char *
6926 # define const
6927 #endif
6928
6929 /* The mapping between symbol names and symbols. */
6930 const struct {
6931   const char *name;
6932   lt_ptr_t address;
6933 }
6934 lt_preloaded_symbols[] =
6935 {
6936 EOF
6937           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6938           cat <<\EOF >> conftest.$ac_ext
6939   {0, (lt_ptr_t) 0}
6940 };
6941
6942 #ifdef __cplusplus
6943 }
6944 #endif
6945 EOF
6946           # Now try linking the two files.
6947           mv conftest.$ac_objext conftstm.$ac_objext
6948           lt_save_LIBS="$LIBS"
6949           lt_save_CFLAGS="$CFLAGS"
6950           LIBS="conftstm.$ac_objext"
6951           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6952           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6953   (eval $ac_link) 2>&5
6954   ac_status=$?
6955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6957             pipe_works=yes
6958           fi
6959           LIBS="$lt_save_LIBS"
6960           CFLAGS="$lt_save_CFLAGS"
6961         else
6962           echo "cannot find nm_test_func in $nlist" >&5
6963         fi
6964       else
6965         echo "cannot find nm_test_var in $nlist" >&5
6966       fi
6967     else
6968       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6969     fi
6970   else
6971     echo "$progname: failed program was:" >&5
6972     cat conftest.$ac_ext >&5
6973   fi
6974   rm -f conftest* conftst*
6975
6976   # Do not use the global_symbol_pipe unless it works.
6977   if test "$pipe_works" = yes; then
6978     break
6979   else
6980     lt_cv_sys_global_symbol_pipe=
6981   fi
6982 done
6983
6984 fi
6985
6986 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6987   lt_cv_sys_global_symbol_to_cdecl=
6988 fi
6989 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6990   echo "$as_me:$LINENO: result: failed" >&5
6991 echo "${ECHO_T}failed" >&6
6992 else
6993   echo "$as_me:$LINENO: result: ok" >&5
6994 echo "${ECHO_T}ok" >&6
6995 fi
6996
6997 echo "$as_me:$LINENO: checking for objdir" >&5
6998 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6999 if test "${lt_cv_objdir+set}" = set; then
7000   echo $ECHO_N "(cached) $ECHO_C" >&6
7001 else
7002   rm -f .libs 2>/dev/null
7003 mkdir .libs 2>/dev/null
7004 if test -d .libs; then
7005   lt_cv_objdir=.libs
7006 else
7007   # MS-DOS does not allow filenames that begin with a dot.
7008   lt_cv_objdir=_libs
7009 fi
7010 rmdir .libs 2>/dev/null
7011 fi
7012 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7013 echo "${ECHO_T}$lt_cv_objdir" >&6
7014 objdir=$lt_cv_objdir
7015
7016
7017
7018
7019
7020 case $host_os in
7021 aix3*)
7022   # AIX sometimes has problems with the GCC collect2 program.  For some
7023   # reason, if we set the COLLECT_NAMES environment variable, the problems
7024   # vanish in a puff of smoke.
7025   if test "X${COLLECT_NAMES+set}" != Xset; then
7026     COLLECT_NAMES=
7027     export COLLECT_NAMES
7028   fi
7029   ;;
7030 esac
7031
7032 # Sed substitution that helps us do robust quoting.  It backslashifies
7033 # metacharacters that are still active within double-quoted strings.
7034 Xsed='sed -e 1s/^X//'
7035 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7036
7037 # Same as above, but do not quote variable references.
7038 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7039
7040 # Sed substitution to delay expansion of an escaped shell variable in a
7041 # double_quote_subst'ed string.
7042 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7043
7044 # Sed substitution to avoid accidental globbing in evaled expressions
7045 no_glob_subst='s/\*/\\\*/g'
7046
7047 # Constants:
7048 rm="rm -f"
7049
7050 # Global variables:
7051 default_ofile=libtool
7052 can_build_shared=yes
7053
7054 # All known linkers require a `.a' archive for static linking (except MSVC,
7055 # which needs '.lib').
7056 libext=a
7057 ltmain="$ac_aux_dir/ltmain.sh"
7058 ofile="$default_ofile"
7059 with_gnu_ld="$lt_cv_prog_gnu_ld"
7060
7061 if test -n "$ac_tool_prefix"; then
7062   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7063 set dummy ${ac_tool_prefix}ar; ac_word=$2
7064 echo "$as_me:$LINENO: checking for $ac_word" >&5
7065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7066 if test "${ac_cv_prog_AR+set}" = set; then
7067   echo $ECHO_N "(cached) $ECHO_C" >&6
7068 else
7069   if test -n "$AR"; then
7070   ac_cv_prog_AR="$AR" # Let the user override the test.
7071 else
7072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073 for as_dir in $PATH
7074 do
7075   IFS=$as_save_IFS
7076   test -z "$as_dir" && as_dir=.
7077   for ac_exec_ext in '' $ac_executable_extensions; do
7078   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7079     ac_cv_prog_AR="${ac_tool_prefix}ar"
7080     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7081     break 2
7082   fi
7083 done
7084 done
7085
7086 fi
7087 fi
7088 AR=$ac_cv_prog_AR
7089 if test -n "$AR"; then
7090   echo "$as_me:$LINENO: result: $AR" >&5
7091 echo "${ECHO_T}$AR" >&6
7092 else
7093   echo "$as_me:$LINENO: result: no" >&5
7094 echo "${ECHO_T}no" >&6
7095 fi
7096
7097 fi
7098 if test -z "$ac_cv_prog_AR"; then
7099   ac_ct_AR=$AR
7100   # Extract the first word of "ar", so it can be a program name with args.
7101 set dummy ar; ac_word=$2
7102 echo "$as_me:$LINENO: checking for $ac_word" >&5
7103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7104 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7105   echo $ECHO_N "(cached) $ECHO_C" >&6
7106 else
7107   if test -n "$ac_ct_AR"; then
7108   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7109 else
7110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7111 for as_dir in $PATH
7112 do
7113   IFS=$as_save_IFS
7114   test -z "$as_dir" && as_dir=.
7115   for ac_exec_ext in '' $ac_executable_extensions; do
7116   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7117     ac_cv_prog_ac_ct_AR="ar"
7118     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7119     break 2
7120   fi
7121 done
7122 done
7123
7124   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7125 fi
7126 fi
7127 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7128 if test -n "$ac_ct_AR"; then
7129   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7130 echo "${ECHO_T}$ac_ct_AR" >&6
7131 else
7132   echo "$as_me:$LINENO: result: no" >&5
7133 echo "${ECHO_T}no" >&6
7134 fi
7135
7136   AR=$ac_ct_AR
7137 else
7138   AR="$ac_cv_prog_AR"
7139 fi
7140
7141 if test -n "$ac_tool_prefix"; then
7142   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7143 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7144 echo "$as_me:$LINENO: checking for $ac_word" >&5
7145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7146 if test "${ac_cv_prog_RANLIB+set}" = set; then
7147   echo $ECHO_N "(cached) $ECHO_C" >&6
7148 else
7149   if test -n "$RANLIB"; then
7150   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7151 else
7152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7153 for as_dir in $PATH
7154 do
7155   IFS=$as_save_IFS
7156   test -z "$as_dir" && as_dir=.
7157   for ac_exec_ext in '' $ac_executable_extensions; do
7158   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7159     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7160     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7161     break 2
7162   fi
7163 done
7164 done
7165
7166 fi
7167 fi
7168 RANLIB=$ac_cv_prog_RANLIB
7169 if test -n "$RANLIB"; then
7170   echo "$as_me:$LINENO: result: $RANLIB" >&5
7171 echo "${ECHO_T}$RANLIB" >&6
7172 else
7173   echo "$as_me:$LINENO: result: no" >&5
7174 echo "${ECHO_T}no" >&6
7175 fi
7176
7177 fi
7178 if test -z "$ac_cv_prog_RANLIB"; then
7179   ac_ct_RANLIB=$RANLIB
7180   # Extract the first word of "ranlib", so it can be a program name with args.
7181 set dummy ranlib; ac_word=$2
7182 echo "$as_me:$LINENO: checking for $ac_word" >&5
7183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7184 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7185   echo $ECHO_N "(cached) $ECHO_C" >&6
7186 else
7187   if test -n "$ac_ct_RANLIB"; then
7188   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7189 else
7190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7191 for as_dir in $PATH
7192 do
7193   IFS=$as_save_IFS
7194   test -z "$as_dir" && as_dir=.
7195   for ac_exec_ext in '' $ac_executable_extensions; do
7196   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7197     ac_cv_prog_ac_ct_RANLIB="ranlib"
7198     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7199     break 2
7200   fi
7201 done
7202 done
7203
7204   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7205 fi
7206 fi
7207 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7208 if test -n "$ac_ct_RANLIB"; then
7209   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7210 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7211 else
7212   echo "$as_me:$LINENO: result: no" >&5
7213 echo "${ECHO_T}no" >&6
7214 fi
7215
7216   RANLIB=$ac_ct_RANLIB
7217 else
7218   RANLIB="$ac_cv_prog_RANLIB"
7219 fi
7220
7221 if test -n "$ac_tool_prefix"; then
7222   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7223 set dummy ${ac_tool_prefix}strip; ac_word=$2
7224 echo "$as_me:$LINENO: checking for $ac_word" >&5
7225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7226 if test "${ac_cv_prog_STRIP+set}" = set; then
7227   echo $ECHO_N "(cached) $ECHO_C" >&6
7228 else
7229   if test -n "$STRIP"; then
7230   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7231 else
7232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233 for as_dir in $PATH
7234 do
7235   IFS=$as_save_IFS
7236   test -z "$as_dir" && as_dir=.
7237   for ac_exec_ext in '' $ac_executable_extensions; do
7238   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7239     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7240     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7241     break 2
7242   fi
7243 done
7244 done
7245
7246 fi
7247 fi
7248 STRIP=$ac_cv_prog_STRIP
7249 if test -n "$STRIP"; then
7250   echo "$as_me:$LINENO: result: $STRIP" >&5
7251 echo "${ECHO_T}$STRIP" >&6
7252 else
7253   echo "$as_me:$LINENO: result: no" >&5
7254 echo "${ECHO_T}no" >&6
7255 fi
7256
7257 fi
7258 if test -z "$ac_cv_prog_STRIP"; then
7259   ac_ct_STRIP=$STRIP
7260   # Extract the first word of "strip", so it can be a program name with args.
7261 set dummy strip; ac_word=$2
7262 echo "$as_me:$LINENO: checking for $ac_word" >&5
7263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7264 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7265   echo $ECHO_N "(cached) $ECHO_C" >&6
7266 else
7267   if test -n "$ac_ct_STRIP"; then
7268   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7269 else
7270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7271 for as_dir in $PATH
7272 do
7273   IFS=$as_save_IFS
7274   test -z "$as_dir" && as_dir=.
7275   for ac_exec_ext in '' $ac_executable_extensions; do
7276   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7277     ac_cv_prog_ac_ct_STRIP="strip"
7278     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7279     break 2
7280   fi
7281 done
7282 done
7283
7284   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7285 fi
7286 fi
7287 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7288 if test -n "$ac_ct_STRIP"; then
7289   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7290 echo "${ECHO_T}$ac_ct_STRIP" >&6
7291 else
7292   echo "$as_me:$LINENO: result: no" >&5
7293 echo "${ECHO_T}no" >&6
7294 fi
7295
7296   STRIP=$ac_ct_STRIP
7297 else
7298   STRIP="$ac_cv_prog_STRIP"
7299 fi
7300
7301
7302 old_CC="$CC"
7303 old_CFLAGS="$CFLAGS"
7304
7305 # Set sane defaults for various variables
7306 test -z "$AR" && AR=ar
7307 test -z "$AR_FLAGS" && AR_FLAGS=cru
7308 test -z "$AS" && AS=as
7309 test -z "$CC" && CC=cc
7310 test -z "$LTCC" && LTCC=$CC
7311 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7312 test -z "$DLLTOOL" && DLLTOOL=dlltool
7313 test -z "$LD" && LD=ld
7314 test -z "$LN_S" && LN_S="ln -s"
7315 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7316 test -z "$NM" && NM=nm
7317 test -z "$SED" && SED=sed
7318 test -z "$OBJDUMP" && OBJDUMP=objdump
7319 test -z "$RANLIB" && RANLIB=:
7320 test -z "$STRIP" && STRIP=:
7321 test -z "$ac_objext" && ac_objext=o
7322
7323 # Determine commands to create old-style static archives.
7324 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7325 old_postinstall_cmds='chmod 644 $oldlib'
7326 old_postuninstall_cmds=
7327
7328 if test -n "$RANLIB"; then
7329   case $host_os in
7330   openbsd*)
7331     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7332     ;;
7333   *)
7334     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7335     ;;
7336   esac
7337   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7338 fi
7339
7340 for cc_temp in $compiler""; do
7341   case $cc_temp in
7342     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7343     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7344     \-*) ;;
7345     *) break;;
7346   esac
7347 done
7348 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7349
7350
7351 # Only perform the check for file, if the check method requires it
7352 case $deplibs_check_method in
7353 file_magic*)
7354   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7355     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7356 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7357 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7358   echo $ECHO_N "(cached) $ECHO_C" >&6
7359 else
7360   case $MAGIC_CMD in
7361 [\\/*] |  ?:[\\/]*)
7362   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7363   ;;
7364 *)
7365   lt_save_MAGIC_CMD="$MAGIC_CMD"
7366   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7367   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7368   for ac_dir in $ac_dummy; do
7369     IFS="$lt_save_ifs"
7370     test -z "$ac_dir" && ac_dir=.
7371     if test -f $ac_dir/${ac_tool_prefix}file; then
7372       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7373       if test -n "$file_magic_test_file"; then
7374         case $deplibs_check_method in
7375         "file_magic "*)
7376           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7377           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7378           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7379             $EGREP "$file_magic_regex" > /dev/null; then
7380             :
7381           else
7382             cat <<EOF 1>&2
7383
7384 *** Warning: the command libtool uses to detect shared libraries,
7385 *** $file_magic_cmd, produces output that libtool cannot recognize.
7386 *** The result is that libtool may fail to recognize shared libraries
7387 *** as such.  This will affect the creation of libtool libraries that
7388 *** depend on shared libraries, but programs linked with such libtool
7389 *** libraries will work regardless of this problem.  Nevertheless, you
7390 *** may want to report the problem to your system manager and/or to
7391 *** bug-libtool@gnu.org
7392
7393 EOF
7394           fi ;;
7395         esac
7396       fi
7397       break
7398     fi
7399   done
7400   IFS="$lt_save_ifs"
7401   MAGIC_CMD="$lt_save_MAGIC_CMD"
7402   ;;
7403 esac
7404 fi
7405
7406 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7407 if test -n "$MAGIC_CMD"; then
7408   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7409 echo "${ECHO_T}$MAGIC_CMD" >&6
7410 else
7411   echo "$as_me:$LINENO: result: no" >&5
7412 echo "${ECHO_T}no" >&6
7413 fi
7414
7415 if test -z "$lt_cv_path_MAGIC_CMD"; then
7416   if test -n "$ac_tool_prefix"; then
7417     echo "$as_me:$LINENO: checking for file" >&5
7418 echo $ECHO_N "checking for file... $ECHO_C" >&6
7419 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7420   echo $ECHO_N "(cached) $ECHO_C" >&6
7421 else
7422   case $MAGIC_CMD in
7423 [\\/*] |  ?:[\\/]*)
7424   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7425   ;;
7426 *)
7427   lt_save_MAGIC_CMD="$MAGIC_CMD"
7428   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7429   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7430   for ac_dir in $ac_dummy; do
7431     IFS="$lt_save_ifs"
7432     test -z "$ac_dir" && ac_dir=.
7433     if test -f $ac_dir/file; then
7434       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7435       if test -n "$file_magic_test_file"; then
7436         case $deplibs_check_method in
7437         "file_magic "*)
7438           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7439           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7440           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7441             $EGREP "$file_magic_regex" > /dev/null; then
7442             :
7443           else
7444             cat <<EOF 1>&2
7445
7446 *** Warning: the command libtool uses to detect shared libraries,
7447 *** $file_magic_cmd, produces output that libtool cannot recognize.
7448 *** The result is that libtool may fail to recognize shared libraries
7449 *** as such.  This will affect the creation of libtool libraries that
7450 *** depend on shared libraries, but programs linked with such libtool
7451 *** libraries will work regardless of this problem.  Nevertheless, you
7452 *** may want to report the problem to your system manager and/or to
7453 *** bug-libtool@gnu.org
7454
7455 EOF
7456           fi ;;
7457         esac
7458       fi
7459       break
7460     fi
7461   done
7462   IFS="$lt_save_ifs"
7463   MAGIC_CMD="$lt_save_MAGIC_CMD"
7464   ;;
7465 esac
7466 fi
7467
7468 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7469 if test -n "$MAGIC_CMD"; then
7470   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7471 echo "${ECHO_T}$MAGIC_CMD" >&6
7472 else
7473   echo "$as_me:$LINENO: result: no" >&5
7474 echo "${ECHO_T}no" >&6
7475 fi
7476
7477   else
7478     MAGIC_CMD=:
7479   fi
7480 fi
7481
7482   fi
7483   ;;
7484 esac
7485
7486 enable_dlopen=no
7487 enable_win32_dll=no
7488
7489 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7490 if test "${enable_libtool_lock+set}" = set; then
7491   enableval="$enable_libtool_lock"
7492
7493 fi;
7494 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7495
7496
7497 # Check whether --with-pic or --without-pic was given.
7498 if test "${with_pic+set}" = set; then
7499   withval="$with_pic"
7500   pic_mode="$withval"
7501 else
7502   pic_mode=default
7503 fi;
7504 test -z "$pic_mode" && pic_mode=default
7505
7506 # Use C for the default configuration in the libtool script
7507 tagname=
7508 lt_save_CC="$CC"
7509 ac_ext=c
7510 ac_cpp='$CPP $CPPFLAGS'
7511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7514
7515
7516 # Source file extension for C test sources.
7517 ac_ext=c
7518
7519 # Object file extension for compiled C test sources.
7520 objext=o
7521 objext=$objext
7522
7523 # Code to be used in simple compile tests
7524 lt_simple_compile_test_code="int some_variable = 0;\n"
7525
7526 # Code to be used in simple link tests
7527 lt_simple_link_test_code='int main(){return(0);}\n'
7528
7529
7530 # If no C compiler was specified, use CC.
7531 LTCC=${LTCC-"$CC"}
7532
7533 # If no C compiler flags were specified, use CFLAGS.
7534 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7535
7536 # Allow CC to be a program name with arguments.
7537 compiler=$CC
7538
7539
7540 # save warnings/boilerplate of simple test code
7541 ac_outfile=conftest.$ac_objext
7542 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7543 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7544 _lt_compiler_boilerplate=`cat conftest.err`
7545 $rm conftest*
7546
7547 ac_outfile=conftest.$ac_objext
7548 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7549 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7550 _lt_linker_boilerplate=`cat conftest.err`
7551 $rm conftest*
7552
7553
7554
7555 lt_prog_compiler_no_builtin_flag=
7556
7557 if test "$GCC" = yes; then
7558   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7559
7560
7561 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7562 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7563 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7564   echo $ECHO_N "(cached) $ECHO_C" >&6
7565 else
7566   lt_cv_prog_compiler_rtti_exceptions=no
7567   ac_outfile=conftest.$ac_objext
7568    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7569    lt_compiler_flag="-fno-rtti -fno-exceptions"
7570    # Insert the option either (1) after the last *FLAGS variable, or
7571    # (2) before a word containing "conftest.", or (3) at the end.
7572    # Note that $ac_compile itself does not contain backslashes and begins
7573    # with a dollar sign (not a hyphen), so the echo should work correctly.
7574    # The option is referenced via a variable to avoid confusing sed.
7575    lt_compile=`echo "$ac_compile" | $SED \
7576    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7577    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7578    -e 's:$: $lt_compiler_flag:'`
7579    (eval echo "\"\$as_me:7579: $lt_compile\"" >&5)
7580    (eval "$lt_compile" 2>conftest.err)
7581    ac_status=$?
7582    cat conftest.err >&5
7583    echo "$as_me:7583: \$? = $ac_status" >&5
7584    if (exit $ac_status) && test -s "$ac_outfile"; then
7585      # The compiler can only warn and ignore the option if not recognized
7586      # So say no if there are warnings other than the usual output.
7587      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7588      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7589      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7590        lt_cv_prog_compiler_rtti_exceptions=yes
7591      fi
7592    fi
7593    $rm conftest*
7594
7595 fi
7596 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7597 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7598
7599 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7600     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7601 else
7602     :
7603 fi
7604
7605 fi
7606
7607 lt_prog_compiler_wl=
7608 lt_prog_compiler_pic=
7609 lt_prog_compiler_static=
7610
7611 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7612 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7613
7614   if test "$GCC" = yes; then
7615     lt_prog_compiler_wl='-Wl,'
7616     lt_prog_compiler_static='-static'
7617
7618     case $host_os in
7619       aix*)
7620       # All AIX code is PIC.
7621       if test "$host_cpu" = ia64; then
7622         # AIX 5 now supports IA64 processor
7623         lt_prog_compiler_static='-Bstatic'
7624       fi
7625       ;;
7626
7627     amigaos*)
7628       # FIXME: we need at least 68020 code to build shared libraries, but
7629       # adding the `-m68020' flag to GCC prevents building anything better,
7630       # like `-m68040'.
7631       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7632       ;;
7633
7634     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7635       # PIC is the default for these OSes.
7636       ;;
7637
7638     mingw* | pw32* | os2*)
7639       # This hack is so that the source file can tell whether it is being
7640       # built for inclusion in a dll (and should export symbols for example).
7641       lt_prog_compiler_pic='-DDLL_EXPORT'
7642       ;;
7643
7644     darwin* | rhapsody*)
7645       # PIC is the default on this platform
7646       # Common symbols not allowed in MH_DYLIB files
7647       lt_prog_compiler_pic='-fno-common'
7648       ;;
7649
7650     interix3*)
7651       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7652       # Instead, we relocate shared libraries at runtime.
7653       ;;
7654
7655     msdosdjgpp*)
7656       # Just because we use GCC doesn't mean we suddenly get shared libraries
7657       # on systems that don't support them.
7658       lt_prog_compiler_can_build_shared=no
7659       enable_shared=no
7660       ;;
7661
7662     sysv4*MP*)
7663       if test -d /usr/nec; then
7664         lt_prog_compiler_pic=-Kconform_pic
7665       fi
7666       ;;
7667
7668     hpux*)
7669       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7670       # not for PA HP-UX.
7671       case $host_cpu in
7672       hppa*64*|ia64*)
7673         # +Z the default
7674         ;;
7675       *)
7676         lt_prog_compiler_pic='-fPIC'
7677         ;;
7678       esac
7679       ;;
7680
7681     *)
7682       lt_prog_compiler_pic='-fPIC'
7683       ;;
7684     esac
7685   else
7686     # PORTME Check for flag to pass linker flags through the system compiler.
7687     case $host_os in
7688     aix*)
7689       lt_prog_compiler_wl='-Wl,'
7690       if test "$host_cpu" = ia64; then
7691         # AIX 5 now supports IA64 processor
7692         lt_prog_compiler_static='-Bstatic'
7693       else
7694         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7695       fi
7696       ;;
7697       darwin*)
7698         # PIC is the default on this platform
7699         # Common symbols not allowed in MH_DYLIB files
7700        case $cc_basename in
7701          xlc*)
7702          lt_prog_compiler_pic='-qnocommon'
7703          lt_prog_compiler_wl='-Wl,'
7704          ;;
7705        esac
7706        ;;
7707
7708     mingw* | pw32* | os2*)
7709       # This hack is so that the source file can tell whether it is being
7710       # built for inclusion in a dll (and should export symbols for example).
7711       lt_prog_compiler_pic='-DDLL_EXPORT'
7712       ;;
7713
7714     hpux9* | hpux10* | hpux11*)
7715       lt_prog_compiler_wl='-Wl,'
7716       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7717       # not for PA HP-UX.
7718       case $host_cpu in
7719       hppa*64*|ia64*)
7720         # +Z the default
7721         ;;
7722       *)
7723         lt_prog_compiler_pic='+Z'
7724         ;;
7725       esac
7726       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7727       lt_prog_compiler_static='${wl}-a ${wl}archive'
7728       ;;
7729
7730     irix5* | irix6* | nonstopux*)
7731       lt_prog_compiler_wl='-Wl,'
7732       # PIC (with -KPIC) is the default.
7733       lt_prog_compiler_static='-non_shared'
7734       ;;
7735
7736     newsos6)
7737       lt_prog_compiler_pic='-KPIC'
7738       lt_prog_compiler_static='-Bstatic'
7739       ;;
7740
7741     linux* | k*bsd*-gnu)
7742       case $cc_basename in
7743       icc* | ecc*)
7744         lt_prog_compiler_wl='-Wl,'
7745         lt_prog_compiler_pic='-KPIC'
7746         lt_prog_compiler_static='-static'
7747         ;;
7748       pgcc* | pgf77* | pgf90* | pgf95*)
7749         # Portland Group compilers (*not* the Pentium gcc compiler,
7750         # which looks to be a dead project)
7751         lt_prog_compiler_wl='-Wl,'
7752         lt_prog_compiler_pic='-fpic'
7753         lt_prog_compiler_static='-Bstatic'
7754         ;;
7755       ccc*)
7756         lt_prog_compiler_wl='-Wl,'
7757         # All Alpha code is PIC.
7758         lt_prog_compiler_static='-non_shared'
7759         ;;
7760       esac
7761       ;;
7762
7763     osf3* | osf4* | osf5*)
7764       lt_prog_compiler_wl='-Wl,'
7765       # All OSF/1 code is PIC.
7766       lt_prog_compiler_static='-non_shared'
7767       ;;
7768
7769     solaris*)
7770       lt_prog_compiler_pic='-KPIC'
7771       lt_prog_compiler_static='-Bstatic'
7772       case $cc_basename in
7773       f77* | f90* | f95*)
7774         lt_prog_compiler_wl='-Qoption ld ';;
7775       *)
7776         lt_prog_compiler_wl='-Wl,';;
7777       esac
7778       ;;
7779
7780     sunos4*)
7781       lt_prog_compiler_wl='-Qoption ld '
7782       lt_prog_compiler_pic='-PIC'
7783       lt_prog_compiler_static='-Bstatic'
7784       ;;
7785
7786     sysv4 | sysv4.2uw2* | sysv4.3*)
7787       lt_prog_compiler_wl='-Wl,'
7788       lt_prog_compiler_pic='-KPIC'
7789       lt_prog_compiler_static='-Bstatic'
7790       ;;
7791
7792     sysv4*MP*)
7793       if test -d /usr/nec ;then
7794         lt_prog_compiler_pic='-Kconform_pic'
7795         lt_prog_compiler_static='-Bstatic'
7796       fi
7797       ;;
7798
7799     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7800       lt_prog_compiler_wl='-Wl,'
7801       lt_prog_compiler_pic='-KPIC'
7802       lt_prog_compiler_static='-Bstatic'
7803       ;;
7804
7805     unicos*)
7806       lt_prog_compiler_wl='-Wl,'
7807       lt_prog_compiler_can_build_shared=no
7808       ;;
7809
7810     uts4*)
7811       lt_prog_compiler_pic='-pic'
7812       lt_prog_compiler_static='-Bstatic'
7813       ;;
7814
7815     *)
7816       lt_prog_compiler_can_build_shared=no
7817       ;;
7818     esac
7819   fi
7820
7821 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7822 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7823
7824 #
7825 # Check to make sure the PIC flag actually works.
7826 #
7827 if test -n "$lt_prog_compiler_pic"; then
7828
7829 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7830 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7831 if test "${lt_prog_compiler_pic_works+set}" = set; then
7832   echo $ECHO_N "(cached) $ECHO_C" >&6
7833 else
7834   lt_prog_compiler_pic_works=no
7835   ac_outfile=conftest.$ac_objext
7836    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7837    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7838    # Insert the option either (1) after the last *FLAGS variable, or
7839    # (2) before a word containing "conftest.", or (3) at the end.
7840    # Note that $ac_compile itself does not contain backslashes and begins
7841    # with a dollar sign (not a hyphen), so the echo should work correctly.
7842    # The option is referenced via a variable to avoid confusing sed.
7843    lt_compile=`echo "$ac_compile" | $SED \
7844    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7845    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7846    -e 's:$: $lt_compiler_flag:'`
7847    (eval echo "\"\$as_me:7847: $lt_compile\"" >&5)
7848    (eval "$lt_compile" 2>conftest.err)
7849    ac_status=$?
7850    cat conftest.err >&5
7851    echo "$as_me:7851: \$? = $ac_status" >&5
7852    if (exit $ac_status) && test -s "$ac_outfile"; then
7853      # The compiler can only warn and ignore the option if not recognized
7854      # So say no if there are warnings other than the usual output.
7855      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7856      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7857      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7858        lt_prog_compiler_pic_works=yes
7859      fi
7860    fi
7861    $rm conftest*
7862
7863 fi
7864 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7865 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7866
7867 if test x"$lt_prog_compiler_pic_works" = xyes; then
7868     case $lt_prog_compiler_pic in
7869      "" | " "*) ;;
7870      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7871      esac
7872 else
7873     lt_prog_compiler_pic=
7874      lt_prog_compiler_can_build_shared=no
7875 fi
7876
7877 fi
7878 case $host_os in
7879   # For platforms which do not support PIC, -DPIC is meaningless:
7880   *djgpp*)
7881     lt_prog_compiler_pic=
7882     ;;
7883   *)
7884     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7885     ;;
7886 esac
7887
7888 #
7889 # Check to make sure the static flag actually works.
7890 #
7891 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7892 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7893 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7894 if test "${lt_prog_compiler_static_works+set}" = set; then
7895   echo $ECHO_N "(cached) $ECHO_C" >&6
7896 else
7897   lt_prog_compiler_static_works=no
7898    save_LDFLAGS="$LDFLAGS"
7899    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7900    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7901    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7902      # The linker can only warn and ignore the option if not recognized
7903      # So say no if there are warnings
7904      if test -s conftest.err; then
7905        # Append any errors to the config.log.
7906        cat conftest.err 1>&5
7907        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7908        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7909        if diff conftest.exp conftest.er2 >/dev/null; then
7910          lt_prog_compiler_static_works=yes
7911        fi
7912      else
7913        lt_prog_compiler_static_works=yes
7914      fi
7915    fi
7916    $rm conftest*
7917    LDFLAGS="$save_LDFLAGS"
7918
7919 fi
7920 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7921 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7922
7923 if test x"$lt_prog_compiler_static_works" = xyes; then
7924     :
7925 else
7926     lt_prog_compiler_static=
7927 fi
7928
7929
7930 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7931 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7932 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7933   echo $ECHO_N "(cached) $ECHO_C" >&6
7934 else
7935   lt_cv_prog_compiler_c_o=no
7936    $rm -r conftest 2>/dev/null
7937    mkdir conftest
7938    cd conftest
7939    mkdir out
7940    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7941
7942    lt_compiler_flag="-o out/conftest2.$ac_objext"
7943    # Insert the option either (1) after the last *FLAGS variable, or
7944    # (2) before a word containing "conftest.", or (3) at the end.
7945    # Note that $ac_compile itself does not contain backslashes and begins
7946    # with a dollar sign (not a hyphen), so the echo should work correctly.
7947    lt_compile=`echo "$ac_compile" | $SED \
7948    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7949    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7950    -e 's:$: $lt_compiler_flag:'`
7951    (eval echo "\"\$as_me:7951: $lt_compile\"" >&5)
7952    (eval "$lt_compile" 2>out/conftest.err)
7953    ac_status=$?
7954    cat out/conftest.err >&5
7955    echo "$as_me:7955: \$? = $ac_status" >&5
7956    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7957    then
7958      # The compiler can only warn and ignore the option if not recognized
7959      # So say no if there are warnings
7960      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7961      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7962      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7963        lt_cv_prog_compiler_c_o=yes
7964      fi
7965    fi
7966    chmod u+w . 2>&5
7967    $rm conftest*
7968    # SGI C++ compiler will create directory out/ii_files/ for
7969    # template instantiation
7970    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7971    $rm out/* && rmdir out
7972    cd ..
7973    rmdir conftest
7974    $rm conftest*
7975
7976 fi
7977 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7978 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7979
7980
7981 hard_links="nottested"
7982 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7983   # do not overwrite the value of need_locks provided by the user
7984   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7985 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7986   hard_links=yes
7987   $rm conftest*
7988   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7989   touch conftest.a
7990   ln conftest.a conftest.b 2>&5 || hard_links=no
7991   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7992   echo "$as_me:$LINENO: result: $hard_links" >&5
7993 echo "${ECHO_T}$hard_links" >&6
7994   if test "$hard_links" = no; then
7995     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7996 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7997     need_locks=warn
7998   fi
7999 else
8000   need_locks=no
8001 fi
8002
8003 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8004 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8005
8006   runpath_var=
8007   allow_undefined_flag=
8008   enable_shared_with_static_runtimes=no
8009   archive_cmds=
8010   archive_expsym_cmds=
8011   old_archive_From_new_cmds=
8012   old_archive_from_expsyms_cmds=
8013   export_dynamic_flag_spec=
8014   whole_archive_flag_spec=
8015   thread_safe_flag_spec=
8016   hardcode_libdir_flag_spec=
8017   hardcode_libdir_flag_spec_ld=
8018   hardcode_libdir_separator=
8019   hardcode_direct=no
8020   hardcode_minus_L=no
8021   hardcode_shlibpath_var=unsupported
8022   link_all_deplibs=unknown
8023   hardcode_automatic=no
8024   module_cmds=
8025   module_expsym_cmds=
8026   always_export_symbols=no
8027   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8028   # include_expsyms should be a list of space-separated symbols to be *always*
8029   # included in the symbol list
8030   include_expsyms=
8031   # exclude_expsyms can be an extended regexp of symbols to exclude
8032   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8033   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8034   # as well as any symbol that contains `d'.
8035   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8036   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8037   # platforms (ab)use it in PIC code, but their linkers get confused if
8038   # the symbol is explicitly referenced.  Since portable code cannot
8039   # rely on this symbol name, it's probably fine to never include it in
8040   # preloaded symbol tables.
8041   extract_expsyms_cmds=
8042   # Just being paranoid about ensuring that cc_basename is set.
8043   for cc_temp in $compiler""; do
8044   case $cc_temp in
8045     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8046     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8047     \-*) ;;
8048     *) break;;
8049   esac
8050 done
8051 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8052
8053   case $host_os in
8054   cygwin* | mingw* | pw32*)
8055     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8056     # When not using gcc, we currently assume that we are using
8057     # Microsoft Visual C++.
8058     if test "$GCC" != yes; then
8059       with_gnu_ld=no
8060     fi
8061     ;;
8062   interix*)
8063     # we just hope/assume this is gcc and not c89 (= MSVC++)
8064     with_gnu_ld=yes
8065     ;;
8066   openbsd*)
8067     with_gnu_ld=no
8068     ;;
8069   esac
8070
8071   ld_shlibs=yes
8072   if test "$with_gnu_ld" = yes; then
8073     # If archive_cmds runs LD, not CC, wlarc should be empty
8074     wlarc='${wl}'
8075
8076     # Set some defaults for GNU ld with shared library support. These
8077     # are reset later if shared libraries are not supported. Putting them
8078     # here allows them to be overridden if necessary.
8079     runpath_var=LD_RUN_PATH
8080     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8081     export_dynamic_flag_spec='${wl}--export-dynamic'
8082     # ancient GNU ld didn't support --whole-archive et. al.
8083     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8084         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8085       else
8086         whole_archive_flag_spec=
8087     fi
8088     supports_anon_versioning=no
8089     case `$LD -v 2>/dev/null` in
8090       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8091       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8092       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8093       *\ 2.11.*) ;; # other 2.11 versions
8094       *) supports_anon_versioning=yes ;;
8095     esac
8096
8097     # See if GNU ld supports shared libraries.
8098     case $host_os in
8099     aix3* | aix4* | aix5*)
8100       # On AIX/PPC, the GNU linker is very broken
8101       if test "$host_cpu" != ia64; then
8102         ld_shlibs=no
8103         cat <<EOF 1>&2
8104
8105 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8106 *** to be unable to reliably create shared libraries on AIX.
8107 *** Therefore, libtool is disabling shared libraries support.  If you
8108 *** really care for shared libraries, you may want to modify your PATH
8109 *** so that a non-GNU linker is found, and then restart.
8110
8111 EOF
8112       fi
8113       ;;
8114
8115     amigaos*)
8116       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)'
8117       hardcode_libdir_flag_spec='-L$libdir'
8118       hardcode_minus_L=yes
8119
8120       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8121       # that the semantics of dynamic libraries on AmigaOS, at least up
8122       # to version 4, is to share data among multiple programs linked
8123       # with the same dynamic library.  Since this doesn't match the
8124       # behavior of shared libraries on other platforms, we can't use
8125       # them.
8126       ld_shlibs=no
8127       ;;
8128
8129     beos*)
8130       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8131         allow_undefined_flag=unsupported
8132         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8133         # support --undefined.  This deserves some investigation.  FIXME
8134         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8135       else
8136         ld_shlibs=no
8137       fi
8138       ;;
8139
8140     cygwin* | mingw* | pw32*)
8141       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8142       # as there is no search path for DLLs.
8143       hardcode_libdir_flag_spec='-L$libdir'
8144       allow_undefined_flag=unsupported
8145       always_export_symbols=no
8146       enable_shared_with_static_runtimes=yes
8147       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8148
8149       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8150         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8151         # If the export-symbols file already is a .def file (1st line
8152         # is EXPORTS), use it as is; otherwise, prepend...
8153         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8154           cp $export_symbols $output_objdir/$soname.def;
8155         else
8156           echo EXPORTS > $output_objdir/$soname.def;
8157           cat $export_symbols >> $output_objdir/$soname.def;
8158         fi~
8159         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8160       else
8161         ld_shlibs=no
8162       fi
8163       ;;
8164
8165     interix3*)
8166       hardcode_direct=no
8167       hardcode_shlibpath_var=no
8168       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8169       export_dynamic_flag_spec='${wl}-E'
8170       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8171       # Instead, shared libraries are loaded at an image base (0x10000000 by
8172       # default) and relocated if they conflict, which is a slow very memory
8173       # consuming and fragmenting process.  To avoid this, we pick a random,
8174       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8175       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8176       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8177       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8178       ;;
8179
8180     linux* | k*bsd*-gnu)
8181       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8182         tmp_addflag=
8183         case $cc_basename,$host_cpu in
8184         pgcc*)                          # Portland Group C compiler
8185           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'
8186           tmp_addflag=' $pic_flag'
8187           ;;
8188         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8189           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'
8190           tmp_addflag=' $pic_flag -Mnomain' ;;
8191         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8192           tmp_addflag=' -i_dynamic' ;;
8193         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8194           tmp_addflag=' -i_dynamic -nofor_main' ;;
8195         ifc* | ifort*)                  # Intel Fortran compiler
8196           tmp_addflag=' -nofor_main' ;;
8197         esac
8198         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8199
8200         if test $supports_anon_versioning = yes; then
8201           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8202   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8203   $echo "local: *; };" >> $output_objdir/$libname.ver~
8204           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8205         fi
8206         link_all_deplibs=no
8207       else
8208         ld_shlibs=no
8209       fi
8210       ;;
8211
8212     netbsd* | netbsdelf*-gnu)
8213       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8214         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8215         wlarc=
8216       else
8217         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8218         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8219       fi
8220       ;;
8221
8222     solaris*)
8223       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8224         ld_shlibs=no
8225         cat <<EOF 1>&2
8226
8227 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8228 *** create shared libraries on Solaris systems.  Therefore, libtool
8229 *** is disabling shared libraries support.  We urge you to upgrade GNU
8230 *** binutils to release 2.9.1 or newer.  Another option is to modify
8231 *** your PATH or compiler configuration so that the native linker is
8232 *** used, and then restart.
8233
8234 EOF
8235       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8236         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8237         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8238       else
8239         ld_shlibs=no
8240       fi
8241       ;;
8242
8243     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8244       case `$LD -v 2>&1` in
8245         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8246         ld_shlibs=no
8247         cat <<_LT_EOF 1>&2
8248
8249 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8250 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8251 *** is disabling shared libraries support.  We urge you to upgrade GNU
8252 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8253 *** your PATH or compiler configuration so that the native linker is
8254 *** used, and then restart.
8255
8256 _LT_EOF
8257         ;;
8258         *)
8259           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8260             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8261             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8262             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8263           else
8264             ld_shlibs=no
8265           fi
8266         ;;
8267       esac
8268       ;;
8269
8270     sunos4*)
8271       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8272       wlarc=
8273       hardcode_direct=yes
8274       hardcode_shlibpath_var=no
8275       ;;
8276
8277     *)
8278       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8279         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8280         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8281       else
8282         ld_shlibs=no
8283       fi
8284       ;;
8285     esac
8286
8287     if test "$ld_shlibs" = no; then
8288       runpath_var=
8289       hardcode_libdir_flag_spec=
8290       export_dynamic_flag_spec=
8291       whole_archive_flag_spec=
8292     fi
8293   else
8294     # PORTME fill in a description of your system's linker (not GNU ld)
8295     case $host_os in
8296     aix3*)
8297       allow_undefined_flag=unsupported
8298       always_export_symbols=yes
8299       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'
8300       # Note: this linker hardcodes the directories in LIBPATH if there
8301       # are no directories specified by -L.
8302       hardcode_minus_L=yes
8303       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8304         # Neither direct hardcoding nor static linking is supported with a
8305         # broken collect2.
8306         hardcode_direct=unsupported
8307       fi
8308       ;;
8309
8310     aix4* | aix5*)
8311       if test "$host_cpu" = ia64; then
8312         # On IA64, the linker does run time linking by default, so we don't
8313         # have to do anything special.
8314         aix_use_runtimelinking=no
8315         exp_sym_flag='-Bexport'
8316         no_entry_flag=""
8317       else
8318         # If we're using GNU nm, then we don't want the "-C" option.
8319         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8320         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8321           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'
8322         else
8323           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'
8324         fi
8325         aix_use_runtimelinking=no
8326
8327         # Test if we are trying to use run time linking or normal
8328         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8329         # need to do runtime linking.
8330         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8331           for ld_flag in $LDFLAGS; do
8332           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8333             aix_use_runtimelinking=yes
8334             break
8335           fi
8336           done
8337           ;;
8338         esac
8339
8340         exp_sym_flag='-bexport'
8341         no_entry_flag='-bnoentry'
8342       fi
8343
8344       # When large executables or shared objects are built, AIX ld can
8345       # have problems creating the table of contents.  If linking a library
8346       # or program results in "error TOC overflow" add -mminimal-toc to
8347       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8348       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8349
8350       archive_cmds=''
8351       hardcode_direct=yes
8352       hardcode_libdir_separator=':'
8353       link_all_deplibs=yes
8354
8355       if test "$GCC" = yes; then
8356         case $host_os in aix4.[012]|aix4.[012].*)
8357         # We only want to do this on AIX 4.2 and lower, the check
8358         # below for broken collect2 doesn't work under 4.3+
8359           collect2name=`${CC} -print-prog-name=collect2`
8360           if test -f "$collect2name" && \
8361            strings "$collect2name" | grep resolve_lib_name >/dev/null
8362           then
8363           # We have reworked collect2
8364           hardcode_direct=yes
8365           else
8366           # We have old collect2
8367           hardcode_direct=unsupported
8368           # It fails to find uninstalled libraries when the uninstalled
8369           # path is not listed in the libpath.  Setting hardcode_minus_L
8370           # to unsupported forces relinking
8371           hardcode_minus_L=yes
8372           hardcode_libdir_flag_spec='-L$libdir'
8373           hardcode_libdir_separator=
8374           fi
8375           ;;
8376         esac
8377         shared_flag='-shared'
8378         if test "$aix_use_runtimelinking" = yes; then
8379           shared_flag="$shared_flag "'${wl}-G'
8380         fi
8381       else
8382         # not using gcc
8383         if test "$host_cpu" = ia64; then
8384         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8385         # chokes on -Wl,-G. The following line is correct:
8386           shared_flag='-G'
8387         else
8388           if test "$aix_use_runtimelinking" = yes; then
8389             shared_flag='${wl}-G'
8390           else
8391             shared_flag='${wl}-bM:SRE'
8392           fi
8393         fi
8394       fi
8395
8396       # It seems that -bexpall does not export symbols beginning with
8397       # underscore (_), so it is better to generate a list of symbols to export.
8398       always_export_symbols=yes
8399       if test "$aix_use_runtimelinking" = yes; then
8400         # Warning - without using the other runtime loading flags (-brtl),
8401         # -berok will link without error, but may produce a broken library.
8402         allow_undefined_flag='-berok'
8403        # Determine the default libpath from the value encoded in an empty executable.
8404        cat >conftest.$ac_ext <<_ACEOF
8405 /* confdefs.h.  */
8406 _ACEOF
8407 cat confdefs.h >>conftest.$ac_ext
8408 cat >>conftest.$ac_ext <<_ACEOF
8409 /* end confdefs.h.  */
8410
8411 int
8412 main ()
8413 {
8414
8415   ;
8416   return 0;
8417 }
8418 _ACEOF
8419 rm -f conftest.$ac_objext conftest$ac_exeext
8420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8421   (eval $ac_link) 2>conftest.er1
8422   ac_status=$?
8423   grep -v '^ *+' conftest.er1 >conftest.err
8424   rm -f conftest.er1
8425   cat conftest.err >&5
8426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427   (exit $ac_status); } &&
8428          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8430   (eval $ac_try) 2>&5
8431   ac_status=$?
8432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433   (exit $ac_status); }; } &&
8434          { ac_try='test -s conftest$ac_exeext'
8435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8436   (eval $ac_try) 2>&5
8437   ac_status=$?
8438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439   (exit $ac_status); }; }; then
8440
8441 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8442 }'`
8443 # Check for a 64-bit object if we didn't find anything.
8444 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; }
8445 }'`; fi
8446 else
8447   echo "$as_me: failed program was:" >&5
8448 sed 's/^/| /' conftest.$ac_ext >&5
8449
8450 fi
8451 rm -f conftest.err conftest.$ac_objext \
8452       conftest$ac_exeext conftest.$ac_ext
8453 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8454
8455        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8456         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8457        else
8458         if test "$host_cpu" = ia64; then
8459           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8460           allow_undefined_flag="-z nodefs"
8461           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8462         else
8463          # Determine the default libpath from the value encoded in an empty executable.
8464          cat >conftest.$ac_ext <<_ACEOF
8465 /* confdefs.h.  */
8466 _ACEOF
8467 cat confdefs.h >>conftest.$ac_ext
8468 cat >>conftest.$ac_ext <<_ACEOF
8469 /* end confdefs.h.  */
8470
8471 int
8472 main ()
8473 {
8474
8475   ;
8476   return 0;
8477 }
8478 _ACEOF
8479 rm -f conftest.$ac_objext conftest$ac_exeext
8480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8481   (eval $ac_link) 2>conftest.er1
8482   ac_status=$?
8483   grep -v '^ *+' conftest.er1 >conftest.err
8484   rm -f conftest.er1
8485   cat conftest.err >&5
8486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487   (exit $ac_status); } &&
8488          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8490   (eval $ac_try) 2>&5
8491   ac_status=$?
8492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493   (exit $ac_status); }; } &&
8494          { ac_try='test -s conftest$ac_exeext'
8495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8496   (eval $ac_try) 2>&5
8497   ac_status=$?
8498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499   (exit $ac_status); }; }; then
8500
8501 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8502 }'`
8503 # Check for a 64-bit object if we didn't find anything.
8504 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; }
8505 }'`; fi
8506 else
8507   echo "$as_me: failed program was:" >&5
8508 sed 's/^/| /' conftest.$ac_ext >&5
8509
8510 fi
8511 rm -f conftest.err conftest.$ac_objext \
8512       conftest$ac_exeext conftest.$ac_ext
8513 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8514
8515          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8516           # Warning - without using the other run time loading flags,
8517           # -berok will link without error, but may produce a broken library.
8518           no_undefined_flag=' ${wl}-bernotok'
8519           allow_undefined_flag=' ${wl}-berok'
8520           # Exported symbols can be pulled into shared objects from archives
8521           whole_archive_flag_spec='$convenience'
8522           archive_cmds_need_lc=yes
8523           # This is similar to how AIX traditionally builds its shared libraries.
8524           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8525         fi
8526       fi
8527       ;;
8528
8529     amigaos*)
8530       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)'
8531       hardcode_libdir_flag_spec='-L$libdir'
8532       hardcode_minus_L=yes
8533       # see comment about different semantics on the GNU ld section
8534       ld_shlibs=no
8535       ;;
8536
8537     bsdi[45]*)
8538       export_dynamic_flag_spec=-rdynamic
8539       ;;
8540
8541     cygwin* | mingw* | pw32*)
8542       # When not using gcc, we currently assume that we are using
8543       # Microsoft Visual C++.
8544       # hardcode_libdir_flag_spec is actually meaningless, as there is
8545       # no search path for DLLs.
8546       hardcode_libdir_flag_spec=' '
8547       allow_undefined_flag=unsupported
8548       # Tell ltmain to make .lib files, not .a files.
8549       libext=lib
8550       # Tell ltmain to make .dll files, not .so files.
8551       shrext_cmds=".dll"
8552       # FIXME: Setting linknames here is a bad hack.
8553       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8554       # The linker will automatically build a .lib file if we build a DLL.
8555       old_archive_From_new_cmds='true'
8556       # FIXME: Should let the user specify the lib program.
8557       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8558       fix_srcfile_path='`cygpath -w "$srcfile"`'
8559       enable_shared_with_static_runtimes=yes
8560       ;;
8561
8562     darwin* | rhapsody*)
8563       case $host_os in
8564         rhapsody* | darwin1.[012])
8565          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8566          ;;
8567        *) # Darwin 1.3 on
8568          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8569            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8570          else
8571            case ${MACOSX_DEPLOYMENT_TARGET} in
8572              10.[012])
8573                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8574                ;;
8575              10.*)
8576                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8577                ;;
8578            esac
8579          fi
8580          ;;
8581       esac
8582       archive_cmds_need_lc=no
8583       hardcode_direct=no
8584       hardcode_automatic=yes
8585       hardcode_shlibpath_var=unsupported
8586       whole_archive_flag_spec=''
8587       link_all_deplibs=yes
8588     if test "$GCC" = yes ; then
8589         output_verbose_link_cmd='echo'
8590         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8591       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8592       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8593       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}'
8594       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}'
8595     else
8596       case $cc_basename in
8597         xlc*)
8598          output_verbose_link_cmd='echo'
8599          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8600          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8601           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8602          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}'
8603           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}'
8604           ;;
8605        *)
8606          ld_shlibs=no
8607           ;;
8608       esac
8609     fi
8610       ;;
8611
8612     dgux*)
8613       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8614       hardcode_libdir_flag_spec='-L$libdir'
8615       hardcode_shlibpath_var=no
8616       ;;
8617
8618     freebsd1*)
8619       ld_shlibs=no
8620       ;;
8621
8622     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8623     # support.  Future versions do this automatically, but an explicit c++rt0.o
8624     # does not break anything, and helps significantly (at the cost of a little
8625     # extra space).
8626     freebsd2.2*)
8627       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8628       hardcode_libdir_flag_spec='-R$libdir'
8629       hardcode_direct=yes
8630       hardcode_shlibpath_var=no
8631       ;;
8632
8633     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8634     freebsd2*)
8635       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8636       hardcode_direct=yes
8637       hardcode_minus_L=yes
8638       hardcode_shlibpath_var=no
8639       ;;
8640
8641     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8642     freebsd* | dragonfly*)
8643       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8644       hardcode_libdir_flag_spec='-R$libdir'
8645       hardcode_direct=yes
8646       hardcode_shlibpath_var=no
8647       ;;
8648
8649     hpux9*)
8650       if test "$GCC" = yes; then
8651         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'
8652       else
8653         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'
8654       fi
8655       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8656       hardcode_libdir_separator=:
8657       hardcode_direct=yes
8658
8659       # hardcode_minus_L: Not really in the search PATH,
8660       # but as the default location of the library.
8661       hardcode_minus_L=yes
8662       export_dynamic_flag_spec='${wl}-E'
8663       ;;
8664
8665     hpux10*)
8666       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8667         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8668       else
8669         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8670       fi
8671       if test "$with_gnu_ld" = no; then
8672         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8673         hardcode_libdir_separator=:
8674
8675         hardcode_direct=yes
8676         export_dynamic_flag_spec='${wl}-E'
8677
8678         # hardcode_minus_L: Not really in the search PATH,
8679         # but as the default location of the library.
8680         hardcode_minus_L=yes
8681       fi
8682       ;;
8683
8684     hpux11*)
8685       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8686         case $host_cpu in
8687         hppa*64*)
8688           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8689           ;;
8690         ia64*)
8691           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8692           ;;
8693         *)
8694           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8695           ;;
8696         esac
8697       else
8698         case $host_cpu in
8699         hppa*64*)
8700           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8701           ;;
8702         ia64*)
8703           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8704           ;;
8705         *)
8706           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8707           ;;
8708         esac
8709       fi
8710       if test "$with_gnu_ld" = no; then
8711         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8712         hardcode_libdir_separator=:
8713
8714         case $host_cpu in
8715         hppa*64*|ia64*)
8716           hardcode_libdir_flag_spec_ld='+b $libdir'
8717           hardcode_direct=no
8718           hardcode_shlibpath_var=no
8719           ;;
8720         *)
8721           hardcode_direct=yes
8722           export_dynamic_flag_spec='${wl}-E'
8723
8724           # hardcode_minus_L: Not really in the search PATH,
8725           # but as the default location of the library.
8726           hardcode_minus_L=yes
8727           ;;
8728         esac
8729       fi
8730       ;;
8731
8732     irix5* | irix6* | nonstopux*)
8733       if test "$GCC" = yes; then
8734         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'
8735       else
8736         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'
8737         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8738       fi
8739       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8740       hardcode_libdir_separator=:
8741       link_all_deplibs=yes
8742       ;;
8743
8744     netbsd* | netbsdelf*-gnu)
8745       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8746         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8747       else
8748         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8749       fi
8750       hardcode_libdir_flag_spec='-R$libdir'
8751       hardcode_direct=yes
8752       hardcode_shlibpath_var=no
8753       ;;
8754
8755     newsos6)
8756       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8757       hardcode_direct=yes
8758       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8759       hardcode_libdir_separator=:
8760       hardcode_shlibpath_var=no
8761       ;;
8762
8763     openbsd*)
8764       hardcode_direct=yes
8765       hardcode_shlibpath_var=no
8766       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8767         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8768         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8769         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8770         export_dynamic_flag_spec='${wl}-E'
8771       else
8772        case $host_os in
8773          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8774            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8775            hardcode_libdir_flag_spec='-R$libdir'
8776            ;;
8777          *)
8778            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8779            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8780            ;;
8781        esac
8782       fi
8783       ;;
8784
8785     os2*)
8786       hardcode_libdir_flag_spec='-L$libdir'
8787       hardcode_minus_L=yes
8788       allow_undefined_flag=unsupported
8789       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'
8790       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8791       ;;
8792
8793     osf3*)
8794       if test "$GCC" = yes; then
8795         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8796         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'
8797       else
8798         allow_undefined_flag=' -expect_unresolved \*'
8799         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'
8800       fi
8801       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8802       hardcode_libdir_separator=:
8803       ;;
8804
8805     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8806       if test "$GCC" = yes; then
8807         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8808         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'
8809         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8810       else
8811         allow_undefined_flag=' -expect_unresolved \*'
8812         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'
8813         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8814         $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'
8815
8816         # Both c and cxx compiler support -rpath directly
8817         hardcode_libdir_flag_spec='-rpath $libdir'
8818       fi
8819       hardcode_libdir_separator=:
8820       ;;
8821
8822     solaris*)
8823       no_undefined_flag=' -z text'
8824       if test "$GCC" = yes; then
8825         wlarc='${wl}'
8826         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8827         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8828           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8829       else
8830         wlarc=''
8831         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8832         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8833         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8834       fi
8835       hardcode_libdir_flag_spec='-R$libdir'
8836       hardcode_shlibpath_var=no
8837       case $host_os in
8838       solaris2.[0-5] | solaris2.[0-5].*) ;;
8839       *)
8840         # The compiler driver will combine linker options so we
8841         # cannot just pass the convience library names through
8842         # without $wl, iff we do not link with $LD.
8843         # Luckily, gcc supports the same syntax we need for Sun Studio.
8844         # Supported since Solaris 2.6 (maybe 2.5.1?)
8845         case $wlarc in
8846         '')
8847           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8848         *)
8849           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' ;;
8850         esac ;;
8851       esac
8852       link_all_deplibs=yes
8853       ;;
8854
8855     sunos4*)
8856       if test "x$host_vendor" = xsequent; then
8857         # Use $CC to link under sequent, because it throws in some extra .o
8858         # files that make .init and .fini sections work.
8859         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8860       else
8861         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8862       fi
8863       hardcode_libdir_flag_spec='-L$libdir'
8864       hardcode_direct=yes
8865       hardcode_minus_L=yes
8866       hardcode_shlibpath_var=no
8867       ;;
8868
8869     sysv4)
8870       case $host_vendor in
8871         sni)
8872           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8873           hardcode_direct=yes # is this really true???
8874         ;;
8875         siemens)
8876           ## LD is ld it makes a PLAMLIB
8877           ## CC just makes a GrossModule.
8878           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8879           reload_cmds='$CC -r -o $output$reload_objs'
8880           hardcode_direct=no
8881         ;;
8882         motorola)
8883           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8884           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8885         ;;
8886       esac
8887       runpath_var='LD_RUN_PATH'
8888       hardcode_shlibpath_var=no
8889       ;;
8890
8891     sysv4.3*)
8892       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8893       hardcode_shlibpath_var=no
8894       export_dynamic_flag_spec='-Bexport'
8895       ;;
8896
8897     sysv4*MP*)
8898       if test -d /usr/nec; then
8899         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8900         hardcode_shlibpath_var=no
8901         runpath_var=LD_RUN_PATH
8902         hardcode_runpath_var=yes
8903         ld_shlibs=yes
8904       fi
8905       ;;
8906
8907     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8908       no_undefined_flag='${wl}-z,text'
8909       archive_cmds_need_lc=no
8910       hardcode_shlibpath_var=no
8911       runpath_var='LD_RUN_PATH'
8912
8913       if test "$GCC" = yes; then
8914         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8915         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8916       else
8917         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8918         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8919       fi
8920       ;;
8921
8922     sysv5* | sco3.2v5* | sco5v6*)
8923       # Note: We can NOT use -z defs as we might desire, because we do not
8924       # link with -lc, and that would cause any symbols used from libc to
8925       # always be unresolved, which means just about no library would
8926       # ever link correctly.  If we're not using GNU ld we use -z text
8927       # though, which does catch some bad symbols but isn't as heavy-handed
8928       # as -z defs.
8929       no_undefined_flag='${wl}-z,text'
8930       allow_undefined_flag='${wl}-z,nodefs'
8931       archive_cmds_need_lc=no
8932       hardcode_shlibpath_var=no
8933       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8934       hardcode_libdir_separator=':'
8935       link_all_deplibs=yes
8936       export_dynamic_flag_spec='${wl}-Bexport'
8937       runpath_var='LD_RUN_PATH'
8938
8939       if test "$GCC" = yes; then
8940         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8941         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8942       else
8943         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8944         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8945       fi
8946       ;;
8947
8948     uts4*)
8949       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8950       hardcode_libdir_flag_spec='-L$libdir'
8951       hardcode_shlibpath_var=no
8952       ;;
8953
8954     *)
8955       ld_shlibs=no
8956       ;;
8957     esac
8958   fi
8959
8960 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8961 echo "${ECHO_T}$ld_shlibs" >&6
8962 test "$ld_shlibs" = no && can_build_shared=no
8963
8964 #
8965 # Do we need to explicitly link libc?
8966 #
8967 case "x$archive_cmds_need_lc" in
8968 x|xyes)
8969   # Assume -lc should be added
8970   archive_cmds_need_lc=yes
8971
8972   if test "$enable_shared" = yes && test "$GCC" = yes; then
8973     case $archive_cmds in
8974     *'~'*)
8975       # FIXME: we may have to deal with multi-command sequences.
8976       ;;
8977     '$CC '*)
8978       # Test whether the compiler implicitly links with -lc since on some
8979       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8980       # to ld, don't add -lc before -lgcc.
8981       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8982 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8983       $rm conftest*
8984       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8985
8986       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8987   (eval $ac_compile) 2>&5
8988   ac_status=$?
8989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990   (exit $ac_status); } 2>conftest.err; then
8991         soname=conftest
8992         lib=conftest
8993         libobjs=conftest.$ac_objext
8994         deplibs=
8995         wl=$lt_prog_compiler_wl
8996         pic_flag=$lt_prog_compiler_pic
8997         compiler_flags=-v
8998         linker_flags=-v
8999         verstring=
9000         output_objdir=.
9001         libname=conftest
9002         lt_save_allow_undefined_flag=$allow_undefined_flag
9003         allow_undefined_flag=
9004         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9005   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9006   ac_status=$?
9007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008   (exit $ac_status); }
9009         then
9010           archive_cmds_need_lc=no
9011         else
9012           archive_cmds_need_lc=yes
9013         fi
9014         allow_undefined_flag=$lt_save_allow_undefined_flag
9015       else
9016         cat conftest.err 1>&5
9017       fi
9018       $rm conftest*
9019       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9020 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9021       ;;
9022     esac
9023   fi
9024   ;;
9025 esac
9026
9027 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9028 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9029 library_names_spec=
9030 libname_spec='lib$name'
9031 soname_spec=
9032 shrext_cmds=".so"
9033 postinstall_cmds=
9034 postuninstall_cmds=
9035 finish_cmds=
9036 finish_eval=
9037 shlibpath_var=
9038 shlibpath_overrides_runpath=unknown
9039 version_type=none
9040 dynamic_linker="$host_os ld.so"
9041 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9042 if test "$GCC" = yes; then
9043   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9044   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9045     # if the path contains ";" then we assume it to be the separator
9046     # otherwise default to the standard path separator (i.e. ":") - it is
9047     # assumed that no part of a normal pathname contains ";" but that should
9048     # okay in the real world where ";" in dirpaths is itself problematic.
9049     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9050   else
9051     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9052   fi
9053 else
9054   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9055 fi
9056 need_lib_prefix=unknown
9057 hardcode_into_libs=no
9058
9059 # when you set need_version to no, make sure it does not cause -set_version
9060 # flags to be left without arguments
9061 need_version=unknown
9062
9063 case $host_os in
9064 aix3*)
9065   version_type=linux
9066   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9067   shlibpath_var=LIBPATH
9068
9069   # AIX 3 has no versioning support, so we append a major version to the name.
9070   soname_spec='${libname}${release}${shared_ext}$major'
9071   ;;
9072
9073 aix4* | aix5*)
9074   version_type=linux
9075   need_lib_prefix=no
9076   need_version=no
9077   hardcode_into_libs=yes
9078   if test "$host_cpu" = ia64; then
9079     # AIX 5 supports IA64
9080     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9081     shlibpath_var=LD_LIBRARY_PATH
9082   else
9083     # With GCC up to 2.95.x, collect2 would create an import file
9084     # for dependence libraries.  The import file would start with
9085     # the line `#! .'.  This would cause the generated library to
9086     # depend on `.', always an invalid library.  This was fixed in
9087     # development snapshots of GCC prior to 3.0.
9088     case $host_os in
9089       aix4 | aix4.[01] | aix4.[01].*)
9090       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9091            echo ' yes '
9092            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9093         :
9094       else
9095         can_build_shared=no
9096       fi
9097       ;;
9098     esac
9099     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9100     # soname into executable. Probably we can add versioning support to
9101     # collect2, so additional links can be useful in future.
9102     if test "$aix_use_runtimelinking" = yes; then
9103       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9104       # instead of lib<name>.a to let people know that these are not
9105       # typical AIX shared libraries.
9106       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9107     else
9108       # We preserve .a as extension for shared libraries through AIX4.2
9109       # and later when we are not doing run time linking.
9110       library_names_spec='${libname}${release}.a $libname.a'
9111       soname_spec='${libname}${release}${shared_ext}$major'
9112     fi
9113     shlibpath_var=LIBPATH
9114   fi
9115   ;;
9116
9117 amigaos*)
9118   library_names_spec='$libname.ixlibrary $libname.a'
9119   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9120   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'
9121   ;;
9122
9123 beos*)
9124   library_names_spec='${libname}${shared_ext}'
9125   dynamic_linker="$host_os ld.so"
9126   shlibpath_var=LIBRARY_PATH
9127   ;;
9128
9129 bsdi[45]*)
9130   version_type=linux
9131   need_version=no
9132   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9133   soname_spec='${libname}${release}${shared_ext}$major'
9134   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9135   shlibpath_var=LD_LIBRARY_PATH
9136   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9137   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9138   # the default ld.so.conf also contains /usr/contrib/lib and
9139   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9140   # libtool to hard-code these into programs
9141   ;;
9142
9143 cygwin* | mingw* | pw32*)
9144   version_type=windows
9145   shrext_cmds=".dll"
9146   need_version=no
9147   need_lib_prefix=no
9148
9149   case $GCC,$host_os in
9150   yes,cygwin* | yes,mingw* | yes,pw32*)
9151     library_names_spec='$libname.dll.a'
9152     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9153     postinstall_cmds='base_file=`basename \${file}`~
9154       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9155       dldir=$destdir/`dirname \$dlpath`~
9156       test -d \$dldir || mkdir -p \$dldir~
9157       $install_prog $dir/$dlname \$dldir/$dlname~
9158       chmod a+x \$dldir/$dlname'
9159     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9160       dlpath=$dir/\$dldll~
9161        $rm \$dlpath'
9162     shlibpath_overrides_runpath=yes
9163
9164     case $host_os in
9165     cygwin*)
9166       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9167       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9168       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9169       ;;
9170     mingw*)
9171       # MinGW DLLs use traditional 'lib' prefix
9172       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9173       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9174       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9175         # It is most probably a Windows format PATH printed by
9176         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9177         # path with ; separators, and with drive letters. We can handle the
9178         # drive letters (cygwin fileutils understands them), so leave them,
9179         # especially as we might pass files found there to a mingw objdump,
9180         # which wouldn't understand a cygwinified path. Ahh.
9181         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9182       else
9183         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9184       fi
9185       ;;
9186     pw32*)
9187       # pw32 DLLs use 'pw' prefix rather than 'lib'
9188       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9189       ;;
9190     esac
9191     ;;
9192
9193   *)
9194     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9195     ;;
9196   esac
9197   dynamic_linker='Win32 ld.exe'
9198   # FIXME: first we should search . and the directory the executable is in
9199   shlibpath_var=PATH
9200   ;;
9201
9202 darwin* | rhapsody*)
9203   dynamic_linker="$host_os dyld"
9204   version_type=darwin
9205   need_lib_prefix=no
9206   need_version=no
9207   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9208   soname_spec='${libname}${release}${major}$shared_ext'
9209   shlibpath_overrides_runpath=yes
9210   shlibpath_var=DYLD_LIBRARY_PATH
9211   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9212   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9213   if test "$GCC" = yes; then
9214     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"`
9215   else
9216     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9217   fi
9218   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9219   ;;
9220
9221 dgux*)
9222   version_type=linux
9223   need_lib_prefix=no
9224   need_version=no
9225   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9226   soname_spec='${libname}${release}${shared_ext}$major'
9227   shlibpath_var=LD_LIBRARY_PATH
9228   ;;
9229
9230 freebsd1*)
9231   dynamic_linker=no
9232   ;;
9233
9234 freebsd* | dragonfly*)
9235   # DragonFly does not have aout.  When/if they implement a new
9236   # versioning mechanism, adjust this.
9237   if test -x /usr/bin/objformat; then
9238     objformat=`/usr/bin/objformat`
9239   else
9240     case $host_os in
9241     freebsd[123]*) objformat=aout ;;
9242     *) objformat=elf ;;
9243     esac
9244   fi
9245   version_type=freebsd-$objformat
9246   case $version_type in
9247     freebsd-elf*)
9248       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9249       need_version=no
9250       need_lib_prefix=no
9251       ;;
9252     freebsd-*)
9253       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9254       need_version=yes
9255       ;;
9256   esac
9257   shlibpath_var=LD_LIBRARY_PATH
9258   case $host_os in
9259   freebsd2*)
9260     shlibpath_overrides_runpath=yes
9261     ;;
9262   freebsd3.[01]* | freebsdelf3.[01]*)
9263     shlibpath_overrides_runpath=yes
9264     hardcode_into_libs=yes
9265     ;;
9266   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9267   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9268     shlibpath_overrides_runpath=no
9269     hardcode_into_libs=yes
9270     ;;
9271   freebsd*) # from 4.6 on
9272     shlibpath_overrides_runpath=yes
9273     hardcode_into_libs=yes
9274     ;;
9275   esac
9276   ;;
9277
9278 gnu*)
9279   version_type=linux
9280   need_lib_prefix=no
9281   need_version=no
9282   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9283   soname_spec='${libname}${release}${shared_ext}$major'
9284   shlibpath_var=LD_LIBRARY_PATH
9285   hardcode_into_libs=yes
9286   ;;
9287
9288 hpux9* | hpux10* | hpux11*)
9289   # Give a soname corresponding to the major version so that dld.sl refuses to
9290   # link against other versions.
9291   version_type=sunos
9292   need_lib_prefix=no
9293   need_version=no
9294   case $host_cpu in
9295   ia64*)
9296     shrext_cmds='.so'
9297     hardcode_into_libs=yes
9298     dynamic_linker="$host_os dld.so"
9299     shlibpath_var=LD_LIBRARY_PATH
9300     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9301     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9302     soname_spec='${libname}${release}${shared_ext}$major'
9303     if test "X$HPUX_IA64_MODE" = X32; then
9304       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9305     else
9306       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9307     fi
9308     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9309     ;;
9310    hppa*64*)
9311      shrext_cmds='.sl'
9312      hardcode_into_libs=yes
9313      dynamic_linker="$host_os dld.sl"
9314      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9315      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9316      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9317      soname_spec='${libname}${release}${shared_ext}$major'
9318      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9319      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9320      ;;
9321    *)
9322     shrext_cmds='.sl'
9323     dynamic_linker="$host_os dld.sl"
9324     shlibpath_var=SHLIB_PATH
9325     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9326     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9327     soname_spec='${libname}${release}${shared_ext}$major'
9328     ;;
9329   esac
9330   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9331   postinstall_cmds='chmod 555 $lib'
9332   ;;
9333
9334 interix3*)
9335   version_type=linux
9336   need_lib_prefix=no
9337   need_version=no
9338   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9339   soname_spec='${libname}${release}${shared_ext}$major'
9340   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9341   shlibpath_var=LD_LIBRARY_PATH
9342   shlibpath_overrides_runpath=no
9343   hardcode_into_libs=yes
9344   ;;
9345
9346 irix5* | irix6* | nonstopux*)
9347   case $host_os in
9348     nonstopux*) version_type=nonstopux ;;
9349     *)
9350         if test "$lt_cv_prog_gnu_ld" = yes; then
9351                 version_type=linux
9352         else
9353                 version_type=irix
9354         fi ;;
9355   esac
9356   need_lib_prefix=no
9357   need_version=no
9358   soname_spec='${libname}${release}${shared_ext}$major'
9359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9360   case $host_os in
9361   irix5* | nonstopux*)
9362     libsuff= shlibsuff=
9363     ;;
9364   *)
9365     case $LD in # libtool.m4 will add one of these switches to LD
9366     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9367       libsuff= shlibsuff= libmagic=32-bit;;
9368     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9369       libsuff=32 shlibsuff=N32 libmagic=N32;;
9370     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9371       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9372     *) libsuff= shlibsuff= libmagic=never-match;;
9373     esac
9374     ;;
9375   esac
9376   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9377   shlibpath_overrides_runpath=no
9378   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9379   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9380   hardcode_into_libs=yes
9381   ;;
9382
9383 # No shared lib support for Linux oldld, aout, or coff.
9384 linux*oldld* | linux*aout* | linux*coff*)
9385   dynamic_linker=no
9386   ;;
9387
9388 # This must be Linux ELF.
9389 linux* | k*bsd*-gnu)
9390   version_type=linux
9391   need_lib_prefix=no
9392   need_version=no
9393   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9394   soname_spec='${libname}${release}${shared_ext}$major'
9395   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9396   shlibpath_var=LD_LIBRARY_PATH
9397   shlibpath_overrides_runpath=no
9398   # This implies no fast_install, which is unacceptable.
9399   # Some rework will be needed to allow for fast_install
9400   # before this can be enabled.
9401   hardcode_into_libs=yes
9402
9403   # Append ld.so.conf contents to the search path
9404   if test -f /etc/ld.so.conf; then
9405     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' ' '`
9406     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9407   fi
9408
9409   # We used to test for /lib/ld.so.1 and disable shared libraries on
9410   # powerpc, because MkLinux only supported shared libraries with the
9411   # GNU dynamic linker.  Since this was broken with cross compilers,
9412   # most powerpc-linux boxes support dynamic linking these days and
9413   # people can always --disable-shared, the test was removed, and we
9414   # assume the GNU/Linux dynamic linker is in use.
9415   dynamic_linker='GNU/Linux ld.so'
9416   ;;
9417
9418 netbsdelf*-gnu)
9419   version_type=linux
9420   need_lib_prefix=no
9421   need_version=no
9422   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9423   soname_spec='${libname}${release}${shared_ext}$major'
9424   shlibpath_var=LD_LIBRARY_PATH
9425   shlibpath_overrides_runpath=no
9426   hardcode_into_libs=yes
9427   dynamic_linker='NetBSD ld.elf_so'
9428   ;;
9429
9430 netbsd*)
9431   version_type=sunos
9432   need_lib_prefix=no
9433   need_version=no
9434   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9435     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9436     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9437     dynamic_linker='NetBSD (a.out) ld.so'
9438   else
9439     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9440     soname_spec='${libname}${release}${shared_ext}$major'
9441     dynamic_linker='NetBSD ld.elf_so'
9442   fi
9443   shlibpath_var=LD_LIBRARY_PATH
9444   shlibpath_overrides_runpath=yes
9445   hardcode_into_libs=yes
9446   ;;
9447
9448 newsos6)
9449   version_type=linux
9450   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9451   shlibpath_var=LD_LIBRARY_PATH
9452   shlibpath_overrides_runpath=yes
9453   ;;
9454
9455 nto-qnx*)
9456   version_type=linux
9457   need_lib_prefix=no
9458   need_version=no
9459   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9460   soname_spec='${libname}${release}${shared_ext}$major'
9461   shlibpath_var=LD_LIBRARY_PATH
9462   shlibpath_overrides_runpath=yes
9463   ;;
9464
9465 openbsd*)
9466   version_type=sunos
9467   sys_lib_dlsearch_path_spec="/usr/lib"
9468   need_lib_prefix=no
9469   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9470   case $host_os in
9471     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9472     *)                         need_version=no  ;;
9473   esac
9474   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9475   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9476   shlibpath_var=LD_LIBRARY_PATH
9477   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9478     case $host_os in
9479       openbsd2.[89] | openbsd2.[89].*)
9480         shlibpath_overrides_runpath=no
9481         ;;
9482       *)
9483         shlibpath_overrides_runpath=yes
9484         ;;
9485       esac
9486   else
9487     shlibpath_overrides_runpath=yes
9488   fi
9489   ;;
9490
9491 os2*)
9492   libname_spec='$name'
9493   shrext_cmds=".dll"
9494   need_lib_prefix=no
9495   library_names_spec='$libname${shared_ext} $libname.a'
9496   dynamic_linker='OS/2 ld.exe'
9497   shlibpath_var=LIBPATH
9498   ;;
9499
9500 osf3* | osf4* | osf5*)
9501   version_type=osf
9502   need_lib_prefix=no
9503   need_version=no
9504   soname_spec='${libname}${release}${shared_ext}$major'
9505   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9506   shlibpath_var=LD_LIBRARY_PATH
9507   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9508   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9509   ;;
9510
9511 solaris*)
9512   version_type=linux
9513   need_lib_prefix=no
9514   need_version=no
9515   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9516   soname_spec='${libname}${release}${shared_ext}$major'
9517   shlibpath_var=LD_LIBRARY_PATH
9518   shlibpath_overrides_runpath=yes
9519   hardcode_into_libs=yes
9520   # ldd complains unless libraries are executable
9521   postinstall_cmds='chmod +x $lib'
9522   ;;
9523
9524 sunos4*)
9525   version_type=sunos
9526   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9527   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9528   shlibpath_var=LD_LIBRARY_PATH
9529   shlibpath_overrides_runpath=yes
9530   if test "$with_gnu_ld" = yes; then
9531     need_lib_prefix=no
9532   fi
9533   need_version=yes
9534   ;;
9535
9536 sysv4 | sysv4.3*)
9537   version_type=linux
9538   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9539   soname_spec='${libname}${release}${shared_ext}$major'
9540   shlibpath_var=LD_LIBRARY_PATH
9541   case $host_vendor in
9542     sni)
9543       shlibpath_overrides_runpath=no
9544       need_lib_prefix=no
9545       export_dynamic_flag_spec='${wl}-Blargedynsym'
9546       runpath_var=LD_RUN_PATH
9547       ;;
9548     siemens)
9549       need_lib_prefix=no
9550       ;;
9551     motorola)
9552       need_lib_prefix=no
9553       need_version=no
9554       shlibpath_overrides_runpath=no
9555       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9556       ;;
9557   esac
9558   ;;
9559
9560 sysv4*MP*)
9561   if test -d /usr/nec ;then
9562     version_type=linux
9563     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9564     soname_spec='$libname${shared_ext}.$major'
9565     shlibpath_var=LD_LIBRARY_PATH
9566   fi
9567   ;;
9568
9569 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9570   version_type=freebsd-elf
9571   need_lib_prefix=no
9572   need_version=no
9573   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9574   soname_spec='${libname}${release}${shared_ext}$major'
9575   shlibpath_var=LD_LIBRARY_PATH
9576   hardcode_into_libs=yes
9577   if test "$with_gnu_ld" = yes; then
9578     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9579     shlibpath_overrides_runpath=no
9580   else
9581     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9582     shlibpath_overrides_runpath=yes
9583     case $host_os in
9584       sco3.2v5*)
9585         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9586         ;;
9587     esac
9588   fi
9589   sys_lib_dlsearch_path_spec='/usr/lib'
9590   ;;
9591
9592 uts4*)
9593   version_type=linux
9594   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9595   soname_spec='${libname}${release}${shared_ext}$major'
9596   shlibpath_var=LD_LIBRARY_PATH
9597   ;;
9598
9599 *)
9600   dynamic_linker=no
9601   ;;
9602 esac
9603 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9604 echo "${ECHO_T}$dynamic_linker" >&6
9605 test "$dynamic_linker" = no && can_build_shared=no
9606
9607 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9608 if test "$GCC" = yes; then
9609   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9610 fi
9611
9612 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9613 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9614 hardcode_action=
9615 if test -n "$hardcode_libdir_flag_spec" || \
9616    test -n "$runpath_var" || \
9617    test "X$hardcode_automatic" = "Xyes" ; then
9618
9619   # We can hardcode non-existant directories.
9620   if test "$hardcode_direct" != no &&
9621      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9622      # have to relink, otherwise we might link with an installed library
9623      # when we should be linking with a yet-to-be-installed one
9624      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9625      test "$hardcode_minus_L" != no; then
9626     # Linking always hardcodes the temporary library directory.
9627     hardcode_action=relink
9628   else
9629     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9630     hardcode_action=immediate
9631   fi
9632 else
9633   # We cannot hardcode anything, or else we can only hardcode existing
9634   # directories.
9635   hardcode_action=unsupported
9636 fi
9637 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9638 echo "${ECHO_T}$hardcode_action" >&6
9639
9640 if test "$hardcode_action" = relink; then
9641   # Fast installation is not supported
9642   enable_fast_install=no
9643 elif test "$shlibpath_overrides_runpath" = yes ||
9644      test "$enable_shared" = no; then
9645   # Fast installation is not necessary
9646   enable_fast_install=needless
9647 fi
9648
9649 striplib=
9650 old_striplib=
9651 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9652 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9653 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9654   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9655   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9656   echo "$as_me:$LINENO: result: yes" >&5
9657 echo "${ECHO_T}yes" >&6
9658 else
9659 # FIXME - insert some real tests, host_os isn't really good enough
9660   case $host_os in
9661    darwin*)
9662        if test -n "$STRIP" ; then
9663          striplib="$STRIP -x"
9664          echo "$as_me:$LINENO: result: yes" >&5
9665 echo "${ECHO_T}yes" >&6
9666        else
9667   echo "$as_me:$LINENO: result: no" >&5
9668 echo "${ECHO_T}no" >&6
9669 fi
9670        ;;
9671    *)
9672   echo "$as_me:$LINENO: result: no" >&5
9673 echo "${ECHO_T}no" >&6
9674     ;;
9675   esac
9676 fi
9677
9678 if test "x$enable_dlopen" != xyes; then
9679   enable_dlopen=unknown
9680   enable_dlopen_self=unknown
9681   enable_dlopen_self_static=unknown
9682 else
9683   lt_cv_dlopen=no
9684   lt_cv_dlopen_libs=
9685
9686   case $host_os in
9687   beos*)
9688     lt_cv_dlopen="load_add_on"
9689     lt_cv_dlopen_libs=
9690     lt_cv_dlopen_self=yes
9691     ;;
9692
9693   mingw* | pw32*)
9694     lt_cv_dlopen="LoadLibrary"
9695     lt_cv_dlopen_libs=
9696    ;;
9697
9698   cygwin*)
9699     lt_cv_dlopen="dlopen"
9700     lt_cv_dlopen_libs=
9701    ;;
9702
9703   darwin*)
9704   # if libdl is installed we need to link against it
9705     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9706 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9707 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9708   echo $ECHO_N "(cached) $ECHO_C" >&6
9709 else
9710   ac_check_lib_save_LIBS=$LIBS
9711 LIBS="-ldl  $LIBS"
9712 cat >conftest.$ac_ext <<_ACEOF
9713 /* confdefs.h.  */
9714 _ACEOF
9715 cat confdefs.h >>conftest.$ac_ext
9716 cat >>conftest.$ac_ext <<_ACEOF
9717 /* end confdefs.h.  */
9718
9719 /* Override any gcc2 internal prototype to avoid an error.  */
9720 #ifdef __cplusplus
9721 extern "C"
9722 #endif
9723 /* We use char because int might match the return type of a gcc2
9724    builtin and then its argument prototype would still apply.  */
9725 char dlopen ();
9726 int
9727 main ()
9728 {
9729 dlopen ();
9730   ;
9731   return 0;
9732 }
9733 _ACEOF
9734 rm -f conftest.$ac_objext conftest$ac_exeext
9735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9736   (eval $ac_link) 2>conftest.er1
9737   ac_status=$?
9738   grep -v '^ *+' conftest.er1 >conftest.err
9739   rm -f conftest.er1
9740   cat conftest.err >&5
9741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742   (exit $ac_status); } &&
9743          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9745   (eval $ac_try) 2>&5
9746   ac_status=$?
9747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748   (exit $ac_status); }; } &&
9749          { ac_try='test -s conftest$ac_exeext'
9750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9751   (eval $ac_try) 2>&5
9752   ac_status=$?
9753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754   (exit $ac_status); }; }; then
9755   ac_cv_lib_dl_dlopen=yes
9756 else
9757   echo "$as_me: failed program was:" >&5
9758 sed 's/^/| /' conftest.$ac_ext >&5
9759
9760 ac_cv_lib_dl_dlopen=no
9761 fi
9762 rm -f conftest.err conftest.$ac_objext \
9763       conftest$ac_exeext conftest.$ac_ext
9764 LIBS=$ac_check_lib_save_LIBS
9765 fi
9766 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9767 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9768 if test $ac_cv_lib_dl_dlopen = yes; then
9769   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9770 else
9771
9772     lt_cv_dlopen="dyld"
9773     lt_cv_dlopen_libs=
9774     lt_cv_dlopen_self=yes
9775
9776 fi
9777
9778    ;;
9779
9780   *)
9781     echo "$as_me:$LINENO: checking for shl_load" >&5
9782 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9783 if test "${ac_cv_func_shl_load+set}" = set; then
9784   echo $ECHO_N "(cached) $ECHO_C" >&6
9785 else
9786   cat >conftest.$ac_ext <<_ACEOF
9787 /* confdefs.h.  */
9788 _ACEOF
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h.  */
9792 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9793    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9794 #define shl_load innocuous_shl_load
9795
9796 /* System header to define __stub macros and hopefully few prototypes,
9797     which can conflict with char shl_load (); below.
9798     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9799     <limits.h> exists even on freestanding compilers.  */
9800
9801 #ifdef __STDC__
9802 # include <limits.h>
9803 #else
9804 # include <assert.h>
9805 #endif
9806
9807 #undef shl_load
9808
9809 /* Override any gcc2 internal prototype to avoid an error.  */
9810 #ifdef __cplusplus
9811 extern "C"
9812 {
9813 #endif
9814 /* We use char because int might match the return type of a gcc2
9815    builtin and then its argument prototype would still apply.  */
9816 char shl_load ();
9817 /* The GNU C library defines this for functions which it implements
9818     to always fail with ENOSYS.  Some functions are actually named
9819     something starting with __ and the normal name is an alias.  */
9820 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9821 choke me
9822 #else
9823 char (*f) () = shl_load;
9824 #endif
9825 #ifdef __cplusplus
9826 }
9827 #endif
9828
9829 int
9830 main ()
9831 {
9832 return f != shl_load;
9833   ;
9834   return 0;
9835 }
9836 _ACEOF
9837 rm -f conftest.$ac_objext conftest$ac_exeext
9838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9839   (eval $ac_link) 2>conftest.er1
9840   ac_status=$?
9841   grep -v '^ *+' conftest.er1 >conftest.err
9842   rm -f conftest.er1
9843   cat conftest.err >&5
9844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845   (exit $ac_status); } &&
9846          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9848   (eval $ac_try) 2>&5
9849   ac_status=$?
9850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851   (exit $ac_status); }; } &&
9852          { ac_try='test -s conftest$ac_exeext'
9853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9854   (eval $ac_try) 2>&5
9855   ac_status=$?
9856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857   (exit $ac_status); }; }; then
9858   ac_cv_func_shl_load=yes
9859 else
9860   echo "$as_me: failed program was:" >&5
9861 sed 's/^/| /' conftest.$ac_ext >&5
9862
9863 ac_cv_func_shl_load=no
9864 fi
9865 rm -f conftest.err conftest.$ac_objext \
9866       conftest$ac_exeext conftest.$ac_ext
9867 fi
9868 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9869 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9870 if test $ac_cv_func_shl_load = yes; then
9871   lt_cv_dlopen="shl_load"
9872 else
9873   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9874 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9875 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9876   echo $ECHO_N "(cached) $ECHO_C" >&6
9877 else
9878   ac_check_lib_save_LIBS=$LIBS
9879 LIBS="-ldld  $LIBS"
9880 cat >conftest.$ac_ext <<_ACEOF
9881 /* confdefs.h.  */
9882 _ACEOF
9883 cat confdefs.h >>conftest.$ac_ext
9884 cat >>conftest.$ac_ext <<_ACEOF
9885 /* end confdefs.h.  */
9886
9887 /* Override any gcc2 internal prototype to avoid an error.  */
9888 #ifdef __cplusplus
9889 extern "C"
9890 #endif
9891 /* We use char because int might match the return type of a gcc2
9892    builtin and then its argument prototype would still apply.  */
9893 char shl_load ();
9894 int
9895 main ()
9896 {
9897 shl_load ();
9898   ;
9899   return 0;
9900 }
9901 _ACEOF
9902 rm -f conftest.$ac_objext conftest$ac_exeext
9903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9904   (eval $ac_link) 2>conftest.er1
9905   ac_status=$?
9906   grep -v '^ *+' conftest.er1 >conftest.err
9907   rm -f conftest.er1
9908   cat conftest.err >&5
9909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910   (exit $ac_status); } &&
9911          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9913   (eval $ac_try) 2>&5
9914   ac_status=$?
9915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916   (exit $ac_status); }; } &&
9917          { ac_try='test -s conftest$ac_exeext'
9918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9919   (eval $ac_try) 2>&5
9920   ac_status=$?
9921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922   (exit $ac_status); }; }; then
9923   ac_cv_lib_dld_shl_load=yes
9924 else
9925   echo "$as_me: failed program was:" >&5
9926 sed 's/^/| /' conftest.$ac_ext >&5
9927
9928 ac_cv_lib_dld_shl_load=no
9929 fi
9930 rm -f conftest.err conftest.$ac_objext \
9931       conftest$ac_exeext conftest.$ac_ext
9932 LIBS=$ac_check_lib_save_LIBS
9933 fi
9934 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9935 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9936 if test $ac_cv_lib_dld_shl_load = yes; then
9937   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9938 else
9939   echo "$as_me:$LINENO: checking for dlopen" >&5
9940 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9941 if test "${ac_cv_func_dlopen+set}" = set; then
9942   echo $ECHO_N "(cached) $ECHO_C" >&6
9943 else
9944   cat >conftest.$ac_ext <<_ACEOF
9945 /* confdefs.h.  */
9946 _ACEOF
9947 cat confdefs.h >>conftest.$ac_ext
9948 cat >>conftest.$ac_ext <<_ACEOF
9949 /* end confdefs.h.  */
9950 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9951    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9952 #define dlopen innocuous_dlopen
9953
9954 /* System header to define __stub macros and hopefully few prototypes,
9955     which can conflict with char dlopen (); below.
9956     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9957     <limits.h> exists even on freestanding compilers.  */
9958
9959 #ifdef __STDC__
9960 # include <limits.h>
9961 #else
9962 # include <assert.h>
9963 #endif
9964
9965 #undef dlopen
9966
9967 /* Override any gcc2 internal prototype to avoid an error.  */
9968 #ifdef __cplusplus
9969 extern "C"
9970 {
9971 #endif
9972 /* We use char because int might match the return type of a gcc2
9973    builtin and then its argument prototype would still apply.  */
9974 char dlopen ();
9975 /* The GNU C library defines this for functions which it implements
9976     to always fail with ENOSYS.  Some functions are actually named
9977     something starting with __ and the normal name is an alias.  */
9978 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9979 choke me
9980 #else
9981 char (*f) () = dlopen;
9982 #endif
9983 #ifdef __cplusplus
9984 }
9985 #endif
9986
9987 int
9988 main ()
9989 {
9990 return f != dlopen;
9991   ;
9992   return 0;
9993 }
9994 _ACEOF
9995 rm -f conftest.$ac_objext conftest$ac_exeext
9996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9997   (eval $ac_link) 2>conftest.er1
9998   ac_status=$?
9999   grep -v '^ *+' conftest.er1 >conftest.err
10000   rm -f conftest.er1
10001   cat conftest.err >&5
10002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003   (exit $ac_status); } &&
10004          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
10010          { ac_try='test -s conftest$ac_exeext'
10011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10012   (eval $ac_try) 2>&5
10013   ac_status=$?
10014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015   (exit $ac_status); }; }; then
10016   ac_cv_func_dlopen=yes
10017 else
10018   echo "$as_me: failed program was:" >&5
10019 sed 's/^/| /' conftest.$ac_ext >&5
10020
10021 ac_cv_func_dlopen=no
10022 fi
10023 rm -f conftest.err conftest.$ac_objext \
10024       conftest$ac_exeext conftest.$ac_ext
10025 fi
10026 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10027 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10028 if test $ac_cv_func_dlopen = yes; then
10029   lt_cv_dlopen="dlopen"
10030 else
10031   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10032 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10033 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10034   echo $ECHO_N "(cached) $ECHO_C" >&6
10035 else
10036   ac_check_lib_save_LIBS=$LIBS
10037 LIBS="-ldl  $LIBS"
10038 cat >conftest.$ac_ext <<_ACEOF
10039 /* confdefs.h.  */
10040 _ACEOF
10041 cat confdefs.h >>conftest.$ac_ext
10042 cat >>conftest.$ac_ext <<_ACEOF
10043 /* end confdefs.h.  */
10044
10045 /* Override any gcc2 internal prototype to avoid an error.  */
10046 #ifdef __cplusplus
10047 extern "C"
10048 #endif
10049 /* We use char because int might match the return type of a gcc2
10050    builtin and then its argument prototype would still apply.  */
10051 char dlopen ();
10052 int
10053 main ()
10054 {
10055 dlopen ();
10056   ;
10057   return 0;
10058 }
10059 _ACEOF
10060 rm -f conftest.$ac_objext conftest$ac_exeext
10061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10062   (eval $ac_link) 2>conftest.er1
10063   ac_status=$?
10064   grep -v '^ *+' conftest.er1 >conftest.err
10065   rm -f conftest.er1
10066   cat conftest.err >&5
10067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068   (exit $ac_status); } &&
10069          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10071   (eval $ac_try) 2>&5
10072   ac_status=$?
10073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074   (exit $ac_status); }; } &&
10075          { ac_try='test -s conftest$ac_exeext'
10076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10077   (eval $ac_try) 2>&5
10078   ac_status=$?
10079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080   (exit $ac_status); }; }; then
10081   ac_cv_lib_dl_dlopen=yes
10082 else
10083   echo "$as_me: failed program was:" >&5
10084 sed 's/^/| /' conftest.$ac_ext >&5
10085
10086 ac_cv_lib_dl_dlopen=no
10087 fi
10088 rm -f conftest.err conftest.$ac_objext \
10089       conftest$ac_exeext conftest.$ac_ext
10090 LIBS=$ac_check_lib_save_LIBS
10091 fi
10092 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10093 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10094 if test $ac_cv_lib_dl_dlopen = yes; then
10095   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10096 else
10097   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10098 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10099 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10100   echo $ECHO_N "(cached) $ECHO_C" >&6
10101 else
10102   ac_check_lib_save_LIBS=$LIBS
10103 LIBS="-lsvld  $LIBS"
10104 cat >conftest.$ac_ext <<_ACEOF
10105 /* confdefs.h.  */
10106 _ACEOF
10107 cat confdefs.h >>conftest.$ac_ext
10108 cat >>conftest.$ac_ext <<_ACEOF
10109 /* end confdefs.h.  */
10110
10111 /* Override any gcc2 internal prototype to avoid an error.  */
10112 #ifdef __cplusplus
10113 extern "C"
10114 #endif
10115 /* We use char because int might match the return type of a gcc2
10116    builtin and then its argument prototype would still apply.  */
10117 char dlopen ();
10118 int
10119 main ()
10120 {
10121 dlopen ();
10122   ;
10123   return 0;
10124 }
10125 _ACEOF
10126 rm -f conftest.$ac_objext conftest$ac_exeext
10127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10128   (eval $ac_link) 2>conftest.er1
10129   ac_status=$?
10130   grep -v '^ *+' conftest.er1 >conftest.err
10131   rm -f conftest.er1
10132   cat conftest.err >&5
10133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134   (exit $ac_status); } &&
10135          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10137   (eval $ac_try) 2>&5
10138   ac_status=$?
10139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140   (exit $ac_status); }; } &&
10141          { ac_try='test -s conftest$ac_exeext'
10142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10143   (eval $ac_try) 2>&5
10144   ac_status=$?
10145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146   (exit $ac_status); }; }; then
10147   ac_cv_lib_svld_dlopen=yes
10148 else
10149   echo "$as_me: failed program was:" >&5
10150 sed 's/^/| /' conftest.$ac_ext >&5
10151
10152 ac_cv_lib_svld_dlopen=no
10153 fi
10154 rm -f conftest.err conftest.$ac_objext \
10155       conftest$ac_exeext conftest.$ac_ext
10156 LIBS=$ac_check_lib_save_LIBS
10157 fi
10158 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10159 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10160 if test $ac_cv_lib_svld_dlopen = yes; then
10161   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10162 else
10163   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10164 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10165 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10166   echo $ECHO_N "(cached) $ECHO_C" >&6
10167 else
10168   ac_check_lib_save_LIBS=$LIBS
10169 LIBS="-ldld  $LIBS"
10170 cat >conftest.$ac_ext <<_ACEOF
10171 /* confdefs.h.  */
10172 _ACEOF
10173 cat confdefs.h >>conftest.$ac_ext
10174 cat >>conftest.$ac_ext <<_ACEOF
10175 /* end confdefs.h.  */
10176
10177 /* Override any gcc2 internal prototype to avoid an error.  */
10178 #ifdef __cplusplus
10179 extern "C"
10180 #endif
10181 /* We use char because int might match the return type of a gcc2
10182    builtin and then its argument prototype would still apply.  */
10183 char dld_link ();
10184 int
10185 main ()
10186 {
10187 dld_link ();
10188   ;
10189   return 0;
10190 }
10191 _ACEOF
10192 rm -f conftest.$ac_objext conftest$ac_exeext
10193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10194   (eval $ac_link) 2>conftest.er1
10195   ac_status=$?
10196   grep -v '^ *+' conftest.er1 >conftest.err
10197   rm -f conftest.er1
10198   cat conftest.err >&5
10199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200   (exit $ac_status); } &&
10201          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10203   (eval $ac_try) 2>&5
10204   ac_status=$?
10205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206   (exit $ac_status); }; } &&
10207          { ac_try='test -s conftest$ac_exeext'
10208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10209   (eval $ac_try) 2>&5
10210   ac_status=$?
10211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212   (exit $ac_status); }; }; then
10213   ac_cv_lib_dld_dld_link=yes
10214 else
10215   echo "$as_me: failed program was:" >&5
10216 sed 's/^/| /' conftest.$ac_ext >&5
10217
10218 ac_cv_lib_dld_dld_link=no
10219 fi
10220 rm -f conftest.err conftest.$ac_objext \
10221       conftest$ac_exeext conftest.$ac_ext
10222 LIBS=$ac_check_lib_save_LIBS
10223 fi
10224 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10225 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10226 if test $ac_cv_lib_dld_dld_link = yes; then
10227   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10228 fi
10229
10230
10231 fi
10232
10233
10234 fi
10235
10236
10237 fi
10238
10239
10240 fi
10241
10242
10243 fi
10244
10245     ;;
10246   esac
10247
10248   if test "x$lt_cv_dlopen" != xno; then
10249     enable_dlopen=yes
10250   else
10251     enable_dlopen=no
10252   fi
10253
10254   case $lt_cv_dlopen in
10255   dlopen)
10256     save_CPPFLAGS="$CPPFLAGS"
10257     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10258
10259     save_LDFLAGS="$LDFLAGS"
10260     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10261
10262     save_LIBS="$LIBS"
10263     LIBS="$lt_cv_dlopen_libs $LIBS"
10264
10265     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10266 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10267 if test "${lt_cv_dlopen_self+set}" = set; then
10268   echo $ECHO_N "(cached) $ECHO_C" >&6
10269 else
10270           if test "$cross_compiling" = yes; then :
10271   lt_cv_dlopen_self=cross
10272 else
10273   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10274   lt_status=$lt_dlunknown
10275   cat > conftest.$ac_ext <<EOF
10276 #line 10276 "configure"
10277 #include "confdefs.h"
10278
10279 #if HAVE_DLFCN_H
10280 #include <dlfcn.h>
10281 #endif
10282
10283 #include <stdio.h>
10284
10285 #ifdef RTLD_GLOBAL
10286 #  define LT_DLGLOBAL           RTLD_GLOBAL
10287 #else
10288 #  ifdef DL_GLOBAL
10289 #    define LT_DLGLOBAL         DL_GLOBAL
10290 #  else
10291 #    define LT_DLGLOBAL         0
10292 #  endif
10293 #endif
10294
10295 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10296    find out it does not work in some platform. */
10297 #ifndef LT_DLLAZY_OR_NOW
10298 #  ifdef RTLD_LAZY
10299 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10300 #  else
10301 #    ifdef DL_LAZY
10302 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10303 #    else
10304 #      ifdef RTLD_NOW
10305 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10306 #      else
10307 #        ifdef DL_NOW
10308 #          define LT_DLLAZY_OR_NOW      DL_NOW
10309 #        else
10310 #          define LT_DLLAZY_OR_NOW      0
10311 #        endif
10312 #      endif
10313 #    endif
10314 #  endif
10315 #endif
10316
10317 #ifdef __cplusplus
10318 extern "C" void exit (int);
10319 #endif
10320
10321 void fnord() { int i=42;}
10322 int main ()
10323 {
10324   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10325   int status = $lt_dlunknown;
10326
10327   if (self)
10328     {
10329       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10330       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10331       /* dlclose (self); */
10332     }
10333   else
10334     puts (dlerror ());
10335
10336     exit (status);
10337 }
10338 EOF
10339   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10340   (eval $ac_link) 2>&5
10341   ac_status=$?
10342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10344     (./conftest; exit; ) >&5 2>/dev/null
10345     lt_status=$?
10346     case x$lt_status in
10347       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10348       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10349       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10350     esac
10351   else :
10352     # compilation failed
10353     lt_cv_dlopen_self=no
10354   fi
10355 fi
10356 rm -fr conftest*
10357
10358
10359 fi
10360 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10361 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10362
10363     if test "x$lt_cv_dlopen_self" = xyes; then
10364       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10365       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10366 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10367 if test "${lt_cv_dlopen_self_static+set}" = set; then
10368   echo $ECHO_N "(cached) $ECHO_C" >&6
10369 else
10370           if test "$cross_compiling" = yes; then :
10371   lt_cv_dlopen_self_static=cross
10372 else
10373   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10374   lt_status=$lt_dlunknown
10375   cat > conftest.$ac_ext <<EOF
10376 #line 10376 "configure"
10377 #include "confdefs.h"
10378
10379 #if HAVE_DLFCN_H
10380 #include <dlfcn.h>
10381 #endif
10382
10383 #include <stdio.h>
10384
10385 #ifdef RTLD_GLOBAL
10386 #  define LT_DLGLOBAL           RTLD_GLOBAL
10387 #else
10388 #  ifdef DL_GLOBAL
10389 #    define LT_DLGLOBAL         DL_GLOBAL
10390 #  else
10391 #    define LT_DLGLOBAL         0
10392 #  endif
10393 #endif
10394
10395 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10396    find out it does not work in some platform. */
10397 #ifndef LT_DLLAZY_OR_NOW
10398 #  ifdef RTLD_LAZY
10399 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10400 #  else
10401 #    ifdef DL_LAZY
10402 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10403 #    else
10404 #      ifdef RTLD_NOW
10405 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10406 #      else
10407 #        ifdef DL_NOW
10408 #          define LT_DLLAZY_OR_NOW      DL_NOW
10409 #        else
10410 #          define LT_DLLAZY_OR_NOW      0
10411 #        endif
10412 #      endif
10413 #    endif
10414 #  endif
10415 #endif
10416
10417 #ifdef __cplusplus
10418 extern "C" void exit (int);
10419 #endif
10420
10421 void fnord() { int i=42;}
10422 int main ()
10423 {
10424   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10425   int status = $lt_dlunknown;
10426
10427   if (self)
10428     {
10429       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10430       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10431       /* dlclose (self); */
10432     }
10433   else
10434     puts (dlerror ());
10435
10436     exit (status);
10437 }
10438 EOF
10439   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10440   (eval $ac_link) 2>&5
10441   ac_status=$?
10442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10444     (./conftest; exit; ) >&5 2>/dev/null
10445     lt_status=$?
10446     case x$lt_status in
10447       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10448       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10449       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10450     esac
10451   else :
10452     # compilation failed
10453     lt_cv_dlopen_self_static=no
10454   fi
10455 fi
10456 rm -fr conftest*
10457
10458
10459 fi
10460 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10461 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10462     fi
10463
10464     CPPFLAGS="$save_CPPFLAGS"
10465     LDFLAGS="$save_LDFLAGS"
10466     LIBS="$save_LIBS"
10467     ;;
10468   esac
10469
10470   case $lt_cv_dlopen_self in
10471   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10472   *) enable_dlopen_self=unknown ;;
10473   esac
10474
10475   case $lt_cv_dlopen_self_static in
10476   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10477   *) enable_dlopen_self_static=unknown ;;
10478   esac
10479 fi
10480
10481
10482 # Report which library types will actually be built
10483 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10484 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10485 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10486 echo "${ECHO_T}$can_build_shared" >&6
10487
10488 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10489 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10490 test "$can_build_shared" = "no" && enable_shared=no
10491
10492 # On AIX, shared libraries and static libraries use the same namespace, and
10493 # are all built from PIC.
10494 case $host_os in
10495 aix3*)
10496   test "$enable_shared" = yes && enable_static=no
10497   if test -n "$RANLIB"; then
10498     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10499     postinstall_cmds='$RANLIB $lib'
10500   fi
10501   ;;
10502
10503 aix4* | aix5*)
10504   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10505     test "$enable_shared" = yes && enable_static=no
10506   fi
10507     ;;
10508 esac
10509 echo "$as_me:$LINENO: result: $enable_shared" >&5
10510 echo "${ECHO_T}$enable_shared" >&6
10511
10512 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10513 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10514 # Make sure either enable_shared or enable_static is yes.
10515 test "$enable_shared" = yes || enable_static=yes
10516 echo "$as_me:$LINENO: result: $enable_static" >&5
10517 echo "${ECHO_T}$enable_static" >&6
10518
10519 # The else clause should only fire when bootstrapping the
10520 # libtool distribution, otherwise you forgot to ship ltmain.sh
10521 # with your package, and you will get complaints that there are
10522 # no rules to generate ltmain.sh.
10523 if test -f "$ltmain"; then
10524   # See if we are running on zsh, and set the options which allow our commands through
10525   # without removal of \ escapes.
10526   if test -n "${ZSH_VERSION+set}" ; then
10527     setopt NO_GLOB_SUBST
10528   fi
10529   # Now quote all the things that may contain metacharacters while being
10530   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10531   # variables and quote the copies for generation of the libtool script.
10532   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10533     SED SHELL STRIP \
10534     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10535     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10536     deplibs_check_method reload_flag reload_cmds need_locks \
10537     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10538     lt_cv_sys_global_symbol_to_c_name_address \
10539     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10540     old_postinstall_cmds old_postuninstall_cmds \
10541     compiler \
10542     CC \
10543     LD \
10544     lt_prog_compiler_wl \
10545     lt_prog_compiler_pic \
10546     lt_prog_compiler_static \
10547     lt_prog_compiler_no_builtin_flag \
10548     export_dynamic_flag_spec \
10549     thread_safe_flag_spec \
10550     whole_archive_flag_spec \
10551     enable_shared_with_static_runtimes \
10552     old_archive_cmds \
10553     old_archive_from_new_cmds \
10554     predep_objects \
10555     postdep_objects \
10556     predeps \
10557     postdeps \
10558     compiler_lib_search_path \
10559     archive_cmds \
10560     archive_expsym_cmds \
10561     postinstall_cmds \
10562     postuninstall_cmds \
10563     old_archive_from_expsyms_cmds \
10564     allow_undefined_flag \
10565     no_undefined_flag \
10566     export_symbols_cmds \
10567     hardcode_libdir_flag_spec \
10568     hardcode_libdir_flag_spec_ld \
10569     hardcode_libdir_separator \
10570     hardcode_automatic \
10571     module_cmds \
10572     module_expsym_cmds \
10573     lt_cv_prog_compiler_c_o \
10574     exclude_expsyms \
10575     include_expsyms; do
10576
10577     case $var in
10578     old_archive_cmds | \
10579     old_archive_from_new_cmds | \
10580     archive_cmds | \
10581     archive_expsym_cmds | \
10582     module_cmds | \
10583     module_expsym_cmds | \
10584     old_archive_from_expsyms_cmds | \
10585     export_symbols_cmds | \
10586     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10587     postinstall_cmds | postuninstall_cmds | \
10588     old_postinstall_cmds | old_postuninstall_cmds | \
10589     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10590       # Double-quote double-evaled strings.
10591       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10592       ;;
10593     *)
10594       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10595       ;;
10596     esac
10597   done
10598
10599   case $lt_echo in
10600   *'\$0 --fallback-echo"')
10601     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10602     ;;
10603   esac
10604
10605 cfgfile="${ofile}T"
10606   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10607   $rm -f "$cfgfile"
10608   { echo "$as_me:$LINENO: creating $ofile" >&5
10609 echo "$as_me: creating $ofile" >&6;}
10610
10611   cat <<__EOF__ >> "$cfgfile"
10612 #! $SHELL
10613
10614 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10615 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10616 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10617 #
10618 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10619 # Free Software Foundation, Inc.
10620 #
10621 # This file is part of GNU Libtool:
10622 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10623 #
10624 # This program is free software; you can redistribute it and/or modify
10625 # it under the terms of the GNU General Public License as published by
10626 # the Free Software Foundation; either version 2 of the License, or
10627 # (at your option) any later version.
10628 #
10629 # This program is distributed in the hope that it will be useful, but
10630 # WITHOUT ANY WARRANTY; without even the implied warranty of
10631 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10632 # General Public License for more details.
10633 #
10634 # You should have received a copy of the GNU General Public License
10635 # along with this program; if not, write to the Free Software
10636 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10637 #
10638 # As a special exception to the GNU General Public License, if you
10639 # distribute this file as part of a program that contains a
10640 # configuration script generated by Autoconf, you may include it under
10641 # the same distribution terms that you use for the rest of that program.
10642
10643 # A sed program that does not truncate output.
10644 SED=$lt_SED
10645
10646 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10647 Xsed="$SED -e 1s/^X//"
10648
10649 # The HP-UX ksh and POSIX shell print the target directory to stdout
10650 # if CDPATH is set.
10651 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10652
10653 # The names of the tagged configurations supported by this script.
10654 available_tags=
10655
10656 # ### BEGIN LIBTOOL CONFIG
10657
10658 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10659
10660 # Shell to use when invoking shell scripts.
10661 SHELL=$lt_SHELL
10662
10663 # Whether or not to build shared libraries.
10664 build_libtool_libs=$enable_shared
10665
10666 # Whether or not to build static libraries.
10667 build_old_libs=$enable_static
10668
10669 # Whether or not to add -lc for building shared libraries.
10670 build_libtool_need_lc=$archive_cmds_need_lc
10671
10672 # Whether or not to disallow shared libs when runtime libs are static
10673 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10674
10675 # Whether or not to optimize for fast installation.
10676 fast_install=$enable_fast_install
10677
10678 # The host system.
10679 host_alias=$host_alias
10680 host=$host
10681 host_os=$host_os
10682
10683 # The build system.
10684 build_alias=$build_alias
10685 build=$build
10686 build_os=$build_os
10687
10688 # An echo program that does not interpret backslashes.
10689 echo=$lt_echo
10690
10691 # The archiver.
10692 AR=$lt_AR
10693 AR_FLAGS=$lt_AR_FLAGS
10694
10695 # A C compiler.
10696 LTCC=$lt_LTCC
10697
10698 # LTCC compiler flags.
10699 LTCFLAGS=$lt_LTCFLAGS
10700
10701 # A language-specific compiler.
10702 CC=$lt_compiler
10703
10704 # Is the compiler the GNU C compiler?
10705 with_gcc=$GCC
10706
10707 # An ERE matcher.
10708 EGREP=$lt_EGREP
10709
10710 # The linker used to build libraries.
10711 LD=$lt_LD
10712
10713 # Whether we need hard or soft links.
10714 LN_S=$lt_LN_S
10715
10716 # A BSD-compatible nm program.
10717 NM=$lt_NM
10718
10719 # A symbol stripping program
10720 STRIP=$lt_STRIP
10721
10722 # Used to examine libraries when file_magic_cmd begins "file"
10723 MAGIC_CMD=$MAGIC_CMD
10724
10725 # Used on cygwin: DLL creation program.
10726 DLLTOOL="$DLLTOOL"
10727
10728 # Used on cygwin: object dumper.
10729 OBJDUMP="$OBJDUMP"
10730
10731 # Used on cygwin: assembler.
10732 AS="$AS"
10733
10734 # The name of the directory that contains temporary libtool files.
10735 objdir=$objdir
10736
10737 # How to create reloadable object files.
10738 reload_flag=$lt_reload_flag
10739 reload_cmds=$lt_reload_cmds
10740
10741 # How to pass a linker flag through the compiler.
10742 wl=$lt_lt_prog_compiler_wl
10743
10744 # Object file suffix (normally "o").
10745 objext="$ac_objext"
10746
10747 # Old archive suffix (normally "a").
10748 libext="$libext"
10749
10750 # Shared library suffix (normally ".so").
10751 shrext_cmds='$shrext_cmds'
10752
10753 # Executable file suffix (normally "").
10754 exeext="$exeext"
10755
10756 # Additional compiler flags for building library objects.
10757 pic_flag=$lt_lt_prog_compiler_pic
10758 pic_mode=$pic_mode
10759
10760 # What is the maximum length of a command?
10761 max_cmd_len=$lt_cv_sys_max_cmd_len
10762
10763 # Does compiler simultaneously support -c and -o options?
10764 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10765
10766 # Must we lock files when doing compilation?
10767 need_locks=$lt_need_locks
10768
10769 # Do we need the lib prefix for modules?
10770 need_lib_prefix=$need_lib_prefix
10771
10772 # Do we need a version for libraries?
10773 need_version=$need_version
10774
10775 # Whether dlopen is supported.
10776 dlopen_support=$enable_dlopen
10777
10778 # Whether dlopen of programs is supported.
10779 dlopen_self=$enable_dlopen_self
10780
10781 # Whether dlopen of statically linked programs is supported.
10782 dlopen_self_static=$enable_dlopen_self_static
10783
10784 # Compiler flag to prevent dynamic linking.
10785 link_static_flag=$lt_lt_prog_compiler_static
10786
10787 # Compiler flag to turn off builtin functions.
10788 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10789
10790 # Compiler flag to allow reflexive dlopens.
10791 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10792
10793 # Compiler flag to generate shared objects directly from archives.
10794 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10795
10796 # Compiler flag to generate thread-safe objects.
10797 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10798
10799 # Library versioning type.
10800 version_type=$version_type
10801
10802 # Format of library name prefix.
10803 libname_spec=$lt_libname_spec
10804
10805 # List of archive names.  First name is the real one, the rest are links.
10806 # The last name is the one that the linker finds with -lNAME.
10807 library_names_spec=$lt_library_names_spec
10808
10809 # The coded name of the library, if different from the real name.
10810 soname_spec=$lt_soname_spec
10811
10812 # Commands used to build and install an old-style archive.
10813 RANLIB=$lt_RANLIB
10814 old_archive_cmds=$lt_old_archive_cmds
10815 old_postinstall_cmds=$lt_old_postinstall_cmds
10816 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10817
10818 # Create an old-style archive from a shared archive.
10819 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10820
10821 # Create a temporary old-style archive to link instead of a shared archive.
10822 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10823
10824 # Commands used to build and install a shared archive.
10825 archive_cmds=$lt_archive_cmds
10826 archive_expsym_cmds=$lt_archive_expsym_cmds
10827 postinstall_cmds=$lt_postinstall_cmds
10828 postuninstall_cmds=$lt_postuninstall_cmds
10829
10830 # Commands used to build a loadable module (assumed same as above if empty)
10831 module_cmds=$lt_module_cmds
10832 module_expsym_cmds=$lt_module_expsym_cmds
10833
10834 # Commands to strip libraries.
10835 old_striplib=$lt_old_striplib
10836 striplib=$lt_striplib
10837
10838 # Dependencies to place before the objects being linked to create a
10839 # shared library.
10840 predep_objects=$lt_predep_objects
10841
10842 # Dependencies to place after the objects being linked to create a
10843 # shared library.
10844 postdep_objects=$lt_postdep_objects
10845
10846 # Dependencies to place before the objects being linked to create a
10847 # shared library.
10848 predeps=$lt_predeps
10849
10850 # Dependencies to place after the objects being linked to create a
10851 # shared library.
10852 postdeps=$lt_postdeps
10853
10854 # The library search path used internally by the compiler when linking
10855 # a shared library.
10856 compiler_lib_search_path=$lt_compiler_lib_search_path
10857
10858 # Method to check whether dependent libraries are shared objects.
10859 deplibs_check_method=$lt_deplibs_check_method
10860
10861 # Command to use when deplibs_check_method == file_magic.
10862 file_magic_cmd=$lt_file_magic_cmd
10863
10864 # Flag that allows shared libraries with undefined symbols to be built.
10865 allow_undefined_flag=$lt_allow_undefined_flag
10866
10867 # Flag that forces no undefined symbols.
10868 no_undefined_flag=$lt_no_undefined_flag
10869
10870 # Commands used to finish a libtool library installation in a directory.
10871 finish_cmds=$lt_finish_cmds
10872
10873 # Same as above, but a single script fragment to be evaled but not shown.
10874 finish_eval=$lt_finish_eval
10875
10876 # Take the output of nm and produce a listing of raw symbols and C names.
10877 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10878
10879 # Transform the output of nm in a proper C declaration
10880 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10881
10882 # Transform the output of nm in a C name address pair
10883 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10884
10885 # This is the shared library runtime path variable.
10886 runpath_var=$runpath_var
10887
10888 # This is the shared library path variable.
10889 shlibpath_var=$shlibpath_var
10890
10891 # Is shlibpath searched before the hard-coded library search path?
10892 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10893
10894 # How to hardcode a shared library path into an executable.
10895 hardcode_action=$hardcode_action
10896
10897 # Whether we should hardcode library paths into libraries.
10898 hardcode_into_libs=$hardcode_into_libs
10899
10900 # Flag to hardcode \$libdir into a binary during linking.
10901 # This must work even if \$libdir does not exist.
10902 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10903
10904 # If ld is used when linking, flag to hardcode \$libdir into
10905 # a binary during linking. This must work even if \$libdir does
10906 # not exist.
10907 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10908
10909 # Whether we need a single -rpath flag with a separated argument.
10910 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10911
10912 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10913 # resulting binary.
10914 hardcode_direct=$hardcode_direct
10915
10916 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10917 # resulting binary.
10918 hardcode_minus_L=$hardcode_minus_L
10919
10920 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10921 # the resulting binary.
10922 hardcode_shlibpath_var=$hardcode_shlibpath_var
10923
10924 # Set to yes if building a shared library automatically hardcodes DIR into the library
10925 # and all subsequent libraries and executables linked against it.
10926 hardcode_automatic=$hardcode_automatic
10927
10928 # Variables whose values should be saved in libtool wrapper scripts and
10929 # restored at relink time.
10930 variables_saved_for_relink="$variables_saved_for_relink"
10931
10932 # Whether libtool must link a program against all its dependency libraries.
10933 link_all_deplibs=$link_all_deplibs
10934
10935 # Compile-time system search path for libraries
10936 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10937
10938 # Run-time system search path for libraries
10939 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10940
10941 # Fix the shell variable \$srcfile for the compiler.
10942 fix_srcfile_path="$fix_srcfile_path"
10943
10944 # Set to yes if exported symbols are required.
10945 always_export_symbols=$always_export_symbols
10946
10947 # The commands to list exported symbols.
10948 export_symbols_cmds=$lt_export_symbols_cmds
10949
10950 # The commands to extract the exported symbol list from a shared archive.
10951 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10952
10953 # Symbols that should not be listed in the preloaded symbols.
10954 exclude_expsyms=$lt_exclude_expsyms
10955
10956 # Symbols that must always be exported.
10957 include_expsyms=$lt_include_expsyms
10958
10959 # ### END LIBTOOL CONFIG
10960
10961 __EOF__
10962
10963
10964   case $host_os in
10965   aix3*)
10966     cat <<\EOF >> "$cfgfile"
10967
10968 # AIX sometimes has problems with the GCC collect2 program.  For some
10969 # reason, if we set the COLLECT_NAMES environment variable, the problems
10970 # vanish in a puff of smoke.
10971 if test "X${COLLECT_NAMES+set}" != Xset; then
10972   COLLECT_NAMES=
10973   export COLLECT_NAMES
10974 fi
10975 EOF
10976     ;;
10977   esac
10978
10979   # We use sed instead of cat because bash on DJGPP gets confused if
10980   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10981   # text mode, it properly converts lines to CR/LF.  This bash problem
10982   # is reportedly fixed, but why not run on old versions too?
10983   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10984
10985   mv -f "$cfgfile" "$ofile" || \
10986     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10987   chmod +x "$ofile"
10988
10989 else
10990   # If there is no Makefile yet, we rely on a make rule to execute
10991   # `config.status --recheck' to rerun these tests and create the
10992   # libtool script then.
10993   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10994   if test -f "$ltmain_in"; then
10995     test -f Makefile && make "$ltmain"
10996   fi
10997 fi
10998
10999
11000 ac_ext=c
11001 ac_cpp='$CPP $CPPFLAGS'
11002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11005
11006 CC="$lt_save_CC"
11007
11008
11009 # Check whether --with-tags or --without-tags was given.
11010 if test "${with_tags+set}" = set; then
11011   withval="$with_tags"
11012   tagnames="$withval"
11013 fi;
11014
11015 if test -f "$ltmain" && test -n "$tagnames"; then
11016   if test ! -f "${ofile}"; then
11017     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11018 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11019   fi
11020
11021   if test -z "$LTCC"; then
11022     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11023     if test -z "$LTCC"; then
11024       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11025 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11026     else
11027       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11028 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11029     fi
11030   fi
11031   if test -z "$LTCFLAGS"; then
11032     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11033   fi
11034
11035   # Extract list of available tagged configurations in $ofile.
11036   # Note that this assumes the entire list is on one line.
11037   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11038
11039   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11040   for tagname in $tagnames; do
11041     IFS="$lt_save_ifs"
11042     # Check whether tagname contains only valid characters
11043     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11044     "") ;;
11045     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11046 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11047    { (exit 1); exit 1; }; }
11048         ;;
11049     esac
11050
11051     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11052     then
11053       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11054 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11055    { (exit 1); exit 1; }; }
11056     fi
11057
11058     # Update the list of available tags.
11059     if test -n "$tagname"; then
11060       echo appending configuration tag \"$tagname\" to $ofile
11061
11062       case $tagname in
11063       CXX)
11064         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11065             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11066             (test "X$CXX" != "Xg++"))) ; then
11067           ac_ext=cc
11068 ac_cpp='$CXXCPP $CPPFLAGS'
11069 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11070 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11071 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11072
11073
11074
11075
11076 archive_cmds_need_lc_CXX=no
11077 allow_undefined_flag_CXX=
11078 always_export_symbols_CXX=no
11079 archive_expsym_cmds_CXX=
11080 export_dynamic_flag_spec_CXX=
11081 hardcode_direct_CXX=no
11082 hardcode_libdir_flag_spec_CXX=
11083 hardcode_libdir_flag_spec_ld_CXX=
11084 hardcode_libdir_separator_CXX=
11085 hardcode_minus_L_CXX=no
11086 hardcode_shlibpath_var_CXX=unsupported
11087 hardcode_automatic_CXX=no
11088 module_cmds_CXX=
11089 module_expsym_cmds_CXX=
11090 link_all_deplibs_CXX=unknown
11091 old_archive_cmds_CXX=$old_archive_cmds
11092 no_undefined_flag_CXX=
11093 whole_archive_flag_spec_CXX=
11094 enable_shared_with_static_runtimes_CXX=no
11095
11096 # Dependencies to place before and after the object being linked:
11097 predep_objects_CXX=
11098 postdep_objects_CXX=
11099 predeps_CXX=
11100 postdeps_CXX=
11101 compiler_lib_search_path_CXX=
11102
11103 # Source file extension for C++ test sources.
11104 ac_ext=cpp
11105
11106 # Object file extension for compiled C++ test sources.
11107 objext=o
11108 objext_CXX=$objext
11109
11110 # Code to be used in simple compile tests
11111 lt_simple_compile_test_code="int some_variable = 0;\n"
11112
11113 # Code to be used in simple link tests
11114 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11115
11116 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11117
11118 # If no C compiler was specified, use CC.
11119 LTCC=${LTCC-"$CC"}
11120
11121 # If no C compiler flags were specified, use CFLAGS.
11122 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11123
11124 # Allow CC to be a program name with arguments.
11125 compiler=$CC
11126
11127
11128 # save warnings/boilerplate of simple test code
11129 ac_outfile=conftest.$ac_objext
11130 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11131 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11132 _lt_compiler_boilerplate=`cat conftest.err`
11133 $rm conftest*
11134
11135 ac_outfile=conftest.$ac_objext
11136 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11137 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11138 _lt_linker_boilerplate=`cat conftest.err`
11139 $rm conftest*
11140
11141
11142 # Allow CC to be a program name with arguments.
11143 lt_save_CC=$CC
11144 lt_save_LD=$LD
11145 lt_save_GCC=$GCC
11146 GCC=$GXX
11147 lt_save_with_gnu_ld=$with_gnu_ld
11148 lt_save_path_LD=$lt_cv_path_LD
11149 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11150   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11151 else
11152   $as_unset lt_cv_prog_gnu_ld
11153 fi
11154 if test -n "${lt_cv_path_LDCXX+set}"; then
11155   lt_cv_path_LD=$lt_cv_path_LDCXX
11156 else
11157   $as_unset lt_cv_path_LD
11158 fi
11159 test -z "${LDCXX+set}" || LD=$LDCXX
11160 CC=${CXX-"c++"}
11161 compiler=$CC
11162 compiler_CXX=$CC
11163 for cc_temp in $compiler""; do
11164   case $cc_temp in
11165     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11166     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11167     \-*) ;;
11168     *) break;;
11169   esac
11170 done
11171 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11172
11173
11174 # We don't want -fno-exception wen compiling C++ code, so set the
11175 # no_builtin_flag separately
11176 if test "$GXX" = yes; then
11177   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11178 else
11179   lt_prog_compiler_no_builtin_flag_CXX=
11180 fi
11181
11182 if test "$GXX" = yes; then
11183   # Set up default GNU C++ configuration
11184
11185
11186 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11187 if test "${with_gnu_ld+set}" = set; then
11188   withval="$with_gnu_ld"
11189   test "$withval" = no || with_gnu_ld=yes
11190 else
11191   with_gnu_ld=no
11192 fi;
11193 ac_prog=ld
11194 if test "$GCC" = yes; then
11195   # Check if gcc -print-prog-name=ld gives a path.
11196   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11197 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11198   case $host in
11199   *-*-mingw*)
11200     # gcc leaves a trailing carriage return which upsets mingw
11201     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11202   *)
11203     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11204   esac
11205   case $ac_prog in
11206     # Accept absolute paths.
11207     [\\/]* | ?:[\\/]*)
11208       re_direlt='/[^/][^/]*/\.\./'
11209       # Canonicalize the pathname of ld
11210       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11211       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11212         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11213       done
11214       test -z "$LD" && LD="$ac_prog"
11215       ;;
11216   "")
11217     # If it fails, then pretend we aren't using GCC.
11218     ac_prog=ld
11219     ;;
11220   *)
11221     # If it is relative, then search for the first ld in PATH.
11222     with_gnu_ld=unknown
11223     ;;
11224   esac
11225 elif test "$with_gnu_ld" = yes; then
11226   echo "$as_me:$LINENO: checking for GNU ld" >&5
11227 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11228 else
11229   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11230 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11231 fi
11232 if test "${lt_cv_path_LD+set}" = set; then
11233   echo $ECHO_N "(cached) $ECHO_C" >&6
11234 else
11235   if test -z "$LD"; then
11236   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11237   for ac_dir in $PATH; do
11238     IFS="$lt_save_ifs"
11239     test -z "$ac_dir" && ac_dir=.
11240     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11241       lt_cv_path_LD="$ac_dir/$ac_prog"
11242       # Check to see if the program is GNU ld.  I'd rather use --version,
11243       # but apparently some variants of GNU ld only accept -v.
11244       # Break only if it was the GNU/non-GNU ld that we prefer.
11245       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11246       *GNU* | *'with BFD'*)
11247         test "$with_gnu_ld" != no && break
11248         ;;
11249       *)
11250         test "$with_gnu_ld" != yes && break
11251         ;;
11252       esac
11253     fi
11254   done
11255   IFS="$lt_save_ifs"
11256 else
11257   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11258 fi
11259 fi
11260
11261 LD="$lt_cv_path_LD"
11262 if test -n "$LD"; then
11263   echo "$as_me:$LINENO: result: $LD" >&5
11264 echo "${ECHO_T}$LD" >&6
11265 else
11266   echo "$as_me:$LINENO: result: no" >&5
11267 echo "${ECHO_T}no" >&6
11268 fi
11269 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11270 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11271    { (exit 1); exit 1; }; }
11272 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11273 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11274 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11275   echo $ECHO_N "(cached) $ECHO_C" >&6
11276 else
11277   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11278 case `$LD -v 2>&1 </dev/null` in
11279 *GNU* | *'with BFD'*)
11280   lt_cv_prog_gnu_ld=yes
11281   ;;
11282 *)
11283   lt_cv_prog_gnu_ld=no
11284   ;;
11285 esac
11286 fi
11287 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11288 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11289 with_gnu_ld=$lt_cv_prog_gnu_ld
11290
11291
11292
11293   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11294   # archiving commands below assume that GNU ld is being used.
11295   if test "$with_gnu_ld" = yes; then
11296     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11297     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'
11298
11299     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11300     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11301
11302     # If archive_cmds runs LD, not CC, wlarc should be empty
11303     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11304     #     investigate it a little bit more. (MM)
11305     wlarc='${wl}'
11306
11307     # ancient GNU ld didn't support --whole-archive et. al.
11308     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11309         grep 'no-whole-archive' > /dev/null; then
11310       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11311     else
11312       whole_archive_flag_spec_CXX=
11313     fi
11314   else
11315     with_gnu_ld=no
11316     wlarc=
11317
11318     # A generic and very simple default shared library creation
11319     # command for GNU C++ for the case where it uses the native
11320     # linker, instead of GNU ld.  If possible, this setting should
11321     # overridden to take advantage of the native linker features on
11322     # the platform it is being used on.
11323     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11324   fi
11325
11326   # Commands to make compiler produce verbose output that lists
11327   # what "hidden" libraries, object files and flags are used when
11328   # linking a shared library.
11329   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11330
11331 else
11332   GXX=no
11333   with_gnu_ld=no
11334   wlarc=
11335 fi
11336
11337 # PORTME: fill in a description of your system's C++ link characteristics
11338 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11339 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11340 ld_shlibs_CXX=yes
11341 case $host_os in
11342   aix3*)
11343     # FIXME: insert proper C++ library support
11344     ld_shlibs_CXX=no
11345     ;;
11346   aix4* | aix5*)
11347     if test "$host_cpu" = ia64; then
11348       # On IA64, the linker does run time linking by default, so we don't
11349       # have to do anything special.
11350       aix_use_runtimelinking=no
11351       exp_sym_flag='-Bexport'
11352       no_entry_flag=""
11353     else
11354       aix_use_runtimelinking=no
11355
11356       # Test if we are trying to use run time linking or normal
11357       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11358       # need to do runtime linking.
11359       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11360         for ld_flag in $LDFLAGS; do
11361           case $ld_flag in
11362           *-brtl*)
11363             aix_use_runtimelinking=yes
11364             break
11365             ;;
11366           esac
11367         done
11368         ;;
11369       esac
11370
11371       exp_sym_flag='-bexport'
11372       no_entry_flag='-bnoentry'
11373     fi
11374
11375     # When large executables or shared objects are built, AIX ld can
11376     # have problems creating the table of contents.  If linking a library
11377     # or program results in "error TOC overflow" add -mminimal-toc to
11378     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11379     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11380
11381     archive_cmds_CXX=''
11382     hardcode_direct_CXX=yes
11383     hardcode_libdir_separator_CXX=':'
11384     link_all_deplibs_CXX=yes
11385
11386     if test "$GXX" = yes; then
11387       case $host_os in aix4.[012]|aix4.[012].*)
11388       # We only want to do this on AIX 4.2 and lower, the check
11389       # below for broken collect2 doesn't work under 4.3+
11390         collect2name=`${CC} -print-prog-name=collect2`
11391         if test -f "$collect2name" && \
11392            strings "$collect2name" | grep resolve_lib_name >/dev/null
11393         then
11394           # We have reworked collect2
11395           hardcode_direct_CXX=yes
11396         else
11397           # We have old collect2
11398           hardcode_direct_CXX=unsupported
11399           # It fails to find uninstalled libraries when the uninstalled
11400           # path is not listed in the libpath.  Setting hardcode_minus_L
11401           # to unsupported forces relinking
11402           hardcode_minus_L_CXX=yes
11403           hardcode_libdir_flag_spec_CXX='-L$libdir'
11404           hardcode_libdir_separator_CXX=
11405         fi
11406         ;;
11407       esac
11408       shared_flag='-shared'
11409       if test "$aix_use_runtimelinking" = yes; then
11410         shared_flag="$shared_flag "'${wl}-G'
11411       fi
11412     else
11413       # not using gcc
11414       if test "$host_cpu" = ia64; then
11415         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11416         # chokes on -Wl,-G. The following line is correct:
11417         shared_flag='-G'
11418       else
11419         if test "$aix_use_runtimelinking" = yes; then
11420           shared_flag='${wl}-G'
11421         else
11422           shared_flag='${wl}-bM:SRE'
11423         fi
11424       fi
11425     fi
11426
11427     # It seems that -bexpall does not export symbols beginning with
11428     # underscore (_), so it is better to generate a list of symbols to export.
11429     always_export_symbols_CXX=yes
11430     if test "$aix_use_runtimelinking" = yes; then
11431       # Warning - without using the other runtime loading flags (-brtl),
11432       # -berok will link without error, but may produce a broken library.
11433       allow_undefined_flag_CXX='-berok'
11434       # Determine the default libpath from the value encoded in an empty executable.
11435       cat >conftest.$ac_ext <<_ACEOF
11436 /* confdefs.h.  */
11437 _ACEOF
11438 cat confdefs.h >>conftest.$ac_ext
11439 cat >>conftest.$ac_ext <<_ACEOF
11440 /* end confdefs.h.  */
11441
11442 int
11443 main ()
11444 {
11445
11446   ;
11447   return 0;
11448 }
11449 _ACEOF
11450 rm -f conftest.$ac_objext conftest$ac_exeext
11451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11452   (eval $ac_link) 2>conftest.er1
11453   ac_status=$?
11454   grep -v '^ *+' conftest.er1 >conftest.err
11455   rm -f conftest.er1
11456   cat conftest.err >&5
11457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458   (exit $ac_status); } &&
11459          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
11460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11461   (eval $ac_try) 2>&5
11462   ac_status=$?
11463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464   (exit $ac_status); }; } &&
11465          { ac_try='test -s conftest$ac_exeext'
11466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11467   (eval $ac_try) 2>&5
11468   ac_status=$?
11469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470   (exit $ac_status); }; }; then
11471
11472 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11473 }'`
11474 # Check for a 64-bit object if we didn't find anything.
11475 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; }
11476 }'`; fi
11477 else
11478   echo "$as_me: failed program was:" >&5
11479 sed 's/^/| /' conftest.$ac_ext >&5
11480
11481 fi
11482 rm -f conftest.err conftest.$ac_objext \
11483       conftest$ac_exeext conftest.$ac_ext
11484 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11485
11486       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11487
11488       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11489      else
11490       if test "$host_cpu" = ia64; then
11491         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11492         allow_undefined_flag_CXX="-z nodefs"
11493         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11494       else
11495         # Determine the default libpath from the value encoded in an empty executable.
11496         cat >conftest.$ac_ext <<_ACEOF
11497 /* confdefs.h.  */
11498 _ACEOF
11499 cat confdefs.h >>conftest.$ac_ext
11500 cat >>conftest.$ac_ext <<_ACEOF
11501 /* end confdefs.h.  */
11502
11503 int
11504 main ()
11505 {
11506
11507   ;
11508   return 0;
11509 }
11510 _ACEOF
11511 rm -f conftest.$ac_objext conftest$ac_exeext
11512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11513   (eval $ac_link) 2>conftest.er1
11514   ac_status=$?
11515   grep -v '^ *+' conftest.er1 >conftest.err
11516   rm -f conftest.er1
11517   cat conftest.err >&5
11518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519   (exit $ac_status); } &&
11520          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
11521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11522   (eval $ac_try) 2>&5
11523   ac_status=$?
11524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525   (exit $ac_status); }; } &&
11526          { ac_try='test -s conftest$ac_exeext'
11527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11528   (eval $ac_try) 2>&5
11529   ac_status=$?
11530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531   (exit $ac_status); }; }; then
11532
11533 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11534 }'`
11535 # Check for a 64-bit object if we didn't find anything.
11536 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; }
11537 }'`; fi
11538 else
11539   echo "$as_me: failed program was:" >&5
11540 sed 's/^/| /' conftest.$ac_ext >&5
11541
11542 fi
11543 rm -f conftest.err conftest.$ac_objext \
11544       conftest$ac_exeext conftest.$ac_ext
11545 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11546
11547         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11548         # Warning - without using the other run time loading flags,
11549         # -berok will link without error, but may produce a broken library.
11550         no_undefined_flag_CXX=' ${wl}-bernotok'
11551         allow_undefined_flag_CXX=' ${wl}-berok'
11552         # Exported symbols can be pulled into shared objects from archives
11553         whole_archive_flag_spec_CXX='$convenience'
11554         archive_cmds_need_lc_CXX=yes
11555         # This is similar to how AIX traditionally builds its shared libraries.
11556         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11557       fi
11558     fi
11559     ;;
11560
11561   beos*)
11562     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11563       allow_undefined_flag_CXX=unsupported
11564       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11565       # support --undefined.  This deserves some investigation.  FIXME
11566       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11567     else
11568       ld_shlibs_CXX=no
11569     fi
11570     ;;
11571
11572   chorus*)
11573     case $cc_basename in
11574       *)
11575         # FIXME: insert proper C++ library support
11576         ld_shlibs_CXX=no
11577         ;;
11578     esac
11579     ;;
11580
11581   cygwin* | mingw* | pw32*)
11582     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11583     # as there is no search path for DLLs.
11584     hardcode_libdir_flag_spec_CXX='-L$libdir'
11585     allow_undefined_flag_CXX=unsupported
11586     always_export_symbols_CXX=no
11587     enable_shared_with_static_runtimes_CXX=yes
11588
11589     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11590       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11591       # If the export-symbols file already is a .def file (1st line
11592       # is EXPORTS), use it as is; otherwise, prepend...
11593       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11594         cp $export_symbols $output_objdir/$soname.def;
11595       else
11596         echo EXPORTS > $output_objdir/$soname.def;
11597         cat $export_symbols >> $output_objdir/$soname.def;
11598       fi~
11599       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11600     else
11601       ld_shlibs_CXX=no
11602     fi
11603   ;;
11604       darwin* | rhapsody*)
11605         case $host_os in
11606         rhapsody* | darwin1.[012])
11607          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11608          ;;
11609        *) # Darwin 1.3 on
11610          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11611            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11612          else
11613            case ${MACOSX_DEPLOYMENT_TARGET} in
11614              10.[012])
11615                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11616                ;;
11617              10.*)
11618                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11619                ;;
11620            esac
11621          fi
11622          ;;
11623         esac
11624       archive_cmds_need_lc_CXX=no
11625       hardcode_direct_CXX=no
11626       hardcode_automatic_CXX=yes
11627       hardcode_shlibpath_var_CXX=unsupported
11628       whole_archive_flag_spec_CXX=''
11629       link_all_deplibs_CXX=yes
11630
11631     if test "$GXX" = yes ; then
11632       lt_int_apple_cc_single_mod=no
11633       output_verbose_link_cmd='echo'
11634       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11635        lt_int_apple_cc_single_mod=yes
11636       fi
11637       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11638        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11639       else
11640           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'
11641         fi
11642         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11643         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11644           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11645             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}'
11646           else
11647             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}'
11648           fi
11649             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}'
11650       else
11651       case $cc_basename in
11652         xlc*)
11653          output_verbose_link_cmd='echo'
11654           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'
11655           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11656           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11657           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}'
11658           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}'
11659           ;;
11660        *)
11661          ld_shlibs_CXX=no
11662           ;;
11663       esac
11664       fi
11665         ;;
11666
11667   dgux*)
11668     case $cc_basename in
11669       ec++*)
11670         # FIXME: insert proper C++ library support
11671         ld_shlibs_CXX=no
11672         ;;
11673       ghcx*)
11674         # Green Hills C++ Compiler
11675         # FIXME: insert proper C++ library support
11676         ld_shlibs_CXX=no
11677         ;;
11678       *)
11679         # FIXME: insert proper C++ library support
11680         ld_shlibs_CXX=no
11681         ;;
11682     esac
11683     ;;
11684   freebsd[12]*)
11685     # C++ shared libraries reported to be fairly broken before switch to ELF
11686     ld_shlibs_CXX=no
11687     ;;
11688   freebsd-elf*)
11689     archive_cmds_need_lc_CXX=no
11690     ;;
11691   freebsd* | dragonfly*)
11692     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11693     # conventions
11694     ld_shlibs_CXX=yes
11695     ;;
11696   gnu*)
11697     ;;
11698   hpux9*)
11699     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11700     hardcode_libdir_separator_CXX=:
11701     export_dynamic_flag_spec_CXX='${wl}-E'
11702     hardcode_direct_CXX=yes
11703     hardcode_minus_L_CXX=yes # Not in the search PATH,
11704                                 # but as the default
11705                                 # location of the library.
11706
11707     case $cc_basename in
11708     CC*)
11709       # FIXME: insert proper C++ library support
11710       ld_shlibs_CXX=no
11711       ;;
11712     aCC*)
11713       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'
11714       # Commands to make compiler produce verbose output that lists
11715       # what "hidden" libraries, object files and flags are used when
11716       # linking a shared library.
11717       #
11718       # There doesn't appear to be a way to prevent this compiler from
11719       # explicitly linking system object files so we need to strip them
11720       # from the output so that they don't get included in the library
11721       # dependencies.
11722       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'
11723       ;;
11724     *)
11725       if test "$GXX" = yes; then
11726         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'
11727       else
11728         # FIXME: insert proper C++ library support
11729         ld_shlibs_CXX=no
11730       fi
11731       ;;
11732     esac
11733     ;;
11734   hpux10*|hpux11*)
11735     if test $with_gnu_ld = no; then
11736       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11737       hardcode_libdir_separator_CXX=:
11738
11739       case $host_cpu in
11740       hppa*64*|ia64*)
11741         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11742         ;;
11743       *)
11744         export_dynamic_flag_spec_CXX='${wl}-E'
11745         ;;
11746       esac
11747     fi
11748     case $host_cpu in
11749     hppa*64*|ia64*)
11750       hardcode_direct_CXX=no
11751       hardcode_shlibpath_var_CXX=no
11752       ;;
11753     *)
11754       hardcode_direct_CXX=yes
11755       hardcode_minus_L_CXX=yes # Not in the search PATH,
11756                                               # but as the default
11757                                               # location of the library.
11758       ;;
11759     esac
11760
11761     case $cc_basename in
11762       CC*)
11763         # FIXME: insert proper C++ library support
11764         ld_shlibs_CXX=no
11765         ;;
11766       aCC*)
11767         case $host_cpu in
11768         hppa*64*)
11769           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11770           ;;
11771         ia64*)
11772           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11773           ;;
11774         *)
11775           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11776           ;;
11777         esac
11778         # Commands to make compiler produce verbose output that lists
11779         # what "hidden" libraries, object files and flags are used when
11780         # linking a shared library.
11781         #
11782         # There doesn't appear to be a way to prevent this compiler from
11783         # explicitly linking system object files so we need to strip them
11784         # from the output so that they don't get included in the library
11785         # dependencies.
11786         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'
11787         ;;
11788       *)
11789         if test "$GXX" = yes; then
11790           if test $with_gnu_ld = no; then
11791             case $host_cpu in
11792             hppa*64*)
11793               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11794               ;;
11795             ia64*)
11796               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11797               ;;
11798             *)
11799               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'
11800               ;;
11801             esac
11802           fi
11803         else
11804           # FIXME: insert proper C++ library support
11805           ld_shlibs_CXX=no
11806         fi
11807         ;;
11808     esac
11809     ;;
11810   interix3*)
11811     hardcode_direct_CXX=no
11812     hardcode_shlibpath_var_CXX=no
11813     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11814     export_dynamic_flag_spec_CXX='${wl}-E'
11815     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11816     # Instead, shared libraries are loaded at an image base (0x10000000 by
11817     # default) and relocated if they conflict, which is a slow very memory
11818     # consuming and fragmenting process.  To avoid this, we pick a random,
11819     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11820     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11821     archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11822     archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11823     ;;
11824   irix5* | irix6*)
11825     case $cc_basename in
11826       CC*)
11827         # SGI C++
11828         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'
11829
11830         # Archives containing C++ object files must be created using
11831         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11832         # necessary to make sure instantiated templates are included
11833         # in the archive.
11834         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11835         ;;
11836       *)
11837         if test "$GXX" = yes; then
11838           if test "$with_gnu_ld" = no; then
11839             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'
11840           else
11841             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'
11842           fi
11843         fi
11844         link_all_deplibs_CXX=yes
11845         ;;
11846     esac
11847     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11848     hardcode_libdir_separator_CXX=:
11849     ;;
11850   linux* | k*bsd*-gnu)
11851     case $cc_basename in
11852       KCC*)
11853         # Kuck and Associates, Inc. (KAI) C++ Compiler
11854
11855         # KCC will only create a shared library if the output file
11856         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11857         # to its proper name (with version) after linking.
11858         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'
11859         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'
11860         # Commands to make compiler produce verbose output that lists
11861         # what "hidden" libraries, object files and flags are used when
11862         # linking a shared library.
11863         #
11864         # There doesn't appear to be a way to prevent this compiler from
11865         # explicitly linking system object files so we need to strip them
11866         # from the output so that they don't get included in the library
11867         # dependencies.
11868         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'
11869
11870         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11871         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11872
11873         # Archives containing C++ object files must be created using
11874         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11875         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11876         ;;
11877       icpc*)
11878         # Intel C++
11879         with_gnu_ld=yes
11880         # version 8.0 and above of icpc choke on multiply defined symbols
11881         # if we add $predep_objects and $postdep_objects, however 7.1 and
11882         # earlier do not add the objects themselves.
11883         case `$CC -V 2>&1` in
11884         *"Version 7."*)
11885           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11886           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'
11887           ;;
11888         *)  # Version 8.0 or newer
11889           tmp_idyn=
11890           case $host_cpu in
11891             ia64*) tmp_idyn=' -i_dynamic';;
11892           esac
11893           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11894           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'
11895           ;;
11896         esac
11897         archive_cmds_need_lc_CXX=no
11898         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11899         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11900         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11901         ;;
11902       pgCC*)
11903         # Portland Group C++ compiler
11904         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11905         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'
11906
11907         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11908         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11909         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'
11910         ;;
11911       cxx*)
11912         # Compaq C++
11913         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11914         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'
11915
11916         runpath_var=LD_RUN_PATH
11917         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11918         hardcode_libdir_separator_CXX=:
11919
11920         # Commands to make compiler produce verbose output that lists
11921         # what "hidden" libraries, object files and flags are used when
11922         # linking a shared library.
11923         #
11924         # There doesn't appear to be a way to prevent this compiler from
11925         # explicitly linking system object files so we need to strip them
11926         # from the output so that they don't get included in the library
11927         # dependencies.
11928         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'
11929         ;;
11930     esac
11931     ;;
11932   lynxos*)
11933     # FIXME: insert proper C++ library support
11934     ld_shlibs_CXX=no
11935     ;;
11936   m88k*)
11937     # FIXME: insert proper C++ library support
11938     ld_shlibs_CXX=no
11939     ;;
11940   mvs*)
11941     case $cc_basename in
11942       cxx*)
11943         # FIXME: insert proper C++ library support
11944         ld_shlibs_CXX=no
11945         ;;
11946       *)
11947         # FIXME: insert proper C++ library support
11948         ld_shlibs_CXX=no
11949         ;;
11950     esac
11951     ;;
11952   netbsd* | netbsdelf*-gnu)
11953     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11954       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11955       wlarc=
11956       hardcode_libdir_flag_spec_CXX='-R$libdir'
11957       hardcode_direct_CXX=yes
11958       hardcode_shlibpath_var_CXX=no
11959     fi
11960     # Workaround some broken pre-1.5 toolchains
11961     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11962     ;;
11963   openbsd2*)
11964     # C++ shared libraries are fairly broken
11965     ld_shlibs_CXX=no
11966     ;;
11967   openbsd*)
11968     hardcode_direct_CXX=yes
11969     hardcode_shlibpath_var_CXX=no
11970     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11971     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11972     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11973       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11974       export_dynamic_flag_spec_CXX='${wl}-E'
11975       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11976     fi
11977     output_verbose_link_cmd='echo'
11978     ;;
11979   osf3*)
11980     case $cc_basename in
11981       KCC*)
11982         # Kuck and Associates, Inc. (KAI) C++ Compiler
11983
11984         # KCC will only create a shared library if the output file
11985         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11986         # to its proper name (with version) after linking.
11987         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'
11988
11989         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11990         hardcode_libdir_separator_CXX=:
11991
11992         # Archives containing C++ object files must be created using
11993         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11994         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11995
11996         ;;
11997       RCC*)
11998         # Rational C++ 2.4.1
11999         # FIXME: insert proper C++ library support
12000         ld_shlibs_CXX=no
12001         ;;
12002       cxx*)
12003         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12004         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'
12005
12006         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12007         hardcode_libdir_separator_CXX=:
12008
12009         # Commands to make compiler produce verbose output that lists
12010         # what "hidden" libraries, object files and flags are used when
12011         # linking a shared library.
12012         #
12013         # There doesn't appear to be a way to prevent this compiler from
12014         # explicitly linking system object files so we need to strip them
12015         # from the output so that they don't get included in the library
12016         # dependencies.
12017         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'
12018         ;;
12019       *)
12020         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12021           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12022           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'
12023
12024           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12025           hardcode_libdir_separator_CXX=:
12026
12027           # Commands to make compiler produce verbose output that lists
12028           # what "hidden" libraries, object files and flags are used when
12029           # linking a shared library.
12030           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12031
12032         else
12033           # FIXME: insert proper C++ library support
12034           ld_shlibs_CXX=no
12035         fi
12036         ;;
12037     esac
12038     ;;
12039   osf4* | osf5*)
12040     case $cc_basename in
12041       KCC*)
12042         # Kuck and Associates, Inc. (KAI) C++ Compiler
12043
12044         # KCC will only create a shared library if the output file
12045         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12046         # to its proper name (with version) after linking.
12047         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'
12048
12049         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12050         hardcode_libdir_separator_CXX=:
12051
12052         # Archives containing C++ object files must be created using
12053         # the KAI C++ compiler.
12054         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12055         ;;
12056       RCC*)
12057         # Rational C++ 2.4.1
12058         # FIXME: insert proper C++ library support
12059         ld_shlibs_CXX=no
12060         ;;
12061       cxx*)
12062         allow_undefined_flag_CXX=' -expect_unresolved \*'
12063         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'
12064         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12065           echo "-hidden">> $lib.exp~
12066           $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~
12067           $rm $lib.exp'
12068
12069         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12070         hardcode_libdir_separator_CXX=:
12071
12072         # Commands to make compiler produce verbose output that lists
12073         # what "hidden" libraries, object files and flags are used when
12074         # linking a shared library.
12075         #
12076         # There doesn't appear to be a way to prevent this compiler from
12077         # explicitly linking system object files so we need to strip them
12078         # from the output so that they don't get included in the library
12079         # dependencies.
12080         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'
12081         ;;
12082       *)
12083         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12084           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12085          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'
12086
12087           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12088           hardcode_libdir_separator_CXX=:
12089
12090           # Commands to make compiler produce verbose output that lists
12091           # what "hidden" libraries, object files and flags are used when
12092           # linking a shared library.
12093           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12094
12095         else
12096           # FIXME: insert proper C++ library support
12097           ld_shlibs_CXX=no
12098         fi
12099         ;;
12100     esac
12101     ;;
12102   psos*)
12103     # FIXME: insert proper C++ library support
12104     ld_shlibs_CXX=no
12105     ;;
12106   sunos4*)
12107     case $cc_basename in
12108       CC*)
12109         # Sun C++ 4.x
12110         # FIXME: insert proper C++ library support
12111         ld_shlibs_CXX=no
12112         ;;
12113       lcc*)
12114         # Lucid
12115         # FIXME: insert proper C++ library support
12116         ld_shlibs_CXX=no
12117         ;;
12118       *)
12119         # FIXME: insert proper C++ library support
12120         ld_shlibs_CXX=no
12121         ;;
12122     esac
12123     ;;
12124   solaris*)
12125     case $cc_basename in
12126       CC*)
12127         # Sun C++ 4.2, 5.x and Centerline C++
12128         archive_cmds_need_lc_CXX=yes
12129         no_undefined_flag_CXX=' -zdefs'
12130         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12131         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12132         $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'
12133
12134         hardcode_libdir_flag_spec_CXX='-R$libdir'
12135         hardcode_shlibpath_var_CXX=no
12136         case $host_os in
12137           solaris2.[0-5] | solaris2.[0-5].*) ;;
12138           *)
12139             # The C++ compiler is used as linker so we must use $wl
12140             # flag to pass the commands to the underlying system
12141             # linker. We must also pass each convience library through
12142             # to the system linker between allextract/defaultextract.
12143             # The C++ compiler will combine linker options so we
12144             # cannot just pass the convience library names through
12145             # without $wl.
12146             # Supported since Solaris 2.6 (maybe 2.5.1?)
12147             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'
12148             ;;
12149         esac
12150         link_all_deplibs_CXX=yes
12151
12152         output_verbose_link_cmd='echo'
12153
12154         # Archives containing C++ object files must be created using
12155         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12156         # necessary to make sure instantiated templates are included
12157         # in the archive.
12158         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12159         ;;
12160       gcx*)
12161         # Green Hills C++ Compiler
12162         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12163
12164         # The C++ compiler must be used to create the archive.
12165         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12166         ;;
12167       *)
12168         # GNU C++ compiler with Solaris linker
12169         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12170           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12171           if $CC --version | grep -v '^2\.7' > /dev/null; then
12172             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12173             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12174                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12175
12176             # Commands to make compiler produce verbose output that lists
12177             # what "hidden" libraries, object files and flags are used when
12178             # linking a shared library.
12179             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12180           else
12181             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12182             # platform.
12183             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12184             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12185                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12186
12187             # Commands to make compiler produce verbose output that lists
12188             # what "hidden" libraries, object files and flags are used when
12189             # linking a shared library.
12190             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12191           fi
12192
12193           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12194         fi
12195         ;;
12196     esac
12197     ;;
12198   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12199     no_undefined_flag_CXX='${wl}-z,text'
12200     archive_cmds_need_lc_CXX=no
12201     hardcode_shlibpath_var_CXX=no
12202     runpath_var='LD_RUN_PATH'
12203
12204     case $cc_basename in
12205       CC*)
12206         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12207         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12208         ;;
12209       *)
12210         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12211         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12212         ;;
12213     esac
12214     ;;
12215   sysv5* | sco3.2v5* | sco5v6*)
12216     # Note: We can NOT use -z defs as we might desire, because we do not
12217     # link with -lc, and that would cause any symbols used from libc to
12218     # always be unresolved, which means just about no library would
12219     # ever link correctly.  If we're not using GNU ld we use -z text
12220     # though, which does catch some bad symbols but isn't as heavy-handed
12221     # as -z defs.
12222     # For security reasons, it is highly recommended that you always
12223     # use absolute paths for naming shared libraries, and exclude the
12224     # DT_RUNPATH tag from executables and libraries.  But doing so
12225     # requires that you compile everything twice, which is a pain.
12226     # So that behaviour is only enabled if SCOABSPATH is set to a
12227     # non-empty value in the environment.  Most likely only useful for
12228     # creating official distributions of packages.
12229     # This is a hack until libtool officially supports absolute path
12230     # names for shared libraries.
12231     no_undefined_flag_CXX='${wl}-z,text'
12232     allow_undefined_flag_CXX='${wl}-z,nodefs'
12233     archive_cmds_need_lc_CXX=no
12234     hardcode_shlibpath_var_CXX=no
12235     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12236     hardcode_libdir_separator_CXX=':'
12237     link_all_deplibs_CXX=yes
12238     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12239     runpath_var='LD_RUN_PATH'
12240
12241     case $cc_basename in
12242       CC*)
12243         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12244         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12245         ;;
12246       *)
12247         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12248         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12249         ;;
12250     esac
12251     ;;
12252   tandem*)
12253     case $cc_basename in
12254       NCC*)
12255         # NonStop-UX NCC 3.20
12256         # FIXME: insert proper C++ library support
12257         ld_shlibs_CXX=no
12258         ;;
12259       *)
12260         # FIXME: insert proper C++ library support
12261         ld_shlibs_CXX=no
12262         ;;
12263     esac
12264     ;;
12265   vxworks*)
12266     # FIXME: insert proper C++ library support
12267     ld_shlibs_CXX=no
12268     ;;
12269   *)
12270     # FIXME: insert proper C++ library support
12271     ld_shlibs_CXX=no
12272     ;;
12273 esac
12274 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12275 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12276 test "$ld_shlibs_CXX" = no && can_build_shared=no
12277
12278 GCC_CXX="$GXX"
12279 LD_CXX="$LD"
12280
12281
12282 cat > conftest.$ac_ext <<EOF
12283 class Foo
12284 {
12285 public:
12286   Foo (void) { a = 0; }
12287 private:
12288   int a;
12289 };
12290 EOF
12291
12292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12293   (eval $ac_compile) 2>&5
12294   ac_status=$?
12295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296   (exit $ac_status); }; then
12297   # Parse the compiler output and extract the necessary
12298   # objects, libraries and library flags.
12299
12300   # Sentinel used to keep track of whether or not we are before
12301   # the conftest object file.
12302   pre_test_object_deps_done=no
12303
12304   # The `*' in the case matches for architectures that use `case' in
12305   # $output_verbose_cmd can trigger glob expansion during the loop
12306   # eval without this substitution.
12307   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12308
12309   for p in `eval $output_verbose_link_cmd`; do
12310     case $p in
12311
12312     -L* | -R* | -l*)
12313        # Some compilers place space between "-{L,R}" and the path.
12314        # Remove the space.
12315        if test $p = "-L" \
12316           || test $p = "-R"; then
12317          prev=$p
12318          continue
12319        else
12320          prev=
12321        fi
12322
12323        if test "$pre_test_object_deps_done" = no; then
12324          case $p in
12325          -L* | -R*)
12326            # Internal compiler library paths should come after those
12327            # provided the user.  The postdeps already come after the
12328            # user supplied libs so there is no need to process them.
12329            if test -z "$compiler_lib_search_path_CXX"; then
12330              compiler_lib_search_path_CXX="${prev}${p}"
12331            else
12332              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12333            fi
12334            ;;
12335          # The "-l" case would never come before the object being
12336          # linked, so don't bother handling this case.
12337          esac
12338        else
12339          if test -z "$postdeps_CXX"; then
12340            postdeps_CXX="${prev}${p}"
12341          else
12342            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12343          fi
12344        fi
12345        ;;
12346
12347     *.$objext)
12348        # This assumes that the test object file only shows up
12349        # once in the compiler output.
12350        if test "$p" = "conftest.$objext"; then
12351          pre_test_object_deps_done=yes
12352          continue
12353        fi
12354
12355        if test "$pre_test_object_deps_done" = no; then
12356          if test -z "$predep_objects_CXX"; then
12357            predep_objects_CXX="$p"
12358          else
12359            predep_objects_CXX="$predep_objects_CXX $p"
12360          fi
12361        else
12362          if test -z "$postdep_objects_CXX"; then
12363            postdep_objects_CXX="$p"
12364          else
12365            postdep_objects_CXX="$postdep_objects_CXX $p"
12366          fi
12367        fi
12368        ;;
12369
12370     *) ;; # Ignore the rest.
12371
12372     esac
12373   done
12374
12375   # Clean up.
12376   rm -f a.out a.exe
12377 else
12378   echo "libtool.m4: error: problem compiling CXX test program"
12379 fi
12380
12381 $rm -f confest.$objext
12382
12383 # PORTME: override above test on systems where it is broken
12384 case $host_os in
12385 interix3*)
12386   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12387   # hack all around it, let's just trust "g++" to DTRT.
12388   predep_objects_CXX=
12389   postdep_objects_CXX=
12390   postdeps_CXX=
12391   ;;
12392
12393 solaris*)
12394   case $cc_basename in
12395   CC*)
12396     # Adding this requires a known-good setup of shared libraries for
12397     # Sun compiler versions before 5.6, else PIC objects from an old
12398     # archive will be linked into the output, leading to subtle bugs.
12399     postdeps_CXX='-lCstd -lCrun'
12400     ;;
12401   esac
12402   ;;
12403 esac
12404
12405
12406 case " $postdeps_CXX " in
12407 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12408 esac
12409
12410 lt_prog_compiler_wl_CXX=
12411 lt_prog_compiler_pic_CXX=
12412 lt_prog_compiler_static_CXX=
12413
12414 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12415 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12416
12417   # C++ specific cases for pic, static, wl, etc.
12418   if test "$GXX" = yes; then
12419     lt_prog_compiler_wl_CXX='-Wl,'
12420     lt_prog_compiler_static_CXX='-static'
12421
12422     case $host_os in
12423     aix*)
12424       # All AIX code is PIC.
12425       if test "$host_cpu" = ia64; then
12426         # AIX 5 now supports IA64 processor
12427         lt_prog_compiler_static_CXX='-Bstatic'
12428       fi
12429       ;;
12430     amigaos*)
12431       # FIXME: we need at least 68020 code to build shared libraries, but
12432       # adding the `-m68020' flag to GCC prevents building anything better,
12433       # like `-m68040'.
12434       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12435       ;;
12436     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12437       # PIC is the default for these OSes.
12438       ;;
12439     mingw* | os2* | pw32*)
12440       # This hack is so that the source file can tell whether it is being
12441       # built for inclusion in a dll (and should export symbols for example).
12442       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12443       ;;
12444     darwin* | rhapsody*)
12445       # PIC is the default on this platform
12446       # Common symbols not allowed in MH_DYLIB files
12447       lt_prog_compiler_pic_CXX='-fno-common'
12448       ;;
12449     *djgpp*)
12450       # DJGPP does not support shared libraries at all
12451       lt_prog_compiler_pic_CXX=
12452       ;;
12453     interix3*)
12454       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12455       # Instead, we relocate shared libraries at runtime.
12456       ;;
12457     sysv4*MP*)
12458       if test -d /usr/nec; then
12459         lt_prog_compiler_pic_CXX=-Kconform_pic
12460       fi
12461       ;;
12462     hpux*)
12463       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12464       # not for PA HP-UX.
12465       case $host_cpu in
12466       hppa*64*|ia64*)
12467         ;;
12468       *)
12469         lt_prog_compiler_pic_CXX='-fPIC'
12470         ;;
12471       esac
12472       ;;
12473     *)
12474       lt_prog_compiler_pic_CXX='-fPIC'
12475       ;;
12476     esac
12477   else
12478     case $host_os in
12479       aix4* | aix5*)
12480         # All AIX code is PIC.
12481         if test "$host_cpu" = ia64; then
12482           # AIX 5 now supports IA64 processor
12483           lt_prog_compiler_static_CXX='-Bstatic'
12484         else
12485           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12486         fi
12487         ;;
12488       chorus*)
12489         case $cc_basename in
12490         cxch68*)
12491           # Green Hills C++ Compiler
12492           # _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"
12493           ;;
12494         esac
12495         ;;
12496        darwin*)
12497          # PIC is the default on this platform
12498          # Common symbols not allowed in MH_DYLIB files
12499          case $cc_basename in
12500            xlc*)
12501            lt_prog_compiler_pic_CXX='-qnocommon'
12502            lt_prog_compiler_wl_CXX='-Wl,'
12503            ;;
12504          esac
12505        ;;
12506       dgux*)
12507         case $cc_basename in
12508           ec++*)
12509             lt_prog_compiler_pic_CXX='-KPIC'
12510             ;;
12511           ghcx*)
12512             # Green Hills C++ Compiler
12513             lt_prog_compiler_pic_CXX='-pic'
12514             ;;
12515           *)
12516             ;;
12517         esac
12518         ;;
12519       freebsd* | dragonfly*)
12520         # FreeBSD uses GNU C++
12521         ;;
12522       hpux9* | hpux10* | hpux11*)
12523         case $cc_basename in
12524           CC*)
12525             lt_prog_compiler_wl_CXX='-Wl,'
12526             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12527             if test "$host_cpu" != ia64; then
12528               lt_prog_compiler_pic_CXX='+Z'
12529             fi
12530             ;;
12531           aCC*)
12532             lt_prog_compiler_wl_CXX='-Wl,'
12533             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12534             case $host_cpu in
12535             hppa*64*|ia64*)
12536               # +Z the default
12537               ;;
12538             *)
12539               lt_prog_compiler_pic_CXX='+Z'
12540               ;;
12541             esac
12542             ;;
12543           *)
12544             ;;
12545         esac
12546         ;;
12547       interix*)
12548         # This is c89, which is MS Visual C++ (no shared libs)
12549         # Anyone wants to do a port?
12550         ;;
12551       irix5* | irix6* | nonstopux*)
12552         case $cc_basename in
12553           CC*)
12554             lt_prog_compiler_wl_CXX='-Wl,'
12555             lt_prog_compiler_static_CXX='-non_shared'
12556             # CC pic flag -KPIC is the default.
12557             ;;
12558           *)
12559             ;;
12560         esac
12561         ;;
12562       linux* | k*bsd*-gnu)
12563         case $cc_basename in
12564           KCC*)
12565             # KAI C++ Compiler
12566             lt_prog_compiler_wl_CXX='--backend -Wl,'
12567             lt_prog_compiler_pic_CXX='-fPIC'
12568             ;;
12569           icpc* | ecpc*)
12570             # Intel C++
12571             lt_prog_compiler_wl_CXX='-Wl,'
12572             lt_prog_compiler_pic_CXX='-KPIC'
12573             lt_prog_compiler_static_CXX='-static'
12574             ;;
12575           pgCC*)
12576             # Portland Group C++ compiler.
12577             lt_prog_compiler_wl_CXX='-Wl,'
12578             lt_prog_compiler_pic_CXX='-fpic'
12579             lt_prog_compiler_static_CXX='-Bstatic'
12580             ;;
12581           cxx*)
12582             # Compaq C++
12583             # Make sure the PIC flag is empty.  It appears that all Alpha
12584             # Linux and Compaq Tru64 Unix objects are PIC.
12585             lt_prog_compiler_pic_CXX=
12586             lt_prog_compiler_static_CXX='-non_shared'
12587             ;;
12588           *)
12589             ;;
12590         esac
12591         ;;
12592       lynxos*)
12593         ;;
12594       m88k*)
12595         ;;
12596       mvs*)
12597         case $cc_basename in
12598           cxx*)
12599             lt_prog_compiler_pic_CXX='-W c,exportall'
12600             ;;
12601           *)
12602             ;;
12603         esac
12604         ;;
12605       netbsd* | netbsdelf*-gnu)
12606         ;;
12607       osf3* | osf4* | osf5*)
12608         case $cc_basename in
12609           KCC*)
12610             lt_prog_compiler_wl_CXX='--backend -Wl,'
12611             ;;
12612           RCC*)
12613             # Rational C++ 2.4.1
12614             lt_prog_compiler_pic_CXX='-pic'
12615             ;;
12616           cxx*)
12617             # Digital/Compaq C++
12618             lt_prog_compiler_wl_CXX='-Wl,'
12619             # Make sure the PIC flag is empty.  It appears that all Alpha
12620             # Linux and Compaq Tru64 Unix objects are PIC.
12621             lt_prog_compiler_pic_CXX=
12622             lt_prog_compiler_static_CXX='-non_shared'
12623             ;;
12624           *)
12625             ;;
12626         esac
12627         ;;
12628       psos*)
12629         ;;
12630       solaris*)
12631         case $cc_basename in
12632           CC*)
12633             # Sun C++ 4.2, 5.x and Centerline C++
12634             lt_prog_compiler_pic_CXX='-KPIC'
12635             lt_prog_compiler_static_CXX='-Bstatic'
12636             lt_prog_compiler_wl_CXX='-Qoption ld '
12637             ;;
12638           gcx*)
12639             # Green Hills C++ Compiler
12640             lt_prog_compiler_pic_CXX='-PIC'
12641             ;;
12642           *)
12643             ;;
12644         esac
12645         ;;
12646       sunos4*)
12647         case $cc_basename in
12648           CC*)
12649             # Sun C++ 4.x
12650             lt_prog_compiler_pic_CXX='-pic'
12651             lt_prog_compiler_static_CXX='-Bstatic'
12652             ;;
12653           lcc*)
12654             # Lucid
12655             lt_prog_compiler_pic_CXX='-pic'
12656             ;;
12657           *)
12658             ;;
12659         esac
12660         ;;
12661       tandem*)
12662         case $cc_basename in
12663           NCC*)
12664             # NonStop-UX NCC 3.20
12665             lt_prog_compiler_pic_CXX='-KPIC'
12666             ;;
12667           *)
12668             ;;
12669         esac
12670         ;;
12671       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12672         case $cc_basename in
12673           CC*)
12674             lt_prog_compiler_wl_CXX='-Wl,'
12675             lt_prog_compiler_pic_CXX='-KPIC'
12676             lt_prog_compiler_static_CXX='-Bstatic'
12677             ;;
12678         esac
12679         ;;
12680       vxworks*)
12681         ;;
12682       *)
12683         lt_prog_compiler_can_build_shared_CXX=no
12684         ;;
12685     esac
12686   fi
12687
12688 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12689 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12690
12691 #
12692 # Check to make sure the PIC flag actually works.
12693 #
12694 if test -n "$lt_prog_compiler_pic_CXX"; then
12695
12696 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12697 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12698 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12699   echo $ECHO_N "(cached) $ECHO_C" >&6
12700 else
12701   lt_prog_compiler_pic_works_CXX=no
12702   ac_outfile=conftest.$ac_objext
12703    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12704    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12705    # Insert the option either (1) after the last *FLAGS variable, or
12706    # (2) before a word containing "conftest.", or (3) at the end.
12707    # Note that $ac_compile itself does not contain backslashes and begins
12708    # with a dollar sign (not a hyphen), so the echo should work correctly.
12709    # The option is referenced via a variable to avoid confusing sed.
12710    lt_compile=`echo "$ac_compile" | $SED \
12711    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12712    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12713    -e 's:$: $lt_compiler_flag:'`
12714    (eval echo "\"\$as_me:12714: $lt_compile\"" >&5)
12715    (eval "$lt_compile" 2>conftest.err)
12716    ac_status=$?
12717    cat conftest.err >&5
12718    echo "$as_me:12718: \$? = $ac_status" >&5
12719    if (exit $ac_status) && test -s "$ac_outfile"; then
12720      # The compiler can only warn and ignore the option if not recognized
12721      # So say no if there are warnings other than the usual output.
12722      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12723      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12724      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12725        lt_prog_compiler_pic_works_CXX=yes
12726      fi
12727    fi
12728    $rm conftest*
12729
12730 fi
12731 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12732 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
12733
12734 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12735     case $lt_prog_compiler_pic_CXX in
12736      "" | " "*) ;;
12737      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12738      esac
12739 else
12740     lt_prog_compiler_pic_CXX=
12741      lt_prog_compiler_can_build_shared_CXX=no
12742 fi
12743
12744 fi
12745 case $host_os in
12746   # For platforms which do not support PIC, -DPIC is meaningless:
12747   *djgpp*)
12748     lt_prog_compiler_pic_CXX=
12749     ;;
12750   *)
12751     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12752     ;;
12753 esac
12754
12755 #
12756 # Check to make sure the static flag actually works.
12757 #
12758 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12759 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12760 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
12761 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12762   echo $ECHO_N "(cached) $ECHO_C" >&6
12763 else
12764   lt_prog_compiler_static_works_CXX=no
12765    save_LDFLAGS="$LDFLAGS"
12766    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12767    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12768    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12769      # The linker can only warn and ignore the option if not recognized
12770      # So say no if there are warnings
12771      if test -s conftest.err; then
12772        # Append any errors to the config.log.
12773        cat conftest.err 1>&5
12774        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12775        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12776        if diff conftest.exp conftest.er2 >/dev/null; then
12777          lt_prog_compiler_static_works_CXX=yes
12778        fi
12779      else
12780        lt_prog_compiler_static_works_CXX=yes
12781      fi
12782    fi
12783    $rm conftest*
12784    LDFLAGS="$save_LDFLAGS"
12785
12786 fi
12787 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12788 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
12789
12790 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12791     :
12792 else
12793     lt_prog_compiler_static_CXX=
12794 fi
12795
12796
12797 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12798 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12799 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12800   echo $ECHO_N "(cached) $ECHO_C" >&6
12801 else
12802   lt_cv_prog_compiler_c_o_CXX=no
12803    $rm -r conftest 2>/dev/null
12804    mkdir conftest
12805    cd conftest
12806    mkdir out
12807    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12808
12809    lt_compiler_flag="-o out/conftest2.$ac_objext"
12810    # Insert the option either (1) after the last *FLAGS variable, or
12811    # (2) before a word containing "conftest.", or (3) at the end.
12812    # Note that $ac_compile itself does not contain backslashes and begins
12813    # with a dollar sign (not a hyphen), so the echo should work correctly.
12814    lt_compile=`echo "$ac_compile" | $SED \
12815    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12816    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12817    -e 's:$: $lt_compiler_flag:'`
12818    (eval echo "\"\$as_me:12818: $lt_compile\"" >&5)
12819    (eval "$lt_compile" 2>out/conftest.err)
12820    ac_status=$?
12821    cat out/conftest.err >&5
12822    echo "$as_me:12822: \$? = $ac_status" >&5
12823    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12824    then
12825      # The compiler can only warn and ignore the option if not recognized
12826      # So say no if there are warnings
12827      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12828      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12829      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12830        lt_cv_prog_compiler_c_o_CXX=yes
12831      fi
12832    fi
12833    chmod u+w . 2>&5
12834    $rm conftest*
12835    # SGI C++ compiler will create directory out/ii_files/ for
12836    # template instantiation
12837    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12838    $rm out/* && rmdir out
12839    cd ..
12840    rmdir conftest
12841    $rm conftest*
12842
12843 fi
12844 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12845 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12846
12847
12848 hard_links="nottested"
12849 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12850   # do not overwrite the value of need_locks provided by the user
12851   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12852 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12853   hard_links=yes
12854   $rm conftest*
12855   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12856   touch conftest.a
12857   ln conftest.a conftest.b 2>&5 || hard_links=no
12858   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12859   echo "$as_me:$LINENO: result: $hard_links" >&5
12860 echo "${ECHO_T}$hard_links" >&6
12861   if test "$hard_links" = no; then
12862     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12863 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12864     need_locks=warn
12865   fi
12866 else
12867   need_locks=no
12868 fi
12869
12870 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12871 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12872
12873   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12874   case $host_os in
12875   aix4* | aix5*)
12876     # If we're using GNU nm, then we don't want the "-C" option.
12877     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12878     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12879       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'
12880     else
12881       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'
12882     fi
12883     ;;
12884   pw32*)
12885     export_symbols_cmds_CXX="$ltdll_cmds"
12886   ;;
12887   cygwin* | mingw*)
12888     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'
12889   ;;
12890   linux* | k*bsd*-gnu)
12891     link_all_deplibs_CXX=no
12892   ;;
12893   *)
12894     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12895   ;;
12896   esac
12897
12898 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12899 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12900 test "$ld_shlibs_CXX" = no && can_build_shared=no
12901
12902 #
12903 # Do we need to explicitly link libc?
12904 #
12905 case "x$archive_cmds_need_lc_CXX" in
12906 x|xyes)
12907   # Assume -lc should be added
12908   archive_cmds_need_lc_CXX=yes
12909
12910   if test "$enable_shared" = yes && test "$GCC" = yes; then
12911     case $archive_cmds_CXX in
12912     *'~'*)
12913       # FIXME: we may have to deal with multi-command sequences.
12914       ;;
12915     '$CC '*)
12916       # Test whether the compiler implicitly links with -lc since on some
12917       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12918       # to ld, don't add -lc before -lgcc.
12919       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12920 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12921       $rm conftest*
12922       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12923
12924       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12925   (eval $ac_compile) 2>&5
12926   ac_status=$?
12927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928   (exit $ac_status); } 2>conftest.err; then
12929         soname=conftest
12930         lib=conftest
12931         libobjs=conftest.$ac_objext
12932         deplibs=
12933         wl=$lt_prog_compiler_wl_CXX
12934         pic_flag=$lt_prog_compiler_pic_CXX
12935         compiler_flags=-v
12936         linker_flags=-v
12937         verstring=
12938         output_objdir=.
12939         libname=conftest
12940         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12941         allow_undefined_flag_CXX=
12942         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12943   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12944   ac_status=$?
12945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946   (exit $ac_status); }
12947         then
12948           archive_cmds_need_lc_CXX=no
12949         else
12950           archive_cmds_need_lc_CXX=yes
12951         fi
12952         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12953       else
12954         cat conftest.err 1>&5
12955       fi
12956       $rm conftest*
12957       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12958 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12959       ;;
12960     esac
12961   fi
12962   ;;
12963 esac
12964
12965 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12966 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12967 library_names_spec=
12968 libname_spec='lib$name'
12969 soname_spec=
12970 shrext_cmds=".so"
12971 postinstall_cmds=
12972 postuninstall_cmds=
12973 finish_cmds=
12974 finish_eval=
12975 shlibpath_var=
12976 shlibpath_overrides_runpath=unknown
12977 version_type=none
12978 dynamic_linker="$host_os ld.so"
12979 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12980 if test "$GCC" = yes; then
12981   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12982   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12983     # if the path contains ";" then we assume it to be the separator
12984     # otherwise default to the standard path separator (i.e. ":") - it is
12985     # assumed that no part of a normal pathname contains ";" but that should
12986     # okay in the real world where ";" in dirpaths is itself problematic.
12987     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12988   else
12989     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12990   fi
12991 else
12992   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12993 fi
12994 need_lib_prefix=unknown
12995 hardcode_into_libs=no
12996
12997 # when you set need_version to no, make sure it does not cause -set_version
12998 # flags to be left without arguments
12999 need_version=unknown
13000
13001 case $host_os in
13002 aix3*)
13003   version_type=linux
13004   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13005   shlibpath_var=LIBPATH
13006
13007   # AIX 3 has no versioning support, so we append a major version to the name.
13008   soname_spec='${libname}${release}${shared_ext}$major'
13009   ;;
13010
13011 aix4* | aix5*)
13012   version_type=linux
13013   need_lib_prefix=no
13014   need_version=no
13015   hardcode_into_libs=yes
13016   if test "$host_cpu" = ia64; then
13017     # AIX 5 supports IA64
13018     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13019     shlibpath_var=LD_LIBRARY_PATH
13020   else
13021     # With GCC up to 2.95.x, collect2 would create an import file
13022     # for dependence libraries.  The import file would start with
13023     # the line `#! .'.  This would cause the generated library to
13024     # depend on `.', always an invalid library.  This was fixed in
13025     # development snapshots of GCC prior to 3.0.
13026     case $host_os in
13027       aix4 | aix4.[01] | aix4.[01].*)
13028       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13029            echo ' yes '
13030            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13031         :
13032       else
13033         can_build_shared=no
13034       fi
13035       ;;
13036     esac
13037     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13038     # soname into executable. Probably we can add versioning support to
13039     # collect2, so additional links can be useful in future.
13040     if test "$aix_use_runtimelinking" = yes; then
13041       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13042       # instead of lib<name>.a to let people know that these are not
13043       # typical AIX shared libraries.
13044       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13045     else
13046       # We preserve .a as extension for shared libraries through AIX4.2
13047       # and later when we are not doing run time linking.
13048       library_names_spec='${libname}${release}.a $libname.a'
13049       soname_spec='${libname}${release}${shared_ext}$major'
13050     fi
13051     shlibpath_var=LIBPATH
13052   fi
13053   ;;
13054
13055 amigaos*)
13056   library_names_spec='$libname.ixlibrary $libname.a'
13057   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13058   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'
13059   ;;
13060
13061 beos*)
13062   library_names_spec='${libname}${shared_ext}'
13063   dynamic_linker="$host_os ld.so"
13064   shlibpath_var=LIBRARY_PATH
13065   ;;
13066
13067 bsdi[45]*)
13068   version_type=linux
13069   need_version=no
13070   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13071   soname_spec='${libname}${release}${shared_ext}$major'
13072   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13073   shlibpath_var=LD_LIBRARY_PATH
13074   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13075   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13076   # the default ld.so.conf also contains /usr/contrib/lib and
13077   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13078   # libtool to hard-code these into programs
13079   ;;
13080
13081 cygwin* | mingw* | pw32*)
13082   version_type=windows
13083   shrext_cmds=".dll"
13084   need_version=no
13085   need_lib_prefix=no
13086
13087   case $GCC,$host_os in
13088   yes,cygwin* | yes,mingw* | yes,pw32*)
13089     library_names_spec='$libname.dll.a'
13090     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13091     postinstall_cmds='base_file=`basename \${file}`~
13092       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13093       dldir=$destdir/`dirname \$dlpath`~
13094       test -d \$dldir || mkdir -p \$dldir~
13095       $install_prog $dir/$dlname \$dldir/$dlname~
13096       chmod a+x \$dldir/$dlname'
13097     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13098       dlpath=$dir/\$dldll~
13099        $rm \$dlpath'
13100     shlibpath_overrides_runpath=yes
13101
13102     case $host_os in
13103     cygwin*)
13104       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13105       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13106       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13107       ;;
13108     mingw*)
13109       # MinGW DLLs use traditional 'lib' prefix
13110       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13111       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13112       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13113         # It is most probably a Windows format PATH printed by
13114         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13115         # path with ; separators, and with drive letters. We can handle the
13116         # drive letters (cygwin fileutils understands them), so leave them,
13117         # especially as we might pass files found there to a mingw objdump,
13118         # which wouldn't understand a cygwinified path. Ahh.
13119         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13120       else
13121         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13122       fi
13123       ;;
13124     pw32*)
13125       # pw32 DLLs use 'pw' prefix rather than 'lib'
13126       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13127       ;;
13128     esac
13129     ;;
13130
13131   *)
13132     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13133     ;;
13134   esac
13135   dynamic_linker='Win32 ld.exe'
13136   # FIXME: first we should search . and the directory the executable is in
13137   shlibpath_var=PATH
13138   ;;
13139
13140 darwin* | rhapsody*)
13141   dynamic_linker="$host_os dyld"
13142   version_type=darwin
13143   need_lib_prefix=no
13144   need_version=no
13145   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13146   soname_spec='${libname}${release}${major}$shared_ext'
13147   shlibpath_overrides_runpath=yes
13148   shlibpath_var=DYLD_LIBRARY_PATH
13149   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13150   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13151   if test "$GCC" = yes; then
13152     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"`
13153   else
13154     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13155   fi
13156   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13157   ;;
13158
13159 dgux*)
13160   version_type=linux
13161   need_lib_prefix=no
13162   need_version=no
13163   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13164   soname_spec='${libname}${release}${shared_ext}$major'
13165   shlibpath_var=LD_LIBRARY_PATH
13166   ;;
13167
13168 freebsd1*)
13169   dynamic_linker=no
13170   ;;
13171
13172 freebsd* | dragonfly*)
13173   # DragonFly does not have aout.  When/if they implement a new
13174   # versioning mechanism, adjust this.
13175   if test -x /usr/bin/objformat; then
13176     objformat=`/usr/bin/objformat`
13177   else
13178     case $host_os in
13179     freebsd[123]*) objformat=aout ;;
13180     *) objformat=elf ;;
13181     esac
13182   fi
13183   version_type=freebsd-$objformat
13184   case $version_type in
13185     freebsd-elf*)
13186       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13187       need_version=no
13188       need_lib_prefix=no
13189       ;;
13190     freebsd-*)
13191       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13192       need_version=yes
13193       ;;
13194   esac
13195   shlibpath_var=LD_LIBRARY_PATH
13196   case $host_os in
13197   freebsd2*)
13198     shlibpath_overrides_runpath=yes
13199     ;;
13200   freebsd3.[01]* | freebsdelf3.[01]*)
13201     shlibpath_overrides_runpath=yes
13202     hardcode_into_libs=yes
13203     ;;
13204   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13205   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13206     shlibpath_overrides_runpath=no
13207     hardcode_into_libs=yes
13208     ;;
13209   freebsd*) # from 4.6 on
13210     shlibpath_overrides_runpath=yes
13211     hardcode_into_libs=yes
13212     ;;
13213   esac
13214   ;;
13215
13216 gnu*)
13217   version_type=linux
13218   need_lib_prefix=no
13219   need_version=no
13220   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13221   soname_spec='${libname}${release}${shared_ext}$major'
13222   shlibpath_var=LD_LIBRARY_PATH
13223   hardcode_into_libs=yes
13224   ;;
13225
13226 hpux9* | hpux10* | hpux11*)
13227   # Give a soname corresponding to the major version so that dld.sl refuses to
13228   # link against other versions.
13229   version_type=sunos
13230   need_lib_prefix=no
13231   need_version=no
13232   case $host_cpu in
13233   ia64*)
13234     shrext_cmds='.so'
13235     hardcode_into_libs=yes
13236     dynamic_linker="$host_os dld.so"
13237     shlibpath_var=LD_LIBRARY_PATH
13238     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13239     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13240     soname_spec='${libname}${release}${shared_ext}$major'
13241     if test "X$HPUX_IA64_MODE" = X32; then
13242       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13243     else
13244       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13245     fi
13246     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13247     ;;
13248    hppa*64*)
13249      shrext_cmds='.sl'
13250      hardcode_into_libs=yes
13251      dynamic_linker="$host_os dld.sl"
13252      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13253      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13254      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13255      soname_spec='${libname}${release}${shared_ext}$major'
13256      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13257      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13258      ;;
13259    *)
13260     shrext_cmds='.sl'
13261     dynamic_linker="$host_os dld.sl"
13262     shlibpath_var=SHLIB_PATH
13263     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13264     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13265     soname_spec='${libname}${release}${shared_ext}$major'
13266     ;;
13267   esac
13268   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13269   postinstall_cmds='chmod 555 $lib'
13270   ;;
13271
13272 interix3*)
13273   version_type=linux
13274   need_lib_prefix=no
13275   need_version=no
13276   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13277   soname_spec='${libname}${release}${shared_ext}$major'
13278   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13279   shlibpath_var=LD_LIBRARY_PATH
13280   shlibpath_overrides_runpath=no
13281   hardcode_into_libs=yes
13282   ;;
13283
13284 irix5* | irix6* | nonstopux*)
13285   case $host_os in
13286     nonstopux*) version_type=nonstopux ;;
13287     *)
13288         if test "$lt_cv_prog_gnu_ld" = yes; then
13289                 version_type=linux
13290         else
13291                 version_type=irix
13292         fi ;;
13293   esac
13294   need_lib_prefix=no
13295   need_version=no
13296   soname_spec='${libname}${release}${shared_ext}$major'
13297   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13298   case $host_os in
13299   irix5* | nonstopux*)
13300     libsuff= shlibsuff=
13301     ;;
13302   *)
13303     case $LD in # libtool.m4 will add one of these switches to LD
13304     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13305       libsuff= shlibsuff= libmagic=32-bit;;
13306     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13307       libsuff=32 shlibsuff=N32 libmagic=N32;;
13308     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13309       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13310     *) libsuff= shlibsuff= libmagic=never-match;;
13311     esac
13312     ;;
13313   esac
13314   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13315   shlibpath_overrides_runpath=no
13316   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13317   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13318   hardcode_into_libs=yes
13319   ;;
13320
13321 # No shared lib support for Linux oldld, aout, or coff.
13322 linux*oldld* | linux*aout* | linux*coff*)
13323   dynamic_linker=no
13324   ;;
13325
13326 # This must be Linux ELF.
13327 linux* | k*bsd*-gnu)
13328   version_type=linux
13329   need_lib_prefix=no
13330   need_version=no
13331   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13332   soname_spec='${libname}${release}${shared_ext}$major'
13333   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13334   shlibpath_var=LD_LIBRARY_PATH
13335   shlibpath_overrides_runpath=no
13336   # This implies no fast_install, which is unacceptable.
13337   # Some rework will be needed to allow for fast_install
13338   # before this can be enabled.
13339   hardcode_into_libs=yes
13340
13341   # Append ld.so.conf contents to the search path
13342   if test -f /etc/ld.so.conf; then
13343     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' ' '`
13344     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13345   fi
13346
13347   # We used to test for /lib/ld.so.1 and disable shared libraries on
13348   # powerpc, because MkLinux only supported shared libraries with the
13349   # GNU dynamic linker.  Since this was broken with cross compilers,
13350   # most powerpc-linux boxes support dynamic linking these days and
13351   # people can always --disable-shared, the test was removed, and we
13352   # assume the GNU/Linux dynamic linker is in use.
13353   dynamic_linker='GNU/Linux ld.so'
13354   ;;
13355
13356 netbsdelf*-gnu)
13357   version_type=linux
13358   need_lib_prefix=no
13359   need_version=no
13360   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13361   soname_spec='${libname}${release}${shared_ext}$major'
13362   shlibpath_var=LD_LIBRARY_PATH
13363   shlibpath_overrides_runpath=no
13364   hardcode_into_libs=yes
13365   dynamic_linker='NetBSD ld.elf_so'
13366   ;;
13367
13368 netbsd*)
13369   version_type=sunos
13370   need_lib_prefix=no
13371   need_version=no
13372   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13373     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13374     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13375     dynamic_linker='NetBSD (a.out) ld.so'
13376   else
13377     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13378     soname_spec='${libname}${release}${shared_ext}$major'
13379     dynamic_linker='NetBSD ld.elf_so'
13380   fi
13381   shlibpath_var=LD_LIBRARY_PATH
13382   shlibpath_overrides_runpath=yes
13383   hardcode_into_libs=yes
13384   ;;
13385
13386 newsos6)
13387   version_type=linux
13388   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13389   shlibpath_var=LD_LIBRARY_PATH
13390   shlibpath_overrides_runpath=yes
13391   ;;
13392
13393 nto-qnx*)
13394   version_type=linux
13395   need_lib_prefix=no
13396   need_version=no
13397   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13398   soname_spec='${libname}${release}${shared_ext}$major'
13399   shlibpath_var=LD_LIBRARY_PATH
13400   shlibpath_overrides_runpath=yes
13401   ;;
13402
13403 openbsd*)
13404   version_type=sunos
13405   sys_lib_dlsearch_path_spec="/usr/lib"
13406   need_lib_prefix=no
13407   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13408   case $host_os in
13409     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13410     *)                         need_version=no  ;;
13411   esac
13412   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13413   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13414   shlibpath_var=LD_LIBRARY_PATH
13415   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13416     case $host_os in
13417       openbsd2.[89] | openbsd2.[89].*)
13418         shlibpath_overrides_runpath=no
13419         ;;
13420       *)
13421         shlibpath_overrides_runpath=yes
13422         ;;
13423       esac
13424   else
13425     shlibpath_overrides_runpath=yes
13426   fi
13427   ;;
13428
13429 os2*)
13430   libname_spec='$name'
13431   shrext_cmds=".dll"
13432   need_lib_prefix=no
13433   library_names_spec='$libname${shared_ext} $libname.a'
13434   dynamic_linker='OS/2 ld.exe'
13435   shlibpath_var=LIBPATH
13436   ;;
13437
13438 osf3* | osf4* | osf5*)
13439   version_type=osf
13440   need_lib_prefix=no
13441   need_version=no
13442   soname_spec='${libname}${release}${shared_ext}$major'
13443   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13444   shlibpath_var=LD_LIBRARY_PATH
13445   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13446   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13447   ;;
13448
13449 solaris*)
13450   version_type=linux
13451   need_lib_prefix=no
13452   need_version=no
13453   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13454   soname_spec='${libname}${release}${shared_ext}$major'
13455   shlibpath_var=LD_LIBRARY_PATH
13456   shlibpath_overrides_runpath=yes
13457   hardcode_into_libs=yes
13458   # ldd complains unless libraries are executable
13459   postinstall_cmds='chmod +x $lib'
13460   ;;
13461
13462 sunos4*)
13463   version_type=sunos
13464   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13465   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13466   shlibpath_var=LD_LIBRARY_PATH
13467   shlibpath_overrides_runpath=yes
13468   if test "$with_gnu_ld" = yes; then
13469     need_lib_prefix=no
13470   fi
13471   need_version=yes
13472   ;;
13473
13474 sysv4 | sysv4.3*)
13475   version_type=linux
13476   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13477   soname_spec='${libname}${release}${shared_ext}$major'
13478   shlibpath_var=LD_LIBRARY_PATH
13479   case $host_vendor in
13480     sni)
13481       shlibpath_overrides_runpath=no
13482       need_lib_prefix=no
13483       export_dynamic_flag_spec='${wl}-Blargedynsym'
13484       runpath_var=LD_RUN_PATH
13485       ;;
13486     siemens)
13487       need_lib_prefix=no
13488       ;;
13489     motorola)
13490       need_lib_prefix=no
13491       need_version=no
13492       shlibpath_overrides_runpath=no
13493       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13494       ;;
13495   esac
13496   ;;
13497
13498 sysv4*MP*)
13499   if test -d /usr/nec ;then
13500     version_type=linux
13501     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13502     soname_spec='$libname${shared_ext}.$major'
13503     shlibpath_var=LD_LIBRARY_PATH
13504   fi
13505   ;;
13506
13507 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13508   version_type=freebsd-elf
13509   need_lib_prefix=no
13510   need_version=no
13511   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13512   soname_spec='${libname}${release}${shared_ext}$major'
13513   shlibpath_var=LD_LIBRARY_PATH
13514   hardcode_into_libs=yes
13515   if test "$with_gnu_ld" = yes; then
13516     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13517     shlibpath_overrides_runpath=no
13518   else
13519     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13520     shlibpath_overrides_runpath=yes
13521     case $host_os in
13522       sco3.2v5*)
13523         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13524         ;;
13525     esac
13526   fi
13527   sys_lib_dlsearch_path_spec='/usr/lib'
13528   ;;
13529
13530 uts4*)
13531   version_type=linux
13532   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13533   soname_spec='${libname}${release}${shared_ext}$major'
13534   shlibpath_var=LD_LIBRARY_PATH
13535   ;;
13536
13537 *)
13538   dynamic_linker=no
13539   ;;
13540 esac
13541 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13542 echo "${ECHO_T}$dynamic_linker" >&6
13543 test "$dynamic_linker" = no && can_build_shared=no
13544
13545 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13546 if test "$GCC" = yes; then
13547   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13548 fi
13549
13550 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13551 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13552 hardcode_action_CXX=
13553 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13554    test -n "$runpath_var_CXX" || \
13555    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13556
13557   # We can hardcode non-existant directories.
13558   if test "$hardcode_direct_CXX" != no &&
13559      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13560      # have to relink, otherwise we might link with an installed library
13561      # when we should be linking with a yet-to-be-installed one
13562      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13563      test "$hardcode_minus_L_CXX" != no; then
13564     # Linking always hardcodes the temporary library directory.
13565     hardcode_action_CXX=relink
13566   else
13567     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13568     hardcode_action_CXX=immediate
13569   fi
13570 else
13571   # We cannot hardcode anything, or else we can only hardcode existing
13572   # directories.
13573   hardcode_action_CXX=unsupported
13574 fi
13575 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13576 echo "${ECHO_T}$hardcode_action_CXX" >&6
13577
13578 if test "$hardcode_action_CXX" = relink; then
13579   # Fast installation is not supported
13580   enable_fast_install=no
13581 elif test "$shlibpath_overrides_runpath" = yes ||
13582      test "$enable_shared" = no; then
13583   # Fast installation is not necessary
13584   enable_fast_install=needless
13585 fi
13586
13587
13588 # The else clause should only fire when bootstrapping the
13589 # libtool distribution, otherwise you forgot to ship ltmain.sh
13590 # with your package, and you will get complaints that there are
13591 # no rules to generate ltmain.sh.
13592 if test -f "$ltmain"; then
13593   # See if we are running on zsh, and set the options which allow our commands through
13594   # without removal of \ escapes.
13595   if test -n "${ZSH_VERSION+set}" ; then
13596     setopt NO_GLOB_SUBST
13597   fi
13598   # Now quote all the things that may contain metacharacters while being
13599   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13600   # variables and quote the copies for generation of the libtool script.
13601   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13602     SED SHELL STRIP \
13603     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13604     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13605     deplibs_check_method reload_flag reload_cmds need_locks \
13606     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13607     lt_cv_sys_global_symbol_to_c_name_address \
13608     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13609     old_postinstall_cmds old_postuninstall_cmds \
13610     compiler_CXX \
13611     CC_CXX \
13612     LD_CXX \
13613     lt_prog_compiler_wl_CXX \
13614     lt_prog_compiler_pic_CXX \
13615     lt_prog_compiler_static_CXX \
13616     lt_prog_compiler_no_builtin_flag_CXX \
13617     export_dynamic_flag_spec_CXX \
13618     thread_safe_flag_spec_CXX \
13619     whole_archive_flag_spec_CXX \
13620     enable_shared_with_static_runtimes_CXX \
13621     old_archive_cmds_CXX \
13622     old_archive_from_new_cmds_CXX \
13623     predep_objects_CXX \
13624     postdep_objects_CXX \
13625     predeps_CXX \
13626     postdeps_CXX \
13627     compiler_lib_search_path_CXX \
13628     archive_cmds_CXX \
13629     archive_expsym_cmds_CXX \
13630     postinstall_cmds_CXX \
13631     postuninstall_cmds_CXX \
13632     old_archive_from_expsyms_cmds_CXX \
13633     allow_undefined_flag_CXX \
13634     no_undefined_flag_CXX \
13635     export_symbols_cmds_CXX \
13636     hardcode_libdir_flag_spec_CXX \
13637     hardcode_libdir_flag_spec_ld_CXX \
13638     hardcode_libdir_separator_CXX \
13639     hardcode_automatic_CXX \
13640     module_cmds_CXX \
13641     module_expsym_cmds_CXX \
13642     lt_cv_prog_compiler_c_o_CXX \
13643     exclude_expsyms_CXX \
13644     include_expsyms_CXX; do
13645
13646     case $var in
13647     old_archive_cmds_CXX | \
13648     old_archive_from_new_cmds_CXX | \
13649     archive_cmds_CXX | \
13650     archive_expsym_cmds_CXX | \
13651     module_cmds_CXX | \
13652     module_expsym_cmds_CXX | \
13653     old_archive_from_expsyms_cmds_CXX | \
13654     export_symbols_cmds_CXX | \
13655     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13656     postinstall_cmds | postuninstall_cmds | \
13657     old_postinstall_cmds | old_postuninstall_cmds | \
13658     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13659       # Double-quote double-evaled strings.
13660       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13661       ;;
13662     *)
13663       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13664       ;;
13665     esac
13666   done
13667
13668   case $lt_echo in
13669   *'\$0 --fallback-echo"')
13670     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13671     ;;
13672   esac
13673
13674 cfgfile="$ofile"
13675
13676   cat <<__EOF__ >> "$cfgfile"
13677 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13678
13679 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13680
13681 # Shell to use when invoking shell scripts.
13682 SHELL=$lt_SHELL
13683
13684 # Whether or not to build shared libraries.
13685 build_libtool_libs=$enable_shared
13686
13687 # Whether or not to build static libraries.
13688 build_old_libs=$enable_static
13689
13690 # Whether or not to add -lc for building shared libraries.
13691 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13692
13693 # Whether or not to disallow shared libs when runtime libs are static
13694 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13695
13696 # Whether or not to optimize for fast installation.
13697 fast_install=$enable_fast_install
13698
13699 # The host system.
13700 host_alias=$host_alias
13701 host=$host
13702 host_os=$host_os
13703
13704 # The build system.
13705 build_alias=$build_alias
13706 build=$build
13707 build_os=$build_os
13708
13709 # An echo program that does not interpret backslashes.
13710 echo=$lt_echo
13711
13712 # The archiver.
13713 AR=$lt_AR
13714 AR_FLAGS=$lt_AR_FLAGS
13715
13716 # A C compiler.
13717 LTCC=$lt_LTCC
13718
13719 # LTCC compiler flags.
13720 LTCFLAGS=$lt_LTCFLAGS
13721
13722 # A language-specific compiler.
13723 CC=$lt_compiler_CXX
13724
13725 # Is the compiler the GNU C compiler?
13726 with_gcc=$GCC_CXX
13727
13728 # An ERE matcher.
13729 EGREP=$lt_EGREP
13730
13731 # The linker used to build libraries.
13732 LD=$lt_LD_CXX
13733
13734 # Whether we need hard or soft links.
13735 LN_S=$lt_LN_S
13736
13737 # A BSD-compatible nm program.
13738 NM=$lt_NM
13739
13740 # A symbol stripping program
13741 STRIP=$lt_STRIP
13742
13743 # Used to examine libraries when file_magic_cmd begins "file"
13744 MAGIC_CMD=$MAGIC_CMD
13745
13746 # Used on cygwin: DLL creation program.
13747 DLLTOOL="$DLLTOOL"
13748
13749 # Used on cygwin: object dumper.
13750 OBJDUMP="$OBJDUMP"
13751
13752 # Used on cygwin: assembler.
13753 AS="$AS"
13754
13755 # The name of the directory that contains temporary libtool files.
13756 objdir=$objdir
13757
13758 # How to create reloadable object files.
13759 reload_flag=$lt_reload_flag
13760 reload_cmds=$lt_reload_cmds
13761
13762 # How to pass a linker flag through the compiler.
13763 wl=$lt_lt_prog_compiler_wl_CXX
13764
13765 # Object file suffix (normally "o").
13766 objext="$ac_objext"
13767
13768 # Old archive suffix (normally "a").
13769 libext="$libext"
13770
13771 # Shared library suffix (normally ".so").
13772 shrext_cmds='$shrext_cmds'
13773
13774 # Executable file suffix (normally "").
13775 exeext="$exeext"
13776
13777 # Additional compiler flags for building library objects.
13778 pic_flag=$lt_lt_prog_compiler_pic_CXX
13779 pic_mode=$pic_mode
13780
13781 # What is the maximum length of a command?
13782 max_cmd_len=$lt_cv_sys_max_cmd_len
13783
13784 # Does compiler simultaneously support -c and -o options?
13785 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13786
13787 # Must we lock files when doing compilation?
13788 need_locks=$lt_need_locks
13789
13790 # Do we need the lib prefix for modules?
13791 need_lib_prefix=$need_lib_prefix
13792
13793 # Do we need a version for libraries?
13794 need_version=$need_version
13795
13796 # Whether dlopen is supported.
13797 dlopen_support=$enable_dlopen
13798
13799 # Whether dlopen of programs is supported.
13800 dlopen_self=$enable_dlopen_self
13801
13802 # Whether dlopen of statically linked programs is supported.
13803 dlopen_self_static=$enable_dlopen_self_static
13804
13805 # Compiler flag to prevent dynamic linking.
13806 link_static_flag=$lt_lt_prog_compiler_static_CXX
13807
13808 # Compiler flag to turn off builtin functions.
13809 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13810
13811 # Compiler flag to allow reflexive dlopens.
13812 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13813
13814 # Compiler flag to generate shared objects directly from archives.
13815 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13816
13817 # Compiler flag to generate thread-safe objects.
13818 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13819
13820 # Library versioning type.
13821 version_type=$version_type
13822
13823 # Format of library name prefix.
13824 libname_spec=$lt_libname_spec
13825
13826 # List of archive names.  First name is the real one, the rest are links.
13827 # The last name is the one that the linker finds with -lNAME.
13828 library_names_spec=$lt_library_names_spec
13829
13830 # The coded name of the library, if different from the real name.
13831 soname_spec=$lt_soname_spec
13832
13833 # Commands used to build and install an old-style archive.
13834 RANLIB=$lt_RANLIB
13835 old_archive_cmds=$lt_old_archive_cmds_CXX
13836 old_postinstall_cmds=$lt_old_postinstall_cmds
13837 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13838
13839 # Create an old-style archive from a shared archive.
13840 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13841
13842 # Create a temporary old-style archive to link instead of a shared archive.
13843 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13844
13845 # Commands used to build and install a shared archive.
13846 archive_cmds=$lt_archive_cmds_CXX
13847 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13848 postinstall_cmds=$lt_postinstall_cmds
13849 postuninstall_cmds=$lt_postuninstall_cmds
13850
13851 # Commands used to build a loadable module (assumed same as above if empty)
13852 module_cmds=$lt_module_cmds_CXX
13853 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13854
13855 # Commands to strip libraries.
13856 old_striplib=$lt_old_striplib
13857 striplib=$lt_striplib
13858
13859 # Dependencies to place before the objects being linked to create a
13860 # shared library.
13861 predep_objects=$lt_predep_objects_CXX
13862
13863 # Dependencies to place after the objects being linked to create a
13864 # shared library.
13865 postdep_objects=$lt_postdep_objects_CXX
13866
13867 # Dependencies to place before the objects being linked to create a
13868 # shared library.
13869 predeps=$lt_predeps_CXX
13870
13871 # Dependencies to place after the objects being linked to create a
13872 # shared library.
13873 postdeps=$lt_postdeps_CXX
13874
13875 # The library search path used internally by the compiler when linking
13876 # a shared library.
13877 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13878
13879 # Method to check whether dependent libraries are shared objects.
13880 deplibs_check_method=$lt_deplibs_check_method
13881
13882 # Command to use when deplibs_check_method == file_magic.
13883 file_magic_cmd=$lt_file_magic_cmd
13884
13885 # Flag that allows shared libraries with undefined symbols to be built.
13886 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13887
13888 # Flag that forces no undefined symbols.
13889 no_undefined_flag=$lt_no_undefined_flag_CXX
13890
13891 # Commands used to finish a libtool library installation in a directory.
13892 finish_cmds=$lt_finish_cmds
13893
13894 # Same as above, but a single script fragment to be evaled but not shown.
13895 finish_eval=$lt_finish_eval
13896
13897 # Take the output of nm and produce a listing of raw symbols and C names.
13898 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13899
13900 # Transform the output of nm in a proper C declaration
13901 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13902
13903 # Transform the output of nm in a C name address pair
13904 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13905
13906 # This is the shared library runtime path variable.
13907 runpath_var=$runpath_var
13908
13909 # This is the shared library path variable.
13910 shlibpath_var=$shlibpath_var
13911
13912 # Is shlibpath searched before the hard-coded library search path?
13913 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13914
13915 # How to hardcode a shared library path into an executable.
13916 hardcode_action=$hardcode_action_CXX
13917
13918 # Whether we should hardcode library paths into libraries.
13919 hardcode_into_libs=$hardcode_into_libs
13920
13921 # Flag to hardcode \$libdir into a binary during linking.
13922 # This must work even if \$libdir does not exist.
13923 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13924
13925 # If ld is used when linking, flag to hardcode \$libdir into
13926 # a binary during linking. This must work even if \$libdir does
13927 # not exist.
13928 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13929
13930 # Whether we need a single -rpath flag with a separated argument.
13931 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13932
13933 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13934 # resulting binary.
13935 hardcode_direct=$hardcode_direct_CXX
13936
13937 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13938 # resulting binary.
13939 hardcode_minus_L=$hardcode_minus_L_CXX
13940
13941 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13942 # the resulting binary.
13943 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13944
13945 # Set to yes if building a shared library automatically hardcodes DIR into the library
13946 # and all subsequent libraries and executables linked against it.
13947 hardcode_automatic=$hardcode_automatic_CXX
13948
13949 # Variables whose values should be saved in libtool wrapper scripts and
13950 # restored at relink time.
13951 variables_saved_for_relink="$variables_saved_for_relink"
13952
13953 # Whether libtool must link a program against all its dependency libraries.
13954 link_all_deplibs=$link_all_deplibs_CXX
13955
13956 # Compile-time system search path for libraries
13957 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13958
13959 # Run-time system search path for libraries
13960 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13961
13962 # Fix the shell variable \$srcfile for the compiler.
13963 fix_srcfile_path="$fix_srcfile_path_CXX"
13964
13965 # Set to yes if exported symbols are required.
13966 always_export_symbols=$always_export_symbols_CXX
13967
13968 # The commands to list exported symbols.
13969 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13970
13971 # The commands to extract the exported symbol list from a shared archive.
13972 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13973
13974 # Symbols that should not be listed in the preloaded symbols.
13975 exclude_expsyms=$lt_exclude_expsyms_CXX
13976
13977 # Symbols that must always be exported.
13978 include_expsyms=$lt_include_expsyms_CXX
13979
13980 # ### END LIBTOOL TAG CONFIG: $tagname
13981
13982 __EOF__
13983
13984
13985 else
13986   # If there is no Makefile yet, we rely on a make rule to execute
13987   # `config.status --recheck' to rerun these tests and create the
13988   # libtool script then.
13989   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13990   if test -f "$ltmain_in"; then
13991     test -f Makefile && make "$ltmain"
13992   fi
13993 fi
13994
13995
13996 ac_ext=c
13997 ac_cpp='$CPP $CPPFLAGS'
13998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14001
14002 CC=$lt_save_CC
14003 LDCXX=$LD
14004 LD=$lt_save_LD
14005 GCC=$lt_save_GCC
14006 with_gnu_ldcxx=$with_gnu_ld
14007 with_gnu_ld=$lt_save_with_gnu_ld
14008 lt_cv_path_LDCXX=$lt_cv_path_LD
14009 lt_cv_path_LD=$lt_save_path_LD
14010 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14011 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14012
14013         else
14014           tagname=""
14015         fi
14016         ;;
14017
14018       F77)
14019         if test -n "$F77" && test "X$F77" != "Xno"; then
14020
14021 ac_ext=f
14022 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14023 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14024 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14025
14026
14027 archive_cmds_need_lc_F77=no
14028 allow_undefined_flag_F77=
14029 always_export_symbols_F77=no
14030 archive_expsym_cmds_F77=
14031 export_dynamic_flag_spec_F77=
14032 hardcode_direct_F77=no
14033 hardcode_libdir_flag_spec_F77=
14034 hardcode_libdir_flag_spec_ld_F77=
14035 hardcode_libdir_separator_F77=
14036 hardcode_minus_L_F77=no
14037 hardcode_automatic_F77=no
14038 module_cmds_F77=
14039 module_expsym_cmds_F77=
14040 link_all_deplibs_F77=unknown
14041 old_archive_cmds_F77=$old_archive_cmds
14042 no_undefined_flag_F77=
14043 whole_archive_flag_spec_F77=
14044 enable_shared_with_static_runtimes_F77=no
14045
14046 # Source file extension for f77 test sources.
14047 ac_ext=f
14048
14049 # Object file extension for compiled f77 test sources.
14050 objext=o
14051 objext_F77=$objext
14052
14053 # Code to be used in simple compile tests
14054 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14055
14056 # Code to be used in simple link tests
14057 lt_simple_link_test_code="      program t\n      end\n"
14058
14059 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14060
14061 # If no C compiler was specified, use CC.
14062 LTCC=${LTCC-"$CC"}
14063
14064 # If no C compiler flags were specified, use CFLAGS.
14065 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14066
14067 # Allow CC to be a program name with arguments.
14068 compiler=$CC
14069
14070
14071 # save warnings/boilerplate of simple test code
14072 ac_outfile=conftest.$ac_objext
14073 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14074 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14075 _lt_compiler_boilerplate=`cat conftest.err`
14076 $rm conftest*
14077
14078 ac_outfile=conftest.$ac_objext
14079 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14080 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14081 _lt_linker_boilerplate=`cat conftest.err`
14082 $rm conftest*
14083
14084
14085 # Allow CC to be a program name with arguments.
14086 lt_save_CC="$CC"
14087 CC=${F77-"f77"}
14088 compiler=$CC
14089 compiler_F77=$CC
14090 for cc_temp in $compiler""; do
14091   case $cc_temp in
14092     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14093     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14094     \-*) ;;
14095     *) break;;
14096   esac
14097 done
14098 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14099
14100
14101 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14102 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14103 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14104 echo "${ECHO_T}$can_build_shared" >&6
14105
14106 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14107 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14108 test "$can_build_shared" = "no" && enable_shared=no
14109
14110 # On AIX, shared libraries and static libraries use the same namespace, and
14111 # are all built from PIC.
14112 case $host_os in
14113 aix3*)
14114   test "$enable_shared" = yes && enable_static=no
14115   if test -n "$RANLIB"; then
14116     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14117     postinstall_cmds='$RANLIB $lib'
14118   fi
14119   ;;
14120 aix4* | aix5*)
14121   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14122     test "$enable_shared" = yes && enable_static=no
14123   fi
14124   ;;
14125 esac
14126 echo "$as_me:$LINENO: result: $enable_shared" >&5
14127 echo "${ECHO_T}$enable_shared" >&6
14128
14129 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14130 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14131 # Make sure either enable_shared or enable_static is yes.
14132 test "$enable_shared" = yes || enable_static=yes
14133 echo "$as_me:$LINENO: result: $enable_static" >&5
14134 echo "${ECHO_T}$enable_static" >&6
14135
14136 GCC_F77="$G77"
14137 LD_F77="$LD"
14138
14139 lt_prog_compiler_wl_F77=
14140 lt_prog_compiler_pic_F77=
14141 lt_prog_compiler_static_F77=
14142
14143 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14144 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14145
14146   if test "$GCC" = yes; then
14147     lt_prog_compiler_wl_F77='-Wl,'
14148     lt_prog_compiler_static_F77='-static'
14149
14150     case $host_os in
14151       aix*)
14152       # All AIX code is PIC.
14153       if test "$host_cpu" = ia64; then
14154         # AIX 5 now supports IA64 processor
14155         lt_prog_compiler_static_F77='-Bstatic'
14156       fi
14157       ;;
14158
14159     amigaos*)
14160       # FIXME: we need at least 68020 code to build shared libraries, but
14161       # adding the `-m68020' flag to GCC prevents building anything better,
14162       # like `-m68040'.
14163       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14164       ;;
14165
14166     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14167       # PIC is the default for these OSes.
14168       ;;
14169
14170     mingw* | pw32* | os2*)
14171       # This hack is so that the source file can tell whether it is being
14172       # built for inclusion in a dll (and should export symbols for example).
14173       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14174       ;;
14175
14176     darwin* | rhapsody*)
14177       # PIC is the default on this platform
14178       # Common symbols not allowed in MH_DYLIB files
14179       lt_prog_compiler_pic_F77='-fno-common'
14180       ;;
14181
14182     interix3*)
14183       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14184       # Instead, we relocate shared libraries at runtime.
14185       ;;
14186
14187     msdosdjgpp*)
14188       # Just because we use GCC doesn't mean we suddenly get shared libraries
14189       # on systems that don't support them.
14190       lt_prog_compiler_can_build_shared_F77=no
14191       enable_shared=no
14192       ;;
14193
14194     sysv4*MP*)
14195       if test -d /usr/nec; then
14196         lt_prog_compiler_pic_F77=-Kconform_pic
14197       fi
14198       ;;
14199
14200     hpux*)
14201       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14202       # not for PA HP-UX.
14203       case $host_cpu in
14204       hppa*64*|ia64*)
14205         # +Z the default
14206         ;;
14207       *)
14208         lt_prog_compiler_pic_F77='-fPIC'
14209         ;;
14210       esac
14211       ;;
14212
14213     *)
14214       lt_prog_compiler_pic_F77='-fPIC'
14215       ;;
14216     esac
14217   else
14218     # PORTME Check for flag to pass linker flags through the system compiler.
14219     case $host_os in
14220     aix*)
14221       lt_prog_compiler_wl_F77='-Wl,'
14222       if test "$host_cpu" = ia64; then
14223         # AIX 5 now supports IA64 processor
14224         lt_prog_compiler_static_F77='-Bstatic'
14225       else
14226         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14227       fi
14228       ;;
14229       darwin*)
14230         # PIC is the default on this platform
14231         # Common symbols not allowed in MH_DYLIB files
14232        case $cc_basename in
14233          xlc*)
14234          lt_prog_compiler_pic_F77='-qnocommon'
14235          lt_prog_compiler_wl_F77='-Wl,'
14236          ;;
14237        esac
14238        ;;
14239
14240     mingw* | pw32* | os2*)
14241       # This hack is so that the source file can tell whether it is being
14242       # built for inclusion in a dll (and should export symbols for example).
14243       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14244       ;;
14245
14246     hpux9* | hpux10* | hpux11*)
14247       lt_prog_compiler_wl_F77='-Wl,'
14248       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14249       # not for PA HP-UX.
14250       case $host_cpu in
14251       hppa*64*|ia64*)
14252         # +Z the default
14253         ;;
14254       *)
14255         lt_prog_compiler_pic_F77='+Z'
14256         ;;
14257       esac
14258       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14259       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14260       ;;
14261
14262     irix5* | irix6* | nonstopux*)
14263       lt_prog_compiler_wl_F77='-Wl,'
14264       # PIC (with -KPIC) is the default.
14265       lt_prog_compiler_static_F77='-non_shared'
14266       ;;
14267
14268     newsos6)
14269       lt_prog_compiler_pic_F77='-KPIC'
14270       lt_prog_compiler_static_F77='-Bstatic'
14271       ;;
14272
14273     linux* | k*bsd*-gnu)
14274       case $cc_basename in
14275       icc* | ecc*)
14276         lt_prog_compiler_wl_F77='-Wl,'
14277         lt_prog_compiler_pic_F77='-KPIC'
14278         lt_prog_compiler_static_F77='-static'
14279         ;;
14280       pgcc* | pgf77* | pgf90* | pgf95*)
14281         # Portland Group compilers (*not* the Pentium gcc compiler,
14282         # which looks to be a dead project)
14283         lt_prog_compiler_wl_F77='-Wl,'
14284         lt_prog_compiler_pic_F77='-fpic'
14285         lt_prog_compiler_static_F77='-Bstatic'
14286         ;;
14287       ccc*)
14288         lt_prog_compiler_wl_F77='-Wl,'
14289         # All Alpha code is PIC.
14290         lt_prog_compiler_static_F77='-non_shared'
14291         ;;
14292       esac
14293       ;;
14294
14295     osf3* | osf4* | osf5*)
14296       lt_prog_compiler_wl_F77='-Wl,'
14297       # All OSF/1 code is PIC.
14298       lt_prog_compiler_static_F77='-non_shared'
14299       ;;
14300
14301     solaris*)
14302       lt_prog_compiler_pic_F77='-KPIC'
14303       lt_prog_compiler_static_F77='-Bstatic'
14304       case $cc_basename in
14305       f77* | f90* | f95*)
14306         lt_prog_compiler_wl_F77='-Qoption ld ';;
14307       *)
14308         lt_prog_compiler_wl_F77='-Wl,';;
14309       esac
14310       ;;
14311
14312     sunos4*)
14313       lt_prog_compiler_wl_F77='-Qoption ld '
14314       lt_prog_compiler_pic_F77='-PIC'
14315       lt_prog_compiler_static_F77='-Bstatic'
14316       ;;
14317
14318     sysv4 | sysv4.2uw2* | sysv4.3*)
14319       lt_prog_compiler_wl_F77='-Wl,'
14320       lt_prog_compiler_pic_F77='-KPIC'
14321       lt_prog_compiler_static_F77='-Bstatic'
14322       ;;
14323
14324     sysv4*MP*)
14325       if test -d /usr/nec ;then
14326         lt_prog_compiler_pic_F77='-Kconform_pic'
14327         lt_prog_compiler_static_F77='-Bstatic'
14328       fi
14329       ;;
14330
14331     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14332       lt_prog_compiler_wl_F77='-Wl,'
14333       lt_prog_compiler_pic_F77='-KPIC'
14334       lt_prog_compiler_static_F77='-Bstatic'
14335       ;;
14336
14337     unicos*)
14338       lt_prog_compiler_wl_F77='-Wl,'
14339       lt_prog_compiler_can_build_shared_F77=no
14340       ;;
14341
14342     uts4*)
14343       lt_prog_compiler_pic_F77='-pic'
14344       lt_prog_compiler_static_F77='-Bstatic'
14345       ;;
14346
14347     *)
14348       lt_prog_compiler_can_build_shared_F77=no
14349       ;;
14350     esac
14351   fi
14352
14353 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14354 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14355
14356 #
14357 # Check to make sure the PIC flag actually works.
14358 #
14359 if test -n "$lt_prog_compiler_pic_F77"; then
14360
14361 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14362 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14363 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14364   echo $ECHO_N "(cached) $ECHO_C" >&6
14365 else
14366   lt_prog_compiler_pic_works_F77=no
14367   ac_outfile=conftest.$ac_objext
14368    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14369    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14370    # Insert the option either (1) after the last *FLAGS variable, or
14371    # (2) before a word containing "conftest.", or (3) at the end.
14372    # Note that $ac_compile itself does not contain backslashes and begins
14373    # with a dollar sign (not a hyphen), so the echo should work correctly.
14374    # The option is referenced via a variable to avoid confusing sed.
14375    lt_compile=`echo "$ac_compile" | $SED \
14376    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14377    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14378    -e 's:$: $lt_compiler_flag:'`
14379    (eval echo "\"\$as_me:14379: $lt_compile\"" >&5)
14380    (eval "$lt_compile" 2>conftest.err)
14381    ac_status=$?
14382    cat conftest.err >&5
14383    echo "$as_me:14383: \$? = $ac_status" >&5
14384    if (exit $ac_status) && test -s "$ac_outfile"; then
14385      # The compiler can only warn and ignore the option if not recognized
14386      # So say no if there are warnings other than the usual output.
14387      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14388      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14389      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14390        lt_prog_compiler_pic_works_F77=yes
14391      fi
14392    fi
14393    $rm conftest*
14394
14395 fi
14396 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14397 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14398
14399 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14400     case $lt_prog_compiler_pic_F77 in
14401      "" | " "*) ;;
14402      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14403      esac
14404 else
14405     lt_prog_compiler_pic_F77=
14406      lt_prog_compiler_can_build_shared_F77=no
14407 fi
14408
14409 fi
14410 case $host_os in
14411   # For platforms which do not support PIC, -DPIC is meaningless:
14412   *djgpp*)
14413     lt_prog_compiler_pic_F77=
14414     ;;
14415   *)
14416     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14417     ;;
14418 esac
14419
14420 #
14421 # Check to make sure the static flag actually works.
14422 #
14423 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14424 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14425 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
14426 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14427   echo $ECHO_N "(cached) $ECHO_C" >&6
14428 else
14429   lt_prog_compiler_static_works_F77=no
14430    save_LDFLAGS="$LDFLAGS"
14431    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14432    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14433    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14434      # The linker can only warn and ignore the option if not recognized
14435      # So say no if there are warnings
14436      if test -s conftest.err; then
14437        # Append any errors to the config.log.
14438        cat conftest.err 1>&5
14439        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14440        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14441        if diff conftest.exp conftest.er2 >/dev/null; then
14442          lt_prog_compiler_static_works_F77=yes
14443        fi
14444      else
14445        lt_prog_compiler_static_works_F77=yes
14446      fi
14447    fi
14448    $rm conftest*
14449    LDFLAGS="$save_LDFLAGS"
14450
14451 fi
14452 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14453 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
14454
14455 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14456     :
14457 else
14458     lt_prog_compiler_static_F77=
14459 fi
14460
14461
14462 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14463 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14464 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14465   echo $ECHO_N "(cached) $ECHO_C" >&6
14466 else
14467   lt_cv_prog_compiler_c_o_F77=no
14468    $rm -r conftest 2>/dev/null
14469    mkdir conftest
14470    cd conftest
14471    mkdir out
14472    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14473
14474    lt_compiler_flag="-o out/conftest2.$ac_objext"
14475    # Insert the option either (1) after the last *FLAGS variable, or
14476    # (2) before a word containing "conftest.", or (3) at the end.
14477    # Note that $ac_compile itself does not contain backslashes and begins
14478    # with a dollar sign (not a hyphen), so the echo should work correctly.
14479    lt_compile=`echo "$ac_compile" | $SED \
14480    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14481    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14482    -e 's:$: $lt_compiler_flag:'`
14483    (eval echo "\"\$as_me:14483: $lt_compile\"" >&5)
14484    (eval "$lt_compile" 2>out/conftest.err)
14485    ac_status=$?
14486    cat out/conftest.err >&5
14487    echo "$as_me:14487: \$? = $ac_status" >&5
14488    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14489    then
14490      # The compiler can only warn and ignore the option if not recognized
14491      # So say no if there are warnings
14492      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14493      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14494      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14495        lt_cv_prog_compiler_c_o_F77=yes
14496      fi
14497    fi
14498    chmod u+w . 2>&5
14499    $rm conftest*
14500    # SGI C++ compiler will create directory out/ii_files/ for
14501    # template instantiation
14502    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14503    $rm out/* && rmdir out
14504    cd ..
14505    rmdir conftest
14506    $rm conftest*
14507
14508 fi
14509 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14510 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14511
14512
14513 hard_links="nottested"
14514 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14515   # do not overwrite the value of need_locks provided by the user
14516   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14517 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14518   hard_links=yes
14519   $rm conftest*
14520   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14521   touch conftest.a
14522   ln conftest.a conftest.b 2>&5 || hard_links=no
14523   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14524   echo "$as_me:$LINENO: result: $hard_links" >&5
14525 echo "${ECHO_T}$hard_links" >&6
14526   if test "$hard_links" = no; then
14527     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14528 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14529     need_locks=warn
14530   fi
14531 else
14532   need_locks=no
14533 fi
14534
14535 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14536 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14537
14538   runpath_var=
14539   allow_undefined_flag_F77=
14540   enable_shared_with_static_runtimes_F77=no
14541   archive_cmds_F77=
14542   archive_expsym_cmds_F77=
14543   old_archive_From_new_cmds_F77=
14544   old_archive_from_expsyms_cmds_F77=
14545   export_dynamic_flag_spec_F77=
14546   whole_archive_flag_spec_F77=
14547   thread_safe_flag_spec_F77=
14548   hardcode_libdir_flag_spec_F77=
14549   hardcode_libdir_flag_spec_ld_F77=
14550   hardcode_libdir_separator_F77=
14551   hardcode_direct_F77=no
14552   hardcode_minus_L_F77=no
14553   hardcode_shlibpath_var_F77=unsupported
14554   link_all_deplibs_F77=unknown
14555   hardcode_automatic_F77=no
14556   module_cmds_F77=
14557   module_expsym_cmds_F77=
14558   always_export_symbols_F77=no
14559   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14560   # include_expsyms should be a list of space-separated symbols to be *always*
14561   # included in the symbol list
14562   include_expsyms_F77=
14563   # exclude_expsyms can be an extended regexp of symbols to exclude
14564   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14565   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14566   # as well as any symbol that contains `d'.
14567   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14568   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14569   # platforms (ab)use it in PIC code, but their linkers get confused if
14570   # the symbol is explicitly referenced.  Since portable code cannot
14571   # rely on this symbol name, it's probably fine to never include it in
14572   # preloaded symbol tables.
14573   extract_expsyms_cmds=
14574   # Just being paranoid about ensuring that cc_basename is set.
14575   for cc_temp in $compiler""; do
14576   case $cc_temp in
14577     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14578     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14579     \-*) ;;
14580     *) break;;
14581   esac
14582 done
14583 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14584
14585   case $host_os in
14586   cygwin* | mingw* | pw32*)
14587     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14588     # When not using gcc, we currently assume that we are using
14589     # Microsoft Visual C++.
14590     if test "$GCC" != yes; then
14591       with_gnu_ld=no
14592     fi
14593     ;;
14594   interix*)
14595     # we just hope/assume this is gcc and not c89 (= MSVC++)
14596     with_gnu_ld=yes
14597     ;;
14598   openbsd*)
14599     with_gnu_ld=no
14600     ;;
14601   esac
14602
14603   ld_shlibs_F77=yes
14604   if test "$with_gnu_ld" = yes; then
14605     # If archive_cmds runs LD, not CC, wlarc should be empty
14606     wlarc='${wl}'
14607
14608     # Set some defaults for GNU ld with shared library support. These
14609     # are reset later if shared libraries are not supported. Putting them
14610     # here allows them to be overridden if necessary.
14611     runpath_var=LD_RUN_PATH
14612     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14613     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14614     # ancient GNU ld didn't support --whole-archive et. al.
14615     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14616         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14617       else
14618         whole_archive_flag_spec_F77=
14619     fi
14620     supports_anon_versioning=no
14621     case `$LD -v 2>/dev/null` in
14622       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14623       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14624       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14625       *\ 2.11.*) ;; # other 2.11 versions
14626       *) supports_anon_versioning=yes ;;
14627     esac
14628
14629     # See if GNU ld supports shared libraries.
14630     case $host_os in
14631     aix3* | aix4* | aix5*)
14632       # On AIX/PPC, the GNU linker is very broken
14633       if test "$host_cpu" != ia64; then
14634         ld_shlibs_F77=no
14635         cat <<EOF 1>&2
14636
14637 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14638 *** to be unable to reliably create shared libraries on AIX.
14639 *** Therefore, libtool is disabling shared libraries support.  If you
14640 *** really care for shared libraries, you may want to modify your PATH
14641 *** so that a non-GNU linker is found, and then restart.
14642
14643 EOF
14644       fi
14645       ;;
14646
14647     amigaos*)
14648       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)'
14649       hardcode_libdir_flag_spec_F77='-L$libdir'
14650       hardcode_minus_L_F77=yes
14651
14652       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14653       # that the semantics of dynamic libraries on AmigaOS, at least up
14654       # to version 4, is to share data among multiple programs linked
14655       # with the same dynamic library.  Since this doesn't match the
14656       # behavior of shared libraries on other platforms, we can't use
14657       # them.
14658       ld_shlibs_F77=no
14659       ;;
14660
14661     beos*)
14662       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14663         allow_undefined_flag_F77=unsupported
14664         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14665         # support --undefined.  This deserves some investigation.  FIXME
14666         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14667       else
14668         ld_shlibs_F77=no
14669       fi
14670       ;;
14671
14672     cygwin* | mingw* | pw32*)
14673       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14674       # as there is no search path for DLLs.
14675       hardcode_libdir_flag_spec_F77='-L$libdir'
14676       allow_undefined_flag_F77=unsupported
14677       always_export_symbols_F77=no
14678       enable_shared_with_static_runtimes_F77=yes
14679       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14680
14681       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14682         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14683         # If the export-symbols file already is a .def file (1st line
14684         # is EXPORTS), use it as is; otherwise, prepend...
14685         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14686           cp $export_symbols $output_objdir/$soname.def;
14687         else
14688           echo EXPORTS > $output_objdir/$soname.def;
14689           cat $export_symbols >> $output_objdir/$soname.def;
14690         fi~
14691         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14692       else
14693         ld_shlibs_F77=no
14694       fi
14695       ;;
14696
14697     interix3*)
14698       hardcode_direct_F77=no
14699       hardcode_shlibpath_var_F77=no
14700       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14701       export_dynamic_flag_spec_F77='${wl}-E'
14702       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14703       # Instead, shared libraries are loaded at an image base (0x10000000 by
14704       # default) and relocated if they conflict, which is a slow very memory
14705       # consuming and fragmenting process.  To avoid this, we pick a random,
14706       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14707       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14708       archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14709       archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14710       ;;
14711
14712     linux* | k*bsd*-gnu)
14713       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14714         tmp_addflag=
14715         case $cc_basename,$host_cpu in
14716         pgcc*)                          # Portland Group C compiler
14717           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'
14718           tmp_addflag=' $pic_flag'
14719           ;;
14720         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14721           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'
14722           tmp_addflag=' $pic_flag -Mnomain' ;;
14723         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14724           tmp_addflag=' -i_dynamic' ;;
14725         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14726           tmp_addflag=' -i_dynamic -nofor_main' ;;
14727         ifc* | ifort*)                  # Intel Fortran compiler
14728           tmp_addflag=' -nofor_main' ;;
14729         esac
14730         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14731
14732         if test $supports_anon_versioning = yes; then
14733           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14734   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14735   $echo "local: *; };" >> $output_objdir/$libname.ver~
14736           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14737         fi
14738         link_all_deplibs_F77=no
14739       else
14740         ld_shlibs_F77=no
14741       fi
14742       ;;
14743
14744     netbsd* | netbsdelf*-gnu)
14745       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14746         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14747         wlarc=
14748       else
14749         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14750         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14751       fi
14752       ;;
14753
14754     solaris*)
14755       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14756         ld_shlibs_F77=no
14757         cat <<EOF 1>&2
14758
14759 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14760 *** create shared libraries on Solaris systems.  Therefore, libtool
14761 *** is disabling shared libraries support.  We urge you to upgrade GNU
14762 *** binutils to release 2.9.1 or newer.  Another option is to modify
14763 *** your PATH or compiler configuration so that the native linker is
14764 *** used, and then restart.
14765
14766 EOF
14767       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14768         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14769         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14770       else
14771         ld_shlibs_F77=no
14772       fi
14773       ;;
14774
14775     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14776       case `$LD -v 2>&1` in
14777         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14778         ld_shlibs_F77=no
14779         cat <<_LT_EOF 1>&2
14780
14781 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14782 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14783 *** is disabling shared libraries support.  We urge you to upgrade GNU
14784 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14785 *** your PATH or compiler configuration so that the native linker is
14786 *** used, and then restart.
14787
14788 _LT_EOF
14789         ;;
14790         *)
14791           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14792             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14793             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14794             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14795           else
14796             ld_shlibs_F77=no
14797           fi
14798         ;;
14799       esac
14800       ;;
14801
14802     sunos4*)
14803       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14804       wlarc=
14805       hardcode_direct_F77=yes
14806       hardcode_shlibpath_var_F77=no
14807       ;;
14808
14809     *)
14810       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14811         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14812         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14813       else
14814         ld_shlibs_F77=no
14815       fi
14816       ;;
14817     esac
14818
14819     if test "$ld_shlibs_F77" = no; then
14820       runpath_var=
14821       hardcode_libdir_flag_spec_F77=
14822       export_dynamic_flag_spec_F77=
14823       whole_archive_flag_spec_F77=
14824     fi
14825   else
14826     # PORTME fill in a description of your system's linker (not GNU ld)
14827     case $host_os in
14828     aix3*)
14829       allow_undefined_flag_F77=unsupported
14830       always_export_symbols_F77=yes
14831       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'
14832       # Note: this linker hardcodes the directories in LIBPATH if there
14833       # are no directories specified by -L.
14834       hardcode_minus_L_F77=yes
14835       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14836         # Neither direct hardcoding nor static linking is supported with a
14837         # broken collect2.
14838         hardcode_direct_F77=unsupported
14839       fi
14840       ;;
14841
14842     aix4* | aix5*)
14843       if test "$host_cpu" = ia64; then
14844         # On IA64, the linker does run time linking by default, so we don't
14845         # have to do anything special.
14846         aix_use_runtimelinking=no
14847         exp_sym_flag='-Bexport'
14848         no_entry_flag=""
14849       else
14850         # If we're using GNU nm, then we don't want the "-C" option.
14851         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14852         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14853           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'
14854         else
14855           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'
14856         fi
14857         aix_use_runtimelinking=no
14858
14859         # Test if we are trying to use run time linking or normal
14860         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14861         # need to do runtime linking.
14862         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14863           for ld_flag in $LDFLAGS; do
14864           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14865             aix_use_runtimelinking=yes
14866             break
14867           fi
14868           done
14869           ;;
14870         esac
14871
14872         exp_sym_flag='-bexport'
14873         no_entry_flag='-bnoentry'
14874       fi
14875
14876       # When large executables or shared objects are built, AIX ld can
14877       # have problems creating the table of contents.  If linking a library
14878       # or program results in "error TOC overflow" add -mminimal-toc to
14879       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14880       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14881
14882       archive_cmds_F77=''
14883       hardcode_direct_F77=yes
14884       hardcode_libdir_separator_F77=':'
14885       link_all_deplibs_F77=yes
14886
14887       if test "$GCC" = yes; then
14888         case $host_os in aix4.[012]|aix4.[012].*)
14889         # We only want to do this on AIX 4.2 and lower, the check
14890         # below for broken collect2 doesn't work under 4.3+
14891           collect2name=`${CC} -print-prog-name=collect2`
14892           if test -f "$collect2name" && \
14893            strings "$collect2name" | grep resolve_lib_name >/dev/null
14894           then
14895           # We have reworked collect2
14896           hardcode_direct_F77=yes
14897           else
14898           # We have old collect2
14899           hardcode_direct_F77=unsupported
14900           # It fails to find uninstalled libraries when the uninstalled
14901           # path is not listed in the libpath.  Setting hardcode_minus_L
14902           # to unsupported forces relinking
14903           hardcode_minus_L_F77=yes
14904           hardcode_libdir_flag_spec_F77='-L$libdir'
14905           hardcode_libdir_separator_F77=
14906           fi
14907           ;;
14908         esac
14909         shared_flag='-shared'
14910         if test "$aix_use_runtimelinking" = yes; then
14911           shared_flag="$shared_flag "'${wl}-G'
14912         fi
14913       else
14914         # not using gcc
14915         if test "$host_cpu" = ia64; then
14916         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14917         # chokes on -Wl,-G. The following line is correct:
14918           shared_flag='-G'
14919         else
14920           if test "$aix_use_runtimelinking" = yes; then
14921             shared_flag='${wl}-G'
14922           else
14923             shared_flag='${wl}-bM:SRE'
14924           fi
14925         fi
14926       fi
14927
14928       # It seems that -bexpall does not export symbols beginning with
14929       # underscore (_), so it is better to generate a list of symbols to export.
14930       always_export_symbols_F77=yes
14931       if test "$aix_use_runtimelinking" = yes; then
14932         # Warning - without using the other runtime loading flags (-brtl),
14933         # -berok will link without error, but may produce a broken library.
14934         allow_undefined_flag_F77='-berok'
14935        # Determine the default libpath from the value encoded in an empty executable.
14936        cat >conftest.$ac_ext <<_ACEOF
14937       program main
14938
14939       end
14940 _ACEOF
14941 rm -f conftest.$ac_objext conftest$ac_exeext
14942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14943   (eval $ac_link) 2>conftest.er1
14944   ac_status=$?
14945   grep -v '^ *+' conftest.er1 >conftest.err
14946   rm -f conftest.er1
14947   cat conftest.err >&5
14948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949   (exit $ac_status); } &&
14950          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
14951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14952   (eval $ac_try) 2>&5
14953   ac_status=$?
14954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955   (exit $ac_status); }; } &&
14956          { ac_try='test -s conftest$ac_exeext'
14957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14958   (eval $ac_try) 2>&5
14959   ac_status=$?
14960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961   (exit $ac_status); }; }; then
14962
14963 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14964 }'`
14965 # Check for a 64-bit object if we didn't find anything.
14966 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; }
14967 }'`; fi
14968 else
14969   echo "$as_me: failed program was:" >&5
14970 sed 's/^/| /' conftest.$ac_ext >&5
14971
14972 fi
14973 rm -f conftest.err conftest.$ac_objext \
14974       conftest$ac_exeext conftest.$ac_ext
14975 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14976
14977        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14978         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14979        else
14980         if test "$host_cpu" = ia64; then
14981           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14982           allow_undefined_flag_F77="-z nodefs"
14983           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14984         else
14985          # Determine the default libpath from the value encoded in an empty executable.
14986          cat >conftest.$ac_ext <<_ACEOF
14987       program main
14988
14989       end
14990 _ACEOF
14991 rm -f conftest.$ac_objext conftest$ac_exeext
14992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14993   (eval $ac_link) 2>conftest.er1
14994   ac_status=$?
14995   grep -v '^ *+' conftest.er1 >conftest.err
14996   rm -f conftest.er1
14997   cat conftest.err >&5
14998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999   (exit $ac_status); } &&
15000          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
15001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15002   (eval $ac_try) 2>&5
15003   ac_status=$?
15004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005   (exit $ac_status); }; } &&
15006          { ac_try='test -s conftest$ac_exeext'
15007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15008   (eval $ac_try) 2>&5
15009   ac_status=$?
15010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15011   (exit $ac_status); }; }; then
15012
15013 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15014 }'`
15015 # Check for a 64-bit object if we didn't find anything.
15016 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; }
15017 }'`; fi
15018 else
15019   echo "$as_me: failed program was:" >&5
15020 sed 's/^/| /' conftest.$ac_ext >&5
15021
15022 fi
15023 rm -f conftest.err conftest.$ac_objext \
15024       conftest$ac_exeext conftest.$ac_ext
15025 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15026
15027          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15028           # Warning - without using the other run time loading flags,
15029           # -berok will link without error, but may produce a broken library.
15030           no_undefined_flag_F77=' ${wl}-bernotok'
15031           allow_undefined_flag_F77=' ${wl}-berok'
15032           # Exported symbols can be pulled into shared objects from archives
15033           whole_archive_flag_spec_F77='$convenience'
15034           archive_cmds_need_lc_F77=yes
15035           # This is similar to how AIX traditionally builds its shared libraries.
15036           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15037         fi
15038       fi
15039       ;;
15040
15041     amigaos*)
15042       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)'
15043       hardcode_libdir_flag_spec_F77='-L$libdir'
15044       hardcode_minus_L_F77=yes
15045       # see comment about different semantics on the GNU ld section
15046       ld_shlibs_F77=no
15047       ;;
15048
15049     bsdi[45]*)
15050       export_dynamic_flag_spec_F77=-rdynamic
15051       ;;
15052
15053     cygwin* | mingw* | pw32*)
15054       # When not using gcc, we currently assume that we are using
15055       # Microsoft Visual C++.
15056       # hardcode_libdir_flag_spec is actually meaningless, as there is
15057       # no search path for DLLs.
15058       hardcode_libdir_flag_spec_F77=' '
15059       allow_undefined_flag_F77=unsupported
15060       # Tell ltmain to make .lib files, not .a files.
15061       libext=lib
15062       # Tell ltmain to make .dll files, not .so files.
15063       shrext_cmds=".dll"
15064       # FIXME: Setting linknames here is a bad hack.
15065       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15066       # The linker will automatically build a .lib file if we build a DLL.
15067       old_archive_From_new_cmds_F77='true'
15068       # FIXME: Should let the user specify the lib program.
15069       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15070       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15071       enable_shared_with_static_runtimes_F77=yes
15072       ;;
15073
15074     darwin* | rhapsody*)
15075       case $host_os in
15076         rhapsody* | darwin1.[012])
15077          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15078          ;;
15079        *) # Darwin 1.3 on
15080          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15081            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15082          else
15083            case ${MACOSX_DEPLOYMENT_TARGET} in
15084              10.[012])
15085                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15086                ;;
15087              10.*)
15088                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15089                ;;
15090            esac
15091          fi
15092          ;;
15093       esac
15094       archive_cmds_need_lc_F77=no
15095       hardcode_direct_F77=no
15096       hardcode_automatic_F77=yes
15097       hardcode_shlibpath_var_F77=unsupported
15098       whole_archive_flag_spec_F77=''
15099       link_all_deplibs_F77=yes
15100     if test "$GCC" = yes ; then
15101         output_verbose_link_cmd='echo'
15102         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15103       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15104       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15105       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}'
15106       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}'
15107     else
15108       case $cc_basename in
15109         xlc*)
15110          output_verbose_link_cmd='echo'
15111          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15112          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15113           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15114          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}'
15115           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}'
15116           ;;
15117        *)
15118          ld_shlibs_F77=no
15119           ;;
15120       esac
15121     fi
15122       ;;
15123
15124     dgux*)
15125       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15126       hardcode_libdir_flag_spec_F77='-L$libdir'
15127       hardcode_shlibpath_var_F77=no
15128       ;;
15129
15130     freebsd1*)
15131       ld_shlibs_F77=no
15132       ;;
15133
15134     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15135     # support.  Future versions do this automatically, but an explicit c++rt0.o
15136     # does not break anything, and helps significantly (at the cost of a little
15137     # extra space).
15138     freebsd2.2*)
15139       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15140       hardcode_libdir_flag_spec_F77='-R$libdir'
15141       hardcode_direct_F77=yes
15142       hardcode_shlibpath_var_F77=no
15143       ;;
15144
15145     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15146     freebsd2*)
15147       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15148       hardcode_direct_F77=yes
15149       hardcode_minus_L_F77=yes
15150       hardcode_shlibpath_var_F77=no
15151       ;;
15152
15153     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15154     freebsd* | dragonfly*)
15155       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15156       hardcode_libdir_flag_spec_F77='-R$libdir'
15157       hardcode_direct_F77=yes
15158       hardcode_shlibpath_var_F77=no
15159       ;;
15160
15161     hpux9*)
15162       if test "$GCC" = yes; then
15163         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'
15164       else
15165         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'
15166       fi
15167       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15168       hardcode_libdir_separator_F77=:
15169       hardcode_direct_F77=yes
15170
15171       # hardcode_minus_L: Not really in the search PATH,
15172       # but as the default location of the library.
15173       hardcode_minus_L_F77=yes
15174       export_dynamic_flag_spec_F77='${wl}-E'
15175       ;;
15176
15177     hpux10*)
15178       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15179         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15180       else
15181         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15182       fi
15183       if test "$with_gnu_ld" = no; then
15184         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15185         hardcode_libdir_separator_F77=:
15186
15187         hardcode_direct_F77=yes
15188         export_dynamic_flag_spec_F77='${wl}-E'
15189
15190         # hardcode_minus_L: Not really in the search PATH,
15191         # but as the default location of the library.
15192         hardcode_minus_L_F77=yes
15193       fi
15194       ;;
15195
15196     hpux11*)
15197       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15198         case $host_cpu in
15199         hppa*64*)
15200           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15201           ;;
15202         ia64*)
15203           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15204           ;;
15205         *)
15206           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15207           ;;
15208         esac
15209       else
15210         case $host_cpu in
15211         hppa*64*)
15212           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15213           ;;
15214         ia64*)
15215           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15216           ;;
15217         *)
15218           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15219           ;;
15220         esac
15221       fi
15222       if test "$with_gnu_ld" = no; then
15223         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15224         hardcode_libdir_separator_F77=:
15225
15226         case $host_cpu in
15227         hppa*64*|ia64*)
15228           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15229           hardcode_direct_F77=no
15230           hardcode_shlibpath_var_F77=no
15231           ;;
15232         *)
15233           hardcode_direct_F77=yes
15234           export_dynamic_flag_spec_F77='${wl}-E'
15235
15236           # hardcode_minus_L: Not really in the search PATH,
15237           # but as the default location of the library.
15238           hardcode_minus_L_F77=yes
15239           ;;
15240         esac
15241       fi
15242       ;;
15243
15244     irix5* | irix6* | nonstopux*)
15245       if test "$GCC" = yes; then
15246         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'
15247       else
15248         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'
15249         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15250       fi
15251       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15252       hardcode_libdir_separator_F77=:
15253       link_all_deplibs_F77=yes
15254       ;;
15255
15256     netbsd* | netbsdelf*-gnu)
15257       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15258         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15259       else
15260         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15261       fi
15262       hardcode_libdir_flag_spec_F77='-R$libdir'
15263       hardcode_direct_F77=yes
15264       hardcode_shlibpath_var_F77=no
15265       ;;
15266
15267     newsos6)
15268       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15269       hardcode_direct_F77=yes
15270       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15271       hardcode_libdir_separator_F77=:
15272       hardcode_shlibpath_var_F77=no
15273       ;;
15274
15275     openbsd*)
15276       hardcode_direct_F77=yes
15277       hardcode_shlibpath_var_F77=no
15278       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15279         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15280         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15281         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15282         export_dynamic_flag_spec_F77='${wl}-E'
15283       else
15284        case $host_os in
15285          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15286            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15287            hardcode_libdir_flag_spec_F77='-R$libdir'
15288            ;;
15289          *)
15290            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15291            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15292            ;;
15293        esac
15294       fi
15295       ;;
15296
15297     os2*)
15298       hardcode_libdir_flag_spec_F77='-L$libdir'
15299       hardcode_minus_L_F77=yes
15300       allow_undefined_flag_F77=unsupported
15301       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'
15302       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15303       ;;
15304
15305     osf3*)
15306       if test "$GCC" = yes; then
15307         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15308         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'
15309       else
15310         allow_undefined_flag_F77=' -expect_unresolved \*'
15311         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'
15312       fi
15313       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15314       hardcode_libdir_separator_F77=:
15315       ;;
15316
15317     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15318       if test "$GCC" = yes; then
15319         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15320         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'
15321         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15322       else
15323         allow_undefined_flag_F77=' -expect_unresolved \*'
15324         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'
15325         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~
15326         $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'
15327
15328         # Both c and cxx compiler support -rpath directly
15329         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15330       fi
15331       hardcode_libdir_separator_F77=:
15332       ;;
15333
15334     solaris*)
15335       no_undefined_flag_F77=' -z text'
15336       if test "$GCC" = yes; then
15337         wlarc='${wl}'
15338         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15339         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15340           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15341       else
15342         wlarc=''
15343         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15344         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15345         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15346       fi
15347       hardcode_libdir_flag_spec_F77='-R$libdir'
15348       hardcode_shlibpath_var_F77=no
15349       case $host_os in
15350       solaris2.[0-5] | solaris2.[0-5].*) ;;
15351       *)
15352         # The compiler driver will combine linker options so we
15353         # cannot just pass the convience library names through
15354         # without $wl, iff we do not link with $LD.
15355         # Luckily, gcc supports the same syntax we need for Sun Studio.
15356         # Supported since Solaris 2.6 (maybe 2.5.1?)
15357         case $wlarc in
15358         '')
15359           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15360         *)
15361           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' ;;
15362         esac ;;
15363       esac
15364       link_all_deplibs_F77=yes
15365       ;;
15366
15367     sunos4*)
15368       if test "x$host_vendor" = xsequent; then
15369         # Use $CC to link under sequent, because it throws in some extra .o
15370         # files that make .init and .fini sections work.
15371         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15372       else
15373         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15374       fi
15375       hardcode_libdir_flag_spec_F77='-L$libdir'
15376       hardcode_direct_F77=yes
15377       hardcode_minus_L_F77=yes
15378       hardcode_shlibpath_var_F77=no
15379       ;;
15380
15381     sysv4)
15382       case $host_vendor in
15383         sni)
15384           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15385           hardcode_direct_F77=yes # is this really true???
15386         ;;
15387         siemens)
15388           ## LD is ld it makes a PLAMLIB
15389           ## CC just makes a GrossModule.
15390           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15391           reload_cmds_F77='$CC -r -o $output$reload_objs'
15392           hardcode_direct_F77=no
15393         ;;
15394         motorola)
15395           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15396           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15397         ;;
15398       esac
15399       runpath_var='LD_RUN_PATH'
15400       hardcode_shlibpath_var_F77=no
15401       ;;
15402
15403     sysv4.3*)
15404       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15405       hardcode_shlibpath_var_F77=no
15406       export_dynamic_flag_spec_F77='-Bexport'
15407       ;;
15408
15409     sysv4*MP*)
15410       if test -d /usr/nec; then
15411         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15412         hardcode_shlibpath_var_F77=no
15413         runpath_var=LD_RUN_PATH
15414         hardcode_runpath_var=yes
15415         ld_shlibs_F77=yes
15416       fi
15417       ;;
15418
15419     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15420       no_undefined_flag_F77='${wl}-z,text'
15421       archive_cmds_need_lc_F77=no
15422       hardcode_shlibpath_var_F77=no
15423       runpath_var='LD_RUN_PATH'
15424
15425       if test "$GCC" = yes; then
15426         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15427         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15428       else
15429         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15430         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15431       fi
15432       ;;
15433
15434     sysv5* | sco3.2v5* | sco5v6*)
15435       # Note: We can NOT use -z defs as we might desire, because we do not
15436       # link with -lc, and that would cause any symbols used from libc to
15437       # always be unresolved, which means just about no library would
15438       # ever link correctly.  If we're not using GNU ld we use -z text
15439       # though, which does catch some bad symbols but isn't as heavy-handed
15440       # as -z defs.
15441       no_undefined_flag_F77='${wl}-z,text'
15442       allow_undefined_flag_F77='${wl}-z,nodefs'
15443       archive_cmds_need_lc_F77=no
15444       hardcode_shlibpath_var_F77=no
15445       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15446       hardcode_libdir_separator_F77=':'
15447       link_all_deplibs_F77=yes
15448       export_dynamic_flag_spec_F77='${wl}-Bexport'
15449       runpath_var='LD_RUN_PATH'
15450
15451       if test "$GCC" = yes; then
15452         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15453         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15454       else
15455         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15456         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15457       fi
15458       ;;
15459
15460     uts4*)
15461       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15462       hardcode_libdir_flag_spec_F77='-L$libdir'
15463       hardcode_shlibpath_var_F77=no
15464       ;;
15465
15466     *)
15467       ld_shlibs_F77=no
15468       ;;
15469     esac
15470   fi
15471
15472 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15473 echo "${ECHO_T}$ld_shlibs_F77" >&6
15474 test "$ld_shlibs_F77" = no && can_build_shared=no
15475
15476 #
15477 # Do we need to explicitly link libc?
15478 #
15479 case "x$archive_cmds_need_lc_F77" in
15480 x|xyes)
15481   # Assume -lc should be added
15482   archive_cmds_need_lc_F77=yes
15483
15484   if test "$enable_shared" = yes && test "$GCC" = yes; then
15485     case $archive_cmds_F77 in
15486     *'~'*)
15487       # FIXME: we may have to deal with multi-command sequences.
15488       ;;
15489     '$CC '*)
15490       # Test whether the compiler implicitly links with -lc since on some
15491       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15492       # to ld, don't add -lc before -lgcc.
15493       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15494 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15495       $rm conftest*
15496       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15497
15498       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15499   (eval $ac_compile) 2>&5
15500   ac_status=$?
15501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502   (exit $ac_status); } 2>conftest.err; then
15503         soname=conftest
15504         lib=conftest
15505         libobjs=conftest.$ac_objext
15506         deplibs=
15507         wl=$lt_prog_compiler_wl_F77
15508         pic_flag=$lt_prog_compiler_pic_F77
15509         compiler_flags=-v
15510         linker_flags=-v
15511         verstring=
15512         output_objdir=.
15513         libname=conftest
15514         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15515         allow_undefined_flag_F77=
15516         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15517   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15518   ac_status=$?
15519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520   (exit $ac_status); }
15521         then
15522           archive_cmds_need_lc_F77=no
15523         else
15524           archive_cmds_need_lc_F77=yes
15525         fi
15526         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15527       else
15528         cat conftest.err 1>&5
15529       fi
15530       $rm conftest*
15531       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15532 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15533       ;;
15534     esac
15535   fi
15536   ;;
15537 esac
15538
15539 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15540 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15541 library_names_spec=
15542 libname_spec='lib$name'
15543 soname_spec=
15544 shrext_cmds=".so"
15545 postinstall_cmds=
15546 postuninstall_cmds=
15547 finish_cmds=
15548 finish_eval=
15549 shlibpath_var=
15550 shlibpath_overrides_runpath=unknown
15551 version_type=none
15552 dynamic_linker="$host_os ld.so"
15553 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15554 if test "$GCC" = yes; then
15555   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15556   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15557     # if the path contains ";" then we assume it to be the separator
15558     # otherwise default to the standard path separator (i.e. ":") - it is
15559     # assumed that no part of a normal pathname contains ";" but that should
15560     # okay in the real world where ";" in dirpaths is itself problematic.
15561     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15562   else
15563     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15564   fi
15565 else
15566   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15567 fi
15568 need_lib_prefix=unknown
15569 hardcode_into_libs=no
15570
15571 # when you set need_version to no, make sure it does not cause -set_version
15572 # flags to be left without arguments
15573 need_version=unknown
15574
15575 case $host_os in
15576 aix3*)
15577   version_type=linux
15578   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15579   shlibpath_var=LIBPATH
15580
15581   # AIX 3 has no versioning support, so we append a major version to the name.
15582   soname_spec='${libname}${release}${shared_ext}$major'
15583   ;;
15584
15585 aix4* | aix5*)
15586   version_type=linux
15587   need_lib_prefix=no
15588   need_version=no
15589   hardcode_into_libs=yes
15590   if test "$host_cpu" = ia64; then
15591     # AIX 5 supports IA64
15592     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15593     shlibpath_var=LD_LIBRARY_PATH
15594   else
15595     # With GCC up to 2.95.x, collect2 would create an import file
15596     # for dependence libraries.  The import file would start with
15597     # the line `#! .'.  This would cause the generated library to
15598     # depend on `.', always an invalid library.  This was fixed in
15599     # development snapshots of GCC prior to 3.0.
15600     case $host_os in
15601       aix4 | aix4.[01] | aix4.[01].*)
15602       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15603            echo ' yes '
15604            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15605         :
15606       else
15607         can_build_shared=no
15608       fi
15609       ;;
15610     esac
15611     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15612     # soname into executable. Probably we can add versioning support to
15613     # collect2, so additional links can be useful in future.
15614     if test "$aix_use_runtimelinking" = yes; then
15615       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15616       # instead of lib<name>.a to let people know that these are not
15617       # typical AIX shared libraries.
15618       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15619     else
15620       # We preserve .a as extension for shared libraries through AIX4.2
15621       # and later when we are not doing run time linking.
15622       library_names_spec='${libname}${release}.a $libname.a'
15623       soname_spec='${libname}${release}${shared_ext}$major'
15624     fi
15625     shlibpath_var=LIBPATH
15626   fi
15627   ;;
15628
15629 amigaos*)
15630   library_names_spec='$libname.ixlibrary $libname.a'
15631   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15632   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'
15633   ;;
15634
15635 beos*)
15636   library_names_spec='${libname}${shared_ext}'
15637   dynamic_linker="$host_os ld.so"
15638   shlibpath_var=LIBRARY_PATH
15639   ;;
15640
15641 bsdi[45]*)
15642   version_type=linux
15643   need_version=no
15644   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15645   soname_spec='${libname}${release}${shared_ext}$major'
15646   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15647   shlibpath_var=LD_LIBRARY_PATH
15648   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15649   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15650   # the default ld.so.conf also contains /usr/contrib/lib and
15651   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15652   # libtool to hard-code these into programs
15653   ;;
15654
15655 cygwin* | mingw* | pw32*)
15656   version_type=windows
15657   shrext_cmds=".dll"
15658   need_version=no
15659   need_lib_prefix=no
15660
15661   case $GCC,$host_os in
15662   yes,cygwin* | yes,mingw* | yes,pw32*)
15663     library_names_spec='$libname.dll.a'
15664     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15665     postinstall_cmds='base_file=`basename \${file}`~
15666       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15667       dldir=$destdir/`dirname \$dlpath`~
15668       test -d \$dldir || mkdir -p \$dldir~
15669       $install_prog $dir/$dlname \$dldir/$dlname~
15670       chmod a+x \$dldir/$dlname'
15671     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15672       dlpath=$dir/\$dldll~
15673        $rm \$dlpath'
15674     shlibpath_overrides_runpath=yes
15675
15676     case $host_os in
15677     cygwin*)
15678       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15679       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15680       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15681       ;;
15682     mingw*)
15683       # MinGW DLLs use traditional 'lib' prefix
15684       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15685       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15686       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15687         # It is most probably a Windows format PATH printed by
15688         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15689         # path with ; separators, and with drive letters. We can handle the
15690         # drive letters (cygwin fileutils understands them), so leave them,
15691         # especially as we might pass files found there to a mingw objdump,
15692         # which wouldn't understand a cygwinified path. Ahh.
15693         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15694       else
15695         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15696       fi
15697       ;;
15698     pw32*)
15699       # pw32 DLLs use 'pw' prefix rather than 'lib'
15700       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15701       ;;
15702     esac
15703     ;;
15704
15705   *)
15706     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15707     ;;
15708   esac
15709   dynamic_linker='Win32 ld.exe'
15710   # FIXME: first we should search . and the directory the executable is in
15711   shlibpath_var=PATH
15712   ;;
15713
15714 darwin* | rhapsody*)
15715   dynamic_linker="$host_os dyld"
15716   version_type=darwin
15717   need_lib_prefix=no
15718   need_version=no
15719   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15720   soname_spec='${libname}${release}${major}$shared_ext'
15721   shlibpath_overrides_runpath=yes
15722   shlibpath_var=DYLD_LIBRARY_PATH
15723   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15724   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15725   if test "$GCC" = yes; then
15726     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"`
15727   else
15728     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15729   fi
15730   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15731   ;;
15732
15733 dgux*)
15734   version_type=linux
15735   need_lib_prefix=no
15736   need_version=no
15737   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15738   soname_spec='${libname}${release}${shared_ext}$major'
15739   shlibpath_var=LD_LIBRARY_PATH
15740   ;;
15741
15742 freebsd1*)
15743   dynamic_linker=no
15744   ;;
15745
15746 freebsd* | dragonfly*)
15747   # DragonFly does not have aout.  When/if they implement a new
15748   # versioning mechanism, adjust this.
15749   if test -x /usr/bin/objformat; then
15750     objformat=`/usr/bin/objformat`
15751   else
15752     case $host_os in
15753     freebsd[123]*) objformat=aout ;;
15754     *) objformat=elf ;;
15755     esac
15756   fi
15757   version_type=freebsd-$objformat
15758   case $version_type in
15759     freebsd-elf*)
15760       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15761       need_version=no
15762       need_lib_prefix=no
15763       ;;
15764     freebsd-*)
15765       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15766       need_version=yes
15767       ;;
15768   esac
15769   shlibpath_var=LD_LIBRARY_PATH
15770   case $host_os in
15771   freebsd2*)
15772     shlibpath_overrides_runpath=yes
15773     ;;
15774   freebsd3.[01]* | freebsdelf3.[01]*)
15775     shlibpath_overrides_runpath=yes
15776     hardcode_into_libs=yes
15777     ;;
15778   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15779   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15780     shlibpath_overrides_runpath=no
15781     hardcode_into_libs=yes
15782     ;;
15783   freebsd*) # from 4.6 on
15784     shlibpath_overrides_runpath=yes
15785     hardcode_into_libs=yes
15786     ;;
15787   esac
15788   ;;
15789
15790 gnu*)
15791   version_type=linux
15792   need_lib_prefix=no
15793   need_version=no
15794   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15795   soname_spec='${libname}${release}${shared_ext}$major'
15796   shlibpath_var=LD_LIBRARY_PATH
15797   hardcode_into_libs=yes
15798   ;;
15799
15800 hpux9* | hpux10* | hpux11*)
15801   # Give a soname corresponding to the major version so that dld.sl refuses to
15802   # link against other versions.
15803   version_type=sunos
15804   need_lib_prefix=no
15805   need_version=no
15806   case $host_cpu in
15807   ia64*)
15808     shrext_cmds='.so'
15809     hardcode_into_libs=yes
15810     dynamic_linker="$host_os dld.so"
15811     shlibpath_var=LD_LIBRARY_PATH
15812     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15813     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15814     soname_spec='${libname}${release}${shared_ext}$major'
15815     if test "X$HPUX_IA64_MODE" = X32; then
15816       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15817     else
15818       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15819     fi
15820     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15821     ;;
15822    hppa*64*)
15823      shrext_cmds='.sl'
15824      hardcode_into_libs=yes
15825      dynamic_linker="$host_os dld.sl"
15826      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15827      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15828      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15829      soname_spec='${libname}${release}${shared_ext}$major'
15830      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15831      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15832      ;;
15833    *)
15834     shrext_cmds='.sl'
15835     dynamic_linker="$host_os dld.sl"
15836     shlibpath_var=SHLIB_PATH
15837     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15838     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15839     soname_spec='${libname}${release}${shared_ext}$major'
15840     ;;
15841   esac
15842   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15843   postinstall_cmds='chmod 555 $lib'
15844   ;;
15845
15846 interix3*)
15847   version_type=linux
15848   need_lib_prefix=no
15849   need_version=no
15850   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15851   soname_spec='${libname}${release}${shared_ext}$major'
15852   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15853   shlibpath_var=LD_LIBRARY_PATH
15854   shlibpath_overrides_runpath=no
15855   hardcode_into_libs=yes
15856   ;;
15857
15858 irix5* | irix6* | nonstopux*)
15859   case $host_os in
15860     nonstopux*) version_type=nonstopux ;;
15861     *)
15862         if test "$lt_cv_prog_gnu_ld" = yes; then
15863                 version_type=linux
15864         else
15865                 version_type=irix
15866         fi ;;
15867   esac
15868   need_lib_prefix=no
15869   need_version=no
15870   soname_spec='${libname}${release}${shared_ext}$major'
15871   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15872   case $host_os in
15873   irix5* | nonstopux*)
15874     libsuff= shlibsuff=
15875     ;;
15876   *)
15877     case $LD in # libtool.m4 will add one of these switches to LD
15878     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15879       libsuff= shlibsuff= libmagic=32-bit;;
15880     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15881       libsuff=32 shlibsuff=N32 libmagic=N32;;
15882     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15883       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15884     *) libsuff= shlibsuff= libmagic=never-match;;
15885     esac
15886     ;;
15887   esac
15888   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15889   shlibpath_overrides_runpath=no
15890   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15891   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15892   hardcode_into_libs=yes
15893   ;;
15894
15895 # No shared lib support for Linux oldld, aout, or coff.
15896 linux*oldld* | linux*aout* | linux*coff*)
15897   dynamic_linker=no
15898   ;;
15899
15900 # This must be Linux ELF.
15901 linux* | k*bsd*-gnu)
15902   version_type=linux
15903   need_lib_prefix=no
15904   need_version=no
15905   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15906   soname_spec='${libname}${release}${shared_ext}$major'
15907   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15908   shlibpath_var=LD_LIBRARY_PATH
15909   shlibpath_overrides_runpath=no
15910   # This implies no fast_install, which is unacceptable.
15911   # Some rework will be needed to allow for fast_install
15912   # before this can be enabled.
15913   hardcode_into_libs=yes
15914
15915   # Append ld.so.conf contents to the search path
15916   if test -f /etc/ld.so.conf; then
15917     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' ' '`
15918     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15919   fi
15920
15921   # We used to test for /lib/ld.so.1 and disable shared libraries on
15922   # powerpc, because MkLinux only supported shared libraries with the
15923   # GNU dynamic linker.  Since this was broken with cross compilers,
15924   # most powerpc-linux boxes support dynamic linking these days and
15925   # people can always --disable-shared, the test was removed, and we
15926   # assume the GNU/Linux dynamic linker is in use.
15927   dynamic_linker='GNU/Linux ld.so'
15928   ;;
15929
15930 netbsdelf*-gnu)
15931   version_type=linux
15932   need_lib_prefix=no
15933   need_version=no
15934   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15935   soname_spec='${libname}${release}${shared_ext}$major'
15936   shlibpath_var=LD_LIBRARY_PATH
15937   shlibpath_overrides_runpath=no
15938   hardcode_into_libs=yes
15939   dynamic_linker='NetBSD ld.elf_so'
15940   ;;
15941
15942 netbsd*)
15943   version_type=sunos
15944   need_lib_prefix=no
15945   need_version=no
15946   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15947     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15948     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15949     dynamic_linker='NetBSD (a.out) ld.so'
15950   else
15951     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15952     soname_spec='${libname}${release}${shared_ext}$major'
15953     dynamic_linker='NetBSD ld.elf_so'
15954   fi
15955   shlibpath_var=LD_LIBRARY_PATH
15956   shlibpath_overrides_runpath=yes
15957   hardcode_into_libs=yes
15958   ;;
15959
15960 newsos6)
15961   version_type=linux
15962   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15963   shlibpath_var=LD_LIBRARY_PATH
15964   shlibpath_overrides_runpath=yes
15965   ;;
15966
15967 nto-qnx*)
15968   version_type=linux
15969   need_lib_prefix=no
15970   need_version=no
15971   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15972   soname_spec='${libname}${release}${shared_ext}$major'
15973   shlibpath_var=LD_LIBRARY_PATH
15974   shlibpath_overrides_runpath=yes
15975   ;;
15976
15977 openbsd*)
15978   version_type=sunos
15979   sys_lib_dlsearch_path_spec="/usr/lib"
15980   need_lib_prefix=no
15981   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15982   case $host_os in
15983     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15984     *)                         need_version=no  ;;
15985   esac
15986   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15987   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15988   shlibpath_var=LD_LIBRARY_PATH
15989   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15990     case $host_os in
15991       openbsd2.[89] | openbsd2.[89].*)
15992         shlibpath_overrides_runpath=no
15993         ;;
15994       *)
15995         shlibpath_overrides_runpath=yes
15996         ;;
15997       esac
15998   else
15999     shlibpath_overrides_runpath=yes
16000   fi
16001   ;;
16002
16003 os2*)
16004   libname_spec='$name'
16005   shrext_cmds=".dll"
16006   need_lib_prefix=no
16007   library_names_spec='$libname${shared_ext} $libname.a'
16008   dynamic_linker='OS/2 ld.exe'
16009   shlibpath_var=LIBPATH
16010   ;;
16011
16012 osf3* | osf4* | osf5*)
16013   version_type=osf
16014   need_lib_prefix=no
16015   need_version=no
16016   soname_spec='${libname}${release}${shared_ext}$major'
16017   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16018   shlibpath_var=LD_LIBRARY_PATH
16019   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16020   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16021   ;;
16022
16023 solaris*)
16024   version_type=linux
16025   need_lib_prefix=no
16026   need_version=no
16027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16028   soname_spec='${libname}${release}${shared_ext}$major'
16029   shlibpath_var=LD_LIBRARY_PATH
16030   shlibpath_overrides_runpath=yes
16031   hardcode_into_libs=yes
16032   # ldd complains unless libraries are executable
16033   postinstall_cmds='chmod +x $lib'
16034   ;;
16035
16036 sunos4*)
16037   version_type=sunos
16038   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16039   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16040   shlibpath_var=LD_LIBRARY_PATH
16041   shlibpath_overrides_runpath=yes
16042   if test "$with_gnu_ld" = yes; then
16043     need_lib_prefix=no
16044   fi
16045   need_version=yes
16046   ;;
16047
16048 sysv4 | sysv4.3*)
16049   version_type=linux
16050   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16051   soname_spec='${libname}${release}${shared_ext}$major'
16052   shlibpath_var=LD_LIBRARY_PATH
16053   case $host_vendor in
16054     sni)
16055       shlibpath_overrides_runpath=no
16056       need_lib_prefix=no
16057       export_dynamic_flag_spec='${wl}-Blargedynsym'
16058       runpath_var=LD_RUN_PATH
16059       ;;
16060     siemens)
16061       need_lib_prefix=no
16062       ;;
16063     motorola)
16064       need_lib_prefix=no
16065       need_version=no
16066       shlibpath_overrides_runpath=no
16067       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16068       ;;
16069   esac
16070   ;;
16071
16072 sysv4*MP*)
16073   if test -d /usr/nec ;then
16074     version_type=linux
16075     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16076     soname_spec='$libname${shared_ext}.$major'
16077     shlibpath_var=LD_LIBRARY_PATH
16078   fi
16079   ;;
16080
16081 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16082   version_type=freebsd-elf
16083   need_lib_prefix=no
16084   need_version=no
16085   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16086   soname_spec='${libname}${release}${shared_ext}$major'
16087   shlibpath_var=LD_LIBRARY_PATH
16088   hardcode_into_libs=yes
16089   if test "$with_gnu_ld" = yes; then
16090     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16091     shlibpath_overrides_runpath=no
16092   else
16093     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16094     shlibpath_overrides_runpath=yes
16095     case $host_os in
16096       sco3.2v5*)
16097         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16098         ;;
16099     esac
16100   fi
16101   sys_lib_dlsearch_path_spec='/usr/lib'
16102   ;;
16103
16104 uts4*)
16105   version_type=linux
16106   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16107   soname_spec='${libname}${release}${shared_ext}$major'
16108   shlibpath_var=LD_LIBRARY_PATH
16109   ;;
16110
16111 *)
16112   dynamic_linker=no
16113   ;;
16114 esac
16115 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16116 echo "${ECHO_T}$dynamic_linker" >&6
16117 test "$dynamic_linker" = no && can_build_shared=no
16118
16119 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16120 if test "$GCC" = yes; then
16121   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16122 fi
16123
16124 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16125 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16126 hardcode_action_F77=
16127 if test -n "$hardcode_libdir_flag_spec_F77" || \
16128    test -n "$runpath_var_F77" || \
16129    test "X$hardcode_automatic_F77" = "Xyes" ; then
16130
16131   # We can hardcode non-existant directories.
16132   if test "$hardcode_direct_F77" != no &&
16133      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16134      # have to relink, otherwise we might link with an installed library
16135      # when we should be linking with a yet-to-be-installed one
16136      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16137      test "$hardcode_minus_L_F77" != no; then
16138     # Linking always hardcodes the temporary library directory.
16139     hardcode_action_F77=relink
16140   else
16141     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16142     hardcode_action_F77=immediate
16143   fi
16144 else
16145   # We cannot hardcode anything, or else we can only hardcode existing
16146   # directories.
16147   hardcode_action_F77=unsupported
16148 fi
16149 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16150 echo "${ECHO_T}$hardcode_action_F77" >&6
16151
16152 if test "$hardcode_action_F77" = relink; then
16153   # Fast installation is not supported
16154   enable_fast_install=no
16155 elif test "$shlibpath_overrides_runpath" = yes ||
16156      test "$enable_shared" = no; then
16157   # Fast installation is not necessary
16158   enable_fast_install=needless
16159 fi
16160
16161
16162 # The else clause should only fire when bootstrapping the
16163 # libtool distribution, otherwise you forgot to ship ltmain.sh
16164 # with your package, and you will get complaints that there are
16165 # no rules to generate ltmain.sh.
16166 if test -f "$ltmain"; then
16167   # See if we are running on zsh, and set the options which allow our commands through
16168   # without removal of \ escapes.
16169   if test -n "${ZSH_VERSION+set}" ; then
16170     setopt NO_GLOB_SUBST
16171   fi
16172   # Now quote all the things that may contain metacharacters while being
16173   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16174   # variables and quote the copies for generation of the libtool script.
16175   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16176     SED SHELL STRIP \
16177     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16178     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16179     deplibs_check_method reload_flag reload_cmds need_locks \
16180     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16181     lt_cv_sys_global_symbol_to_c_name_address \
16182     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16183     old_postinstall_cmds old_postuninstall_cmds \
16184     compiler_F77 \
16185     CC_F77 \
16186     LD_F77 \
16187     lt_prog_compiler_wl_F77 \
16188     lt_prog_compiler_pic_F77 \
16189     lt_prog_compiler_static_F77 \
16190     lt_prog_compiler_no_builtin_flag_F77 \
16191     export_dynamic_flag_spec_F77 \
16192     thread_safe_flag_spec_F77 \
16193     whole_archive_flag_spec_F77 \
16194     enable_shared_with_static_runtimes_F77 \
16195     old_archive_cmds_F77 \
16196     old_archive_from_new_cmds_F77 \
16197     predep_objects_F77 \
16198     postdep_objects_F77 \
16199     predeps_F77 \
16200     postdeps_F77 \
16201     compiler_lib_search_path_F77 \
16202     archive_cmds_F77 \
16203     archive_expsym_cmds_F77 \
16204     postinstall_cmds_F77 \
16205     postuninstall_cmds_F77 \
16206     old_archive_from_expsyms_cmds_F77 \
16207     allow_undefined_flag_F77 \
16208     no_undefined_flag_F77 \
16209     export_symbols_cmds_F77 \
16210     hardcode_libdir_flag_spec_F77 \
16211     hardcode_libdir_flag_spec_ld_F77 \
16212     hardcode_libdir_separator_F77 \
16213     hardcode_automatic_F77 \
16214     module_cmds_F77 \
16215     module_expsym_cmds_F77 \
16216     lt_cv_prog_compiler_c_o_F77 \
16217     exclude_expsyms_F77 \
16218     include_expsyms_F77; do
16219
16220     case $var in
16221     old_archive_cmds_F77 | \
16222     old_archive_from_new_cmds_F77 | \
16223     archive_cmds_F77 | \
16224     archive_expsym_cmds_F77 | \
16225     module_cmds_F77 | \
16226     module_expsym_cmds_F77 | \
16227     old_archive_from_expsyms_cmds_F77 | \
16228     export_symbols_cmds_F77 | \
16229     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16230     postinstall_cmds | postuninstall_cmds | \
16231     old_postinstall_cmds | old_postuninstall_cmds | \
16232     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16233       # Double-quote double-evaled strings.
16234       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16235       ;;
16236     *)
16237       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16238       ;;
16239     esac
16240   done
16241
16242   case $lt_echo in
16243   *'\$0 --fallback-echo"')
16244     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16245     ;;
16246   esac
16247
16248 cfgfile="$ofile"
16249
16250   cat <<__EOF__ >> "$cfgfile"
16251 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16252
16253 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16254
16255 # Shell to use when invoking shell scripts.
16256 SHELL=$lt_SHELL
16257
16258 # Whether or not to build shared libraries.
16259 build_libtool_libs=$enable_shared
16260
16261 # Whether or not to build static libraries.
16262 build_old_libs=$enable_static
16263
16264 # Whether or not to add -lc for building shared libraries.
16265 build_libtool_need_lc=$archive_cmds_need_lc_F77
16266
16267 # Whether or not to disallow shared libs when runtime libs are static
16268 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16269
16270 # Whether or not to optimize for fast installation.
16271 fast_install=$enable_fast_install
16272
16273 # The host system.
16274 host_alias=$host_alias
16275 host=$host
16276 host_os=$host_os
16277
16278 # The build system.
16279 build_alias=$build_alias
16280 build=$build
16281 build_os=$build_os
16282
16283 # An echo program that does not interpret backslashes.
16284 echo=$lt_echo
16285
16286 # The archiver.
16287 AR=$lt_AR
16288 AR_FLAGS=$lt_AR_FLAGS
16289
16290 # A C compiler.
16291 LTCC=$lt_LTCC
16292
16293 # LTCC compiler flags.
16294 LTCFLAGS=$lt_LTCFLAGS
16295
16296 # A language-specific compiler.
16297 CC=$lt_compiler_F77
16298
16299 # Is the compiler the GNU C compiler?
16300 with_gcc=$GCC_F77
16301
16302 # An ERE matcher.
16303 EGREP=$lt_EGREP
16304
16305 # The linker used to build libraries.
16306 LD=$lt_LD_F77
16307
16308 # Whether we need hard or soft links.
16309 LN_S=$lt_LN_S
16310
16311 # A BSD-compatible nm program.
16312 NM=$lt_NM
16313
16314 # A symbol stripping program
16315 STRIP=$lt_STRIP
16316
16317 # Used to examine libraries when file_magic_cmd begins "file"
16318 MAGIC_CMD=$MAGIC_CMD
16319
16320 # Used on cygwin: DLL creation program.
16321 DLLTOOL="$DLLTOOL"
16322
16323 # Used on cygwin: object dumper.
16324 OBJDUMP="$OBJDUMP"
16325
16326 # Used on cygwin: assembler.
16327 AS="$AS"
16328
16329 # The name of the directory that contains temporary libtool files.
16330 objdir=$objdir
16331
16332 # How to create reloadable object files.
16333 reload_flag=$lt_reload_flag
16334 reload_cmds=$lt_reload_cmds
16335
16336 # How to pass a linker flag through the compiler.
16337 wl=$lt_lt_prog_compiler_wl_F77
16338
16339 # Object file suffix (normally "o").
16340 objext="$ac_objext"
16341
16342 # Old archive suffix (normally "a").
16343 libext="$libext"
16344
16345 # Shared library suffix (normally ".so").
16346 shrext_cmds='$shrext_cmds'
16347
16348 # Executable file suffix (normally "").
16349 exeext="$exeext"
16350
16351 # Additional compiler flags for building library objects.
16352 pic_flag=$lt_lt_prog_compiler_pic_F77
16353 pic_mode=$pic_mode
16354
16355 # What is the maximum length of a command?
16356 max_cmd_len=$lt_cv_sys_max_cmd_len
16357
16358 # Does compiler simultaneously support -c and -o options?
16359 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16360
16361 # Must we lock files when doing compilation?
16362 need_locks=$lt_need_locks
16363
16364 # Do we need the lib prefix for modules?
16365 need_lib_prefix=$need_lib_prefix
16366
16367 # Do we need a version for libraries?
16368 need_version=$need_version
16369
16370 # Whether dlopen is supported.
16371 dlopen_support=$enable_dlopen
16372
16373 # Whether dlopen of programs is supported.
16374 dlopen_self=$enable_dlopen_self
16375
16376 # Whether dlopen of statically linked programs is supported.
16377 dlopen_self_static=$enable_dlopen_self_static
16378
16379 # Compiler flag to prevent dynamic linking.
16380 link_static_flag=$lt_lt_prog_compiler_static_F77
16381
16382 # Compiler flag to turn off builtin functions.
16383 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16384
16385 # Compiler flag to allow reflexive dlopens.
16386 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16387
16388 # Compiler flag to generate shared objects directly from archives.
16389 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16390
16391 # Compiler flag to generate thread-safe objects.
16392 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16393
16394 # Library versioning type.
16395 version_type=$version_type
16396
16397 # Format of library name prefix.
16398 libname_spec=$lt_libname_spec
16399
16400 # List of archive names.  First name is the real one, the rest are links.
16401 # The last name is the one that the linker finds with -lNAME.
16402 library_names_spec=$lt_library_names_spec
16403
16404 # The coded name of the library, if different from the real name.
16405 soname_spec=$lt_soname_spec
16406
16407 # Commands used to build and install an old-style archive.
16408 RANLIB=$lt_RANLIB
16409 old_archive_cmds=$lt_old_archive_cmds_F77
16410 old_postinstall_cmds=$lt_old_postinstall_cmds
16411 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16412
16413 # Create an old-style archive from a shared archive.
16414 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16415
16416 # Create a temporary old-style archive to link instead of a shared archive.
16417 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16418
16419 # Commands used to build and install a shared archive.
16420 archive_cmds=$lt_archive_cmds_F77
16421 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16422 postinstall_cmds=$lt_postinstall_cmds
16423 postuninstall_cmds=$lt_postuninstall_cmds
16424
16425 # Commands used to build a loadable module (assumed same as above if empty)
16426 module_cmds=$lt_module_cmds_F77
16427 module_expsym_cmds=$lt_module_expsym_cmds_F77
16428
16429 # Commands to strip libraries.
16430 old_striplib=$lt_old_striplib
16431 striplib=$lt_striplib
16432
16433 # Dependencies to place before the objects being linked to create a
16434 # shared library.
16435 predep_objects=$lt_predep_objects_F77
16436
16437 # Dependencies to place after the objects being linked to create a
16438 # shared library.
16439 postdep_objects=$lt_postdep_objects_F77
16440
16441 # Dependencies to place before the objects being linked to create a
16442 # shared library.
16443 predeps=$lt_predeps_F77
16444
16445 # Dependencies to place after the objects being linked to create a
16446 # shared library.
16447 postdeps=$lt_postdeps_F77
16448
16449 # The library search path used internally by the compiler when linking
16450 # a shared library.
16451 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16452
16453 # Method to check whether dependent libraries are shared objects.
16454 deplibs_check_method=$lt_deplibs_check_method
16455
16456 # Command to use when deplibs_check_method == file_magic.
16457 file_magic_cmd=$lt_file_magic_cmd
16458
16459 # Flag that allows shared libraries with undefined symbols to be built.
16460 allow_undefined_flag=$lt_allow_undefined_flag_F77
16461
16462 # Flag that forces no undefined symbols.
16463 no_undefined_flag=$lt_no_undefined_flag_F77
16464
16465 # Commands used to finish a libtool library installation in a directory.
16466 finish_cmds=$lt_finish_cmds
16467
16468 # Same as above, but a single script fragment to be evaled but not shown.
16469 finish_eval=$lt_finish_eval
16470
16471 # Take the output of nm and produce a listing of raw symbols and C names.
16472 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16473
16474 # Transform the output of nm in a proper C declaration
16475 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16476
16477 # Transform the output of nm in a C name address pair
16478 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16479
16480 # This is the shared library runtime path variable.
16481 runpath_var=$runpath_var
16482
16483 # This is the shared library path variable.
16484 shlibpath_var=$shlibpath_var
16485
16486 # Is shlibpath searched before the hard-coded library search path?
16487 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16488
16489 # How to hardcode a shared library path into an executable.
16490 hardcode_action=$hardcode_action_F77
16491
16492 # Whether we should hardcode library paths into libraries.
16493 hardcode_into_libs=$hardcode_into_libs
16494
16495 # Flag to hardcode \$libdir into a binary during linking.
16496 # This must work even if \$libdir does not exist.
16497 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16498
16499 # If ld is used when linking, flag to hardcode \$libdir into
16500 # a binary during linking. This must work even if \$libdir does
16501 # not exist.
16502 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16503
16504 # Whether we need a single -rpath flag with a separated argument.
16505 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16506
16507 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16508 # resulting binary.
16509 hardcode_direct=$hardcode_direct_F77
16510
16511 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16512 # resulting binary.
16513 hardcode_minus_L=$hardcode_minus_L_F77
16514
16515 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16516 # the resulting binary.
16517 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16518
16519 # Set to yes if building a shared library automatically hardcodes DIR into the library
16520 # and all subsequent libraries and executables linked against it.
16521 hardcode_automatic=$hardcode_automatic_F77
16522
16523 # Variables whose values should be saved in libtool wrapper scripts and
16524 # restored at relink time.
16525 variables_saved_for_relink="$variables_saved_for_relink"
16526
16527 # Whether libtool must link a program against all its dependency libraries.
16528 link_all_deplibs=$link_all_deplibs_F77
16529
16530 # Compile-time system search path for libraries
16531 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16532
16533 # Run-time system search path for libraries
16534 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16535
16536 # Fix the shell variable \$srcfile for the compiler.
16537 fix_srcfile_path="$fix_srcfile_path_F77"
16538
16539 # Set to yes if exported symbols are required.
16540 always_export_symbols=$always_export_symbols_F77
16541
16542 # The commands to list exported symbols.
16543 export_symbols_cmds=$lt_export_symbols_cmds_F77
16544
16545 # The commands to extract the exported symbol list from a shared archive.
16546 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16547
16548 # Symbols that should not be listed in the preloaded symbols.
16549 exclude_expsyms=$lt_exclude_expsyms_F77
16550
16551 # Symbols that must always be exported.
16552 include_expsyms=$lt_include_expsyms_F77
16553
16554 # ### END LIBTOOL TAG CONFIG: $tagname
16555
16556 __EOF__
16557
16558
16559 else
16560   # If there is no Makefile yet, we rely on a make rule to execute
16561   # `config.status --recheck' to rerun these tests and create the
16562   # libtool script then.
16563   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16564   if test -f "$ltmain_in"; then
16565     test -f Makefile && make "$ltmain"
16566   fi
16567 fi
16568
16569
16570 ac_ext=c
16571 ac_cpp='$CPP $CPPFLAGS'
16572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16575
16576 CC="$lt_save_CC"
16577
16578         else
16579           tagname=""
16580         fi
16581         ;;
16582
16583       GCJ)
16584         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16585
16586
16587
16588 # Source file extension for Java test sources.
16589 ac_ext=java
16590
16591 # Object file extension for compiled Java test sources.
16592 objext=o
16593 objext_GCJ=$objext
16594
16595 # Code to be used in simple compile tests
16596 lt_simple_compile_test_code="class foo {}\n"
16597
16598 # Code to be used in simple link tests
16599 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16600
16601 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16602
16603 # If no C compiler was specified, use CC.
16604 LTCC=${LTCC-"$CC"}
16605
16606 # If no C compiler flags were specified, use CFLAGS.
16607 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16608
16609 # Allow CC to be a program name with arguments.
16610 compiler=$CC
16611
16612
16613 # save warnings/boilerplate of simple test code
16614 ac_outfile=conftest.$ac_objext
16615 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16616 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16617 _lt_compiler_boilerplate=`cat conftest.err`
16618 $rm conftest*
16619
16620 ac_outfile=conftest.$ac_objext
16621 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16622 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16623 _lt_linker_boilerplate=`cat conftest.err`
16624 $rm conftest*
16625
16626
16627 # Allow CC to be a program name with arguments.
16628 lt_save_CC="$CC"
16629 CC=${GCJ-"gcj"}
16630 compiler=$CC
16631 compiler_GCJ=$CC
16632 for cc_temp in $compiler""; do
16633   case $cc_temp in
16634     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16635     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16636     \-*) ;;
16637     *) break;;
16638   esac
16639 done
16640 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16641
16642
16643 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16644 archive_cmds_need_lc_GCJ=no
16645
16646 old_archive_cmds_GCJ=$old_archive_cmds
16647
16648
16649 lt_prog_compiler_no_builtin_flag_GCJ=
16650
16651 if test "$GCC" = yes; then
16652   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16653
16654
16655 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16656 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16657 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16658   echo $ECHO_N "(cached) $ECHO_C" >&6
16659 else
16660   lt_cv_prog_compiler_rtti_exceptions=no
16661   ac_outfile=conftest.$ac_objext
16662    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16663    lt_compiler_flag="-fno-rtti -fno-exceptions"
16664    # Insert the option either (1) after the last *FLAGS variable, or
16665    # (2) before a word containing "conftest.", or (3) at the end.
16666    # Note that $ac_compile itself does not contain backslashes and begins
16667    # with a dollar sign (not a hyphen), so the echo should work correctly.
16668    # The option is referenced via a variable to avoid confusing sed.
16669    lt_compile=`echo "$ac_compile" | $SED \
16670    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16671    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16672    -e 's:$: $lt_compiler_flag:'`
16673    (eval echo "\"\$as_me:16673: $lt_compile\"" >&5)
16674    (eval "$lt_compile" 2>conftest.err)
16675    ac_status=$?
16676    cat conftest.err >&5
16677    echo "$as_me:16677: \$? = $ac_status" >&5
16678    if (exit $ac_status) && test -s "$ac_outfile"; then
16679      # The compiler can only warn and ignore the option if not recognized
16680      # So say no if there are warnings other than the usual output.
16681      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16682      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16683      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16684        lt_cv_prog_compiler_rtti_exceptions=yes
16685      fi
16686    fi
16687    $rm conftest*
16688
16689 fi
16690 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16691 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16692
16693 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16694     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16695 else
16696     :
16697 fi
16698
16699 fi
16700
16701 lt_prog_compiler_wl_GCJ=
16702 lt_prog_compiler_pic_GCJ=
16703 lt_prog_compiler_static_GCJ=
16704
16705 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16706 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16707
16708   if test "$GCC" = yes; then
16709     lt_prog_compiler_wl_GCJ='-Wl,'
16710     lt_prog_compiler_static_GCJ='-static'
16711
16712     case $host_os in
16713       aix*)
16714       # All AIX code is PIC.
16715       if test "$host_cpu" = ia64; then
16716         # AIX 5 now supports IA64 processor
16717         lt_prog_compiler_static_GCJ='-Bstatic'
16718       fi
16719       ;;
16720
16721     amigaos*)
16722       # FIXME: we need at least 68020 code to build shared libraries, but
16723       # adding the `-m68020' flag to GCC prevents building anything better,
16724       # like `-m68040'.
16725       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16726       ;;
16727
16728     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16729       # PIC is the default for these OSes.
16730       ;;
16731
16732     mingw* | pw32* | os2*)
16733       # This hack is so that the source file can tell whether it is being
16734       # built for inclusion in a dll (and should export symbols for example).
16735       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16736       ;;
16737
16738     darwin* | rhapsody*)
16739       # PIC is the default on this platform
16740       # Common symbols not allowed in MH_DYLIB files
16741       lt_prog_compiler_pic_GCJ='-fno-common'
16742       ;;
16743
16744     interix3*)
16745       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16746       # Instead, we relocate shared libraries at runtime.
16747       ;;
16748
16749     msdosdjgpp*)
16750       # Just because we use GCC doesn't mean we suddenly get shared libraries
16751       # on systems that don't support them.
16752       lt_prog_compiler_can_build_shared_GCJ=no
16753       enable_shared=no
16754       ;;
16755
16756     sysv4*MP*)
16757       if test -d /usr/nec; then
16758         lt_prog_compiler_pic_GCJ=-Kconform_pic
16759       fi
16760       ;;
16761
16762     hpux*)
16763       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16764       # not for PA HP-UX.
16765       case $host_cpu in
16766       hppa*64*|ia64*)
16767         # +Z the default
16768         ;;
16769       *)
16770         lt_prog_compiler_pic_GCJ='-fPIC'
16771         ;;
16772       esac
16773       ;;
16774
16775     *)
16776       lt_prog_compiler_pic_GCJ='-fPIC'
16777       ;;
16778     esac
16779   else
16780     # PORTME Check for flag to pass linker flags through the system compiler.
16781     case $host_os in
16782     aix*)
16783       lt_prog_compiler_wl_GCJ='-Wl,'
16784       if test "$host_cpu" = ia64; then
16785         # AIX 5 now supports IA64 processor
16786         lt_prog_compiler_static_GCJ='-Bstatic'
16787       else
16788         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16789       fi
16790       ;;
16791       darwin*)
16792         # PIC is the default on this platform
16793         # Common symbols not allowed in MH_DYLIB files
16794        case $cc_basename in
16795          xlc*)
16796          lt_prog_compiler_pic_GCJ='-qnocommon'
16797          lt_prog_compiler_wl_GCJ='-Wl,'
16798          ;;
16799        esac
16800        ;;
16801
16802     mingw* | pw32* | os2*)
16803       # This hack is so that the source file can tell whether it is being
16804       # built for inclusion in a dll (and should export symbols for example).
16805       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16806       ;;
16807
16808     hpux9* | hpux10* | hpux11*)
16809       lt_prog_compiler_wl_GCJ='-Wl,'
16810       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16811       # not for PA HP-UX.
16812       case $host_cpu in
16813       hppa*64*|ia64*)
16814         # +Z the default
16815         ;;
16816       *)
16817         lt_prog_compiler_pic_GCJ='+Z'
16818         ;;
16819       esac
16820       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16821       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16822       ;;
16823
16824     irix5* | irix6* | nonstopux*)
16825       lt_prog_compiler_wl_GCJ='-Wl,'
16826       # PIC (with -KPIC) is the default.
16827       lt_prog_compiler_static_GCJ='-non_shared'
16828       ;;
16829
16830     newsos6)
16831       lt_prog_compiler_pic_GCJ='-KPIC'
16832       lt_prog_compiler_static_GCJ='-Bstatic'
16833       ;;
16834
16835     linux* | k*bsd*-gnu)
16836       case $cc_basename in
16837       icc* | ecc*)
16838         lt_prog_compiler_wl_GCJ='-Wl,'
16839         lt_prog_compiler_pic_GCJ='-KPIC'
16840         lt_prog_compiler_static_GCJ='-static'
16841         ;;
16842       pgcc* | pgf77* | pgf90* | pgf95*)
16843         # Portland Group compilers (*not* the Pentium gcc compiler,
16844         # which looks to be a dead project)
16845         lt_prog_compiler_wl_GCJ='-Wl,'
16846         lt_prog_compiler_pic_GCJ='-fpic'
16847         lt_prog_compiler_static_GCJ='-Bstatic'
16848         ;;
16849       ccc*)
16850         lt_prog_compiler_wl_GCJ='-Wl,'
16851         # All Alpha code is PIC.
16852         lt_prog_compiler_static_GCJ='-non_shared'
16853         ;;
16854       esac
16855       ;;
16856
16857     osf3* | osf4* | osf5*)
16858       lt_prog_compiler_wl_GCJ='-Wl,'
16859       # All OSF/1 code is PIC.
16860       lt_prog_compiler_static_GCJ='-non_shared'
16861       ;;
16862
16863     solaris*)
16864       lt_prog_compiler_pic_GCJ='-KPIC'
16865       lt_prog_compiler_static_GCJ='-Bstatic'
16866       case $cc_basename in
16867       f77* | f90* | f95*)
16868         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16869       *)
16870         lt_prog_compiler_wl_GCJ='-Wl,';;
16871       esac
16872       ;;
16873
16874     sunos4*)
16875       lt_prog_compiler_wl_GCJ='-Qoption ld '
16876       lt_prog_compiler_pic_GCJ='-PIC'
16877       lt_prog_compiler_static_GCJ='-Bstatic'
16878       ;;
16879
16880     sysv4 | sysv4.2uw2* | sysv4.3*)
16881       lt_prog_compiler_wl_GCJ='-Wl,'
16882       lt_prog_compiler_pic_GCJ='-KPIC'
16883       lt_prog_compiler_static_GCJ='-Bstatic'
16884       ;;
16885
16886     sysv4*MP*)
16887       if test -d /usr/nec ;then
16888         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16889         lt_prog_compiler_static_GCJ='-Bstatic'
16890       fi
16891       ;;
16892
16893     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16894       lt_prog_compiler_wl_GCJ='-Wl,'
16895       lt_prog_compiler_pic_GCJ='-KPIC'
16896       lt_prog_compiler_static_GCJ='-Bstatic'
16897       ;;
16898
16899     unicos*)
16900       lt_prog_compiler_wl_GCJ='-Wl,'
16901       lt_prog_compiler_can_build_shared_GCJ=no
16902       ;;
16903
16904     uts4*)
16905       lt_prog_compiler_pic_GCJ='-pic'
16906       lt_prog_compiler_static_GCJ='-Bstatic'
16907       ;;
16908
16909     *)
16910       lt_prog_compiler_can_build_shared_GCJ=no
16911       ;;
16912     esac
16913   fi
16914
16915 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16916 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16917
16918 #
16919 # Check to make sure the PIC flag actually works.
16920 #
16921 if test -n "$lt_prog_compiler_pic_GCJ"; then
16922
16923 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16924 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16925 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16926   echo $ECHO_N "(cached) $ECHO_C" >&6
16927 else
16928   lt_prog_compiler_pic_works_GCJ=no
16929   ac_outfile=conftest.$ac_objext
16930    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16931    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16932    # Insert the option either (1) after the last *FLAGS variable, or
16933    # (2) before a word containing "conftest.", or (3) at the end.
16934    # Note that $ac_compile itself does not contain backslashes and begins
16935    # with a dollar sign (not a hyphen), so the echo should work correctly.
16936    # The option is referenced via a variable to avoid confusing sed.
16937    lt_compile=`echo "$ac_compile" | $SED \
16938    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16939    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16940    -e 's:$: $lt_compiler_flag:'`
16941    (eval echo "\"\$as_me:16941: $lt_compile\"" >&5)
16942    (eval "$lt_compile" 2>conftest.err)
16943    ac_status=$?
16944    cat conftest.err >&5
16945    echo "$as_me:16945: \$? = $ac_status" >&5
16946    if (exit $ac_status) && test -s "$ac_outfile"; then
16947      # The compiler can only warn and ignore the option if not recognized
16948      # So say no if there are warnings other than the usual output.
16949      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16950      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16951      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16952        lt_prog_compiler_pic_works_GCJ=yes
16953      fi
16954    fi
16955    $rm conftest*
16956
16957 fi
16958 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16959 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16960
16961 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16962     case $lt_prog_compiler_pic_GCJ in
16963      "" | " "*) ;;
16964      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16965      esac
16966 else
16967     lt_prog_compiler_pic_GCJ=
16968      lt_prog_compiler_can_build_shared_GCJ=no
16969 fi
16970
16971 fi
16972 case $host_os in
16973   # For platforms which do not support PIC, -DPIC is meaningless:
16974   *djgpp*)
16975     lt_prog_compiler_pic_GCJ=
16976     ;;
16977   *)
16978     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16979     ;;
16980 esac
16981
16982 #
16983 # Check to make sure the static flag actually works.
16984 #
16985 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16986 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16987 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16988 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16989   echo $ECHO_N "(cached) $ECHO_C" >&6
16990 else
16991   lt_prog_compiler_static_works_GCJ=no
16992    save_LDFLAGS="$LDFLAGS"
16993    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16994    printf "$lt_simple_link_test_code" > conftest.$ac_ext
16995    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16996      # The linker can only warn and ignore the option if not recognized
16997      # So say no if there are warnings
16998      if test -s conftest.err; then
16999        # Append any errors to the config.log.
17000        cat conftest.err 1>&5
17001        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17002        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17003        if diff conftest.exp conftest.er2 >/dev/null; then
17004          lt_prog_compiler_static_works_GCJ=yes
17005        fi
17006      else
17007        lt_prog_compiler_static_works_GCJ=yes
17008      fi
17009    fi
17010    $rm conftest*
17011    LDFLAGS="$save_LDFLAGS"
17012
17013 fi
17014 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17015 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
17016
17017 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17018     :
17019 else
17020     lt_prog_compiler_static_GCJ=
17021 fi
17022
17023
17024 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17025 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17026 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17027   echo $ECHO_N "(cached) $ECHO_C" >&6
17028 else
17029   lt_cv_prog_compiler_c_o_GCJ=no
17030    $rm -r conftest 2>/dev/null
17031    mkdir conftest
17032    cd conftest
17033    mkdir out
17034    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17035
17036    lt_compiler_flag="-o out/conftest2.$ac_objext"
17037    # Insert the option either (1) after the last *FLAGS variable, or
17038    # (2) before a word containing "conftest.", or (3) at the end.
17039    # Note that $ac_compile itself does not contain backslashes and begins
17040    # with a dollar sign (not a hyphen), so the echo should work correctly.
17041    lt_compile=`echo "$ac_compile" | $SED \
17042    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17043    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17044    -e 's:$: $lt_compiler_flag:'`
17045    (eval echo "\"\$as_me:17045: $lt_compile\"" >&5)
17046    (eval "$lt_compile" 2>out/conftest.err)
17047    ac_status=$?
17048    cat out/conftest.err >&5
17049    echo "$as_me:17049: \$? = $ac_status" >&5
17050    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17051    then
17052      # The compiler can only warn and ignore the option if not recognized
17053      # So say no if there are warnings
17054      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17055      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17056      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17057        lt_cv_prog_compiler_c_o_GCJ=yes
17058      fi
17059    fi
17060    chmod u+w . 2>&5
17061    $rm conftest*
17062    # SGI C++ compiler will create directory out/ii_files/ for
17063    # template instantiation
17064    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17065    $rm out/* && rmdir out
17066    cd ..
17067    rmdir conftest
17068    $rm conftest*
17069
17070 fi
17071 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17072 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17073
17074
17075 hard_links="nottested"
17076 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17077   # do not overwrite the value of need_locks provided by the user
17078   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17079 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17080   hard_links=yes
17081   $rm conftest*
17082   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17083   touch conftest.a
17084   ln conftest.a conftest.b 2>&5 || hard_links=no
17085   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17086   echo "$as_me:$LINENO: result: $hard_links" >&5
17087 echo "${ECHO_T}$hard_links" >&6
17088   if test "$hard_links" = no; then
17089     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17090 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17091     need_locks=warn
17092   fi
17093 else
17094   need_locks=no
17095 fi
17096
17097 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17098 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17099
17100   runpath_var=
17101   allow_undefined_flag_GCJ=
17102   enable_shared_with_static_runtimes_GCJ=no
17103   archive_cmds_GCJ=
17104   archive_expsym_cmds_GCJ=
17105   old_archive_From_new_cmds_GCJ=
17106   old_archive_from_expsyms_cmds_GCJ=
17107   export_dynamic_flag_spec_GCJ=
17108   whole_archive_flag_spec_GCJ=
17109   thread_safe_flag_spec_GCJ=
17110   hardcode_libdir_flag_spec_GCJ=
17111   hardcode_libdir_flag_spec_ld_GCJ=
17112   hardcode_libdir_separator_GCJ=
17113   hardcode_direct_GCJ=no
17114   hardcode_minus_L_GCJ=no
17115   hardcode_shlibpath_var_GCJ=unsupported
17116   link_all_deplibs_GCJ=unknown
17117   hardcode_automatic_GCJ=no
17118   module_cmds_GCJ=
17119   module_expsym_cmds_GCJ=
17120   always_export_symbols_GCJ=no
17121   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17122   # include_expsyms should be a list of space-separated symbols to be *always*
17123   # included in the symbol list
17124   include_expsyms_GCJ=
17125   # exclude_expsyms can be an extended regexp of symbols to exclude
17126   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17127   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17128   # as well as any symbol that contains `d'.
17129   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17130   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17131   # platforms (ab)use it in PIC code, but their linkers get confused if
17132   # the symbol is explicitly referenced.  Since portable code cannot
17133   # rely on this symbol name, it's probably fine to never include it in
17134   # preloaded symbol tables.
17135   extract_expsyms_cmds=
17136   # Just being paranoid about ensuring that cc_basename is set.
17137   for cc_temp in $compiler""; do
17138   case $cc_temp in
17139     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17140     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17141     \-*) ;;
17142     *) break;;
17143   esac
17144 done
17145 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17146
17147   case $host_os in
17148   cygwin* | mingw* | pw32*)
17149     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17150     # When not using gcc, we currently assume that we are using
17151     # Microsoft Visual C++.
17152     if test "$GCC" != yes; then
17153       with_gnu_ld=no
17154     fi
17155     ;;
17156   interix*)
17157     # we just hope/assume this is gcc and not c89 (= MSVC++)
17158     with_gnu_ld=yes
17159     ;;
17160   openbsd*)
17161     with_gnu_ld=no
17162     ;;
17163   esac
17164
17165   ld_shlibs_GCJ=yes
17166   if test "$with_gnu_ld" = yes; then
17167     # If archive_cmds runs LD, not CC, wlarc should be empty
17168     wlarc='${wl}'
17169
17170     # Set some defaults for GNU ld with shared library support. These
17171     # are reset later if shared libraries are not supported. Putting them
17172     # here allows them to be overridden if necessary.
17173     runpath_var=LD_RUN_PATH
17174     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17175     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17176     # ancient GNU ld didn't support --whole-archive et. al.
17177     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17178         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17179       else
17180         whole_archive_flag_spec_GCJ=
17181     fi
17182     supports_anon_versioning=no
17183     case `$LD -v 2>/dev/null` in
17184       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17185       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17186       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17187       *\ 2.11.*) ;; # other 2.11 versions
17188       *) supports_anon_versioning=yes ;;
17189     esac
17190
17191     # See if GNU ld supports shared libraries.
17192     case $host_os in
17193     aix3* | aix4* | aix5*)
17194       # On AIX/PPC, the GNU linker is very broken
17195       if test "$host_cpu" != ia64; then
17196         ld_shlibs_GCJ=no
17197         cat <<EOF 1>&2
17198
17199 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17200 *** to be unable to reliably create shared libraries on AIX.
17201 *** Therefore, libtool is disabling shared libraries support.  If you
17202 *** really care for shared libraries, you may want to modify your PATH
17203 *** so that a non-GNU linker is found, and then restart.
17204
17205 EOF
17206       fi
17207       ;;
17208
17209     amigaos*)
17210       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)'
17211       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17212       hardcode_minus_L_GCJ=yes
17213
17214       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17215       # that the semantics of dynamic libraries on AmigaOS, at least up
17216       # to version 4, is to share data among multiple programs linked
17217       # with the same dynamic library.  Since this doesn't match the
17218       # behavior of shared libraries on other platforms, we can't use
17219       # them.
17220       ld_shlibs_GCJ=no
17221       ;;
17222
17223     beos*)
17224       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17225         allow_undefined_flag_GCJ=unsupported
17226         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17227         # support --undefined.  This deserves some investigation.  FIXME
17228         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17229       else
17230         ld_shlibs_GCJ=no
17231       fi
17232       ;;
17233
17234     cygwin* | mingw* | pw32*)
17235       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17236       # as there is no search path for DLLs.
17237       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17238       allow_undefined_flag_GCJ=unsupported
17239       always_export_symbols_GCJ=no
17240       enable_shared_with_static_runtimes_GCJ=yes
17241       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17242
17243       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17244         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17245         # If the export-symbols file already is a .def file (1st line
17246         # is EXPORTS), use it as is; otherwise, prepend...
17247         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17248           cp $export_symbols $output_objdir/$soname.def;
17249         else
17250           echo EXPORTS > $output_objdir/$soname.def;
17251           cat $export_symbols >> $output_objdir/$soname.def;
17252         fi~
17253         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17254       else
17255         ld_shlibs_GCJ=no
17256       fi
17257       ;;
17258
17259     interix3*)
17260       hardcode_direct_GCJ=no
17261       hardcode_shlibpath_var_GCJ=no
17262       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17263       export_dynamic_flag_spec_GCJ='${wl}-E'
17264       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17265       # Instead, shared libraries are loaded at an image base (0x10000000 by
17266       # default) and relocated if they conflict, which is a slow very memory
17267       # consuming and fragmenting process.  To avoid this, we pick a random,
17268       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17269       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17270       archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17271       archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17272       ;;
17273
17274     linux* | k*bsd*-gnu)
17275       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17276         tmp_addflag=
17277         case $cc_basename,$host_cpu in
17278         pgcc*)                          # Portland Group C compiler
17279           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'
17280           tmp_addflag=' $pic_flag'
17281           ;;
17282         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17283           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'
17284           tmp_addflag=' $pic_flag -Mnomain' ;;
17285         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17286           tmp_addflag=' -i_dynamic' ;;
17287         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17288           tmp_addflag=' -i_dynamic -nofor_main' ;;
17289         ifc* | ifort*)                  # Intel Fortran compiler
17290           tmp_addflag=' -nofor_main' ;;
17291         esac
17292         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17293
17294         if test $supports_anon_versioning = yes; then
17295           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17296   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17297   $echo "local: *; };" >> $output_objdir/$libname.ver~
17298           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17299         fi
17300         link_all_deplibs_GCJ=no
17301       else
17302         ld_shlibs_GCJ=no
17303       fi
17304       ;;
17305
17306     netbsd* | netbsdelf*-gnu)
17307       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17308         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17309         wlarc=
17310       else
17311         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17312         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17313       fi
17314       ;;
17315
17316     solaris*)
17317       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17318         ld_shlibs_GCJ=no
17319         cat <<EOF 1>&2
17320
17321 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17322 *** create shared libraries on Solaris systems.  Therefore, libtool
17323 *** is disabling shared libraries support.  We urge you to upgrade GNU
17324 *** binutils to release 2.9.1 or newer.  Another option is to modify
17325 *** your PATH or compiler configuration so that the native linker is
17326 *** used, and then restart.
17327
17328 EOF
17329       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17330         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17331         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17332       else
17333         ld_shlibs_GCJ=no
17334       fi
17335       ;;
17336
17337     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17338       case `$LD -v 2>&1` in
17339         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17340         ld_shlibs_GCJ=no
17341         cat <<_LT_EOF 1>&2
17342
17343 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17344 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17345 *** is disabling shared libraries support.  We urge you to upgrade GNU
17346 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17347 *** your PATH or compiler configuration so that the native linker is
17348 *** used, and then restart.
17349
17350 _LT_EOF
17351         ;;
17352         *)
17353           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17354             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17355             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17356             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17357           else
17358             ld_shlibs_GCJ=no
17359           fi
17360         ;;
17361       esac
17362       ;;
17363
17364     sunos4*)
17365       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17366       wlarc=
17367       hardcode_direct_GCJ=yes
17368       hardcode_shlibpath_var_GCJ=no
17369       ;;
17370
17371     *)
17372       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17373         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17374         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17375       else
17376         ld_shlibs_GCJ=no
17377       fi
17378       ;;
17379     esac
17380
17381     if test "$ld_shlibs_GCJ" = no; then
17382       runpath_var=
17383       hardcode_libdir_flag_spec_GCJ=
17384       export_dynamic_flag_spec_GCJ=
17385       whole_archive_flag_spec_GCJ=
17386     fi
17387   else
17388     # PORTME fill in a description of your system's linker (not GNU ld)
17389     case $host_os in
17390     aix3*)
17391       allow_undefined_flag_GCJ=unsupported
17392       always_export_symbols_GCJ=yes
17393       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'
17394       # Note: this linker hardcodes the directories in LIBPATH if there
17395       # are no directories specified by -L.
17396       hardcode_minus_L_GCJ=yes
17397       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17398         # Neither direct hardcoding nor static linking is supported with a
17399         # broken collect2.
17400         hardcode_direct_GCJ=unsupported
17401       fi
17402       ;;
17403
17404     aix4* | aix5*)
17405       if test "$host_cpu" = ia64; then
17406         # On IA64, the linker does run time linking by default, so we don't
17407         # have to do anything special.
17408         aix_use_runtimelinking=no
17409         exp_sym_flag='-Bexport'
17410         no_entry_flag=""
17411       else
17412         # If we're using GNU nm, then we don't want the "-C" option.
17413         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17414         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17415           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'
17416         else
17417           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'
17418         fi
17419         aix_use_runtimelinking=no
17420
17421         # Test if we are trying to use run time linking or normal
17422         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17423         # need to do runtime linking.
17424         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17425           for ld_flag in $LDFLAGS; do
17426           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17427             aix_use_runtimelinking=yes
17428             break
17429           fi
17430           done
17431           ;;
17432         esac
17433
17434         exp_sym_flag='-bexport'
17435         no_entry_flag='-bnoentry'
17436       fi
17437
17438       # When large executables or shared objects are built, AIX ld can
17439       # have problems creating the table of contents.  If linking a library
17440       # or program results in "error TOC overflow" add -mminimal-toc to
17441       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17442       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17443
17444       archive_cmds_GCJ=''
17445       hardcode_direct_GCJ=yes
17446       hardcode_libdir_separator_GCJ=':'
17447       link_all_deplibs_GCJ=yes
17448
17449       if test "$GCC" = yes; then
17450         case $host_os in aix4.[012]|aix4.[012].*)
17451         # We only want to do this on AIX 4.2 and lower, the check
17452         # below for broken collect2 doesn't work under 4.3+
17453           collect2name=`${CC} -print-prog-name=collect2`
17454           if test -f "$collect2name" && \
17455            strings "$collect2name" | grep resolve_lib_name >/dev/null
17456           then
17457           # We have reworked collect2
17458           hardcode_direct_GCJ=yes
17459           else
17460           # We have old collect2
17461           hardcode_direct_GCJ=unsupported
17462           # It fails to find uninstalled libraries when the uninstalled
17463           # path is not listed in the libpath.  Setting hardcode_minus_L
17464           # to unsupported forces relinking
17465           hardcode_minus_L_GCJ=yes
17466           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17467           hardcode_libdir_separator_GCJ=
17468           fi
17469           ;;
17470         esac
17471         shared_flag='-shared'
17472         if test "$aix_use_runtimelinking" = yes; then
17473           shared_flag="$shared_flag "'${wl}-G'
17474         fi
17475       else
17476         # not using gcc
17477         if test "$host_cpu" = ia64; then
17478         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17479         # chokes on -Wl,-G. The following line is correct:
17480           shared_flag='-G'
17481         else
17482           if test "$aix_use_runtimelinking" = yes; then
17483             shared_flag='${wl}-G'
17484           else
17485             shared_flag='${wl}-bM:SRE'
17486           fi
17487         fi
17488       fi
17489
17490       # It seems that -bexpall does not export symbols beginning with
17491       # underscore (_), so it is better to generate a list of symbols to export.
17492       always_export_symbols_GCJ=yes
17493       if test "$aix_use_runtimelinking" = yes; then
17494         # Warning - without using the other runtime loading flags (-brtl),
17495         # -berok will link without error, but may produce a broken library.
17496         allow_undefined_flag_GCJ='-berok'
17497        # Determine the default libpath from the value encoded in an empty executable.
17498        cat >conftest.$ac_ext <<_ACEOF
17499 /* confdefs.h.  */
17500 _ACEOF
17501 cat confdefs.h >>conftest.$ac_ext
17502 cat >>conftest.$ac_ext <<_ACEOF
17503 /* end confdefs.h.  */
17504
17505 int
17506 main ()
17507 {
17508
17509   ;
17510   return 0;
17511 }
17512 _ACEOF
17513 rm -f conftest.$ac_objext conftest$ac_exeext
17514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17515   (eval $ac_link) 2>conftest.er1
17516   ac_status=$?
17517   grep -v '^ *+' conftest.er1 >conftest.err
17518   rm -f conftest.er1
17519   cat conftest.err >&5
17520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521   (exit $ac_status); } &&
17522          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17524   (eval $ac_try) 2>&5
17525   ac_status=$?
17526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527   (exit $ac_status); }; } &&
17528          { ac_try='test -s conftest$ac_exeext'
17529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17530   (eval $ac_try) 2>&5
17531   ac_status=$?
17532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533   (exit $ac_status); }; }; then
17534
17535 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17536 }'`
17537 # Check for a 64-bit object if we didn't find anything.
17538 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; }
17539 }'`; fi
17540 else
17541   echo "$as_me: failed program was:" >&5
17542 sed 's/^/| /' conftest.$ac_ext >&5
17543
17544 fi
17545 rm -f conftest.err conftest.$ac_objext \
17546       conftest$ac_exeext conftest.$ac_ext
17547 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17548
17549        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17550         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17551        else
17552         if test "$host_cpu" = ia64; then
17553           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17554           allow_undefined_flag_GCJ="-z nodefs"
17555           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17556         else
17557          # Determine the default libpath from the value encoded in an empty executable.
17558          cat >conftest.$ac_ext <<_ACEOF
17559 /* confdefs.h.  */
17560 _ACEOF
17561 cat confdefs.h >>conftest.$ac_ext
17562 cat >>conftest.$ac_ext <<_ACEOF
17563 /* end confdefs.h.  */
17564
17565 int
17566 main ()
17567 {
17568
17569   ;
17570   return 0;
17571 }
17572 _ACEOF
17573 rm -f conftest.$ac_objext conftest$ac_exeext
17574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17575   (eval $ac_link) 2>conftest.er1
17576   ac_status=$?
17577   grep -v '^ *+' conftest.er1 >conftest.err
17578   rm -f conftest.er1
17579   cat conftest.err >&5
17580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581   (exit $ac_status); } &&
17582          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17584   (eval $ac_try) 2>&5
17585   ac_status=$?
17586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587   (exit $ac_status); }; } &&
17588          { ac_try='test -s conftest$ac_exeext'
17589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17590   (eval $ac_try) 2>&5
17591   ac_status=$?
17592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593   (exit $ac_status); }; }; then
17594
17595 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17596 }'`
17597 # Check for a 64-bit object if we didn't find anything.
17598 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; }
17599 }'`; fi
17600 else
17601   echo "$as_me: failed program was:" >&5
17602 sed 's/^/| /' conftest.$ac_ext >&5
17603
17604 fi
17605 rm -f conftest.err conftest.$ac_objext \
17606       conftest$ac_exeext conftest.$ac_ext
17607 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17608
17609          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17610           # Warning - without using the other run time loading flags,
17611           # -berok will link without error, but may produce a broken library.
17612           no_undefined_flag_GCJ=' ${wl}-bernotok'
17613           allow_undefined_flag_GCJ=' ${wl}-berok'
17614           # Exported symbols can be pulled into shared objects from archives
17615           whole_archive_flag_spec_GCJ='$convenience'
17616           archive_cmds_need_lc_GCJ=yes
17617           # This is similar to how AIX traditionally builds its shared libraries.
17618           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17619         fi
17620       fi
17621       ;;
17622
17623     amigaos*)
17624       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)'
17625       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17626       hardcode_minus_L_GCJ=yes
17627       # see comment about different semantics on the GNU ld section
17628       ld_shlibs_GCJ=no
17629       ;;
17630
17631     bsdi[45]*)
17632       export_dynamic_flag_spec_GCJ=-rdynamic
17633       ;;
17634
17635     cygwin* | mingw* | pw32*)
17636       # When not using gcc, we currently assume that we are using
17637       # Microsoft Visual C++.
17638       # hardcode_libdir_flag_spec is actually meaningless, as there is
17639       # no search path for DLLs.
17640       hardcode_libdir_flag_spec_GCJ=' '
17641       allow_undefined_flag_GCJ=unsupported
17642       # Tell ltmain to make .lib files, not .a files.
17643       libext=lib
17644       # Tell ltmain to make .dll files, not .so files.
17645       shrext_cmds=".dll"
17646       # FIXME: Setting linknames here is a bad hack.
17647       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17648       # The linker will automatically build a .lib file if we build a DLL.
17649       old_archive_From_new_cmds_GCJ='true'
17650       # FIXME: Should let the user specify the lib program.
17651       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17652       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17653       enable_shared_with_static_runtimes_GCJ=yes
17654       ;;
17655
17656     darwin* | rhapsody*)
17657       case $host_os in
17658         rhapsody* | darwin1.[012])
17659          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17660          ;;
17661        *) # Darwin 1.3 on
17662          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17663            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17664          else
17665            case ${MACOSX_DEPLOYMENT_TARGET} in
17666              10.[012])
17667                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17668                ;;
17669              10.*)
17670                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17671                ;;
17672            esac
17673          fi
17674          ;;
17675       esac
17676       archive_cmds_need_lc_GCJ=no
17677       hardcode_direct_GCJ=no
17678       hardcode_automatic_GCJ=yes
17679       hardcode_shlibpath_var_GCJ=unsupported
17680       whole_archive_flag_spec_GCJ=''
17681       link_all_deplibs_GCJ=yes
17682     if test "$GCC" = yes ; then
17683         output_verbose_link_cmd='echo'
17684         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17685       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17686       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17687       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}'
17688       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}'
17689     else
17690       case $cc_basename in
17691         xlc*)
17692          output_verbose_link_cmd='echo'
17693          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17694          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17695           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17696          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}'
17697           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}'
17698           ;;
17699        *)
17700          ld_shlibs_GCJ=no
17701           ;;
17702       esac
17703     fi
17704       ;;
17705
17706     dgux*)
17707       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17708       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17709       hardcode_shlibpath_var_GCJ=no
17710       ;;
17711
17712     freebsd1*)
17713       ld_shlibs_GCJ=no
17714       ;;
17715
17716     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17717     # support.  Future versions do this automatically, but an explicit c++rt0.o
17718     # does not break anything, and helps significantly (at the cost of a little
17719     # extra space).
17720     freebsd2.2*)
17721       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17722       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17723       hardcode_direct_GCJ=yes
17724       hardcode_shlibpath_var_GCJ=no
17725       ;;
17726
17727     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17728     freebsd2*)
17729       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17730       hardcode_direct_GCJ=yes
17731       hardcode_minus_L_GCJ=yes
17732       hardcode_shlibpath_var_GCJ=no
17733       ;;
17734
17735     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17736     freebsd* | dragonfly*)
17737       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17738       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17739       hardcode_direct_GCJ=yes
17740       hardcode_shlibpath_var_GCJ=no
17741       ;;
17742
17743     hpux9*)
17744       if test "$GCC" = yes; then
17745         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'
17746       else
17747         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'
17748       fi
17749       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17750       hardcode_libdir_separator_GCJ=:
17751       hardcode_direct_GCJ=yes
17752
17753       # hardcode_minus_L: Not really in the search PATH,
17754       # but as the default location of the library.
17755       hardcode_minus_L_GCJ=yes
17756       export_dynamic_flag_spec_GCJ='${wl}-E'
17757       ;;
17758
17759     hpux10*)
17760       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17761         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17762       else
17763         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17764       fi
17765       if test "$with_gnu_ld" = no; then
17766         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17767         hardcode_libdir_separator_GCJ=:
17768
17769         hardcode_direct_GCJ=yes
17770         export_dynamic_flag_spec_GCJ='${wl}-E'
17771
17772         # hardcode_minus_L: Not really in the search PATH,
17773         # but as the default location of the library.
17774         hardcode_minus_L_GCJ=yes
17775       fi
17776       ;;
17777
17778     hpux11*)
17779       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17780         case $host_cpu in
17781         hppa*64*)
17782           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17783           ;;
17784         ia64*)
17785           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17786           ;;
17787         *)
17788           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17789           ;;
17790         esac
17791       else
17792         case $host_cpu in
17793         hppa*64*)
17794           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17795           ;;
17796         ia64*)
17797           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17798           ;;
17799         *)
17800           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17801           ;;
17802         esac
17803       fi
17804       if test "$with_gnu_ld" = no; then
17805         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17806         hardcode_libdir_separator_GCJ=:
17807
17808         case $host_cpu in
17809         hppa*64*|ia64*)
17810           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17811           hardcode_direct_GCJ=no
17812           hardcode_shlibpath_var_GCJ=no
17813           ;;
17814         *)
17815           hardcode_direct_GCJ=yes
17816           export_dynamic_flag_spec_GCJ='${wl}-E'
17817
17818           # hardcode_minus_L: Not really in the search PATH,
17819           # but as the default location of the library.
17820           hardcode_minus_L_GCJ=yes
17821           ;;
17822         esac
17823       fi
17824       ;;
17825
17826     irix5* | irix6* | nonstopux*)
17827       if test "$GCC" = yes; then
17828         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'
17829       else
17830         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'
17831         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17832       fi
17833       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17834       hardcode_libdir_separator_GCJ=:
17835       link_all_deplibs_GCJ=yes
17836       ;;
17837
17838     netbsd* | netbsdelf*-gnu)
17839       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17840         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17841       else
17842         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17843       fi
17844       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17845       hardcode_direct_GCJ=yes
17846       hardcode_shlibpath_var_GCJ=no
17847       ;;
17848
17849     newsos6)
17850       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17851       hardcode_direct_GCJ=yes
17852       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17853       hardcode_libdir_separator_GCJ=:
17854       hardcode_shlibpath_var_GCJ=no
17855       ;;
17856
17857     openbsd*)
17858       hardcode_direct_GCJ=yes
17859       hardcode_shlibpath_var_GCJ=no
17860       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17861         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17862         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17863         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17864         export_dynamic_flag_spec_GCJ='${wl}-E'
17865       else
17866        case $host_os in
17867          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17868            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17869            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17870            ;;
17871          *)
17872            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17873            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17874            ;;
17875        esac
17876       fi
17877       ;;
17878
17879     os2*)
17880       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17881       hardcode_minus_L_GCJ=yes
17882       allow_undefined_flag_GCJ=unsupported
17883       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'
17884       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17885       ;;
17886
17887     osf3*)
17888       if test "$GCC" = yes; then
17889         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17890         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'
17891       else
17892         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17893         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'
17894       fi
17895       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17896       hardcode_libdir_separator_GCJ=:
17897       ;;
17898
17899     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17900       if test "$GCC" = yes; then
17901         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17902         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'
17903         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17904       else
17905         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17906         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'
17907         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~
17908         $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'
17909
17910         # Both c and cxx compiler support -rpath directly
17911         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17912       fi
17913       hardcode_libdir_separator_GCJ=:
17914       ;;
17915
17916     solaris*)
17917       no_undefined_flag_GCJ=' -z text'
17918       if test "$GCC" = yes; then
17919         wlarc='${wl}'
17920         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17921         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17922           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17923       else
17924         wlarc=''
17925         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17926         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17927         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17928       fi
17929       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17930       hardcode_shlibpath_var_GCJ=no
17931       case $host_os in
17932       solaris2.[0-5] | solaris2.[0-5].*) ;;
17933       *)
17934         # The compiler driver will combine linker options so we
17935         # cannot just pass the convience library names through
17936         # without $wl, iff we do not link with $LD.
17937         # Luckily, gcc supports the same syntax we need for Sun Studio.
17938         # Supported since Solaris 2.6 (maybe 2.5.1?)
17939         case $wlarc in
17940         '')
17941           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17942         *)
17943           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' ;;
17944         esac ;;
17945       esac
17946       link_all_deplibs_GCJ=yes
17947       ;;
17948
17949     sunos4*)
17950       if test "x$host_vendor" = xsequent; then
17951         # Use $CC to link under sequent, because it throws in some extra .o
17952         # files that make .init and .fini sections work.
17953         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17954       else
17955         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17956       fi
17957       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17958       hardcode_direct_GCJ=yes
17959       hardcode_minus_L_GCJ=yes
17960       hardcode_shlibpath_var_GCJ=no
17961       ;;
17962
17963     sysv4)
17964       case $host_vendor in
17965         sni)
17966           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17967           hardcode_direct_GCJ=yes # is this really true???
17968         ;;
17969         siemens)
17970           ## LD is ld it makes a PLAMLIB
17971           ## CC just makes a GrossModule.
17972           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17973           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17974           hardcode_direct_GCJ=no
17975         ;;
17976         motorola)
17977           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17978           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17979         ;;
17980       esac
17981       runpath_var='LD_RUN_PATH'
17982       hardcode_shlibpath_var_GCJ=no
17983       ;;
17984
17985     sysv4.3*)
17986       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17987       hardcode_shlibpath_var_GCJ=no
17988       export_dynamic_flag_spec_GCJ='-Bexport'
17989       ;;
17990
17991     sysv4*MP*)
17992       if test -d /usr/nec; then
17993         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17994         hardcode_shlibpath_var_GCJ=no
17995         runpath_var=LD_RUN_PATH
17996         hardcode_runpath_var=yes
17997         ld_shlibs_GCJ=yes
17998       fi
17999       ;;
18000
18001     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18002       no_undefined_flag_GCJ='${wl}-z,text'
18003       archive_cmds_need_lc_GCJ=no
18004       hardcode_shlibpath_var_GCJ=no
18005       runpath_var='LD_RUN_PATH'
18006
18007       if test "$GCC" = yes; then
18008         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18009         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18010       else
18011         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18012         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18013       fi
18014       ;;
18015
18016     sysv5* | sco3.2v5* | sco5v6*)
18017       # Note: We can NOT use -z defs as we might desire, because we do not
18018       # link with -lc, and that would cause any symbols used from libc to
18019       # always be unresolved, which means just about no library would
18020       # ever link correctly.  If we're not using GNU ld we use -z text
18021       # though, which does catch some bad symbols but isn't as heavy-handed
18022       # as -z defs.
18023       no_undefined_flag_GCJ='${wl}-z,text'
18024       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18025       archive_cmds_need_lc_GCJ=no
18026       hardcode_shlibpath_var_GCJ=no
18027       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18028       hardcode_libdir_separator_GCJ=':'
18029       link_all_deplibs_GCJ=yes
18030       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18031       runpath_var='LD_RUN_PATH'
18032
18033       if test "$GCC" = yes; then
18034         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18035         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18036       else
18037         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18038         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18039       fi
18040       ;;
18041
18042     uts4*)
18043       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18044       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18045       hardcode_shlibpath_var_GCJ=no
18046       ;;
18047
18048     *)
18049       ld_shlibs_GCJ=no
18050       ;;
18051     esac
18052   fi
18053
18054 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18055 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18056 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18057
18058 #
18059 # Do we need to explicitly link libc?
18060 #
18061 case "x$archive_cmds_need_lc_GCJ" in
18062 x|xyes)
18063   # Assume -lc should be added
18064   archive_cmds_need_lc_GCJ=yes
18065
18066   if test "$enable_shared" = yes && test "$GCC" = yes; then
18067     case $archive_cmds_GCJ in
18068     *'~'*)
18069       # FIXME: we may have to deal with multi-command sequences.
18070       ;;
18071     '$CC '*)
18072       # Test whether the compiler implicitly links with -lc since on some
18073       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18074       # to ld, don't add -lc before -lgcc.
18075       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18076 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18077       $rm conftest*
18078       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18079
18080       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18081   (eval $ac_compile) 2>&5
18082   ac_status=$?
18083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084   (exit $ac_status); } 2>conftest.err; then
18085         soname=conftest
18086         lib=conftest
18087         libobjs=conftest.$ac_objext
18088         deplibs=
18089         wl=$lt_prog_compiler_wl_GCJ
18090         pic_flag=$lt_prog_compiler_pic_GCJ
18091         compiler_flags=-v
18092         linker_flags=-v
18093         verstring=
18094         output_objdir=.
18095         libname=conftest
18096         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18097         allow_undefined_flag_GCJ=
18098         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18099   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18100   ac_status=$?
18101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18102   (exit $ac_status); }
18103         then
18104           archive_cmds_need_lc_GCJ=no
18105         else
18106           archive_cmds_need_lc_GCJ=yes
18107         fi
18108         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18109       else
18110         cat conftest.err 1>&5
18111       fi
18112       $rm conftest*
18113       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18114 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18115       ;;
18116     esac
18117   fi
18118   ;;
18119 esac
18120
18121 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18122 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18123 library_names_spec=
18124 libname_spec='lib$name'
18125 soname_spec=
18126 shrext_cmds=".so"
18127 postinstall_cmds=
18128 postuninstall_cmds=
18129 finish_cmds=
18130 finish_eval=
18131 shlibpath_var=
18132 shlibpath_overrides_runpath=unknown
18133 version_type=none
18134 dynamic_linker="$host_os ld.so"
18135 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18136 if test "$GCC" = yes; then
18137   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18138   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18139     # if the path contains ";" then we assume it to be the separator
18140     # otherwise default to the standard path separator (i.e. ":") - it is
18141     # assumed that no part of a normal pathname contains ";" but that should
18142     # okay in the real world where ";" in dirpaths is itself problematic.
18143     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18144   else
18145     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18146   fi
18147 else
18148   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18149 fi
18150 need_lib_prefix=unknown
18151 hardcode_into_libs=no
18152
18153 # when you set need_version to no, make sure it does not cause -set_version
18154 # flags to be left without arguments
18155 need_version=unknown
18156
18157 case $host_os in
18158 aix3*)
18159   version_type=linux
18160   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18161   shlibpath_var=LIBPATH
18162
18163   # AIX 3 has no versioning support, so we append a major version to the name.
18164   soname_spec='${libname}${release}${shared_ext}$major'
18165   ;;
18166
18167 aix4* | aix5*)
18168   version_type=linux
18169   need_lib_prefix=no
18170   need_version=no
18171   hardcode_into_libs=yes
18172   if test "$host_cpu" = ia64; then
18173     # AIX 5 supports IA64
18174     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18175     shlibpath_var=LD_LIBRARY_PATH
18176   else
18177     # With GCC up to 2.95.x, collect2 would create an import file
18178     # for dependence libraries.  The import file would start with
18179     # the line `#! .'.  This would cause the generated library to
18180     # depend on `.', always an invalid library.  This was fixed in
18181     # development snapshots of GCC prior to 3.0.
18182     case $host_os in
18183       aix4 | aix4.[01] | aix4.[01].*)
18184       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18185            echo ' yes '
18186            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18187         :
18188       else
18189         can_build_shared=no
18190       fi
18191       ;;
18192     esac
18193     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18194     # soname into executable. Probably we can add versioning support to
18195     # collect2, so additional links can be useful in future.
18196     if test "$aix_use_runtimelinking" = yes; then
18197       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18198       # instead of lib<name>.a to let people know that these are not
18199       # typical AIX shared libraries.
18200       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18201     else
18202       # We preserve .a as extension for shared libraries through AIX4.2
18203       # and later when we are not doing run time linking.
18204       library_names_spec='${libname}${release}.a $libname.a'
18205       soname_spec='${libname}${release}${shared_ext}$major'
18206     fi
18207     shlibpath_var=LIBPATH
18208   fi
18209   ;;
18210
18211 amigaos*)
18212   library_names_spec='$libname.ixlibrary $libname.a'
18213   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18214   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'
18215   ;;
18216
18217 beos*)
18218   library_names_spec='${libname}${shared_ext}'
18219   dynamic_linker="$host_os ld.so"
18220   shlibpath_var=LIBRARY_PATH
18221   ;;
18222
18223 bsdi[45]*)
18224   version_type=linux
18225   need_version=no
18226   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18227   soname_spec='${libname}${release}${shared_ext}$major'
18228   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18229   shlibpath_var=LD_LIBRARY_PATH
18230   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18231   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18232   # the default ld.so.conf also contains /usr/contrib/lib and
18233   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18234   # libtool to hard-code these into programs
18235   ;;
18236
18237 cygwin* | mingw* | pw32*)
18238   version_type=windows
18239   shrext_cmds=".dll"
18240   need_version=no
18241   need_lib_prefix=no
18242
18243   case $GCC,$host_os in
18244   yes,cygwin* | yes,mingw* | yes,pw32*)
18245     library_names_spec='$libname.dll.a'
18246     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18247     postinstall_cmds='base_file=`basename \${file}`~
18248       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18249       dldir=$destdir/`dirname \$dlpath`~
18250       test -d \$dldir || mkdir -p \$dldir~
18251       $install_prog $dir/$dlname \$dldir/$dlname~
18252       chmod a+x \$dldir/$dlname'
18253     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18254       dlpath=$dir/\$dldll~
18255        $rm \$dlpath'
18256     shlibpath_overrides_runpath=yes
18257
18258     case $host_os in
18259     cygwin*)
18260       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18261       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18262       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18263       ;;
18264     mingw*)
18265       # MinGW DLLs use traditional 'lib' prefix
18266       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18267       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18268       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18269         # It is most probably a Windows format PATH printed by
18270         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18271         # path with ; separators, and with drive letters. We can handle the
18272         # drive letters (cygwin fileutils understands them), so leave them,
18273         # especially as we might pass files found there to a mingw objdump,
18274         # which wouldn't understand a cygwinified path. Ahh.
18275         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18276       else
18277         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18278       fi
18279       ;;
18280     pw32*)
18281       # pw32 DLLs use 'pw' prefix rather than 'lib'
18282       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18283       ;;
18284     esac
18285     ;;
18286
18287   *)
18288     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18289     ;;
18290   esac
18291   dynamic_linker='Win32 ld.exe'
18292   # FIXME: first we should search . and the directory the executable is in
18293   shlibpath_var=PATH
18294   ;;
18295
18296 darwin* | rhapsody*)
18297   dynamic_linker="$host_os dyld"
18298   version_type=darwin
18299   need_lib_prefix=no
18300   need_version=no
18301   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18302   soname_spec='${libname}${release}${major}$shared_ext'
18303   shlibpath_overrides_runpath=yes
18304   shlibpath_var=DYLD_LIBRARY_PATH
18305   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18306   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18307   if test "$GCC" = yes; then
18308     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"`
18309   else
18310     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18311   fi
18312   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18313   ;;
18314
18315 dgux*)
18316   version_type=linux
18317   need_lib_prefix=no
18318   need_version=no
18319   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18320   soname_spec='${libname}${release}${shared_ext}$major'
18321   shlibpath_var=LD_LIBRARY_PATH
18322   ;;
18323
18324 freebsd1*)
18325   dynamic_linker=no
18326   ;;
18327
18328 freebsd* | dragonfly*)
18329   # DragonFly does not have aout.  When/if they implement a new
18330   # versioning mechanism, adjust this.
18331   if test -x /usr/bin/objformat; then
18332     objformat=`/usr/bin/objformat`
18333   else
18334     case $host_os in
18335     freebsd[123]*) objformat=aout ;;
18336     *) objformat=elf ;;
18337     esac
18338   fi
18339   version_type=freebsd-$objformat
18340   case $version_type in
18341     freebsd-elf*)
18342       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18343       need_version=no
18344       need_lib_prefix=no
18345       ;;
18346     freebsd-*)
18347       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18348       need_version=yes
18349       ;;
18350   esac
18351   shlibpath_var=LD_LIBRARY_PATH
18352   case $host_os in
18353   freebsd2*)
18354     shlibpath_overrides_runpath=yes
18355     ;;
18356   freebsd3.[01]* | freebsdelf3.[01]*)
18357     shlibpath_overrides_runpath=yes
18358     hardcode_into_libs=yes
18359     ;;
18360   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18361   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18362     shlibpath_overrides_runpath=no
18363     hardcode_into_libs=yes
18364     ;;
18365   freebsd*) # from 4.6 on
18366     shlibpath_overrides_runpath=yes
18367     hardcode_into_libs=yes
18368     ;;
18369   esac
18370   ;;
18371
18372 gnu*)
18373   version_type=linux
18374   need_lib_prefix=no
18375   need_version=no
18376   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18377   soname_spec='${libname}${release}${shared_ext}$major'
18378   shlibpath_var=LD_LIBRARY_PATH
18379   hardcode_into_libs=yes
18380   ;;
18381
18382 hpux9* | hpux10* | hpux11*)
18383   # Give a soname corresponding to the major version so that dld.sl refuses to
18384   # link against other versions.
18385   version_type=sunos
18386   need_lib_prefix=no
18387   need_version=no
18388   case $host_cpu in
18389   ia64*)
18390     shrext_cmds='.so'
18391     hardcode_into_libs=yes
18392     dynamic_linker="$host_os dld.so"
18393     shlibpath_var=LD_LIBRARY_PATH
18394     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18395     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18396     soname_spec='${libname}${release}${shared_ext}$major'
18397     if test "X$HPUX_IA64_MODE" = X32; then
18398       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18399     else
18400       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18401     fi
18402     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18403     ;;
18404    hppa*64*)
18405      shrext_cmds='.sl'
18406      hardcode_into_libs=yes
18407      dynamic_linker="$host_os dld.sl"
18408      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18409      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18410      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18411      soname_spec='${libname}${release}${shared_ext}$major'
18412      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18413      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18414      ;;
18415    *)
18416     shrext_cmds='.sl'
18417     dynamic_linker="$host_os dld.sl"
18418     shlibpath_var=SHLIB_PATH
18419     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18420     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18421     soname_spec='${libname}${release}${shared_ext}$major'
18422     ;;
18423   esac
18424   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18425   postinstall_cmds='chmod 555 $lib'
18426   ;;
18427
18428 interix3*)
18429   version_type=linux
18430   need_lib_prefix=no
18431   need_version=no
18432   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18433   soname_spec='${libname}${release}${shared_ext}$major'
18434   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18435   shlibpath_var=LD_LIBRARY_PATH
18436   shlibpath_overrides_runpath=no
18437   hardcode_into_libs=yes
18438   ;;
18439
18440 irix5* | irix6* | nonstopux*)
18441   case $host_os in
18442     nonstopux*) version_type=nonstopux ;;
18443     *)
18444         if test "$lt_cv_prog_gnu_ld" = yes; then
18445                 version_type=linux
18446         else
18447                 version_type=irix
18448         fi ;;
18449   esac
18450   need_lib_prefix=no
18451   need_version=no
18452   soname_spec='${libname}${release}${shared_ext}$major'
18453   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18454   case $host_os in
18455   irix5* | nonstopux*)
18456     libsuff= shlibsuff=
18457     ;;
18458   *)
18459     case $LD in # libtool.m4 will add one of these switches to LD
18460     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18461       libsuff= shlibsuff= libmagic=32-bit;;
18462     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18463       libsuff=32 shlibsuff=N32 libmagic=N32;;
18464     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18465       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18466     *) libsuff= shlibsuff= libmagic=never-match;;
18467     esac
18468     ;;
18469   esac
18470   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18471   shlibpath_overrides_runpath=no
18472   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18473   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18474   hardcode_into_libs=yes
18475   ;;
18476
18477 # No shared lib support for Linux oldld, aout, or coff.
18478 linux*oldld* | linux*aout* | linux*coff*)
18479   dynamic_linker=no
18480   ;;
18481
18482 # This must be Linux ELF.
18483 linux* | k*bsd*-gnu)
18484   version_type=linux
18485   need_lib_prefix=no
18486   need_version=no
18487   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18488   soname_spec='${libname}${release}${shared_ext}$major'
18489   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18490   shlibpath_var=LD_LIBRARY_PATH
18491   shlibpath_overrides_runpath=no
18492   # This implies no fast_install, which is unacceptable.
18493   # Some rework will be needed to allow for fast_install
18494   # before this can be enabled.
18495   hardcode_into_libs=yes
18496
18497   # Append ld.so.conf contents to the search path
18498   if test -f /etc/ld.so.conf; then
18499     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' ' '`
18500     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18501   fi
18502
18503   # We used to test for /lib/ld.so.1 and disable shared libraries on
18504   # powerpc, because MkLinux only supported shared libraries with the
18505   # GNU dynamic linker.  Since this was broken with cross compilers,
18506   # most powerpc-linux boxes support dynamic linking these days and
18507   # people can always --disable-shared, the test was removed, and we
18508   # assume the GNU/Linux dynamic linker is in use.
18509   dynamic_linker='GNU/Linux ld.so'
18510   ;;
18511
18512 netbsdelf*-gnu)
18513   version_type=linux
18514   need_lib_prefix=no
18515   need_version=no
18516   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18517   soname_spec='${libname}${release}${shared_ext}$major'
18518   shlibpath_var=LD_LIBRARY_PATH
18519   shlibpath_overrides_runpath=no
18520   hardcode_into_libs=yes
18521   dynamic_linker='NetBSD ld.elf_so'
18522   ;;
18523
18524 netbsd*)
18525   version_type=sunos
18526   need_lib_prefix=no
18527   need_version=no
18528   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18529     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18530     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18531     dynamic_linker='NetBSD (a.out) ld.so'
18532   else
18533     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18534     soname_spec='${libname}${release}${shared_ext}$major'
18535     dynamic_linker='NetBSD ld.elf_so'
18536   fi
18537   shlibpath_var=LD_LIBRARY_PATH
18538   shlibpath_overrides_runpath=yes
18539   hardcode_into_libs=yes
18540   ;;
18541
18542 newsos6)
18543   version_type=linux
18544   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18545   shlibpath_var=LD_LIBRARY_PATH
18546   shlibpath_overrides_runpath=yes
18547   ;;
18548
18549 nto-qnx*)
18550   version_type=linux
18551   need_lib_prefix=no
18552   need_version=no
18553   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18554   soname_spec='${libname}${release}${shared_ext}$major'
18555   shlibpath_var=LD_LIBRARY_PATH
18556   shlibpath_overrides_runpath=yes
18557   ;;
18558
18559 openbsd*)
18560   version_type=sunos
18561   sys_lib_dlsearch_path_spec="/usr/lib"
18562   need_lib_prefix=no
18563   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18564   case $host_os in
18565     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18566     *)                         need_version=no  ;;
18567   esac
18568   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18569   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18570   shlibpath_var=LD_LIBRARY_PATH
18571   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18572     case $host_os in
18573       openbsd2.[89] | openbsd2.[89].*)
18574         shlibpath_overrides_runpath=no
18575         ;;
18576       *)
18577         shlibpath_overrides_runpath=yes
18578         ;;
18579       esac
18580   else
18581     shlibpath_overrides_runpath=yes
18582   fi
18583   ;;
18584
18585 os2*)
18586   libname_spec='$name'
18587   shrext_cmds=".dll"
18588   need_lib_prefix=no
18589   library_names_spec='$libname${shared_ext} $libname.a'
18590   dynamic_linker='OS/2 ld.exe'
18591   shlibpath_var=LIBPATH
18592   ;;
18593
18594 osf3* | osf4* | osf5*)
18595   version_type=osf
18596   need_lib_prefix=no
18597   need_version=no
18598   soname_spec='${libname}${release}${shared_ext}$major'
18599   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18600   shlibpath_var=LD_LIBRARY_PATH
18601   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18602   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18603   ;;
18604
18605 solaris*)
18606   version_type=linux
18607   need_lib_prefix=no
18608   need_version=no
18609   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18610   soname_spec='${libname}${release}${shared_ext}$major'
18611   shlibpath_var=LD_LIBRARY_PATH
18612   shlibpath_overrides_runpath=yes
18613   hardcode_into_libs=yes
18614   # ldd complains unless libraries are executable
18615   postinstall_cmds='chmod +x $lib'
18616   ;;
18617
18618 sunos4*)
18619   version_type=sunos
18620   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18621   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18622   shlibpath_var=LD_LIBRARY_PATH
18623   shlibpath_overrides_runpath=yes
18624   if test "$with_gnu_ld" = yes; then
18625     need_lib_prefix=no
18626   fi
18627   need_version=yes
18628   ;;
18629
18630 sysv4 | sysv4.3*)
18631   version_type=linux
18632   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18633   soname_spec='${libname}${release}${shared_ext}$major'
18634   shlibpath_var=LD_LIBRARY_PATH
18635   case $host_vendor in
18636     sni)
18637       shlibpath_overrides_runpath=no
18638       need_lib_prefix=no
18639       export_dynamic_flag_spec='${wl}-Blargedynsym'
18640       runpath_var=LD_RUN_PATH
18641       ;;
18642     siemens)
18643       need_lib_prefix=no
18644       ;;
18645     motorola)
18646       need_lib_prefix=no
18647       need_version=no
18648       shlibpath_overrides_runpath=no
18649       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18650       ;;
18651   esac
18652   ;;
18653
18654 sysv4*MP*)
18655   if test -d /usr/nec ;then
18656     version_type=linux
18657     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18658     soname_spec='$libname${shared_ext}.$major'
18659     shlibpath_var=LD_LIBRARY_PATH
18660   fi
18661   ;;
18662
18663 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18664   version_type=freebsd-elf
18665   need_lib_prefix=no
18666   need_version=no
18667   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18668   soname_spec='${libname}${release}${shared_ext}$major'
18669   shlibpath_var=LD_LIBRARY_PATH
18670   hardcode_into_libs=yes
18671   if test "$with_gnu_ld" = yes; then
18672     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18673     shlibpath_overrides_runpath=no
18674   else
18675     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18676     shlibpath_overrides_runpath=yes
18677     case $host_os in
18678       sco3.2v5*)
18679         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18680         ;;
18681     esac
18682   fi
18683   sys_lib_dlsearch_path_spec='/usr/lib'
18684   ;;
18685
18686 uts4*)
18687   version_type=linux
18688   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18689   soname_spec='${libname}${release}${shared_ext}$major'
18690   shlibpath_var=LD_LIBRARY_PATH
18691   ;;
18692
18693 *)
18694   dynamic_linker=no
18695   ;;
18696 esac
18697 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18698 echo "${ECHO_T}$dynamic_linker" >&6
18699 test "$dynamic_linker" = no && can_build_shared=no
18700
18701 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18702 if test "$GCC" = yes; then
18703   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18704 fi
18705
18706 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18707 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18708 hardcode_action_GCJ=
18709 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18710    test -n "$runpath_var_GCJ" || \
18711    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18712
18713   # We can hardcode non-existant directories.
18714   if test "$hardcode_direct_GCJ" != no &&
18715      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18716      # have to relink, otherwise we might link with an installed library
18717      # when we should be linking with a yet-to-be-installed one
18718      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18719      test "$hardcode_minus_L_GCJ" != no; then
18720     # Linking always hardcodes the temporary library directory.
18721     hardcode_action_GCJ=relink
18722   else
18723     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18724     hardcode_action_GCJ=immediate
18725   fi
18726 else
18727   # We cannot hardcode anything, or else we can only hardcode existing
18728   # directories.
18729   hardcode_action_GCJ=unsupported
18730 fi
18731 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18732 echo "${ECHO_T}$hardcode_action_GCJ" >&6
18733
18734 if test "$hardcode_action_GCJ" = relink; then
18735   # Fast installation is not supported
18736   enable_fast_install=no
18737 elif test "$shlibpath_overrides_runpath" = yes ||
18738      test "$enable_shared" = no; then
18739   # Fast installation is not necessary
18740   enable_fast_install=needless
18741 fi
18742
18743
18744 # The else clause should only fire when bootstrapping the
18745 # libtool distribution, otherwise you forgot to ship ltmain.sh
18746 # with your package, and you will get complaints that there are
18747 # no rules to generate ltmain.sh.
18748 if test -f "$ltmain"; then
18749   # See if we are running on zsh, and set the options which allow our commands through
18750   # without removal of \ escapes.
18751   if test -n "${ZSH_VERSION+set}" ; then
18752     setopt NO_GLOB_SUBST
18753   fi
18754   # Now quote all the things that may contain metacharacters while being
18755   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18756   # variables and quote the copies for generation of the libtool script.
18757   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18758     SED SHELL STRIP \
18759     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18760     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18761     deplibs_check_method reload_flag reload_cmds need_locks \
18762     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18763     lt_cv_sys_global_symbol_to_c_name_address \
18764     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18765     old_postinstall_cmds old_postuninstall_cmds \
18766     compiler_GCJ \
18767     CC_GCJ \
18768     LD_GCJ \
18769     lt_prog_compiler_wl_GCJ \
18770     lt_prog_compiler_pic_GCJ \
18771     lt_prog_compiler_static_GCJ \
18772     lt_prog_compiler_no_builtin_flag_GCJ \
18773     export_dynamic_flag_spec_GCJ \
18774     thread_safe_flag_spec_GCJ \
18775     whole_archive_flag_spec_GCJ \
18776     enable_shared_with_static_runtimes_GCJ \
18777     old_archive_cmds_GCJ \
18778     old_archive_from_new_cmds_GCJ \
18779     predep_objects_GCJ \
18780     postdep_objects_GCJ \
18781     predeps_GCJ \
18782     postdeps_GCJ \
18783     compiler_lib_search_path_GCJ \
18784     archive_cmds_GCJ \
18785     archive_expsym_cmds_GCJ \
18786     postinstall_cmds_GCJ \
18787     postuninstall_cmds_GCJ \
18788     old_archive_from_expsyms_cmds_GCJ \
18789     allow_undefined_flag_GCJ \
18790     no_undefined_flag_GCJ \
18791     export_symbols_cmds_GCJ \
18792     hardcode_libdir_flag_spec_GCJ \
18793     hardcode_libdir_flag_spec_ld_GCJ \
18794     hardcode_libdir_separator_GCJ \
18795     hardcode_automatic_GCJ \
18796     module_cmds_GCJ \
18797     module_expsym_cmds_GCJ \
18798     lt_cv_prog_compiler_c_o_GCJ \
18799     exclude_expsyms_GCJ \
18800     include_expsyms_GCJ; do
18801
18802     case $var in
18803     old_archive_cmds_GCJ | \
18804     old_archive_from_new_cmds_GCJ | \
18805     archive_cmds_GCJ | \
18806     archive_expsym_cmds_GCJ | \
18807     module_cmds_GCJ | \
18808     module_expsym_cmds_GCJ | \
18809     old_archive_from_expsyms_cmds_GCJ | \
18810     export_symbols_cmds_GCJ | \
18811     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18812     postinstall_cmds | postuninstall_cmds | \
18813     old_postinstall_cmds | old_postuninstall_cmds | \
18814     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18815       # Double-quote double-evaled strings.
18816       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18817       ;;
18818     *)
18819       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18820       ;;
18821     esac
18822   done
18823
18824   case $lt_echo in
18825   *'\$0 --fallback-echo"')
18826     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18827     ;;
18828   esac
18829
18830 cfgfile="$ofile"
18831
18832   cat <<__EOF__ >> "$cfgfile"
18833 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18834
18835 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18836
18837 # Shell to use when invoking shell scripts.
18838 SHELL=$lt_SHELL
18839
18840 # Whether or not to build shared libraries.
18841 build_libtool_libs=$enable_shared
18842
18843 # Whether or not to build static libraries.
18844 build_old_libs=$enable_static
18845
18846 # Whether or not to add -lc for building shared libraries.
18847 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18848
18849 # Whether or not to disallow shared libs when runtime libs are static
18850 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18851
18852 # Whether or not to optimize for fast installation.
18853 fast_install=$enable_fast_install
18854
18855 # The host system.
18856 host_alias=$host_alias
18857 host=$host
18858 host_os=$host_os
18859
18860 # The build system.
18861 build_alias=$build_alias
18862 build=$build
18863 build_os=$build_os
18864
18865 # An echo program that does not interpret backslashes.
18866 echo=$lt_echo
18867
18868 # The archiver.
18869 AR=$lt_AR
18870 AR_FLAGS=$lt_AR_FLAGS
18871
18872 # A C compiler.
18873 LTCC=$lt_LTCC
18874
18875 # LTCC compiler flags.
18876 LTCFLAGS=$lt_LTCFLAGS
18877
18878 # A language-specific compiler.
18879 CC=$lt_compiler_GCJ
18880
18881 # Is the compiler the GNU C compiler?
18882 with_gcc=$GCC_GCJ
18883
18884 # An ERE matcher.
18885 EGREP=$lt_EGREP
18886
18887 # The linker used to build libraries.
18888 LD=$lt_LD_GCJ
18889
18890 # Whether we need hard or soft links.
18891 LN_S=$lt_LN_S
18892
18893 # A BSD-compatible nm program.
18894 NM=$lt_NM
18895
18896 # A symbol stripping program
18897 STRIP=$lt_STRIP
18898
18899 # Used to examine libraries when file_magic_cmd begins "file"
18900 MAGIC_CMD=$MAGIC_CMD
18901
18902 # Used on cygwin: DLL creation program.
18903 DLLTOOL="$DLLTOOL"
18904
18905 # Used on cygwin: object dumper.
18906 OBJDUMP="$OBJDUMP"
18907
18908 # Used on cygwin: assembler.
18909 AS="$AS"
18910
18911 # The name of the directory that contains temporary libtool files.
18912 objdir=$objdir
18913
18914 # How to create reloadable object files.
18915 reload_flag=$lt_reload_flag
18916 reload_cmds=$lt_reload_cmds
18917
18918 # How to pass a linker flag through the compiler.
18919 wl=$lt_lt_prog_compiler_wl_GCJ
18920
18921 # Object file suffix (normally "o").
18922 objext="$ac_objext"
18923
18924 # Old archive suffix (normally "a").
18925 libext="$libext"
18926
18927 # Shared library suffix (normally ".so").
18928 shrext_cmds='$shrext_cmds'
18929
18930 # Executable file suffix (normally "").
18931 exeext="$exeext"
18932
18933 # Additional compiler flags for building library objects.
18934 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18935 pic_mode=$pic_mode
18936
18937 # What is the maximum length of a command?
18938 max_cmd_len=$lt_cv_sys_max_cmd_len
18939
18940 # Does compiler simultaneously support -c and -o options?
18941 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18942
18943 # Must we lock files when doing compilation?
18944 need_locks=$lt_need_locks
18945
18946 # Do we need the lib prefix for modules?
18947 need_lib_prefix=$need_lib_prefix
18948
18949 # Do we need a version for libraries?
18950 need_version=$need_version
18951
18952 # Whether dlopen is supported.
18953 dlopen_support=$enable_dlopen
18954
18955 # Whether dlopen of programs is supported.
18956 dlopen_self=$enable_dlopen_self
18957
18958 # Whether dlopen of statically linked programs is supported.
18959 dlopen_self_static=$enable_dlopen_self_static
18960
18961 # Compiler flag to prevent dynamic linking.
18962 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18963
18964 # Compiler flag to turn off builtin functions.
18965 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18966
18967 # Compiler flag to allow reflexive dlopens.
18968 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18969
18970 # Compiler flag to generate shared objects directly from archives.
18971 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18972
18973 # Compiler flag to generate thread-safe objects.
18974 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18975
18976 # Library versioning type.
18977 version_type=$version_type
18978
18979 # Format of library name prefix.
18980 libname_spec=$lt_libname_spec
18981
18982 # List of archive names.  First name is the real one, the rest are links.
18983 # The last name is the one that the linker finds with -lNAME.
18984 library_names_spec=$lt_library_names_spec
18985
18986 # The coded name of the library, if different from the real name.
18987 soname_spec=$lt_soname_spec
18988
18989 # Commands used to build and install an old-style archive.
18990 RANLIB=$lt_RANLIB
18991 old_archive_cmds=$lt_old_archive_cmds_GCJ
18992 old_postinstall_cmds=$lt_old_postinstall_cmds
18993 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18994
18995 # Create an old-style archive from a shared archive.
18996 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18997
18998 # Create a temporary old-style archive to link instead of a shared archive.
18999 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19000
19001 # Commands used to build and install a shared archive.
19002 archive_cmds=$lt_archive_cmds_GCJ
19003 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19004 postinstall_cmds=$lt_postinstall_cmds
19005 postuninstall_cmds=$lt_postuninstall_cmds
19006
19007 # Commands used to build a loadable module (assumed same as above if empty)
19008 module_cmds=$lt_module_cmds_GCJ
19009 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19010
19011 # Commands to strip libraries.
19012 old_striplib=$lt_old_striplib
19013 striplib=$lt_striplib
19014
19015 # Dependencies to place before the objects being linked to create a
19016 # shared library.
19017 predep_objects=$lt_predep_objects_GCJ
19018
19019 # Dependencies to place after the objects being linked to create a
19020 # shared library.
19021 postdep_objects=$lt_postdep_objects_GCJ
19022
19023 # Dependencies to place before the objects being linked to create a
19024 # shared library.
19025 predeps=$lt_predeps_GCJ
19026
19027 # Dependencies to place after the objects being linked to create a
19028 # shared library.
19029 postdeps=$lt_postdeps_GCJ
19030
19031 # The library search path used internally by the compiler when linking
19032 # a shared library.
19033 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19034
19035 # Method to check whether dependent libraries are shared objects.
19036 deplibs_check_method=$lt_deplibs_check_method
19037
19038 # Command to use when deplibs_check_method == file_magic.
19039 file_magic_cmd=$lt_file_magic_cmd
19040
19041 # Flag that allows shared libraries with undefined symbols to be built.
19042 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19043
19044 # Flag that forces no undefined symbols.
19045 no_undefined_flag=$lt_no_undefined_flag_GCJ
19046
19047 # Commands used to finish a libtool library installation in a directory.
19048 finish_cmds=$lt_finish_cmds
19049
19050 # Same as above, but a single script fragment to be evaled but not shown.
19051 finish_eval=$lt_finish_eval
19052
19053 # Take the output of nm and produce a listing of raw symbols and C names.
19054 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19055
19056 # Transform the output of nm in a proper C declaration
19057 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19058
19059 # Transform the output of nm in a C name address pair
19060 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19061
19062 # This is the shared library runtime path variable.
19063 runpath_var=$runpath_var
19064
19065 # This is the shared library path variable.
19066 shlibpath_var=$shlibpath_var
19067
19068 # Is shlibpath searched before the hard-coded library search path?
19069 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19070
19071 # How to hardcode a shared library path into an executable.
19072 hardcode_action=$hardcode_action_GCJ
19073
19074 # Whether we should hardcode library paths into libraries.
19075 hardcode_into_libs=$hardcode_into_libs
19076
19077 # Flag to hardcode \$libdir into a binary during linking.
19078 # This must work even if \$libdir does not exist.
19079 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19080
19081 # If ld is used when linking, flag to hardcode \$libdir into
19082 # a binary during linking. This must work even if \$libdir does
19083 # not exist.
19084 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19085
19086 # Whether we need a single -rpath flag with a separated argument.
19087 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19088
19089 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19090 # resulting binary.
19091 hardcode_direct=$hardcode_direct_GCJ
19092
19093 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19094 # resulting binary.
19095 hardcode_minus_L=$hardcode_minus_L_GCJ
19096
19097 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19098 # the resulting binary.
19099 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19100
19101 # Set to yes if building a shared library automatically hardcodes DIR into the library
19102 # and all subsequent libraries and executables linked against it.
19103 hardcode_automatic=$hardcode_automatic_GCJ
19104
19105 # Variables whose values should be saved in libtool wrapper scripts and
19106 # restored at relink time.
19107 variables_saved_for_relink="$variables_saved_for_relink"
19108
19109 # Whether libtool must link a program against all its dependency libraries.
19110 link_all_deplibs=$link_all_deplibs_GCJ
19111
19112 # Compile-time system search path for libraries
19113 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19114
19115 # Run-time system search path for libraries
19116 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19117
19118 # Fix the shell variable \$srcfile for the compiler.
19119 fix_srcfile_path="$fix_srcfile_path_GCJ"
19120
19121 # Set to yes if exported symbols are required.
19122 always_export_symbols=$always_export_symbols_GCJ
19123
19124 # The commands to list exported symbols.
19125 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19126
19127 # The commands to extract the exported symbol list from a shared archive.
19128 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19129
19130 # Symbols that should not be listed in the preloaded symbols.
19131 exclude_expsyms=$lt_exclude_expsyms_GCJ
19132
19133 # Symbols that must always be exported.
19134 include_expsyms=$lt_include_expsyms_GCJ
19135
19136 # ### END LIBTOOL TAG CONFIG: $tagname
19137
19138 __EOF__
19139
19140
19141 else
19142   # If there is no Makefile yet, we rely on a make rule to execute
19143   # `config.status --recheck' to rerun these tests and create the
19144   # libtool script then.
19145   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19146   if test -f "$ltmain_in"; then
19147     test -f Makefile && make "$ltmain"
19148   fi
19149 fi
19150
19151
19152 ac_ext=c
19153 ac_cpp='$CPP $CPPFLAGS'
19154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19157
19158 CC="$lt_save_CC"
19159
19160         else
19161           tagname=""
19162         fi
19163         ;;
19164
19165       RC)
19166
19167
19168
19169 # Source file extension for RC test sources.
19170 ac_ext=rc
19171
19172 # Object file extension for compiled RC test sources.
19173 objext=o
19174 objext_RC=$objext
19175
19176 # Code to be used in simple compile tests
19177 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19178
19179 # Code to be used in simple link tests
19180 lt_simple_link_test_code="$lt_simple_compile_test_code"
19181
19182 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19183
19184 # If no C compiler was specified, use CC.
19185 LTCC=${LTCC-"$CC"}
19186
19187 # If no C compiler flags were specified, use CFLAGS.
19188 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19189
19190 # Allow CC to be a program name with arguments.
19191 compiler=$CC
19192
19193
19194 # save warnings/boilerplate of simple test code
19195 ac_outfile=conftest.$ac_objext
19196 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19197 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19198 _lt_compiler_boilerplate=`cat conftest.err`
19199 $rm conftest*
19200
19201 ac_outfile=conftest.$ac_objext
19202 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19203 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19204 _lt_linker_boilerplate=`cat conftest.err`
19205 $rm conftest*
19206
19207
19208 # Allow CC to be a program name with arguments.
19209 lt_save_CC="$CC"
19210 CC=${RC-"windres"}
19211 compiler=$CC
19212 compiler_RC=$CC
19213 for cc_temp in $compiler""; do
19214   case $cc_temp in
19215     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19216     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19217     \-*) ;;
19218     *) break;;
19219   esac
19220 done
19221 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19222
19223 lt_cv_prog_compiler_c_o_RC=yes
19224
19225 # The else clause should only fire when bootstrapping the
19226 # libtool distribution, otherwise you forgot to ship ltmain.sh
19227 # with your package, and you will get complaints that there are
19228 # no rules to generate ltmain.sh.
19229 if test -f "$ltmain"; then
19230   # See if we are running on zsh, and set the options which allow our commands through
19231   # without removal of \ escapes.
19232   if test -n "${ZSH_VERSION+set}" ; then
19233     setopt NO_GLOB_SUBST
19234   fi
19235   # Now quote all the things that may contain metacharacters while being
19236   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19237   # variables and quote the copies for generation of the libtool script.
19238   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19239     SED SHELL STRIP \
19240     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19241     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19242     deplibs_check_method reload_flag reload_cmds need_locks \
19243     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19244     lt_cv_sys_global_symbol_to_c_name_address \
19245     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19246     old_postinstall_cmds old_postuninstall_cmds \
19247     compiler_RC \
19248     CC_RC \
19249     LD_RC \
19250     lt_prog_compiler_wl_RC \
19251     lt_prog_compiler_pic_RC \
19252     lt_prog_compiler_static_RC \
19253     lt_prog_compiler_no_builtin_flag_RC \
19254     export_dynamic_flag_spec_RC \
19255     thread_safe_flag_spec_RC \
19256     whole_archive_flag_spec_RC \
19257     enable_shared_with_static_runtimes_RC \
19258     old_archive_cmds_RC \
19259     old_archive_from_new_cmds_RC \
19260     predep_objects_RC \
19261     postdep_objects_RC \
19262     predeps_RC \
19263     postdeps_RC \
19264     compiler_lib_search_path_RC \
19265     archive_cmds_RC \
19266     archive_expsym_cmds_RC \
19267     postinstall_cmds_RC \
19268     postuninstall_cmds_RC \
19269     old_archive_from_expsyms_cmds_RC \
19270     allow_undefined_flag_RC \
19271     no_undefined_flag_RC \
19272     export_symbols_cmds_RC \
19273     hardcode_libdir_flag_spec_RC \
19274     hardcode_libdir_flag_spec_ld_RC \
19275     hardcode_libdir_separator_RC \
19276     hardcode_automatic_RC \
19277     module_cmds_RC \
19278     module_expsym_cmds_RC \
19279     lt_cv_prog_compiler_c_o_RC \
19280     exclude_expsyms_RC \
19281     include_expsyms_RC; do
19282
19283     case $var in
19284     old_archive_cmds_RC | \
19285     old_archive_from_new_cmds_RC | \
19286     archive_cmds_RC | \
19287     archive_expsym_cmds_RC | \
19288     module_cmds_RC | \
19289     module_expsym_cmds_RC | \
19290     old_archive_from_expsyms_cmds_RC | \
19291     export_symbols_cmds_RC | \
19292     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19293     postinstall_cmds | postuninstall_cmds | \
19294     old_postinstall_cmds | old_postuninstall_cmds | \
19295     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19296       # Double-quote double-evaled strings.
19297       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19298       ;;
19299     *)
19300       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19301       ;;
19302     esac
19303   done
19304
19305   case $lt_echo in
19306   *'\$0 --fallback-echo"')
19307     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19308     ;;
19309   esac
19310
19311 cfgfile="$ofile"
19312
19313   cat <<__EOF__ >> "$cfgfile"
19314 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19315
19316 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19317
19318 # Shell to use when invoking shell scripts.
19319 SHELL=$lt_SHELL
19320
19321 # Whether or not to build shared libraries.
19322 build_libtool_libs=$enable_shared
19323
19324 # Whether or not to build static libraries.
19325 build_old_libs=$enable_static
19326
19327 # Whether or not to add -lc for building shared libraries.
19328 build_libtool_need_lc=$archive_cmds_need_lc_RC
19329
19330 # Whether or not to disallow shared libs when runtime libs are static
19331 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19332
19333 # Whether or not to optimize for fast installation.
19334 fast_install=$enable_fast_install
19335
19336 # The host system.
19337 host_alias=$host_alias
19338 host=$host
19339 host_os=$host_os
19340
19341 # The build system.
19342 build_alias=$build_alias
19343 build=$build
19344 build_os=$build_os
19345
19346 # An echo program that does not interpret backslashes.
19347 echo=$lt_echo
19348
19349 # The archiver.
19350 AR=$lt_AR
19351 AR_FLAGS=$lt_AR_FLAGS
19352
19353 # A C compiler.
19354 LTCC=$lt_LTCC
19355
19356 # LTCC compiler flags.
19357 LTCFLAGS=$lt_LTCFLAGS
19358
19359 # A language-specific compiler.
19360 CC=$lt_compiler_RC
19361
19362 # Is the compiler the GNU C compiler?
19363 with_gcc=$GCC_RC
19364
19365 # An ERE matcher.
19366 EGREP=$lt_EGREP
19367
19368 # The linker used to build libraries.
19369 LD=$lt_LD_RC
19370
19371 # Whether we need hard or soft links.
19372 LN_S=$lt_LN_S
19373
19374 # A BSD-compatible nm program.
19375 NM=$lt_NM
19376
19377 # A symbol stripping program
19378 STRIP=$lt_STRIP
19379
19380 # Used to examine libraries when file_magic_cmd begins "file"
19381 MAGIC_CMD=$MAGIC_CMD
19382
19383 # Used on cygwin: DLL creation program.
19384 DLLTOOL="$DLLTOOL"
19385
19386 # Used on cygwin: object dumper.
19387 OBJDUMP="$OBJDUMP"
19388
19389 # Used on cygwin: assembler.
19390 AS="$AS"
19391
19392 # The name of the directory that contains temporary libtool files.
19393 objdir=$objdir
19394
19395 # How to create reloadable object files.
19396 reload_flag=$lt_reload_flag
19397 reload_cmds=$lt_reload_cmds
19398
19399 # How to pass a linker flag through the compiler.
19400 wl=$lt_lt_prog_compiler_wl_RC
19401
19402 # Object file suffix (normally "o").
19403 objext="$ac_objext"
19404
19405 # Old archive suffix (normally "a").
19406 libext="$libext"
19407
19408 # Shared library suffix (normally ".so").
19409 shrext_cmds='$shrext_cmds'
19410
19411 # Executable file suffix (normally "").
19412 exeext="$exeext"
19413
19414 # Additional compiler flags for building library objects.
19415 pic_flag=$lt_lt_prog_compiler_pic_RC
19416 pic_mode=$pic_mode
19417
19418 # What is the maximum length of a command?
19419 max_cmd_len=$lt_cv_sys_max_cmd_len
19420
19421 # Does compiler simultaneously support -c and -o options?
19422 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19423
19424 # Must we lock files when doing compilation?
19425 need_locks=$lt_need_locks
19426
19427 # Do we need the lib prefix for modules?
19428 need_lib_prefix=$need_lib_prefix
19429
19430 # Do we need a version for libraries?
19431 need_version=$need_version
19432
19433 # Whether dlopen is supported.
19434 dlopen_support=$enable_dlopen
19435
19436 # Whether dlopen of programs is supported.
19437 dlopen_self=$enable_dlopen_self
19438
19439 # Whether dlopen of statically linked programs is supported.
19440 dlopen_self_static=$enable_dlopen_self_static
19441
19442 # Compiler flag to prevent dynamic linking.
19443 link_static_flag=$lt_lt_prog_compiler_static_RC
19444
19445 # Compiler flag to turn off builtin functions.
19446 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19447
19448 # Compiler flag to allow reflexive dlopens.
19449 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19450
19451 # Compiler flag to generate shared objects directly from archives.
19452 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19453
19454 # Compiler flag to generate thread-safe objects.
19455 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19456
19457 # Library versioning type.
19458 version_type=$version_type
19459
19460 # Format of library name prefix.
19461 libname_spec=$lt_libname_spec
19462
19463 # List of archive names.  First name is the real one, the rest are links.
19464 # The last name is the one that the linker finds with -lNAME.
19465 library_names_spec=$lt_library_names_spec
19466
19467 # The coded name of the library, if different from the real name.
19468 soname_spec=$lt_soname_spec
19469
19470 # Commands used to build and install an old-style archive.
19471 RANLIB=$lt_RANLIB
19472 old_archive_cmds=$lt_old_archive_cmds_RC
19473 old_postinstall_cmds=$lt_old_postinstall_cmds
19474 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19475
19476 # Create an old-style archive from a shared archive.
19477 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19478
19479 # Create a temporary old-style archive to link instead of a shared archive.
19480 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19481
19482 # Commands used to build and install a shared archive.
19483 archive_cmds=$lt_archive_cmds_RC
19484 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19485 postinstall_cmds=$lt_postinstall_cmds
19486 postuninstall_cmds=$lt_postuninstall_cmds
19487
19488 # Commands used to build a loadable module (assumed same as above if empty)
19489 module_cmds=$lt_module_cmds_RC
19490 module_expsym_cmds=$lt_module_expsym_cmds_RC
19491
19492 # Commands to strip libraries.
19493 old_striplib=$lt_old_striplib
19494 striplib=$lt_striplib
19495
19496 # Dependencies to place before the objects being linked to create a
19497 # shared library.
19498 predep_objects=$lt_predep_objects_RC
19499
19500 # Dependencies to place after the objects being linked to create a
19501 # shared library.
19502 postdep_objects=$lt_postdep_objects_RC
19503
19504 # Dependencies to place before the objects being linked to create a
19505 # shared library.
19506 predeps=$lt_predeps_RC
19507
19508 # Dependencies to place after the objects being linked to create a
19509 # shared library.
19510 postdeps=$lt_postdeps_RC
19511
19512 # The library search path used internally by the compiler when linking
19513 # a shared library.
19514 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19515
19516 # Method to check whether dependent libraries are shared objects.
19517 deplibs_check_method=$lt_deplibs_check_method
19518
19519 # Command to use when deplibs_check_method == file_magic.
19520 file_magic_cmd=$lt_file_magic_cmd
19521
19522 # Flag that allows shared libraries with undefined symbols to be built.
19523 allow_undefined_flag=$lt_allow_undefined_flag_RC
19524
19525 # Flag that forces no undefined symbols.
19526 no_undefined_flag=$lt_no_undefined_flag_RC
19527
19528 # Commands used to finish a libtool library installation in a directory.
19529 finish_cmds=$lt_finish_cmds
19530
19531 # Same as above, but a single script fragment to be evaled but not shown.
19532 finish_eval=$lt_finish_eval
19533
19534 # Take the output of nm and produce a listing of raw symbols and C names.
19535 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19536
19537 # Transform the output of nm in a proper C declaration
19538 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19539
19540 # Transform the output of nm in a C name address pair
19541 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19542
19543 # This is the shared library runtime path variable.
19544 runpath_var=$runpath_var
19545
19546 # This is the shared library path variable.
19547 shlibpath_var=$shlibpath_var
19548
19549 # Is shlibpath searched before the hard-coded library search path?
19550 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19551
19552 # How to hardcode a shared library path into an executable.
19553 hardcode_action=$hardcode_action_RC
19554
19555 # Whether we should hardcode library paths into libraries.
19556 hardcode_into_libs=$hardcode_into_libs
19557
19558 # Flag to hardcode \$libdir into a binary during linking.
19559 # This must work even if \$libdir does not exist.
19560 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19561
19562 # If ld is used when linking, flag to hardcode \$libdir into
19563 # a binary during linking. This must work even if \$libdir does
19564 # not exist.
19565 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19566
19567 # Whether we need a single -rpath flag with a separated argument.
19568 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19569
19570 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19571 # resulting binary.
19572 hardcode_direct=$hardcode_direct_RC
19573
19574 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19575 # resulting binary.
19576 hardcode_minus_L=$hardcode_minus_L_RC
19577
19578 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19579 # the resulting binary.
19580 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19581
19582 # Set to yes if building a shared library automatically hardcodes DIR into the library
19583 # and all subsequent libraries and executables linked against it.
19584 hardcode_automatic=$hardcode_automatic_RC
19585
19586 # Variables whose values should be saved in libtool wrapper scripts and
19587 # restored at relink time.
19588 variables_saved_for_relink="$variables_saved_for_relink"
19589
19590 # Whether libtool must link a program against all its dependency libraries.
19591 link_all_deplibs=$link_all_deplibs_RC
19592
19593 # Compile-time system search path for libraries
19594 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19595
19596 # Run-time system search path for libraries
19597 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19598
19599 # Fix the shell variable \$srcfile for the compiler.
19600 fix_srcfile_path="$fix_srcfile_path_RC"
19601
19602 # Set to yes if exported symbols are required.
19603 always_export_symbols=$always_export_symbols_RC
19604
19605 # The commands to list exported symbols.
19606 export_symbols_cmds=$lt_export_symbols_cmds_RC
19607
19608 # The commands to extract the exported symbol list from a shared archive.
19609 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19610
19611 # Symbols that should not be listed in the preloaded symbols.
19612 exclude_expsyms=$lt_exclude_expsyms_RC
19613
19614 # Symbols that must always be exported.
19615 include_expsyms=$lt_include_expsyms_RC
19616
19617 # ### END LIBTOOL TAG CONFIG: $tagname
19618
19619 __EOF__
19620
19621
19622 else
19623   # If there is no Makefile yet, we rely on a make rule to execute
19624   # `config.status --recheck' to rerun these tests and create the
19625   # libtool script then.
19626   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19627   if test -f "$ltmain_in"; then
19628     test -f Makefile && make "$ltmain"
19629   fi
19630 fi
19631
19632
19633 ac_ext=c
19634 ac_cpp='$CPP $CPPFLAGS'
19635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19638
19639 CC="$lt_save_CC"
19640
19641         ;;
19642
19643       *)
19644         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19645 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19646    { (exit 1); exit 1; }; }
19647         ;;
19648       esac
19649
19650       # Append the new tag name to the list of available tags.
19651       if test -n "$tagname" ; then
19652       available_tags="$available_tags $tagname"
19653     fi
19654     fi
19655   done
19656   IFS="$lt_save_ifs"
19657
19658   # Now substitute the updated list of available tags.
19659   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19660     mv "${ofile}T" "$ofile"
19661     chmod +x "$ofile"
19662   else
19663     rm -f "${ofile}T"
19664     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19665 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19666    { (exit 1); exit 1; }; }
19667   fi
19668 fi
19669
19670
19671
19672 # This can be used to rebuild libtool when needed
19673 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19674
19675 # Always use our own libtool.
19676 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19677
19678 # Prevent multiple expansion
19679
19680
19681
19682
19683
19684
19685
19686
19687
19688
19689
19690
19691
19692
19693
19694
19695
19696
19697
19698
19699
19700 if test "x$cross_compiling" = "xno"; then
19701         CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
19702 else
19703         CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
19704 fi
19705
19706
19707
19708 if test -n "$ac_tool_prefix"; then
19709   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
19710 set dummy ${ac_tool_prefix}ar; ac_word=$2
19711 echo "$as_me:$LINENO: checking for $ac_word" >&5
19712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19713 if test "${ac_cv_prog_AR+set}" = set; then
19714   echo $ECHO_N "(cached) $ECHO_C" >&6
19715 else
19716   if test -n "$AR"; then
19717   ac_cv_prog_AR="$AR" # Let the user override the test.
19718 else
19719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19720 for as_dir in $PATH
19721 do
19722   IFS=$as_save_IFS
19723   test -z "$as_dir" && as_dir=.
19724   for ac_exec_ext in '' $ac_executable_extensions; do
19725   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19726     ac_cv_prog_AR="${ac_tool_prefix}ar"
19727     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19728     break 2
19729   fi
19730 done
19731 done
19732
19733 fi
19734 fi
19735 AR=$ac_cv_prog_AR
19736 if test -n "$AR"; then
19737   echo "$as_me:$LINENO: result: $AR" >&5
19738 echo "${ECHO_T}$AR" >&6
19739 else
19740   echo "$as_me:$LINENO: result: no" >&5
19741 echo "${ECHO_T}no" >&6
19742 fi
19743
19744 fi
19745 if test -z "$ac_cv_prog_AR"; then
19746   ac_ct_AR=$AR
19747   # Extract the first word of "ar", so it can be a program name with args.
19748 set dummy ar; ac_word=$2
19749 echo "$as_me:$LINENO: checking for $ac_word" >&5
19750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19751 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
19752   echo $ECHO_N "(cached) $ECHO_C" >&6
19753 else
19754   if test -n "$ac_ct_AR"; then
19755   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
19756 else
19757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19758 for as_dir in $PATH
19759 do
19760   IFS=$as_save_IFS
19761   test -z "$as_dir" && as_dir=.
19762   for ac_exec_ext in '' $ac_executable_extensions; do
19763   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19764     ac_cv_prog_ac_ct_AR="ar"
19765     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19766     break 2
19767   fi
19768 done
19769 done
19770
19771 fi
19772 fi
19773 ac_ct_AR=$ac_cv_prog_ac_ct_AR
19774 if test -n "$ac_ct_AR"; then
19775   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
19776 echo "${ECHO_T}$ac_ct_AR" >&6
19777 else
19778   echo "$as_me:$LINENO: result: no" >&5
19779 echo "${ECHO_T}no" >&6
19780 fi
19781
19782   AR=$ac_ct_AR
19783 else
19784   AR="$ac_cv_prog_AR"
19785 fi
19786
19787 if test -n "$ac_tool_prefix"; then
19788   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
19789 set dummy ${ac_tool_prefix}ld; ac_word=$2
19790 echo "$as_me:$LINENO: checking for $ac_word" >&5
19791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19792 if test "${ac_cv_prog_LD+set}" = set; then
19793   echo $ECHO_N "(cached) $ECHO_C" >&6
19794 else
19795   if test -n "$LD"; then
19796   ac_cv_prog_LD="$LD" # Let the user override the test.
19797 else
19798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19799 for as_dir in $PATH
19800 do
19801   IFS=$as_save_IFS
19802   test -z "$as_dir" && as_dir=.
19803   for ac_exec_ext in '' $ac_executable_extensions; do
19804   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19805     ac_cv_prog_LD="${ac_tool_prefix}ld"
19806     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19807     break 2
19808   fi
19809 done
19810 done
19811
19812 fi
19813 fi
19814 LD=$ac_cv_prog_LD
19815 if test -n "$LD"; then
19816   echo "$as_me:$LINENO: result: $LD" >&5
19817 echo "${ECHO_T}$LD" >&6
19818 else
19819   echo "$as_me:$LINENO: result: no" >&5
19820 echo "${ECHO_T}no" >&6
19821 fi
19822
19823 fi
19824 if test -z "$ac_cv_prog_LD"; then
19825   ac_ct_LD=$LD
19826   # Extract the first word of "ld", so it can be a program name with args.
19827 set dummy ld; ac_word=$2
19828 echo "$as_me:$LINENO: checking for $ac_word" >&5
19829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19830 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
19831   echo $ECHO_N "(cached) $ECHO_C" >&6
19832 else
19833   if test -n "$ac_ct_LD"; then
19834   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
19835 else
19836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19837 for as_dir in $PATH
19838 do
19839   IFS=$as_save_IFS
19840   test -z "$as_dir" && as_dir=.
19841   for ac_exec_ext in '' $ac_executable_extensions; do
19842   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19843     ac_cv_prog_ac_ct_LD="ld"
19844     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19845     break 2
19846   fi
19847 done
19848 done
19849
19850 fi
19851 fi
19852 ac_ct_LD=$ac_cv_prog_ac_ct_LD
19853 if test -n "$ac_ct_LD"; then
19854   echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
19855 echo "${ECHO_T}$ac_ct_LD" >&6
19856 else
19857   echo "$as_me:$LINENO: result: no" >&5
19858 echo "${ECHO_T}no" >&6
19859 fi
19860
19861   LD=$ac_ct_LD
19862 else
19863   LD="$ac_cv_prog_LD"
19864 fi
19865
19866
19867 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19868 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19869 if test "${ac_cv_header_stdc+set}" = set; then
19870   echo $ECHO_N "(cached) $ECHO_C" >&6
19871 else
19872   cat >conftest.$ac_ext <<_ACEOF
19873 /* confdefs.h.  */
19874 _ACEOF
19875 cat confdefs.h >>conftest.$ac_ext
19876 cat >>conftest.$ac_ext <<_ACEOF
19877 /* end confdefs.h.  */
19878 #include <stdlib.h>
19879 #include <stdarg.h>
19880 #include <string.h>
19881 #include <float.h>
19882
19883 int
19884 main ()
19885 {
19886
19887   ;
19888   return 0;
19889 }
19890 _ACEOF
19891 rm -f conftest.$ac_objext
19892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19893   (eval $ac_compile) 2>conftest.er1
19894   ac_status=$?
19895   grep -v '^ *+' conftest.er1 >conftest.err
19896   rm -f conftest.er1
19897   cat conftest.err >&5
19898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899   (exit $ac_status); } &&
19900          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19902   (eval $ac_try) 2>&5
19903   ac_status=$?
19904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905   (exit $ac_status); }; } &&
19906          { ac_try='test -s conftest.$ac_objext'
19907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19908   (eval $ac_try) 2>&5
19909   ac_status=$?
19910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911   (exit $ac_status); }; }; then
19912   ac_cv_header_stdc=yes
19913 else
19914   echo "$as_me: failed program was:" >&5
19915 sed 's/^/| /' conftest.$ac_ext >&5
19916
19917 ac_cv_header_stdc=no
19918 fi
19919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19920
19921 if test $ac_cv_header_stdc = yes; then
19922   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19923   cat >conftest.$ac_ext <<_ACEOF
19924 /* confdefs.h.  */
19925 _ACEOF
19926 cat confdefs.h >>conftest.$ac_ext
19927 cat >>conftest.$ac_ext <<_ACEOF
19928 /* end confdefs.h.  */
19929 #include <string.h>
19930
19931 _ACEOF
19932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19933   $EGREP "memchr" >/dev/null 2>&1; then
19934   :
19935 else
19936   ac_cv_header_stdc=no
19937 fi
19938 rm -f conftest*
19939
19940 fi
19941
19942 if test $ac_cv_header_stdc = yes; then
19943   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19944   cat >conftest.$ac_ext <<_ACEOF
19945 /* confdefs.h.  */
19946 _ACEOF
19947 cat confdefs.h >>conftest.$ac_ext
19948 cat >>conftest.$ac_ext <<_ACEOF
19949 /* end confdefs.h.  */
19950 #include <stdlib.h>
19951
19952 _ACEOF
19953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19954   $EGREP "free" >/dev/null 2>&1; then
19955   :
19956 else
19957   ac_cv_header_stdc=no
19958 fi
19959 rm -f conftest*
19960
19961 fi
19962
19963 if test $ac_cv_header_stdc = yes; then
19964   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19965   if test "$cross_compiling" = yes; then
19966   :
19967 else
19968   cat >conftest.$ac_ext <<_ACEOF
19969 /* confdefs.h.  */
19970 _ACEOF
19971 cat confdefs.h >>conftest.$ac_ext
19972 cat >>conftest.$ac_ext <<_ACEOF
19973 /* end confdefs.h.  */
19974 #include <ctype.h>
19975 #if ((' ' & 0x0FF) == 0x020)
19976 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19977 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19978 #else
19979 # define ISLOWER(c) \
19980                    (('a' <= (c) && (c) <= 'i') \
19981                      || ('j' <= (c) && (c) <= 'r') \
19982                      || ('s' <= (c) && (c) <= 'z'))
19983 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19984 #endif
19985
19986 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19987 int
19988 main ()
19989 {
19990   int i;
19991   for (i = 0; i < 256; i++)
19992     if (XOR (islower (i), ISLOWER (i))
19993         || toupper (i) != TOUPPER (i))
19994       exit(2);
19995   exit (0);
19996 }
19997 _ACEOF
19998 rm -f conftest$ac_exeext
19999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20000   (eval $ac_link) 2>&5
20001   ac_status=$?
20002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20005   (eval $ac_try) 2>&5
20006   ac_status=$?
20007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008   (exit $ac_status); }; }; then
20009   :
20010 else
20011   echo "$as_me: program exited with status $ac_status" >&5
20012 echo "$as_me: failed program was:" >&5
20013 sed 's/^/| /' conftest.$ac_ext >&5
20014
20015 ( exit $ac_status )
20016 ac_cv_header_stdc=no
20017 fi
20018 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20019 fi
20020 fi
20021 fi
20022 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20023 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20024 if test $ac_cv_header_stdc = yes; then
20025
20026 cat >>confdefs.h <<\_ACEOF
20027 #define STDC_HEADERS 1
20028 _ACEOF
20029
20030 fi
20031
20032
20033   echo "$as_me:$LINENO: checking for GNU libc2" >&5
20034 echo $ECHO_N "checking for GNU libc2... $ECHO_C" >&6
20035   if test "${knfsd_cv_glibc2+set}" = set; then
20036   echo $ECHO_N "(cached) $ECHO_C" >&6
20037 else
20038   cat >conftest.$ac_ext <<_ACEOF
20039 /* confdefs.h.  */
20040 _ACEOF
20041 cat confdefs.h >>conftest.$ac_ext
20042 cat >>conftest.$ac_ext <<_ACEOF
20043 /* end confdefs.h.  */
20044
20045       #include <features.h>
20046       #if !defined(__GLIBC__)
20047       # error Nope
20048       #endif
20049
20050 _ACEOF
20051 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20052   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20053   ac_status=$?
20054   grep -v '^ *+' conftest.er1 >conftest.err
20055   rm -f conftest.er1
20056   cat conftest.err >&5
20057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058   (exit $ac_status); } >/dev/null; then
20059   if test -s conftest.err; then
20060     ac_cpp_err=$ac_c_preproc_warn_flag
20061     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20062   else
20063     ac_cpp_err=
20064   fi
20065 else
20066   ac_cpp_err=yes
20067 fi
20068 if test -z "$ac_cpp_err"; then
20069   knfsd_cv_glibc2=yes
20070 else
20071   echo "$as_me: failed program was:" >&5
20072 sed 's/^/| /' conftest.$ac_ext >&5
20073
20074   knfsd_cv_glibc2=no
20075 fi
20076 rm -f conftest.err conftest.$ac_ext
20077 fi
20078
20079   echo "$as_me:$LINENO: result: $knfsd_cv_glibc2" >&5
20080 echo "${ECHO_T}$knfsd_cv_glibc2" >&6
20081   if test $knfsd_cv_glibc2 = yes; then
20082     CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
20083     CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
20084   fi
20085
20086
20087   echo "$as_me:$LINENO: checking for BSD signal semantics" >&5
20088 echo $ECHO_N "checking for BSD signal semantics... $ECHO_C" >&6
20089   if test "${knfsd_cv_bsd_signals+set}" = set; then
20090   echo $ECHO_N "(cached) $ECHO_C" >&6
20091 else
20092   if test "$cross_compiling" = yes; then
20093   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20094 See \`config.log' for more details." >&5
20095 echo "$as_me: error: cannot run test program while cross compiling
20096 See \`config.log' for more details." >&2;}
20097    { (exit 1); exit 1; }; }
20098 else
20099   cat >conftest.$ac_ext <<_ACEOF
20100 /* confdefs.h.  */
20101 _ACEOF
20102 cat confdefs.h >>conftest.$ac_ext
20103 cat >>conftest.$ac_ext <<_ACEOF
20104 /* end confdefs.h.  */
20105
20106         #include <signal.h>
20107         #include <unistd.h>
20108         #include <sys/wait.h>
20109
20110         static int counter = 0;
20111         static RETSIGTYPE handler(int num) { counter++; }
20112
20113         int main()
20114         {
20115                 int     s;
20116                 if ((s = fork()) < 0) return 1;
20117                 if (s != 0) {
20118                         if (wait(&s) < 0) return 1;
20119                         return WIFSIGNALED(s)? 1 : 0;
20120                 }
20121
20122                 signal(SIGHUP, handler);
20123                 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
20124                 return (counter == 2)? 0 : 1;
20125         }
20126
20127 _ACEOF
20128 rm -f conftest$ac_exeext
20129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20130   (eval $ac_link) 2>&5
20131   ac_status=$?
20132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20133   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20135   (eval $ac_try) 2>&5
20136   ac_status=$?
20137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138   (exit $ac_status); }; }; then
20139   knfsd_cv_bsd_signals=yes
20140 else
20141   echo "$as_me: program exited with status $ac_status" >&5
20142 echo "$as_me: failed program was:" >&5
20143 sed 's/^/| /' conftest.$ac_ext >&5
20144
20145 ( exit $ac_status )
20146 knfsd_cv_bsd_signals=no
20147 fi
20148 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20149 fi
20150 fi
20151      echo "$as_me:$LINENO: result: $knfsd_cv_bsd_signals" >&5
20152 echo "${ECHO_T}$knfsd_cv_bsd_signals" >&6
20153     test $knfsd_cv_bsd_signals = yes &&
20154 cat >>confdefs.h <<\_ACEOF
20155 #define HAVE_BSD_SIGNALS 1
20156 _ACEOF
20157
20158
20159
20160 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
20161 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
20162 if test "${ac_cv_lib_socket_main+set}" = set; then
20163   echo $ECHO_N "(cached) $ECHO_C" >&6
20164 else
20165   ac_check_lib_save_LIBS=$LIBS
20166 LIBS="-lsocket  $LIBS"
20167 cat >conftest.$ac_ext <<_ACEOF
20168 /* confdefs.h.  */
20169 _ACEOF
20170 cat confdefs.h >>conftest.$ac_ext
20171 cat >>conftest.$ac_ext <<_ACEOF
20172 /* end confdefs.h.  */
20173
20174
20175 int
20176 main ()
20177 {
20178 main ();
20179   ;
20180   return 0;
20181 }
20182 _ACEOF
20183 rm -f conftest.$ac_objext conftest$ac_exeext
20184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20185   (eval $ac_link) 2>conftest.er1
20186   ac_status=$?
20187   grep -v '^ *+' conftest.er1 >conftest.err
20188   rm -f conftest.er1
20189   cat conftest.err >&5
20190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191   (exit $ac_status); } &&
20192          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20194   (eval $ac_try) 2>&5
20195   ac_status=$?
20196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20197   (exit $ac_status); }; } &&
20198          { ac_try='test -s conftest$ac_exeext'
20199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20200   (eval $ac_try) 2>&5
20201   ac_status=$?
20202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203   (exit $ac_status); }; }; then
20204   ac_cv_lib_socket_main=yes
20205 else
20206   echo "$as_me: failed program was:" >&5
20207 sed 's/^/| /' conftest.$ac_ext >&5
20208
20209 ac_cv_lib_socket_main=no
20210 fi
20211 rm -f conftest.err conftest.$ac_objext \
20212       conftest$ac_exeext conftest.$ac_ext
20213 LIBS=$ac_check_lib_save_LIBS
20214 fi
20215 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
20216 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
20217 if test $ac_cv_lib_socket_main = yes; then
20218   LIBSOCKET="-lnsl"
20219 fi
20220
20221 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
20222 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
20223 if test "${ac_cv_lib_nsl_main+set}" = set; then
20224   echo $ECHO_N "(cached) $ECHO_C" >&6
20225 else
20226   ac_check_lib_save_LIBS=$LIBS
20227 LIBS="-lnsl  $LIBS"
20228 cat >conftest.$ac_ext <<_ACEOF
20229 /* confdefs.h.  */
20230 _ACEOF
20231 cat confdefs.h >>conftest.$ac_ext
20232 cat >>conftest.$ac_ext <<_ACEOF
20233 /* end confdefs.h.  */
20234
20235
20236 int
20237 main ()
20238 {
20239 main ();
20240   ;
20241   return 0;
20242 }
20243 _ACEOF
20244 rm -f conftest.$ac_objext conftest$ac_exeext
20245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20246   (eval $ac_link) 2>conftest.er1
20247   ac_status=$?
20248   grep -v '^ *+' conftest.er1 >conftest.err
20249   rm -f conftest.er1
20250   cat conftest.err >&5
20251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20252   (exit $ac_status); } &&
20253          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20255   (eval $ac_try) 2>&5
20256   ac_status=$?
20257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20258   (exit $ac_status); }; } &&
20259          { ac_try='test -s conftest$ac_exeext'
20260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20261   (eval $ac_try) 2>&5
20262   ac_status=$?
20263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264   (exit $ac_status); }; }; then
20265   ac_cv_lib_nsl_main=yes
20266 else
20267   echo "$as_me: failed program was:" >&5
20268 sed 's/^/| /' conftest.$ac_ext >&5
20269
20270 ac_cv_lib_nsl_main=no
20271 fi
20272 rm -f conftest.err conftest.$ac_objext \
20273       conftest$ac_exeext conftest.$ac_ext
20274 LIBS=$ac_check_lib_save_LIBS
20275 fi
20276 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
20277 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
20278 if test $ac_cv_lib_nsl_main = yes; then
20279   LIBNSL="-lnsl"
20280 fi
20281
20282 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
20283 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
20284 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
20285   echo $ECHO_N "(cached) $ECHO_C" >&6
20286 else
20287   ac_check_lib_save_LIBS=$LIBS
20288 LIBS="-lcrypt  $LIBS"
20289 cat >conftest.$ac_ext <<_ACEOF
20290 /* confdefs.h.  */
20291 _ACEOF
20292 cat confdefs.h >>conftest.$ac_ext
20293 cat >>conftest.$ac_ext <<_ACEOF
20294 /* end confdefs.h.  */
20295
20296 /* Override any gcc2 internal prototype to avoid an error.  */
20297 #ifdef __cplusplus
20298 extern "C"
20299 #endif
20300 /* We use char because int might match the return type of a gcc2
20301    builtin and then its argument prototype would still apply.  */
20302 char crypt ();
20303 int
20304 main ()
20305 {
20306 crypt ();
20307   ;
20308   return 0;
20309 }
20310 _ACEOF
20311 rm -f conftest.$ac_objext conftest$ac_exeext
20312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20313   (eval $ac_link) 2>conftest.er1
20314   ac_status=$?
20315   grep -v '^ *+' conftest.er1 >conftest.err
20316   rm -f conftest.er1
20317   cat conftest.err >&5
20318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319   (exit $ac_status); } &&
20320          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20322   (eval $ac_try) 2>&5
20323   ac_status=$?
20324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20325   (exit $ac_status); }; } &&
20326          { ac_try='test -s conftest$ac_exeext'
20327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20328   (eval $ac_try) 2>&5
20329   ac_status=$?
20330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20331   (exit $ac_status); }; }; then
20332   ac_cv_lib_crypt_crypt=yes
20333 else
20334   echo "$as_me: failed program was:" >&5
20335 sed 's/^/| /' conftest.$ac_ext >&5
20336
20337 ac_cv_lib_crypt_crypt=no
20338 fi
20339 rm -f conftest.err conftest.$ac_objext \
20340       conftest$ac_exeext conftest.$ac_ext
20341 LIBS=$ac_check_lib_save_LIBS
20342 fi
20343 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
20344 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
20345 if test $ac_cv_lib_crypt_crypt = yes; then
20346   LIBCRYPT="-lcrypt"
20347 fi
20348
20349 if test "$enable_nfsv4" = yes; then
20350     echo "$as_me:$LINENO: checking for event_dispatch in -levent" >&5
20351 echo $ECHO_N "checking for event_dispatch in -levent... $ECHO_C" >&6
20352 if test "${ac_cv_lib_event_event_dispatch+set}" = set; then
20353   echo $ECHO_N "(cached) $ECHO_C" >&6
20354 else
20355   ac_check_lib_save_LIBS=$LIBS
20356 LIBS="-levent  $LIBS"
20357 cat >conftest.$ac_ext <<_ACEOF
20358 /* confdefs.h.  */
20359 _ACEOF
20360 cat confdefs.h >>conftest.$ac_ext
20361 cat >>conftest.$ac_ext <<_ACEOF
20362 /* end confdefs.h.  */
20363
20364 /* Override any gcc2 internal prototype to avoid an error.  */
20365 #ifdef __cplusplus
20366 extern "C"
20367 #endif
20368 /* We use char because int might match the return type of a gcc2
20369    builtin and then its argument prototype would still apply.  */
20370 char event_dispatch ();
20371 int
20372 main ()
20373 {
20374 event_dispatch ();
20375   ;
20376   return 0;
20377 }
20378 _ACEOF
20379 rm -f conftest.$ac_objext conftest$ac_exeext
20380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20381   (eval $ac_link) 2>conftest.er1
20382   ac_status=$?
20383   grep -v '^ *+' conftest.er1 >conftest.err
20384   rm -f conftest.er1
20385   cat conftest.err >&5
20386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20387   (exit $ac_status); } &&
20388          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20390   (eval $ac_try) 2>&5
20391   ac_status=$?
20392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393   (exit $ac_status); }; } &&
20394          { ac_try='test -s conftest$ac_exeext'
20395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20396   (eval $ac_try) 2>&5
20397   ac_status=$?
20398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20399   (exit $ac_status); }; }; then
20400   ac_cv_lib_event_event_dispatch=yes
20401 else
20402   echo "$as_me: failed program was:" >&5
20403 sed 's/^/| /' conftest.$ac_ext >&5
20404
20405 ac_cv_lib_event_event_dispatch=no
20406 fi
20407 rm -f conftest.err conftest.$ac_objext \
20408       conftest$ac_exeext conftest.$ac_ext
20409 LIBS=$ac_check_lib_save_LIBS
20410 fi
20411 echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_dispatch" >&5
20412 echo "${ECHO_T}$ac_cv_lib_event_event_dispatch" >&6
20413 if test $ac_cv_lib_event_event_dispatch = yes; then
20414   libevent=1
20415 else
20416   { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
20417 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
20418    { (exit 1); exit 1; }; }
20419 fi
20420
20421     echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
20422 echo $ECHO_N "checking for nfs4_init_name_mapping in -lnfsidmap... $ECHO_C" >&6
20423 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
20424   echo $ECHO_N "(cached) $ECHO_C" >&6
20425 else
20426   ac_check_lib_save_LIBS=$LIBS
20427 LIBS="-lnfsidmap  $LIBS"
20428 cat >conftest.$ac_ext <<_ACEOF
20429 /* confdefs.h.  */
20430 _ACEOF
20431 cat confdefs.h >>conftest.$ac_ext
20432 cat >>conftest.$ac_ext <<_ACEOF
20433 /* end confdefs.h.  */
20434
20435 /* Override any gcc2 internal prototype to avoid an error.  */
20436 #ifdef __cplusplus
20437 extern "C"
20438 #endif
20439 /* We use char because int might match the return type of a gcc2
20440    builtin and then its argument prototype would still apply.  */
20441 char nfs4_init_name_mapping ();
20442 int
20443 main ()
20444 {
20445 nfs4_init_name_mapping ();
20446   ;
20447   return 0;
20448 }
20449 _ACEOF
20450 rm -f conftest.$ac_objext conftest$ac_exeext
20451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20452   (eval $ac_link) 2>conftest.er1
20453   ac_status=$?
20454   grep -v '^ *+' conftest.er1 >conftest.err
20455   rm -f conftest.er1
20456   cat conftest.err >&5
20457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458   (exit $ac_status); } &&
20459          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20461   (eval $ac_try) 2>&5
20462   ac_status=$?
20463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464   (exit $ac_status); }; } &&
20465          { ac_try='test -s conftest$ac_exeext'
20466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20467   (eval $ac_try) 2>&5
20468   ac_status=$?
20469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470   (exit $ac_status); }; }; then
20471   ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
20472 else
20473   echo "$as_me: failed program was:" >&5
20474 sed 's/^/| /' conftest.$ac_ext >&5
20475
20476 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
20477 fi
20478 rm -f conftest.err conftest.$ac_objext \
20479       conftest$ac_exeext conftest.$ac_ext
20480 LIBS=$ac_check_lib_save_LIBS
20481 fi
20482 echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
20483 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6
20484 if test $ac_cv_lib_nfsidmap_nfs4_init_name_mapping = yes; then
20485   libnfsidmap=1
20486 else
20487   { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
20488 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
20489    { (exit 1); exit 1; }; }
20490 fi
20491
20492
20493 for ac_header in event.h
20494 do
20495 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20497   echo "$as_me:$LINENO: checking for $ac_header" >&5
20498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20500   echo $ECHO_N "(cached) $ECHO_C" >&6
20501 fi
20502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20503 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20504 else
20505   # Is the header compilable?
20506 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20507 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20508 cat >conftest.$ac_ext <<_ACEOF
20509 /* confdefs.h.  */
20510 _ACEOF
20511 cat confdefs.h >>conftest.$ac_ext
20512 cat >>conftest.$ac_ext <<_ACEOF
20513 /* end confdefs.h.  */
20514 $ac_includes_default
20515 #include <$ac_header>
20516 _ACEOF
20517 rm -f conftest.$ac_objext
20518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20519   (eval $ac_compile) 2>conftest.er1
20520   ac_status=$?
20521   grep -v '^ *+' conftest.er1 >conftest.err
20522   rm -f conftest.er1
20523   cat conftest.err >&5
20524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20525   (exit $ac_status); } &&
20526          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20528   (eval $ac_try) 2>&5
20529   ac_status=$?
20530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531   (exit $ac_status); }; } &&
20532          { ac_try='test -s conftest.$ac_objext'
20533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20534   (eval $ac_try) 2>&5
20535   ac_status=$?
20536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20537   (exit $ac_status); }; }; then
20538   ac_header_compiler=yes
20539 else
20540   echo "$as_me: failed program was:" >&5
20541 sed 's/^/| /' conftest.$ac_ext >&5
20542
20543 ac_header_compiler=no
20544 fi
20545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20546 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20547 echo "${ECHO_T}$ac_header_compiler" >&6
20548
20549 # Is the header present?
20550 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20551 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20552 cat >conftest.$ac_ext <<_ACEOF
20553 /* confdefs.h.  */
20554 _ACEOF
20555 cat confdefs.h >>conftest.$ac_ext
20556 cat >>conftest.$ac_ext <<_ACEOF
20557 /* end confdefs.h.  */
20558 #include <$ac_header>
20559 _ACEOF
20560 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20561   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20562   ac_status=$?
20563   grep -v '^ *+' conftest.er1 >conftest.err
20564   rm -f conftest.er1
20565   cat conftest.err >&5
20566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567   (exit $ac_status); } >/dev/null; then
20568   if test -s conftest.err; then
20569     ac_cpp_err=$ac_c_preproc_warn_flag
20570     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20571   else
20572     ac_cpp_err=
20573   fi
20574 else
20575   ac_cpp_err=yes
20576 fi
20577 if test -z "$ac_cpp_err"; then
20578   ac_header_preproc=yes
20579 else
20580   echo "$as_me: failed program was:" >&5
20581 sed 's/^/| /' conftest.$ac_ext >&5
20582
20583   ac_header_preproc=no
20584 fi
20585 rm -f conftest.err conftest.$ac_ext
20586 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20587 echo "${ECHO_T}$ac_header_preproc" >&6
20588
20589 # So?  What about this header?
20590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20591   yes:no: )
20592     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20593 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20594     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20595 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20596     ac_header_preproc=yes
20597     ;;
20598   no:yes:* )
20599     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20600 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20601     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20602 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20603     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20604 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20605     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20606 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20607     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20608 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20609     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20610 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20611     (
20612       cat <<\_ASBOX
20613 ## ------------------------------- ##
20614 ## Report this to nfs@lists.sf.net ##
20615 ## ------------------------------- ##
20616 _ASBOX
20617     ) |
20618       sed "s/^/$as_me: WARNING:     /" >&2
20619     ;;
20620 esac
20621 echo "$as_me:$LINENO: checking for $ac_header" >&5
20622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20623 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20624   echo $ECHO_N "(cached) $ECHO_C" >&6
20625 else
20626   eval "$as_ac_Header=\$ac_header_preproc"
20627 fi
20628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20629 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20630
20631 fi
20632 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20633   cat >>confdefs.h <<_ACEOF
20634 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20635 _ACEOF
20636
20637 else
20638   { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
20639 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
20640    { (exit 1); exit 1; }; }
20641 fi
20642
20643 done
20644
20645
20646 for ac_header in nfsidmap.h
20647 do
20648 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20649 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20650   echo "$as_me:$LINENO: checking for $ac_header" >&5
20651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20652 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20653   echo $ECHO_N "(cached) $ECHO_C" >&6
20654 fi
20655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20656 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20657 else
20658   # Is the header compilable?
20659 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20660 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20661 cat >conftest.$ac_ext <<_ACEOF
20662 /* confdefs.h.  */
20663 _ACEOF
20664 cat confdefs.h >>conftest.$ac_ext
20665 cat >>conftest.$ac_ext <<_ACEOF
20666 /* end confdefs.h.  */
20667 $ac_includes_default
20668 #include <$ac_header>
20669 _ACEOF
20670 rm -f conftest.$ac_objext
20671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20672   (eval $ac_compile) 2>conftest.er1
20673   ac_status=$?
20674   grep -v '^ *+' conftest.er1 >conftest.err
20675   rm -f conftest.er1
20676   cat conftest.err >&5
20677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20678   (exit $ac_status); } &&
20679          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20681   (eval $ac_try) 2>&5
20682   ac_status=$?
20683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684   (exit $ac_status); }; } &&
20685          { ac_try='test -s conftest.$ac_objext'
20686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20687   (eval $ac_try) 2>&5
20688   ac_status=$?
20689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20690   (exit $ac_status); }; }; then
20691   ac_header_compiler=yes
20692 else
20693   echo "$as_me: failed program was:" >&5
20694 sed 's/^/| /' conftest.$ac_ext >&5
20695
20696 ac_header_compiler=no
20697 fi
20698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20699 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20700 echo "${ECHO_T}$ac_header_compiler" >&6
20701
20702 # Is the header present?
20703 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20704 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20705 cat >conftest.$ac_ext <<_ACEOF
20706 /* confdefs.h.  */
20707 _ACEOF
20708 cat confdefs.h >>conftest.$ac_ext
20709 cat >>conftest.$ac_ext <<_ACEOF
20710 /* end confdefs.h.  */
20711 #include <$ac_header>
20712 _ACEOF
20713 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20714   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20715   ac_status=$?
20716   grep -v '^ *+' conftest.er1 >conftest.err
20717   rm -f conftest.er1
20718   cat conftest.err >&5
20719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20720   (exit $ac_status); } >/dev/null; then
20721   if test -s conftest.err; then
20722     ac_cpp_err=$ac_c_preproc_warn_flag
20723     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20724   else
20725     ac_cpp_err=
20726   fi
20727 else
20728   ac_cpp_err=yes
20729 fi
20730 if test -z "$ac_cpp_err"; then
20731   ac_header_preproc=yes
20732 else
20733   echo "$as_me: failed program was:" >&5
20734 sed 's/^/| /' conftest.$ac_ext >&5
20735
20736   ac_header_preproc=no
20737 fi
20738 rm -f conftest.err conftest.$ac_ext
20739 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20740 echo "${ECHO_T}$ac_header_preproc" >&6
20741
20742 # So?  What about this header?
20743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20744   yes:no: )
20745     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20746 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20747     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20748 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20749     ac_header_preproc=yes
20750     ;;
20751   no:yes:* )
20752     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20753 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20754     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20755 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20756     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20757 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20758     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20759 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20760     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20761 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20762     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20763 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20764     (
20765       cat <<\_ASBOX
20766 ## ------------------------------- ##
20767 ## Report this to nfs@lists.sf.net ##
20768 ## ------------------------------- ##
20769 _ASBOX
20770     ) |
20771       sed "s/^/$as_me: WARNING:     /" >&2
20772     ;;
20773 esac
20774 echo "$as_me:$LINENO: checking for $ac_header" >&5
20775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20777   echo $ECHO_N "(cached) $ECHO_C" >&6
20778 else
20779   eval "$as_ac_Header=\$ac_header_preproc"
20780 fi
20781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20782 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20783
20784 fi
20785 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20786   cat >>confdefs.h <<_ACEOF
20787 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20788 _ACEOF
20789
20790 else
20791   { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
20792 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
20793    { (exit 1); exit 1; }; }
20794 fi
20795
20796 done
20797
20798             if test "$enable_gss" = yes; then
20799
20800
20801 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20802         if test -n "$ac_tool_prefix"; then
20803   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20804 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20805 echo "$as_me:$LINENO: checking for $ac_word" >&5
20806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20807 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20808   echo $ECHO_N "(cached) $ECHO_C" >&6
20809 else
20810   case $PKG_CONFIG in
20811   [\\/]* | ?:[\\/]*)
20812   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20813   ;;
20814   *)
20815   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20816 for as_dir in $PATH
20817 do
20818   IFS=$as_save_IFS
20819   test -z "$as_dir" && as_dir=.
20820   for ac_exec_ext in '' $ac_executable_extensions; do
20821   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20822     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20823     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20824     break 2
20825   fi
20826 done
20827 done
20828
20829   ;;
20830 esac
20831 fi
20832 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20833
20834 if test -n "$PKG_CONFIG"; then
20835   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20836 echo "${ECHO_T}$PKG_CONFIG" >&6
20837 else
20838   echo "$as_me:$LINENO: result: no" >&5
20839 echo "${ECHO_T}no" >&6
20840 fi
20841
20842 fi
20843 if test -z "$ac_cv_path_PKG_CONFIG"; then
20844   ac_pt_PKG_CONFIG=$PKG_CONFIG
20845   # Extract the first word of "pkg-config", so it can be a program name with args.
20846 set dummy pkg-config; ac_word=$2
20847 echo "$as_me:$LINENO: checking for $ac_word" >&5
20848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20849 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20850   echo $ECHO_N "(cached) $ECHO_C" >&6
20851 else
20852   case $ac_pt_PKG_CONFIG in
20853   [\\/]* | ?:[\\/]*)
20854   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20855   ;;
20856   *)
20857   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20858 for as_dir in $PATH
20859 do
20860   IFS=$as_save_IFS
20861   test -z "$as_dir" && as_dir=.
20862   for ac_exec_ext in '' $ac_executable_extensions; do
20863   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20864     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20865     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20866     break 2
20867   fi
20868 done
20869 done
20870
20871   ;;
20872 esac
20873 fi
20874 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20875
20876 if test -n "$ac_pt_PKG_CONFIG"; then
20877   echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20878 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
20879 else
20880   echo "$as_me:$LINENO: result: no" >&5
20881 echo "${ECHO_T}no" >&6
20882 fi
20883
20884   PKG_CONFIG=$ac_pt_PKG_CONFIG
20885 else
20886   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20887 fi
20888
20889 fi
20890 if test -n "$PKG_CONFIG"; then
20891         _pkg_min_version=0.9.0
20892         echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20893 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
20894         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20895                 echo "$as_me:$LINENO: result: yes" >&5
20896 echo "${ECHO_T}yes" >&6
20897         else
20898                 echo "$as_me:$LINENO: result: no" >&5
20899 echo "${ECHO_T}no" >&6
20900                 PKG_CONFIG=""
20901         fi
20902
20903 fi
20904
20905 pkg_failed=no
20906 echo "$as_me:$LINENO: checking for RPCSECGSS" >&5
20907 echo $ECHO_N "checking for RPCSECGSS... $ECHO_C" >&6
20908
20909 if test -n "$PKG_CONFIG"; then
20910     if test -n "$RPCSECGSS_CFLAGS"; then
20911         pkg_cv_RPCSECGSS_CFLAGS="$RPCSECGSS_CFLAGS"
20912     else
20913         if test -n "$PKG_CONFIG" && \
20914     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss\"") >&5
20915   ($PKG_CONFIG --exists --print-errors "librpcsecgss") 2>&5
20916   ac_status=$?
20917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20918   (exit $ac_status); }; then
20919   pkg_cv_RPCSECGSS_CFLAGS=`$PKG_CONFIG --cflags "librpcsecgss" 2>/dev/null`
20920 else
20921   pkg_failed=yes
20922 fi
20923     fi
20924 else
20925         pkg_failed=untried
20926 fi
20927 if test -n "$PKG_CONFIG"; then
20928     if test -n "$RPCSECGSS_LIBS"; then
20929         pkg_cv_RPCSECGSS_LIBS="$RPCSECGSS_LIBS"
20930     else
20931         if test -n "$PKG_CONFIG" && \
20932     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss\"") >&5
20933   ($PKG_CONFIG --exists --print-errors "librpcsecgss") 2>&5
20934   ac_status=$?
20935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936   (exit $ac_status); }; then
20937   pkg_cv_RPCSECGSS_LIBS=`$PKG_CONFIG --libs "librpcsecgss" 2>/dev/null`
20938 else
20939   pkg_failed=yes
20940 fi
20941     fi
20942 else
20943         pkg_failed=untried
20944 fi
20945
20946
20947
20948 if test $pkg_failed = yes; then
20949
20950 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20951         _pkg_short_errors_supported=yes
20952 else
20953         _pkg_short_errors_supported=no
20954 fi
20955         if test $_pkg_short_errors_supported = yes; then
20956                 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "librpcsecgss"`
20957         else
20958                 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "librpcsecgss"`
20959         fi
20960         # Put the nasty error message in config.log where it belongs
20961         echo "$RPCSECGSS_PKG_ERRORS" >&5
20962
20963         { { echo "$as_me:$LINENO: error: Unable to locate information required to use librpcsecgss.
20964        If you have pkgconfig installed, you might try setting environment
20965        variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&5
20966 echo "$as_me: error: Unable to locate information required to use librpcsecgss.
20967        If you have pkgconfig installed, you might try setting environment
20968        variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&2;}
20969    { (exit 1); exit 1; }; }
20970
20971
20972 elif test $pkg_failed = untried; then
20973         { { echo "$as_me:$LINENO: error: Unable to locate information required to use librpcsecgss.
20974        If you have pkgconfig installed, you might try setting environment
20975        variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&5
20976 echo "$as_me: error: Unable to locate information required to use librpcsecgss.
20977        If you have pkgconfig installed, you might try setting environment
20978        variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&2;}
20979    { (exit 1); exit 1; }; }
20980
20981
20982 else
20983         RPCSECGSS_CFLAGS=$pkg_cv_RPCSECGSS_CFLAGS
20984         RPCSECGSS_LIBS=$pkg_cv_RPCSECGSS_LIBS
20985         echo "$as_me:$LINENO: result: yes" >&5
20986 echo "${ECHO_T}yes" >&6
20987         :
20988 fi
20989     fi
20990
20991 fi
20992 if test "$knfsd_cv_glibc2" = no; then
20993     echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
20994 echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6
20995 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
20996   echo $ECHO_N "(cached) $ECHO_C" >&6
20997 else
20998   ac_check_lib_save_LIBS=$LIBS
20999 LIBS="-lbsd  $LIBS"
21000 cat >conftest.$ac_ext <<_ACEOF
21001 /* confdefs.h.  */
21002 _ACEOF
21003 cat confdefs.h >>conftest.$ac_ext
21004 cat >>conftest.$ac_ext <<_ACEOF
21005 /* end confdefs.h.  */
21006
21007 /* Override any gcc2 internal prototype to avoid an error.  */
21008 #ifdef __cplusplus
21009 extern "C"
21010 #endif
21011 /* We use char because int might match the return type of a gcc2
21012    builtin and then its argument prototype would still apply.  */
21013 char daemon ();
21014 int
21015 main ()
21016 {
21017 daemon ();
21018   ;
21019   return 0;
21020 }
21021 _ACEOF
21022 rm -f conftest.$ac_objext conftest$ac_exeext
21023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21024   (eval $ac_link) 2>conftest.er1
21025   ac_status=$?
21026   grep -v '^ *+' conftest.er1 >conftest.err
21027   rm -f conftest.er1
21028   cat conftest.err >&5
21029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030   (exit $ac_status); } &&
21031          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21033   (eval $ac_try) 2>&5
21034   ac_status=$?
21035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21036   (exit $ac_status); }; } &&
21037          { ac_try='test -s conftest$ac_exeext'
21038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21039   (eval $ac_try) 2>&5
21040   ac_status=$?
21041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21042   (exit $ac_status); }; }; then
21043   ac_cv_lib_bsd_daemon=yes
21044 else
21045   echo "$as_me: failed program was:" >&5
21046 sed 's/^/| /' conftest.$ac_ext >&5
21047
21048 ac_cv_lib_bsd_daemon=no
21049 fi
21050 rm -f conftest.err conftest.$ac_objext \
21051       conftest$ac_exeext conftest.$ac_ext
21052 LIBS=$ac_check_lib_save_LIBS
21053 fi
21054 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
21055 echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6
21056 if test $ac_cv_lib_bsd_daemon = yes; then
21057   LIBBSD="-lbsd"
21058 fi
21059
21060 fi
21061
21062
21063
21064
21065
21066 if test "$enable_gss" = yes; then
21067
21068 for ac_header in nfsidmap.h
21069 do
21070 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21072   echo "$as_me:$LINENO: checking for $ac_header" >&5
21073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21075   echo $ECHO_N "(cached) $ECHO_C" >&6
21076 fi
21077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21078 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21079 else
21080   # Is the header compilable?
21081 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21082 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21083 cat >conftest.$ac_ext <<_ACEOF
21084 /* confdefs.h.  */
21085 _ACEOF
21086 cat confdefs.h >>conftest.$ac_ext
21087 cat >>conftest.$ac_ext <<_ACEOF
21088 /* end confdefs.h.  */
21089 $ac_includes_default
21090 #include <$ac_header>
21091 _ACEOF
21092 rm -f conftest.$ac_objext
21093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21094   (eval $ac_compile) 2>conftest.er1
21095   ac_status=$?
21096   grep -v '^ *+' conftest.er1 >conftest.err
21097   rm -f conftest.er1
21098   cat conftest.err >&5
21099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21100   (exit $ac_status); } &&
21101          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21103   (eval $ac_try) 2>&5
21104   ac_status=$?
21105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106   (exit $ac_status); }; } &&
21107          { ac_try='test -s conftest.$ac_objext'
21108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21109   (eval $ac_try) 2>&5
21110   ac_status=$?
21111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112   (exit $ac_status); }; }; then
21113   ac_header_compiler=yes
21114 else
21115   echo "$as_me: failed program was:" >&5
21116 sed 's/^/| /' conftest.$ac_ext >&5
21117
21118 ac_header_compiler=no
21119 fi
21120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21121 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21122 echo "${ECHO_T}$ac_header_compiler" >&6
21123
21124 # Is the header present?
21125 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21126 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21127 cat >conftest.$ac_ext <<_ACEOF
21128 /* confdefs.h.  */
21129 _ACEOF
21130 cat confdefs.h >>conftest.$ac_ext
21131 cat >>conftest.$ac_ext <<_ACEOF
21132 /* end confdefs.h.  */
21133 #include <$ac_header>
21134 _ACEOF
21135 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21136   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21137   ac_status=$?
21138   grep -v '^ *+' conftest.er1 >conftest.err
21139   rm -f conftest.er1
21140   cat conftest.err >&5
21141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21142   (exit $ac_status); } >/dev/null; then
21143   if test -s conftest.err; then
21144     ac_cpp_err=$ac_c_preproc_warn_flag
21145     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21146   else
21147     ac_cpp_err=
21148   fi
21149 else
21150   ac_cpp_err=yes
21151 fi
21152 if test -z "$ac_cpp_err"; then
21153   ac_header_preproc=yes
21154 else
21155   echo "$as_me: failed program was:" >&5
21156 sed 's/^/| /' conftest.$ac_ext >&5
21157
21158   ac_header_preproc=no
21159 fi
21160 rm -f conftest.err conftest.$ac_ext
21161 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21162 echo "${ECHO_T}$ac_header_preproc" >&6
21163
21164 # So?  What about this header?
21165 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21166   yes:no: )
21167     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21168 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21169     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21170 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21171     ac_header_preproc=yes
21172     ;;
21173   no:yes:* )
21174     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21175 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21176     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21177 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21178     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21179 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21180     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21181 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21182     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21183 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21184     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21185 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21186     (
21187       cat <<\_ASBOX
21188 ## ------------------------------- ##
21189 ## Report this to nfs@lists.sf.net ##
21190 ## ------------------------------- ##
21191 _ASBOX
21192     ) |
21193       sed "s/^/$as_me: WARNING:     /" >&2
21194     ;;
21195 esac
21196 echo "$as_me:$LINENO: checking for $ac_header" >&5
21197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21199   echo $ECHO_N "(cached) $ECHO_C" >&6
21200 else
21201   eval "$as_ac_Header=\$ac_header_preproc"
21202 fi
21203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21204 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21205
21206 fi
21207 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21208   cat >>confdefs.h <<_ACEOF
21209 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21210 _ACEOF
21211
21212 else
21213   { { echo "$as_me:$LINENO: error: libnfsidmap needed for gss support" >&5
21214 echo "$as_me: error: libnfsidmap needed for gss support" >&2;}
21215    { (exit 1); exit 1; }; }
21216 fi
21217
21218 done
21219
21220
21221 for ac_header in spkm3.h
21222 do
21223 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21224 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21225   echo "$as_me:$LINENO: checking for $ac_header" >&5
21226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21227 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21228   echo $ECHO_N "(cached) $ECHO_C" >&6
21229 fi
21230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21231 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21232 else
21233   # Is the header compilable?
21234 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21235 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21236 cat >conftest.$ac_ext <<_ACEOF
21237 /* confdefs.h.  */
21238 _ACEOF
21239 cat confdefs.h >>conftest.$ac_ext
21240 cat >>conftest.$ac_ext <<_ACEOF
21241 /* end confdefs.h.  */
21242 $ac_includes_default
21243 #include <$ac_header>
21244 _ACEOF
21245 rm -f conftest.$ac_objext
21246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21247   (eval $ac_compile) 2>conftest.er1
21248   ac_status=$?
21249   grep -v '^ *+' conftest.er1 >conftest.err
21250   rm -f conftest.er1
21251   cat conftest.err >&5
21252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21253   (exit $ac_status); } &&
21254          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21256   (eval $ac_try) 2>&5
21257   ac_status=$?
21258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21259   (exit $ac_status); }; } &&
21260          { ac_try='test -s conftest.$ac_objext'
21261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21262   (eval $ac_try) 2>&5
21263   ac_status=$?
21264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21265   (exit $ac_status); }; }; then
21266   ac_header_compiler=yes
21267 else
21268   echo "$as_me: failed program was:" >&5
21269 sed 's/^/| /' conftest.$ac_ext >&5
21270
21271 ac_header_compiler=no
21272 fi
21273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21274 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21275 echo "${ECHO_T}$ac_header_compiler" >&6
21276
21277 # Is the header present?
21278 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21279 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21280 cat >conftest.$ac_ext <<_ACEOF
21281 /* confdefs.h.  */
21282 _ACEOF
21283 cat confdefs.h >>conftest.$ac_ext
21284 cat >>conftest.$ac_ext <<_ACEOF
21285 /* end confdefs.h.  */
21286 #include <$ac_header>
21287 _ACEOF
21288 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21289   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21290   ac_status=$?
21291   grep -v '^ *+' conftest.er1 >conftest.err
21292   rm -f conftest.er1
21293   cat conftest.err >&5
21294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21295   (exit $ac_status); } >/dev/null; then
21296   if test -s conftest.err; then
21297     ac_cpp_err=$ac_c_preproc_warn_flag
21298     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21299   else
21300     ac_cpp_err=
21301   fi
21302 else
21303   ac_cpp_err=yes
21304 fi
21305 if test -z "$ac_cpp_err"; then
21306   ac_header_preproc=yes
21307 else
21308   echo "$as_me: failed program was:" >&5
21309 sed 's/^/| /' conftest.$ac_ext >&5
21310
21311   ac_header_preproc=no
21312 fi
21313 rm -f conftest.err conftest.$ac_ext
21314 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21315 echo "${ECHO_T}$ac_header_preproc" >&6
21316
21317 # So?  What about this header?
21318 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21319   yes:no: )
21320     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21321 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21322     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21323 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21324     ac_header_preproc=yes
21325     ;;
21326   no:yes:* )
21327     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21328 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21329     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21330 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21331     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21332 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21333     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21334 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21335     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21336 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21337     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21338 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21339     (
21340       cat <<\_ASBOX
21341 ## ------------------------------- ##
21342 ## Report this to nfs@lists.sf.net ##
21343 ## ------------------------------- ##
21344 _ASBOX
21345     ) |
21346       sed "s/^/$as_me: WARNING:     /" >&2
21347     ;;
21348 esac
21349 echo "$as_me:$LINENO: checking for $ac_header" >&5
21350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21352   echo $ECHO_N "(cached) $ECHO_C" >&6
21353 else
21354   eval "$as_ac_Header=\$ac_header_preproc"
21355 fi
21356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21358
21359 fi
21360 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21361   cat >>confdefs.h <<_ACEOF
21362 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21363 _ACEOF
21364
21365 else
21366   { echo "$as_me:$LINENO: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&5
21367 echo "$as_me: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&2;}
21368 fi
21369
21370 done
21371
21372
21373
21374   echo "$as_me:$LINENO: checking for Kerberos v5" >&5
21375 echo $ECHO_N "checking for Kerberos v5... $ECHO_C" >&6
21376
21377 # Check whether --with-krb5 or --without-krb5 was given.
21378 if test "${with_krb5+set}" = set; then
21379   withval="$with_krb5"
21380    case "$withval" in
21381     yes|no)
21382        krb5_with=""
21383        ;;
21384     *)
21385        krb5_with="$withval"
21386        ;;
21387     esac
21388
21389 fi;
21390
21391   for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
21392              /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
21393             K5CONFIG=""
21394     if test -f $dir/bin/krb5-config; then
21395       K5CONFIG=$dir/bin/krb5-config
21396     elif test -f "/usr/kerberos/bin/krb5-config"; then
21397       K5CONFIG="/usr/kerberos/bin/krb5-config"
21398     elif test -f "/usr/lib/mit/bin/krb5-config"; then
21399       K5CONFIG="/usr/lib/mit/bin/krb5-config"
21400     fi
21401     if test "$K5CONFIG" != ""; then
21402       KRBCFLAGS=`$K5CONFIG --cflags`
21403       KRBLIBS=`$K5CONFIG --libs gssapi`
21404       K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v["3"] == "") v["3"] = "0"; print v["1"]v["2"]v["3"] }'`
21405
21406 cat >>confdefs.h <<_ACEOF
21407 #define KRB5_VERSION $K5VERS
21408 _ACEOF
21409
21410       if test -f $dir/include/gssapi/gssapi_krb5.h -a \
21411                 \( -f $dir/lib/libgssapi_krb5.a -o \
21412                    -f $dir/lib/libgssapi_krb5.so \) ; then
21413
21414 cat >>confdefs.h <<\_ACEOF
21415 #define HAVE_KRB5 1
21416 _ACEOF
21417
21418          KRBDIR="$dir"
21419                      if test $K5VERS -le 131; then
21420
21421 cat >>confdefs.h <<\_ACEOF
21422 #define USE_GSS_KRB5_CCACHE_NAME 1
21423 _ACEOF
21424
21425          fi
21426          gssapi_lib=gssapi_krb5
21427          break
21428                   elif test \( -f $dir/include/heim_err.h -o\
21429                  -f $dir/include/heimdal/heim_err.h \) -a \
21430                 -f $dir/lib/libroken.a; then
21431
21432 cat >>confdefs.h <<\_ACEOF
21433 #define HAVE_HEIMDAL 1
21434 _ACEOF
21435
21436          KRBDIR="$dir"
21437          gssapi_lib=gssapi
21438         break
21439       fi
21440     fi
21441   done
21442     if test "x$KRBDIR" = "x"; then
21443     if test "x$krb5_with" = "x"; then
21444       { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&5
21445 echo "$as_me: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&2;}
21446    { (exit 1); exit 1; }; }
21447     else
21448       { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found at $krb5_with" >&5
21449 echo "$as_me: error: Kerberos v5 with GSS support not found at $krb5_with" >&2;}
21450    { (exit 1); exit 1; }; }
21451     fi
21452   fi
21453   echo "$as_me:$LINENO: result: $KRBDIR" >&5
21454 echo "${ECHO_T}$KRBDIR" >&6
21455
21456     as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
21457 echo "$as_me:$LINENO: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
21458 echo $ECHO_N "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... $ECHO_C" >&6
21459 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
21460   echo $ECHO_N "(cached) $ECHO_C" >&6
21461 else
21462   ac_check_lib_save_LIBS=$LIBS
21463 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
21464 cat >conftest.$ac_ext <<_ACEOF
21465 /* confdefs.h.  */
21466 _ACEOF
21467 cat confdefs.h >>conftest.$ac_ext
21468 cat >>conftest.$ac_ext <<_ACEOF
21469 /* end confdefs.h.  */
21470
21471 /* Override any gcc2 internal prototype to avoid an error.  */
21472 #ifdef __cplusplus
21473 extern "C"
21474 #endif
21475 /* We use char because int might match the return type of a gcc2
21476    builtin and then its argument prototype would still apply.  */
21477 char gss_krb5_export_lucid_sec_context ();
21478 int
21479 main ()
21480 {
21481 gss_krb5_export_lucid_sec_context ();
21482   ;
21483   return 0;
21484 }
21485 _ACEOF
21486 rm -f conftest.$ac_objext conftest$ac_exeext
21487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21488   (eval $ac_link) 2>conftest.er1
21489   ac_status=$?
21490   grep -v '^ *+' conftest.er1 >conftest.err
21491   rm -f conftest.er1
21492   cat conftest.err >&5
21493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21494   (exit $ac_status); } &&
21495          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21497   (eval $ac_try) 2>&5
21498   ac_status=$?
21499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21500   (exit $ac_status); }; } &&
21501          { ac_try='test -s conftest$ac_exeext'
21502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21503   (eval $ac_try) 2>&5
21504   ac_status=$?
21505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21506   (exit $ac_status); }; }; then
21507   eval "$as_ac_Lib=yes"
21508 else
21509   echo "$as_me: failed program was:" >&5
21510 sed 's/^/| /' conftest.$ac_ext >&5
21511
21512 eval "$as_ac_Lib=no"
21513 fi
21514 rm -f conftest.err conftest.$ac_objext \
21515       conftest$ac_exeext conftest.$ac_ext
21516 LIBS=$ac_check_lib_save_LIBS
21517 fi
21518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
21519 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
21520 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21521
21522 cat >>confdefs.h <<\_ACEOF
21523 #define HAVE_LUCID_CONTEXT_SUPPORT 1
21524 _ACEOF
21525
21526 fi
21527
21528   as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
21529 echo "$as_me:$LINENO: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
21530 echo $ECHO_N "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... $ECHO_C" >&6
21531 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
21532   echo $ECHO_N "(cached) $ECHO_C" >&6
21533 else
21534   ac_check_lib_save_LIBS=$LIBS
21535 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
21536 cat >conftest.$ac_ext <<_ACEOF
21537 /* confdefs.h.  */
21538 _ACEOF
21539 cat confdefs.h >>conftest.$ac_ext
21540 cat >>conftest.$ac_ext <<_ACEOF
21541 /* end confdefs.h.  */
21542
21543 /* Override any gcc2 internal prototype to avoid an error.  */
21544 #ifdef __cplusplus
21545 extern "C"
21546 #endif
21547 /* We use char because int might match the return type of a gcc2
21548    builtin and then its argument prototype would still apply.  */
21549 char gss_krb5_set_allowable_enctypes ();
21550 int
21551 main ()
21552 {
21553 gss_krb5_set_allowable_enctypes ();
21554   ;
21555   return 0;
21556 }
21557 _ACEOF
21558 rm -f conftest.$ac_objext conftest$ac_exeext
21559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21560   (eval $ac_link) 2>conftest.er1
21561   ac_status=$?
21562   grep -v '^ *+' conftest.er1 >conftest.err
21563   rm -f conftest.er1
21564   cat conftest.err >&5
21565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21566   (exit $ac_status); } &&
21567          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21569   (eval $ac_try) 2>&5
21570   ac_status=$?
21571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572   (exit $ac_status); }; } &&
21573          { ac_try='test -s conftest$ac_exeext'
21574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21575   (eval $ac_try) 2>&5
21576   ac_status=$?
21577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578   (exit $ac_status); }; }; then
21579   eval "$as_ac_Lib=yes"
21580 else
21581   echo "$as_me: failed program was:" >&5
21582 sed 's/^/| /' conftest.$ac_ext >&5
21583
21584 eval "$as_ac_Lib=no"
21585 fi
21586 rm -f conftest.err conftest.$ac_objext \
21587       conftest$ac_exeext conftest.$ac_ext
21588 LIBS=$ac_check_lib_save_LIBS
21589 fi
21590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
21591 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
21592 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21593
21594 cat >>confdefs.h <<\_ACEOF
21595 #define HAVE_SET_ALLOWABLE_ENCTYPES 1
21596 _ACEOF
21597
21598 fi
21599
21600   as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
21601 echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
21602 echo $ECHO_N "checking for gss_krb5_ccache_name in -l$gssapi_lib... $ECHO_C" >&6
21603 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
21604   echo $ECHO_N "(cached) $ECHO_C" >&6
21605 else
21606   ac_check_lib_save_LIBS=$LIBS
21607 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
21608 cat >conftest.$ac_ext <<_ACEOF
21609 /* confdefs.h.  */
21610 _ACEOF
21611 cat confdefs.h >>conftest.$ac_ext
21612 cat >>conftest.$ac_ext <<_ACEOF
21613 /* end confdefs.h.  */
21614
21615 /* Override any gcc2 internal prototype to avoid an error.  */
21616 #ifdef __cplusplus
21617 extern "C"
21618 #endif
21619 /* We use char because int might match the return type of a gcc2
21620    builtin and then its argument prototype would still apply.  */
21621 char gss_krb5_ccache_name ();
21622 int
21623 main ()
21624 {
21625 gss_krb5_ccache_name ();
21626   ;
21627   return 0;
21628 }
21629 _ACEOF
21630 rm -f conftest.$ac_objext conftest$ac_exeext
21631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21632   (eval $ac_link) 2>conftest.er1
21633   ac_status=$?
21634   grep -v '^ *+' conftest.er1 >conftest.err
21635   rm -f conftest.er1
21636   cat conftest.err >&5
21637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21638   (exit $ac_status); } &&
21639          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21641   (eval $ac_try) 2>&5
21642   ac_status=$?
21643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21644   (exit $ac_status); }; } &&
21645          { ac_try='test -s conftest$ac_exeext'
21646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21647   (eval $ac_try) 2>&5
21648   ac_status=$?
21649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21650   (exit $ac_status); }; }; then
21651   eval "$as_ac_Lib=yes"
21652 else
21653   echo "$as_me: failed program was:" >&5
21654 sed 's/^/| /' conftest.$ac_ext >&5
21655
21656 eval "$as_ac_Lib=no"
21657 fi
21658 rm -f conftest.err conftest.$ac_objext \
21659       conftest$ac_exeext conftest.$ac_ext
21660 LIBS=$ac_check_lib_save_LIBS
21661 fi
21662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
21663 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
21664 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21665
21666 cat >>confdefs.h <<\_ACEOF
21667 #define HAVE_GSS_KRB5_CCACHE_NAME 1
21668 _ACEOF
21669
21670 fi
21671
21672
21673     if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
21674     { echo "$as_me:$LINENO: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
21675 echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
21676   fi
21677
21678
21679
21680
21681
21682
21683
21684
21685       echo "$as_me:$LINENO: checking for authgss_create_default in -lrpcsecgss" >&5
21686 echo $ECHO_N "checking for authgss_create_default in -lrpcsecgss... $ECHO_C" >&6
21687 if test "${ac_cv_lib_rpcsecgss_authgss_create_default+set}" = set; then
21688   echo $ECHO_N "(cached) $ECHO_C" >&6
21689 else
21690   ac_check_lib_save_LIBS=$LIBS
21691 LIBS="-lrpcsecgss $KRBLIBS $LIBS"
21692 cat >conftest.$ac_ext <<_ACEOF
21693 /* confdefs.h.  */
21694 _ACEOF
21695 cat confdefs.h >>conftest.$ac_ext
21696 cat >>conftest.$ac_ext <<_ACEOF
21697 /* end confdefs.h.  */
21698
21699 /* Override any gcc2 internal prototype to avoid an error.  */
21700 #ifdef __cplusplus
21701 extern "C"
21702 #endif
21703 /* We use char because int might match the return type of a gcc2
21704    builtin and then its argument prototype would still apply.  */
21705 char authgss_create_default ();
21706 int
21707 main ()
21708 {
21709 authgss_create_default ();
21710   ;
21711   return 0;
21712 }
21713 _ACEOF
21714 rm -f conftest.$ac_objext conftest$ac_exeext
21715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21716   (eval $ac_link) 2>conftest.er1
21717   ac_status=$?
21718   grep -v '^ *+' conftest.er1 >conftest.err
21719   rm -f conftest.er1
21720   cat conftest.err >&5
21721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722   (exit $ac_status); } &&
21723          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21725   (eval $ac_try) 2>&5
21726   ac_status=$?
21727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21728   (exit $ac_status); }; } &&
21729          { ac_try='test -s conftest$ac_exeext'
21730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21731   (eval $ac_try) 2>&5
21732   ac_status=$?
21733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21734   (exit $ac_status); }; }; then
21735   ac_cv_lib_rpcsecgss_authgss_create_default=yes
21736 else
21737   echo "$as_me: failed program was:" >&5
21738 sed 's/^/| /' conftest.$ac_ext >&5
21739
21740 ac_cv_lib_rpcsecgss_authgss_create_default=no
21741 fi
21742 rm -f conftest.err conftest.$ac_objext \
21743       conftest$ac_exeext conftest.$ac_ext
21744 LIBS=$ac_check_lib_save_LIBS
21745 fi
21746 echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
21747 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_create_default" >&6
21748 if test $ac_cv_lib_rpcsecgss_authgss_create_default = yes; then
21749   librpcsecgss=1
21750 else
21751   { { echo "$as_me:$LINENO: error: librpcsecgss needed for nfsv4 support" >&5
21752 echo "$as_me: error: librpcsecgss needed for nfsv4 support" >&2;}
21753    { (exit 1); exit 1; }; }
21754 fi
21755
21756   echo "$as_me:$LINENO: checking for authgss_set_debug_level in -lrpcsecgss" >&5
21757 echo $ECHO_N "checking for authgss_set_debug_level in -lrpcsecgss... $ECHO_C" >&6
21758 if test "${ac_cv_lib_rpcsecgss_authgss_set_debug_level+set}" = set; then
21759   echo $ECHO_N "(cached) $ECHO_C" >&6
21760 else
21761   ac_check_lib_save_LIBS=$LIBS
21762 LIBS="-lrpcsecgss $KRBLIBS $LIBS"
21763 cat >conftest.$ac_ext <<_ACEOF
21764 /* confdefs.h.  */
21765 _ACEOF
21766 cat confdefs.h >>conftest.$ac_ext
21767 cat >>conftest.$ac_ext <<_ACEOF
21768 /* end confdefs.h.  */
21769
21770 /* Override any gcc2 internal prototype to avoid an error.  */
21771 #ifdef __cplusplus
21772 extern "C"
21773 #endif
21774 /* We use char because int might match the return type of a gcc2
21775    builtin and then its argument prototype would still apply.  */
21776 char authgss_set_debug_level ();
21777 int
21778 main ()
21779 {
21780 authgss_set_debug_level ();
21781   ;
21782   return 0;
21783 }
21784 _ACEOF
21785 rm -f conftest.$ac_objext conftest$ac_exeext
21786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21787   (eval $ac_link) 2>conftest.er1
21788   ac_status=$?
21789   grep -v '^ *+' conftest.er1 >conftest.err
21790   rm -f conftest.er1
21791   cat conftest.err >&5
21792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21793   (exit $ac_status); } &&
21794          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21796   (eval $ac_try) 2>&5
21797   ac_status=$?
21798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21799   (exit $ac_status); }; } &&
21800          { ac_try='test -s conftest$ac_exeext'
21801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21802   (eval $ac_try) 2>&5
21803   ac_status=$?
21804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21805   (exit $ac_status); }; }; then
21806   ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
21807 else
21808   echo "$as_me: failed program was:" >&5
21809 sed 's/^/| /' conftest.$ac_ext >&5
21810
21811 ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
21812 fi
21813 rm -f conftest.err conftest.$ac_objext \
21814       conftest$ac_exeext conftest.$ac_ext
21815 LIBS=$ac_check_lib_save_LIBS
21816 fi
21817 echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
21818 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6
21819 if test $ac_cv_lib_rpcsecgss_authgss_set_debug_level = yes; then
21820
21821 cat >>confdefs.h <<\_ACEOF
21822 #define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1
21823 _ACEOF
21824
21825 fi
21826
21827
21828 fi
21829
21830
21831
21832
21833
21834
21835
21836
21837
21838
21839
21840
21841
21842
21843
21844
21845
21846
21847
21848
21849
21850
21851
21852 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
21853                  malloc.h memory.h netdb.h netinet/in.h paths.h \
21854                  stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
21855                  sys/param.h sys/socket.h sys/time.h sys/vfs.h \
21856                  syslog.h unistd.h com_err.h et/com_err.h
21857 do
21858 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21860   echo "$as_me:$LINENO: checking for $ac_header" >&5
21861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21862 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21863   echo $ECHO_N "(cached) $ECHO_C" >&6
21864 fi
21865 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21866 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21867 else
21868   # Is the header compilable?
21869 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21870 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21871 cat >conftest.$ac_ext <<_ACEOF
21872 /* confdefs.h.  */
21873 _ACEOF
21874 cat confdefs.h >>conftest.$ac_ext
21875 cat >>conftest.$ac_ext <<_ACEOF
21876 /* end confdefs.h.  */
21877 $ac_includes_default
21878 #include <$ac_header>
21879 _ACEOF
21880 rm -f conftest.$ac_objext
21881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21882   (eval $ac_compile) 2>conftest.er1
21883   ac_status=$?
21884   grep -v '^ *+' conftest.er1 >conftest.err
21885   rm -f conftest.er1
21886   cat conftest.err >&5
21887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21888   (exit $ac_status); } &&
21889          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21891   (eval $ac_try) 2>&5
21892   ac_status=$?
21893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21894   (exit $ac_status); }; } &&
21895          { ac_try='test -s conftest.$ac_objext'
21896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21897   (eval $ac_try) 2>&5
21898   ac_status=$?
21899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21900   (exit $ac_status); }; }; then
21901   ac_header_compiler=yes
21902 else
21903   echo "$as_me: failed program was:" >&5
21904 sed 's/^/| /' conftest.$ac_ext >&5
21905
21906 ac_header_compiler=no
21907 fi
21908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21909 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21910 echo "${ECHO_T}$ac_header_compiler" >&6
21911
21912 # Is the header present?
21913 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21914 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21915 cat >conftest.$ac_ext <<_ACEOF
21916 /* confdefs.h.  */
21917 _ACEOF
21918 cat confdefs.h >>conftest.$ac_ext
21919 cat >>conftest.$ac_ext <<_ACEOF
21920 /* end confdefs.h.  */
21921 #include <$ac_header>
21922 _ACEOF
21923 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21924   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21925   ac_status=$?
21926   grep -v '^ *+' conftest.er1 >conftest.err
21927   rm -f conftest.er1
21928   cat conftest.err >&5
21929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21930   (exit $ac_status); } >/dev/null; then
21931   if test -s conftest.err; then
21932     ac_cpp_err=$ac_c_preproc_warn_flag
21933     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21934   else
21935     ac_cpp_err=
21936   fi
21937 else
21938   ac_cpp_err=yes
21939 fi
21940 if test -z "$ac_cpp_err"; then
21941   ac_header_preproc=yes
21942 else
21943   echo "$as_me: failed program was:" >&5
21944 sed 's/^/| /' conftest.$ac_ext >&5
21945
21946   ac_header_preproc=no
21947 fi
21948 rm -f conftest.err conftest.$ac_ext
21949 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21950 echo "${ECHO_T}$ac_header_preproc" >&6
21951
21952 # So?  What about this header?
21953 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21954   yes:no: )
21955     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21956 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21957     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21958 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21959     ac_header_preproc=yes
21960     ;;
21961   no:yes:* )
21962     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21963 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21964     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21965 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21966     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21967 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21968     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21969 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21970     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21971 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21972     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21973 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21974     (
21975       cat <<\_ASBOX
21976 ## ------------------------------- ##
21977 ## Report this to nfs@lists.sf.net ##
21978 ## ------------------------------- ##
21979 _ASBOX
21980     ) |
21981       sed "s/^/$as_me: WARNING:     /" >&2
21982     ;;
21983 esac
21984 echo "$as_me:$LINENO: checking for $ac_header" >&5
21985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21986 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21987   echo $ECHO_N "(cached) $ECHO_C" >&6
21988 else
21989   eval "$as_ac_Header=\$ac_header_preproc"
21990 fi
21991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21992 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21993
21994 fi
21995 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21996   cat >>confdefs.h <<_ACEOF
21997 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21998 _ACEOF
21999
22000 fi
22001
22002 done
22003
22004
22005 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22006 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
22007 if test "${ac_cv_c_const+set}" = set; then
22008   echo $ECHO_N "(cached) $ECHO_C" >&6
22009 else
22010   cat >conftest.$ac_ext <<_ACEOF
22011 /* confdefs.h.  */
22012 _ACEOF
22013 cat confdefs.h >>conftest.$ac_ext
22014 cat >>conftest.$ac_ext <<_ACEOF
22015 /* end confdefs.h.  */
22016
22017 int
22018 main ()
22019 {
22020 /* FIXME: Include the comments suggested by Paul. */
22021 #ifndef __cplusplus
22022   /* Ultrix mips cc rejects this.  */
22023   typedef int charset[2];
22024   const charset x;
22025   /* SunOS 4.1.1 cc rejects this.  */
22026   char const *const *ccp;
22027   char **p;
22028   /* NEC SVR4.0.2 mips cc rejects this.  */
22029   struct point {int x, y;};
22030   static struct point const zero = {0,0};
22031   /* AIX XL C 1.02.0.0 rejects this.
22032      It does not let you subtract one const X* pointer from another in
22033      an arm of an if-expression whose if-part is not a constant
22034      expression */
22035   const char *g = "string";
22036   ccp = &g + (g ? g-g : 0);
22037   /* HPUX 7.0 cc rejects these. */
22038   ++ccp;
22039   p = (char**) ccp;
22040   ccp = (char const *const *) p;
22041   { /* SCO 3.2v4 cc rejects this.  */
22042     char *t;
22043     char const *s = 0 ? (char *) 0 : (char const *) 0;
22044
22045     *t++ = 0;
22046   }
22047   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
22048     int x[] = {25, 17};
22049     const int *foo = &x[0];
22050     ++foo;
22051   }
22052   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22053     typedef const int *iptr;
22054     iptr p = 0;
22055     ++p;
22056   }
22057   { /* AIX XL C 1.02.0.0 rejects this saying
22058        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22059     struct s { int j; const int *ap[3]; };
22060     struct s *b; b->j = 5;
22061   }
22062   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22063     const int foo = 10;
22064   }
22065 #endif
22066
22067   ;
22068   return 0;
22069 }
22070 _ACEOF
22071 rm -f conftest.$ac_objext
22072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22073   (eval $ac_compile) 2>conftest.er1
22074   ac_status=$?
22075   grep -v '^ *+' conftest.er1 >conftest.err
22076   rm -f conftest.er1
22077   cat conftest.err >&5
22078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22079   (exit $ac_status); } &&
22080          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22082   (eval $ac_try) 2>&5
22083   ac_status=$?
22084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22085   (exit $ac_status); }; } &&
22086          { ac_try='test -s conftest.$ac_objext'
22087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22088   (eval $ac_try) 2>&5
22089   ac_status=$?
22090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22091   (exit $ac_status); }; }; then
22092   ac_cv_c_const=yes
22093 else
22094   echo "$as_me: failed program was:" >&5
22095 sed 's/^/| /' conftest.$ac_ext >&5
22096
22097 ac_cv_c_const=no
22098 fi
22099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22100 fi
22101 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22102 echo "${ECHO_T}$ac_cv_c_const" >&6
22103 if test $ac_cv_c_const = no; then
22104
22105 cat >>confdefs.h <<\_ACEOF
22106 #define const
22107 _ACEOF
22108
22109 fi
22110
22111 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22112 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
22113 if test "${ac_cv_type_uid_t+set}" = set; then
22114   echo $ECHO_N "(cached) $ECHO_C" >&6
22115 else
22116   cat >conftest.$ac_ext <<_ACEOF
22117 /* confdefs.h.  */
22118 _ACEOF
22119 cat confdefs.h >>conftest.$ac_ext
22120 cat >>conftest.$ac_ext <<_ACEOF
22121 /* end confdefs.h.  */
22122 #include <sys/types.h>
22123
22124 _ACEOF
22125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22126   $EGREP "uid_t" >/dev/null 2>&1; then
22127   ac_cv_type_uid_t=yes
22128 else
22129   ac_cv_type_uid_t=no
22130 fi
22131 rm -f conftest*
22132
22133 fi
22134 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22135 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
22136 if test $ac_cv_type_uid_t = no; then
22137
22138 cat >>confdefs.h <<\_ACEOF
22139 #define uid_t int
22140 _ACEOF
22141
22142
22143 cat >>confdefs.h <<\_ACEOF
22144 #define gid_t int
22145 _ACEOF
22146
22147 fi
22148
22149 echo "$as_me:$LINENO: checking for inline" >&5
22150 echo $ECHO_N "checking for inline... $ECHO_C" >&6
22151 if test "${ac_cv_c_inline+set}" = set; then
22152   echo $ECHO_N "(cached) $ECHO_C" >&6
22153 else
22154   ac_cv_c_inline=no
22155 for ac_kw in inline __inline__ __inline; do
22156   cat >conftest.$ac_ext <<_ACEOF
22157 /* confdefs.h.  */
22158 _ACEOF
22159 cat confdefs.h >>conftest.$ac_ext
22160 cat >>conftest.$ac_ext <<_ACEOF
22161 /* end confdefs.h.  */
22162 #ifndef __cplusplus
22163 typedef int foo_t;
22164 static $ac_kw foo_t static_foo () {return 0; }
22165 $ac_kw foo_t foo () {return 0; }
22166 #endif
22167
22168 _ACEOF
22169 rm -f conftest.$ac_objext
22170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22171   (eval $ac_compile) 2>conftest.er1
22172   ac_status=$?
22173   grep -v '^ *+' conftest.er1 >conftest.err
22174   rm -f conftest.er1
22175   cat conftest.err >&5
22176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22177   (exit $ac_status); } &&
22178          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22180   (eval $ac_try) 2>&5
22181   ac_status=$?
22182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22183   (exit $ac_status); }; } &&
22184          { ac_try='test -s conftest.$ac_objext'
22185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22186   (eval $ac_try) 2>&5
22187   ac_status=$?
22188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22189   (exit $ac_status); }; }; then
22190   ac_cv_c_inline=$ac_kw; break
22191 else
22192   echo "$as_me: failed program was:" >&5
22193 sed 's/^/| /' conftest.$ac_ext >&5
22194
22195 fi
22196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22197 done
22198
22199 fi
22200 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
22201 echo "${ECHO_T}$ac_cv_c_inline" >&6
22202
22203
22204 case $ac_cv_c_inline in
22205   inline | yes) ;;
22206   *)
22207     case $ac_cv_c_inline in
22208       no) ac_val=;;
22209       *) ac_val=$ac_cv_c_inline;;
22210     esac
22211     cat >>confdefs.h <<_ACEOF
22212 #ifndef __cplusplus
22213 #define inline $ac_val
22214 #endif
22215 _ACEOF
22216     ;;
22217 esac
22218
22219 echo "$as_me:$LINENO: checking for off_t" >&5
22220 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
22221 if test "${ac_cv_type_off_t+set}" = set; then
22222   echo $ECHO_N "(cached) $ECHO_C" >&6
22223 else
22224   cat >conftest.$ac_ext <<_ACEOF
22225 /* confdefs.h.  */
22226 _ACEOF
22227 cat confdefs.h >>conftest.$ac_ext
22228 cat >>conftest.$ac_ext <<_ACEOF
22229 /* end confdefs.h.  */
22230 $ac_includes_default
22231 int
22232 main ()
22233 {
22234 if ((off_t *) 0)
22235   return 0;
22236 if (sizeof (off_t))
22237   return 0;
22238   ;
22239   return 0;
22240 }
22241 _ACEOF
22242 rm -f conftest.$ac_objext
22243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22244   (eval $ac_compile) 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); } &&
22251          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22253   (eval $ac_try) 2>&5
22254   ac_status=$?
22255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22256   (exit $ac_status); }; } &&
22257          { ac_try='test -s conftest.$ac_objext'
22258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22259   (eval $ac_try) 2>&5
22260   ac_status=$?
22261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22262   (exit $ac_status); }; }; then
22263   ac_cv_type_off_t=yes
22264 else
22265   echo "$as_me: failed program was:" >&5
22266 sed 's/^/| /' conftest.$ac_ext >&5
22267
22268 ac_cv_type_off_t=no
22269 fi
22270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22271 fi
22272 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22273 echo "${ECHO_T}$ac_cv_type_off_t" >&6
22274 if test $ac_cv_type_off_t = yes; then
22275   :
22276 else
22277
22278 cat >>confdefs.h <<_ACEOF
22279 #define off_t long
22280 _ACEOF
22281
22282 fi
22283
22284 echo "$as_me:$LINENO: checking for pid_t" >&5
22285 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
22286 if test "${ac_cv_type_pid_t+set}" = set; then
22287   echo $ECHO_N "(cached) $ECHO_C" >&6
22288 else
22289   cat >conftest.$ac_ext <<_ACEOF
22290 /* confdefs.h.  */
22291 _ACEOF
22292 cat confdefs.h >>conftest.$ac_ext
22293 cat >>conftest.$ac_ext <<_ACEOF
22294 /* end confdefs.h.  */
22295 $ac_includes_default
22296 int
22297 main ()
22298 {
22299 if ((pid_t *) 0)
22300   return 0;
22301 if (sizeof (pid_t))
22302   return 0;
22303   ;
22304   return 0;
22305 }
22306 _ACEOF
22307 rm -f conftest.$ac_objext
22308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22309   (eval $ac_compile) 2>conftest.er1
22310   ac_status=$?
22311   grep -v '^ *+' conftest.er1 >conftest.err
22312   rm -f conftest.er1
22313   cat conftest.err >&5
22314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22315   (exit $ac_status); } &&
22316          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22318   (eval $ac_try) 2>&5
22319   ac_status=$?
22320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22321   (exit $ac_status); }; } &&
22322          { ac_try='test -s conftest.$ac_objext'
22323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22324   (eval $ac_try) 2>&5
22325   ac_status=$?
22326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22327   (exit $ac_status); }; }; then
22328   ac_cv_type_pid_t=yes
22329 else
22330   echo "$as_me: failed program was:" >&5
22331 sed 's/^/| /' conftest.$ac_ext >&5
22332
22333 ac_cv_type_pid_t=no
22334 fi
22335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22336 fi
22337 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22338 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
22339 if test $ac_cv_type_pid_t = yes; then
22340   :
22341 else
22342
22343 cat >>confdefs.h <<_ACEOF
22344 #define pid_t int
22345 _ACEOF
22346
22347 fi
22348
22349 echo "$as_me:$LINENO: checking for size_t" >&5
22350 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22351 if test "${ac_cv_type_size_t+set}" = set; then
22352   echo $ECHO_N "(cached) $ECHO_C" >&6
22353 else
22354   cat >conftest.$ac_ext <<_ACEOF
22355 /* confdefs.h.  */
22356 _ACEOF
22357 cat confdefs.h >>conftest.$ac_ext
22358 cat >>conftest.$ac_ext <<_ACEOF
22359 /* end confdefs.h.  */
22360 $ac_includes_default
22361 int
22362 main ()
22363 {
22364 if ((size_t *) 0)
22365   return 0;
22366 if (sizeof (size_t))
22367   return 0;
22368   ;
22369   return 0;
22370 }
22371 _ACEOF
22372 rm -f conftest.$ac_objext
22373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22374   (eval $ac_compile) 2>conftest.er1
22375   ac_status=$?
22376   grep -v '^ *+' conftest.er1 >conftest.err
22377   rm -f conftest.er1
22378   cat conftest.err >&5
22379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22380   (exit $ac_status); } &&
22381          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22383   (eval $ac_try) 2>&5
22384   ac_status=$?
22385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22386   (exit $ac_status); }; } &&
22387          { ac_try='test -s conftest.$ac_objext'
22388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22389   (eval $ac_try) 2>&5
22390   ac_status=$?
22391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22392   (exit $ac_status); }; }; then
22393   ac_cv_type_size_t=yes
22394 else
22395   echo "$as_me: failed program was:" >&5
22396 sed 's/^/| /' conftest.$ac_ext >&5
22397
22398 ac_cv_type_size_t=no
22399 fi
22400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22401 fi
22402 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22403 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22404 if test $ac_cv_type_size_t = yes; then
22405   :
22406 else
22407
22408 cat >>confdefs.h <<_ACEOF
22409 #define size_t unsigned
22410 _ACEOF
22411
22412 fi
22413
22414 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22415 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
22416 if test "${ac_cv_header_time+set}" = set; then
22417   echo $ECHO_N "(cached) $ECHO_C" >&6
22418 else
22419   cat >conftest.$ac_ext <<_ACEOF
22420 /* confdefs.h.  */
22421 _ACEOF
22422 cat confdefs.h >>conftest.$ac_ext
22423 cat >>conftest.$ac_ext <<_ACEOF
22424 /* end confdefs.h.  */
22425 #include <sys/types.h>
22426 #include <sys/time.h>
22427 #include <time.h>
22428
22429 int
22430 main ()
22431 {
22432 if ((struct tm *) 0)
22433 return 0;
22434   ;
22435   return 0;
22436 }
22437 _ACEOF
22438 rm -f conftest.$ac_objext
22439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22440   (eval $ac_compile) 2>conftest.er1
22441   ac_status=$?
22442   grep -v '^ *+' conftest.er1 >conftest.err
22443   rm -f conftest.er1
22444   cat conftest.err >&5
22445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22446   (exit $ac_status); } &&
22447          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22449   (eval $ac_try) 2>&5
22450   ac_status=$?
22451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22452   (exit $ac_status); }; } &&
22453          { ac_try='test -s conftest.$ac_objext'
22454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22455   (eval $ac_try) 2>&5
22456   ac_status=$?
22457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22458   (exit $ac_status); }; }; then
22459   ac_cv_header_time=yes
22460 else
22461   echo "$as_me: failed program was:" >&5
22462 sed 's/^/| /' conftest.$ac_ext >&5
22463
22464 ac_cv_header_time=no
22465 fi
22466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22467 fi
22468 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22469 echo "${ECHO_T}$ac_cv_header_time" >&6
22470 if test $ac_cv_header_time = yes; then
22471
22472 cat >>confdefs.h <<\_ACEOF
22473 #define TIME_WITH_SYS_TIME 1
22474 _ACEOF
22475
22476 fi
22477
22478 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22479 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22480 if test "${ac_cv_struct_tm+set}" = set; then
22481   echo $ECHO_N "(cached) $ECHO_C" >&6
22482 else
22483   cat >conftest.$ac_ext <<_ACEOF
22484 /* confdefs.h.  */
22485 _ACEOF
22486 cat confdefs.h >>conftest.$ac_ext
22487 cat >>conftest.$ac_ext <<_ACEOF
22488 /* end confdefs.h.  */
22489 #include <sys/types.h>
22490 #include <time.h>
22491
22492 int
22493 main ()
22494 {
22495 struct tm *tp; tp->tm_sec;
22496   ;
22497   return 0;
22498 }
22499 _ACEOF
22500 rm -f conftest.$ac_objext
22501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22502   (eval $ac_compile) 2>conftest.er1
22503   ac_status=$?
22504   grep -v '^ *+' conftest.er1 >conftest.err
22505   rm -f conftest.er1
22506   cat conftest.err >&5
22507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22508   (exit $ac_status); } &&
22509          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22511   (eval $ac_try) 2>&5
22512   ac_status=$?
22513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22514   (exit $ac_status); }; } &&
22515          { ac_try='test -s conftest.$ac_objext'
22516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22517   (eval $ac_try) 2>&5
22518   ac_status=$?
22519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22520   (exit $ac_status); }; }; then
22521   ac_cv_struct_tm=time.h
22522 else
22523   echo "$as_me: failed program was:" >&5
22524 sed 's/^/| /' conftest.$ac_ext >&5
22525
22526 ac_cv_struct_tm=sys/time.h
22527 fi
22528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22529 fi
22530 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22531 echo "${ECHO_T}$ac_cv_struct_tm" >&6
22532 if test $ac_cv_struct_tm = sys/time.h; then
22533
22534 cat >>confdefs.h <<\_ACEOF
22535 #define TM_IN_SYS_TIME 1
22536 _ACEOF
22537
22538 fi
22539
22540
22541 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
22542 # for constant arguments.  Useless!
22543 echo "$as_me:$LINENO: checking for working alloca.h" >&5
22544 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
22545 if test "${ac_cv_working_alloca_h+set}" = set; then
22546   echo $ECHO_N "(cached) $ECHO_C" >&6
22547 else
22548   cat >conftest.$ac_ext <<_ACEOF
22549 /* confdefs.h.  */
22550 _ACEOF
22551 cat confdefs.h >>conftest.$ac_ext
22552 cat >>conftest.$ac_ext <<_ACEOF
22553 /* end confdefs.h.  */
22554 #include <alloca.h>
22555 int
22556 main ()
22557 {
22558 char *p = (char *) alloca (2 * sizeof (int));
22559   ;
22560   return 0;
22561 }
22562 _ACEOF
22563 rm -f conftest.$ac_objext conftest$ac_exeext
22564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22565   (eval $ac_link) 2>conftest.er1
22566   ac_status=$?
22567   grep -v '^ *+' conftest.er1 >conftest.err
22568   rm -f conftest.er1
22569   cat conftest.err >&5
22570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22571   (exit $ac_status); } &&
22572          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22574   (eval $ac_try) 2>&5
22575   ac_status=$?
22576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577   (exit $ac_status); }; } &&
22578          { ac_try='test -s conftest$ac_exeext'
22579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22580   (eval $ac_try) 2>&5
22581   ac_status=$?
22582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22583   (exit $ac_status); }; }; then
22584   ac_cv_working_alloca_h=yes
22585 else
22586   echo "$as_me: failed program was:" >&5
22587 sed 's/^/| /' conftest.$ac_ext >&5
22588
22589 ac_cv_working_alloca_h=no
22590 fi
22591 rm -f conftest.err conftest.$ac_objext \
22592       conftest$ac_exeext conftest.$ac_ext
22593 fi
22594 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
22595 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
22596 if test $ac_cv_working_alloca_h = yes; then
22597
22598 cat >>confdefs.h <<\_ACEOF
22599 #define HAVE_ALLOCA_H 1
22600 _ACEOF
22601
22602 fi
22603
22604 echo "$as_me:$LINENO: checking for alloca" >&5
22605 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
22606 if test "${ac_cv_func_alloca_works+set}" = set; then
22607   echo $ECHO_N "(cached) $ECHO_C" >&6
22608 else
22609   cat >conftest.$ac_ext <<_ACEOF
22610 /* confdefs.h.  */
22611 _ACEOF
22612 cat confdefs.h >>conftest.$ac_ext
22613 cat >>conftest.$ac_ext <<_ACEOF
22614 /* end confdefs.h.  */
22615 #ifdef __GNUC__
22616 # define alloca __builtin_alloca
22617 #else
22618 # ifdef _MSC_VER
22619 #  include <malloc.h>
22620 #  define alloca _alloca
22621 # else
22622 #  if HAVE_ALLOCA_H
22623 #   include <alloca.h>
22624 #  else
22625 #   ifdef _AIX
22626  #pragma alloca
22627 #   else
22628 #    ifndef alloca /* predefined by HP cc +Olibcalls */
22629 char *alloca ();
22630 #    endif
22631 #   endif
22632 #  endif
22633 # endif
22634 #endif
22635
22636 int
22637 main ()
22638 {
22639 char *p = (char *) alloca (1);
22640   ;
22641   return 0;
22642 }
22643 _ACEOF
22644 rm -f conftest.$ac_objext conftest$ac_exeext
22645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22646   (eval $ac_link) 2>conftest.er1
22647   ac_status=$?
22648   grep -v '^ *+' conftest.er1 >conftest.err
22649   rm -f conftest.er1
22650   cat conftest.err >&5
22651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22652   (exit $ac_status); } &&
22653          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22655   (eval $ac_try) 2>&5
22656   ac_status=$?
22657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22658   (exit $ac_status); }; } &&
22659          { ac_try='test -s conftest$ac_exeext'
22660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22661   (eval $ac_try) 2>&5
22662   ac_status=$?
22663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22664   (exit $ac_status); }; }; then
22665   ac_cv_func_alloca_works=yes
22666 else
22667   echo "$as_me: failed program was:" >&5
22668 sed 's/^/| /' conftest.$ac_ext >&5
22669
22670 ac_cv_func_alloca_works=no
22671 fi
22672 rm -f conftest.err conftest.$ac_objext \
22673       conftest$ac_exeext conftest.$ac_ext
22674 fi
22675 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
22676 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
22677
22678 if test $ac_cv_func_alloca_works = yes; then
22679
22680 cat >>confdefs.h <<\_ACEOF
22681 #define HAVE_ALLOCA 1
22682 _ACEOF
22683
22684 else
22685   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
22686 # that cause trouble.  Some versions do not even contain alloca or
22687 # contain a buggy version.  If you still want to use their alloca,
22688 # use ar to extract alloca.o from them instead of compiling alloca.c.
22689
22690 ALLOCA=alloca.$ac_objext
22691
22692 cat >>confdefs.h <<\_ACEOF
22693 #define C_ALLOCA 1
22694 _ACEOF
22695
22696
22697 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
22698 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
22699 if test "${ac_cv_os_cray+set}" = set; then
22700   echo $ECHO_N "(cached) $ECHO_C" >&6
22701 else
22702   cat >conftest.$ac_ext <<_ACEOF
22703 /* confdefs.h.  */
22704 _ACEOF
22705 cat confdefs.h >>conftest.$ac_ext
22706 cat >>conftest.$ac_ext <<_ACEOF
22707 /* end confdefs.h.  */
22708 #if defined(CRAY) && ! defined(CRAY2)
22709 webecray
22710 #else
22711 wenotbecray
22712 #endif
22713
22714 _ACEOF
22715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22716   $EGREP "webecray" >/dev/null 2>&1; then
22717   ac_cv_os_cray=yes
22718 else
22719   ac_cv_os_cray=no
22720 fi
22721 rm -f conftest*
22722
22723 fi
22724 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
22725 echo "${ECHO_T}$ac_cv_os_cray" >&6
22726 if test $ac_cv_os_cray = yes; then
22727   for ac_func in _getb67 GETB67 getb67; do
22728     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22729 echo "$as_me:$LINENO: checking for $ac_func" >&5
22730 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22731 if eval "test \"\${$as_ac_var+set}\" = set"; then
22732   echo $ECHO_N "(cached) $ECHO_C" >&6
22733 else
22734   cat >conftest.$ac_ext <<_ACEOF
22735 /* confdefs.h.  */
22736 _ACEOF
22737 cat confdefs.h >>conftest.$ac_ext
22738 cat >>conftest.$ac_ext <<_ACEOF
22739 /* end confdefs.h.  */
22740 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22741    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22742 #define $ac_func innocuous_$ac_func
22743
22744 /* System header to define __stub macros and hopefully few prototypes,
22745     which can conflict with char $ac_func (); below.
22746     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22747     <limits.h> exists even on freestanding compilers.  */
22748
22749 #ifdef __STDC__
22750 # include <limits.h>
22751 #else
22752 # include <assert.h>
22753 #endif
22754
22755 #undef $ac_func
22756
22757 /* Override any gcc2 internal prototype to avoid an error.  */
22758 #ifdef __cplusplus
22759 extern "C"
22760 {
22761 #endif
22762 /* We use char because int might match the return type of a gcc2
22763    builtin and then its argument prototype would still apply.  */
22764 char $ac_func ();
22765 /* The GNU C library defines this for functions which it implements
22766     to always fail with ENOSYS.  Some functions are actually named
22767     something starting with __ and the normal name is an alias.  */
22768 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22769 choke me
22770 #else
22771 char (*f) () = $ac_func;
22772 #endif
22773 #ifdef __cplusplus
22774 }
22775 #endif
22776
22777 int
22778 main ()
22779 {
22780 return f != $ac_func;
22781   ;
22782   return 0;
22783 }
22784 _ACEOF
22785 rm -f conftest.$ac_objext conftest$ac_exeext
22786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22787   (eval $ac_link) 2>conftest.er1
22788   ac_status=$?
22789   grep -v '^ *+' conftest.er1 >conftest.err
22790   rm -f conftest.er1
22791   cat conftest.err >&5
22792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22793   (exit $ac_status); } &&
22794          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22796   (eval $ac_try) 2>&5
22797   ac_status=$?
22798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22799   (exit $ac_status); }; } &&
22800          { ac_try='test -s conftest$ac_exeext'
22801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22802   (eval $ac_try) 2>&5
22803   ac_status=$?
22804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22805   (exit $ac_status); }; }; then
22806   eval "$as_ac_var=yes"
22807 else
22808   echo "$as_me: failed program was:" >&5
22809 sed 's/^/| /' conftest.$ac_ext >&5
22810
22811 eval "$as_ac_var=no"
22812 fi
22813 rm -f conftest.err conftest.$ac_objext \
22814       conftest$ac_exeext conftest.$ac_ext
22815 fi
22816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22817 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22818 if test `eval echo '${'$as_ac_var'}'` = yes; then
22819
22820 cat >>confdefs.h <<_ACEOF
22821 #define CRAY_STACKSEG_END $ac_func
22822 _ACEOF
22823
22824     break
22825 fi
22826
22827   done
22828 fi
22829
22830 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
22831 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
22832 if test "${ac_cv_c_stack_direction+set}" = set; then
22833   echo $ECHO_N "(cached) $ECHO_C" >&6
22834 else
22835   if test "$cross_compiling" = yes; then
22836   ac_cv_c_stack_direction=0
22837 else
22838   cat >conftest.$ac_ext <<_ACEOF
22839 /* confdefs.h.  */
22840 _ACEOF
22841 cat confdefs.h >>conftest.$ac_ext
22842 cat >>conftest.$ac_ext <<_ACEOF
22843 /* end confdefs.h.  */
22844 int
22845 find_stack_direction ()
22846 {
22847   static char *addr = 0;
22848   auto char dummy;
22849   if (addr == 0)
22850     {
22851       addr = &dummy;
22852       return find_stack_direction ();
22853     }
22854   else
22855     return (&dummy > addr) ? 1 : -1;
22856 }
22857
22858 int
22859 main ()
22860 {
22861   exit (find_stack_direction () < 0);
22862 }
22863 _ACEOF
22864 rm -f conftest$ac_exeext
22865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22866   (eval $ac_link) 2>&5
22867   ac_status=$?
22868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22869   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22871   (eval $ac_try) 2>&5
22872   ac_status=$?
22873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22874   (exit $ac_status); }; }; then
22875   ac_cv_c_stack_direction=1
22876 else
22877   echo "$as_me: program exited with status $ac_status" >&5
22878 echo "$as_me: failed program was:" >&5
22879 sed 's/^/| /' conftest.$ac_ext >&5
22880
22881 ( exit $ac_status )
22882 ac_cv_c_stack_direction=-1
22883 fi
22884 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22885 fi
22886 fi
22887 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
22888 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
22889
22890 cat >>confdefs.h <<_ACEOF
22891 #define STACK_DIRECTION $ac_cv_c_stack_direction
22892 _ACEOF
22893
22894
22895 fi
22896
22897
22898
22899
22900
22901
22902 ac_header_dirent=no
22903 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22904   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22905 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
22906 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
22907 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22908   echo $ECHO_N "(cached) $ECHO_C" >&6
22909 else
22910   cat >conftest.$ac_ext <<_ACEOF
22911 /* confdefs.h.  */
22912 _ACEOF
22913 cat confdefs.h >>conftest.$ac_ext
22914 cat >>conftest.$ac_ext <<_ACEOF
22915 /* end confdefs.h.  */
22916 #include <sys/types.h>
22917 #include <$ac_hdr>
22918
22919 int
22920 main ()
22921 {
22922 if ((DIR *) 0)
22923 return 0;
22924   ;
22925   return 0;
22926 }
22927 _ACEOF
22928 rm -f conftest.$ac_objext
22929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22930   (eval $ac_compile) 2>conftest.er1
22931   ac_status=$?
22932   grep -v '^ *+' conftest.er1 >conftest.err
22933   rm -f conftest.er1
22934   cat conftest.err >&5
22935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22936   (exit $ac_status); } &&
22937          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22939   (eval $ac_try) 2>&5
22940   ac_status=$?
22941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22942   (exit $ac_status); }; } &&
22943          { ac_try='test -s conftest.$ac_objext'
22944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22945   (eval $ac_try) 2>&5
22946   ac_status=$?
22947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22948   (exit $ac_status); }; }; then
22949   eval "$as_ac_Header=yes"
22950 else
22951   echo "$as_me: failed program was:" >&5
22952 sed 's/^/| /' conftest.$ac_ext >&5
22953
22954 eval "$as_ac_Header=no"
22955 fi
22956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22957 fi
22958 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22959 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22960 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22961   cat >>confdefs.h <<_ACEOF
22962 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22963 _ACEOF
22964
22965 ac_header_dirent=$ac_hdr; break
22966 fi
22967
22968 done
22969 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22970 if test $ac_header_dirent = dirent.h; then
22971   echo "$as_me:$LINENO: checking for library containing opendir" >&5
22972 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
22973 if test "${ac_cv_search_opendir+set}" = set; then
22974   echo $ECHO_N "(cached) $ECHO_C" >&6
22975 else
22976   ac_func_search_save_LIBS=$LIBS
22977 ac_cv_search_opendir=no
22978 cat >conftest.$ac_ext <<_ACEOF
22979 /* confdefs.h.  */
22980 _ACEOF
22981 cat confdefs.h >>conftest.$ac_ext
22982 cat >>conftest.$ac_ext <<_ACEOF
22983 /* end confdefs.h.  */
22984
22985 /* Override any gcc2 internal prototype to avoid an error.  */
22986 #ifdef __cplusplus
22987 extern "C"
22988 #endif
22989 /* We use char because int might match the return type of a gcc2
22990    builtin and then its argument prototype would still apply.  */
22991 char opendir ();
22992 int
22993 main ()
22994 {
22995 opendir ();
22996   ;
22997   return 0;
22998 }
22999 _ACEOF
23000 rm -f conftest.$ac_objext conftest$ac_exeext
23001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23002   (eval $ac_link) 2>conftest.er1
23003   ac_status=$?
23004   grep -v '^ *+' conftest.er1 >conftest.err
23005   rm -f conftest.er1
23006   cat conftest.err >&5
23007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23008   (exit $ac_status); } &&
23009          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23011   (eval $ac_try) 2>&5
23012   ac_status=$?
23013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23014   (exit $ac_status); }; } &&
23015          { ac_try='test -s conftest$ac_exeext'
23016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23017   (eval $ac_try) 2>&5
23018   ac_status=$?
23019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23020   (exit $ac_status); }; }; then
23021   ac_cv_search_opendir="none required"
23022 else
23023   echo "$as_me: failed program was:" >&5
23024 sed 's/^/| /' conftest.$ac_ext >&5
23025
23026 fi
23027 rm -f conftest.err conftest.$ac_objext \
23028       conftest$ac_exeext conftest.$ac_ext
23029 if test "$ac_cv_search_opendir" = no; then
23030   for ac_lib in dir; do
23031     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23032     cat >conftest.$ac_ext <<_ACEOF
23033 /* confdefs.h.  */
23034 _ACEOF
23035 cat confdefs.h >>conftest.$ac_ext
23036 cat >>conftest.$ac_ext <<_ACEOF
23037 /* end confdefs.h.  */
23038
23039 /* Override any gcc2 internal prototype to avoid an error.  */
23040 #ifdef __cplusplus
23041 extern "C"
23042 #endif
23043 /* We use char because int might match the return type of a gcc2
23044    builtin and then its argument prototype would still apply.  */
23045 char opendir ();
23046 int
23047 main ()
23048 {
23049 opendir ();
23050   ;
23051   return 0;
23052 }
23053 _ACEOF
23054 rm -f conftest.$ac_objext conftest$ac_exeext
23055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23056   (eval $ac_link) 2>conftest.er1
23057   ac_status=$?
23058   grep -v '^ *+' conftest.er1 >conftest.err
23059   rm -f conftest.er1
23060   cat conftest.err >&5
23061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23062   (exit $ac_status); } &&
23063          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23065   (eval $ac_try) 2>&5
23066   ac_status=$?
23067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23068   (exit $ac_status); }; } &&
23069          { ac_try='test -s conftest$ac_exeext'
23070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23071   (eval $ac_try) 2>&5
23072   ac_status=$?
23073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23074   (exit $ac_status); }; }; then
23075   ac_cv_search_opendir="-l$ac_lib"
23076 break
23077 else
23078   echo "$as_me: failed program was:" >&5
23079 sed 's/^/| /' conftest.$ac_ext >&5
23080
23081 fi
23082 rm -f conftest.err conftest.$ac_objext \
23083       conftest$ac_exeext conftest.$ac_ext
23084   done
23085 fi
23086 LIBS=$ac_func_search_save_LIBS
23087 fi
23088 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23089 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23090 if test "$ac_cv_search_opendir" != no; then
23091   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23092
23093 fi
23094
23095 else
23096   echo "$as_me:$LINENO: checking for library containing opendir" >&5
23097 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23098 if test "${ac_cv_search_opendir+set}" = set; then
23099   echo $ECHO_N "(cached) $ECHO_C" >&6
23100 else
23101   ac_func_search_save_LIBS=$LIBS
23102 ac_cv_search_opendir=no
23103 cat >conftest.$ac_ext <<_ACEOF
23104 /* confdefs.h.  */
23105 _ACEOF
23106 cat confdefs.h >>conftest.$ac_ext
23107 cat >>conftest.$ac_ext <<_ACEOF
23108 /* end confdefs.h.  */
23109
23110 /* Override any gcc2 internal prototype to avoid an error.  */
23111 #ifdef __cplusplus
23112 extern "C"
23113 #endif
23114 /* We use char because int might match the return type of a gcc2
23115    builtin and then its argument prototype would still apply.  */
23116 char opendir ();
23117 int
23118 main ()
23119 {
23120 opendir ();
23121   ;
23122   return 0;
23123 }
23124 _ACEOF
23125 rm -f conftest.$ac_objext conftest$ac_exeext
23126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23127   (eval $ac_link) 2>conftest.er1
23128   ac_status=$?
23129   grep -v '^ *+' conftest.er1 >conftest.err
23130   rm -f conftest.er1
23131   cat conftest.err >&5
23132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23133   (exit $ac_status); } &&
23134          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23136   (eval $ac_try) 2>&5
23137   ac_status=$?
23138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23139   (exit $ac_status); }; } &&
23140          { ac_try='test -s conftest$ac_exeext'
23141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23142   (eval $ac_try) 2>&5
23143   ac_status=$?
23144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23145   (exit $ac_status); }; }; then
23146   ac_cv_search_opendir="none required"
23147 else
23148   echo "$as_me: failed program was:" >&5
23149 sed 's/^/| /' conftest.$ac_ext >&5
23150
23151 fi
23152 rm -f conftest.err conftest.$ac_objext \
23153       conftest$ac_exeext conftest.$ac_ext
23154 if test "$ac_cv_search_opendir" = no; then
23155   for ac_lib in x; do
23156     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23157     cat >conftest.$ac_ext <<_ACEOF
23158 /* confdefs.h.  */
23159 _ACEOF
23160 cat confdefs.h >>conftest.$ac_ext
23161 cat >>conftest.$ac_ext <<_ACEOF
23162 /* end confdefs.h.  */
23163
23164 /* Override any gcc2 internal prototype to avoid an error.  */
23165 #ifdef __cplusplus
23166 extern "C"
23167 #endif
23168 /* We use char because int might match the return type of a gcc2
23169    builtin and then its argument prototype would still apply.  */
23170 char opendir ();
23171 int
23172 main ()
23173 {
23174 opendir ();
23175   ;
23176   return 0;
23177 }
23178 _ACEOF
23179 rm -f conftest.$ac_objext conftest$ac_exeext
23180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23181   (eval $ac_link) 2>conftest.er1
23182   ac_status=$?
23183   grep -v '^ *+' conftest.er1 >conftest.err
23184   rm -f conftest.er1
23185   cat conftest.err >&5
23186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23187   (exit $ac_status); } &&
23188          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23190   (eval $ac_try) 2>&5
23191   ac_status=$?
23192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23193   (exit $ac_status); }; } &&
23194          { ac_try='test -s conftest$ac_exeext'
23195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23196   (eval $ac_try) 2>&5
23197   ac_status=$?
23198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23199   (exit $ac_status); }; }; then
23200   ac_cv_search_opendir="-l$ac_lib"
23201 break
23202 else
23203   echo "$as_me: failed program was:" >&5
23204 sed 's/^/| /' conftest.$ac_ext >&5
23205
23206 fi
23207 rm -f conftest.err conftest.$ac_objext \
23208       conftest$ac_exeext conftest.$ac_ext
23209   done
23210 fi
23211 LIBS=$ac_func_search_save_LIBS
23212 fi
23213 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23214 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23215 if test "$ac_cv_search_opendir" != no; then
23216   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23217
23218 fi
23219
23220 fi
23221
23222 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
23223 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
23224 if test "${ac_cv_func_closedir_void+set}" = set; then
23225   echo $ECHO_N "(cached) $ECHO_C" >&6
23226 else
23227   if test "$cross_compiling" = yes; then
23228   ac_cv_func_closedir_void=yes
23229 else
23230   cat >conftest.$ac_ext <<_ACEOF
23231 /* confdefs.h.  */
23232 _ACEOF
23233 cat confdefs.h >>conftest.$ac_ext
23234 cat >>conftest.$ac_ext <<_ACEOF
23235 /* end confdefs.h.  */
23236 $ac_includes_default
23237 #include <$ac_header_dirent>
23238 #ifndef __cplusplus
23239 int closedir ();
23240 #endif
23241
23242 int
23243 main ()
23244 {
23245 exit (closedir (opendir (".")) != 0);
23246   ;
23247   return 0;
23248 }
23249 _ACEOF
23250 rm -f conftest$ac_exeext
23251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23252   (eval $ac_link) 2>&5
23253   ac_status=$?
23254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23255   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23257   (eval $ac_try) 2>&5
23258   ac_status=$?
23259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23260   (exit $ac_status); }; }; then
23261   ac_cv_func_closedir_void=no
23262 else
23263   echo "$as_me: program exited with status $ac_status" >&5
23264 echo "$as_me: failed program was:" >&5
23265 sed 's/^/| /' conftest.$ac_ext >&5
23266
23267 ( exit $ac_status )
23268 ac_cv_func_closedir_void=yes
23269 fi
23270 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23271 fi
23272 fi
23273 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
23274 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
23275 if test $ac_cv_func_closedir_void = yes; then
23276
23277 cat >>confdefs.h <<\_ACEOF
23278 #define CLOSEDIR_VOID 1
23279 _ACEOF
23280
23281 fi
23282
23283 echo "$as_me:$LINENO: checking for error_at_line" >&5
23284 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
23285 if test "${ac_cv_lib_error_at_line+set}" = set; then
23286   echo $ECHO_N "(cached) $ECHO_C" >&6
23287 else
23288   cat >conftest.$ac_ext <<_ACEOF
23289 /* confdefs.h.  */
23290 _ACEOF
23291 cat confdefs.h >>conftest.$ac_ext
23292 cat >>conftest.$ac_ext <<_ACEOF
23293 /* end confdefs.h.  */
23294 $ac_includes_default
23295 int
23296 main ()
23297 {
23298 error_at_line (0, 0, "", 0, "");
23299   ;
23300   return 0;
23301 }
23302 _ACEOF
23303 rm -f conftest.$ac_objext conftest$ac_exeext
23304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23305   (eval $ac_link) 2>conftest.er1
23306   ac_status=$?
23307   grep -v '^ *+' conftest.er1 >conftest.err
23308   rm -f conftest.er1
23309   cat conftest.err >&5
23310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23311   (exit $ac_status); } &&
23312          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23314   (eval $ac_try) 2>&5
23315   ac_status=$?
23316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23317   (exit $ac_status); }; } &&
23318          { ac_try='test -s conftest$ac_exeext'
23319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23320   (eval $ac_try) 2>&5
23321   ac_status=$?
23322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23323   (exit $ac_status); }; }; then
23324   ac_cv_lib_error_at_line=yes
23325 else
23326   echo "$as_me: failed program was:" >&5
23327 sed 's/^/| /' conftest.$ac_ext >&5
23328
23329 ac_cv_lib_error_at_line=no
23330 fi
23331 rm -f conftest.err conftest.$ac_objext \
23332       conftest$ac_exeext conftest.$ac_ext
23333 fi
23334 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
23335 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
23336 if test $ac_cv_lib_error_at_line = no; then
23337   case $LIBOBJS in
23338     "error.$ac_objext"   | \
23339   *" error.$ac_objext"   | \
23340     "error.$ac_objext "* | \
23341   *" error.$ac_objext "* ) ;;
23342   *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
23343 esac
23344
23345 fi
23346
23347
23348
23349 for ac_header in unistd.h vfork.h
23350 do
23351 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23353   echo "$as_me:$LINENO: checking for $ac_header" >&5
23354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23356   echo $ECHO_N "(cached) $ECHO_C" >&6
23357 fi
23358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23359 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23360 else
23361   # Is the header compilable?
23362 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23363 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23364 cat >conftest.$ac_ext <<_ACEOF
23365 /* confdefs.h.  */
23366 _ACEOF
23367 cat confdefs.h >>conftest.$ac_ext
23368 cat >>conftest.$ac_ext <<_ACEOF
23369 /* end confdefs.h.  */
23370 $ac_includes_default
23371 #include <$ac_header>
23372 _ACEOF
23373 rm -f conftest.$ac_objext
23374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23375   (eval $ac_compile) 2>conftest.er1
23376   ac_status=$?
23377   grep -v '^ *+' conftest.er1 >conftest.err
23378   rm -f conftest.er1
23379   cat conftest.err >&5
23380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23381   (exit $ac_status); } &&
23382          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23384   (eval $ac_try) 2>&5
23385   ac_status=$?
23386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23387   (exit $ac_status); }; } &&
23388          { ac_try='test -s conftest.$ac_objext'
23389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23390   (eval $ac_try) 2>&5
23391   ac_status=$?
23392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23393   (exit $ac_status); }; }; then
23394   ac_header_compiler=yes
23395 else
23396   echo "$as_me: failed program was:" >&5
23397 sed 's/^/| /' conftest.$ac_ext >&5
23398
23399 ac_header_compiler=no
23400 fi
23401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23402 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23403 echo "${ECHO_T}$ac_header_compiler" >&6
23404
23405 # Is the header present?
23406 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23407 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23408 cat >conftest.$ac_ext <<_ACEOF
23409 /* confdefs.h.  */
23410 _ACEOF
23411 cat confdefs.h >>conftest.$ac_ext
23412 cat >>conftest.$ac_ext <<_ACEOF
23413 /* end confdefs.h.  */
23414 #include <$ac_header>
23415 _ACEOF
23416 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23417   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23418   ac_status=$?
23419   grep -v '^ *+' conftest.er1 >conftest.err
23420   rm -f conftest.er1
23421   cat conftest.err >&5
23422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23423   (exit $ac_status); } >/dev/null; then
23424   if test -s conftest.err; then
23425     ac_cpp_err=$ac_c_preproc_warn_flag
23426     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23427   else
23428     ac_cpp_err=
23429   fi
23430 else
23431   ac_cpp_err=yes
23432 fi
23433 if test -z "$ac_cpp_err"; then
23434   ac_header_preproc=yes
23435 else
23436   echo "$as_me: failed program was:" >&5
23437 sed 's/^/| /' conftest.$ac_ext >&5
23438
23439   ac_header_preproc=no
23440 fi
23441 rm -f conftest.err conftest.$ac_ext
23442 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23443 echo "${ECHO_T}$ac_header_preproc" >&6
23444
23445 # So?  What about this header?
23446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23447   yes:no: )
23448     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23449 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23450     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23451 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23452     ac_header_preproc=yes
23453     ;;
23454   no:yes:* )
23455     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23456 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23457     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23458 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23459     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23460 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23461     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23462 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23463     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23465     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23466 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23467     (
23468       cat <<\_ASBOX
23469 ## ------------------------------- ##
23470 ## Report this to nfs@lists.sf.net ##
23471 ## ------------------------------- ##
23472 _ASBOX
23473     ) |
23474       sed "s/^/$as_me: WARNING:     /" >&2
23475     ;;
23476 esac
23477 echo "$as_me:$LINENO: checking for $ac_header" >&5
23478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23480   echo $ECHO_N "(cached) $ECHO_C" >&6
23481 else
23482   eval "$as_ac_Header=\$ac_header_preproc"
23483 fi
23484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23485 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23486
23487 fi
23488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23489   cat >>confdefs.h <<_ACEOF
23490 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23491 _ACEOF
23492
23493 fi
23494
23495 done
23496
23497
23498
23499 for ac_func in fork vfork
23500 do
23501 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23502 echo "$as_me:$LINENO: checking for $ac_func" >&5
23503 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23504 if eval "test \"\${$as_ac_var+set}\" = set"; then
23505   echo $ECHO_N "(cached) $ECHO_C" >&6
23506 else
23507   cat >conftest.$ac_ext <<_ACEOF
23508 /* confdefs.h.  */
23509 _ACEOF
23510 cat confdefs.h >>conftest.$ac_ext
23511 cat >>conftest.$ac_ext <<_ACEOF
23512 /* end confdefs.h.  */
23513 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23514    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23515 #define $ac_func innocuous_$ac_func
23516
23517 /* System header to define __stub macros and hopefully few prototypes,
23518     which can conflict with char $ac_func (); below.
23519     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23520     <limits.h> exists even on freestanding compilers.  */
23521
23522 #ifdef __STDC__
23523 # include <limits.h>
23524 #else
23525 # include <assert.h>
23526 #endif
23527
23528 #undef $ac_func
23529
23530 /* Override any gcc2 internal prototype to avoid an error.  */
23531 #ifdef __cplusplus
23532 extern "C"
23533 {
23534 #endif
23535 /* We use char because int might match the return type of a gcc2
23536    builtin and then its argument prototype would still apply.  */
23537 char $ac_func ();
23538 /* The GNU C library defines this for functions which it implements
23539     to always fail with ENOSYS.  Some functions are actually named
23540     something starting with __ and the normal name is an alias.  */
23541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23542 choke me
23543 #else
23544 char (*f) () = $ac_func;
23545 #endif
23546 #ifdef __cplusplus
23547 }
23548 #endif
23549
23550 int
23551 main ()
23552 {
23553 return f != $ac_func;
23554   ;
23555   return 0;
23556 }
23557 _ACEOF
23558 rm -f conftest.$ac_objext conftest$ac_exeext
23559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23560   (eval $ac_link) 2>conftest.er1
23561   ac_status=$?
23562   grep -v '^ *+' conftest.er1 >conftest.err
23563   rm -f conftest.er1
23564   cat conftest.err >&5
23565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23566   (exit $ac_status); } &&
23567          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23569   (eval $ac_try) 2>&5
23570   ac_status=$?
23571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23572   (exit $ac_status); }; } &&
23573          { ac_try='test -s conftest$ac_exeext'
23574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23575   (eval $ac_try) 2>&5
23576   ac_status=$?
23577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23578   (exit $ac_status); }; }; then
23579   eval "$as_ac_var=yes"
23580 else
23581   echo "$as_me: failed program was:" >&5
23582 sed 's/^/| /' conftest.$ac_ext >&5
23583
23584 eval "$as_ac_var=no"
23585 fi
23586 rm -f conftest.err conftest.$ac_objext \
23587       conftest$ac_exeext conftest.$ac_ext
23588 fi
23589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23590 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23591 if test `eval echo '${'$as_ac_var'}'` = yes; then
23592   cat >>confdefs.h <<_ACEOF
23593 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23594 _ACEOF
23595
23596 fi
23597 done
23598
23599 if test "x$ac_cv_func_fork" = xyes; then
23600   echo "$as_me:$LINENO: checking for working fork" >&5
23601 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
23602 if test "${ac_cv_func_fork_works+set}" = set; then
23603   echo $ECHO_N "(cached) $ECHO_C" >&6
23604 else
23605   if test "$cross_compiling" = yes; then
23606   ac_cv_func_fork_works=cross
23607 else
23608   cat >conftest.$ac_ext <<_ACEOF
23609 /* confdefs.h.  */
23610 _ACEOF
23611 cat confdefs.h >>conftest.$ac_ext
23612 cat >>conftest.$ac_ext <<_ACEOF
23613 /* end confdefs.h.  */
23614 $ac_includes_default
23615 int
23616 main ()
23617 {
23618
23619           /* By Ruediger Kuhlmann. */
23620           if (fork() < 0)
23621             exit (1);
23622           exit (0);
23623
23624   ;
23625   return 0;
23626 }
23627 _ACEOF
23628 rm -f conftest$ac_exeext
23629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23630   (eval $ac_link) 2>&5
23631   ac_status=$?
23632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23633   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23635   (eval $ac_try) 2>&5
23636   ac_status=$?
23637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23638   (exit $ac_status); }; }; then
23639   ac_cv_func_fork_works=yes
23640 else
23641   echo "$as_me: program exited with status $ac_status" >&5
23642 echo "$as_me: failed program was:" >&5
23643 sed 's/^/| /' conftest.$ac_ext >&5
23644
23645 ( exit $ac_status )
23646 ac_cv_func_fork_works=no
23647 fi
23648 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23649 fi
23650 fi
23651 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23652 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
23653
23654 else
23655   ac_cv_func_fork_works=$ac_cv_func_fork
23656 fi
23657 if test "x$ac_cv_func_fork_works" = xcross; then
23658   case $host in
23659     *-*-amigaos* | *-*-msdosdjgpp*)
23660       # Override, as these systems have only a dummy fork() stub
23661       ac_cv_func_fork_works=no
23662       ;;
23663     *)
23664       ac_cv_func_fork_works=yes
23665       ;;
23666   esac
23667   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23668 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23669 fi
23670 ac_cv_func_vfork_works=$ac_cv_func_vfork
23671 if test "x$ac_cv_func_vfork" = xyes; then
23672   echo "$as_me:$LINENO: checking for working vfork" >&5
23673 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
23674 if test "${ac_cv_func_vfork_works+set}" = set; then
23675   echo $ECHO_N "(cached) $ECHO_C" >&6
23676 else
23677   if test "$cross_compiling" = yes; then
23678   ac_cv_func_vfork_works=cross
23679 else
23680   cat >conftest.$ac_ext <<_ACEOF
23681 /* confdefs.h.  */
23682 _ACEOF
23683 cat confdefs.h >>conftest.$ac_ext
23684 cat >>conftest.$ac_ext <<_ACEOF
23685 /* end confdefs.h.  */
23686 /* Thanks to Paul Eggert for this test.  */
23687 #include <stdio.h>
23688 #include <stdlib.h>
23689 #include <sys/types.h>
23690 #include <sys/stat.h>
23691 #include <sys/wait.h>
23692 #if HAVE_UNISTD_H
23693 # include <unistd.h>
23694 #endif
23695 #if HAVE_VFORK_H
23696 # include <vfork.h>
23697 #endif
23698 /* On some sparc systems, changes by the child to local and incoming
23699    argument registers are propagated back to the parent.  The compiler
23700    is told about this with #include <vfork.h>, but some compilers
23701    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
23702    static variable whose address is put into a register that is
23703    clobbered by the vfork.  */
23704 static void
23705 #ifdef __cplusplus
23706 sparc_address_test (int arg)
23707 # else
23708 sparc_address_test (arg) int arg;
23709 #endif
23710 {
23711   static pid_t child;
23712   if (!child) {
23713     child = vfork ();
23714     if (child < 0) {
23715       perror ("vfork");
23716       _exit(2);
23717     }
23718     if (!child) {
23719       arg = getpid();
23720       write(-1, "", 0);
23721       _exit (arg);
23722     }
23723   }
23724 }
23725
23726 int
23727 main ()
23728 {
23729   pid_t parent = getpid ();
23730   pid_t child;
23731
23732   sparc_address_test (0);
23733
23734   child = vfork ();
23735
23736   if (child == 0) {
23737     /* Here is another test for sparc vfork register problems.  This
23738        test uses lots of local variables, at least as many local
23739        variables as main has allocated so far including compiler
23740        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
23741        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
23742        reuse the register of parent for one of the local variables,
23743        since it will think that parent can't possibly be used any more
23744        in this routine.  Assigning to the local variable will thus
23745        munge parent in the parent process.  */
23746     pid_t
23747       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23748       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23749     /* Convince the compiler that p..p7 are live; otherwise, it might
23750        use the same hardware register for all 8 local variables.  */
23751     if (p != p1 || p != p2 || p != p3 || p != p4
23752         || p != p5 || p != p6 || p != p7)
23753       _exit(1);
23754
23755     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23756        from child file descriptors.  If the child closes a descriptor
23757        before it execs or exits, this munges the parent's descriptor
23758        as well.  Test for this by closing stdout in the child.  */
23759     _exit(close(fileno(stdout)) != 0);
23760   } else {
23761     int status;
23762     struct stat st;
23763
23764     while (wait(&status) != child)
23765       ;
23766     exit(
23767          /* Was there some problem with vforking?  */
23768          child < 0
23769
23770          /* Did the child fail?  (This shouldn't happen.)  */
23771          || status
23772
23773          /* Did the vfork/compiler bug occur?  */
23774          || parent != getpid()
23775
23776          /* Did the file descriptor bug occur?  */
23777          || fstat(fileno(stdout), &st) != 0
23778          );
23779   }
23780 }
23781 _ACEOF
23782 rm -f conftest$ac_exeext
23783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23784   (eval $ac_link) 2>&5
23785   ac_status=$?
23786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23787   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23789   (eval $ac_try) 2>&5
23790   ac_status=$?
23791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23792   (exit $ac_status); }; }; then
23793   ac_cv_func_vfork_works=yes
23794 else
23795   echo "$as_me: program exited with status $ac_status" >&5
23796 echo "$as_me: failed program was:" >&5
23797 sed 's/^/| /' conftest.$ac_ext >&5
23798
23799 ( exit $ac_status )
23800 ac_cv_func_vfork_works=no
23801 fi
23802 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23803 fi
23804 fi
23805 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23806 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
23807
23808 fi;
23809 if test "x$ac_cv_func_fork_works" = xcross; then
23810   ac_cv_func_vfork_works=$ac_cv_func_vfork
23811   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23812 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23813 fi
23814
23815 if test "x$ac_cv_func_vfork_works" = xyes; then
23816
23817 cat >>confdefs.h <<\_ACEOF
23818 #define HAVE_WORKING_VFORK 1
23819 _ACEOF
23820
23821 else
23822
23823 cat >>confdefs.h <<\_ACEOF
23824 #define vfork fork
23825 _ACEOF
23826
23827 fi
23828 if test "x$ac_cv_func_fork_works" = xyes; then
23829
23830 cat >>confdefs.h <<\_ACEOF
23831 #define HAVE_WORKING_FORK 1
23832 _ACEOF
23833
23834 fi
23835
23836 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
23837 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
23838 if test "${ac_cv_type_getgroups+set}" = set; then
23839   echo $ECHO_N "(cached) $ECHO_C" >&6
23840 else
23841   if test "$cross_compiling" = yes; then
23842   ac_cv_type_getgroups=cross
23843 else
23844   cat >conftest.$ac_ext <<_ACEOF
23845 /* confdefs.h.  */
23846 _ACEOF
23847 cat confdefs.h >>conftest.$ac_ext
23848 cat >>conftest.$ac_ext <<_ACEOF
23849 /* end confdefs.h.  */
23850 /* Thanks to Mike Rendell for this test.  */
23851 #include <sys/types.h>
23852 #define NGID 256
23853 #undef MAX
23854 #define MAX(x, y) ((x) > (y) ? (x) : (y))
23855
23856 int
23857 main ()
23858 {
23859   gid_t gidset[NGID];
23860   int i, n;
23861   union { gid_t gval; long lval; }  val;
23862
23863   val.lval = -1;
23864   for (i = 0; i < NGID; i++)
23865     gidset[i] = val.gval;
23866   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
23867                  gidset);
23868   /* Exit non-zero if getgroups seems to require an array of ints.  This
23869      happens when gid_t is short but getgroups modifies an array of ints.  */
23870   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
23871 }
23872 _ACEOF
23873 rm -f conftest$ac_exeext
23874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23875   (eval $ac_link) 2>&5
23876   ac_status=$?
23877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23878   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23880   (eval $ac_try) 2>&5
23881   ac_status=$?
23882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23883   (exit $ac_status); }; }; then
23884   ac_cv_type_getgroups=gid_t
23885 else
23886   echo "$as_me: program exited with status $ac_status" >&5
23887 echo "$as_me: failed program was:" >&5
23888 sed 's/^/| /' conftest.$ac_ext >&5
23889
23890 ( exit $ac_status )
23891 ac_cv_type_getgroups=int
23892 fi
23893 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23894 fi
23895 if test $ac_cv_type_getgroups = cross; then
23896         cat >conftest.$ac_ext <<_ACEOF
23897 /* confdefs.h.  */
23898 _ACEOF
23899 cat confdefs.h >>conftest.$ac_ext
23900 cat >>conftest.$ac_ext <<_ACEOF
23901 /* end confdefs.h.  */
23902 #include <unistd.h>
23903
23904 _ACEOF
23905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23906   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
23907   ac_cv_type_getgroups=gid_t
23908 else
23909   ac_cv_type_getgroups=int
23910 fi
23911 rm -f conftest*
23912
23913 fi
23914 fi
23915 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
23916 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
23917
23918 cat >>confdefs.h <<_ACEOF
23919 #define GETGROUPS_T $ac_cv_type_getgroups
23920 _ACEOF
23921
23922
23923 echo "$as_me:$LINENO: checking for getgroups" >&5
23924 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6
23925 if test "${ac_cv_func_getgroups+set}" = set; then
23926   echo $ECHO_N "(cached) $ECHO_C" >&6
23927 else
23928   cat >conftest.$ac_ext <<_ACEOF
23929 /* confdefs.h.  */
23930 _ACEOF
23931 cat confdefs.h >>conftest.$ac_ext
23932 cat >>conftest.$ac_ext <<_ACEOF
23933 /* end confdefs.h.  */
23934 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
23935    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23936 #define getgroups innocuous_getgroups
23937
23938 /* System header to define __stub macros and hopefully few prototypes,
23939     which can conflict with char getgroups (); below.
23940     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23941     <limits.h> exists even on freestanding compilers.  */
23942
23943 #ifdef __STDC__
23944 # include <limits.h>
23945 #else
23946 # include <assert.h>
23947 #endif
23948
23949 #undef getgroups
23950
23951 /* Override any gcc2 internal prototype to avoid an error.  */
23952 #ifdef __cplusplus
23953 extern "C"
23954 {
23955 #endif
23956 /* We use char because int might match the return type of a gcc2
23957    builtin and then its argument prototype would still apply.  */
23958 char getgroups ();
23959 /* The GNU C library defines this for functions which it implements
23960     to always fail with ENOSYS.  Some functions are actually named
23961     something starting with __ and the normal name is an alias.  */
23962 #if defined (__stub_getgroups) || defined (__stub___getgroups)
23963 choke me
23964 #else
23965 char (*f) () = getgroups;
23966 #endif
23967 #ifdef __cplusplus
23968 }
23969 #endif
23970
23971 int
23972 main ()
23973 {
23974 return f != getgroups;
23975   ;
23976   return 0;
23977 }
23978 _ACEOF
23979 rm -f conftest.$ac_objext conftest$ac_exeext
23980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23981   (eval $ac_link) 2>conftest.er1
23982   ac_status=$?
23983   grep -v '^ *+' conftest.er1 >conftest.err
23984   rm -f conftest.er1
23985   cat conftest.err >&5
23986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23987   (exit $ac_status); } &&
23988          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23990   (eval $ac_try) 2>&5
23991   ac_status=$?
23992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23993   (exit $ac_status); }; } &&
23994          { ac_try='test -s conftest$ac_exeext'
23995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23996   (eval $ac_try) 2>&5
23997   ac_status=$?
23998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23999   (exit $ac_status); }; }; then
24000   ac_cv_func_getgroups=yes
24001 else
24002   echo "$as_me: failed program was:" >&5
24003 sed 's/^/| /' conftest.$ac_ext >&5
24004
24005 ac_cv_func_getgroups=no
24006 fi
24007 rm -f conftest.err conftest.$ac_objext \
24008       conftest$ac_exeext conftest.$ac_ext
24009 fi
24010 echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
24011 echo "${ECHO_T}$ac_cv_func_getgroups" >&6
24012
24013
24014 # If we don't yet have getgroups, see if it's in -lbsd.
24015 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
24016 ac_save_LIBS=$LIBS
24017 if test $ac_cv_func_getgroups = no; then
24018   echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
24019 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6
24020 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
24021   echo $ECHO_N "(cached) $ECHO_C" >&6
24022 else
24023   ac_check_lib_save_LIBS=$LIBS
24024 LIBS="-lbsd  $LIBS"
24025 cat >conftest.$ac_ext <<_ACEOF
24026 /* confdefs.h.  */
24027 _ACEOF
24028 cat confdefs.h >>conftest.$ac_ext
24029 cat >>conftest.$ac_ext <<_ACEOF
24030 /* end confdefs.h.  */
24031
24032 /* Override any gcc2 internal prototype to avoid an error.  */
24033 #ifdef __cplusplus
24034 extern "C"
24035 #endif
24036 /* We use char because int might match the return type of a gcc2
24037    builtin and then its argument prototype would still apply.  */
24038 char getgroups ();
24039 int
24040 main ()
24041 {
24042 getgroups ();
24043   ;
24044   return 0;
24045 }
24046 _ACEOF
24047 rm -f conftest.$ac_objext conftest$ac_exeext
24048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24049   (eval $ac_link) 2>conftest.er1
24050   ac_status=$?
24051   grep -v '^ *+' conftest.er1 >conftest.err
24052   rm -f conftest.er1
24053   cat conftest.err >&5
24054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24055   (exit $ac_status); } &&
24056          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24058   (eval $ac_try) 2>&5
24059   ac_status=$?
24060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24061   (exit $ac_status); }; } &&
24062          { ac_try='test -s conftest$ac_exeext'
24063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24064   (eval $ac_try) 2>&5
24065   ac_status=$?
24066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24067   (exit $ac_status); }; }; then
24068   ac_cv_lib_bsd_getgroups=yes
24069 else
24070   echo "$as_me: failed program was:" >&5
24071 sed 's/^/| /' conftest.$ac_ext >&5
24072
24073 ac_cv_lib_bsd_getgroups=no
24074 fi
24075 rm -f conftest.err conftest.$ac_objext \
24076       conftest$ac_exeext conftest.$ac_ext
24077 LIBS=$ac_check_lib_save_LIBS
24078 fi
24079 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
24080 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6
24081 if test $ac_cv_lib_bsd_getgroups = yes; then
24082   GETGROUPS_LIB=-lbsd
24083 fi
24084
24085 fi
24086
24087 # Run the program to test the functionality of the system-supplied
24088 # getgroups function only if there is such a function.
24089 if test $ac_cv_func_getgroups = yes; then
24090   echo "$as_me:$LINENO: checking for working getgroups" >&5
24091 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6
24092 if test "${ac_cv_func_getgroups_works+set}" = set; then
24093   echo $ECHO_N "(cached) $ECHO_C" >&6
24094 else
24095   if test "$cross_compiling" = yes; then
24096   ac_cv_func_getgroups_works=no
24097 else
24098   cat >conftest.$ac_ext <<_ACEOF
24099 /* confdefs.h.  */
24100 _ACEOF
24101 cat confdefs.h >>conftest.$ac_ext
24102 cat >>conftest.$ac_ext <<_ACEOF
24103 /* end confdefs.h.  */
24104 $ac_includes_default
24105 int
24106 main ()
24107 {
24108 /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
24109        exit (getgroups (0, 0) == -1 ? 1 : 0);
24110   ;
24111   return 0;
24112 }
24113 _ACEOF
24114 rm -f conftest$ac_exeext
24115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24116   (eval $ac_link) 2>&5
24117   ac_status=$?
24118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24119   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24121   (eval $ac_try) 2>&5
24122   ac_status=$?
24123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24124   (exit $ac_status); }; }; then
24125   ac_cv_func_getgroups_works=yes
24126 else
24127   echo "$as_me: program exited with status $ac_status" >&5
24128 echo "$as_me: failed program was:" >&5
24129 sed 's/^/| /' conftest.$ac_ext >&5
24130
24131 ( exit $ac_status )
24132 ac_cv_func_getgroups_works=no
24133 fi
24134 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24135 fi
24136
24137 fi
24138 echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
24139 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6
24140   if test $ac_cv_func_getgroups_works = yes; then
24141
24142 cat >>confdefs.h <<\_ACEOF
24143 #define HAVE_GETGROUPS 1
24144 _ACEOF
24145
24146   fi
24147 fi
24148 LIBS=$ac_save_LIBS
24149
24150 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
24151 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
24152 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
24153 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
24154   echo $ECHO_N "(cached) $ECHO_C" >&6
24155 else
24156   ac_check_lib_save_LIBS=$LIBS
24157 LIBS="-lsun  $LIBS"
24158 cat >conftest.$ac_ext <<_ACEOF
24159 /* confdefs.h.  */
24160 _ACEOF
24161 cat confdefs.h >>conftest.$ac_ext
24162 cat >>conftest.$ac_ext <<_ACEOF
24163 /* end confdefs.h.  */
24164
24165 /* Override any gcc2 internal prototype to avoid an error.  */
24166 #ifdef __cplusplus
24167 extern "C"
24168 #endif
24169 /* We use char because int might match the return type of a gcc2
24170    builtin and then its argument prototype would still apply.  */
24171 char getmntent ();
24172 int
24173 main ()
24174 {
24175 getmntent ();
24176   ;
24177   return 0;
24178 }
24179 _ACEOF
24180 rm -f conftest.$ac_objext conftest$ac_exeext
24181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24182   (eval $ac_link) 2>conftest.er1
24183   ac_status=$?
24184   grep -v '^ *+' conftest.er1 >conftest.err
24185   rm -f conftest.er1
24186   cat conftest.err >&5
24187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24188   (exit $ac_status); } &&
24189          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24191   (eval $ac_try) 2>&5
24192   ac_status=$?
24193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24194   (exit $ac_status); }; } &&
24195          { ac_try='test -s conftest$ac_exeext'
24196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24197   (eval $ac_try) 2>&5
24198   ac_status=$?
24199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24200   (exit $ac_status); }; }; then
24201   ac_cv_lib_sun_getmntent=yes
24202 else
24203   echo "$as_me: failed program was:" >&5
24204 sed 's/^/| /' conftest.$ac_ext >&5
24205
24206 ac_cv_lib_sun_getmntent=no
24207 fi
24208 rm -f conftest.err conftest.$ac_objext \
24209       conftest$ac_exeext conftest.$ac_ext
24210 LIBS=$ac_check_lib_save_LIBS
24211 fi
24212 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
24213 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
24214 if test $ac_cv_lib_sun_getmntent = yes; then
24215   LIBS="-lsun $LIBS"
24216 else
24217   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
24218 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
24219 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
24220   echo $ECHO_N "(cached) $ECHO_C" >&6
24221 else
24222   ac_check_lib_save_LIBS=$LIBS
24223 LIBS="-lseq  $LIBS"
24224 cat >conftest.$ac_ext <<_ACEOF
24225 /* confdefs.h.  */
24226 _ACEOF
24227 cat confdefs.h >>conftest.$ac_ext
24228 cat >>conftest.$ac_ext <<_ACEOF
24229 /* end confdefs.h.  */
24230
24231 /* Override any gcc2 internal prototype to avoid an error.  */
24232 #ifdef __cplusplus
24233 extern "C"
24234 #endif
24235 /* We use char because int might match the return type of a gcc2
24236    builtin and then its argument prototype would still apply.  */
24237 char getmntent ();
24238 int
24239 main ()
24240 {
24241 getmntent ();
24242   ;
24243   return 0;
24244 }
24245 _ACEOF
24246 rm -f conftest.$ac_objext conftest$ac_exeext
24247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24248   (eval $ac_link) 2>conftest.er1
24249   ac_status=$?
24250   grep -v '^ *+' conftest.er1 >conftest.err
24251   rm -f conftest.er1
24252   cat conftest.err >&5
24253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24254   (exit $ac_status); } &&
24255          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24257   (eval $ac_try) 2>&5
24258   ac_status=$?
24259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24260   (exit $ac_status); }; } &&
24261          { ac_try='test -s conftest$ac_exeext'
24262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24263   (eval $ac_try) 2>&5
24264   ac_status=$?
24265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24266   (exit $ac_status); }; }; then
24267   ac_cv_lib_seq_getmntent=yes
24268 else
24269   echo "$as_me: failed program was:" >&5
24270 sed 's/^/| /' conftest.$ac_ext >&5
24271
24272 ac_cv_lib_seq_getmntent=no
24273 fi
24274 rm -f conftest.err conftest.$ac_objext \
24275       conftest$ac_exeext conftest.$ac_ext
24276 LIBS=$ac_check_lib_save_LIBS
24277 fi
24278 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
24279 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
24280 if test $ac_cv_lib_seq_getmntent = yes; then
24281   LIBS="-lseq $LIBS"
24282 else
24283   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
24284 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
24285 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
24286   echo $ECHO_N "(cached) $ECHO_C" >&6
24287 else
24288   ac_check_lib_save_LIBS=$LIBS
24289 LIBS="-lgen  $LIBS"
24290 cat >conftest.$ac_ext <<_ACEOF
24291 /* confdefs.h.  */
24292 _ACEOF
24293 cat confdefs.h >>conftest.$ac_ext
24294 cat >>conftest.$ac_ext <<_ACEOF
24295 /* end confdefs.h.  */
24296
24297 /* Override any gcc2 internal prototype to avoid an error.  */
24298 #ifdef __cplusplus
24299 extern "C"
24300 #endif
24301 /* We use char because int might match the return type of a gcc2
24302    builtin and then its argument prototype would still apply.  */
24303 char getmntent ();
24304 int
24305 main ()
24306 {
24307 getmntent ();
24308   ;
24309   return 0;
24310 }
24311 _ACEOF
24312 rm -f conftest.$ac_objext conftest$ac_exeext
24313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24314   (eval $ac_link) 2>conftest.er1
24315   ac_status=$?
24316   grep -v '^ *+' conftest.er1 >conftest.err
24317   rm -f conftest.er1
24318   cat conftest.err >&5
24319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24320   (exit $ac_status); } &&
24321          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24323   (eval $ac_try) 2>&5
24324   ac_status=$?
24325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24326   (exit $ac_status); }; } &&
24327          { ac_try='test -s conftest$ac_exeext'
24328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24329   (eval $ac_try) 2>&5
24330   ac_status=$?
24331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24332   (exit $ac_status); }; }; then
24333   ac_cv_lib_gen_getmntent=yes
24334 else
24335   echo "$as_me: failed program was:" >&5
24336 sed 's/^/| /' conftest.$ac_ext >&5
24337
24338 ac_cv_lib_gen_getmntent=no
24339 fi
24340 rm -f conftest.err conftest.$ac_objext \
24341       conftest$ac_exeext conftest.$ac_ext
24342 LIBS=$ac_check_lib_save_LIBS
24343 fi
24344 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
24345 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
24346 if test $ac_cv_lib_gen_getmntent = yes; then
24347   LIBS="-lgen $LIBS"
24348 fi
24349
24350 fi
24351
24352 fi
24353
24354
24355 for ac_func in getmntent
24356 do
24357 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24358 echo "$as_me:$LINENO: checking for $ac_func" >&5
24359 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24360 if eval "test \"\${$as_ac_var+set}\" = set"; then
24361   echo $ECHO_N "(cached) $ECHO_C" >&6
24362 else
24363   cat >conftest.$ac_ext <<_ACEOF
24364 /* confdefs.h.  */
24365 _ACEOF
24366 cat confdefs.h >>conftest.$ac_ext
24367 cat >>conftest.$ac_ext <<_ACEOF
24368 /* end confdefs.h.  */
24369 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24370    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24371 #define $ac_func innocuous_$ac_func
24372
24373 /* System header to define __stub macros and hopefully few prototypes,
24374     which can conflict with char $ac_func (); below.
24375     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24376     <limits.h> exists even on freestanding compilers.  */
24377
24378 #ifdef __STDC__
24379 # include <limits.h>
24380 #else
24381 # include <assert.h>
24382 #endif
24383
24384 #undef $ac_func
24385
24386 /* Override any gcc2 internal prototype to avoid an error.  */
24387 #ifdef __cplusplus
24388 extern "C"
24389 {
24390 #endif
24391 /* We use char because int might match the return type of a gcc2
24392    builtin and then its argument prototype would still apply.  */
24393 char $ac_func ();
24394 /* The GNU C library defines this for functions which it implements
24395     to always fail with ENOSYS.  Some functions are actually named
24396     something starting with __ and the normal name is an alias.  */
24397 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24398 choke me
24399 #else
24400 char (*f) () = $ac_func;
24401 #endif
24402 #ifdef __cplusplus
24403 }
24404 #endif
24405
24406 int
24407 main ()
24408 {
24409 return f != $ac_func;
24410   ;
24411   return 0;
24412 }
24413 _ACEOF
24414 rm -f conftest.$ac_objext conftest$ac_exeext
24415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24416   (eval $ac_link) 2>conftest.er1
24417   ac_status=$?
24418   grep -v '^ *+' conftest.er1 >conftest.err
24419   rm -f conftest.er1
24420   cat conftest.err >&5
24421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24422   (exit $ac_status); } &&
24423          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24425   (eval $ac_try) 2>&5
24426   ac_status=$?
24427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24428   (exit $ac_status); }; } &&
24429          { ac_try='test -s conftest$ac_exeext'
24430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24431   (eval $ac_try) 2>&5
24432   ac_status=$?
24433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24434   (exit $ac_status); }; }; then
24435   eval "$as_ac_var=yes"
24436 else
24437   echo "$as_me: failed program was:" >&5
24438 sed 's/^/| /' conftest.$ac_ext >&5
24439
24440 eval "$as_ac_var=no"
24441 fi
24442 rm -f conftest.err conftest.$ac_objext \
24443       conftest$ac_exeext conftest.$ac_ext
24444 fi
24445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24446 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24447 if test `eval echo '${'$as_ac_var'}'` = yes; then
24448   cat >>confdefs.h <<_ACEOF
24449 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24450 _ACEOF
24451
24452 fi
24453 done
24454
24455
24456 if test $ac_cv_c_compiler_gnu = yes; then
24457     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
24458 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
24459 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
24460   echo $ECHO_N "(cached) $ECHO_C" >&6
24461 else
24462     ac_pattern="Autoconf.*'x'"
24463   cat >conftest.$ac_ext <<_ACEOF
24464 /* confdefs.h.  */
24465 _ACEOF
24466 cat confdefs.h >>conftest.$ac_ext
24467 cat >>conftest.$ac_ext <<_ACEOF
24468 /* end confdefs.h.  */
24469 #include <sgtty.h>
24470 Autoconf TIOCGETP
24471 _ACEOF
24472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24473   $EGREP "$ac_pattern" >/dev/null 2>&1; then
24474   ac_cv_prog_gcc_traditional=yes
24475 else
24476   ac_cv_prog_gcc_traditional=no
24477 fi
24478 rm -f conftest*
24479
24480
24481   if test $ac_cv_prog_gcc_traditional = no; then
24482     cat >conftest.$ac_ext <<_ACEOF
24483 /* confdefs.h.  */
24484 _ACEOF
24485 cat confdefs.h >>conftest.$ac_ext
24486 cat >>conftest.$ac_ext <<_ACEOF
24487 /* end confdefs.h.  */
24488 #include <termio.h>
24489 Autoconf TCGETA
24490 _ACEOF
24491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24492   $EGREP "$ac_pattern" >/dev/null 2>&1; then
24493   ac_cv_prog_gcc_traditional=yes
24494 fi
24495 rm -f conftest*
24496
24497   fi
24498 fi
24499 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
24500 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
24501   if test $ac_cv_prog_gcc_traditional = yes; then
24502     CC="$CC -traditional"
24503   fi
24504 fi
24505
24506 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
24507 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
24508 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
24509   echo $ECHO_N "(cached) $ECHO_C" >&6
24510 else
24511   rm -f conftest.sym conftest.file
24512 echo >conftest.file
24513 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
24514   if test "$cross_compiling" = yes; then
24515   ac_cv_func_lstat_dereferences_slashed_symlink=no
24516 else
24517   cat >conftest.$ac_ext <<_ACEOF
24518 /* confdefs.h.  */
24519 _ACEOF
24520 cat confdefs.h >>conftest.$ac_ext
24521 cat >>conftest.$ac_ext <<_ACEOF
24522 /* end confdefs.h.  */
24523 $ac_includes_default
24524 int
24525 main ()
24526 {
24527 struct stat sbuf;
24528      /* Linux will dereference the symlink and fail.
24529         That is better in the sense that it means we will not
24530         have to compile and use the lstat wrapper.  */
24531      exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
24532   ;
24533   return 0;
24534 }
24535 _ACEOF
24536 rm -f conftest$ac_exeext
24537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24538   (eval $ac_link) 2>&5
24539   ac_status=$?
24540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24541   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24543   (eval $ac_try) 2>&5
24544   ac_status=$?
24545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24546   (exit $ac_status); }; }; then
24547   ac_cv_func_lstat_dereferences_slashed_symlink=yes
24548 else
24549   echo "$as_me: program exited with status $ac_status" >&5
24550 echo "$as_me: failed program was:" >&5
24551 sed 's/^/| /' conftest.$ac_ext >&5
24552
24553 ( exit $ac_status )
24554 ac_cv_func_lstat_dereferences_slashed_symlink=no
24555 fi
24556 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24557 fi
24558 else
24559   # If the `ln -s' command failed, then we probably don't even
24560   # have an lstat function.
24561   ac_cv_func_lstat_dereferences_slashed_symlink=no
24562 fi
24563 rm -f conftest.sym conftest.file
24564
24565 fi
24566 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
24567 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
24568
24569 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
24570
24571 cat >>confdefs.h <<_ACEOF
24572 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
24573 _ACEOF
24574
24575
24576 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
24577   case $LIBOBJS in
24578     "lstat.$ac_objext"   | \
24579   *" lstat.$ac_objext"   | \
24580     "lstat.$ac_objext "* | \
24581   *" lstat.$ac_objext "* ) ;;
24582   *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
24583 esac
24584
24585 fi
24586
24587 echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
24588 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
24589 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
24590   echo $ECHO_N "(cached) $ECHO_C" >&6
24591 else
24592   if test "$cross_compiling" = yes; then
24593   ac_cv_func_lstat_empty_string_bug=yes
24594 else
24595   cat >conftest.$ac_ext <<_ACEOF
24596 /* confdefs.h.  */
24597 _ACEOF
24598 cat confdefs.h >>conftest.$ac_ext
24599 cat >>conftest.$ac_ext <<_ACEOF
24600 /* end confdefs.h.  */
24601 $ac_includes_default
24602 int
24603 main ()
24604 {
24605 struct stat sbuf;
24606   exit (lstat ("", &sbuf) ? 1 : 0);
24607   ;
24608   return 0;
24609 }
24610 _ACEOF
24611 rm -f conftest$ac_exeext
24612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24613   (eval $ac_link) 2>&5
24614   ac_status=$?
24615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24616   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24618   (eval $ac_try) 2>&5
24619   ac_status=$?
24620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24621   (exit $ac_status); }; }; then
24622   ac_cv_func_lstat_empty_string_bug=yes
24623 else
24624   echo "$as_me: program exited with status $ac_status" >&5
24625 echo "$as_me: failed program was:" >&5
24626 sed 's/^/| /' conftest.$ac_ext >&5
24627
24628 ( exit $ac_status )
24629 ac_cv_func_lstat_empty_string_bug=no
24630 fi
24631 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24632 fi
24633 fi
24634 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
24635 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
24636 if test $ac_cv_func_lstat_empty_string_bug = yes; then
24637   case $LIBOBJS in
24638     "lstat.$ac_objext"   | \
24639   *" lstat.$ac_objext"   | \
24640     "lstat.$ac_objext "* | \
24641   *" lstat.$ac_objext "* ) ;;
24642   *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
24643 esac
24644
24645
24646 cat >>confdefs.h <<_ACEOF
24647 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
24648 _ACEOF
24649
24650 fi
24651
24652 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
24653 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
24654 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
24655   echo $ECHO_N "(cached) $ECHO_C" >&6
24656 else
24657   rm -f conftest.sym conftest.file
24658 echo >conftest.file
24659 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
24660   if test "$cross_compiling" = yes; then
24661   ac_cv_func_lstat_dereferences_slashed_symlink=no
24662 else
24663   cat >conftest.$ac_ext <<_ACEOF
24664 /* confdefs.h.  */
24665 _ACEOF
24666 cat confdefs.h >>conftest.$ac_ext
24667 cat >>conftest.$ac_ext <<_ACEOF
24668 /* end confdefs.h.  */
24669 $ac_includes_default
24670 int
24671 main ()
24672 {
24673 struct stat sbuf;
24674      /* Linux will dereference the symlink and fail.
24675         That is better in the sense that it means we will not
24676         have to compile and use the lstat wrapper.  */
24677      exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
24678   ;
24679   return 0;
24680 }
24681 _ACEOF
24682 rm -f conftest$ac_exeext
24683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24684   (eval $ac_link) 2>&5
24685   ac_status=$?
24686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24687   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24689   (eval $ac_try) 2>&5
24690   ac_status=$?
24691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24692   (exit $ac_status); }; }; then
24693   ac_cv_func_lstat_dereferences_slashed_symlink=yes
24694 else
24695   echo "$as_me: program exited with status $ac_status" >&5
24696 echo "$as_me: failed program was:" >&5
24697 sed 's/^/| /' conftest.$ac_ext >&5
24698
24699 ( exit $ac_status )
24700 ac_cv_func_lstat_dereferences_slashed_symlink=no
24701 fi
24702 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24703 fi
24704 else
24705   # If the `ln -s' command failed, then we probably don't even
24706   # have an lstat function.
24707   ac_cv_func_lstat_dereferences_slashed_symlink=no
24708 fi
24709 rm -f conftest.sym conftest.file
24710
24711 fi
24712 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
24713 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
24714
24715 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
24716
24717 cat >>confdefs.h <<_ACEOF
24718 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
24719 _ACEOF
24720
24721
24722 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
24723   case $LIBOBJS in
24724     "lstat.$ac_objext"   | \
24725   *" lstat.$ac_objext"   | \
24726     "lstat.$ac_objext "* | \
24727   *" lstat.$ac_objext "* ) ;;
24728   *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
24729 esac
24730
24731 fi
24732
24733 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
24734 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
24735 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
24736   echo $ECHO_N "(cached) $ECHO_C" >&6
24737 else
24738   cat >conftest.$ac_ext <<_ACEOF
24739 /* confdefs.h.  */
24740 _ACEOF
24741 cat confdefs.h >>conftest.$ac_ext
24742 cat >>conftest.$ac_ext <<_ACEOF
24743 /* end confdefs.h.  */
24744 #include <sys/types.h>
24745 int
24746 main ()
24747 {
24748 return makedev(0, 0);
24749   ;
24750   return 0;
24751 }
24752 _ACEOF
24753 rm -f conftest.$ac_objext conftest$ac_exeext
24754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24755   (eval $ac_link) 2>conftest.er1
24756   ac_status=$?
24757   grep -v '^ *+' conftest.er1 >conftest.err
24758   rm -f conftest.er1
24759   cat conftest.err >&5
24760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24761   (exit $ac_status); } &&
24762          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24764   (eval $ac_try) 2>&5
24765   ac_status=$?
24766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24767   (exit $ac_status); }; } &&
24768          { ac_try='test -s conftest$ac_exeext'
24769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24770   (eval $ac_try) 2>&5
24771   ac_status=$?
24772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24773   (exit $ac_status); }; }; then
24774   ac_cv_header_sys_types_h_makedev=yes
24775 else
24776   echo "$as_me: failed program was:" >&5
24777 sed 's/^/| /' conftest.$ac_ext >&5
24778
24779 ac_cv_header_sys_types_h_makedev=no
24780 fi
24781 rm -f conftest.err conftest.$ac_objext \
24782       conftest$ac_exeext conftest.$ac_ext
24783
24784 fi
24785 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
24786 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
24787
24788 if test $ac_cv_header_sys_types_h_makedev = no; then
24789 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
24790   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
24791 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
24792 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
24793   echo $ECHO_N "(cached) $ECHO_C" >&6
24794 fi
24795 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
24796 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
24797 else
24798   # Is the header compilable?
24799 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
24800 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
24801 cat >conftest.$ac_ext <<_ACEOF
24802 /* confdefs.h.  */
24803 _ACEOF
24804 cat confdefs.h >>conftest.$ac_ext
24805 cat >>conftest.$ac_ext <<_ACEOF
24806 /* end confdefs.h.  */
24807 $ac_includes_default
24808 #include <sys/mkdev.h>
24809 _ACEOF
24810 rm -f conftest.$ac_objext
24811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24812   (eval $ac_compile) 2>conftest.er1
24813   ac_status=$?
24814   grep -v '^ *+' conftest.er1 >conftest.err
24815   rm -f conftest.er1
24816   cat conftest.err >&5
24817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24818   (exit $ac_status); } &&
24819          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24821   (eval $ac_try) 2>&5
24822   ac_status=$?
24823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24824   (exit $ac_status); }; } &&
24825          { ac_try='test -s conftest.$ac_objext'
24826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24827   (eval $ac_try) 2>&5
24828   ac_status=$?
24829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24830   (exit $ac_status); }; }; then
24831   ac_header_compiler=yes
24832 else
24833   echo "$as_me: failed program was:" >&5
24834 sed 's/^/| /' conftest.$ac_ext >&5
24835
24836 ac_header_compiler=no
24837 fi
24838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24839 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24840 echo "${ECHO_T}$ac_header_compiler" >&6
24841
24842 # Is the header present?
24843 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
24844 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
24845 cat >conftest.$ac_ext <<_ACEOF
24846 /* confdefs.h.  */
24847 _ACEOF
24848 cat confdefs.h >>conftest.$ac_ext
24849 cat >>conftest.$ac_ext <<_ACEOF
24850 /* end confdefs.h.  */
24851 #include <sys/mkdev.h>
24852 _ACEOF
24853 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24854   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24855   ac_status=$?
24856   grep -v '^ *+' conftest.er1 >conftest.err
24857   rm -f conftest.er1
24858   cat conftest.err >&5
24859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24860   (exit $ac_status); } >/dev/null; then
24861   if test -s conftest.err; then
24862     ac_cpp_err=$ac_c_preproc_warn_flag
24863     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24864   else
24865     ac_cpp_err=
24866   fi
24867 else
24868   ac_cpp_err=yes
24869 fi
24870 if test -z "$ac_cpp_err"; then
24871   ac_header_preproc=yes
24872 else
24873   echo "$as_me: failed program was:" >&5
24874 sed 's/^/| /' conftest.$ac_ext >&5
24875
24876   ac_header_preproc=no
24877 fi
24878 rm -f conftest.err conftest.$ac_ext
24879 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24880 echo "${ECHO_T}$ac_header_preproc" >&6
24881
24882 # So?  What about this header?
24883 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24884   yes:no: )
24885     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
24886 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24887     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
24888 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
24889     ac_header_preproc=yes
24890     ;;
24891   no:yes:* )
24892     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
24893 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
24894     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
24895 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
24896     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
24897 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
24898     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
24899 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24900     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
24901 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
24902     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
24903 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
24904     (
24905       cat <<\_ASBOX
24906 ## ------------------------------- ##
24907 ## Report this to nfs@lists.sf.net ##
24908 ## ------------------------------- ##
24909 _ASBOX
24910     ) |
24911       sed "s/^/$as_me: WARNING:     /" >&2
24912     ;;
24913 esac
24914 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
24915 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
24916 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
24917   echo $ECHO_N "(cached) $ECHO_C" >&6
24918 else
24919   ac_cv_header_sys_mkdev_h=$ac_header_preproc
24920 fi
24921 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
24922 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
24923
24924 fi
24925 if test $ac_cv_header_sys_mkdev_h = yes; then
24926
24927 cat >>confdefs.h <<\_ACEOF
24928 #define MAJOR_IN_MKDEV 1
24929 _ACEOF
24930
24931 fi
24932
24933
24934
24935   if test $ac_cv_header_sys_mkdev_h = no; then
24936     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
24937   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
24938 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
24939 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
24940   echo $ECHO_N "(cached) $ECHO_C" >&6
24941 fi
24942 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
24943 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
24944 else
24945   # Is the header compilable?
24946 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
24947 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
24948 cat >conftest.$ac_ext <<_ACEOF
24949 /* confdefs.h.  */
24950 _ACEOF
24951 cat confdefs.h >>conftest.$ac_ext
24952 cat >>conftest.$ac_ext <<_ACEOF
24953 /* end confdefs.h.  */
24954 $ac_includes_default
24955 #include <sys/sysmacros.h>
24956 _ACEOF
24957 rm -f conftest.$ac_objext
24958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24959   (eval $ac_compile) 2>conftest.er1
24960   ac_status=$?
24961   grep -v '^ *+' conftest.er1 >conftest.err
24962   rm -f conftest.er1
24963   cat conftest.err >&5
24964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24965   (exit $ac_status); } &&
24966          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24968   (eval $ac_try) 2>&5
24969   ac_status=$?
24970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24971   (exit $ac_status); }; } &&
24972          { ac_try='test -s conftest.$ac_objext'
24973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24974   (eval $ac_try) 2>&5
24975   ac_status=$?
24976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24977   (exit $ac_status); }; }; then
24978   ac_header_compiler=yes
24979 else
24980   echo "$as_me: failed program was:" >&5
24981 sed 's/^/| /' conftest.$ac_ext >&5
24982
24983 ac_header_compiler=no
24984 fi
24985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24986 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24987 echo "${ECHO_T}$ac_header_compiler" >&6
24988
24989 # Is the header present?
24990 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
24991 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
24992 cat >conftest.$ac_ext <<_ACEOF
24993 /* confdefs.h.  */
24994 _ACEOF
24995 cat confdefs.h >>conftest.$ac_ext
24996 cat >>conftest.$ac_ext <<_ACEOF
24997 /* end confdefs.h.  */
24998 #include <sys/sysmacros.h>
24999 _ACEOF
25000 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25001   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25002   ac_status=$?
25003   grep -v '^ *+' conftest.er1 >conftest.err
25004   rm -f conftest.er1
25005   cat conftest.err >&5
25006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25007   (exit $ac_status); } >/dev/null; then
25008   if test -s conftest.err; then
25009     ac_cpp_err=$ac_c_preproc_warn_flag
25010     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25011   else
25012     ac_cpp_err=
25013   fi
25014 else
25015   ac_cpp_err=yes
25016 fi
25017 if test -z "$ac_cpp_err"; then
25018   ac_header_preproc=yes
25019 else
25020   echo "$as_me: failed program was:" >&5
25021 sed 's/^/| /' conftest.$ac_ext >&5
25022
25023   ac_header_preproc=no
25024 fi
25025 rm -f conftest.err conftest.$ac_ext
25026 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25027 echo "${ECHO_T}$ac_header_preproc" >&6
25028
25029 # So?  What about this header?
25030 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25031   yes:no: )
25032     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
25033 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25034     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
25035 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
25036     ac_header_preproc=yes
25037     ;;
25038   no:yes:* )
25039     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
25040 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
25041     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
25042 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
25043     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
25044 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
25045     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
25046 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25047     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
25048 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
25049     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
25050 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
25051     (
25052       cat <<\_ASBOX
25053 ## ------------------------------- ##
25054 ## Report this to nfs@lists.sf.net ##
25055 ## ------------------------------- ##
25056 _ASBOX
25057     ) |
25058       sed "s/^/$as_me: WARNING:     /" >&2
25059     ;;
25060 esac
25061 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
25062 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
25063 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
25064   echo $ECHO_N "(cached) $ECHO_C" >&6
25065 else
25066   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
25067 fi
25068 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
25069 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
25070
25071 fi
25072 if test $ac_cv_header_sys_sysmacros_h = yes; then
25073
25074 cat >>confdefs.h <<\_ACEOF
25075 #define MAJOR_IN_SYSMACROS 1
25076 _ACEOF
25077
25078 fi
25079
25080
25081   fi
25082 fi
25083
25084 #AC_FUNC_MALLOC
25085 echo "$as_me:$LINENO: checking for working memcmp" >&5
25086 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
25087 if test "${ac_cv_func_memcmp_working+set}" = set; then
25088   echo $ECHO_N "(cached) $ECHO_C" >&6
25089 else
25090   if test "$cross_compiling" = yes; then
25091   ac_cv_func_memcmp_working=no
25092 else
25093   cat >conftest.$ac_ext <<_ACEOF
25094 /* confdefs.h.  */
25095 _ACEOF
25096 cat confdefs.h >>conftest.$ac_ext
25097 cat >>conftest.$ac_ext <<_ACEOF
25098 /* end confdefs.h.  */
25099 $ac_includes_default
25100 int
25101 main ()
25102 {
25103
25104   /* Some versions of memcmp are not 8-bit clean.  */
25105   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
25106   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25107     exit (1);
25108
25109   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25110      or more and with at least one buffer not starting on a 4-byte boundary.
25111      William Lewis provided this test program.   */
25112   {
25113     char foo[21];
25114     char bar[21];
25115     int i;
25116     for (i = 0; i < 4; i++)
25117       {
25118         char *a = foo + i;
25119         char *b = bar + i;
25120         strcpy (a, "--------01111111");
25121         strcpy (b, "--------10000000");
25122         if (memcmp (a, b, 16) >= 0)
25123           exit (1);
25124       }
25125     exit (0);
25126   }
25127
25128   ;
25129   return 0;
25130 }
25131 _ACEOF
25132 rm -f conftest$ac_exeext
25133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25134   (eval $ac_link) 2>&5
25135   ac_status=$?
25136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25137   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25139   (eval $ac_try) 2>&5
25140   ac_status=$?
25141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25142   (exit $ac_status); }; }; then
25143   ac_cv_func_memcmp_working=yes
25144 else
25145   echo "$as_me: program exited with status $ac_status" >&5
25146 echo "$as_me: failed program was:" >&5
25147 sed 's/^/| /' conftest.$ac_ext >&5
25148
25149 ( exit $ac_status )
25150 ac_cv_func_memcmp_working=no
25151 fi
25152 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25153 fi
25154 fi
25155 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
25156 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
25157 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
25158     "memcmp.$ac_objext"   | \
25159   *" memcmp.$ac_objext"   | \
25160     "memcmp.$ac_objext "* | \
25161   *" memcmp.$ac_objext "* ) ;;
25162   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
25163 esac
25164
25165
25166 #AC_FUNC_REALLOC
25167
25168
25169 for ac_header in sys/select.h sys/socket.h
25170 do
25171 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25172 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25173   echo "$as_me:$LINENO: checking for $ac_header" >&5
25174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25175 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25176   echo $ECHO_N "(cached) $ECHO_C" >&6
25177 fi
25178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25179 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25180 else
25181   # Is the header compilable?
25182 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25183 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25184 cat >conftest.$ac_ext <<_ACEOF
25185 /* confdefs.h.  */
25186 _ACEOF
25187 cat confdefs.h >>conftest.$ac_ext
25188 cat >>conftest.$ac_ext <<_ACEOF
25189 /* end confdefs.h.  */
25190 $ac_includes_default
25191 #include <$ac_header>
25192 _ACEOF
25193 rm -f conftest.$ac_objext
25194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25195   (eval $ac_compile) 2>conftest.er1
25196   ac_status=$?
25197   grep -v '^ *+' conftest.er1 >conftest.err
25198   rm -f conftest.er1
25199   cat conftest.err >&5
25200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25201   (exit $ac_status); } &&
25202          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25204   (eval $ac_try) 2>&5
25205   ac_status=$?
25206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25207   (exit $ac_status); }; } &&
25208          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
25214   ac_header_compiler=yes
25215 else
25216   echo "$as_me: failed program was:" >&5
25217 sed 's/^/| /' conftest.$ac_ext >&5
25218
25219 ac_header_compiler=no
25220 fi
25221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25222 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25223 echo "${ECHO_T}$ac_header_compiler" >&6
25224
25225 # Is the header present?
25226 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25227 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25228 cat >conftest.$ac_ext <<_ACEOF
25229 /* confdefs.h.  */
25230 _ACEOF
25231 cat confdefs.h >>conftest.$ac_ext
25232 cat >>conftest.$ac_ext <<_ACEOF
25233 /* end confdefs.h.  */
25234 #include <$ac_header>
25235 _ACEOF
25236 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25237   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25238   ac_status=$?
25239   grep -v '^ *+' conftest.er1 >conftest.err
25240   rm -f conftest.er1
25241   cat conftest.err >&5
25242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25243   (exit $ac_status); } >/dev/null; then
25244   if test -s conftest.err; then
25245     ac_cpp_err=$ac_c_preproc_warn_flag
25246     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25247   else
25248     ac_cpp_err=
25249   fi
25250 else
25251   ac_cpp_err=yes
25252 fi
25253 if test -z "$ac_cpp_err"; then
25254   ac_header_preproc=yes
25255 else
25256   echo "$as_me: failed program was:" >&5
25257 sed 's/^/| /' conftest.$ac_ext >&5
25258
25259   ac_header_preproc=no
25260 fi
25261 rm -f conftest.err conftest.$ac_ext
25262 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25263 echo "${ECHO_T}$ac_header_preproc" >&6
25264
25265 # So?  What about this header?
25266 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25267   yes:no: )
25268     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25269 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25270     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25271 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25272     ac_header_preproc=yes
25273     ;;
25274   no:yes:* )
25275     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25276 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25277     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25278 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25279     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25280 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25281     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25282 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25283     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25284 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25285     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25286 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25287     (
25288       cat <<\_ASBOX
25289 ## ------------------------------- ##
25290 ## Report this to nfs@lists.sf.net ##
25291 ## ------------------------------- ##
25292 _ASBOX
25293     ) |
25294       sed "s/^/$as_me: WARNING:     /" >&2
25295     ;;
25296 esac
25297 echo "$as_me:$LINENO: checking for $ac_header" >&5
25298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25300   echo $ECHO_N "(cached) $ECHO_C" >&6
25301 else
25302   eval "$as_ac_Header=\$ac_header_preproc"
25303 fi
25304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25305 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25306
25307 fi
25308 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25309   cat >>confdefs.h <<_ACEOF
25310 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25311 _ACEOF
25312
25313 fi
25314
25315 done
25316
25317 echo "$as_me:$LINENO: checking types of arguments for select" >&5
25318 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
25319 if test "${ac_cv_func_select_args+set}" = set; then
25320   echo $ECHO_N "(cached) $ECHO_C" >&6
25321 else
25322   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25323  for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
25324   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
25325    cat >conftest.$ac_ext <<_ACEOF
25326 /* confdefs.h.  */
25327 _ACEOF
25328 cat confdefs.h >>conftest.$ac_ext
25329 cat >>conftest.$ac_ext <<_ACEOF
25330 /* end confdefs.h.  */
25331 $ac_includes_default
25332 #if HAVE_SYS_SELECT_H
25333 # include <sys/select.h>
25334 #endif
25335 #if HAVE_SYS_SOCKET_H
25336 # include <sys/socket.h>
25337 #endif
25338
25339 int
25340 main ()
25341 {
25342 extern int select ($ac_arg1,
25343                                             $ac_arg234, $ac_arg234, $ac_arg234,
25344                                             $ac_arg5);
25345   ;
25346   return 0;
25347 }
25348 _ACEOF
25349 rm -f conftest.$ac_objext
25350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25351   (eval $ac_compile) 2>conftest.er1
25352   ac_status=$?
25353   grep -v '^ *+' conftest.er1 >conftest.err
25354   rm -f conftest.er1
25355   cat conftest.err >&5
25356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25357   (exit $ac_status); } &&
25358          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25360   (eval $ac_try) 2>&5
25361   ac_status=$?
25362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25363   (exit $ac_status); }; } &&
25364          { ac_try='test -s conftest.$ac_objext'
25365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25366   (eval $ac_try) 2>&5
25367   ac_status=$?
25368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25369   (exit $ac_status); }; }; then
25370   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
25371 else
25372   echo "$as_me: failed program was:" >&5
25373 sed 's/^/| /' conftest.$ac_ext >&5
25374
25375 fi
25376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25377   done
25378  done
25379 done
25380 # Provide a safe default value.
25381 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
25382
25383 fi
25384 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
25385 echo "${ECHO_T}$ac_cv_func_select_args" >&6
25386 ac_save_IFS=$IFS; IFS=','
25387 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25388 IFS=$ac_save_IFS
25389 shift
25390
25391 cat >>confdefs.h <<_ACEOF
25392 #define SELECT_TYPE_ARG1 $1
25393 _ACEOF
25394
25395
25396 cat >>confdefs.h <<_ACEOF
25397 #define SELECT_TYPE_ARG234 ($2)
25398 _ACEOF
25399
25400
25401 cat >>confdefs.h <<_ACEOF
25402 #define SELECT_TYPE_ARG5 ($3)
25403 _ACEOF
25404
25405 rm -f conftest*
25406
25407 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
25408 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
25409 if test "${ac_cv_type_signal+set}" = set; then
25410   echo $ECHO_N "(cached) $ECHO_C" >&6
25411 else
25412   cat >conftest.$ac_ext <<_ACEOF
25413 /* confdefs.h.  */
25414 _ACEOF
25415 cat confdefs.h >>conftest.$ac_ext
25416 cat >>conftest.$ac_ext <<_ACEOF
25417 /* end confdefs.h.  */
25418 #include <sys/types.h>
25419 #include <signal.h>
25420 #ifdef signal
25421 # undef signal
25422 #endif
25423 #ifdef __cplusplus
25424 extern "C" void (*signal (int, void (*)(int)))(int);
25425 #else
25426 void (*signal ()) ();
25427 #endif
25428
25429 int
25430 main ()
25431 {
25432 int i;
25433   ;
25434   return 0;
25435 }
25436 _ACEOF
25437 rm -f conftest.$ac_objext
25438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25439   (eval $ac_compile) 2>conftest.er1
25440   ac_status=$?
25441   grep -v '^ *+' conftest.er1 >conftest.err
25442   rm -f conftest.er1
25443   cat conftest.err >&5
25444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25445   (exit $ac_status); } &&
25446          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25448   (eval $ac_try) 2>&5
25449   ac_status=$?
25450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25451   (exit $ac_status); }; } &&
25452          { ac_try='test -s conftest.$ac_objext'
25453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25454   (eval $ac_try) 2>&5
25455   ac_status=$?
25456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25457   (exit $ac_status); }; }; then
25458   ac_cv_type_signal=void
25459 else
25460   echo "$as_me: failed program was:" >&5
25461 sed 's/^/| /' conftest.$ac_ext >&5
25462
25463 ac_cv_type_signal=int
25464 fi
25465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25466 fi
25467 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
25468 echo "${ECHO_T}$ac_cv_type_signal" >&6
25469
25470 cat >>confdefs.h <<_ACEOF
25471 #define RETSIGTYPE $ac_cv_type_signal
25472 _ACEOF
25473
25474
25475 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
25476 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
25477 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
25478   echo $ECHO_N "(cached) $ECHO_C" >&6
25479 else
25480   if test "$cross_compiling" = yes; then
25481   ac_cv_func_stat_empty_string_bug=yes
25482 else
25483   cat >conftest.$ac_ext <<_ACEOF
25484 /* confdefs.h.  */
25485 _ACEOF
25486 cat confdefs.h >>conftest.$ac_ext
25487 cat >>conftest.$ac_ext <<_ACEOF
25488 /* end confdefs.h.  */
25489 $ac_includes_default
25490 int
25491 main ()
25492 {
25493 struct stat sbuf;
25494   exit (stat ("", &sbuf) ? 1 : 0);
25495   ;
25496   return 0;
25497 }
25498 _ACEOF
25499 rm -f conftest$ac_exeext
25500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25501   (eval $ac_link) 2>&5
25502   ac_status=$?
25503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25504   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25506   (eval $ac_try) 2>&5
25507   ac_status=$?
25508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25509   (exit $ac_status); }; }; then
25510   ac_cv_func_stat_empty_string_bug=yes
25511 else
25512   echo "$as_me: program exited with status $ac_status" >&5
25513 echo "$as_me: failed program was:" >&5
25514 sed 's/^/| /' conftest.$ac_ext >&5
25515
25516 ( exit $ac_status )
25517 ac_cv_func_stat_empty_string_bug=no
25518 fi
25519 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25520 fi
25521 fi
25522 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
25523 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
25524 if test $ac_cv_func_stat_empty_string_bug = yes; then
25525   case $LIBOBJS in
25526     "stat.$ac_objext"   | \
25527   *" stat.$ac_objext"   | \
25528     "stat.$ac_objext "* | \
25529   *" stat.$ac_objext "* ) ;;
25530   *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
25531 esac
25532
25533
25534 cat >>confdefs.h <<_ACEOF
25535 #define HAVE_STAT_EMPTY_STRING_BUG 1
25536 _ACEOF
25537
25538 fi
25539
25540
25541 for ac_func in vprintf
25542 do
25543 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25544 echo "$as_me:$LINENO: checking for $ac_func" >&5
25545 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25546 if eval "test \"\${$as_ac_var+set}\" = set"; then
25547   echo $ECHO_N "(cached) $ECHO_C" >&6
25548 else
25549   cat >conftest.$ac_ext <<_ACEOF
25550 /* confdefs.h.  */
25551 _ACEOF
25552 cat confdefs.h >>conftest.$ac_ext
25553 cat >>conftest.$ac_ext <<_ACEOF
25554 /* end confdefs.h.  */
25555 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25556    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25557 #define $ac_func innocuous_$ac_func
25558
25559 /* System header to define __stub macros and hopefully few prototypes,
25560     which can conflict with char $ac_func (); below.
25561     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25562     <limits.h> exists even on freestanding compilers.  */
25563
25564 #ifdef __STDC__
25565 # include <limits.h>
25566 #else
25567 # include <assert.h>
25568 #endif
25569
25570 #undef $ac_func
25571
25572 /* Override any gcc2 internal prototype to avoid an error.  */
25573 #ifdef __cplusplus
25574 extern "C"
25575 {
25576 #endif
25577 /* We use char because int might match the return type of a gcc2
25578    builtin and then its argument prototype would still apply.  */
25579 char $ac_func ();
25580 /* The GNU C library defines this for functions which it implements
25581     to always fail with ENOSYS.  Some functions are actually named
25582     something starting with __ and the normal name is an alias.  */
25583 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25584 choke me
25585 #else
25586 char (*f) () = $ac_func;
25587 #endif
25588 #ifdef __cplusplus
25589 }
25590 #endif
25591
25592 int
25593 main ()
25594 {
25595 return f != $ac_func;
25596   ;
25597   return 0;
25598 }
25599 _ACEOF
25600 rm -f conftest.$ac_objext conftest$ac_exeext
25601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25602   (eval $ac_link) 2>conftest.er1
25603   ac_status=$?
25604   grep -v '^ *+' conftest.er1 >conftest.err
25605   rm -f conftest.er1
25606   cat conftest.err >&5
25607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25608   (exit $ac_status); } &&
25609          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25611   (eval $ac_try) 2>&5
25612   ac_status=$?
25613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25614   (exit $ac_status); }; } &&
25615          { ac_try='test -s conftest$ac_exeext'
25616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25617   (eval $ac_try) 2>&5
25618   ac_status=$?
25619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25620   (exit $ac_status); }; }; then
25621   eval "$as_ac_var=yes"
25622 else
25623   echo "$as_me: failed program was:" >&5
25624 sed 's/^/| /' conftest.$ac_ext >&5
25625
25626 eval "$as_ac_var=no"
25627 fi
25628 rm -f conftest.err conftest.$ac_objext \
25629       conftest$ac_exeext conftest.$ac_ext
25630 fi
25631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25632 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25633 if test `eval echo '${'$as_ac_var'}'` = yes; then
25634   cat >>confdefs.h <<_ACEOF
25635 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25636 _ACEOF
25637
25638 echo "$as_me:$LINENO: checking for _doprnt" >&5
25639 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
25640 if test "${ac_cv_func__doprnt+set}" = set; then
25641   echo $ECHO_N "(cached) $ECHO_C" >&6
25642 else
25643   cat >conftest.$ac_ext <<_ACEOF
25644 /* confdefs.h.  */
25645 _ACEOF
25646 cat confdefs.h >>conftest.$ac_ext
25647 cat >>conftest.$ac_ext <<_ACEOF
25648 /* end confdefs.h.  */
25649 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
25650    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25651 #define _doprnt innocuous__doprnt
25652
25653 /* System header to define __stub macros and hopefully few prototypes,
25654     which can conflict with char _doprnt (); below.
25655     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25656     <limits.h> exists even on freestanding compilers.  */
25657
25658 #ifdef __STDC__
25659 # include <limits.h>
25660 #else
25661 # include <assert.h>
25662 #endif
25663
25664 #undef _doprnt
25665
25666 /* Override any gcc2 internal prototype to avoid an error.  */
25667 #ifdef __cplusplus
25668 extern "C"
25669 {
25670 #endif
25671 /* We use char because int might match the return type of a gcc2
25672    builtin and then its argument prototype would still apply.  */
25673 char _doprnt ();
25674 /* The GNU C library defines this for functions which it implements
25675     to always fail with ENOSYS.  Some functions are actually named
25676     something starting with __ and the normal name is an alias.  */
25677 #if defined (__stub__doprnt) || defined (__stub____doprnt)
25678 choke me
25679 #else
25680 char (*f) () = _doprnt;
25681 #endif
25682 #ifdef __cplusplus
25683 }
25684 #endif
25685
25686 int
25687 main ()
25688 {
25689 return f != _doprnt;
25690   ;
25691   return 0;
25692 }
25693 _ACEOF
25694 rm -f conftest.$ac_objext conftest$ac_exeext
25695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25696   (eval $ac_link) 2>conftest.er1
25697   ac_status=$?
25698   grep -v '^ *+' conftest.er1 >conftest.err
25699   rm -f conftest.er1
25700   cat conftest.err >&5
25701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25702   (exit $ac_status); } &&
25703          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25705   (eval $ac_try) 2>&5
25706   ac_status=$?
25707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25708   (exit $ac_status); }; } &&
25709          { ac_try='test -s conftest$ac_exeext'
25710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25711   (eval $ac_try) 2>&5
25712   ac_status=$?
25713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25714   (exit $ac_status); }; }; then
25715   ac_cv_func__doprnt=yes
25716 else
25717   echo "$as_me: failed program was:" >&5
25718 sed 's/^/| /' conftest.$ac_ext >&5
25719
25720 ac_cv_func__doprnt=no
25721 fi
25722 rm -f conftest.err conftest.$ac_objext \
25723       conftest$ac_exeext conftest.$ac_ext
25724 fi
25725 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
25726 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
25727 if test $ac_cv_func__doprnt = yes; then
25728
25729 cat >>confdefs.h <<\_ACEOF
25730 #define HAVE_DOPRNT 1
25731 _ACEOF
25732
25733 fi
25734
25735 fi
25736 done
25737
25738
25739
25740
25741
25742
25743
25744
25745
25746
25747
25748
25749
25750
25751
25752
25753
25754
25755
25756
25757
25758
25759
25760
25761
25762
25763
25764
25765
25766 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
25767                gethostbyaddr gethostbyname gethostname getmntent \
25768                gettimeofday hasmntopt inet_ntoa memset mkdir pathconf \
25769                realpath rmdir select socket strcasecmp strchr strdup \
25770                strerror strrchr strtol strtoul
25771 do
25772 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25773 echo "$as_me:$LINENO: checking for $ac_func" >&5
25774 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25775 if eval "test \"\${$as_ac_var+set}\" = set"; then
25776   echo $ECHO_N "(cached) $ECHO_C" >&6
25777 else
25778   cat >conftest.$ac_ext <<_ACEOF
25779 /* confdefs.h.  */
25780 _ACEOF
25781 cat confdefs.h >>conftest.$ac_ext
25782 cat >>conftest.$ac_ext <<_ACEOF
25783 /* end confdefs.h.  */
25784 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25785    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25786 #define $ac_func innocuous_$ac_func
25787
25788 /* System header to define __stub macros and hopefully few prototypes,
25789     which can conflict with char $ac_func (); below.
25790     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25791     <limits.h> exists even on freestanding compilers.  */
25792
25793 #ifdef __STDC__
25794 # include <limits.h>
25795 #else
25796 # include <assert.h>
25797 #endif
25798
25799 #undef $ac_func
25800
25801 /* Override any gcc2 internal prototype to avoid an error.  */
25802 #ifdef __cplusplus
25803 extern "C"
25804 {
25805 #endif
25806 /* We use char because int might match the return type of a gcc2
25807    builtin and then its argument prototype would still apply.  */
25808 char $ac_func ();
25809 /* The GNU C library defines this for functions which it implements
25810     to always fail with ENOSYS.  Some functions are actually named
25811     something starting with __ and the normal name is an alias.  */
25812 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25813 choke me
25814 #else
25815 char (*f) () = $ac_func;
25816 #endif
25817 #ifdef __cplusplus
25818 }
25819 #endif
25820
25821 int
25822 main ()
25823 {
25824 return f != $ac_func;
25825   ;
25826   return 0;
25827 }
25828 _ACEOF
25829 rm -f conftest.$ac_objext conftest$ac_exeext
25830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25831   (eval $ac_link) 2>conftest.er1
25832   ac_status=$?
25833   grep -v '^ *+' conftest.er1 >conftest.err
25834   rm -f conftest.er1
25835   cat conftest.err >&5
25836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25837   (exit $ac_status); } &&
25838          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25840   (eval $ac_try) 2>&5
25841   ac_status=$?
25842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25843   (exit $ac_status); }; } &&
25844          { ac_try='test -s conftest$ac_exeext'
25845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25846   (eval $ac_try) 2>&5
25847   ac_status=$?
25848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25849   (exit $ac_status); }; }; then
25850   eval "$as_ac_var=yes"
25851 else
25852   echo "$as_me: failed program was:" >&5
25853 sed 's/^/| /' conftest.$ac_ext >&5
25854
25855 eval "$as_ac_var=no"
25856 fi
25857 rm -f conftest.err conftest.$ac_objext \
25858       conftest$ac_exeext conftest.$ac_ext
25859 fi
25860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25861 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25862 if test `eval echo '${'$as_ac_var'}'` = yes; then
25863   cat >>confdefs.h <<_ACEOF
25864 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25865 _ACEOF
25866
25867 fi
25868 done
25869
25870
25871
25872 echo "$as_me:$LINENO: checking for short" >&5
25873 echo $ECHO_N "checking for short... $ECHO_C" >&6
25874 if test "${ac_cv_type_short+set}" = set; then
25875   echo $ECHO_N "(cached) $ECHO_C" >&6
25876 else
25877   cat >conftest.$ac_ext <<_ACEOF
25878 /* confdefs.h.  */
25879 _ACEOF
25880 cat confdefs.h >>conftest.$ac_ext
25881 cat >>conftest.$ac_ext <<_ACEOF
25882 /* end confdefs.h.  */
25883 $ac_includes_default
25884 int
25885 main ()
25886 {
25887 if ((short *) 0)
25888   return 0;
25889 if (sizeof (short))
25890   return 0;
25891   ;
25892   return 0;
25893 }
25894 _ACEOF
25895 rm -f conftest.$ac_objext
25896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25897   (eval $ac_compile) 2>conftest.er1
25898   ac_status=$?
25899   grep -v '^ *+' conftest.er1 >conftest.err
25900   rm -f conftest.er1
25901   cat conftest.err >&5
25902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25903   (exit $ac_status); } &&
25904          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25906   (eval $ac_try) 2>&5
25907   ac_status=$?
25908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25909   (exit $ac_status); }; } &&
25910          { ac_try='test -s conftest.$ac_objext'
25911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25912   (eval $ac_try) 2>&5
25913   ac_status=$?
25914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25915   (exit $ac_status); }; }; then
25916   ac_cv_type_short=yes
25917 else
25918   echo "$as_me: failed program was:" >&5
25919 sed 's/^/| /' conftest.$ac_ext >&5
25920
25921 ac_cv_type_short=no
25922 fi
25923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25924 fi
25925 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
25926 echo "${ECHO_T}$ac_cv_type_short" >&6
25927
25928 echo "$as_me:$LINENO: checking size of short" >&5
25929 echo $ECHO_N "checking size of short... $ECHO_C" >&6
25930 if test "${ac_cv_sizeof_short+set}" = set; then
25931   echo $ECHO_N "(cached) $ECHO_C" >&6
25932 else
25933   if test "$ac_cv_type_short" = yes; then
25934   # The cast to unsigned long works around a bug in the HP C Compiler
25935   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25936   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25937   # This bug is HP SR number 8606223364.
25938   if test "$cross_compiling" = yes; then
25939   # Depending upon the size, compute the lo and hi bounds.
25940 cat >conftest.$ac_ext <<_ACEOF
25941 /* confdefs.h.  */
25942 _ACEOF
25943 cat confdefs.h >>conftest.$ac_ext
25944 cat >>conftest.$ac_ext <<_ACEOF
25945 /* end confdefs.h.  */
25946 $ac_includes_default
25947 int
25948 main ()
25949 {
25950 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
25951 test_array [0] = 0
25952
25953   ;
25954   return 0;
25955 }
25956 _ACEOF
25957 rm -f conftest.$ac_objext
25958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25959   (eval $ac_compile) 2>conftest.er1
25960   ac_status=$?
25961   grep -v '^ *+' conftest.er1 >conftest.err
25962   rm -f conftest.er1
25963   cat conftest.err >&5
25964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25965   (exit $ac_status); } &&
25966          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25968   (eval $ac_try) 2>&5
25969   ac_status=$?
25970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25971   (exit $ac_status); }; } &&
25972          { ac_try='test -s conftest.$ac_objext'
25973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25974   (eval $ac_try) 2>&5
25975   ac_status=$?
25976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25977   (exit $ac_status); }; }; then
25978   ac_lo=0 ac_mid=0
25979   while :; do
25980     cat >conftest.$ac_ext <<_ACEOF
25981 /* confdefs.h.  */
25982 _ACEOF
25983 cat confdefs.h >>conftest.$ac_ext
25984 cat >>conftest.$ac_ext <<_ACEOF
25985 /* end confdefs.h.  */
25986 $ac_includes_default
25987 int
25988 main ()
25989 {
25990 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
25991 test_array [0] = 0
25992
25993   ;
25994   return 0;
25995 }
25996 _ACEOF
25997 rm -f conftest.$ac_objext
25998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25999   (eval $ac_compile) 2>conftest.er1
26000   ac_status=$?
26001   grep -v '^ *+' conftest.er1 >conftest.err
26002   rm -f conftest.er1
26003   cat conftest.err >&5
26004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26005   (exit $ac_status); } &&
26006          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26008   (eval $ac_try) 2>&5
26009   ac_status=$?
26010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26011   (exit $ac_status); }; } &&
26012          { ac_try='test -s conftest.$ac_objext'
26013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26014   (eval $ac_try) 2>&5
26015   ac_status=$?
26016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26017   (exit $ac_status); }; }; then
26018   ac_hi=$ac_mid; break
26019 else
26020   echo "$as_me: failed program was:" >&5
26021 sed 's/^/| /' conftest.$ac_ext >&5
26022
26023 ac_lo=`expr $ac_mid + 1`
26024                     if test $ac_lo -le $ac_mid; then
26025                       ac_lo= ac_hi=
26026                       break
26027                     fi
26028                     ac_mid=`expr 2 '*' $ac_mid + 1`
26029 fi
26030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26031   done
26032 else
26033   echo "$as_me: failed program was:" >&5
26034 sed 's/^/| /' conftest.$ac_ext >&5
26035
26036 cat >conftest.$ac_ext <<_ACEOF
26037 /* confdefs.h.  */
26038 _ACEOF
26039 cat confdefs.h >>conftest.$ac_ext
26040 cat >>conftest.$ac_ext <<_ACEOF
26041 /* end confdefs.h.  */
26042 $ac_includes_default
26043 int
26044 main ()
26045 {
26046 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
26047 test_array [0] = 0
26048
26049   ;
26050   return 0;
26051 }
26052 _ACEOF
26053 rm -f conftest.$ac_objext
26054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26055   (eval $ac_compile) 2>conftest.er1
26056   ac_status=$?
26057   grep -v '^ *+' conftest.er1 >conftest.err
26058   rm -f conftest.er1
26059   cat conftest.err >&5
26060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26061   (exit $ac_status); } &&
26062          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26064   (eval $ac_try) 2>&5
26065   ac_status=$?
26066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26067   (exit $ac_status); }; } &&
26068          { ac_try='test -s conftest.$ac_objext'
26069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26070   (eval $ac_try) 2>&5
26071   ac_status=$?
26072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26073   (exit $ac_status); }; }; then
26074   ac_hi=-1 ac_mid=-1
26075   while :; do
26076     cat >conftest.$ac_ext <<_ACEOF
26077 /* confdefs.h.  */
26078 _ACEOF
26079 cat confdefs.h >>conftest.$ac_ext
26080 cat >>conftest.$ac_ext <<_ACEOF
26081 /* end confdefs.h.  */
26082 $ac_includes_default
26083 int
26084 main ()
26085 {
26086 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
26087 test_array [0] = 0
26088
26089   ;
26090   return 0;
26091 }
26092 _ACEOF
26093 rm -f conftest.$ac_objext
26094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26095   (eval $ac_compile) 2>conftest.er1
26096   ac_status=$?
26097   grep -v '^ *+' conftest.er1 >conftest.err
26098   rm -f conftest.er1
26099   cat conftest.err >&5
26100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26101   (exit $ac_status); } &&
26102          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26104   (eval $ac_try) 2>&5
26105   ac_status=$?
26106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26107   (exit $ac_status); }; } &&
26108          { ac_try='test -s conftest.$ac_objext'
26109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26110   (eval $ac_try) 2>&5
26111   ac_status=$?
26112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26113   (exit $ac_status); }; }; then
26114   ac_lo=$ac_mid; break
26115 else
26116   echo "$as_me: failed program was:" >&5
26117 sed 's/^/| /' conftest.$ac_ext >&5
26118
26119 ac_hi=`expr '(' $ac_mid ')' - 1`
26120                        if test $ac_mid -le $ac_hi; then
26121                          ac_lo= ac_hi=
26122                          break
26123                        fi
26124                        ac_mid=`expr 2 '*' $ac_mid`
26125 fi
26126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26127   done
26128 else
26129   echo "$as_me: failed program was:" >&5
26130 sed 's/^/| /' conftest.$ac_ext >&5
26131
26132 ac_lo= ac_hi=
26133 fi
26134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26135 fi
26136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26137 # Binary search between lo and hi bounds.
26138 while test "x$ac_lo" != "x$ac_hi"; do
26139   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26140   cat >conftest.$ac_ext <<_ACEOF
26141 /* confdefs.h.  */
26142 _ACEOF
26143 cat confdefs.h >>conftest.$ac_ext
26144 cat >>conftest.$ac_ext <<_ACEOF
26145 /* end confdefs.h.  */
26146 $ac_includes_default
26147 int
26148 main ()
26149 {
26150 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
26151 test_array [0] = 0
26152
26153   ;
26154   return 0;
26155 }
26156 _ACEOF
26157 rm -f conftest.$ac_objext
26158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26159   (eval $ac_compile) 2>conftest.er1
26160   ac_status=$?
26161   grep -v '^ *+' conftest.er1 >conftest.err
26162   rm -f conftest.er1
26163   cat conftest.err >&5
26164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26165   (exit $ac_status); } &&
26166          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26168   (eval $ac_try) 2>&5
26169   ac_status=$?
26170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26171   (exit $ac_status); }; } &&
26172          { ac_try='test -s conftest.$ac_objext'
26173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26174   (eval $ac_try) 2>&5
26175   ac_status=$?
26176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26177   (exit $ac_status); }; }; then
26178   ac_hi=$ac_mid
26179 else
26180   echo "$as_me: failed program was:" >&5
26181 sed 's/^/| /' conftest.$ac_ext >&5
26182
26183 ac_lo=`expr '(' $ac_mid ')' + 1`
26184 fi
26185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26186 done
26187 case $ac_lo in
26188 ?*) ac_cv_sizeof_short=$ac_lo;;
26189 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
26190 See \`config.log' for more details." >&5
26191 echo "$as_me: error: cannot compute sizeof (short), 77
26192 See \`config.log' for more details." >&2;}
26193    { (exit 1); exit 1; }; } ;;
26194 esac
26195 else
26196   if test "$cross_compiling" = yes; then
26197   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
26198 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
26199    { (exit 1); exit 1; }; }
26200 else
26201   cat >conftest.$ac_ext <<_ACEOF
26202 /* confdefs.h.  */
26203 _ACEOF
26204 cat confdefs.h >>conftest.$ac_ext
26205 cat >>conftest.$ac_ext <<_ACEOF
26206 /* end confdefs.h.  */
26207 $ac_includes_default
26208 long longval () { return (long) (sizeof (short)); }
26209 unsigned long ulongval () { return (long) (sizeof (short)); }
26210 #include <stdio.h>
26211 #include <stdlib.h>
26212 int
26213 main ()
26214 {
26215
26216   FILE *f = fopen ("conftest.val", "w");
26217   if (! f)
26218     exit (1);
26219   if (((long) (sizeof (short))) < 0)
26220     {
26221       long i = longval ();
26222       if (i != ((long) (sizeof (short))))
26223         exit (1);
26224       fprintf (f, "%ld\n", i);
26225     }
26226   else
26227     {
26228       unsigned long i = ulongval ();
26229       if (i != ((long) (sizeof (short))))
26230         exit (1);
26231       fprintf (f, "%lu\n", i);
26232     }
26233   exit (ferror (f) || fclose (f) != 0);
26234
26235   ;
26236   return 0;
26237 }
26238 _ACEOF
26239 rm -f conftest$ac_exeext
26240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26241   (eval $ac_link) 2>&5
26242   ac_status=$?
26243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26244   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26246   (eval $ac_try) 2>&5
26247   ac_status=$?
26248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26249   (exit $ac_status); }; }; then
26250   ac_cv_sizeof_short=`cat conftest.val`
26251 else
26252   echo "$as_me: program exited with status $ac_status" >&5
26253 echo "$as_me: failed program was:" >&5
26254 sed 's/^/| /' conftest.$ac_ext >&5
26255
26256 ( exit $ac_status )
26257 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
26258 See \`config.log' for more details." >&5
26259 echo "$as_me: error: cannot compute sizeof (short), 77
26260 See \`config.log' for more details." >&2;}
26261    { (exit 1); exit 1; }; }
26262 fi
26263 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26264 fi
26265 fi
26266 rm -f conftest.val
26267 else
26268   ac_cv_sizeof_short=0
26269 fi
26270 fi
26271 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
26272 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
26273 cat >>confdefs.h <<_ACEOF
26274 #define SIZEOF_SHORT $ac_cv_sizeof_short
26275 _ACEOF
26276
26277
26278 echo "$as_me:$LINENO: checking for int" >&5
26279 echo $ECHO_N "checking for int... $ECHO_C" >&6
26280 if test "${ac_cv_type_int+set}" = set; then
26281   echo $ECHO_N "(cached) $ECHO_C" >&6
26282 else
26283   cat >conftest.$ac_ext <<_ACEOF
26284 /* confdefs.h.  */
26285 _ACEOF
26286 cat confdefs.h >>conftest.$ac_ext
26287 cat >>conftest.$ac_ext <<_ACEOF
26288 /* end confdefs.h.  */
26289 $ac_includes_default
26290 int
26291 main ()
26292 {
26293 if ((int *) 0)
26294   return 0;
26295 if (sizeof (int))
26296   return 0;
26297   ;
26298   return 0;
26299 }
26300 _ACEOF
26301 rm -f conftest.$ac_objext
26302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26303   (eval $ac_compile) 2>conftest.er1
26304   ac_status=$?
26305   grep -v '^ *+' conftest.er1 >conftest.err
26306   rm -f conftest.er1
26307   cat conftest.err >&5
26308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26309   (exit $ac_status); } &&
26310          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26312   (eval $ac_try) 2>&5
26313   ac_status=$?
26314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26315   (exit $ac_status); }; } &&
26316          { ac_try='test -s conftest.$ac_objext'
26317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26318   (eval $ac_try) 2>&5
26319   ac_status=$?
26320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26321   (exit $ac_status); }; }; then
26322   ac_cv_type_int=yes
26323 else
26324   echo "$as_me: failed program was:" >&5
26325 sed 's/^/| /' conftest.$ac_ext >&5
26326
26327 ac_cv_type_int=no
26328 fi
26329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26330 fi
26331 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
26332 echo "${ECHO_T}$ac_cv_type_int" >&6
26333
26334 echo "$as_me:$LINENO: checking size of int" >&5
26335 echo $ECHO_N "checking size of int... $ECHO_C" >&6
26336 if test "${ac_cv_sizeof_int+set}" = set; then
26337   echo $ECHO_N "(cached) $ECHO_C" >&6
26338 else
26339   if test "$ac_cv_type_int" = yes; then
26340   # The cast to unsigned long works around a bug in the HP C Compiler
26341   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26342   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26343   # This bug is HP SR number 8606223364.
26344   if test "$cross_compiling" = yes; then
26345   # Depending upon the size, compute the lo and hi bounds.
26346 cat >conftest.$ac_ext <<_ACEOF
26347 /* confdefs.h.  */
26348 _ACEOF
26349 cat confdefs.h >>conftest.$ac_ext
26350 cat >>conftest.$ac_ext <<_ACEOF
26351 /* end confdefs.h.  */
26352 $ac_includes_default
26353 int
26354 main ()
26355 {
26356 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
26357 test_array [0] = 0
26358
26359   ;
26360   return 0;
26361 }
26362 _ACEOF
26363 rm -f conftest.$ac_objext
26364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26365   (eval $ac_compile) 2>conftest.er1
26366   ac_status=$?
26367   grep -v '^ *+' conftest.er1 >conftest.err
26368   rm -f conftest.er1
26369   cat conftest.err >&5
26370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26371   (exit $ac_status); } &&
26372          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26374   (eval $ac_try) 2>&5
26375   ac_status=$?
26376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26377   (exit $ac_status); }; } &&
26378          { ac_try='test -s conftest.$ac_objext'
26379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26380   (eval $ac_try) 2>&5
26381   ac_status=$?
26382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26383   (exit $ac_status); }; }; then
26384   ac_lo=0 ac_mid=0
26385   while :; do
26386     cat >conftest.$ac_ext <<_ACEOF
26387 /* confdefs.h.  */
26388 _ACEOF
26389 cat confdefs.h >>conftest.$ac_ext
26390 cat >>conftest.$ac_ext <<_ACEOF
26391 /* end confdefs.h.  */
26392 $ac_includes_default
26393 int
26394 main ()
26395 {
26396 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
26397 test_array [0] = 0
26398
26399   ;
26400   return 0;
26401 }
26402 _ACEOF
26403 rm -f conftest.$ac_objext
26404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26405   (eval $ac_compile) 2>conftest.er1
26406   ac_status=$?
26407   grep -v '^ *+' conftest.er1 >conftest.err
26408   rm -f conftest.er1
26409   cat conftest.err >&5
26410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26411   (exit $ac_status); } &&
26412          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26414   (eval $ac_try) 2>&5
26415   ac_status=$?
26416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26417   (exit $ac_status); }; } &&
26418          { ac_try='test -s conftest.$ac_objext'
26419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26420   (eval $ac_try) 2>&5
26421   ac_status=$?
26422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26423   (exit $ac_status); }; }; then
26424   ac_hi=$ac_mid; break
26425 else
26426   echo "$as_me: failed program was:" >&5
26427 sed 's/^/| /' conftest.$ac_ext >&5
26428
26429 ac_lo=`expr $ac_mid + 1`
26430                     if test $ac_lo -le $ac_mid; then
26431                       ac_lo= ac_hi=
26432                       break
26433                     fi
26434                     ac_mid=`expr 2 '*' $ac_mid + 1`
26435 fi
26436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26437   done
26438 else
26439   echo "$as_me: failed program was:" >&5
26440 sed 's/^/| /' conftest.$ac_ext >&5
26441
26442 cat >conftest.$ac_ext <<_ACEOF
26443 /* confdefs.h.  */
26444 _ACEOF
26445 cat confdefs.h >>conftest.$ac_ext
26446 cat >>conftest.$ac_ext <<_ACEOF
26447 /* end confdefs.h.  */
26448 $ac_includes_default
26449 int
26450 main ()
26451 {
26452 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
26453 test_array [0] = 0
26454
26455   ;
26456   return 0;
26457 }
26458 _ACEOF
26459 rm -f conftest.$ac_objext
26460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26461   (eval $ac_compile) 2>conftest.er1
26462   ac_status=$?
26463   grep -v '^ *+' conftest.er1 >conftest.err
26464   rm -f conftest.er1
26465   cat conftest.err >&5
26466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26467   (exit $ac_status); } &&
26468          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26470   (eval $ac_try) 2>&5
26471   ac_status=$?
26472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26473   (exit $ac_status); }; } &&
26474          { ac_try='test -s conftest.$ac_objext'
26475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26476   (eval $ac_try) 2>&5
26477   ac_status=$?
26478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26479   (exit $ac_status); }; }; then
26480   ac_hi=-1 ac_mid=-1
26481   while :; do
26482     cat >conftest.$ac_ext <<_ACEOF
26483 /* confdefs.h.  */
26484 _ACEOF
26485 cat confdefs.h >>conftest.$ac_ext
26486 cat >>conftest.$ac_ext <<_ACEOF
26487 /* end confdefs.h.  */
26488 $ac_includes_default
26489 int
26490 main ()
26491 {
26492 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
26493 test_array [0] = 0
26494
26495   ;
26496   return 0;
26497 }
26498 _ACEOF
26499 rm -f conftest.$ac_objext
26500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26501   (eval $ac_compile) 2>conftest.er1
26502   ac_status=$?
26503   grep -v '^ *+' conftest.er1 >conftest.err
26504   rm -f conftest.er1
26505   cat conftest.err >&5
26506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26507   (exit $ac_status); } &&
26508          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26510   (eval $ac_try) 2>&5
26511   ac_status=$?
26512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26513   (exit $ac_status); }; } &&
26514          { ac_try='test -s conftest.$ac_objext'
26515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26516   (eval $ac_try) 2>&5
26517   ac_status=$?
26518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26519   (exit $ac_status); }; }; then
26520   ac_lo=$ac_mid; break
26521 else
26522   echo "$as_me: failed program was:" >&5
26523 sed 's/^/| /' conftest.$ac_ext >&5
26524
26525 ac_hi=`expr '(' $ac_mid ')' - 1`
26526                        if test $ac_mid -le $ac_hi; then
26527                          ac_lo= ac_hi=
26528                          break
26529                        fi
26530                        ac_mid=`expr 2 '*' $ac_mid`
26531 fi
26532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26533   done
26534 else
26535   echo "$as_me: failed program was:" >&5
26536 sed 's/^/| /' conftest.$ac_ext >&5
26537
26538 ac_lo= ac_hi=
26539 fi
26540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26541 fi
26542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26543 # Binary search between lo and hi bounds.
26544 while test "x$ac_lo" != "x$ac_hi"; do
26545   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26546   cat >conftest.$ac_ext <<_ACEOF
26547 /* confdefs.h.  */
26548 _ACEOF
26549 cat confdefs.h >>conftest.$ac_ext
26550 cat >>conftest.$ac_ext <<_ACEOF
26551 /* end confdefs.h.  */
26552 $ac_includes_default
26553 int
26554 main ()
26555 {
26556 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
26557 test_array [0] = 0
26558
26559   ;
26560   return 0;
26561 }
26562 _ACEOF
26563 rm -f conftest.$ac_objext
26564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26565   (eval $ac_compile) 2>conftest.er1
26566   ac_status=$?
26567   grep -v '^ *+' conftest.er1 >conftest.err
26568   rm -f conftest.er1
26569   cat conftest.err >&5
26570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26571   (exit $ac_status); } &&
26572          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26574   (eval $ac_try) 2>&5
26575   ac_status=$?
26576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26577   (exit $ac_status); }; } &&
26578          { ac_try='test -s conftest.$ac_objext'
26579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26580   (eval $ac_try) 2>&5
26581   ac_status=$?
26582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26583   (exit $ac_status); }; }; then
26584   ac_hi=$ac_mid
26585 else
26586   echo "$as_me: failed program was:" >&5
26587 sed 's/^/| /' conftest.$ac_ext >&5
26588
26589 ac_lo=`expr '(' $ac_mid ')' + 1`
26590 fi
26591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26592 done
26593 case $ac_lo in
26594 ?*) ac_cv_sizeof_int=$ac_lo;;
26595 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
26596 See \`config.log' for more details." >&5
26597 echo "$as_me: error: cannot compute sizeof (int), 77
26598 See \`config.log' for more details." >&2;}
26599    { (exit 1); exit 1; }; } ;;
26600 esac
26601 else
26602   if test "$cross_compiling" = yes; then
26603   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
26604 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
26605    { (exit 1); exit 1; }; }
26606 else
26607   cat >conftest.$ac_ext <<_ACEOF
26608 /* confdefs.h.  */
26609 _ACEOF
26610 cat confdefs.h >>conftest.$ac_ext
26611 cat >>conftest.$ac_ext <<_ACEOF
26612 /* end confdefs.h.  */
26613 $ac_includes_default
26614 long longval () { return (long) (sizeof (int)); }
26615 unsigned long ulongval () { return (long) (sizeof (int)); }
26616 #include <stdio.h>
26617 #include <stdlib.h>
26618 int
26619 main ()
26620 {
26621
26622   FILE *f = fopen ("conftest.val", "w");
26623   if (! f)
26624     exit (1);
26625   if (((long) (sizeof (int))) < 0)
26626     {
26627       long i = longval ();
26628       if (i != ((long) (sizeof (int))))
26629         exit (1);
26630       fprintf (f, "%ld\n", i);
26631     }
26632   else
26633     {
26634       unsigned long i = ulongval ();
26635       if (i != ((long) (sizeof (int))))
26636         exit (1);
26637       fprintf (f, "%lu\n", i);
26638     }
26639   exit (ferror (f) || fclose (f) != 0);
26640
26641   ;
26642   return 0;
26643 }
26644 _ACEOF
26645 rm -f conftest$ac_exeext
26646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26647   (eval $ac_link) 2>&5
26648   ac_status=$?
26649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26650   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26652   (eval $ac_try) 2>&5
26653   ac_status=$?
26654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26655   (exit $ac_status); }; }; then
26656   ac_cv_sizeof_int=`cat conftest.val`
26657 else
26658   echo "$as_me: program exited with status $ac_status" >&5
26659 echo "$as_me: failed program was:" >&5
26660 sed 's/^/| /' conftest.$ac_ext >&5
26661
26662 ( exit $ac_status )
26663 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
26664 See \`config.log' for more details." >&5
26665 echo "$as_me: error: cannot compute sizeof (int), 77
26666 See \`config.log' for more details." >&2;}
26667    { (exit 1); exit 1; }; }
26668 fi
26669 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26670 fi
26671 fi
26672 rm -f conftest.val
26673 else
26674   ac_cv_sizeof_int=0
26675 fi
26676 fi
26677 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
26678 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
26679 cat >>confdefs.h <<_ACEOF
26680 #define SIZEOF_INT $ac_cv_sizeof_int
26681 _ACEOF
26682
26683
26684 echo "$as_me:$LINENO: checking for long" >&5
26685 echo $ECHO_N "checking for long... $ECHO_C" >&6
26686 if test "${ac_cv_type_long+set}" = set; then
26687   echo $ECHO_N "(cached) $ECHO_C" >&6
26688 else
26689   cat >conftest.$ac_ext <<_ACEOF
26690 /* confdefs.h.  */
26691 _ACEOF
26692 cat confdefs.h >>conftest.$ac_ext
26693 cat >>conftest.$ac_ext <<_ACEOF
26694 /* end confdefs.h.  */
26695 $ac_includes_default
26696 int
26697 main ()
26698 {
26699 if ((long *) 0)
26700   return 0;
26701 if (sizeof (long))
26702   return 0;
26703   ;
26704   return 0;
26705 }
26706 _ACEOF
26707 rm -f conftest.$ac_objext
26708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26709   (eval $ac_compile) 2>conftest.er1
26710   ac_status=$?
26711   grep -v '^ *+' conftest.er1 >conftest.err
26712   rm -f conftest.er1
26713   cat conftest.err >&5
26714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26715   (exit $ac_status); } &&
26716          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26718   (eval $ac_try) 2>&5
26719   ac_status=$?
26720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26721   (exit $ac_status); }; } &&
26722          { ac_try='test -s conftest.$ac_objext'
26723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26724   (eval $ac_try) 2>&5
26725   ac_status=$?
26726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26727   (exit $ac_status); }; }; then
26728   ac_cv_type_long=yes
26729 else
26730   echo "$as_me: failed program was:" >&5
26731 sed 's/^/| /' conftest.$ac_ext >&5
26732
26733 ac_cv_type_long=no
26734 fi
26735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26736 fi
26737 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
26738 echo "${ECHO_T}$ac_cv_type_long" >&6
26739
26740 echo "$as_me:$LINENO: checking size of long" >&5
26741 echo $ECHO_N "checking size of long... $ECHO_C" >&6
26742 if test "${ac_cv_sizeof_long+set}" = set; then
26743   echo $ECHO_N "(cached) $ECHO_C" >&6
26744 else
26745   if test "$ac_cv_type_long" = yes; then
26746   # The cast to unsigned long works around a bug in the HP C Compiler
26747   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26748   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26749   # This bug is HP SR number 8606223364.
26750   if test "$cross_compiling" = yes; then
26751   # Depending upon the size, compute the lo and hi bounds.
26752 cat >conftest.$ac_ext <<_ACEOF
26753 /* confdefs.h.  */
26754 _ACEOF
26755 cat confdefs.h >>conftest.$ac_ext
26756 cat >>conftest.$ac_ext <<_ACEOF
26757 /* end confdefs.h.  */
26758 $ac_includes_default
26759 int
26760 main ()
26761 {
26762 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
26763 test_array [0] = 0
26764
26765   ;
26766   return 0;
26767 }
26768 _ACEOF
26769 rm -f conftest.$ac_objext
26770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26771   (eval $ac_compile) 2>conftest.er1
26772   ac_status=$?
26773   grep -v '^ *+' conftest.er1 >conftest.err
26774   rm -f conftest.er1
26775   cat conftest.err >&5
26776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26777   (exit $ac_status); } &&
26778          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26780   (eval $ac_try) 2>&5
26781   ac_status=$?
26782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26783   (exit $ac_status); }; } &&
26784          { ac_try='test -s conftest.$ac_objext'
26785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26786   (eval $ac_try) 2>&5
26787   ac_status=$?
26788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26789   (exit $ac_status); }; }; then
26790   ac_lo=0 ac_mid=0
26791   while :; do
26792     cat >conftest.$ac_ext <<_ACEOF
26793 /* confdefs.h.  */
26794 _ACEOF
26795 cat confdefs.h >>conftest.$ac_ext
26796 cat >>conftest.$ac_ext <<_ACEOF
26797 /* end confdefs.h.  */
26798 $ac_includes_default
26799 int
26800 main ()
26801 {
26802 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
26803 test_array [0] = 0
26804
26805   ;
26806   return 0;
26807 }
26808 _ACEOF
26809 rm -f conftest.$ac_objext
26810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26811   (eval $ac_compile) 2>conftest.er1
26812   ac_status=$?
26813   grep -v '^ *+' conftest.er1 >conftest.err
26814   rm -f conftest.er1
26815   cat conftest.err >&5
26816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26817   (exit $ac_status); } &&
26818          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26820   (eval $ac_try) 2>&5
26821   ac_status=$?
26822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26823   (exit $ac_status); }; } &&
26824          { ac_try='test -s conftest.$ac_objext'
26825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26826   (eval $ac_try) 2>&5
26827   ac_status=$?
26828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26829   (exit $ac_status); }; }; then
26830   ac_hi=$ac_mid; break
26831 else
26832   echo "$as_me: failed program was:" >&5
26833 sed 's/^/| /' conftest.$ac_ext >&5
26834
26835 ac_lo=`expr $ac_mid + 1`
26836                     if test $ac_lo -le $ac_mid; then
26837                       ac_lo= ac_hi=
26838                       break
26839                     fi
26840                     ac_mid=`expr 2 '*' $ac_mid + 1`
26841 fi
26842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26843   done
26844 else
26845   echo "$as_me: failed program was:" >&5
26846 sed 's/^/| /' conftest.$ac_ext >&5
26847
26848 cat >conftest.$ac_ext <<_ACEOF
26849 /* confdefs.h.  */
26850 _ACEOF
26851 cat confdefs.h >>conftest.$ac_ext
26852 cat >>conftest.$ac_ext <<_ACEOF
26853 /* end confdefs.h.  */
26854 $ac_includes_default
26855 int
26856 main ()
26857 {
26858 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
26859 test_array [0] = 0
26860
26861   ;
26862   return 0;
26863 }
26864 _ACEOF
26865 rm -f conftest.$ac_objext
26866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26867   (eval $ac_compile) 2>conftest.er1
26868   ac_status=$?
26869   grep -v '^ *+' conftest.er1 >conftest.err
26870   rm -f conftest.er1
26871   cat conftest.err >&5
26872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26873   (exit $ac_status); } &&
26874          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26876   (eval $ac_try) 2>&5
26877   ac_status=$?
26878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26879   (exit $ac_status); }; } &&
26880          { ac_try='test -s conftest.$ac_objext'
26881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26882   (eval $ac_try) 2>&5
26883   ac_status=$?
26884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26885   (exit $ac_status); }; }; then
26886   ac_hi=-1 ac_mid=-1
26887   while :; do
26888     cat >conftest.$ac_ext <<_ACEOF
26889 /* confdefs.h.  */
26890 _ACEOF
26891 cat confdefs.h >>conftest.$ac_ext
26892 cat >>conftest.$ac_ext <<_ACEOF
26893 /* end confdefs.h.  */
26894 $ac_includes_default
26895 int
26896 main ()
26897 {
26898 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
26899 test_array [0] = 0
26900
26901   ;
26902   return 0;
26903 }
26904 _ACEOF
26905 rm -f conftest.$ac_objext
26906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26907   (eval $ac_compile) 2>conftest.er1
26908   ac_status=$?
26909   grep -v '^ *+' conftest.er1 >conftest.err
26910   rm -f conftest.er1
26911   cat conftest.err >&5
26912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26913   (exit $ac_status); } &&
26914          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26916   (eval $ac_try) 2>&5
26917   ac_status=$?
26918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26919   (exit $ac_status); }; } &&
26920          { ac_try='test -s conftest.$ac_objext'
26921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26922   (eval $ac_try) 2>&5
26923   ac_status=$?
26924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26925   (exit $ac_status); }; }; then
26926   ac_lo=$ac_mid; break
26927 else
26928   echo "$as_me: failed program was:" >&5
26929 sed 's/^/| /' conftest.$ac_ext >&5
26930
26931 ac_hi=`expr '(' $ac_mid ')' - 1`
26932                        if test $ac_mid -le $ac_hi; then
26933                          ac_lo= ac_hi=
26934                          break
26935                        fi
26936                        ac_mid=`expr 2 '*' $ac_mid`
26937 fi
26938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26939   done
26940 else
26941   echo "$as_me: failed program was:" >&5
26942 sed 's/^/| /' conftest.$ac_ext >&5
26943
26944 ac_lo= ac_hi=
26945 fi
26946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26947 fi
26948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26949 # Binary search between lo and hi bounds.
26950 while test "x$ac_lo" != "x$ac_hi"; do
26951   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26952   cat >conftest.$ac_ext <<_ACEOF
26953 /* confdefs.h.  */
26954 _ACEOF
26955 cat confdefs.h >>conftest.$ac_ext
26956 cat >>conftest.$ac_ext <<_ACEOF
26957 /* end confdefs.h.  */
26958 $ac_includes_default
26959 int
26960 main ()
26961 {
26962 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
26963 test_array [0] = 0
26964
26965   ;
26966   return 0;
26967 }
26968 _ACEOF
26969 rm -f conftest.$ac_objext
26970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26971   (eval $ac_compile) 2>conftest.er1
26972   ac_status=$?
26973   grep -v '^ *+' conftest.er1 >conftest.err
26974   rm -f conftest.er1
26975   cat conftest.err >&5
26976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26977   (exit $ac_status); } &&
26978          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26980   (eval $ac_try) 2>&5
26981   ac_status=$?
26982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26983   (exit $ac_status); }; } &&
26984          { ac_try='test -s conftest.$ac_objext'
26985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26986   (eval $ac_try) 2>&5
26987   ac_status=$?
26988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26989   (exit $ac_status); }; }; then
26990   ac_hi=$ac_mid
26991 else
26992   echo "$as_me: failed program was:" >&5
26993 sed 's/^/| /' conftest.$ac_ext >&5
26994
26995 ac_lo=`expr '(' $ac_mid ')' + 1`
26996 fi
26997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26998 done
26999 case $ac_lo in
27000 ?*) ac_cv_sizeof_long=$ac_lo;;
27001 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
27002 See \`config.log' for more details." >&5
27003 echo "$as_me: error: cannot compute sizeof (long), 77
27004 See \`config.log' for more details." >&2;}
27005    { (exit 1); exit 1; }; } ;;
27006 esac
27007 else
27008   if test "$cross_compiling" = yes; then
27009   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
27010 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
27011    { (exit 1); exit 1; }; }
27012 else
27013   cat >conftest.$ac_ext <<_ACEOF
27014 /* confdefs.h.  */
27015 _ACEOF
27016 cat confdefs.h >>conftest.$ac_ext
27017 cat >>conftest.$ac_ext <<_ACEOF
27018 /* end confdefs.h.  */
27019 $ac_includes_default
27020 long longval () { return (long) (sizeof (long)); }
27021 unsigned long ulongval () { return (long) (sizeof (long)); }
27022 #include <stdio.h>
27023 #include <stdlib.h>
27024 int
27025 main ()
27026 {
27027
27028   FILE *f = fopen ("conftest.val", "w");
27029   if (! f)
27030     exit (1);
27031   if (((long) (sizeof (long))) < 0)
27032     {
27033       long i = longval ();
27034       if (i != ((long) (sizeof (long))))
27035         exit (1);
27036       fprintf (f, "%ld\n", i);
27037     }
27038   else
27039     {
27040       unsigned long i = ulongval ();
27041       if (i != ((long) (sizeof (long))))
27042         exit (1);
27043       fprintf (f, "%lu\n", i);
27044     }
27045   exit (ferror (f) || fclose (f) != 0);
27046
27047   ;
27048   return 0;
27049 }
27050 _ACEOF
27051 rm -f conftest$ac_exeext
27052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27053   (eval $ac_link) 2>&5
27054   ac_status=$?
27055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27056   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27058   (eval $ac_try) 2>&5
27059   ac_status=$?
27060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27061   (exit $ac_status); }; }; then
27062   ac_cv_sizeof_long=`cat conftest.val`
27063 else
27064   echo "$as_me: program exited with status $ac_status" >&5
27065 echo "$as_me: failed program was:" >&5
27066 sed 's/^/| /' conftest.$ac_ext >&5
27067
27068 ( exit $ac_status )
27069 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
27070 See \`config.log' for more details." >&5
27071 echo "$as_me: error: cannot compute sizeof (long), 77
27072 See \`config.log' for more details." >&2;}
27073    { (exit 1); exit 1; }; }
27074 fi
27075 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27076 fi
27077 fi
27078 rm -f conftest.val
27079 else
27080   ac_cv_sizeof_long=0
27081 fi
27082 fi
27083 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
27084 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
27085 cat >>confdefs.h <<_ACEOF
27086 #define SIZEOF_LONG $ac_cv_sizeof_long
27087 _ACEOF
27088
27089
27090 echo "$as_me:$LINENO: checking for size_t" >&5
27091 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27092 if test "${ac_cv_type_size_t+set}" = set; then
27093   echo $ECHO_N "(cached) $ECHO_C" >&6
27094 else
27095   cat >conftest.$ac_ext <<_ACEOF
27096 /* confdefs.h.  */
27097 _ACEOF
27098 cat confdefs.h >>conftest.$ac_ext
27099 cat >>conftest.$ac_ext <<_ACEOF
27100 /* end confdefs.h.  */
27101 $ac_includes_default
27102 int
27103 main ()
27104 {
27105 if ((size_t *) 0)
27106   return 0;
27107 if (sizeof (size_t))
27108   return 0;
27109   ;
27110   return 0;
27111 }
27112 _ACEOF
27113 rm -f conftest.$ac_objext
27114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27115   (eval $ac_compile) 2>conftest.er1
27116   ac_status=$?
27117   grep -v '^ *+' conftest.er1 >conftest.err
27118   rm -f conftest.er1
27119   cat conftest.err >&5
27120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27121   (exit $ac_status); } &&
27122          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27124   (eval $ac_try) 2>&5
27125   ac_status=$?
27126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27127   (exit $ac_status); }; } &&
27128          { ac_try='test -s conftest.$ac_objext'
27129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27130   (eval $ac_try) 2>&5
27131   ac_status=$?
27132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27133   (exit $ac_status); }; }; then
27134   ac_cv_type_size_t=yes
27135 else
27136   echo "$as_me: failed program was:" >&5
27137 sed 's/^/| /' conftest.$ac_ext >&5
27138
27139 ac_cv_type_size_t=no
27140 fi
27141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27142 fi
27143 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27144 echo "${ECHO_T}$ac_cv_type_size_t" >&6
27145
27146 echo "$as_me:$LINENO: checking size of size_t" >&5
27147 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
27148 if test "${ac_cv_sizeof_size_t+set}" = set; then
27149   echo $ECHO_N "(cached) $ECHO_C" >&6
27150 else
27151   if test "$ac_cv_type_size_t" = yes; then
27152   # The cast to unsigned long works around a bug in the HP C Compiler
27153   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27154   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27155   # This bug is HP SR number 8606223364.
27156   if test "$cross_compiling" = yes; then
27157   # Depending upon the size, compute the lo and hi bounds.
27158 cat >conftest.$ac_ext <<_ACEOF
27159 /* confdefs.h.  */
27160 _ACEOF
27161 cat confdefs.h >>conftest.$ac_ext
27162 cat >>conftest.$ac_ext <<_ACEOF
27163 /* end confdefs.h.  */
27164 $ac_includes_default
27165 int
27166 main ()
27167 {
27168 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
27169 test_array [0] = 0
27170
27171   ;
27172   return 0;
27173 }
27174 _ACEOF
27175 rm -f conftest.$ac_objext
27176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27177   (eval $ac_compile) 2>conftest.er1
27178   ac_status=$?
27179   grep -v '^ *+' conftest.er1 >conftest.err
27180   rm -f conftest.er1
27181   cat conftest.err >&5
27182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27183   (exit $ac_status); } &&
27184          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27186   (eval $ac_try) 2>&5
27187   ac_status=$?
27188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27189   (exit $ac_status); }; } &&
27190          { ac_try='test -s conftest.$ac_objext'
27191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27192   (eval $ac_try) 2>&5
27193   ac_status=$?
27194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27195   (exit $ac_status); }; }; then
27196   ac_lo=0 ac_mid=0
27197   while :; do
27198     cat >conftest.$ac_ext <<_ACEOF
27199 /* confdefs.h.  */
27200 _ACEOF
27201 cat confdefs.h >>conftest.$ac_ext
27202 cat >>conftest.$ac_ext <<_ACEOF
27203 /* end confdefs.h.  */
27204 $ac_includes_default
27205 int
27206 main ()
27207 {
27208 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
27209 test_array [0] = 0
27210
27211   ;
27212   return 0;
27213 }
27214 _ACEOF
27215 rm -f conftest.$ac_objext
27216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27217   (eval $ac_compile) 2>conftest.er1
27218   ac_status=$?
27219   grep -v '^ *+' conftest.er1 >conftest.err
27220   rm -f conftest.er1
27221   cat conftest.err >&5
27222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27223   (exit $ac_status); } &&
27224          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27226   (eval $ac_try) 2>&5
27227   ac_status=$?
27228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27229   (exit $ac_status); }; } &&
27230          { ac_try='test -s conftest.$ac_objext'
27231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27232   (eval $ac_try) 2>&5
27233   ac_status=$?
27234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27235   (exit $ac_status); }; }; then
27236   ac_hi=$ac_mid; break
27237 else
27238   echo "$as_me: failed program was:" >&5
27239 sed 's/^/| /' conftest.$ac_ext >&5
27240
27241 ac_lo=`expr $ac_mid + 1`
27242                     if test $ac_lo -le $ac_mid; then
27243                       ac_lo= ac_hi=
27244                       break
27245                     fi
27246                     ac_mid=`expr 2 '*' $ac_mid + 1`
27247 fi
27248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27249   done
27250 else
27251   echo "$as_me: failed program was:" >&5
27252 sed 's/^/| /' conftest.$ac_ext >&5
27253
27254 cat >conftest.$ac_ext <<_ACEOF
27255 /* confdefs.h.  */
27256 _ACEOF
27257 cat confdefs.h >>conftest.$ac_ext
27258 cat >>conftest.$ac_ext <<_ACEOF
27259 /* end confdefs.h.  */
27260 $ac_includes_default
27261 int
27262 main ()
27263 {
27264 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
27265 test_array [0] = 0
27266
27267   ;
27268   return 0;
27269 }
27270 _ACEOF
27271 rm -f conftest.$ac_objext
27272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27273   (eval $ac_compile) 2>conftest.er1
27274   ac_status=$?
27275   grep -v '^ *+' conftest.er1 >conftest.err
27276   rm -f conftest.er1
27277   cat conftest.err >&5
27278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27279   (exit $ac_status); } &&
27280          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27282   (eval $ac_try) 2>&5
27283   ac_status=$?
27284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27285   (exit $ac_status); }; } &&
27286          { ac_try='test -s conftest.$ac_objext'
27287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27288   (eval $ac_try) 2>&5
27289   ac_status=$?
27290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27291   (exit $ac_status); }; }; then
27292   ac_hi=-1 ac_mid=-1
27293   while :; do
27294     cat >conftest.$ac_ext <<_ACEOF
27295 /* confdefs.h.  */
27296 _ACEOF
27297 cat confdefs.h >>conftest.$ac_ext
27298 cat >>conftest.$ac_ext <<_ACEOF
27299 /* end confdefs.h.  */
27300 $ac_includes_default
27301 int
27302 main ()
27303 {
27304 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
27305 test_array [0] = 0
27306
27307   ;
27308   return 0;
27309 }
27310 _ACEOF
27311 rm -f conftest.$ac_objext
27312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27313   (eval $ac_compile) 2>conftest.er1
27314   ac_status=$?
27315   grep -v '^ *+' conftest.er1 >conftest.err
27316   rm -f conftest.er1
27317   cat conftest.err >&5
27318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27319   (exit $ac_status); } &&
27320          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27322   (eval $ac_try) 2>&5
27323   ac_status=$?
27324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27325   (exit $ac_status); }; } &&
27326          { ac_try='test -s conftest.$ac_objext'
27327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27328   (eval $ac_try) 2>&5
27329   ac_status=$?
27330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27331   (exit $ac_status); }; }; then
27332   ac_lo=$ac_mid; break
27333 else
27334   echo "$as_me: failed program was:" >&5
27335 sed 's/^/| /' conftest.$ac_ext >&5
27336
27337 ac_hi=`expr '(' $ac_mid ')' - 1`
27338                        if test $ac_mid -le $ac_hi; then
27339                          ac_lo= ac_hi=
27340                          break
27341                        fi
27342                        ac_mid=`expr 2 '*' $ac_mid`
27343 fi
27344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27345   done
27346 else
27347   echo "$as_me: failed program was:" >&5
27348 sed 's/^/| /' conftest.$ac_ext >&5
27349
27350 ac_lo= ac_hi=
27351 fi
27352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27353 fi
27354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27355 # Binary search between lo and hi bounds.
27356 while test "x$ac_lo" != "x$ac_hi"; do
27357   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27358   cat >conftest.$ac_ext <<_ACEOF
27359 /* confdefs.h.  */
27360 _ACEOF
27361 cat confdefs.h >>conftest.$ac_ext
27362 cat >>conftest.$ac_ext <<_ACEOF
27363 /* end confdefs.h.  */
27364 $ac_includes_default
27365 int
27366 main ()
27367 {
27368 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
27369 test_array [0] = 0
27370
27371   ;
27372   return 0;
27373 }
27374 _ACEOF
27375 rm -f conftest.$ac_objext
27376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27377   (eval $ac_compile) 2>conftest.er1
27378   ac_status=$?
27379   grep -v '^ *+' conftest.er1 >conftest.err
27380   rm -f conftest.er1
27381   cat conftest.err >&5
27382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27383   (exit $ac_status); } &&
27384          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27386   (eval $ac_try) 2>&5
27387   ac_status=$?
27388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27389   (exit $ac_status); }; } &&
27390          { ac_try='test -s conftest.$ac_objext'
27391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27392   (eval $ac_try) 2>&5
27393   ac_status=$?
27394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27395   (exit $ac_status); }; }; then
27396   ac_hi=$ac_mid
27397 else
27398   echo "$as_me: failed program was:" >&5
27399 sed 's/^/| /' conftest.$ac_ext >&5
27400
27401 ac_lo=`expr '(' $ac_mid ')' + 1`
27402 fi
27403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27404 done
27405 case $ac_lo in
27406 ?*) ac_cv_sizeof_size_t=$ac_lo;;
27407 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
27408 See \`config.log' for more details." >&5
27409 echo "$as_me: error: cannot compute sizeof (size_t), 77
27410 See \`config.log' for more details." >&2;}
27411    { (exit 1); exit 1; }; } ;;
27412 esac
27413 else
27414   if test "$cross_compiling" = yes; then
27415   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
27416 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
27417    { (exit 1); exit 1; }; }
27418 else
27419   cat >conftest.$ac_ext <<_ACEOF
27420 /* confdefs.h.  */
27421 _ACEOF
27422 cat confdefs.h >>conftest.$ac_ext
27423 cat >>conftest.$ac_ext <<_ACEOF
27424 /* end confdefs.h.  */
27425 $ac_includes_default
27426 long longval () { return (long) (sizeof (size_t)); }
27427 unsigned long ulongval () { return (long) (sizeof (size_t)); }
27428 #include <stdio.h>
27429 #include <stdlib.h>
27430 int
27431 main ()
27432 {
27433
27434   FILE *f = fopen ("conftest.val", "w");
27435   if (! f)
27436     exit (1);
27437   if (((long) (sizeof (size_t))) < 0)
27438     {
27439       long i = longval ();
27440       if (i != ((long) (sizeof (size_t))))
27441         exit (1);
27442       fprintf (f, "%ld\n", i);
27443     }
27444   else
27445     {
27446       unsigned long i = ulongval ();
27447       if (i != ((long) (sizeof (size_t))))
27448         exit (1);
27449       fprintf (f, "%lu\n", i);
27450     }
27451   exit (ferror (f) || fclose (f) != 0);
27452
27453   ;
27454   return 0;
27455 }
27456 _ACEOF
27457 rm -f conftest$ac_exeext
27458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27459   (eval $ac_link) 2>&5
27460   ac_status=$?
27461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27462   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27464   (eval $ac_try) 2>&5
27465   ac_status=$?
27466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27467   (exit $ac_status); }; }; then
27468   ac_cv_sizeof_size_t=`cat conftest.val`
27469 else
27470   echo "$as_me: program exited with status $ac_status" >&5
27471 echo "$as_me: failed program was:" >&5
27472 sed 's/^/| /' conftest.$ac_ext >&5
27473
27474 ( exit $ac_status )
27475 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
27476 See \`config.log' for more details." >&5
27477 echo "$as_me: error: cannot compute sizeof (size_t), 77
27478 See \`config.log' for more details." >&2;}
27479    { (exit 1); exit 1; }; }
27480 fi
27481 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27482 fi
27483 fi
27484 rm -f conftest.val
27485 else
27486   ac_cv_sizeof_size_t=0
27487 fi
27488 fi
27489 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
27490 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
27491 cat >>confdefs.h <<_ACEOF
27492 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
27493 _ACEOF
27494
27495
27496
27497
27498 cat >>confdefs.h <<_ACEOF
27499 #define NFS_STATEDIR "$statedir"
27500 _ACEOF
27501
27502
27503 if test "x$cross_compiling" = "xno"; then
27504         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
27505         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
27506         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
27507         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
27508 else
27509         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
27510         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
27511         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
27512         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
27513 fi
27514
27515
27516
27517
27518
27519
27520
27521
27522
27523
27524
27525 case $host in
27526   alpha*)
27527     ARCHFLAGS="-mno-fp-regs -ffixed-8" ;;
27528   *)
27529     ARCHFLAGS="" ;;
27530 esac
27531
27532 my_am_cflags="-Wall $ARCHFLAGS -pipe"
27533
27534 AM_CPPFLAGS="-I\${top_srcdir}/support/include -D_FILE_OFFSET_BITS=64"
27535
27536 AM_CFLAGS="$my_am_cflags"
27537
27538
27539 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
27540 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
27541
27542
27543                                                                                                                                                                                                                                                                                                             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"
27544
27545 cat >confcache <<\_ACEOF
27546 # This file is a shell script that caches the results of configure
27547 # tests run on this system so they can be shared between configure
27548 # scripts and configure runs, see configure's option --config-cache.
27549 # It is not useful on other systems.  If it contains results you don't
27550 # want to keep, you may remove or edit it.
27551 #
27552 # config.status only pays attention to the cache file if you give it
27553 # the --recheck option to rerun configure.
27554 #
27555 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27556 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27557 # following values.
27558
27559 _ACEOF
27560
27561 # The following way of writing the cache mishandles newlines in values,
27562 # but we know of no workaround that is simple, portable, and efficient.
27563 # So, don't put newlines in cache variables' values.
27564 # Ultrix sh set writes to stderr and can't be redirected directly,
27565 # and sets the high bit in the cache file unless we assign to the vars.
27566 {
27567   (set) 2>&1 |
27568     case `(ac_space=' '; set | grep ac_space) 2>&1` in
27569     *ac_space=\ *)
27570       # `set' does not quote correctly, so add quotes (double-quote
27571       # substitution turns \\\\ into \\, and sed turns \\ into \).
27572       sed -n \
27573         "s/'/'\\\\''/g;
27574           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27575       ;;
27576     *)
27577       # `set' quotes correctly as required by POSIX, so do not add quotes.
27578       sed -n \
27579         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
27580       ;;
27581     esac;
27582 } |
27583   sed '
27584      t clear
27585      : clear
27586      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27587      t end
27588      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27589      : end' >>confcache
27590 if diff $cache_file confcache >/dev/null 2>&1; then :; else
27591   if test -w $cache_file; then
27592     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
27593     cat confcache >$cache_file
27594   else
27595     echo "not updating unwritable cache $cache_file"
27596   fi
27597 fi
27598 rm -f confcache
27599
27600 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27601 # Let make expand exec_prefix.
27602 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27603
27604 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27605 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27606 # trailing colons and then remove the whole line if VPATH becomes empty
27607 # (actually we leave an empty line to preserve line numbers).
27608 if test "x$srcdir" = x.; then
27609   ac_vpsub='/^[  ]*VPATH[        ]*=/{
27610 s/:*\$(srcdir):*/:/;
27611 s/:*\${srcdir}:*/:/;
27612 s/:*@srcdir@:*/:/;
27613 s/^\([^=]*=[     ]*\):*/\1/;
27614 s/:*$//;
27615 s/^[^=]*=[       ]*$//;
27616 }'
27617 fi
27618
27619 DEFS=-DHAVE_CONFIG_H
27620
27621 ac_libobjs=
27622 ac_ltlibobjs=
27623 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27624   # 1. Remove the extension, and $U if already installed.
27625   ac_i=`echo "$ac_i" |
27626          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
27627   # 2. Add them.
27628   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
27629   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
27630 done
27631 LIBOBJS=$ac_libobjs
27632
27633 LTLIBOBJS=$ac_ltlibobjs
27634
27635
27636 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
27637   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_NFSV4\" was never defined.
27638 Usually this means the macro was only invoked conditionally." >&5
27639 echo "$as_me: error: conditional \"CONFIG_NFSV4\" was never defined.
27640 Usually this means the macro was only invoked conditionally." >&2;}
27641    { (exit 1); exit 1; }; }
27642 fi
27643 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
27644   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_GSS\" was never defined.
27645 Usually this means the macro was only invoked conditionally." >&5
27646 echo "$as_me: error: conditional \"CONFIG_GSS\" was never defined.
27647 Usually this means the macro was only invoked conditionally." >&2;}
27648    { (exit 1); exit 1; }; }
27649 fi
27650 if test -z "${CONFIG_RQUOTAD_TRUE}" && test -z "${CONFIG_RQUOTAD_FALSE}"; then
27651   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_RQUOTAD\" was never defined.
27652 Usually this means the macro was only invoked conditionally." >&5
27653 echo "$as_me: error: conditional \"CONFIG_RQUOTAD\" was never defined.
27654 Usually this means the macro was only invoked conditionally." >&2;}
27655    { (exit 1); exit 1; }; }
27656 fi
27657 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27658   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
27659 Usually this means the macro was only invoked conditionally." >&5
27660 echo "$as_me: error: conditional \"AMDEP\" was never defined.
27661 Usually this means the macro was only invoked conditionally." >&2;}
27662    { (exit 1); exit 1; }; }
27663 fi
27664 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27665   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27666 Usually this means the macro was only invoked conditionally." >&5
27667 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27668 Usually this means the macro was only invoked conditionally." >&2;}
27669    { (exit 1); exit 1; }; }
27670 fi
27671 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27672   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
27673 Usually this means the macro was only invoked conditionally." >&5
27674 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
27675 Usually this means the macro was only invoked conditionally." >&2;}
27676    { (exit 1); exit 1; }; }
27677 fi
27678 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27679   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27680 Usually this means the macro was only invoked conditionally." >&5
27681 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27682 Usually this means the macro was only invoked conditionally." >&2;}
27683    { (exit 1); exit 1; }; }
27684 fi
27685
27686 : ${CONFIG_STATUS=./config.status}
27687 ac_clean_files_save=$ac_clean_files
27688 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27689 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27690 echo "$as_me: creating $CONFIG_STATUS" >&6;}
27691 cat >$CONFIG_STATUS <<_ACEOF
27692 #! $SHELL
27693 # Generated by $as_me.
27694 # Run this file to recreate the current configuration.
27695 # Compiler output produced by configure, useful for debugging
27696 # configure, is in config.log if it exists.
27697
27698 debug=false
27699 ac_cs_recheck=false
27700 ac_cs_silent=false
27701 SHELL=\${CONFIG_SHELL-$SHELL}
27702 _ACEOF
27703
27704 cat >>$CONFIG_STATUS <<\_ACEOF
27705 ## --------------------- ##
27706 ## M4sh Initialization.  ##
27707 ## --------------------- ##
27708
27709 # Be Bourne compatible
27710 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27711   emulate sh
27712   NULLCMD=:
27713   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27714   # is contrary to our usage.  Disable this feature.
27715   alias -g '${1+"$@"}'='"$@"'
27716 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
27717   set -o posix
27718 fi
27719 DUALCASE=1; export DUALCASE # for MKS sh
27720
27721 # Support unset when possible.
27722 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27723   as_unset=unset
27724 else
27725   as_unset=false
27726 fi
27727
27728
27729 # Work around bugs in pre-3.0 UWIN ksh.
27730 $as_unset ENV MAIL MAILPATH
27731 PS1='$ '
27732 PS2='> '
27733 PS4='+ '
27734
27735 # NLS nuisances.
27736 for as_var in \
27737   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27738   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27739   LC_TELEPHONE LC_TIME
27740 do
27741   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27742     eval $as_var=C; export $as_var
27743   else
27744     $as_unset $as_var
27745   fi
27746 done
27747
27748 # Required to use basename.
27749 if expr a : '\(a\)' >/dev/null 2>&1; then
27750   as_expr=expr
27751 else
27752   as_expr=false
27753 fi
27754
27755 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
27756   as_basename=basename
27757 else
27758   as_basename=false
27759 fi
27760
27761
27762 # Name of the executable.
27763 as_me=`$as_basename "$0" ||
27764 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27765          X"$0" : 'X\(//\)$' \| \
27766          X"$0" : 'X\(/\)$' \| \
27767          .     : '\(.\)' 2>/dev/null ||
27768 echo X/"$0" |
27769     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
27770           /^X\/\(\/\/\)$/{ s//\1/; q; }
27771           /^X\/\(\/\).*/{ s//\1/; q; }
27772           s/.*/./; q'`
27773
27774
27775 # PATH needs CR, and LINENO needs CR and PATH.
27776 # Avoid depending upon Character Ranges.
27777 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27778 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27779 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27780 as_cr_digits='0123456789'
27781 as_cr_alnum=$as_cr_Letters$as_cr_digits
27782
27783 # The user is always right.
27784 if test "${PATH_SEPARATOR+set}" != set; then
27785   echo "#! /bin/sh" >conf$$.sh
27786   echo  "exit 0"   >>conf$$.sh
27787   chmod +x conf$$.sh
27788   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27789     PATH_SEPARATOR=';'
27790   else
27791     PATH_SEPARATOR=:
27792   fi
27793   rm -f conf$$.sh
27794 fi
27795
27796
27797   as_lineno_1=$LINENO
27798   as_lineno_2=$LINENO
27799   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
27800   test "x$as_lineno_1" != "x$as_lineno_2" &&
27801   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
27802   # Find who we are.  Look in the path if we contain no path at all
27803   # relative or not.
27804   case $0 in
27805     *[\\/]* ) as_myself=$0 ;;
27806     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27807 for as_dir in $PATH
27808 do
27809   IFS=$as_save_IFS
27810   test -z "$as_dir" && as_dir=.
27811   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27812 done
27813
27814        ;;
27815   esac
27816   # We did not find ourselves, most probably we were run as `sh COMMAND'
27817   # in which case we are not to be found in the path.
27818   if test "x$as_myself" = x; then
27819     as_myself=$0
27820   fi
27821   if test ! -f "$as_myself"; then
27822     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
27823 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
27824    { (exit 1); exit 1; }; }
27825   fi
27826   case $CONFIG_SHELL in
27827   '')
27828     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27829 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
27830 do
27831   IFS=$as_save_IFS
27832   test -z "$as_dir" && as_dir=.
27833   for as_base in sh bash ksh sh5; do
27834          case $as_dir in
27835          /*)
27836            if ("$as_dir/$as_base" -c '
27837   as_lineno_1=$LINENO
27838   as_lineno_2=$LINENO
27839   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
27840   test "x$as_lineno_1" != "x$as_lineno_2" &&
27841   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
27842              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
27843              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
27844              CONFIG_SHELL=$as_dir/$as_base
27845              export CONFIG_SHELL
27846              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
27847            fi;;
27848          esac
27849        done
27850 done
27851 ;;
27852   esac
27853
27854   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27855   # uniformly replaced by the line number.  The first 'sed' inserts a
27856   # line-number line before each line; the second 'sed' does the real
27857   # work.  The second script uses 'N' to pair each line-number line
27858   # with the numbered line, and appends trailing '-' during
27859   # substitution so that $LINENO is not a special case at line end.
27860   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27861   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
27862   sed '=' <$as_myself |
27863     sed '
27864       N
27865       s,$,-,
27866       : loop
27867       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
27868       t loop
27869       s,-$,,
27870       s,^['$as_cr_digits']*\n,,
27871     ' >$as_me.lineno &&
27872   chmod +x $as_me.lineno ||
27873     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
27874 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
27875    { (exit 1); exit 1; }; }
27876
27877   # Don't try to exec as it changes $[0], causing all sort of problems
27878   # (the dirname of $[0] is not the place where we might find the
27879   # original and so on.  Autoconf is especially sensible to this).
27880   . ./$as_me.lineno
27881   # Exit status is that of the last command.
27882   exit
27883 }
27884
27885
27886 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
27887   *c*,-n*) ECHO_N= ECHO_C='
27888 ' ECHO_T='      ' ;;
27889   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
27890   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
27891 esac
27892
27893 if expr a : '\(a\)' >/dev/null 2>&1; then
27894   as_expr=expr
27895 else
27896   as_expr=false
27897 fi
27898
27899 rm -f conf$$ conf$$.exe conf$$.file
27900 echo >conf$$.file
27901 if ln -s conf$$.file conf$$ 2>/dev/null; then
27902   # We could just check for DJGPP; but this test a) works b) is more generic
27903   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
27904   if test -f conf$$.exe; then
27905     # Don't use ln at all; we don't have any links
27906     as_ln_s='cp -p'
27907   else
27908     as_ln_s='ln -s'
27909   fi
27910 elif ln conf$$.file conf$$ 2>/dev/null; then
27911   as_ln_s=ln
27912 else
27913   as_ln_s='cp -p'
27914 fi
27915 rm -f conf$$ conf$$.exe conf$$.file
27916
27917 if mkdir -p . 2>/dev/null; then
27918   as_mkdir_p=:
27919 else
27920   test -d ./-p && rmdir ./-p
27921   as_mkdir_p=false
27922 fi
27923
27924 as_executable_p="test -f"
27925
27926 # Sed expression to map a string onto a valid CPP name.
27927 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27928
27929 # Sed expression to map a string onto a valid variable name.
27930 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27931
27932
27933 # IFS
27934 # We need space, tab and new line, in precisely that order.
27935 as_nl='
27936 '
27937 IFS="   $as_nl"
27938
27939 # CDPATH.
27940 $as_unset CDPATH
27941
27942 exec 6>&1
27943
27944 # Open the log real soon, to keep \$[0] and so on meaningful, and to
27945 # report actual input values of CONFIG_FILES etc. instead of their
27946 # values after options handling.  Logging --version etc. is OK.
27947 exec 5>>config.log
27948 {
27949   echo
27950   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27951 ## Running $as_me. ##
27952 _ASBOX
27953 } >&5
27954 cat >&5 <<_CSEOF
27955
27956 This file was extended by linux nfs-utils $as_me 1.0.8-rc4, which was
27957 generated by GNU Autoconf 2.59.  Invocation command line was
27958
27959   CONFIG_FILES    = $CONFIG_FILES
27960   CONFIG_HEADERS  = $CONFIG_HEADERS
27961   CONFIG_LINKS    = $CONFIG_LINKS
27962   CONFIG_COMMANDS = $CONFIG_COMMANDS
27963   $ $0 $@
27964
27965 _CSEOF
27966 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
27967 echo >&5
27968 _ACEOF
27969
27970 # Files that config.status was made for.
27971 if test -n "$ac_config_files"; then
27972   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
27973 fi
27974
27975 if test -n "$ac_config_headers"; then
27976   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
27977 fi
27978
27979 if test -n "$ac_config_links"; then
27980   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
27981 fi
27982
27983 if test -n "$ac_config_commands"; then
27984   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
27985 fi
27986
27987 cat >>$CONFIG_STATUS <<\_ACEOF
27988
27989 ac_cs_usage="\
27990 \`$as_me' instantiates files from templates according to the
27991 current configuration.
27992
27993 Usage: $0 [OPTIONS] [FILE]...
27994
27995   -h, --help       print this help, then exit
27996   -V, --version    print version number, then exit
27997   -q, --quiet      do not print progress messages
27998   -d, --debug      don't remove temporary files
27999       --recheck    update $as_me by reconfiguring in the same conditions
28000   --file=FILE[:TEMPLATE]
28001                    instantiate the configuration file FILE
28002   --header=FILE[:TEMPLATE]
28003                    instantiate the configuration header FILE
28004
28005 Configuration files:
28006 $config_files
28007
28008 Configuration headers:
28009 $config_headers
28010
28011 Configuration commands:
28012 $config_commands
28013
28014 Report bugs to <bug-autoconf@gnu.org>."
28015 _ACEOF
28016
28017 cat >>$CONFIG_STATUS <<_ACEOF
28018 ac_cs_version="\\
28019 linux nfs-utils config.status 1.0.8-rc4
28020 configured by $0, generated by GNU Autoconf 2.59,
28021   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
28022
28023 Copyright (C) 2003 Free Software Foundation, Inc.
28024 This config.status script is free software; the Free Software Foundation
28025 gives unlimited permission to copy, distribute and modify it."
28026 srcdir=$srcdir
28027 INSTALL="$INSTALL"
28028 _ACEOF
28029
28030 cat >>$CONFIG_STATUS <<\_ACEOF
28031 # If no file are specified by the user, then we need to provide default
28032 # value.  By we need to know if files were specified by the user.
28033 ac_need_defaults=:
28034 while test $# != 0
28035 do
28036   case $1 in
28037   --*=*)
28038     ac_option=`expr "x$1" : 'x\([^=]*\)='`
28039     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
28040     ac_shift=:
28041     ;;
28042   -*)
28043     ac_option=$1
28044     ac_optarg=$2
28045     ac_shift=shift
28046     ;;
28047   *) # This is not an option, so the user has probably given explicit
28048      # arguments.
28049      ac_option=$1
28050      ac_need_defaults=false;;
28051   esac
28052
28053   case $ac_option in
28054   # Handling of the options.
28055 _ACEOF
28056 cat >>$CONFIG_STATUS <<\_ACEOF
28057   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28058     ac_cs_recheck=: ;;
28059   --version | --vers* | -V )
28060     echo "$ac_cs_version"; exit 0 ;;
28061   --he | --h)
28062     # Conflict between --help and --header
28063     { { echo "$as_me:$LINENO: error: ambiguous option: $1
28064 Try \`$0 --help' for more information." >&5
28065 echo "$as_me: error: ambiguous option: $1
28066 Try \`$0 --help' for more information." >&2;}
28067    { (exit 1); exit 1; }; };;
28068   --help | --hel | -h )
28069     echo "$ac_cs_usage"; exit 0 ;;
28070   --debug | --d* | -d )
28071     debug=: ;;
28072   --file | --fil | --fi | --f )
28073     $ac_shift
28074     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
28075     ac_need_defaults=false;;
28076   --header | --heade | --head | --hea )
28077     $ac_shift
28078     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
28079     ac_need_defaults=false;;
28080   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28081   | -silent | --silent | --silen | --sile | --sil | --si | --s)
28082     ac_cs_silent=: ;;
28083
28084   # This is an error.
28085   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
28086 Try \`$0 --help' for more information." >&5
28087 echo "$as_me: error: unrecognized option: $1
28088 Try \`$0 --help' for more information." >&2;}
28089    { (exit 1); exit 1; }; } ;;
28090
28091   *) ac_config_targets="$ac_config_targets $1" ;;
28092
28093   esac
28094   shift
28095 done
28096
28097 ac_configure_extra_args=
28098
28099 if $ac_cs_silent; then
28100   exec 6>/dev/null
28101   ac_configure_extra_args="$ac_configure_extra_args --silent"
28102 fi
28103
28104 _ACEOF
28105 cat >>$CONFIG_STATUS <<_ACEOF
28106 if \$ac_cs_recheck; then
28107   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
28108   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28109 fi
28110
28111 _ACEOF
28112
28113 cat >>$CONFIG_STATUS <<_ACEOF
28114 #
28115 # INIT-COMMANDS section.
28116 #
28117
28118 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28119
28120 _ACEOF
28121
28122
28123
28124 cat >>$CONFIG_STATUS <<\_ACEOF
28125 for ac_config_target in $ac_config_targets
28126 do
28127   case "$ac_config_target" in
28128   # Handling of arguments.
28129   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28130   "linux-nfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
28131   "support/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
28132   "support/export/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
28133   "support/include/nfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
28134   "support/include/rpcsvc/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
28135   "support/include/sys/fs/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
28136   "support/include/sys/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
28137   "support/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
28138   "support/misc/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
28139   "support/nfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
28140   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
28141   "tools/getiversion/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/getiversion/Makefile" ;;
28142   "tools/getkversion/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/getkversion/Makefile" ;;
28143   "tools/locktest/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
28144   "tools/nlmtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
28145   "tools/rpcdebug/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
28146   "tools/rpcgen/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
28147   "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
28148   "utils/exportfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
28149   "utils/gssd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
28150   "utils/idmapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
28151   "utils/lockd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/lockd/Makefile" ;;
28152   "utils/mountd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
28153   "utils/nfsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
28154   "utils/nfsstat/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
28155   "utils/nhfsstone/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/nhfsstone/Makefile" ;;
28156   "utils/rquotad/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/rquotad/Makefile" ;;
28157   "utils/showmount/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
28158   "utils/statd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
28159   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28160   "support/include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
28161   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
28162 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
28163    { (exit 1); exit 1; }; };;
28164   esac
28165 done
28166
28167 # If the user did not use the arguments to specify the items to instantiate,
28168 # then the envvar interface is used.  Set only those that are not.
28169 # We use the long form for the default assignment because of an extremely
28170 # bizarre bug on SunOS 4.1.3.
28171 if $ac_need_defaults; then
28172   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28173   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28174   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28175 fi
28176
28177 # Have a temporary directory for convenience.  Make it in the build tree
28178 # simply because there is no reason to put it here, and in addition,
28179 # creating and moving files from /tmp can sometimes cause problems.
28180 # Create a temporary directory, and hook for its removal unless debugging.
28181 $debug ||
28182 {
28183   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
28184   trap '{ (exit 1); exit 1; }' 1 2 13 15
28185 }
28186
28187 # Create a (secure) tmp directory for tmp files.
28188
28189 {
28190   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
28191   test -n "$tmp" && test -d "$tmp"
28192 }  ||
28193 {
28194   tmp=./confstat$$-$RANDOM
28195   (umask 077 && mkdir $tmp)
28196 } ||
28197 {
28198    echo "$me: cannot create a temporary directory in ." >&2
28199    { (exit 1); exit 1; }
28200 }
28201
28202 _ACEOF
28203
28204 cat >>$CONFIG_STATUS <<_ACEOF
28205
28206 #
28207 # CONFIG_FILES section.
28208 #
28209
28210 # No need to generate the scripts if there are no CONFIG_FILES.
28211 # This happens for instance when ./config.status config.h
28212 if test -n "\$CONFIG_FILES"; then
28213   # Protect against being on the right side of a sed subst in config.status.
28214   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
28215    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
28216 s,@SHELL@,$SHELL,;t t
28217 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
28218 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
28219 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
28220 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
28221 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
28222 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
28223 s,@exec_prefix@,$exec_prefix,;t t
28224 s,@prefix@,$prefix,;t t
28225 s,@program_transform_name@,$program_transform_name,;t t
28226 s,@bindir@,$bindir,;t t
28227 s,@sbindir@,$sbindir,;t t
28228 s,@libexecdir@,$libexecdir,;t t
28229 s,@datadir@,$datadir,;t t
28230 s,@sysconfdir@,$sysconfdir,;t t
28231 s,@sharedstatedir@,$sharedstatedir,;t t
28232 s,@localstatedir@,$localstatedir,;t t
28233 s,@libdir@,$libdir,;t t
28234 s,@includedir@,$includedir,;t t
28235 s,@oldincludedir@,$oldincludedir,;t t
28236 s,@infodir@,$infodir,;t t
28237 s,@mandir@,$mandir,;t t
28238 s,@build_alias@,$build_alias,;t t
28239 s,@host_alias@,$host_alias,;t t
28240 s,@target_alias@,$target_alias,;t t
28241 s,@DEFS@,$DEFS,;t t
28242 s,@ECHO_C@,$ECHO_C,;t t
28243 s,@ECHO_N@,$ECHO_N,;t t
28244 s,@ECHO_T@,$ECHO_T,;t t
28245 s,@LIBS@,$LIBS,;t t
28246 s,@build@,$build,;t t
28247 s,@build_cpu@,$build_cpu,;t t
28248 s,@build_vendor@,$build_vendor,;t t
28249 s,@build_os@,$build_os,;t t
28250 s,@host@,$host,;t t
28251 s,@host_cpu@,$host_cpu,;t t
28252 s,@host_vendor@,$host_vendor,;t t
28253 s,@host_os@,$host_os,;t t
28254 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
28255 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
28256 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
28257 s,@CYGPATH_W@,$CYGPATH_W,;t t
28258 s,@PACKAGE@,$PACKAGE,;t t
28259 s,@VERSION@,$VERSION,;t t
28260 s,@ACLOCAL@,$ACLOCAL,;t t
28261 s,@AUTOCONF@,$AUTOCONF,;t t
28262 s,@AUTOMAKE@,$AUTOMAKE,;t t
28263 s,@AUTOHEADER@,$AUTOHEADER,;t t
28264 s,@MAKEINFO@,$MAKEINFO,;t t
28265 s,@install_sh@,$install_sh,;t t
28266 s,@STRIP@,$STRIP,;t t
28267 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
28268 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
28269 s,@mkdir_p@,$mkdir_p,;t t
28270 s,@AWK@,$AWK,;t t
28271 s,@SET_MAKE@,$SET_MAKE,;t t
28272 s,@am__leading_dot@,$am__leading_dot,;t t
28273 s,@AMTAR@,$AMTAR,;t t
28274 s,@am__tar@,$am__tar,;t t
28275 s,@am__untar@,$am__untar,;t t
28276 s,@RELEASE@,$RELEASE,;t t
28277 s,@statedir@,$statedir,;t t
28278 s,@statduser@,$statduser,;t t
28279 s,@enable_nfsv3@,$enable_nfsv3,;t t
28280 s,@IDMAPD@,$IDMAPD,;t t
28281 s,@enable_nfsv4@,$enable_nfsv4,;t t
28282 s,@CONFIG_NFSV4_TRUE@,$CONFIG_NFSV4_TRUE,;t t
28283 s,@CONFIG_NFSV4_FALSE@,$CONFIG_NFSV4_FALSE,;t t
28284 s,@GSSD@,$GSSD,;t t
28285 s,@SVCGSSD@,$SVCGSSD,;t t
28286 s,@enable_gss@,$enable_gss,;t t
28287 s,@CONFIG_GSS_TRUE@,$CONFIG_GSS_TRUE,;t t
28288 s,@CONFIG_GSS_FALSE@,$CONFIG_GSS_FALSE,;t t
28289 s,@kprefix@,$kprefix,;t t
28290 s,@secure_statd@,$secure_statd,;t t
28291 s,@CONFIG_RQUOTAD_TRUE@,$CONFIG_RQUOTAD_TRUE,;t t
28292 s,@CONFIG_RQUOTAD_FALSE@,$CONFIG_RQUOTAD_FALSE,;t t
28293 s,@CC@,$CC,;t t
28294 s,@CFLAGS@,$CFLAGS,;t t
28295 s,@LDFLAGS@,$LDFLAGS,;t t
28296 s,@CPPFLAGS@,$CPPFLAGS,;t t
28297 s,@ac_ct_CC@,$ac_ct_CC,;t t
28298 s,@EXEEXT@,$EXEEXT,;t t
28299 s,@OBJEXT@,$OBJEXT,;t t
28300 s,@DEPDIR@,$DEPDIR,;t t
28301 s,@am__include@,$am__include,;t t
28302 s,@am__quote@,$am__quote,;t t
28303 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
28304 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
28305 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
28306 s,@CCDEPMODE@,$CCDEPMODE,;t t
28307 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
28308 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
28309 s,@LIBWRAP@,$LIBWRAP,;t t
28310 s,@CXX@,$CXX,;t t
28311 s,@CXXFLAGS@,$CXXFLAGS,;t t
28312 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
28313 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
28314 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
28315 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
28316 s,@CPP@,$CPP,;t t
28317 s,@LN_S@,$LN_S,;t t
28318 s,@EGREP@,$EGREP,;t t
28319 s,@ECHO@,$ECHO,;t t
28320 s,@AR@,$AR,;t t
28321 s,@ac_ct_AR@,$ac_ct_AR,;t t
28322 s,@RANLIB@,$RANLIB,;t t
28323 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
28324 s,@CXXCPP@,$CXXCPP,;t t
28325 s,@F77@,$F77,;t t
28326 s,@FFLAGS@,$FFLAGS,;t t
28327 s,@ac_ct_F77@,$ac_ct_F77,;t t
28328 s,@LIBTOOL@,$LIBTOOL,;t t
28329 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
28330 s,@LD@,$LD,;t t
28331 s,@ac_ct_LD@,$ac_ct_LD,;t t
28332 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
28333 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
28334 s,@RPCSECGSS_CFLAGS@,$RPCSECGSS_CFLAGS,;t t
28335 s,@RPCSECGSS_LIBS@,$RPCSECGSS_LIBS,;t t
28336 s,@LIBSOCKET@,$LIBSOCKET,;t t
28337 s,@LIBNSL@,$LIBNSL,;t t
28338 s,@LIBCRYPT@,$LIBCRYPT,;t t
28339 s,@LIBBSD@,$LIBBSD,;t t
28340 s,@KRBDIR@,$KRBDIR,;t t
28341 s,@KRBLIBS@,$KRBLIBS,;t t
28342 s,@KRBCFLAGS@,$KRBCFLAGS,;t t
28343 s,@K5VERS@,$K5VERS,;t t
28344 s,@ALLOCA@,$ALLOCA,;t t
28345 s,@LIBOBJS@,$LIBOBJS,;t t
28346 s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
28347 s,@CXXFLAGS_FOR_BUILD@,$CXXFLAGS_FOR_BUILD,;t t
28348 s,@CPPFLAGS_FOR_BUILD@,$CPPFLAGS_FOR_BUILD,;t t
28349 s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
28350 s,@AM_CPPFLAGS@,$AM_CPPFLAGS,;t t
28351 s,@AM_CFLAGS@,$AM_CFLAGS,;t t
28352 s,@ACLOCAL_AMFLAGS@,$ACLOCAL_AMFLAGS,;t t
28353 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
28354 CEOF
28355
28356 _ACEOF
28357
28358   cat >>$CONFIG_STATUS <<\_ACEOF
28359   # Split the substitutions into bite-sized pieces for seds with
28360   # small command number limits, like on Digital OSF/1 and HP-UX.
28361   ac_max_sed_lines=48
28362   ac_sed_frag=1 # Number of current file.
28363   ac_beg=1 # First line for current file.
28364   ac_end=$ac_max_sed_lines # Line after last line for current file.
28365   ac_more_lines=:
28366   ac_sed_cmds=
28367   while $ac_more_lines; do
28368     if test $ac_beg -gt 1; then
28369       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
28370     else
28371       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
28372     fi
28373     if test ! -s $tmp/subs.frag; then
28374       ac_more_lines=false
28375     else
28376       # The purpose of the label and of the branching condition is to
28377       # speed up the sed processing (if there are no `@' at all, there
28378       # is no need to browse any of the substitutions).
28379       # These are the two extra sed commands mentioned above.
28380       (echo ':t
28381   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
28382       if test -z "$ac_sed_cmds"; then
28383         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
28384       else
28385         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
28386       fi
28387       ac_sed_frag=`expr $ac_sed_frag + 1`
28388       ac_beg=$ac_end
28389       ac_end=`expr $ac_end + $ac_max_sed_lines`
28390     fi
28391   done
28392   if test -z "$ac_sed_cmds"; then
28393     ac_sed_cmds=cat
28394   fi
28395 fi # test -n "$CONFIG_FILES"
28396
28397 _ACEOF
28398 cat >>$CONFIG_STATUS <<\_ACEOF
28399 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
28400   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
28401   case $ac_file in
28402   - | *:- | *:-:* ) # input from stdin
28403         cat >$tmp/stdin
28404         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28405         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28406   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28407         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28408   * )   ac_file_in=$ac_file.in ;;
28409   esac
28410
28411   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
28412   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
28413 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28414          X"$ac_file" : 'X\(//\)[^/]' \| \
28415          X"$ac_file" : 'X\(//\)$' \| \
28416          X"$ac_file" : 'X\(/\)' \| \
28417          .     : '\(.\)' 2>/dev/null ||
28418 echo X"$ac_file" |
28419     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28420           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28421           /^X\(\/\/\)$/{ s//\1/; q; }
28422           /^X\(\/\).*/{ s//\1/; q; }
28423           s/.*/./; q'`
28424   { if $as_mkdir_p; then
28425     mkdir -p "$ac_dir"
28426   else
28427     as_dir="$ac_dir"
28428     as_dirs=
28429     while test ! -d "$as_dir"; do
28430       as_dirs="$as_dir $as_dirs"
28431       as_dir=`(dirname "$as_dir") 2>/dev/null ||
28432 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28433          X"$as_dir" : 'X\(//\)[^/]' \| \
28434          X"$as_dir" : 'X\(//\)$' \| \
28435          X"$as_dir" : 'X\(/\)' \| \
28436          .     : '\(.\)' 2>/dev/null ||
28437 echo X"$as_dir" |
28438     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28439           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28440           /^X\(\/\/\)$/{ s//\1/; q; }
28441           /^X\(\/\).*/{ s//\1/; q; }
28442           s/.*/./; q'`
28443     done
28444     test ! -n "$as_dirs" || mkdir $as_dirs
28445   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28446 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28447    { (exit 1); exit 1; }; }; }
28448
28449   ac_builddir=.
28450
28451 if test "$ac_dir" != .; then
28452   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28453   # A "../" for each directory in $ac_dir_suffix.
28454   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
28455 else
28456   ac_dir_suffix= ac_top_builddir=
28457 fi
28458
28459 case $srcdir in
28460   .)  # No --srcdir option.  We are building in place.
28461     ac_srcdir=.
28462     if test -z "$ac_top_builddir"; then
28463        ac_top_srcdir=.
28464     else
28465        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
28466     fi ;;
28467   [\\/]* | ?:[\\/]* )  # Absolute path.
28468     ac_srcdir=$srcdir$ac_dir_suffix;
28469     ac_top_srcdir=$srcdir ;;
28470   *) # Relative path.
28471     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
28472     ac_top_srcdir=$ac_top_builddir$srcdir ;;
28473 esac
28474
28475 # Do not use `cd foo && pwd` to compute absolute paths, because
28476 # the directories may not exist.
28477 case `pwd` in
28478 .) ac_abs_builddir="$ac_dir";;
28479 *)
28480   case "$ac_dir" in
28481   .) ac_abs_builddir=`pwd`;;
28482   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
28483   *) ac_abs_builddir=`pwd`/"$ac_dir";;
28484   esac;;
28485 esac
28486 case $ac_abs_builddir in
28487 .) ac_abs_top_builddir=${ac_top_builddir}.;;
28488 *)
28489   case ${ac_top_builddir}. in
28490   .) ac_abs_top_builddir=$ac_abs_builddir;;
28491   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
28492   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
28493   esac;;
28494 esac
28495 case $ac_abs_builddir in
28496 .) ac_abs_srcdir=$ac_srcdir;;
28497 *)
28498   case $ac_srcdir in
28499   .) ac_abs_srcdir=$ac_abs_builddir;;
28500   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
28501   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
28502   esac;;
28503 esac
28504 case $ac_abs_builddir in
28505 .) ac_abs_top_srcdir=$ac_top_srcdir;;
28506 *)
28507   case $ac_top_srcdir in
28508   .) ac_abs_top_srcdir=$ac_abs_builddir;;
28509   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
28510   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
28511   esac;;
28512 esac
28513
28514
28515   case $INSTALL in
28516   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28517   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
28518   esac
28519
28520   # Let's still pretend it is `configure' which instantiates (i.e., don't
28521   # use $as_me), people would be surprised to read:
28522   #    /* config.h.  Generated by config.status.  */
28523   if test x"$ac_file" = x-; then
28524     configure_input=
28525   else
28526     configure_input="$ac_file.  "
28527   fi
28528   configure_input=$configure_input"Generated from `echo $ac_file_in |
28529                                      sed 's,.*/,,'` by configure."
28530
28531   # First look for the input files in the build tree, otherwise in the
28532   # src tree.
28533   ac_file_inputs=`IFS=:
28534     for f in $ac_file_in; do
28535       case $f in
28536       -) echo $tmp/stdin ;;
28537       [\\/$]*)
28538          # Absolute (can't be DOS-style, as IFS=:)
28539          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28540 echo "$as_me: error: cannot find input file: $f" >&2;}
28541    { (exit 1); exit 1; }; }
28542          echo "$f";;
28543       *) # Relative
28544          if test -f "$f"; then
28545            # Build tree
28546            echo "$f"
28547          elif test -f "$srcdir/$f"; then
28548            # Source tree
28549            echo "$srcdir/$f"
28550          else
28551            # /dev/null tree
28552            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28553 echo "$as_me: error: cannot find input file: $f" >&2;}
28554    { (exit 1); exit 1; }; }
28555          fi;;
28556       esac
28557     done` || { (exit 1); exit 1; }
28558
28559   if test x"$ac_file" != x-; then
28560     { echo "$as_me:$LINENO: creating $ac_file" >&5
28561 echo "$as_me: creating $ac_file" >&6;}
28562     rm -f "$ac_file"
28563   fi
28564 _ACEOF
28565 cat >>$CONFIG_STATUS <<_ACEOF
28566   sed "$ac_vpsub
28567 $extrasub
28568 _ACEOF
28569 cat >>$CONFIG_STATUS <<\_ACEOF
28570 :t
28571 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28572 s,@configure_input@,$configure_input,;t t
28573 s,@srcdir@,$ac_srcdir,;t t
28574 s,@abs_srcdir@,$ac_abs_srcdir,;t t
28575 s,@top_srcdir@,$ac_top_srcdir,;t t
28576 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
28577 s,@builddir@,$ac_builddir,;t t
28578 s,@abs_builddir@,$ac_abs_builddir,;t t
28579 s,@top_builddir@,$ac_top_builddir,;t t
28580 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
28581 s,@INSTALL@,$ac_INSTALL,;t t
28582 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
28583   rm -f $tmp/stdin
28584   if test x"$ac_file" != x-; then
28585     mv $tmp/out $ac_file
28586   else
28587     cat $tmp/out
28588     rm -f $tmp/out
28589   fi
28590
28591 done
28592 _ACEOF
28593 cat >>$CONFIG_STATUS <<\_ACEOF
28594
28595 #
28596 # CONFIG_HEADER section.
28597 #
28598
28599 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
28600 # NAME is the cpp macro being defined and VALUE is the value it is being given.
28601 #
28602 # ac_d sets the value in "#define NAME VALUE" lines.
28603 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
28604 ac_dB='[         ].*$,\1#\2'
28605 ac_dC=' '
28606 ac_dD=',;t'
28607 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
28608 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
28609 ac_uB='$,\1#\2define\3'
28610 ac_uC=' '
28611 ac_uD=',;t'
28612
28613 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
28614   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
28615   case $ac_file in
28616   - | *:- | *:-:* ) # input from stdin
28617         cat >$tmp/stdin
28618         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28619         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28620   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28621         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28622   * )   ac_file_in=$ac_file.in ;;
28623   esac
28624
28625   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
28626 echo "$as_me: creating $ac_file" >&6;}
28627
28628   # First look for the input files in the build tree, otherwise in the
28629   # src tree.
28630   ac_file_inputs=`IFS=:
28631     for f in $ac_file_in; do
28632       case $f in
28633       -) echo $tmp/stdin ;;
28634       [\\/$]*)
28635          # Absolute (can't be DOS-style, as IFS=:)
28636          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28637 echo "$as_me: error: cannot find input file: $f" >&2;}
28638    { (exit 1); exit 1; }; }
28639          # Do quote $f, to prevent DOS paths from being IFS'd.
28640          echo "$f";;
28641       *) # Relative
28642          if test -f "$f"; then
28643            # Build tree
28644            echo "$f"
28645          elif test -f "$srcdir/$f"; then
28646            # Source tree
28647            echo "$srcdir/$f"
28648          else
28649            # /dev/null tree
28650            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28651 echo "$as_me: error: cannot find input file: $f" >&2;}
28652    { (exit 1); exit 1; }; }
28653          fi;;
28654       esac
28655     done` || { (exit 1); exit 1; }
28656   # Remove the trailing spaces.
28657   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
28658
28659 _ACEOF
28660
28661 # Transform confdefs.h into two sed scripts, `conftest.defines' and
28662 # `conftest.undefs', that substitutes the proper values into
28663 # config.h.in to produce config.h.  The first handles `#define'
28664 # templates, and the second `#undef' templates.
28665 # And first: Protect against being on the right side of a sed subst in
28666 # config.status.  Protect against being in an unquoted here document
28667 # in config.status.
28668 rm -f conftest.defines conftest.undefs
28669 # Using a here document instead of a string reduces the quoting nightmare.
28670 # Putting comments in sed scripts is not portable.
28671 #
28672 # `end' is used to avoid that the second main sed command (meant for
28673 # 0-ary CPP macros) applies to n-ary macro definitions.
28674 # See the Autoconf documentation for `clear'.
28675 cat >confdef2sed.sed <<\_ACEOF
28676 s/[\\&,]/\\&/g
28677 s,[\\$`],\\&,g
28678 t clear
28679 : clear
28680 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
28681 t end
28682 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
28683 : end
28684 _ACEOF
28685 # If some macros were called several times there might be several times
28686 # the same #defines, which is useless.  Nevertheless, we may not want to
28687 # sort them, since we want the *last* AC-DEFINE to be honored.
28688 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
28689 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
28690 rm -f confdef2sed.sed
28691
28692 # This sed command replaces #undef with comments.  This is necessary, for
28693 # example, in the case of _POSIX_SOURCE, which is predefined and required
28694 # on some systems where configure will not decide to define it.
28695 cat >>conftest.undefs <<\_ACEOF
28696 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
28697 _ACEOF
28698
28699 # Break up conftest.defines because some shells have a limit on the size
28700 # of here documents, and old seds have small limits too (100 cmds).
28701 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
28702 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
28703 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
28704 echo '  :' >>$CONFIG_STATUS
28705 rm -f conftest.tail
28706 while grep . conftest.defines >/dev/null
28707 do
28708   # Write a limited-size here document to $tmp/defines.sed.
28709   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
28710   # Speed up: don't consider the non `#define' lines.
28711   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
28712   # Work around the forget-to-reset-the-flag bug.
28713   echo 't clr' >>$CONFIG_STATUS
28714   echo ': clr' >>$CONFIG_STATUS
28715   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
28716   echo 'CEOF
28717   sed -f $tmp/defines.sed $tmp/in >$tmp/out
28718   rm -f $tmp/in
28719   mv $tmp/out $tmp/in
28720 ' >>$CONFIG_STATUS
28721   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
28722   rm -f conftest.defines
28723   mv conftest.tail conftest.defines
28724 done
28725 rm -f conftest.defines
28726 echo '  fi # grep' >>$CONFIG_STATUS
28727 echo >>$CONFIG_STATUS
28728
28729 # Break up conftest.undefs because some shells have a limit on the size
28730 # of here documents, and old seds have small limits too (100 cmds).
28731 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
28732 rm -f conftest.tail
28733 while grep . conftest.undefs >/dev/null
28734 do
28735   # Write a limited-size here document to $tmp/undefs.sed.
28736   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
28737   # Speed up: don't consider the non `#undef'
28738   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
28739   # Work around the forget-to-reset-the-flag bug.
28740   echo 't clr' >>$CONFIG_STATUS
28741   echo ': clr' >>$CONFIG_STATUS
28742   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
28743   echo 'CEOF
28744   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
28745   rm -f $tmp/in
28746   mv $tmp/out $tmp/in
28747 ' >>$CONFIG_STATUS
28748   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
28749   rm -f conftest.undefs
28750   mv conftest.tail conftest.undefs
28751 done
28752 rm -f conftest.undefs
28753
28754 cat >>$CONFIG_STATUS <<\_ACEOF
28755   # Let's still pretend it is `configure' which instantiates (i.e., don't
28756   # use $as_me), people would be surprised to read:
28757   #    /* config.h.  Generated by config.status.  */
28758   if test x"$ac_file" = x-; then
28759     echo "/* Generated by configure.  */" >$tmp/config.h
28760   else
28761     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
28762   fi
28763   cat $tmp/in >>$tmp/config.h
28764   rm -f $tmp/in
28765   if test x"$ac_file" != x-; then
28766     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
28767       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28768 echo "$as_me: $ac_file is unchanged" >&6;}
28769     else
28770       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
28771 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28772          X"$ac_file" : 'X\(//\)[^/]' \| \
28773          X"$ac_file" : 'X\(//\)$' \| \
28774          X"$ac_file" : 'X\(/\)' \| \
28775          .     : '\(.\)' 2>/dev/null ||
28776 echo X"$ac_file" |
28777     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28778           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28779           /^X\(\/\/\)$/{ s//\1/; q; }
28780           /^X\(\/\).*/{ s//\1/; q; }
28781           s/.*/./; q'`
28782       { if $as_mkdir_p; then
28783     mkdir -p "$ac_dir"
28784   else
28785     as_dir="$ac_dir"
28786     as_dirs=
28787     while test ! -d "$as_dir"; do
28788       as_dirs="$as_dir $as_dirs"
28789       as_dir=`(dirname "$as_dir") 2>/dev/null ||
28790 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28791          X"$as_dir" : 'X\(//\)[^/]' \| \
28792          X"$as_dir" : 'X\(//\)$' \| \
28793          X"$as_dir" : 'X\(/\)' \| \
28794          .     : '\(.\)' 2>/dev/null ||
28795 echo X"$as_dir" |
28796     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28797           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28798           /^X\(\/\/\)$/{ s//\1/; q; }
28799           /^X\(\/\).*/{ s//\1/; q; }
28800           s/.*/./; q'`
28801     done
28802     test ! -n "$as_dirs" || mkdir $as_dirs
28803   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28804 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28805    { (exit 1); exit 1; }; }; }
28806
28807       rm -f $ac_file
28808       mv $tmp/config.h $ac_file
28809     fi
28810   else
28811     cat $tmp/config.h
28812     rm -f $tmp/config.h
28813   fi
28814 # Compute $ac_file's index in $config_headers.
28815 _am_stamp_count=1
28816 for _am_header in $config_headers :; do
28817   case $_am_header in
28818     $ac_file | $ac_file:* )
28819       break ;;
28820     * )
28821       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28822   esac
28823 done
28824 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
28825 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28826          X$ac_file : 'X\(//\)[^/]' \| \
28827          X$ac_file : 'X\(//\)$' \| \
28828          X$ac_file : 'X\(/\)' \| \
28829          .     : '\(.\)' 2>/dev/null ||
28830 echo X$ac_file |
28831     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28832           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28833           /^X\(\/\/\)$/{ s//\1/; q; }
28834           /^X\(\/\).*/{ s//\1/; q; }
28835           s/.*/./; q'`/stamp-h$_am_stamp_count
28836 done
28837 _ACEOF
28838 cat >>$CONFIG_STATUS <<\_ACEOF
28839
28840 #
28841 # CONFIG_COMMANDS section.
28842 #
28843 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
28844   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
28845   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
28846   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
28847 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28848          X"$ac_dest" : 'X\(//\)[^/]' \| \
28849          X"$ac_dest" : 'X\(//\)$' \| \
28850          X"$ac_dest" : 'X\(/\)' \| \
28851          .     : '\(.\)' 2>/dev/null ||
28852 echo X"$ac_dest" |
28853     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28854           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28855           /^X\(\/\/\)$/{ s//\1/; q; }
28856           /^X\(\/\).*/{ s//\1/; q; }
28857           s/.*/./; q'`
28858   { if $as_mkdir_p; then
28859     mkdir -p "$ac_dir"
28860   else
28861     as_dir="$ac_dir"
28862     as_dirs=
28863     while test ! -d "$as_dir"; do
28864       as_dirs="$as_dir $as_dirs"
28865       as_dir=`(dirname "$as_dir") 2>/dev/null ||
28866 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28867          X"$as_dir" : 'X\(//\)[^/]' \| \
28868          X"$as_dir" : 'X\(//\)$' \| \
28869          X"$as_dir" : 'X\(/\)' \| \
28870          .     : '\(.\)' 2>/dev/null ||
28871 echo X"$as_dir" |
28872     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28873           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28874           /^X\(\/\/\)$/{ s//\1/; q; }
28875           /^X\(\/\).*/{ s//\1/; q; }
28876           s/.*/./; q'`
28877     done
28878     test ! -n "$as_dirs" || mkdir $as_dirs
28879   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28880 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28881    { (exit 1); exit 1; }; }; }
28882
28883   ac_builddir=.
28884
28885 if test "$ac_dir" != .; then
28886   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28887   # A "../" for each directory in $ac_dir_suffix.
28888   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
28889 else
28890   ac_dir_suffix= ac_top_builddir=
28891 fi
28892
28893 case $srcdir in
28894   .)  # No --srcdir option.  We are building in place.
28895     ac_srcdir=.
28896     if test -z "$ac_top_builddir"; then
28897        ac_top_srcdir=.
28898     else
28899        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
28900     fi ;;
28901   [\\/]* | ?:[\\/]* )  # Absolute path.
28902     ac_srcdir=$srcdir$ac_dir_suffix;
28903     ac_top_srcdir=$srcdir ;;
28904   *) # Relative path.
28905     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
28906     ac_top_srcdir=$ac_top_builddir$srcdir ;;
28907 esac
28908
28909 # Do not use `cd foo && pwd` to compute absolute paths, because
28910 # the directories may not exist.
28911 case `pwd` in
28912 .) ac_abs_builddir="$ac_dir";;
28913 *)
28914   case "$ac_dir" in
28915   .) ac_abs_builddir=`pwd`;;
28916   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
28917   *) ac_abs_builddir=`pwd`/"$ac_dir";;
28918   esac;;
28919 esac
28920 case $ac_abs_builddir in
28921 .) ac_abs_top_builddir=${ac_top_builddir}.;;
28922 *)
28923   case ${ac_top_builddir}. in
28924   .) ac_abs_top_builddir=$ac_abs_builddir;;
28925   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
28926   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
28927   esac;;
28928 esac
28929 case $ac_abs_builddir in
28930 .) ac_abs_srcdir=$ac_srcdir;;
28931 *)
28932   case $ac_srcdir in
28933   .) ac_abs_srcdir=$ac_abs_builddir;;
28934   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
28935   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
28936   esac;;
28937 esac
28938 case $ac_abs_builddir in
28939 .) ac_abs_top_srcdir=$ac_top_srcdir;;
28940 *)
28941   case $ac_top_srcdir in
28942   .) ac_abs_top_srcdir=$ac_abs_builddir;;
28943   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
28944   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
28945   esac;;
28946 esac
28947
28948
28949   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
28950 echo "$as_me: executing $ac_dest commands" >&6;}
28951   case $ac_dest in
28952     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
28953   # Strip MF so we end up with the name of the file.
28954   mf=`echo "$mf" | sed -e 's/:.*$//'`
28955   # Check whether this is an Automake generated Makefile or not.
28956   # We used to match only the files named `Makefile.in', but
28957   # some people rename them; so instead we look at the file content.
28958   # Grep'ing the first line is not enough: some people post-process
28959   # each Makefile.in and add a new line on top of each file to say so.
28960   # So let's grep whole file.
28961   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
28962     dirpart=`(dirname "$mf") 2>/dev/null ||
28963 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28964          X"$mf" : 'X\(//\)[^/]' \| \
28965          X"$mf" : 'X\(//\)$' \| \
28966          X"$mf" : 'X\(/\)' \| \
28967          .     : '\(.\)' 2>/dev/null ||
28968 echo X"$mf" |
28969     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28970           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28971           /^X\(\/\/\)$/{ s//\1/; q; }
28972           /^X\(\/\).*/{ s//\1/; q; }
28973           s/.*/./; q'`
28974   else
28975     continue
28976   fi
28977   # Extract the definition of DEPDIR, am__include, and am__quote
28978   # from the Makefile without running `make'.
28979   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28980   test -z "$DEPDIR" && continue
28981   am__include=`sed -n 's/^am__include = //p' < "$mf"`
28982   test -z "am__include" && continue
28983   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28984   # When using ansi2knr, U may be empty or an underscore; expand it
28985   U=`sed -n 's/^U = //p' < "$mf"`
28986   # Find all dependency output files, they are included files with
28987   # $(DEPDIR) in their names.  We invoke sed twice because it is the
28988   # simplest approach to changing $(DEPDIR) to its actual value in the
28989   # expansion.
28990   for file in `sed -n "
28991     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28992        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28993     # Make sure the directory exists.
28994     test -f "$dirpart/$file" && continue
28995     fdir=`(dirname "$file") 2>/dev/null ||
28996 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28997          X"$file" : 'X\(//\)[^/]' \| \
28998          X"$file" : 'X\(//\)$' \| \
28999          X"$file" : 'X\(/\)' \| \
29000          .     : '\(.\)' 2>/dev/null ||
29001 echo X"$file" |
29002     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29003           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29004           /^X\(\/\/\)$/{ s//\1/; q; }
29005           /^X\(\/\).*/{ s//\1/; q; }
29006           s/.*/./; q'`
29007     { if $as_mkdir_p; then
29008     mkdir -p $dirpart/$fdir
29009   else
29010     as_dir=$dirpart/$fdir
29011     as_dirs=
29012     while test ! -d "$as_dir"; do
29013       as_dirs="$as_dir $as_dirs"
29014       as_dir=`(dirname "$as_dir") 2>/dev/null ||
29015 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29016          X"$as_dir" : 'X\(//\)[^/]' \| \
29017          X"$as_dir" : 'X\(//\)$' \| \
29018          X"$as_dir" : 'X\(/\)' \| \
29019          .     : '\(.\)' 2>/dev/null ||
29020 echo X"$as_dir" |
29021     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29022           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29023           /^X\(\/\/\)$/{ s//\1/; q; }
29024           /^X\(\/\).*/{ s//\1/; q; }
29025           s/.*/./; q'`
29026     done
29027     test ! -n "$as_dirs" || mkdir $as_dirs
29028   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
29029 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
29030    { (exit 1); exit 1; }; }; }
29031
29032     # echo "creating $dirpart/$file"
29033     echo '# dummy' > "$dirpart/$file"
29034   done
29035 done
29036  ;;
29037   esac
29038 done
29039 _ACEOF
29040
29041 cat >>$CONFIG_STATUS <<\_ACEOF
29042
29043 { (exit 0); exit 0; }
29044 _ACEOF
29045 chmod +x $CONFIG_STATUS
29046 ac_clean_files=$ac_clean_files_save
29047
29048
29049 # configure is writing to config.log, and then calls config.status.
29050 # config.status does its own redirection, appending to config.log.
29051 # Unfortunately, on DOS this fails, as config.log is still kept open
29052 # by configure, so config.status won't be able to write to it; its
29053 # output is simply discarded.  So we exec the FD to /dev/null,
29054 # effectively closing config.log, so it can be properly (re)opened and
29055 # appended to by config.status.  When coming back to configure, we
29056 # need to make the FD available again.
29057 if test "$no_create" != yes; then
29058   ac_cs_success=:
29059   ac_config_status_args=
29060   test "$silent" = yes &&
29061     ac_config_status_args="$ac_config_status_args --quiet"
29062   exec 5>/dev/null
29063   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29064   exec 5>>config.log
29065   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29066   # would make configure fail if this is the last instruction.
29067   $ac_cs_success || { (exit 1); exit 1; }
29068 fi
29069
29070